Jian Li
Committed by Gerrit Code Review

Bump up swagger ui from 2.1.4 to 2.1.5

This commit bumps up swagger ui to 2.1.5 which fixes various bugs
of swagger ui 2.1.4.

Change-Id: I4f8d7f79b88cddada0148a8629e7ef4da9eac3a0
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
82 .swagger-section pre .vhdl .attribute, 82 .swagger-section pre .vhdl .attribute,
83 .swagger-section pre .clojure .attribute, 83 .swagger-section pre .clojure .attribute,
84 .swagger-section pre .coffeescript .property { 84 .swagger-section pre .coffeescript .property {
85 - color: #8888ff; 85 + color: #88F;
86 } 86 }
87 .swagger-section pre .keyword, 87 .swagger-section pre .keyword,
88 .swagger-section pre .id, 88 .swagger-section pre .id,
...@@ -120,9 +120,71 @@ ...@@ -120,9 +120,71 @@
120 .swagger-section pre .xml .cdata { 120 .swagger-section pre .xml .cdata {
121 opacity: 0.5; 121 opacity: 0.5;
122 } 122 }
123 +.swagger-section .hljs {
124 + display: block;
125 + overflow-x: auto;
126 + padding: 0.5em;
127 + background: #F0F0F0;
128 +}
129 +.swagger-section .hljs,
130 +.swagger-section .hljs-subst {
131 + color: #444;
132 +}
133 +.swagger-section .hljs-keyword,
134 +.swagger-section .hljs-attribute,
135 +.swagger-section .hljs-selector-tag,
136 +.swagger-section .hljs-meta-keyword,
137 +.swagger-section .hljs-doctag,
138 +.swagger-section .hljs-name {
139 + font-weight: bold;
140 +}
141 +.swagger-section .hljs-built_in,
142 +.swagger-section .hljs-literal,
143 +.swagger-section .hljs-bullet,
144 +.swagger-section .hljs-code,
145 +.swagger-section .hljs-addition {
146 + color: #1F811F;
147 +}
148 +.swagger-section .hljs-regexp,
149 +.swagger-section .hljs-symbol,
150 +.swagger-section .hljs-variable,
151 +.swagger-section .hljs-template-variable,
152 +.swagger-section .hljs-link,
153 +.swagger-section .hljs-selector-attr,
154 +.swagger-section .hljs-selector-pseudo {
155 + color: #BC6060;
156 +}
157 +.swagger-section .hljs-type,
158 +.swagger-section .hljs-string,
159 +.swagger-section .hljs-number,
160 +.swagger-section .hljs-selector-id,
161 +.swagger-section .hljs-selector-class,
162 +.swagger-section .hljs-quote,
163 +.swagger-section .hljs-template-tag,
164 +.swagger-section .hljs-deletion {
165 + color: #880000;
166 +}
167 +.swagger-section .hljs-title,
168 +.swagger-section .hljs-section {
169 + color: #880000;
170 + font-weight: bold;
171 +}
172 +.swagger-section .hljs-comment {
173 + color: #888888;
174 +}
175 +.swagger-section .hljs-meta {
176 + color: #2B6EA1;
177 +}
178 +.swagger-section .hljs-emphasis {
179 + font-style: italic;
180 +}
181 +.swagger-section .hljs-strong {
182 + font-weight: bold;
183 +}
123 .swagger-section .swagger-ui-wrap { 184 .swagger-section .swagger-ui-wrap {
124 line-height: 1; 185 line-height: 1;
125 font-family: "Droid Sans", sans-serif; 186 font-family: "Droid Sans", sans-serif;
187 + min-width: 760px;
126 max-width: 960px; 188 max-width: 960px;
127 margin-left: auto; 189 margin-left: auto;
128 margin-right: auto; 190 margin-right: auto;
...@@ -365,6 +427,7 @@ ...@@ -365,6 +427,7 @@
365 } 427 }
366 .swagger-section .swagger-ui-wrap .model-signature ul.signature-nav { 428 .swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
367 display: block; 429 display: block;
430 + min-width: 230px;
368 margin: 0; 431 margin: 0;
369 padding: 0; 432 padding: 0;
370 } 433 }
...@@ -604,6 +667,7 @@ ...@@ -604,6 +667,7 @@
604 } 667 }
605 .swagger-section .swagger-ui-wrap .markdown pre code { 668 .swagger-section .swagger-ui-wrap .markdown pre code {
606 line-height: 1.6em; 669 line-height: 1.6em;
670 + overflow: auto;
607 } 671 }
608 .swagger-section .swagger-ui-wrap div.gist { 672 .swagger-section .swagger-ui-wrap div.gist {
609 margin: 20px 0 25px 0 !important; 673 margin: 20px 0 25px 0 !important;
...@@ -724,6 +788,9 @@ ...@@ -724,6 +788,9 @@
724 color: black; 788 color: black;
725 text-decoration: none; 789 text-decoration: none;
726 } 790 }
791 +.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.toggleOperation.deprecated {
792 + text-decoration: line-through;
793 +}
727 .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { 794 .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
728 text-decoration: underline; 795 text-decoration: underline;
729 } 796 }
...@@ -1115,18 +1182,122 @@ ...@@ -1115,18 +1182,122 @@
1115 } 1182 }
1116 .swagger-section .oauth_submit { 1183 .swagger-section .oauth_submit {
1117 text-align: center; 1184 text-align: center;
1185 + display: inline-block;
1186 +}
1187 +.swagger-section .authorize-wrapper {
1188 + margin: 15px 0 10px;
1189 +}
1190 +.swagger-section .authorize-wrapper_operation {
1191 + float: right;
1192 +}
1193 +.swagger-section .authorize__btn:hover {
1194 + text-decoration: underline;
1195 + cursor: pointer;
1196 +}
1197 +.swagger-section .authorize__btn_operation:hover .authorize-scopes {
1198 + display: block;
1199 +}
1200 +.swagger-section .authorize-scopes {
1201 + position: absolute;
1202 + margin-top: 20px;
1203 + background: #FFF;
1204 + border: 1px solid #ccc;
1205 + border-radius: 5px;
1206 + display: none;
1207 + font-size: 13px;
1208 + max-width: 300px;
1209 + line-height: 30px;
1210 + color: black;
1211 + padding: 5px;
1212 +}
1213 +.swagger-section .authorize-scopes .authorize__scope {
1214 + text-decoration: none;
1215 +}
1216 +.swagger-section .authorize__btn_operation {
1217 + height: 18px;
1218 + vertical-align: middle;
1219 + display: inline-block;
1220 + background: url(../images/explorer_icons.png) no-repeat;
1221 +}
1222 +.swagger-section .authorize__btn_operation_login {
1223 + background-position: 0 0;
1224 + width: 18px;
1225 + margin-top: -6px;
1226 + margin-left: 4px;
1227 +}
1228 +.swagger-section .authorize__btn_operation_logout {
1229 + background-position: -30px 0;
1230 + width: 18px;
1231 + margin-top: -6px;
1232 + margin-left: 4px;
1233 +}
1234 +.swagger-section #auth_container {
1235 + color: #fff;
1236 + display: inline-block;
1237 + border: none;
1238 + padding: 5px;
1239 + width: 87px;
1240 + height: 13px;
1241 +}
1242 +.swagger-section #auth_container .authorize__btn {
1243 + color: #fff;
1244 +}
1245 +.swagger-section .auth_container {
1246 + padding: 0 0 10px;
1247 + margin-bottom: 5px;
1248 + border-bottom: solid 1px #CCC;
1249 + font-size: 0.9em;
1250 +}
1251 +.swagger-section .auth_container .auth__title {
1252 + color: #547f00;
1253 + font-size: 1.2em;
1254 +}
1255 +.swagger-section .auth_container .basic_auth__label {
1256 + display: inline-block;
1257 + width: 60px;
1258 +}
1259 +.swagger-section .auth_container .auth__description {
1260 + color: #999999;
1261 + margin-bottom: 5px;
1262 +}
1263 +.swagger-section .auth_container .auth__button {
1264 + margin-top: 10px;
1265 + height: 30px;
1266 +}
1267 +.swagger-section .auth_container .key_auth__field {
1268 + margin: 5px 0;
1269 +}
1270 +.swagger-section .auth_container .key_auth__label {
1271 + display: inline-block;
1272 + width: 60px;
1118 } 1273 }
1119 .swagger-section .api-popup-dialog { 1274 .swagger-section .api-popup-dialog {
1120 - z-index: 10000;
1121 position: absolute; 1275 position: absolute;
1276 + display: none;
1277 +}
1278 +.swagger-section .api-popup-dialog-wrapper {
1279 + z-index: 1000;
1122 width: 500px; 1280 width: 500px;
1123 background: #FFF; 1281 background: #FFF;
1124 padding: 20px; 1282 padding: 20px;
1125 border: 1px solid #ccc; 1283 border: 1px solid #ccc;
1126 border-radius: 5px; 1284 border-radius: 5px;
1127 - display: none;
1128 font-size: 13px; 1285 font-size: 13px;
1129 color: #777; 1286 color: #777;
1287 + position: fixed;
1288 + top: 50%;
1289 + left: 50%;
1290 + transform: translate(-50%, -50%);
1291 +}
1292 +.swagger-section .api-popup-dialog-shadow {
1293 + position: fixed;
1294 + top: 0;
1295 + left: 0;
1296 + width: 100%;
1297 + height: 100%;
1298 + opacity: 0.2;
1299 + background-color: gray;
1300 + z-index: 900;
1130 } 1301 }
1131 .swagger-section .api-popup-dialog .api-popup-title { 1302 .swagger-section .api-popup-dialog .api-popup-title {
1132 font-size: 24px; 1303 font-size: 24px;
...@@ -1140,6 +1311,10 @@ ...@@ -1140,6 +1311,10 @@
1140 padding-left: 5px; 1311 padding-left: 5px;
1141 padding-bottom: 5px; 1312 padding-bottom: 5px;
1142 } 1313 }
1314 +.swagger-section .api-popup-dialog .api-popup-content {
1315 + max-height: 500px;
1316 + overflow-y: auto;
1317 +}
1143 .swagger-section .api-popup-dialog .api-popup-authbtn { 1318 .swagger-section .api-popup-dialog .api-popup-authbtn {
1144 height: 30px; 1319 height: 30px;
1145 } 1320 }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
82 .swagger-section pre .vhdl .attribute, 82 .swagger-section pre .vhdl .attribute,
83 .swagger-section pre .clojure .attribute, 83 .swagger-section pre .clojure .attribute,
84 .swagger-section pre .coffeescript .property { 84 .swagger-section pre .coffeescript .property {
85 - color: #8888ff; 85 + color: #88F;
86 } 86 }
87 .swagger-section pre .keyword, 87 .swagger-section pre .keyword,
88 .swagger-section pre .id, 88 .swagger-section pre .id,
...@@ -120,9 +120,71 @@ ...@@ -120,9 +120,71 @@
120 .swagger-section pre .xml .cdata { 120 .swagger-section pre .xml .cdata {
121 opacity: 0.5; 121 opacity: 0.5;
122 } 122 }
123 +.swagger-section .hljs {
124 + display: block;
125 + overflow-x: auto;
126 + padding: 0.5em;
127 + background: #F0F0F0;
128 +}
129 +.swagger-section .hljs,
130 +.swagger-section .hljs-subst {
131 + color: #444;
132 +}
133 +.swagger-section .hljs-keyword,
134 +.swagger-section .hljs-attribute,
135 +.swagger-section .hljs-selector-tag,
136 +.swagger-section .hljs-meta-keyword,
137 +.swagger-section .hljs-doctag,
138 +.swagger-section .hljs-name {
139 + font-weight: bold;
140 +}
141 +.swagger-section .hljs-built_in,
142 +.swagger-section .hljs-literal,
143 +.swagger-section .hljs-bullet,
144 +.swagger-section .hljs-code,
145 +.swagger-section .hljs-addition {
146 + color: #1F811F;
147 +}
148 +.swagger-section .hljs-regexp,
149 +.swagger-section .hljs-symbol,
150 +.swagger-section .hljs-variable,
151 +.swagger-section .hljs-template-variable,
152 +.swagger-section .hljs-link,
153 +.swagger-section .hljs-selector-attr,
154 +.swagger-section .hljs-selector-pseudo {
155 + color: #BC6060;
156 +}
157 +.swagger-section .hljs-type,
158 +.swagger-section .hljs-string,
159 +.swagger-section .hljs-number,
160 +.swagger-section .hljs-selector-id,
161 +.swagger-section .hljs-selector-class,
162 +.swagger-section .hljs-quote,
163 +.swagger-section .hljs-template-tag,
164 +.swagger-section .hljs-deletion {
165 + color: #880000;
166 +}
167 +.swagger-section .hljs-title,
168 +.swagger-section .hljs-section {
169 + color: #880000;
170 + font-weight: bold;
171 +}
172 +.swagger-section .hljs-comment {
173 + color: #888888;
174 +}
175 +.swagger-section .hljs-meta {
176 + color: #2B6EA1;
177 +}
178 +.swagger-section .hljs-emphasis {
179 + font-style: italic;
180 +}
181 +.swagger-section .hljs-strong {
182 + font-weight: bold;
183 +}
123 .swagger-section .swagger-ui-wrap { 184 .swagger-section .swagger-ui-wrap {
124 line-height: 1; 185 line-height: 1;
125 font-family: Helvetica, Arial, sans-serif; 186 font-family: Helvetica, Arial, sans-serif;
187 + min-width: 760px;
126 max-width: 960px; 188 max-width: 960px;
127 margin-left: auto; 189 margin-left: auto;
128 margin-right: auto; 190 margin-right: auto;
...@@ -365,6 +427,7 @@ ...@@ -365,6 +427,7 @@
365 } 427 }
366 .swagger-section .swagger-ui-wrap .model-signature ul.signature-nav { 428 .swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
367 display: block; 429 display: block;
430 + min-width: 230px;
368 margin: 0; 431 margin: 0;
369 padding: 0; 432 padding: 0;
370 } 433 }
...@@ -604,6 +667,7 @@ ...@@ -604,6 +667,7 @@
604 } 667 }
605 .swagger-section .swagger-ui-wrap .markdown pre code { 668 .swagger-section .swagger-ui-wrap .markdown pre code {
606 line-height: 1.6em; 669 line-height: 1.6em;
670 + overflow: auto;
607 } 671 }
608 .swagger-section .swagger-ui-wrap div.gist { 672 .swagger-section .swagger-ui-wrap div.gist {
609 margin: 20px 0 25px 0 !important; 673 margin: 20px 0 25px 0 !important;
...@@ -724,6 +788,9 @@ ...@@ -724,6 +788,9 @@
724 color: black; 788 color: black;
725 text-decoration: none; 789 text-decoration: none;
726 } 790 }
791 +.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.toggleOperation.deprecated {
792 + text-decoration: line-through;
793 +}
727 .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { 794 .swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover {
728 text-decoration: underline; 795 text-decoration: underline;
729 } 796 }
...@@ -1115,18 +1182,122 @@ ...@@ -1115,18 +1182,122 @@
1115 } 1182 }
1116 .swagger-section .oauth_submit { 1183 .swagger-section .oauth_submit {
1117 text-align: center; 1184 text-align: center;
1185 + display: inline-block;
1186 +}
1187 +.swagger-section .authorize-wrapper {
1188 + margin: 15px 0 10px;
1189 +}
1190 +.swagger-section .authorize-wrapper_operation {
1191 + float: right;
1192 +}
1193 +.swagger-section .authorize__btn:hover {
1194 + text-decoration: underline;
1195 + cursor: pointer;
1196 +}
1197 +.swagger-section .authorize__btn_operation:hover .authorize-scopes {
1198 + display: block;
1199 +}
1200 +.swagger-section .authorize-scopes {
1201 + position: absolute;
1202 + margin-top: 20px;
1203 + background: #FFF;
1204 + border: 1px solid #ccc;
1205 + border-radius: 5px;
1206 + display: none;
1207 + font-size: 13px;
1208 + max-width: 300px;
1209 + line-height: 30px;
1210 + color: black;
1211 + padding: 5px;
1212 +}
1213 +.swagger-section .authorize-scopes .authorize__scope {
1214 + text-decoration: none;
1215 +}
1216 +.swagger-section .authorize__btn_operation {
1217 + height: 18px;
1218 + vertical-align: middle;
1219 + display: inline-block;
1220 + background: url(../images/explorer_icons.png) no-repeat;
1221 +}
1222 +.swagger-section .authorize__btn_operation_login {
1223 + background-position: 0 0;
1224 + width: 18px;
1225 + margin-top: -6px;
1226 + margin-left: 4px;
1227 +}
1228 +.swagger-section .authorize__btn_operation_logout {
1229 + background-position: -30px 0;
1230 + width: 18px;
1231 + margin-top: -6px;
1232 + margin-left: 4px;
1233 +}
1234 +.swagger-section #auth_container {
1235 + color: #fff;
1236 + display: inline-block;
1237 + border: none;
1238 + padding: 5px;
1239 + width: 87px;
1240 + height: 13px;
1241 +}
1242 +.swagger-section #auth_container .authorize__btn {
1243 + color: #fff;
1244 +}
1245 +.swagger-section .auth_container {
1246 + padding: 0 0 10px;
1247 + margin-bottom: 5px;
1248 + border-bottom: solid 1px #CCC;
1249 + font-size: 0.9em;
1250 +}
1251 +.swagger-section .auth_container .auth__title {
1252 + color: #547f00;
1253 + font-size: 1.2em;
1254 +}
1255 +.swagger-section .auth_container .basic_auth__label {
1256 + display: inline-block;
1257 + width: 60px;
1258 +}
1259 +.swagger-section .auth_container .auth__description {
1260 + color: #999999;
1261 + margin-bottom: 5px;
1262 +}
1263 +.swagger-section .auth_container .auth__button {
1264 + margin-top: 10px;
1265 + height: 30px;
1266 +}
1267 +.swagger-section .auth_container .key_auth__field {
1268 + margin: 5px 0;
1269 +}
1270 +.swagger-section .auth_container .key_auth__label {
1271 + display: inline-block;
1272 + width: 60px;
1118 } 1273 }
1119 .swagger-section .api-popup-dialog { 1274 .swagger-section .api-popup-dialog {
1120 - z-index: 10000;
1121 position: absolute; 1275 position: absolute;
1276 + display: none;
1277 +}
1278 +.swagger-section .api-popup-dialog-wrapper {
1279 + z-index: 1000;
1122 width: 500px; 1280 width: 500px;
1123 background: #FFF; 1281 background: #FFF;
1124 padding: 20px; 1282 padding: 20px;
1125 border: 1px solid #ccc; 1283 border: 1px solid #ccc;
1126 border-radius: 5px; 1284 border-radius: 5px;
1127 - display: none;
1128 font-size: 13px; 1285 font-size: 13px;
1129 color: #777; 1286 color: #777;
1287 + position: fixed;
1288 + top: 50%;
1289 + left: 50%;
1290 + transform: translate(-50%, -50%);
1291 +}
1292 +.swagger-section .api-popup-dialog-shadow {
1293 + position: fixed;
1294 + top: 0;
1295 + left: 0;
1296 + width: 100%;
1297 + height: 100%;
1298 + opacity: 0.2;
1299 + background-color: gray;
1300 + z-index: 900;
1130 } 1301 }
1131 .swagger-section .api-popup-dialog .api-popup-title { 1302 .swagger-section .api-popup-dialog .api-popup-title {
1132 font-size: 24px; 1303 font-size: 24px;
...@@ -1140,6 +1311,10 @@ ...@@ -1140,6 +1311,10 @@
1140 padding-left: 5px; 1311 padding-left: 5px;
1141 padding-bottom: 5px; 1312 padding-bottom: 5px;
1142 } 1313 }
1314 +.swagger-section .api-popup-dialog .api-popup-content {
1315 + max-height: 500px;
1316 + overflow-y: auto;
1317 +}
1143 .swagger-section .api-popup-dialog .api-popup-authbtn { 1318 .swagger-section .api-popup-dialog .api-popup-authbtn {
1144 height: 30px; 1319 height: 30px;
1145 } 1320 }
...@@ -1234,6 +1409,7 @@ ...@@ -1234,6 +1409,7 @@
1234 background-color: #bbb; 1409 background-color: #bbb;
1235 box-shadow: 0 2px 8px #777; 1410 box-shadow: 0 2px 8px #777;
1236 padding: 10px; 1411 padding: 10px;
1412 + height: 23px;
1237 } 1413 }
1238 .swagger-section #footer { 1414 .swagger-section #footer {
1239 color: #999; 1415 color: #999;
...@@ -1251,7 +1427,7 @@ ...@@ -1251,7 +1427,7 @@
1251 float: right; 1427 float: right;
1252 } 1428 }
1253 .swagger-section #api_selector .input { 1429 .swagger-section #api_selector .input {
1254 - display: block; 1430 + display: inline-block;
1255 clear: none; 1431 clear: none;
1256 float: left; 1432 float: left;
1257 margin: 0 10px 0 0; 1433 margin: 0 10px 0 0;
...@@ -1266,7 +1442,8 @@ ...@@ -1266,7 +1442,8 @@
1266 border-radius: 3px; 1442 border-radius: 3px;
1267 border: solid 2px #fff; 1443 border: solid 2px #fff;
1268 } 1444 }
1269 -.swagger-section #explore { 1445 +.swagger-section #explore,
1446 +.swagger-section #auth_container .authorize__btn {
1270 display: block; 1447 display: block;
1271 text-decoration: none; 1448 text-decoration: none;
1272 font-weight: bold; 1449 font-weight: bold;
...@@ -1281,19 +1458,27 @@ ...@@ -1281,19 +1458,27 @@
1281 -khtml-border-radius: 4px; 1458 -khtml-border-radius: 4px;
1282 border-radius: 4px; 1459 border-radius: 4px;
1283 } 1460 }
1284 -.swagger-section #explore:hover { 1461 +.swagger-section #explore:hover,
1462 +.swagger-section #auth_container .authorize__btn:hover {
1285 background-color: #CE5650; 1463 background-color: #CE5650;
1286 } 1464 }
1287 .swagger-section #header #logo { 1465 .swagger-section #header #logo {
1288 font-size: 1.6em; 1466 font-size: 1.6em;
1289 font-weight: bold; 1467 font-weight: bold;
1290 text-decoration: none; 1468 text-decoration: none;
1291 - background: transparent url(../images/onos-logo.png) no-repeat left center;
1292 - padding: 20px 0 20px 60px;
1293 color: white; 1469 color: white;
1294 } 1470 }
1471 +.swagger-section #header #logo .logo__img {
1472 + display: block;
1473 + float: left;
1474 + margin-top: 0px;
1475 +}
1476 +.swagger-section #header #logo .logo__title {
1477 + display: inline-block;
1478 + padding: 5px 0 0 10px;
1479 +}
1295 .swagger-section #header form#api_selector #selector { 1480 .swagger-section #header form#api_selector #selector {
1296 - width: 580px; 1481 + width: 700px;
1297 height: 28px; 1482 height: 28px;
1298 overflow: hidden; 1483 overflow: hidden;
1299 } 1484 }
...@@ -1329,3 +1514,7 @@ ...@@ -1329,3 +1514,7 @@
1329 .swagger-section .swagger-expand:before { 1514 .swagger-section .swagger-expand:before {
1330 content: "+"; 1515 content: "+";
1331 } 1516 }
1517 +.swagger-section .error {
1518 + outline-color: #cc0000;
1519 + background-color: #f2dede;
1520 +}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -10,18 +10,20 @@ ...@@ -10,18 +10,20 @@
10 <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/> 10 <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
11 <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/> 11 <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
12 <link href='css/print.css' media='print' rel='stylesheet' type='text/css'/> 12 <link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
13 + <script src='lib/object-assign-pollyfill.js' type='text/javascript'></script>
13 <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script> 14 <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
14 <script src='lib/jquery.slideto.min.js' type='text/javascript'></script> 15 <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
15 <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script> 16 <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
16 <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script> 17 <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
17 <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script> 18 <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
18 - <script src='lib/underscore-min.js' type='text/javascript'></script> 19 + <script src='lib/lodash.min.js' type='text/javascript'></script>
19 <script src='lib/backbone-min.js' type='text/javascript'></script> 20 <script src='lib/backbone-min.js' type='text/javascript'></script>
20 <script src='swagger-ui.js' type='text/javascript'></script> 21 <script src='swagger-ui.js' type='text/javascript'></script>
21 - <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script> 22 + <script src='lib/highlight.9.1.0.pack.js' type='text/javascript'></script>
23 + <script src='lib/highlight.9.1.0.pack_extended.js' type='text/javascript'></script>
24 + <script src='lib/jsoneditor.min.js' type='text/javascript'></script>
22 <script src='lib/marked.js' type='text/javascript'></script> 25 <script src='lib/marked.js' type='text/javascript'></script>
23 <script src='lib/swagger-oauth.js' type='text/javascript'></script> 26 <script src='lib/swagger-oauth.js' type='text/javascript'></script>
24 - <script src='lib/jsoneditor.min.js' type='text/javascript'></script>
25 27
26 <script type="text/javascript"> 28 <script type="text/javascript">
27 $(function () { 29 $(function () {
...@@ -31,6 +33,11 @@ ...@@ -31,6 +33,11 @@
31 } else { 33 } else {
32 url = "/onos/v1/docs/apis/onos/v1/swagger.json"; 34 url = "/onos/v1/docs/apis/onos/v1/swagger.json";
33 } 35 }
36 +
37 + hljs.configure({
38 + highlightSizeThreshold: 5000
39 + });
40 +
34 window.swaggerUi = new SwaggerUi({ 41 window.swaggerUi = new SwaggerUi({
35 url: url, 42 url: url,
36 validatorUrl : null, 43 validatorUrl : null,
...@@ -44,38 +51,14 @@ ...@@ -44,38 +51,14 @@
44 appName: "your-app-name" 51 appName: "your-app-name"
45 }); 52 });
46 } 53 }
47 -
48 - $('pre code').each(function(i, e) {
49 - hljs.highlightBlock(e)
50 - });
51 -
52 - addApiKeyAuthorization();
53 }, 54 },
54 onFailure: function(data) { 55 onFailure: function(data) {
55 log("Unable to Load SwaggerUI"); 56 log("Unable to Load SwaggerUI");
56 }, 57 },
57 docExpansion: "none", 58 docExpansion: "none",
58 - apisSorter: "alpha",
59 showRequestHeaders: false 59 showRequestHeaders: false
60 }); 60 });
61 61
62 - function addApiKeyAuthorization(){
63 - var key = encodeURIComponent($('#input_apiKey')[0].value);
64 - if(key && key.trim() != "") {
65 - var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query");
66 - window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
67 - log("added key " + key);
68 - }
69 - }
70 -
71 - $('#input_apiKey').change(addApiKeyAuthorization);
72 -
73 - // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
74 - /*
75 - var apiKey = "myApiKeyXXXX123456789";
76 - $('#input_apiKey').val(apiKey);
77 - */
78 -
79 window.swaggerUi.load(); 62 window.swaggerUi.load();
80 63
81 function log() { 64 function log() {
...@@ -95,7 +78,7 @@ ...@@ -95,7 +78,7 @@
95 <body class="swagger-section"> 78 <body class="swagger-section">
96 <div id='header'> 79 <div id='header'>
97 <div class="swagger-ui-wrap"> 80 <div class="swagger-ui-wrap">
98 - <a id="logo" href="#"></a> 81 + <a id="logo" href="#"><img class="logo__img" alt="swagger" height="30" width="36" src="images/onos-logo.png" /></a>
99 <form id='api_selector'> 82 <form id='api_selector'>
100 <div class='input' id='selector'> 83 <div class='input' id='selector'>
101 <select onchange="selectApi()"> 84 <select onchange="selectApi()">
...@@ -107,14 +90,14 @@ ...@@ -107,14 +90,14 @@
107 </select> 90 </select>
108 </div> 91 </div>
109 <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div> 92 <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
110 - <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div> 93 + <div id='auth_container'></div>
111 - <div class='input'><a id="explore" href="#">Explore</a></div> 94 + <div class='input'><a id="explore" class="header__btn" href="#">Explore</a></div>
112 </form> 95 </form>
113 </div> 96 </div>
114 </div> 97 </div>
115 98
116 <div id="message-bar" class="swagger-ui-wrap">&nbsp;</div> 99 <div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
117 <div id="swagger-ui-container" class="swagger-ui-wrap"></div> 100 <div id="swagger-ui-container" class="swagger-ui-wrap"></div>
118 -<div id="footer" class="swagger-ui-wrap"><a href="http://swagger.io/swagger-ui/">Swagger UI</a> adaptation</div> 101 +<div id="footer" class="swagger-ui-wrap"><a href="http://swagger.io/swagger-ui/">Swagger UI</a> (v2.1.5) adaptation</div>
119 </body> 102 </body>
120 </html> 103 </html>
......
1 +/*!
2 + * https://github.com/es-shims/es5-shim
3 + * @license es5-shim Copyright 2009-2015 by contributors, MIT License
4 + * see https://github.com/es-shims/es5-shim/blob/master/LICENSE
5 + */
6 +
7 +// vim: ts=4 sts=4 sw=4 expandtab
8 +
9 +// Add semicolon to prevent IIFE from being passed as argument to concatenated code.
10 +;
11 +
12 +// UMD (Universal Module Definition)
13 +// see https://github.com/umdjs/umd/blob/master/templates/returnExports.js
14 +(function (root, factory) {
15 + 'use strict';
16 +
17 + /* global define, exports, module */
18 + if (typeof define === 'function' && define.amd) {
19 + // AMD. Register as an anonymous module.
20 + define(factory);
21 + } else if (typeof exports === 'object') {
22 + // Node. Does not work with strict CommonJS, but
23 + // only CommonJS-like enviroments that support module.exports,
24 + // like Node.
25 + module.exports = factory();
26 + } else {
27 + // Browser globals (root is window)
28 + root.returnExports = factory();
29 + }
30 +}(this, function () {
31 + /**
32 + * Brings an environment as close to ECMAScript 5 compliance
33 + * as is possible with the facilities of erstwhile engines.
34 + *
35 + * Annotated ES5: http://es5.github.com/ (specific links below)
36 + * ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
37 + * Required reading: http://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/
38 + */
39 +
40 + // Shortcut to an often accessed properties, in order to avoid multiple
41 + // dereference that costs universally. This also holds a reference to known-good
42 + // functions.
43 + var $Array = Array;
44 + var ArrayPrototype = $Array.prototype;
45 + var $Object = Object;
46 + var ObjectPrototype = $Object.prototype;
47 + var $Function = Function;
48 + var FunctionPrototype = $Function.prototype;
49 + var $String = String;
50 + var StringPrototype = $String.prototype;
51 + var $Number = Number;
52 + var NumberPrototype = $Number.prototype;
53 + var array_slice = ArrayPrototype.slice;
54 + var array_splice = ArrayPrototype.splice;
55 + var array_push = ArrayPrototype.push;
56 + var array_unshift = ArrayPrototype.unshift;
57 + var array_concat = ArrayPrototype.concat;
58 + var array_join = ArrayPrototype.join;
59 + var call = FunctionPrototype.call;
60 + var apply = FunctionPrototype.apply;
61 + var max = Math.max;
62 + var min = Math.min;
63 +
64 + // Having a toString local variable name breaks in Opera so use to_string.
65 + var to_string = ObjectPrototype.toString;
66 +
67 + /* global Symbol */
68 + /* eslint-disable one-var-declaration-per-line, no-redeclare, max-statements-per-line */
69 + var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
70 + var isCallable; /* inlined from https://npmjs.com/is-callable */ var fnToStr = Function.prototype.toString, constructorRegex = /^\s*class /, isES6ClassFn = function isES6ClassFn(value) { try { var fnStr = fnToStr.call(value); var singleStripped = fnStr.replace(/\/\/.*\n/g, ''); var multiStripped = singleStripped.replace(/\/\*[.\s\S]*\*\//g, ''); var spaceStripped = multiStripped.replace(/\n/mg, ' ').replace(/ {2}/g, ' '); return constructorRegex.test(spaceStripped); } catch (e) { return false; /* not a function */ } }, tryFunctionObject = function tryFunctionObject(value) { try { if (isES6ClassFn(value)) { return false; } fnToStr.call(value); return true; } catch (e) { return false; } }, fnClass = '[object Function]', genClass = '[object GeneratorFunction]', isCallable = function isCallable(value) { if (!value) { return false; } if (typeof value !== 'function' && typeof value !== 'object') { return false; } if (hasToStringTag) { return tryFunctionObject(value); } if (isES6ClassFn(value)) { return false; } var strClass = to_string.call(value); return strClass === fnClass || strClass === genClass; };
71 +
72 + var isRegex; /* inlined from https://npmjs.com/is-regex */ var regexExec = RegExp.prototype.exec, tryRegexExec = function tryRegexExec(value) { try { regexExec.call(value); return true; } catch (e) { return false; } }, regexClass = '[object RegExp]'; isRegex = function isRegex(value) { if (typeof value !== 'object') { return false; } return hasToStringTag ? tryRegexExec(value) : to_string.call(value) === regexClass; };
73 + var isString; /* inlined from https://npmjs.com/is-string */ var strValue = String.prototype.valueOf, tryStringObject = function tryStringObject(value) { try { strValue.call(value); return true; } catch (e) { return false; } }, stringClass = '[object String]'; isString = function isString(value) { if (typeof value === 'string') { return true; } if (typeof value !== 'object') { return false; } return hasToStringTag ? tryStringObject(value) : to_string.call(value) === stringClass; };
74 + /* eslint-enable one-var-declaration-per-line, no-redeclare, max-statements-per-line */
75 +
76 + /* inlined from http://npmjs.com/define-properties */
77 + var supportsDescriptors = $Object.defineProperty && (function () {
78 + try {
79 + var obj = {};
80 + $Object.defineProperty(obj, 'x', { enumerable: false, value: obj });
81 + for (var _ in obj) { // jscs:ignore disallowUnusedVariables
82 + return false;
83 + }
84 + return obj.x === obj;
85 + } catch (e) { /* this is ES3 */
86 + return false;
87 + }
88 + }());
89 + var defineProperties = (function (has) {
90 + // Define configurable, writable, and non-enumerable props
91 + // if they don't exist.
92 + var defineProperty;
93 + if (supportsDescriptors) {
94 + defineProperty = function (object, name, method, forceAssign) {
95 + if (!forceAssign && (name in object)) {
96 + return;
97 + }
98 + $Object.defineProperty(object, name, {
99 + configurable: true,
100 + enumerable: false,
101 + writable: true,
102 + value: method
103 + });
104 + };
105 + } else {
106 + defineProperty = function (object, name, method, forceAssign) {
107 + if (!forceAssign && (name in object)) {
108 + return;
109 + }
110 + object[name] = method;
111 + };
112 + }
113 + return function defineProperties(object, map, forceAssign) {
114 + for (var name in map) {
115 + if (has.call(map, name)) {
116 + defineProperty(object, name, map[name], forceAssign);
117 + }
118 + }
119 + };
120 + }(ObjectPrototype.hasOwnProperty));
121 +
122 + //
123 + // Util
124 + // ======
125 + //
126 +
127 + /* replaceable with https://npmjs.com/package/es-abstract /helpers/isPrimitive */
128 + var isPrimitive = function isPrimitive(input) {
129 + var type = typeof input;
130 + return input === null || (type !== 'object' && type !== 'function');
131 + };
132 +
133 + var isActualNaN = $Number.isNaN || function isActualNaN(x) {
134 + return x !== x;
135 + };
136 +
137 + var ES = {
138 + // ES5 9.4
139 + // http://es5.github.com/#x9.4
140 + // http://jsperf.com/to-integer
141 + /* replaceable with https://npmjs.com/package/es-abstract ES5.ToInteger */
142 + ToInteger: function ToInteger(num) {
143 + var n = +num;
144 + if (isActualNaN(n)) {
145 + n = 0;
146 + } else if (n !== 0 && n !== (1 / 0) && n !== -(1 / 0)) {
147 + n = (n > 0 || -1) * Math.floor(Math.abs(n));
148 + }
149 + return n;
150 + },
151 +
152 + /* replaceable with https://npmjs.com/package/es-abstract ES5.ToPrimitive */
153 + ToPrimitive: function ToPrimitive(input) {
154 + var val, valueOf, toStr;
155 + if (isPrimitive(input)) {
156 + return input;
157 + }
158 + valueOf = input.valueOf;
159 + if (isCallable(valueOf)) {
160 + val = valueOf.call(input);
161 + if (isPrimitive(val)) {
162 + return val;
163 + }
164 + }
165 + toStr = input.toString;
166 + if (isCallable(toStr)) {
167 + val = toStr.call(input);
168 + if (isPrimitive(val)) {
169 + return val;
170 + }
171 + }
172 + throw new TypeError();
173 + },
174 +
175 + // ES5 9.9
176 + // http://es5.github.com/#x9.9
177 + /* replaceable with https://npmjs.com/package/es-abstract ES5.ToObject */
178 + ToObject: function (o) {
179 + if (o == null) { // this matches both null and undefined
180 + throw new TypeError("can't convert " + o + ' to object');
181 + }
182 + return $Object(o);
183 + },
184 +
185 + /* replaceable with https://npmjs.com/package/es-abstract ES5.ToUint32 */
186 + ToUint32: function ToUint32(x) {
187 + return x >>> 0;
188 + }
189 + };
190 +
191 + //
192 + // Function
193 + // ========
194 + //
195 +
196 + // ES-5 15.3.4.5
197 + // http://es5.github.com/#x15.3.4.5
198 +
199 + var Empty = function Empty() {};
200 +
201 + defineProperties(FunctionPrototype, {
202 + bind: function bind(that) { // .length is 1
203 + // 1. Let Target be the this value.
204 + var target = this;
205 + // 2. If IsCallable(Target) is false, throw a TypeError exception.
206 + if (!isCallable(target)) {
207 + throw new TypeError('Function.prototype.bind called on incompatible ' + target);
208 + }
209 + // 3. Let A be a new (possibly empty) internal list of all of the
210 + // argument values provided after thisArg (arg1, arg2 etc), in order.
211 + // XXX slicedArgs will stand in for "A" if used
212 + var args = array_slice.call(arguments, 1); // for normal call
213 + // 4. Let F be a new native ECMAScript object.
214 + // 11. Set the [[Prototype]] internal property of F to the standard
215 + // built-in Function prototype object as specified in 15.3.3.1.
216 + // 12. Set the [[Call]] internal property of F as described in
217 + // 15.3.4.5.1.
218 + // 13. Set the [[Construct]] internal property of F as described in
219 + // 15.3.4.5.2.
220 + // 14. Set the [[HasInstance]] internal property of F as described in
221 + // 15.3.4.5.3.
222 + var bound;
223 + var binder = function () {
224 +
225 + if (this instanceof bound) {
226 + // 15.3.4.5.2 [[Construct]]
227 + // When the [[Construct]] internal method of a function object,
228 + // F that was created using the bind function is called with a
229 + // list of arguments ExtraArgs, the following steps are taken:
230 + // 1. Let target be the value of F's [[TargetFunction]]
231 + // internal property.
232 + // 2. If target has no [[Construct]] internal method, a
233 + // TypeError exception is thrown.
234 + // 3. Let boundArgs be the value of F's [[BoundArgs]] internal
235 + // property.
236 + // 4. Let args be a new list containing the same values as the
237 + // list boundArgs in the same order followed by the same
238 + // values as the list ExtraArgs in the same order.
239 + // 5. Return the result of calling the [[Construct]] internal
240 + // method of target providing args as the arguments.
241 +
242 + var result = apply.call(
243 + target,
244 + this,
245 + array_concat.call(args, array_slice.call(arguments))
246 + );
247 + if ($Object(result) === result) {
248 + return result;
249 + }
250 + return this;
251 +
252 + } else {
253 + // 15.3.4.5.1 [[Call]]
254 + // When the [[Call]] internal method of a function object, F,
255 + // which was created using the bind function is called with a
256 + // this value and a list of arguments ExtraArgs, the following
257 + // steps are taken:
258 + // 1. Let boundArgs be the value of F's [[BoundArgs]] internal
259 + // property.
260 + // 2. Let boundThis be the value of F's [[BoundThis]] internal
261 + // property.
262 + // 3. Let target be the value of F's [[TargetFunction]] internal
263 + // property.
264 + // 4. Let args be a new list containing the same values as the
265 + // list boundArgs in the same order followed by the same
266 + // values as the list ExtraArgs in the same order.
267 + // 5. Return the result of calling the [[Call]] internal method
268 + // of target providing boundThis as the this value and
269 + // providing args as the arguments.
270 +
271 + // equiv: target.call(this, ...boundArgs, ...args)
272 + return apply.call(
273 + target,
274 + that,
275 + array_concat.call(args, array_slice.call(arguments))
276 + );
277 +
278 + }
279 +
280 + };
281 +
282 + // 15. If the [[Class]] internal property of Target is "Function", then
283 + // a. Let L be the length property of Target minus the length of A.
284 + // b. Set the length own property of F to either 0 or L, whichever is
285 + // larger.
286 + // 16. Else set the length own property of F to 0.
287 +
288 + var boundLength = max(0, target.length - args.length);
289 +
290 + // 17. Set the attributes of the length own property of F to the values
291 + // specified in 15.3.5.1.
292 + var boundArgs = [];
293 + for (var i = 0; i < boundLength; i++) {
294 + array_push.call(boundArgs, '$' + i);
295 + }
296 +
297 + // XXX Build a dynamic function with desired amount of arguments is the only
298 + // way to set the length property of a function.
299 + // In environments where Content Security Policies enabled (Chrome extensions,
300 + // for ex.) all use of eval or Function costructor throws an exception.
301 + // However in all of these environments Function.prototype.bind exists
302 + // and so this code will never be executed.
303 + bound = $Function('binder', 'return function (' + array_join.call(boundArgs, ',') + '){ return binder.apply(this, arguments); }')(binder);
304 +
305 + if (target.prototype) {
306 + Empty.prototype = target.prototype;
307 + bound.prototype = new Empty();
308 + // Clean up dangling references.
309 + Empty.prototype = null;
310 + }
311 +
312 + // TODO
313 + // 18. Set the [[Extensible]] internal property of F to true.
314 +
315 + // TODO
316 + // 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
317 + // 20. Call the [[DefineOwnProperty]] internal method of F with
318 + // arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
319 + // thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
320 + // false.
321 + // 21. Call the [[DefineOwnProperty]] internal method of F with
322 + // arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
323 + // [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
324 + // and false.
325 +
326 + // TODO
327 + // NOTE Function objects created using Function.prototype.bind do not
328 + // have a prototype property or the [[Code]], [[FormalParameters]], and
329 + // [[Scope]] internal properties.
330 + // XXX can't delete prototype in pure-js.
331 +
332 + // 22. Return F.
333 + return bound;
334 + }
335 + });
336 +
337 + // _Please note: Shortcuts are defined after `Function.prototype.bind` as we
338 + // use it in defining shortcuts.
339 + var owns = call.bind(ObjectPrototype.hasOwnProperty);
340 + var toStr = call.bind(ObjectPrototype.toString);
341 + var arraySlice = call.bind(array_slice);
342 + var arraySliceApply = apply.bind(array_slice);
343 + var strSlice = call.bind(StringPrototype.slice);
344 + var strSplit = call.bind(StringPrototype.split);
345 + var strIndexOf = call.bind(StringPrototype.indexOf);
346 + var pushCall = call.bind(array_push);
347 + var isEnum = call.bind(ObjectPrototype.propertyIsEnumerable);
348 + var arraySort = call.bind(ArrayPrototype.sort);
349 +
350 + //
351 + // Array
352 + // =====
353 + //
354 +
355 + var isArray = $Array.isArray || function isArray(obj) {
356 + return toStr(obj) === '[object Array]';
357 + };
358 +
359 + // ES5 15.4.4.12
360 + // http://es5.github.com/#x15.4.4.13
361 + // Return len+argCount.
362 + // [bugfix, ielt8]
363 + // IE < 8 bug: [].unshift(0) === undefined but should be "1"
364 + var hasUnshiftReturnValueBug = [].unshift(0) !== 1;
365 + defineProperties(ArrayPrototype, {
366 + unshift: function () {
367 + array_unshift.apply(this, arguments);
368 + return this.length;
369 + }
370 + }, hasUnshiftReturnValueBug);
371 +
372 + // ES5 15.4.3.2
373 + // http://es5.github.com/#x15.4.3.2
374 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
375 + defineProperties($Array, { isArray: isArray });
376 +
377 + // The IsCallable() check in the Array functions
378 + // has been replaced with a strict check on the
379 + // internal class of the object to trap cases where
380 + // the provided function was actually a regular
381 + // expression literal, which in V8 and
382 + // JavaScriptCore is a typeof "function". Only in
383 + // V8 are regular expression literals permitted as
384 + // reduce parameters, so it is desirable in the
385 + // general case for the shim to match the more
386 + // strict and common behavior of rejecting regular
387 + // expressions.
388 +
389 + // ES5 15.4.4.18
390 + // http://es5.github.com/#x15.4.4.18
391 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/forEach
392 +
393 + // Check failure of by-index access of string characters (IE < 9)
394 + // and failure of `0 in boxedString` (Rhino)
395 + var boxedString = $Object('a');
396 + var splitString = boxedString[0] !== 'a' || !(0 in boxedString);
397 +
398 + var properlyBoxesContext = function properlyBoxed(method) {
399 + // Check node 0.6.21 bug where third parameter is not boxed
400 + var properlyBoxesNonStrict = true;
401 + var properlyBoxesStrict = true;
402 + var threwException = false;
403 + if (method) {
404 + try {
405 + method.call('foo', function (_, __, context) {
406 + if (typeof context !== 'object') {
407 + properlyBoxesNonStrict = false;
408 + }
409 + });
410 +
411 + method.call([1], function () {
412 + 'use strict';
413 +
414 + properlyBoxesStrict = typeof this === 'string';
415 + }, 'x');
416 + } catch (e) {
417 + threwException = true;
418 + }
419 + }
420 + return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict;
421 + };
422 +
423 + defineProperties(ArrayPrototype, {
424 + forEach: function forEach(callbackfn/*, thisArg*/) {
425 + var object = ES.ToObject(this);
426 + var self = splitString && isString(this) ? strSplit(this, '') : object;
427 + var i = -1;
428 + var length = ES.ToUint32(self.length);
429 + var T;
430 + if (arguments.length > 1) {
431 + T = arguments[1];
432 + }
433 +
434 + // If no callback function or if callback is not a callable function
435 + if (!isCallable(callbackfn)) {
436 + throw new TypeError('Array.prototype.forEach callback must be a function');
437 + }
438 +
439 + while (++i < length) {
440 + if (i in self) {
441 + // Invoke the callback function with call, passing arguments:
442 + // context, property value, property key, thisArg object
443 + if (typeof T === 'undefined') {
444 + callbackfn(self[i], i, object);
445 + } else {
446 + callbackfn.call(T, self[i], i, object);
447 + }
448 + }
449 + }
450 + }
451 + }, !properlyBoxesContext(ArrayPrototype.forEach));
452 +
453 + // ES5 15.4.4.19
454 + // http://es5.github.com/#x15.4.4.19
455 + // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map
456 + defineProperties(ArrayPrototype, {
457 + map: function map(callbackfn/*, thisArg*/) {
458 + var object = ES.ToObject(this);
459 + var self = splitString && isString(this) ? strSplit(this, '') : object;
460 + var length = ES.ToUint32(self.length);
461 + var result = $Array(length);
462 + var T;
463 + if (arguments.length > 1) {
464 + T = arguments[1];
465 + }
466 +
467 + // If no callback function or if callback is not a callable function
468 + if (!isCallable(callbackfn)) {
469 + throw new TypeError('Array.prototype.map callback must be a function');
470 + }
471 +
472 + for (var i = 0; i < length; i++) {
473 + if (i in self) {
474 + if (typeof T === 'undefined') {
475 + result[i] = callbackfn(self[i], i, object);
476 + } else {
477 + result[i] = callbackfn.call(T, self[i], i, object);
478 + }
479 + }
480 + }
481 + return result;
482 + }
483 + }, !properlyBoxesContext(ArrayPrototype.map));
484 +
485 + // ES5 15.4.4.20
486 + // http://es5.github.com/#x15.4.4.20
487 + // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter
488 + defineProperties(ArrayPrototype, {
489 + filter: function filter(callbackfn/*, thisArg*/) {
490 + var object = ES.ToObject(this);
491 + var self = splitString && isString(this) ? strSplit(this, '') : object;
492 + var length = ES.ToUint32(self.length);
493 + var result = [];
494 + var value;
495 + var T;
496 + if (arguments.length > 1) {
497 + T = arguments[1];
498 + }
499 +
500 + // If no callback function or if callback is not a callable function
501 + if (!isCallable(callbackfn)) {
502 + throw new TypeError('Array.prototype.filter callback must be a function');
503 + }
504 +
505 + for (var i = 0; i < length; i++) {
506 + if (i in self) {
507 + value = self[i];
508 + if (typeof T === 'undefined' ? callbackfn(value, i, object) : callbackfn.call(T, value, i, object)) {
509 + pushCall(result, value);
510 + }
511 + }
512 + }
513 + return result;
514 + }
515 + }, !properlyBoxesContext(ArrayPrototype.filter));
516 +
517 + // ES5 15.4.4.16
518 + // http://es5.github.com/#x15.4.4.16
519 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every
520 + defineProperties(ArrayPrototype, {
521 + every: function every(callbackfn/*, thisArg*/) {
522 + var object = ES.ToObject(this);
523 + var self = splitString && isString(this) ? strSplit(this, '') : object;
524 + var length = ES.ToUint32(self.length);
525 + var T;
526 + if (arguments.length > 1) {
527 + T = arguments[1];
528 + }
529 +
530 + // If no callback function or if callback is not a callable function
531 + if (!isCallable(callbackfn)) {
532 + throw new TypeError('Array.prototype.every callback must be a function');
533 + }
534 +
535 + for (var i = 0; i < length; i++) {
536 + if (i in self && !(typeof T === 'undefined' ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object))) {
537 + return false;
538 + }
539 + }
540 + return true;
541 + }
542 + }, !properlyBoxesContext(ArrayPrototype.every));
543 +
544 + // ES5 15.4.4.17
545 + // http://es5.github.com/#x15.4.4.17
546 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
547 + defineProperties(ArrayPrototype, {
548 + some: function some(callbackfn/*, thisArg */) {
549 + var object = ES.ToObject(this);
550 + var self = splitString && isString(this) ? strSplit(this, '') : object;
551 + var length = ES.ToUint32(self.length);
552 + var T;
553 + if (arguments.length > 1) {
554 + T = arguments[1];
555 + }
556 +
557 + // If no callback function or if callback is not a callable function
558 + if (!isCallable(callbackfn)) {
559 + throw new TypeError('Array.prototype.some callback must be a function');
560 + }
561 +
562 + for (var i = 0; i < length; i++) {
563 + if (i in self && (typeof T === 'undefined' ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object))) {
564 + return true;
565 + }
566 + }
567 + return false;
568 + }
569 + }, !properlyBoxesContext(ArrayPrototype.some));
570 +
571 + // ES5 15.4.4.21
572 + // http://es5.github.com/#x15.4.4.21
573 + // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce
574 + var reduceCoercesToObject = false;
575 + if (ArrayPrototype.reduce) {
576 + reduceCoercesToObject = typeof ArrayPrototype.reduce.call('es5', function (_, __, ___, list) {
577 + return list;
578 + }) === 'object';
579 + }
580 + defineProperties(ArrayPrototype, {
581 + reduce: function reduce(callbackfn/*, initialValue*/) {
582 + var object = ES.ToObject(this);
583 + var self = splitString && isString(this) ? strSplit(this, '') : object;
584 + var length = ES.ToUint32(self.length);
585 +
586 + // If no callback function or if callback is not a callable function
587 + if (!isCallable(callbackfn)) {
588 + throw new TypeError('Array.prototype.reduce callback must be a function');
589 + }
590 +
591 + // no value to return if no initial value and an empty array
592 + if (length === 0 && arguments.length === 1) {
593 + throw new TypeError('reduce of empty array with no initial value');
594 + }
595 +
596 + var i = 0;
597 + var result;
598 + if (arguments.length >= 2) {
599 + result = arguments[1];
600 + } else {
601 + do {
602 + if (i in self) {
603 + result = self[i++];
604 + break;
605 + }
606 +
607 + // if array contains no values, no initial value to return
608 + if (++i >= length) {
609 + throw new TypeError('reduce of empty array with no initial value');
610 + }
611 + } while (true);
612 + }
613 +
614 + for (; i < length; i++) {
615 + if (i in self) {
616 + result = callbackfn(result, self[i], i, object);
617 + }
618 + }
619 +
620 + return result;
621 + }
622 + }, !reduceCoercesToObject);
623 +
624 + // ES5 15.4.4.22
625 + // http://es5.github.com/#x15.4.4.22
626 + // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduceRight
627 + var reduceRightCoercesToObject = false;
628 + if (ArrayPrototype.reduceRight) {
629 + reduceRightCoercesToObject = typeof ArrayPrototype.reduceRight.call('es5', function (_, __, ___, list) {
630 + return list;
631 + }) === 'object';
632 + }
633 + defineProperties(ArrayPrototype, {
634 + reduceRight: function reduceRight(callbackfn/*, initial*/) {
635 + var object = ES.ToObject(this);
636 + var self = splitString && isString(this) ? strSplit(this, '') : object;
637 + var length = ES.ToUint32(self.length);
638 +
639 + // If no callback function or if callback is not a callable function
640 + if (!isCallable(callbackfn)) {
641 + throw new TypeError('Array.prototype.reduceRight callback must be a function');
642 + }
643 +
644 + // no value to return if no initial value, empty array
645 + if (length === 0 && arguments.length === 1) {
646 + throw new TypeError('reduceRight of empty array with no initial value');
647 + }
648 +
649 + var result;
650 + var i = length - 1;
651 + if (arguments.length >= 2) {
652 + result = arguments[1];
653 + } else {
654 + do {
655 + if (i in self) {
656 + result = self[i--];
657 + break;
658 + }
659 +
660 + // if array contains no values, no initial value to return
661 + if (--i < 0) {
662 + throw new TypeError('reduceRight of empty array with no initial value');
663 + }
664 + } while (true);
665 + }
666 +
667 + if (i < 0) {
668 + return result;
669 + }
670 +
671 + do {
672 + if (i in self) {
673 + result = callbackfn(result, self[i], i, object);
674 + }
675 + } while (i--);
676 +
677 + return result;
678 + }
679 + }, !reduceRightCoercesToObject);
680 +
681 + // ES5 15.4.4.14
682 + // http://es5.github.com/#x15.4.4.14
683 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
684 + var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && [0, 1].indexOf(1, 2) !== -1;
685 + defineProperties(ArrayPrototype, {
686 + indexOf: function indexOf(searchElement/*, fromIndex */) {
687 + var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this);
688 + var length = ES.ToUint32(self.length);
689 +
690 + if (length === 0) {
691 + return -1;
692 + }
693 +
694 + var i = 0;
695 + if (arguments.length > 1) {
696 + i = ES.ToInteger(arguments[1]);
697 + }
698 +
699 + // handle negative indices
700 + i = i >= 0 ? i : max(0, length + i);
701 + for (; i < length; i++) {
702 + if (i in self && self[i] === searchElement) {
703 + return i;
704 + }
705 + }
706 + return -1;
707 + }
708 + }, hasFirefox2IndexOfBug);
709 +
710 + // ES5 15.4.4.15
711 + // http://es5.github.com/#x15.4.4.15
712 + // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf
713 + var hasFirefox2LastIndexOfBug = ArrayPrototype.lastIndexOf && [0, 1].lastIndexOf(0, -3) !== -1;
714 + defineProperties(ArrayPrototype, {
715 + lastIndexOf: function lastIndexOf(searchElement/*, fromIndex */) {
716 + var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this);
717 + var length = ES.ToUint32(self.length);
718 +
719 + if (length === 0) {
720 + return -1;
721 + }
722 + var i = length - 1;
723 + if (arguments.length > 1) {
724 + i = min(i, ES.ToInteger(arguments[1]));
725 + }
726 + // handle negative indices
727 + i = i >= 0 ? i : length - Math.abs(i);
728 + for (; i >= 0; i--) {
729 + if (i in self && searchElement === self[i]) {
730 + return i;
731 + }
732 + }
733 + return -1;
734 + }
735 + }, hasFirefox2LastIndexOfBug);
736 +
737 + // ES5 15.4.4.12
738 + // http://es5.github.com/#x15.4.4.12
739 + var spliceNoopReturnsEmptyArray = (function () {
740 + var a = [1, 2];
741 + var result = a.splice();
742 + return a.length === 2 && isArray(result) && result.length === 0;
743 + }());
744 + defineProperties(ArrayPrototype, {
745 + // Safari 5.0 bug where .splice() returns undefined
746 + splice: function splice(start, deleteCount) {
747 + if (arguments.length === 0) {
748 + return [];
749 + } else {
750 + return array_splice.apply(this, arguments);
751 + }
752 + }
753 + }, !spliceNoopReturnsEmptyArray);
754 +
755 + var spliceWorksWithEmptyObject = (function () {
756 + var obj = {};
757 + ArrayPrototype.splice.call(obj, 0, 0, 1);
758 + return obj.length === 1;
759 + }());
760 + defineProperties(ArrayPrototype, {
761 + splice: function splice(start, deleteCount) {
762 + if (arguments.length === 0) {
763 + return [];
764 + }
765 + var args = arguments;
766 + this.length = max(ES.ToInteger(this.length), 0);
767 + if (arguments.length > 0 && typeof deleteCount !== 'number') {
768 + args = arraySlice(arguments);
769 + if (args.length < 2) {
770 + pushCall(args, this.length - start);
771 + } else {
772 + args[1] = ES.ToInteger(deleteCount);
773 + }
774 + }
775 + return array_splice.apply(this, args);
776 + }
777 + }, !spliceWorksWithEmptyObject);
778 + var spliceWorksWithLargeSparseArrays = (function () {
779 + // Per https://github.com/es-shims/es5-shim/issues/295
780 + // Safari 7/8 breaks with sparse arrays of size 1e5 or greater
781 + var arr = new $Array(1e5);
782 + // note: the index MUST be 8 or larger or the test will false pass
783 + arr[8] = 'x';
784 + arr.splice(1, 1);
785 + // note: this test must be defined *after* the indexOf shim
786 + // per https://github.com/es-shims/es5-shim/issues/313
787 + return arr.indexOf('x') === 7;
788 + }());
789 + var spliceWorksWithSmallSparseArrays = (function () {
790 + // Per https://github.com/es-shims/es5-shim/issues/295
791 + // Opera 12.15 breaks on this, no idea why.
792 + var n = 256;
793 + var arr = [];
794 + arr[n] = 'a';
795 + arr.splice(n + 1, 0, 'b');
796 + return arr[n] === 'a';
797 + }());
798 + defineProperties(ArrayPrototype, {
799 + splice: function splice(start, deleteCount) {
800 + var O = ES.ToObject(this);
801 + var A = [];
802 + var len = ES.ToUint32(O.length);
803 + var relativeStart = ES.ToInteger(start);
804 + var actualStart = relativeStart < 0 ? max((len + relativeStart), 0) : min(relativeStart, len);
805 + var actualDeleteCount = min(max(ES.ToInteger(deleteCount), 0), len - actualStart);
806 +
807 + var k = 0;
808 + var from;
809 + while (k < actualDeleteCount) {
810 + from = $String(actualStart + k);
811 + if (owns(O, from)) {
812 + A[k] = O[from];
813 + }
814 + k += 1;
815 + }
816 +
817 + var items = arraySlice(arguments, 2);
818 + var itemCount = items.length;
819 + var to;
820 + if (itemCount < actualDeleteCount) {
821 + k = actualStart;
822 + var maxK = len - actualDeleteCount;
823 + while (k < maxK) {
824 + from = $String(k + actualDeleteCount);
825 + to = $String(k + itemCount);
826 + if (owns(O, from)) {
827 + O[to] = O[from];
828 + } else {
829 + delete O[to];
830 + }
831 + k += 1;
832 + }
833 + k = len;
834 + var minK = len - actualDeleteCount + itemCount;
835 + while (k > minK) {
836 + delete O[k - 1];
837 + k -= 1;
838 + }
839 + } else if (itemCount > actualDeleteCount) {
840 + k = len - actualDeleteCount;
841 + while (k > actualStart) {
842 + from = $String(k + actualDeleteCount - 1);
843 + to = $String(k + itemCount - 1);
844 + if (owns(O, from)) {
845 + O[to] = O[from];
846 + } else {
847 + delete O[to];
848 + }
849 + k -= 1;
850 + }
851 + }
852 + k = actualStart;
853 + for (var i = 0; i < items.length; ++i) {
854 + O[k] = items[i];
855 + k += 1;
856 + }
857 + O.length = len - actualDeleteCount + itemCount;
858 +
859 + return A;
860 + }
861 + }, !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays);
862 +
863 + var originalJoin = ArrayPrototype.join;
864 + var hasStringJoinBug;
865 + try {
866 + hasStringJoinBug = Array.prototype.join.call('123', ',') !== '1,2,3';
867 + } catch (e) {
868 + hasStringJoinBug = true;
869 + }
870 + if (hasStringJoinBug) {
871 + defineProperties(ArrayPrototype, {
872 + join: function join(separator) {
873 + var sep = typeof separator === 'undefined' ? ',' : separator;
874 + return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep);
875 + }
876 + }, hasStringJoinBug);
877 + }
878 +
879 + var hasJoinUndefinedBug = [1, 2].join(undefined) !== '1,2';
880 + if (hasJoinUndefinedBug) {
881 + defineProperties(ArrayPrototype, {
882 + join: function join(separator) {
883 + var sep = typeof separator === 'undefined' ? ',' : separator;
884 + return originalJoin.call(this, sep);
885 + }
886 + }, hasJoinUndefinedBug);
887 + }
888 +
889 + var pushShim = function push(item) {
890 + var O = ES.ToObject(this);
891 + var n = ES.ToUint32(O.length);
892 + var i = 0;
893 + while (i < arguments.length) {
894 + O[n + i] = arguments[i];
895 + i += 1;
896 + }
897 + O.length = n + i;
898 + return n + i;
899 + };
900 +
901 + var pushIsNotGeneric = (function () {
902 + var obj = {};
903 + var result = Array.prototype.push.call(obj, undefined);
904 + return result !== 1 || obj.length !== 1 || typeof obj[0] !== 'undefined' || !owns(obj, 0);
905 + }());
906 + defineProperties(ArrayPrototype, {
907 + push: function push(item) {
908 + if (isArray(this)) {
909 + return array_push.apply(this, arguments);
910 + }
911 + return pushShim.apply(this, arguments);
912 + }
913 + }, pushIsNotGeneric);
914 +
915 + // This fixes a very weird bug in Opera 10.6 when pushing `undefined
916 + var pushUndefinedIsWeird = (function () {
917 + var arr = [];
918 + var result = arr.push(undefined);
919 + return result !== 1 || arr.length !== 1 || typeof arr[0] !== 'undefined' || !owns(arr, 0);
920 + }());
921 + defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird);
922 +
923 + // ES5 15.2.3.14
924 + // http://es5.github.io/#x15.4.4.10
925 + // Fix boxed string bug
926 + defineProperties(ArrayPrototype, {
927 + slice: function (start, end) {
928 + var arr = isString(this) ? strSplit(this, '') : this;
929 + return arraySliceApply(arr, arguments);
930 + }
931 + }, splitString);
932 +
933 + var sortIgnoresNonFunctions = (function () {
934 + try {
935 + [1, 2].sort(null);
936 + [1, 2].sort({});
937 + return true;
938 + } catch (e) {}
939 + return false;
940 + }());
941 + var sortThrowsOnRegex = (function () {
942 + // this is a problem in Firefox 4, in which `typeof /a/ === 'function'`
943 + try {
944 + [1, 2].sort(/a/);
945 + return false;
946 + } catch (e) {}
947 + return true;
948 + }());
949 + var sortIgnoresUndefined = (function () {
950 + // applies in IE 8, for one.
951 + try {
952 + [1, 2].sort(undefined);
953 + return true;
954 + } catch (e) {}
955 + return false;
956 + }());
957 + defineProperties(ArrayPrototype, {
958 + sort: function sort(compareFn) {
959 + if (typeof compareFn === 'undefined') {
960 + return arraySort(this);
961 + }
962 + if (!isCallable(compareFn)) {
963 + throw new TypeError('Array.prototype.sort callback must be a function');
964 + }
965 + return arraySort(this, compareFn);
966 + }
967 + }, sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex);
968 +
969 + //
970 + // Object
971 + // ======
972 + //
973 +
974 + // ES5 15.2.3.14
975 + // http://es5.github.com/#x15.2.3.14
976 +
977 + // http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-implementation
978 + var hasDontEnumBug = !isEnum({ 'toString': null }, 'toString');
979 + var hasProtoEnumBug = isEnum(function () {}, 'prototype');
980 + var hasStringEnumBug = !owns('x', '0');
981 + var equalsConstructorPrototype = function (o) {
982 + var ctor = o.constructor;
983 + return ctor && ctor.prototype === o;
984 + };
985 + var blacklistedKeys = {
986 + $window: true,
987 + $console: true,
988 + $parent: true,
989 + $self: true,
990 + $frame: true,
991 + $frames: true,
992 + $frameElement: true,
993 + $webkitIndexedDB: true,
994 + $webkitStorageInfo: true,
995 + $external: true
996 + };
997 + var hasAutomationEqualityBug = (function () {
998 + /* globals window */
999 + if (typeof window === 'undefined') {
1000 + return false;
1001 + }
1002 + for (var k in window) {
1003 + try {
1004 + if (!blacklistedKeys['$' + k] && owns(window, k) && window[k] !== null && typeof window[k] === 'object') {
1005 + equalsConstructorPrototype(window[k]);
1006 + }
1007 + } catch (e) {
1008 + return true;
1009 + }
1010 + }
1011 + return false;
1012 + }());
1013 + var equalsConstructorPrototypeIfNotBuggy = function (object) {
1014 + if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
1015 + return equalsConstructorPrototype(object);
1016 + }
1017 + try {
1018 + return equalsConstructorPrototype(object);
1019 + } catch (e) {
1020 + return false;
1021 + }
1022 + };
1023 + var dontEnums = [
1024 + 'toString',
1025 + 'toLocaleString',
1026 + 'valueOf',
1027 + 'hasOwnProperty',
1028 + 'isPrototypeOf',
1029 + 'propertyIsEnumerable',
1030 + 'constructor'
1031 + ];
1032 + var dontEnumsLength = dontEnums.length;
1033 +
1034 + // taken directly from https://github.com/ljharb/is-arguments/blob/master/index.js
1035 + // can be replaced with require('is-arguments') if we ever use a build process instead
1036 + var isStandardArguments = function isArguments(value) {
1037 + return toStr(value) === '[object Arguments]';
1038 + };
1039 + var isLegacyArguments = function isArguments(value) {
1040 + return value !== null &&
1041 + typeof value === 'object' &&
1042 + typeof value.length === 'number' &&
1043 + value.length >= 0 &&
1044 + !isArray(value) &&
1045 + isCallable(value.callee);
1046 + };
1047 + var isArguments = isStandardArguments(arguments) ? isStandardArguments : isLegacyArguments;
1048 +
1049 + defineProperties($Object, {
1050 + keys: function keys(object) {
1051 + var isFn = isCallable(object);
1052 + var isArgs = isArguments(object);
1053 + var isObject = object !== null && typeof object === 'object';
1054 + var isStr = isObject && isString(object);
1055 +
1056 + if (!isObject && !isFn && !isArgs) {
1057 + throw new TypeError('Object.keys called on a non-object');
1058 + }
1059 +
1060 + var theKeys = [];
1061 + var skipProto = hasProtoEnumBug && isFn;
1062 + if ((isStr && hasStringEnumBug) || isArgs) {
1063 + for (var i = 0; i < object.length; ++i) {
1064 + pushCall(theKeys, $String(i));
1065 + }
1066 + }
1067 +
1068 + if (!isArgs) {
1069 + for (var name in object) {
1070 + if (!(skipProto && name === 'prototype') && owns(object, name)) {
1071 + pushCall(theKeys, $String(name));
1072 + }
1073 + }
1074 + }
1075 +
1076 + if (hasDontEnumBug) {
1077 + var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
1078 + for (var j = 0; j < dontEnumsLength; j++) {
1079 + var dontEnum = dontEnums[j];
1080 + if (!(skipConstructor && dontEnum === 'constructor') && owns(object, dontEnum)) {
1081 + pushCall(theKeys, dontEnum);
1082 + }
1083 + }
1084 + }
1085 + return theKeys;
1086 + }
1087 + });
1088 +
1089 + var keysWorksWithArguments = $Object.keys && (function () {
1090 + // Safari 5.0 bug
1091 + return $Object.keys(arguments).length === 2;
1092 + }(1, 2));
1093 + var keysHasArgumentsLengthBug = $Object.keys && (function () {
1094 + var argKeys = $Object.keys(arguments);
1095 + return arguments.length !== 1 || argKeys.length !== 1 || argKeys[0] !== 1;
1096 + }(1));
1097 + var originalKeys = $Object.keys;
1098 + defineProperties($Object, {
1099 + keys: function keys(object) {
1100 + if (isArguments(object)) {
1101 + return originalKeys(arraySlice(object));
1102 + } else {
1103 + return originalKeys(object);
1104 + }
1105 + }
1106 + }, !keysWorksWithArguments || keysHasArgumentsLengthBug);
1107 +
1108 + //
1109 + // Date
1110 + // ====
1111 + //
1112 +
1113 + var hasNegativeMonthYearBug = new Date(-3509827329600292).getUTCMonth() !== 0;
1114 + var aNegativeTestDate = new Date(-1509842289600292);
1115 + var aPositiveTestDate = new Date(1449662400000);
1116 + var hasToUTCStringFormatBug = aNegativeTestDate.toUTCString() !== 'Mon, 01 Jan -45875 11:59:59 GMT';
1117 + var hasToDateStringFormatBug;
1118 + var hasToStringFormatBug;
1119 + var timeZoneOffset = aNegativeTestDate.getTimezoneOffset();
1120 + if (timeZoneOffset < -720) {
1121 + hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Tue Jan 02 -45875';
1122 + hasToStringFormatBug = !(/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
1123 + } else {
1124 + hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Mon Jan 01 -45875';
1125 + hasToStringFormatBug = !(/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
1126 + }
1127 +
1128 + var originalGetFullYear = call.bind(Date.prototype.getFullYear);
1129 + var originalGetMonth = call.bind(Date.prototype.getMonth);
1130 + var originalGetDate = call.bind(Date.prototype.getDate);
1131 + var originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear);
1132 + var originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth);
1133 + var originalGetUTCDate = call.bind(Date.prototype.getUTCDate);
1134 + var originalGetUTCDay = call.bind(Date.prototype.getUTCDay);
1135 + var originalGetUTCHours = call.bind(Date.prototype.getUTCHours);
1136 + var originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes);
1137 + var originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds);
1138 + var originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds);
1139 + var dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
1140 + var monthName = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
1141 + var daysInMonth = function daysInMonth(month, year) {
1142 + return originalGetDate(new Date(year, month, 0));
1143 + };
1144 +
1145 + defineProperties(Date.prototype, {
1146 + getFullYear: function getFullYear() {
1147 + if (!this || !(this instanceof Date)) {
1148 + throw new TypeError('this is not a Date object.');
1149 + }
1150 + var year = originalGetFullYear(this);
1151 + if (year < 0 && originalGetMonth(this) > 11) {
1152 + return year + 1;
1153 + }
1154 + return year;
1155 + },
1156 + getMonth: function getMonth() {
1157 + if (!this || !(this instanceof Date)) {
1158 + throw new TypeError('this is not a Date object.');
1159 + }
1160 + var year = originalGetFullYear(this);
1161 + var month = originalGetMonth(this);
1162 + if (year < 0 && month > 11) {
1163 + return 0;
1164 + }
1165 + return month;
1166 + },
1167 + getDate: function getDate() {
1168 + if (!this || !(this instanceof Date)) {
1169 + throw new TypeError('this is not a Date object.');
1170 + }
1171 + var year = originalGetFullYear(this);
1172 + var month = originalGetMonth(this);
1173 + var date = originalGetDate(this);
1174 + if (year < 0 && month > 11) {
1175 + if (month === 12) {
1176 + return date;
1177 + }
1178 + var days = daysInMonth(0, year + 1);
1179 + return (days - date) + 1;
1180 + }
1181 + return date;
1182 + },
1183 + getUTCFullYear: function getUTCFullYear() {
1184 + if (!this || !(this instanceof Date)) {
1185 + throw new TypeError('this is not a Date object.');
1186 + }
1187 + var year = originalGetUTCFullYear(this);
1188 + if (year < 0 && originalGetUTCMonth(this) > 11) {
1189 + return year + 1;
1190 + }
1191 + return year;
1192 + },
1193 + getUTCMonth: function getUTCMonth() {
1194 + if (!this || !(this instanceof Date)) {
1195 + throw new TypeError('this is not a Date object.');
1196 + }
1197 + var year = originalGetUTCFullYear(this);
1198 + var month = originalGetUTCMonth(this);
1199 + if (year < 0 && month > 11) {
1200 + return 0;
1201 + }
1202 + return month;
1203 + },
1204 + getUTCDate: function getUTCDate() {
1205 + if (!this || !(this instanceof Date)) {
1206 + throw new TypeError('this is not a Date object.');
1207 + }
1208 + var year = originalGetUTCFullYear(this);
1209 + var month = originalGetUTCMonth(this);
1210 + var date = originalGetUTCDate(this);
1211 + if (year < 0 && month > 11) {
1212 + if (month === 12) {
1213 + return date;
1214 + }
1215 + var days = daysInMonth(0, year + 1);
1216 + return (days - date) + 1;
1217 + }
1218 + return date;
1219 + }
1220 + }, hasNegativeMonthYearBug);
1221 +
1222 + defineProperties(Date.prototype, {
1223 + toUTCString: function toUTCString() {
1224 + if (!this || !(this instanceof Date)) {
1225 + throw new TypeError('this is not a Date object.');
1226 + }
1227 + var day = originalGetUTCDay(this);
1228 + var date = originalGetUTCDate(this);
1229 + var month = originalGetUTCMonth(this);
1230 + var year = originalGetUTCFullYear(this);
1231 + var hour = originalGetUTCHours(this);
1232 + var minute = originalGetUTCMinutes(this);
1233 + var second = originalGetUTCSeconds(this);
1234 + return dayName[day] + ', ' +
1235 + (date < 10 ? '0' + date : date) + ' ' +
1236 + monthName[month] + ' ' +
1237 + year + ' ' +
1238 + (hour < 10 ? '0' + hour : hour) + ':' +
1239 + (minute < 10 ? '0' + minute : minute) + ':' +
1240 + (second < 10 ? '0' + second : second) + ' GMT';
1241 + }
1242 + }, hasNegativeMonthYearBug || hasToUTCStringFormatBug);
1243 +
1244 + // Opera 12 has `,`
1245 + defineProperties(Date.prototype, {
1246 + toDateString: function toDateString() {
1247 + if (!this || !(this instanceof Date)) {
1248 + throw new TypeError('this is not a Date object.');
1249 + }
1250 + var day = this.getDay();
1251 + var date = this.getDate();
1252 + var month = this.getMonth();
1253 + var year = this.getFullYear();
1254 + return dayName[day] + ' ' +
1255 + monthName[month] + ' ' +
1256 + (date < 10 ? '0' + date : date) + ' ' +
1257 + year;
1258 + }
1259 + }, hasNegativeMonthYearBug || hasToDateStringFormatBug);
1260 +
1261 + // can't use defineProperties here because of toString enumeration issue in IE <= 8
1262 + if (hasNegativeMonthYearBug || hasToStringFormatBug) {
1263 + Date.prototype.toString = function toString() {
1264 + if (!this || !(this instanceof Date)) {
1265 + throw new TypeError('this is not a Date object.');
1266 + }
1267 + var day = this.getDay();
1268 + var date = this.getDate();
1269 + var month = this.getMonth();
1270 + var year = this.getFullYear();
1271 + var hour = this.getHours();
1272 + var minute = this.getMinutes();
1273 + var second = this.getSeconds();
1274 + var timezoneOffset = this.getTimezoneOffset();
1275 + var hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60);
1276 + var minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60);
1277 + return dayName[day] + ' ' +
1278 + monthName[month] + ' ' +
1279 + (date < 10 ? '0' + date : date) + ' ' +
1280 + year + ' ' +
1281 + (hour < 10 ? '0' + hour : hour) + ':' +
1282 + (minute < 10 ? '0' + minute : minute) + ':' +
1283 + (second < 10 ? '0' + second : second) + ' GMT' +
1284 + (timezoneOffset > 0 ? '-' : '+') +
1285 + (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) +
1286 + (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset);
1287 + };
1288 + if (supportsDescriptors) {
1289 + $Object.defineProperty(Date.prototype, 'toString', {
1290 + configurable: true,
1291 + enumerable: false,
1292 + writable: true
1293 + });
1294 + }
1295 + }
1296 +
1297 + // ES5 15.9.5.43
1298 + // http://es5.github.com/#x15.9.5.43
1299 + // This function returns a String value represent the instance in time
1300 + // represented by this Date object. The format of the String is the Date Time
1301 + // string format defined in 15.9.1.15. All fields are present in the String.
1302 + // The time zone is always UTC, denoted by the suffix Z. If the time value of
1303 + // this object is not a finite Number a RangeError exception is thrown.
1304 + var negativeDate = -62198755200000;
1305 + var negativeYearString = '-000001';
1306 + var hasNegativeDateBug = Date.prototype.toISOString && new Date(negativeDate).toISOString().indexOf(negativeYearString) === -1;
1307 + var hasSafari51DateBug = Date.prototype.toISOString && new Date(-1).toISOString() !== '1969-12-31T23:59:59.999Z';
1308 +
1309 + var getTime = call.bind(Date.prototype.getTime);
1310 +
1311 + defineProperties(Date.prototype, {
1312 + toISOString: function toISOString() {
1313 + if (!isFinite(this) || !isFinite(getTime(this))) {
1314 + // Adope Photoshop requires the second check.
1315 + throw new RangeError('Date.prototype.toISOString called on non-finite value.');
1316 + }
1317 +
1318 + var year = originalGetUTCFullYear(this);
1319 +
1320 + var month = originalGetUTCMonth(this);
1321 + // see https://github.com/es-shims/es5-shim/issues/111
1322 + year += Math.floor(month / 12);
1323 + month = (month % 12 + 12) % 12;
1324 +
1325 + // the date time string format is specified in 15.9.1.15.
1326 + var result = [month + 1, originalGetUTCDate(this), originalGetUTCHours(this), originalGetUTCMinutes(this), originalGetUTCSeconds(this)];
1327 + year = (
1328 + (year < 0 ? '-' : (year > 9999 ? '+' : '')) +
1329 + strSlice('00000' + Math.abs(year), (0 <= year && year <= 9999) ? -4 : -6)
1330 + );
1331 +
1332 + for (var i = 0; i < result.length; ++i) {
1333 + // pad months, days, hours, minutes, and seconds to have two digits.
1334 + result[i] = strSlice('00' + result[i], -2);
1335 + }
1336 + // pad milliseconds to have three digits.
1337 + return (
1338 + year + '-' + arraySlice(result, 0, 2).join('-') +
1339 + 'T' + arraySlice(result, 2).join(':') + '.' +
1340 + strSlice('000' + originalGetUTCMilliseconds(this), -3) + 'Z'
1341 + );
1342 + }
1343 + }, hasNegativeDateBug || hasSafari51DateBug);
1344 +
1345 + // ES5 15.9.5.44
1346 + // http://es5.github.com/#x15.9.5.44
1347 + // This function provides a String representation of a Date object for use by
1348 + // JSON.stringify (15.12.3).
1349 + var dateToJSONIsSupported = (function () {
1350 + try {
1351 + return Date.prototype.toJSON &&
1352 + new Date(NaN).toJSON() === null &&
1353 + new Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1 &&
1354 + Date.prototype.toJSON.call({ // generic
1355 + toISOString: function () { return true; }
1356 + });
1357 + } catch (e) {
1358 + return false;
1359 + }
1360 + }());
1361 + if (!dateToJSONIsSupported) {
1362 + Date.prototype.toJSON = function toJSON(key) {
1363 + // When the toJSON method is called with argument key, the following
1364 + // steps are taken:
1365 +
1366 + // 1. Let O be the result of calling ToObject, giving it the this
1367 + // value as its argument.
1368 + // 2. Let tv be ES.ToPrimitive(O, hint Number).
1369 + var O = $Object(this);
1370 + var tv = ES.ToPrimitive(O);
1371 + // 3. If tv is a Number and is not finite, return null.
1372 + if (typeof tv === 'number' && !isFinite(tv)) {
1373 + return null;
1374 + }
1375 + // 4. Let toISO be the result of calling the [[Get]] internal method of
1376 + // O with argument "toISOString".
1377 + var toISO = O.toISOString;
1378 + // 5. If IsCallable(toISO) is false, throw a TypeError exception.
1379 + if (!isCallable(toISO)) {
1380 + throw new TypeError('toISOString property is not callable');
1381 + }
1382 + // 6. Return the result of calling the [[Call]] internal method of
1383 + // toISO with O as the this value and an empty argument list.
1384 + return toISO.call(O);
1385 +
1386 + // NOTE 1 The argument is ignored.
1387 +
1388 + // NOTE 2 The toJSON function is intentionally generic; it does not
1389 + // require that its this value be a Date object. Therefore, it can be
1390 + // transferred to other kinds of objects for use as a method. However,
1391 + // it does require that any such object have a toISOString method. An
1392 + // object is free to use the argument key to filter its
1393 + // stringification.
1394 + };
1395 + }
1396 +
1397 + // ES5 15.9.4.2
1398 + // http://es5.github.com/#x15.9.4.2
1399 + // based on work shared by Daniel Friesen (dantman)
1400 + // http://gist.github.com/303249
1401 + var supportsExtendedYears = Date.parse('+033658-09-27T01:46:40.000Z') === 1e15;
1402 + var acceptsInvalidDates = !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || !isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || !isNaN(Date.parse('2012-12-31T23:59:60.000Z'));
1403 + var doesNotParseY2KNewYear = isNaN(Date.parse('2000-01-01T00:00:00.000Z'));
1404 + if (doesNotParseY2KNewYear || acceptsInvalidDates || !supportsExtendedYears) {
1405 + // XXX global assignment won't work in embeddings that use
1406 + // an alternate object for the context.
1407 + /* global Date: true */
1408 + /* eslint-disable no-undef */
1409 + var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
1410 + var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime());
1411 + /* eslint-disable no-implicit-globals */
1412 + Date = (function (NativeDate) {
1413 + /* eslint-enable no-implicit-globals */
1414 + /* eslint-enable no-undef */
1415 + // Date.length === 7
1416 + var DateShim = function Date(Y, M, D, h, m, s, ms) {
1417 + var length = arguments.length;
1418 + var date;
1419 + if (this instanceof NativeDate) {
1420 + var seconds = s;
1421 + var millis = ms;
1422 + if (hasSafariSignedIntBug && length >= 7 && ms > maxSafeUnsigned32Bit) {
1423 + // work around a Safari 8/9 bug where it treats the seconds as signed
1424 + var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit;
1425 + var sToShift = Math.floor(msToShift / 1e3);
1426 + seconds += sToShift;
1427 + millis -= sToShift * 1e3;
1428 + }
1429 + date = length === 1 && $String(Y) === Y ? // isString(Y)
1430 + // We explicitly pass it through parse:
1431 + new NativeDate(DateShim.parse(Y)) :
1432 + // We have to manually make calls depending on argument
1433 + // length here
1434 + length >= 7 ? new NativeDate(Y, M, D, h, m, seconds, millis) :
1435 + length >= 6 ? new NativeDate(Y, M, D, h, m, seconds) :
1436 + length >= 5 ? new NativeDate(Y, M, D, h, m) :
1437 + length >= 4 ? new NativeDate(Y, M, D, h) :
1438 + length >= 3 ? new NativeDate(Y, M, D) :
1439 + length >= 2 ? new NativeDate(Y, M) :
1440 + length >= 1 ? new NativeDate(Y instanceof NativeDate ? +Y : Y) :
1441 + new NativeDate();
1442 + } else {
1443 + date = NativeDate.apply(this, arguments);
1444 + }
1445 + if (!isPrimitive(date)) {
1446 + // Prevent mixups with unfixed Date object
1447 + defineProperties(date, { constructor: DateShim }, true);
1448 + }
1449 + return date;
1450 + };
1451 +
1452 + // 15.9.1.15 Date Time String Format.
1453 + var isoDateExpression = new RegExp('^' +
1454 + '(\\d{4}|[+-]\\d{6})' + // four-digit year capture or sign +
1455 + // 6-digit extended year
1456 + '(?:-(\\d{2})' + // optional month capture
1457 + '(?:-(\\d{2})' + // optional day capture
1458 + '(?:' + // capture hours:minutes:seconds.milliseconds
1459 + 'T(\\d{2})' + // hours capture
1460 + ':(\\d{2})' + // minutes capture
1461 + '(?:' + // optional :seconds.milliseconds
1462 + ':(\\d{2})' + // seconds capture
1463 + '(?:(\\.\\d{1,}))?' + // milliseconds capture
1464 + ')?' +
1465 + '(' + // capture UTC offset component
1466 + 'Z|' + // UTC capture
1467 + '(?:' + // offset specifier +/-hours:minutes
1468 + '([-+])' + // sign capture
1469 + '(\\d{2})' + // hours offset capture
1470 + ':(\\d{2})' + // minutes offset capture
1471 + ')' +
1472 + ')?)?)?)?' +
1473 + '$');
1474 +
1475 + var months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
1476 +
1477 + var dayFromMonth = function dayFromMonth(year, month) {
1478 + var t = month > 1 ? 1 : 0;
1479 + return (
1480 + months[month] +
1481 + Math.floor((year - 1969 + t) / 4) -
1482 + Math.floor((year - 1901 + t) / 100) +
1483 + Math.floor((year - 1601 + t) / 400) +
1484 + 365 * (year - 1970)
1485 + );
1486 + };
1487 +
1488 + var toUTC = function toUTC(t) {
1489 + var s = 0;
1490 + var ms = t;
1491 + if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) {
1492 + // work around a Safari 8/9 bug where it treats the seconds as signed
1493 + var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit;
1494 + var sToShift = Math.floor(msToShift / 1e3);
1495 + s += sToShift;
1496 + ms -= sToShift * 1e3;
1497 + }
1498 + return $Number(new NativeDate(1970, 0, 1, 0, 0, s, ms));
1499 + };
1500 +
1501 + // Copy any custom methods a 3rd party library may have added
1502 + for (var key in NativeDate) {
1503 + if (owns(NativeDate, key)) {
1504 + DateShim[key] = NativeDate[key];
1505 + }
1506 + }
1507 +
1508 + // Copy "native" methods explicitly; they may be non-enumerable
1509 + defineProperties(DateShim, {
1510 + now: NativeDate.now,
1511 + UTC: NativeDate.UTC
1512 + }, true);
1513 + DateShim.prototype = NativeDate.prototype;
1514 + defineProperties(DateShim.prototype, {
1515 + constructor: DateShim
1516 + }, true);
1517 +
1518 + // Upgrade Date.parse to handle simplified ISO 8601 strings
1519 + var parseShim = function parse(string) {
1520 + var match = isoDateExpression.exec(string);
1521 + if (match) {
1522 + // parse months, days, hours, minutes, seconds, and milliseconds
1523 + // provide default values if necessary
1524 + // parse the UTC offset component
1525 + var year = $Number(match[1]),
1526 + month = $Number(match[2] || 1) - 1,
1527 + day = $Number(match[3] || 1) - 1,
1528 + hour = $Number(match[4] || 0),
1529 + minute = $Number(match[5] || 0),
1530 + second = $Number(match[6] || 0),
1531 + millisecond = Math.floor($Number(match[7] || 0) * 1000),
1532 + // When time zone is missed, local offset should be used
1533 + // (ES 5.1 bug)
1534 + // see https://bugs.ecmascript.org/show_bug.cgi?id=112
1535 + isLocalTime = Boolean(match[4] && !match[8]),
1536 + signOffset = match[9] === '-' ? 1 : -1,
1537 + hourOffset = $Number(match[10] || 0),
1538 + minuteOffset = $Number(match[11] || 0),
1539 + result;
1540 + var hasMinutesOrSecondsOrMilliseconds = minute > 0 || second > 0 || millisecond > 0;
1541 + if (
1542 + hour < (hasMinutesOrSecondsOrMilliseconds ? 24 : 25) &&
1543 + minute < 60 && second < 60 && millisecond < 1000 &&
1544 + month > -1 && month < 12 && hourOffset < 24 &&
1545 + minuteOffset < 60 && // detect invalid offsets
1546 + day > -1 &&
1547 + day < (dayFromMonth(year, month + 1) - dayFromMonth(year, month))
1548 + ) {
1549 + result = (
1550 + (dayFromMonth(year, month) + day) * 24 +
1551 + hour +
1552 + hourOffset * signOffset
1553 + ) * 60;
1554 + result = (
1555 + (result + minute + minuteOffset * signOffset) * 60 +
1556 + second
1557 + ) * 1000 + millisecond;
1558 + if (isLocalTime) {
1559 + result = toUTC(result);
1560 + }
1561 + if (-8.64e15 <= result && result <= 8.64e15) {
1562 + return result;
1563 + }
1564 + }
1565 + return NaN;
1566 + }
1567 + return NativeDate.parse.apply(this, arguments);
1568 + };
1569 + defineProperties(DateShim, { parse: parseShim });
1570 +
1571 + return DateShim;
1572 + }(Date));
1573 + /* global Date: false */
1574 + }
1575 +
1576 + // ES5 15.9.4.4
1577 + // http://es5.github.com/#x15.9.4.4
1578 + if (!Date.now) {
1579 + Date.now = function now() {
1580 + return new Date().getTime();
1581 + };
1582 + }
1583 +
1584 + //
1585 + // Number
1586 + // ======
1587 + //
1588 +
1589 + // ES5.1 15.7.4.5
1590 + // http://es5.github.com/#x15.7.4.5
1591 + var hasToFixedBugs = NumberPrototype.toFixed && (
1592 + (0.00008).toFixed(3) !== '0.000' ||
1593 + (0.9).toFixed(0) !== '1' ||
1594 + (1.255).toFixed(2) !== '1.25' ||
1595 + (1000000000000000128).toFixed(0) !== '1000000000000000128'
1596 + );
1597 +
1598 + var toFixedHelpers = {
1599 + base: 1e7,
1600 + size: 6,
1601 + data: [0, 0, 0, 0, 0, 0],
1602 + multiply: function multiply(n, c) {
1603 + var i = -1;
1604 + var c2 = c;
1605 + while (++i < toFixedHelpers.size) {
1606 + c2 += n * toFixedHelpers.data[i];
1607 + toFixedHelpers.data[i] = c2 % toFixedHelpers.base;
1608 + c2 = Math.floor(c2 / toFixedHelpers.base);
1609 + }
1610 + },
1611 + divide: function divide(n) {
1612 + var i = toFixedHelpers.size;
1613 + var c = 0;
1614 + while (--i >= 0) {
1615 + c += toFixedHelpers.data[i];
1616 + toFixedHelpers.data[i] = Math.floor(c / n);
1617 + c = (c % n) * toFixedHelpers.base;
1618 + }
1619 + },
1620 + numToString: function numToString() {
1621 + var i = toFixedHelpers.size;
1622 + var s = '';
1623 + while (--i >= 0) {
1624 + if (s !== '' || i === 0 || toFixedHelpers.data[i] !== 0) {
1625 + var t = $String(toFixedHelpers.data[i]);
1626 + if (s === '') {
1627 + s = t;
1628 + } else {
1629 + s += strSlice('0000000', 0, 7 - t.length) + t;
1630 + }
1631 + }
1632 + }
1633 + return s;
1634 + },
1635 + pow: function pow(x, n, acc) {
1636 + return (n === 0 ? acc : (n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc)));
1637 + },
1638 + log: function log(x) {
1639 + var n = 0;
1640 + var x2 = x;
1641 + while (x2 >= 4096) {
1642 + n += 12;
1643 + x2 /= 4096;
1644 + }
1645 + while (x2 >= 2) {
1646 + n += 1;
1647 + x2 /= 2;
1648 + }
1649 + return n;
1650 + }
1651 + };
1652 +
1653 + var toFixedShim = function toFixed(fractionDigits) {
1654 + var f, x, s, m, e, z, j, k;
1655 +
1656 + // Test for NaN and round fractionDigits down
1657 + f = $Number(fractionDigits);
1658 + f = isActualNaN(f) ? 0 : Math.floor(f);
1659 +
1660 + if (f < 0 || f > 20) {
1661 + throw new RangeError('Number.toFixed called with invalid number of decimals');
1662 + }
1663 +
1664 + x = $Number(this);
1665 +
1666 + if (isActualNaN(x)) {
1667 + return 'NaN';
1668 + }
1669 +
1670 + // If it is too big or small, return the string value of the number
1671 + if (x <= -1e21 || x >= 1e21) {
1672 + return $String(x);
1673 + }
1674 +
1675 + s = '';
1676 +
1677 + if (x < 0) {
1678 + s = '-';
1679 + x = -x;
1680 + }
1681 +
1682 + m = '0';
1683 +
1684 + if (x > 1e-21) {
1685 + // 1e-21 < x < 1e21
1686 + // -70 < log2(x) < 70
1687 + e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69;
1688 + z = (e < 0 ? x * toFixedHelpers.pow(2, -e, 1) : x / toFixedHelpers.pow(2, e, 1));
1689 + z *= 0x10000000000000; // Math.pow(2, 52);
1690 + e = 52 - e;
1691 +
1692 + // -18 < e < 122
1693 + // x = z / 2 ^ e
1694 + if (e > 0) {
1695 + toFixedHelpers.multiply(0, z);
1696 + j = f;
1697 +
1698 + while (j >= 7) {
1699 + toFixedHelpers.multiply(1e7, 0);
1700 + j -= 7;
1701 + }
1702 +
1703 + toFixedHelpers.multiply(toFixedHelpers.pow(10, j, 1), 0);
1704 + j = e - 1;
1705 +
1706 + while (j >= 23) {
1707 + toFixedHelpers.divide(1 << 23);
1708 + j -= 23;
1709 + }
1710 +
1711 + toFixedHelpers.divide(1 << j);
1712 + toFixedHelpers.multiply(1, 1);
1713 + toFixedHelpers.divide(2);
1714 + m = toFixedHelpers.numToString();
1715 + } else {
1716 + toFixedHelpers.multiply(0, z);
1717 + toFixedHelpers.multiply(1 << (-e), 0);
1718 + m = toFixedHelpers.numToString() + strSlice('0.00000000000000000000', 2, 2 + f);
1719 + }
1720 + }
1721 +
1722 + if (f > 0) {
1723 + k = m.length;
1724 +
1725 + if (k <= f) {
1726 + m = s + strSlice('0.0000000000000000000', 0, f - k + 2) + m;
1727 + } else {
1728 + m = s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f);
1729 + }
1730 + } else {
1731 + m = s + m;
1732 + }
1733 +
1734 + return m;
1735 + };
1736 + defineProperties(NumberPrototype, { toFixed: toFixedShim }, hasToFixedBugs);
1737 +
1738 + var hasToPrecisionUndefinedBug = (function () {
1739 + try {
1740 + return 1.0.toPrecision(undefined) === '1';
1741 + } catch (e) {
1742 + return true;
1743 + }
1744 + }());
1745 + var originalToPrecision = NumberPrototype.toPrecision;
1746 + defineProperties(NumberPrototype, {
1747 + toPrecision: function toPrecision(precision) {
1748 + return typeof precision === 'undefined' ? originalToPrecision.call(this) : originalToPrecision.call(this, precision);
1749 + }
1750 + }, hasToPrecisionUndefinedBug);
1751 +
1752 + //
1753 + // String
1754 + // ======
1755 + //
1756 +
1757 + // ES5 15.5.4.14
1758 + // http://es5.github.com/#x15.5.4.14
1759 +
1760 + // [bugfix, IE lt 9, firefox 4, Konqueror, Opera, obscure browsers]
1761 + // Many browsers do not split properly with regular expressions or they
1762 + // do not perform the split correctly under obscure conditions.
1763 + // See http://blog.stevenlevithan.com/archives/cross-browser-split
1764 + // I've tested in many browsers and this seems to cover the deviant ones:
1765 + // 'ab'.split(/(?:ab)*/) should be ["", ""], not [""]
1766 + // '.'.split(/(.?)(.?)/) should be ["", ".", "", ""], not ["", ""]
1767 + // 'tesst'.split(/(s)*/) should be ["t", undefined, "e", "s", "t"], not
1768 + // [undefined, "t", undefined, "e", ...]
1769 + // ''.split(/.?/) should be [], not [""]
1770 + // '.'.split(/()()/) should be ["."], not ["", "", "."]
1771 +
1772 + if (
1773 + 'ab'.split(/(?:ab)*/).length !== 2 ||
1774 + '.'.split(/(.?)(.?)/).length !== 4 ||
1775 + 'tesst'.split(/(s)*/)[1] === 't' ||
1776 + 'test'.split(/(?:)/, -1).length !== 4 ||
1777 + ''.split(/.?/).length ||
1778 + '.'.split(/()()/).length > 1
1779 + ) {
1780 + (function () {
1781 + var compliantExecNpcg = typeof (/()??/).exec('')[1] === 'undefined'; // NPCG: nonparticipating capturing group
1782 + var maxSafe32BitInt = Math.pow(2, 32) - 1;
1783 +
1784 + StringPrototype.split = function (separator, limit) {
1785 + var string = String(this);
1786 + if (typeof separator === 'undefined' && limit === 0) {
1787 + return [];
1788 + }
1789 +
1790 + // If `separator` is not a regex, use native split
1791 + if (!isRegex(separator)) {
1792 + return strSplit(this, separator, limit);
1793 + }
1794 +
1795 + var output = [];
1796 + var flags = (separator.ignoreCase ? 'i' : '') +
1797 + (separator.multiline ? 'm' : '') +
1798 + (separator.unicode ? 'u' : '') + // in ES6
1799 + (separator.sticky ? 'y' : ''), // Firefox 3+ and ES6
1800 + lastLastIndex = 0,
1801 + // Make `global` and avoid `lastIndex` issues by working with a copy
1802 + separator2, match, lastIndex, lastLength;
1803 + var separatorCopy = new RegExp(separator.source, flags + 'g');
1804 + if (!compliantExecNpcg) {
1805 + // Doesn't need flags gy, but they don't hurt
1806 + separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
1807 + }
1808 + /* Values for `limit`, per the spec:
1809 + * If undefined: 4294967295 // maxSafe32BitInt
1810 + * If 0, Infinity, or NaN: 0
1811 + * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296;
1812 + * If negative number: 4294967296 - Math.floor(Math.abs(limit))
1813 + * If other: Type-convert, then use the above rules
1814 + */
1815 + var splitLimit = typeof limit === 'undefined' ? maxSafe32BitInt : ES.ToUint32(limit);
1816 + match = separatorCopy.exec(string);
1817 + while (match) {
1818 + // `separatorCopy.lastIndex` is not reliable cross-browser
1819 + lastIndex = match.index + match[0].length;
1820 + if (lastIndex > lastLastIndex) {
1821 + pushCall(output, strSlice(string, lastLastIndex, match.index));
1822 + // Fix browsers whose `exec` methods don't consistently return `undefined` for
1823 + // nonparticipating capturing groups
1824 + if (!compliantExecNpcg && match.length > 1) {
1825 + /* eslint-disable no-loop-func */
1826 + match[0].replace(separator2, function () {
1827 + for (var i = 1; i < arguments.length - 2; i++) {
1828 + if (typeof arguments[i] === 'undefined') {
1829 + match[i] = void 0;
1830 + }
1831 + }
1832 + });
1833 + /* eslint-enable no-loop-func */
1834 + }
1835 + if (match.length > 1 && match.index < string.length) {
1836 + array_push.apply(output, arraySlice(match, 1));
1837 + }
1838 + lastLength = match[0].length;
1839 + lastLastIndex = lastIndex;
1840 + if (output.length >= splitLimit) {
1841 + break;
1842 + }
1843 + }
1844 + if (separatorCopy.lastIndex === match.index) {
1845 + separatorCopy.lastIndex++; // Avoid an infinite loop
1846 + }
1847 + match = separatorCopy.exec(string);
1848 + }
1849 + if (lastLastIndex === string.length) {
1850 + if (lastLength || !separatorCopy.test('')) {
1851 + pushCall(output, '');
1852 + }
1853 + } else {
1854 + pushCall(output, strSlice(string, lastLastIndex));
1855 + }
1856 + return output.length > splitLimit ? arraySlice(output, 0, splitLimit) : output;
1857 + };
1858 + }());
1859 +
1860 + // [bugfix, chrome]
1861 + // If separator is undefined, then the result array contains just one String,
1862 + // which is the this value (converted to a String). If limit is not undefined,
1863 + // then the output array is truncated so that it contains no more than limit
1864 + // elements.
1865 + // "0".split(undefined, 0) -> []
1866 + } else if ('0'.split(void 0, 0).length) {
1867 + StringPrototype.split = function split(separator, limit) {
1868 + if (typeof separator === 'undefined' && limit === 0) {
1869 + return [];
1870 + }
1871 + return strSplit(this, separator, limit);
1872 + };
1873 + }
1874 +
1875 + var str_replace = StringPrototype.replace;
1876 + var replaceReportsGroupsCorrectly = (function () {
1877 + var groups = [];
1878 + 'x'.replace(/x(.)?/g, function (match, group) {
1879 + pushCall(groups, group);
1880 + });
1881 + return groups.length === 1 && typeof groups[0] === 'undefined';
1882 + }());
1883 +
1884 + if (!replaceReportsGroupsCorrectly) {
1885 + StringPrototype.replace = function replace(searchValue, replaceValue) {
1886 + var isFn = isCallable(replaceValue);
1887 + var hasCapturingGroups = isRegex(searchValue) && (/\)[*?]/).test(searchValue.source);
1888 + if (!isFn || !hasCapturingGroups) {
1889 + return str_replace.call(this, searchValue, replaceValue);
1890 + } else {
1891 + var wrappedReplaceValue = function (match) {
1892 + var length = arguments.length;
1893 + var originalLastIndex = searchValue.lastIndex;
1894 + searchValue.lastIndex = 0;
1895 + var args = searchValue.exec(match) || [];
1896 + searchValue.lastIndex = originalLastIndex;
1897 + pushCall(args, arguments[length - 2], arguments[length - 1]);
1898 + return replaceValue.apply(this, args);
1899 + };
1900 + return str_replace.call(this, searchValue, wrappedReplaceValue);
1901 + }
1902 + };
1903 + }
1904 +
1905 + // ECMA-262, 3rd B.2.3
1906 + // Not an ECMAScript standard, although ECMAScript 3rd Edition has a
1907 + // non-normative section suggesting uniform semantics and it should be
1908 + // normalized across all browsers
1909 + // [bugfix, IE lt 9] IE < 9 substr() with negative value not working in IE
1910 + var string_substr = StringPrototype.substr;
1911 + var hasNegativeSubstrBug = ''.substr && '0b'.substr(-1) !== 'b';
1912 + defineProperties(StringPrototype, {
1913 + substr: function substr(start, length) {
1914 + var normalizedStart = start;
1915 + if (start < 0) {
1916 + normalizedStart = max(this.length + start, 0);
1917 + }
1918 + return string_substr.call(this, normalizedStart, length);
1919 + }
1920 + }, hasNegativeSubstrBug);
1921 +
1922 + // ES5 15.5.4.20
1923 + // whitespace from: http://es5.github.io/#x15.5.4.20
1924 + var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
1925 + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
1926 + '\u2029\uFEFF';
1927 + var zeroWidth = '\u200b';
1928 + var wsRegexChars = '[' + ws + ']';
1929 + var trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*');
1930 + var trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$');
1931 + var hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !zeroWidth.trim());
1932 + defineProperties(StringPrototype, {
1933 + // http://blog.stevenlevithan.com/archives/faster-trim-javascript
1934 + // http://perfectionkills.com/whitespace-deviations/
1935 + trim: function trim() {
1936 + if (typeof this === 'undefined' || this === null) {
1937 + throw new TypeError("can't convert " + this + ' to object');
1938 + }
1939 + return $String(this).replace(trimBeginRegexp, '').replace(trimEndRegexp, '');
1940 + }
1941 + }, hasTrimWhitespaceBug);
1942 + var trim = call.bind(String.prototype.trim);
1943 +
1944 + var hasLastIndexBug = StringPrototype.lastIndexOf && 'abcあい'.lastIndexOf('あい', 2) !== -1;
1945 + defineProperties(StringPrototype, {
1946 + lastIndexOf: function lastIndexOf(searchString) {
1947 + if (typeof this === 'undefined' || this === null) {
1948 + throw new TypeError("can't convert " + this + ' to object');
1949 + }
1950 + var S = $String(this);
1951 + var searchStr = $String(searchString);
1952 + var numPos = arguments.length > 1 ? $Number(arguments[1]) : NaN;
1953 + var pos = isActualNaN(numPos) ? Infinity : ES.ToInteger(numPos);
1954 + var start = min(max(pos, 0), S.length);
1955 + var searchLen = searchStr.length;
1956 + var k = start + searchLen;
1957 + while (k > 0) {
1958 + k = max(0, k - searchLen);
1959 + var index = strIndexOf(strSlice(S, k, start + searchLen), searchStr);
1960 + if (index !== -1) {
1961 + return k + index;
1962 + }
1963 + }
1964 + return -1;
1965 + }
1966 + }, hasLastIndexBug);
1967 +
1968 + var originalLastIndexOf = StringPrototype.lastIndexOf;
1969 + defineProperties(StringPrototype, {
1970 + lastIndexOf: function lastIndexOf(searchString) {
1971 + return originalLastIndexOf.apply(this, arguments);
1972 + }
1973 + }, StringPrototype.lastIndexOf.length !== 1);
1974 +
1975 + // ES-5 15.1.2.2
1976 + /* eslint-disable radix */
1977 + if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
1978 + /* eslint-enable radix */
1979 + /* global parseInt: true */
1980 + parseInt = (function (origParseInt) {
1981 + var hexRegex = /^[\-+]?0[xX]/;
1982 + return function parseInt(str, radix) {
1983 + var string = trim(String(str));
1984 + var defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10);
1985 + return origParseInt(string, defaultedRadix);
1986 + };
1987 + }(parseInt));
1988 + }
1989 +
1990 + // https://es5.github.io/#x15.1.2.3
1991 + if (1 / parseFloat('-0') !== -Infinity) {
1992 + /* global parseFloat: true */
1993 + parseFloat = (function (origParseFloat) {
1994 + return function parseFloat(string) {
1995 + var inputString = trim(String(string));
1996 + var result = origParseFloat(inputString);
1997 + return result === 0 && strSlice(inputString, 0, 1) === '-' ? -0 : result;
1998 + };
1999 + }(parseFloat));
2000 + }
2001 +
2002 + if (String(new RangeError('test')) !== 'RangeError: test') {
2003 + var errorToStringShim = function toString() {
2004 + if (typeof this === 'undefined' || this === null) {
2005 + throw new TypeError("can't convert " + this + ' to object');
2006 + }
2007 + var name = this.name;
2008 + if (typeof name === 'undefined') {
2009 + name = 'Error';
2010 + } else if (typeof name !== 'string') {
2011 + name = $String(name);
2012 + }
2013 + var msg = this.message;
2014 + if (typeof msg === 'undefined') {
2015 + msg = '';
2016 + } else if (typeof msg !== 'string') {
2017 + msg = $String(msg);
2018 + }
2019 + if (!name) {
2020 + return msg;
2021 + }
2022 + if (!msg) {
2023 + return name;
2024 + }
2025 + return name + ': ' + msg;
2026 + };
2027 + // can't use defineProperties here because of toString enumeration issue in IE <= 8
2028 + Error.prototype.toString = errorToStringShim;
2029 + }
2030 +
2031 + if (supportsDescriptors) {
2032 + var ensureNonEnumerable = function (obj, prop) {
2033 + if (isEnum(obj, prop)) {
2034 + var desc = Object.getOwnPropertyDescriptor(obj, prop);
2035 + if (desc.configurable) {
2036 + desc.enumerable = false;
2037 + Object.defineProperty(obj, prop, desc);
2038 + }
2039 + }
2040 + };
2041 + ensureNonEnumerable(Error.prototype, 'message');
2042 + if (Error.prototype.message !== '') {
2043 + Error.prototype.message = '';
2044 + }
2045 + ensureNonEnumerable(Error.prototype, 'name');
2046 + }
2047 +
2048 + if (String(/a/mig) !== '/a/gim') {
2049 + var regexToString = function toString() {
2050 + var str = '/' + this.source + '/';
2051 + if (this.global) {
2052 + str += 'g';
2053 + }
2054 + if (this.ignoreCase) {
2055 + str += 'i';
2056 + }
2057 + if (this.multiline) {
2058 + str += 'm';
2059 + }
2060 + return str;
2061 + };
2062 + // can't use defineProperties here because of toString enumeration issue in IE <= 8
2063 + RegExp.prototype.toString = regexToString;
2064 + }
2065 +}));
1 -var hljs=new function(){function l(o){return o.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function b(p){for(var o=p.firstChild;o;o=o.nextSibling){if(o.nodeName=="CODE"){return o}if(!(o.nodeType==3&&o.nodeValue.match(/\s+/))){break}}}function h(p,o){return Array.prototype.map.call(p.childNodes,function(q){if(q.nodeType==3){return o?q.nodeValue.replace(/\n/g,""):q.nodeValue}if(q.nodeName=="BR"){return"\n"}return h(q,o)}).join("")}function a(q){var p=(q.className+" "+q.parentNode.className).split(/\s+/);p=p.map(function(r){return r.replace(/^language-/,"")});for(var o=0;o<p.length;o++){if(e[p[o]]||p[o]=="no-highlight"){return p[o]}}}function c(q){var o=[];(function p(r,s){for(var t=r.firstChild;t;t=t.nextSibling){if(t.nodeType==3){s+=t.nodeValue.length}else{if(t.nodeName=="BR"){s+=1}else{if(t.nodeType==1){o.push({event:"start",offset:s,node:t});s=p(t,s);o.push({event:"stop",offset:s,node:t})}}}}return s})(q,0);return o}function j(x,v,w){var p=0;var y="";var r=[];function t(){if(x.length&&v.length){if(x[0].offset!=v[0].offset){return(x[0].offset<v[0].offset)?x:v}else{return v[0].event=="start"?x:v}}else{return x.length?x:v}}function s(A){function z(B){return" "+B.nodeName+'="'+l(B.value)+'"'}return"<"+A.nodeName+Array.prototype.map.call(A.attributes,z).join("")+">"}while(x.length||v.length){var u=t().splice(0,1)[0];y+=l(w.substr(p,u.offset-p));p=u.offset;if(u.event=="start"){y+=s(u.node);r.push(u.node)}else{if(u.event=="stop"){var o,q=r.length;do{q--;o=r[q];y+=("</"+o.nodeName.toLowerCase()+">")}while(o!=u.node);r.splice(q,1);while(q<r.length){y+=s(r[q]);q++}}}}return y+l(w.substr(p))}function f(q){function o(s,r){return RegExp(s,"m"+(q.cI?"i":"")+(r?"g":""))}function p(y,w){if(y.compiled){return}y.compiled=true;var s=[];if(y.k){var r={};function z(A,t){t.split(" ").forEach(function(B){var C=B.split("|");r[C[0]]=[A,C[1]?Number(C[1]):1];s.push(C[0])})}y.lR=o(y.l||hljs.IR,true);if(typeof y.k=="string"){z("keyword",y.k)}else{for(var x in y.k){if(!y.k.hasOwnProperty(x)){continue}z(x,y.k[x])}}y.k=r}if(w){if(y.bWK){y.b="\\b("+s.join("|")+")\\s"}y.bR=o(y.b?y.b:"\\B|\\b");if(!y.e&&!y.eW){y.e="\\B|\\b"}if(y.e){y.eR=o(y.e)}y.tE=y.e||"";if(y.eW&&w.tE){y.tE+=(y.e?"|":"")+w.tE}}if(y.i){y.iR=o(y.i)}if(y.r===undefined){y.r=1}if(!y.c){y.c=[]}for(var v=0;v<y.c.length;v++){if(y.c[v]=="self"){y.c[v]=y}p(y.c[v],y)}if(y.starts){p(y.starts,w)}var u=[];for(var v=0;v<y.c.length;v++){u.push(y.c[v].b)}if(y.tE){u.push(y.tE)}if(y.i){u.push(y.i)}y.t=u.length?o(u.join("|"),true):{exec:function(t){return null}}}p(q)}function d(D,E){function o(r,M){for(var L=0;L<M.c.length;L++){var K=M.c[L].bR.exec(r);if(K&&K.index==0){return M.c[L]}}}function s(K,r){if(K.e&&K.eR.test(r)){return K}if(K.eW){return s(K.parent,r)}}function t(r,K){return K.i&&K.iR.test(r)}function y(L,r){var K=F.cI?r[0].toLowerCase():r[0];return L.k.hasOwnProperty(K)&&L.k[K]}function G(){var K=l(w);if(!A.k){return K}var r="";var N=0;A.lR.lastIndex=0;var L=A.lR.exec(K);while(L){r+=K.substr(N,L.index-N);var M=y(A,L);if(M){v+=M[1];r+='<span class="'+M[0]+'">'+L[0]+"</span>"}else{r+=L[0]}N=A.lR.lastIndex;L=A.lR.exec(K)}return r+K.substr(N)}function z(){if(A.sL&&!e[A.sL]){return l(w)}var r=A.sL?d(A.sL,w):g(w);if(A.r>0){v+=r.keyword_count;B+=r.r}return'<span class="'+r.language+'">'+r.value+"</span>"}function J(){return A.sL!==undefined?z():G()}function I(L,r){var K=L.cN?'<span class="'+L.cN+'">':"";if(L.rB){x+=K;w=""}else{if(L.eB){x+=l(r)+K;w=""}else{x+=K;w=r}}A=Object.create(L,{parent:{value:A}});B+=L.r}function C(K,r){w+=K;if(r===undefined){x+=J();return 0}var L=o(r,A);if(L){x+=J();I(L,r);return L.rB?0:r.length}var M=s(A,r);if(M){if(!(M.rE||M.eE)){w+=r}x+=J();do{if(A.cN){x+="</span>"}A=A.parent}while(A!=M.parent);if(M.eE){x+=l(r)}w="";if(M.starts){I(M.starts,"")}return M.rE?0:r.length}if(t(r,A)){throw"Illegal"}w+=r;return r.length||1}var F=e[D];f(F);var A=F;var w="";var B=0;var v=0;var x="";try{var u,q,p=0;while(true){A.t.lastIndex=p;u=A.t.exec(E);if(!u){break}q=C(E.substr(p,u.index-p),u[0]);p=u.index+q}C(E.substr(p));return{r:B,keyword_count:v,value:x,language:D}}catch(H){if(H=="Illegal"){return{r:0,keyword_count:0,value:l(E)}}else{throw H}}}function g(s){var o={keyword_count:0,r:0,value:l(s)};var q=o;for(var p in e){if(!e.hasOwnProperty(p)){continue}var r=d(p,s);r.language=p;if(r.keyword_count+r.r>q.keyword_count+q.r){q=r}if(r.keyword_count+r.r>o.keyword_count+o.r){q=o;o=r}}if(q.language){o.second_best=q}return o}function i(q,p,o){if(p){q=q.replace(/^((<[^>]+>|\t)+)/gm,function(r,v,u,t){return v.replace(/\t/g,p)})}if(o){q=q.replace(/\n/g,"<br>")}return q}function m(r,u,p){var v=h(r,p);var t=a(r);if(t=="no-highlight"){return}var w=t?d(t,v):g(v);t=w.language;var o=c(r);if(o.length){var q=document.createElement("pre");q.innerHTML=w.value;w.value=j(o,c(q),v)}w.value=i(w.value,u,p);var s=r.className;if(!s.match("(\\s|^)(language-)?"+t+"(\\s|$)")){s=s?(s+" "+t):t}r.innerHTML=w.value;r.className=s;r.result={language:t,kw:w.keyword_count,re:w.r};if(w.second_best){r.second_best={language:w.second_best.language,kw:w.second_best.keyword_count,re:w.second_best.r}}}function n(){if(n.called){return}n.called=true;Array.prototype.map.call(document.getElementsByTagName("pre"),b).filter(Boolean).forEach(function(o){m(o,hljs.tabReplace)})}function k(){window.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}var e={};this.LANGUAGES=e;this.highlight=d;this.highlightAuto=g;this.fixMarkup=i;this.highlightBlock=m;this.initHighlighting=n;this.initHighlightingOnLoad=k;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";this.BNR="\\b(0b[01]+)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\[\\s\\S]",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.inherit=function(q,r){var o={};for(var p in q){o[p]=q[p]}if(r){for(var p in r){o[p]=r[p]}}return o}}();hljs.LANGUAGES.xml=function(a){var c="[A-Za-z0-9\\._:-]+";var b={eW:true,c:[{cN:"attribute",b:c,r:0},{b:'="',rB:true,e:'"',c:[{cN:"value",b:'"',eW:true}]},{b:"='",rB:true,e:"'",c:[{cN:"value",b:"'",eW:true}]},{b:"=",c:[{cN:"value",b:"[^\\s/>]+"}]}]};return{cI:true,c:[{cN:"pi",b:"<\\?",e:"\\?>",r:10},{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[b],starts:{e:"</style>",rE:true,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:"[^ />]+"},b]}]}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}}(hljs);
...\ No newline at end of file ...\ No newline at end of file
1 +/*! highlight.js v9.1.0 | BSD3 License | git.io/hljslicense */
2 +!function(e){"undefined"!=typeof exports?e(exports):(self.hljs=e({}),"function"==typeof define&&define.amd&&define("hljs",[],function(){return self.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function i(e){var n,t,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=/\blang(?:uage)?-([\w-]+)\b/i.exec(i))return E(t[1])?t[1]:"no-highlight";for(i=i.split(/\s+/),n=0,r=i.length;r>n;n++)if(E(i[n])||a(i[n]))return i[n]}function o(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset<r[0].offset?e:r:"start"==r[0].event?e:r:e.length?e:r}function o(e){function r(e){return" "+e.nodeName+'="'+n(e.value)+'"'}l+="<"+t(e)+Array.prototype.map.call(e.attributes,r).join("")+">"}function u(e){l+="</"+t(e)+">"}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g==e&&g.length&&g[0].offset==s);f.reverse().forEach(o)}else"start"==g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\b\w+\b/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(o(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function l(e,t,a,i){function o(e,n){for(var t=0;t<n.c.length;t++)if(r(n.c[t].bR,e))return n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function c(e,n){return!a&&r(n.iR,e)}function g(e,n){var t=N.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function h(e,n,t,r){var a=r?"":x.classPrefix,i='<span class="'+a,o=t?"":"</span>";return i+=e+'">',i+n+o}function p(){if(!L.k)return n(M);var e="",t=0;L.lR.lastIndex=0;for(var r=L.lR.exec(M);r;){e+=n(M.substr(t,r.index-t));var a=g(L,r);a?(B+=a[1],e+=h(a[0],n(r[0]))):e+=n(r[0]),t=L.lR.lastIndex,r=L.lR.exec(M)}return e+n(M.substr(t))}function d(){var e="string"==typeof L.sL;if(e&&!R[L.sL])return n(M);var t=e?l(L.sL,M,!0,y[L.sL]):f(M,L.sL.length?L.sL:void 0);return L.r>0&&(B+=t.r),e&&(y[L.sL]=t.top),h(t.language,t.value,!1,!0)}function b(){return void 0!==L.sL?d():p()}function v(e,t){var r=e.cN?h(e.cN,"",!0):"";e.rB?(k+=r,M=""):e.eB?(k+=n(t)+r,M=""):(k+=r,M=t),L=Object.create(e,{parent:{value:L}})}function m(e,t){if(M+=e,void 0===t)return k+=b(),0;var r=o(t,L);if(r)return k+=b(),v(r,t),r.rB?0:t.length;var a=u(L,t);if(a){var i=L;i.rE||i.eE||(M+=t),k+=b();do L.cN&&(k+="</span>"),B+=L.r,L=L.parent;while(L!=a.parent);return i.eE&&(k+=n(t)),M="",a.starts&&v(a.starts,""),i.rE?0:t.length}if(c(t,L))throw new Error('Illegal lexeme "'+t+'" for mode "'+(L.cN||"<unnamed>")+'"');return M+=t,t.length||1}var N=E(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);var w,L=i||N,y={},k="";for(w=L;w!=N;w=w.parent)w.cN&&(k=h(w.cN,"",!0)+k);var M="",B=0;try{for(var C,j,I=0;;){if(L.t.lastIndex=I,C=L.t.exec(t),!C)break;j=m(t.substr(I,C.index-I),C[0]),I=C.index+j}for(m(t.substr(I)),w=L;w.parent;w=w.parent)w.cN&&(k+="</span>");return{r:B,value:k,language:e,top:L}}catch(O){if(-1!=O.message.indexOf("Illegal"))return{r:0,value:n(t)};throw O}}function f(e,t){t=t||x.languages||Object.keys(R);var r={r:0,value:n(e)},a=r;return t.forEach(function(n){if(E(n)){var t=l(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}}),a.language&&(r.second_best=a),r}function g(e){return x.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,x.tabReplace)})),x.useBR&&(e=e.replace(/\n/g,"<br>")),e}function h(e,n,t){var r=n?w[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n=i(e);if(!a(n)){var t;x.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e;var r=t.textContent,o=n?l(n,r,!0):f(r),s=u(t);if(s.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=o.value,o.value=c(s,u(p),r)}o.value=g(o.value),e.innerHTML=o.value,e.className=h(e.className,n,o.language),e.result={language:o.language,re:o.r},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.r})}}function d(e){x=o(x,e)}function b(){if(!b.called){b.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function v(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)}function m(n,t){var r=R[n]=t(e);r.aliases&&r.aliases.forEach(function(e){w[e]=n})}function N(){return Object.keys(R)}function E(e){return e=(e||"").toLowerCase(),R[e]||R[w[e]]}var x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},R={},w={};return e.highlight=l,e.highlightAuto=f,e.fixMarkup=g,e.highlightBlock=p,e.configure=d,e.initHighlighting=b,e.initHighlightingOnLoad=v,e.registerLanguage=m,e.listLanguages=N,e.getLanguage=E,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e});hljs.registerLanguage("json",function(e){var t={literal:"true false null"},i=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:i,k:t},s={b:"{",e:"}",c:[{cN:"attr",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:r}],i:"\\S"},n={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return i.splice(i.length,0,s,n),{c:i,k:t,i:"\\S"}});hljs.registerLanguage("xml",function(s){var t="[A-Za-z0-9\\._:-]+",e={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php"},r={eW:!0,i:/</,r:0,c:[e,{cN:"attr",b:t,r:0},{b:"=",r:0,c:[{cN:"string",c:[e],v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[r],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[r],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},e,{cN:"meta",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},r]}]}});hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/>\s*[);\]]/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:[e.CLCM,e.CBCM]}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\s*\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});
...\ No newline at end of file ...\ No newline at end of file
1 +'use strict';
2 +
3 +(function () {
4 + var configure, highlightBlock;
5 +
6 + configure = hljs.configure;
7 + // "extending" hljs.configure method
8 + hljs.configure = function _configure (options) {
9 + var size = options.highlightSizeThreshold;
10 +
11 + // added highlightSizeThreshold option to set maximum size
12 + // of processed string. Set to null if not a number
13 + hljs.highlightSizeThreshold = size === +size ? size : null;
14 +
15 + configure.call(this, options);
16 + };
17 +
18 + highlightBlock = hljs.highlightBlock;
19 +
20 + // "extending" hljs.highlightBlock method
21 + hljs.highlightBlock = function _highlightBlock (el) {
22 + var innerHTML = el.innerHTML;
23 + var size = hljs.highlightSizeThreshold;
24 +
25 + // check if highlightSizeThreshold is not set or element innerHTML
26 + // is less than set option highlightSizeThreshold
27 + if (size == null || size > innerHTML.length) {
28 + // proceed with hljs.highlightBlock
29 + highlightBlock.call(hljs, el);
30 + }
31 + };
32 +
33 +})();
34 +
1 +/* js-yaml 3.4.6 https://github.com/nodeca/js-yaml */
2 +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.jsyaml=t()}}(function(){var t;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";function i(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}var r=t("./js-yaml/loader"),o=t("./js-yaml/dumper");e.exports.Type=t("./js-yaml/type"),e.exports.Schema=t("./js-yaml/schema"),e.exports.FAILSAFE_SCHEMA=t("./js-yaml/schema/failsafe"),e.exports.JSON_SCHEMA=t("./js-yaml/schema/json"),e.exports.CORE_SCHEMA=t("./js-yaml/schema/core"),e.exports.DEFAULT_SAFE_SCHEMA=t("./js-yaml/schema/default_safe"),e.exports.DEFAULT_FULL_SCHEMA=t("./js-yaml/schema/default_full"),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=o.dump,e.exports.safeDump=o.safeDump,e.exports.YAMLException=t("./js-yaml/exception"),e.exports.MINIMAL_SCHEMA=t("./js-yaml/schema/failsafe"),e.exports.SAFE_SCHEMA=t("./js-yaml/schema/default_safe"),e.exports.DEFAULT_SCHEMA=t("./js-yaml/schema/default_full"),e.exports.scan=i("scan"),e.exports.parse=i("parse"),e.exports.compose=i("compose"),e.exports.addConstructor=i("addConstructor")},{"./js-yaml/dumper":3,"./js-yaml/exception":4,"./js-yaml/loader":5,"./js-yaml/schema":7,"./js-yaml/schema/core":8,"./js-yaml/schema/default_full":9,"./js-yaml/schema/default_safe":10,"./js-yaml/schema/failsafe":11,"./js-yaml/schema/json":12,"./js-yaml/type":13}],2:[function(t,e,n){"use strict";function i(t){return"undefined"==typeof t||null===t}function r(t){return"object"==typeof t&&null!==t}function o(t){return Array.isArray(t)?t:i(t)?[]:[t]}function a(t,e){var n,i,r,o;if(e)for(o=Object.keys(e),n=0,i=o.length;i>n;n+=1)r=o[n],t[r]=e[r];return t}function s(t,e){var n,i="";for(n=0;e>n;n+=1)i+=t;return i}function c(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}e.exports.isNothing=i,e.exports.isObject=r,e.exports.toArray=o,e.exports.repeat=s,e.exports.isNegativeZero=c,e.exports.extend=a},{}],3:[function(t,e,n){"use strict";function i(t,e){var n,i,r,o,a,s,c;if(null===e)return{};for(n={},i=Object.keys(e),r=0,o=i.length;o>r;r+=1)a=i[r],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),c=t.compiledTypeMap[a],c&&E.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n}function r(t){var e,n,i;if(e=t.toString(16).toUpperCase(),255>=t)n="x",i=2;else if(65535>=t)n="u",i=4;else{if(!(4294967295>=t))throw new O("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+j.repeat("0",i-e.length)+e}function o(t){this.schema=t.schema||S,this.indent=Math.max(1,t.indent||2),this.skipInvalid=t.skipInvalid||!1,this.flowLevel=j.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=i(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function a(t,e){for(var n,i=j.repeat(" ",e),r=0,o=-1,a="",s=t.length;s>r;)o=t.indexOf("\n",r),-1===o?(n=t.slice(r),r=s):(n=t.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function s(t,e){return"\n"+j.repeat(" ",t.indent*e)}function c(t,e){var n,i,r;for(n=0,i=t.implicitTypes.length;i>n;n+=1)if(r=t.implicitTypes[n],r.resolve(e))return!0;return!1}function u(t){this.source=t,this.result="",this.checkpoint=0}function l(t,e,n,i){var r,o,s,l,f,m,g,y,v,x,A,b,w,k,C,j,O,S,_,I,E;if(0===e.length)return void(t.dump="''");if(-1!==et.indexOf(e))return void(t.dump="'"+e+"'");for(r=!0,o=e.length?e.charCodeAt(0):0,s=M===o||M===e.charCodeAt(e.length-1),(K===o||W===o||G===o||z===o)&&(r=!1),s?(r=!1,l=!1,f=!1):(l=!i,f=!i),m=!0,g=new u(e),y=!1,v=0,x=0,A=t.indent*n,b=t.lineWidth,-1===b&&(b=9007199254740991),40>A?b-=A:b=40,k=0;k<e.length;k++){if(w=e.charCodeAt(k),r){if(h(w))continue;r=!1}m&&w===P&&(m=!1),C=tt[w],j=d(w),(C||j)&&(w!==N&&w!==D&&w!==P?(l=!1,f=!1):w===N&&(y=!0,m=!1,k>0&&(O=e.charCodeAt(k-1),O===M&&(f=!1,l=!1)),l&&(S=k-v,v=k,S>x&&(x=S))),w!==D&&(m=!1),g.takeUpTo(k),g.escapeChar())}if(r&&c(t,e)&&(r=!1),_="",(l||f)&&(I=0,e.charCodeAt(e.length-1)===N&&(I+=1,e.charCodeAt(e.length-2)===N&&(I+=1)),0===I?_="-":2===I&&(_="+")),f&&b>x&&(l=!1),y||(f=!1),r)t.dump=e;else if(m)t.dump="'"+e+"'";else if(l)E=p(e,b),t.dump=">"+_+"\n"+a(E,A);else if(f)_||(e=e.replace(/\n$/,"")),t.dump="|"+_+"\n"+a(e,A);else{if(!g)throw new Error("Failed to dump scalar value");g.finish(),t.dump='"'+g.result+'"'}}function p(t,e){var n,i="",r=0,o=t.length,a=/\n+$/.exec(t);for(a&&(o=a.index+1);o>r;)n=t.indexOf("\n",r),n>o||-1===n?(i&&(i+="\n\n"),i+=f(t.slice(r,o),e),r=o):(i&&(i+="\n\n"),i+=f(t.slice(r,n),e),r=n+1);return a&&"\n"!==a[0]&&(i+=a[0]),i}function f(t,e){if(""===t)return t;for(var n,i,r,o=/[^\s] [^\s]/g,a="",s=0,c=0,u=o.exec(t);u;)n=u.index,n-c>e&&(i=s!==c?s:n,a&&(a+="\n"),r=t.slice(c,i),a+=r,c=i+1),s=n+1,u=o.exec(t);return a&&(a+="\n"),a+=c!==s&&t.length-c>e?t.slice(c,s)+"\n"+t.slice(s+1):t.slice(c)}function h(t){return F!==t&&N!==t&&T!==t&&B!==t&&V!==t&&Z!==t&&J!==t&&X!==t&&U!==t&&Y!==t&&$!==t&&L!==t&&Q!==t&&R!==t&&P!==t&&D!==t&&q!==t&&H!==t&&!tt[t]&&!d(t)}function d(t){return!(t>=32&&126>=t||133===t||t>=160&&55295>=t||t>=57344&&65533>=t||t>=65536&&1114111>=t)}function m(t,e,n){var i,r,o="",a=t.tag;for(i=0,r=n.length;r>i;i+=1)A(t,e,n[i],!1,!1)&&(0!==i&&(o+=", "),o+=t.dump);t.tag=a,t.dump="["+o+"]"}function g(t,e,n,i){var r,o,a="",c=t.tag;for(r=0,o=n.length;o>r;r+=1)A(t,e+1,n[r],!0,!0)&&(i&&0===r||(a+=s(t,e)),a+="- "+t.dump);t.tag=c,t.dump=a||"[]"}function y(t,e,n){var i,r,o,a,s,c="",u=t.tag,l=Object.keys(n);for(i=0,r=l.length;r>i;i+=1)s="",0!==i&&(s+=", "),o=l[i],a=n[o],A(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+": ",A(t,e,a,!1,!1)&&(s+=t.dump,c+=s));t.tag=u,t.dump="{"+c+"}"}function v(t,e,n,i){var r,o,a,c,u,l,p="",f=t.tag,h=Object.keys(n);if(t.sortKeys===!0)h.sort();else if("function"==typeof t.sortKeys)h.sort(t.sortKeys);else if(t.sortKeys)throw new O("sortKeys must be a boolean or a function");for(r=0,o=h.length;o>r;r+=1)l="",i&&0===r||(l+=s(t,e)),a=h[r],c=n[a],A(t,e+1,a,!0,!0,!0)&&(u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024,u&&(l+=t.dump&&N===t.dump.charCodeAt(0)?"?":"? "),l+=t.dump,u&&(l+=s(t,e)),A(t,e+1,c,!0,u)&&(l+=t.dump&&N===t.dump.charCodeAt(0)?":":": ",l+=t.dump,p+=l));t.tag=f,t.dump=p||"{}"}function x(t,e,n){var i,r,o,a,s,c;for(r=n?t.explicitTypes:t.implicitTypes,o=0,a=r.length;a>o;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(t.tag=n?s.tag:"?",s.represent){if(c=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===I.call(s.represent))i=s.represent(e,c);else{if(!E.call(s.represent,c))throw new O("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');i=s.represent[c](e,c)}t.dump=i}return!0}return!1}function A(t,e,n,i,r,o){t.tag=null,t.dump=n,x(t,n,!1)||x(t,n,!0);var a=I.call(t.dump);i&&(i=0>t.flowLevel||t.flowLevel>e);var s,c,u="[object Object]"===a||"[object Array]"===a;if(u&&(s=t.duplicates.indexOf(n),c=-1!==s),(null!==t.tag&&"?"!==t.tag||c||2!==t.indent&&e>0)&&(r=!1),c&&t.usedDuplicates[s])t.dump="*ref_"+s;else{if(u&&c&&!t.usedDuplicates[s]&&(t.usedDuplicates[s]=!0),"[object Object]"===a)i&&0!==Object.keys(t.dump).length?(v(t,e,t.dump,r),c&&(t.dump="&ref_"+s+t.dump)):(y(t,e,t.dump),c&&(t.dump="&ref_"+s+" "+t.dump));else if("[object Array]"===a)i&&0!==t.dump.length?(g(t,e,t.dump,r),c&&(t.dump="&ref_"+s+t.dump)):(m(t,e,t.dump),c&&(t.dump="&ref_"+s+" "+t.dump));else{if("[object String]"!==a){if(t.skipInvalid)return!1;throw new O("unacceptable kind of an object to dump "+a)}"?"!==t.tag&&l(t,t.dump,e,o)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function b(t,e){var n,i,r=[],o=[];for(w(t,r,o),n=0,i=o.length;i>n;n+=1)e.duplicates.push(r[o[n]]);e.usedDuplicates=new Array(i)}function w(t,e,n){var i,r,o;if(null!==t&&"object"==typeof t)if(r=e.indexOf(t),-1!==r)-1===n.indexOf(r)&&n.push(r);else if(e.push(t),Array.isArray(t))for(r=0,o=t.length;o>r;r+=1)w(t[r],e,n);else for(i=Object.keys(t),r=0,o=i.length;o>r;r+=1)w(t[i[r]],e,n)}function k(t,e){e=e||{};var n=new o(e);return b(t,n),A(n,0,t,!0,!0)?n.dump+"\n":""}function C(t,e){return k(t,j.extend({schema:_},e))}var j=t("./common"),O=t("./exception"),S=t("./schema/default_full"),_=t("./schema/default_safe"),I=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=9,N=10,T=13,M=32,L=33,D=34,U=35,q=37,Y=38,P=39,$=42,B=44,K=45,H=58,R=62,W=63,G=64,V=91,Z=93,z=96,J=123,Q=124,X=125,tt={};tt[0]="\\0",tt[7]="\\a",tt[8]="\\b",tt[9]="\\t",tt[10]="\\n",tt[11]="\\v",tt[12]="\\f",tt[13]="\\r",tt[27]="\\e",tt[34]='\\"',tt[92]="\\\\",tt[133]="\\N",tt[160]="\\_",tt[8232]="\\L",tt[8233]="\\P";var et=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];u.prototype.takeUpTo=function(t){var e;if(t<this.checkpoint)throw e=new Error("position should be > checkpoint"),e.position=t,e.checkpoint=this.checkpoint,e;return this.result+=this.source.slice(this.checkpoint,t),this.checkpoint=t,this},u.prototype.escapeChar=function(){var t,e;return t=this.source.charCodeAt(this.checkpoint),e=tt[t]||r(t),this.result+=e,this.checkpoint+=1,this},u.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},e.exports.dump=k,e.exports.safeDump=C},{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(t,e,n){"use strict";function i(t,e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}var r=t("inherit");r(i,Error),i.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},e.exports=i},{inherit:31}],5:[function(t,e,n){"use strict";function i(t){return 10===t||13===t}function r(t){return 9===t||32===t}function o(t){return 9===t||32===t||10===t||13===t}function a(t){return 44===t||91===t||93===t||123===t||125===t}function s(t){var e;return t>=48&&57>=t?t-48:(e=32|t,e>=97&&102>=e?e-97+10:-1)}function c(t){return 120===t?2:117===t?4:85===t?8:0}function u(t){return t>=48&&57>=t?t-48:-1}function l(t){return 48===t?"\x00":97===t?"":98===t?"\b":116===t?" ":9===t?" ":110===t?"\n":118===t?" ":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function p(t){return 65535>=t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function f(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||H,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function h(t,e){return new $(e,new B(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function d(t,e){throw h(t,e)}function m(t,e){t.onWarning&&t.onWarning.call(null,h(t,e))}function g(t,e,n,i){var r,o,a,s;if(n>e){if(s=t.input.slice(e,n),i)for(r=0,o=s.length;o>r;r+=1)a=s.charCodeAt(r),9===a||a>=32&&1114111>=a||d(t,"expected valid JSON character");else X.test(s)&&d(t,"the stream contains non-printable characters");t.result+=s}}function y(t,e,n){var i,r,o,a;for(P.isObject(n)||d(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,a=i.length;a>o;o+=1)r=i[o],R.call(e,r)||(e[r]=n[r])}function v(t,e,n,i,r){var o,a;if(i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(r))for(o=0,a=r.length;a>o;o+=1)y(t,e,r[o]);else y(t,e,r);else e[i]=r;return e}function x(t){var e;e=t.input.charCodeAt(t.position),10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):d(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function A(t,e,n){for(var o=0,a=t.input.charCodeAt(t.position);0!==a;){for(;r(a);)a=t.input.charCodeAt(++t.position);if(e&&35===a)do a=t.input.charCodeAt(++t.position);while(10!==a&&13!==a&&0!==a);if(!i(a))break;for(x(t),a=t.input.charCodeAt(t.position),o++,t.lineIndent=0;32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position)}return-1!==n&&0!==o&&t.lineIndent<n&&m(t,"deficient indentation"),o}function b(t){var e,n=t.position;return e=t.input.charCodeAt(n),45!==e&&46!==e||t.input.charCodeAt(n+1)!==e||t.input.charCodeAt(n+2)!==e||(n+=3,e=t.input.charCodeAt(n),0!==e&&!o(e))?!1:!0}function w(t,e){1===e?t.result+=" ":e>1&&(t.result+=P.repeat("\n",e-1))}function k(t,e,n){var s,c,u,l,p,f,h,d,m,y=t.kind,v=t.result;if(m=t.input.charCodeAt(t.position),o(m)||a(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if((63===m||45===m)&&(c=t.input.charCodeAt(t.position+1),o(c)||n&&a(c)))return!1;for(t.kind="scalar",t.result="",u=l=t.position,p=!1;0!==m;){if(58===m){if(c=t.input.charCodeAt(t.position+1),o(c)||n&&a(c))break}else if(35===m){if(s=t.input.charCodeAt(t.position-1),o(s))break}else{if(t.position===t.lineStart&&b(t)||n&&a(m))break;if(i(m)){if(f=t.line,h=t.lineStart,d=t.lineIndent,A(t,!1,-1),t.lineIndent>=e){p=!0,m=t.input.charCodeAt(t.position);continue}t.position=l,t.line=f,t.lineStart=h,t.lineIndent=d;break}}p&&(g(t,u,l,!1),w(t,t.line-f),u=l=t.position,p=!1),r(m)||(l=t.position+1),m=t.input.charCodeAt(++t.position)}return g(t,u,l,!1),t.result?!0:(t.kind=y,t.result=v,!1)}function C(t,e){var n,r,o;if(n=t.input.charCodeAt(t.position),39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,r=o=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(g(t,r,t.position,!0),n=t.input.charCodeAt(++t.position),39!==n)return!0;r=o=t.position,t.position++}else i(n)?(g(t,r,o,!0),w(t,A(t,!1,e)),r=o=t.position):t.position===t.lineStart&&b(t)?d(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);d(t,"unexpected end of the stream within a single quoted scalar")}function j(t,e){var n,r,o,a,u,l;if(l=t.input.charCodeAt(t.position),34!==l)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(l=t.input.charCodeAt(t.position));){if(34===l)return g(t,n,t.position,!0),t.position++,!0;if(92===l){if(g(t,n,t.position,!0),l=t.input.charCodeAt(++t.position),i(l))A(t,!1,e);else if(256>l&&rt[l])t.result+=ot[l],t.position++;else if((u=c(l))>0){for(o=u,a=0;o>0;o--)l=t.input.charCodeAt(++t.position),(u=s(l))>=0?a=(a<<4)+u:d(t,"expected hexadecimal character");t.result+=p(a),t.position++}else d(t,"unknown escape sequence");n=r=t.position}else i(l)?(g(t,n,r,!0),w(t,A(t,!1,e)),n=r=t.position):t.position===t.lineStart&&b(t)?d(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}d(t,"unexpected end of the stream within a double quoted scalar")}function O(t,e){var n,i,r,a,s,c,u,l,p,f,h,m=!0,g=t.tag,y=t.anchor;if(h=t.input.charCodeAt(t.position),91===h)a=93,u=!1,i=[];else{if(123!==h)return!1;a=125,u=!0,i={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=i),h=t.input.charCodeAt(++t.position);0!==h;){if(A(t,!0,e),h=t.input.charCodeAt(t.position),h===a)return t.position++,t.tag=g,t.anchor=y,t.kind=u?"mapping":"sequence",t.result=i,!0;m||d(t,"missed comma between flow collection entries"),p=l=f=null,s=c=!1,63===h&&(r=t.input.charCodeAt(t.position+1),o(r)&&(s=c=!0,t.position++,A(t,!0,e))),n=t.line,T(t,e,W,!1,!0),p=t.tag,l=t.result,A(t,!0,e),h=t.input.charCodeAt(t.position),!c&&t.line!==n||58!==h||(s=!0,h=t.input.charCodeAt(++t.position),A(t,!0,e),T(t,e,W,!1,!0),f=t.result),u?v(t,i,p,l,f):i.push(s?v(t,null,p,l,f):l),A(t,!0,e),h=t.input.charCodeAt(t.position),44===h?(m=!0,h=t.input.charCodeAt(++t.position)):m=!1}d(t,"unexpected end of the stream within a flow collection")}function S(t,e){var n,o,a,s,c=z,l=!1,p=e,f=0,h=!1;if(s=t.input.charCodeAt(t.position),124===s)o=!1;else{if(62!==s)return!1;o=!0}for(t.kind="scalar",t.result="";0!==s;)if(s=t.input.charCodeAt(++t.position),43===s||45===s)z===c?c=43===s?Q:J:d(t,"repeat of a chomping mode identifier");else{if(!((a=u(s))>=0))break;0===a?d(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(t,"repeat of an indentation width identifier"):(p=e+a-1,l=!0)}if(r(s)){do s=t.input.charCodeAt(++t.position);while(r(s));if(35===s)do s=t.input.charCodeAt(++t.position);while(!i(s)&&0!==s)}for(;0!==s;){for(x(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!l||t.lineIndent<p)&&32===s;)t.lineIndent++,s=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>p&&(p=t.lineIndent),i(s))f++;else{if(t.lineIndent<p){c===Q?t.result+=P.repeat("\n",f):c===z&&l&&(t.result+="\n");break}for(o?r(s)?(h=!0,t.result+=P.repeat("\n",f+1)):h?(h=!1,t.result+=P.repeat("\n",f+1)):0===f?l&&(t.result+=" "):t.result+=P.repeat("\n",f):l?t.result+=P.repeat("\n",f+1):t.result+=P.repeat("\n",f),l=!0,f=0,n=t.position;!i(s)&&0!==s;)s=t.input.charCodeAt(++t.position);g(t,n,t.position,!1)}}return!0}function _(t,e){var n,i,r,a=t.tag,s=t.anchor,c=[],u=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=c),r=t.input.charCodeAt(t.position);0!==r&&45===r&&(i=t.input.charCodeAt(t.position+1),o(i));)if(u=!0,t.position++,A(t,!0,-1)&&t.lineIndent<=e)c.push(null),r=t.input.charCodeAt(t.position);else if(n=t.line,T(t,e,V,!1,!0),c.push(t.result),A(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==r)d(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return u?(t.tag=a,t.anchor=s,t.kind="sequence",t.result=c,!0):!1}function I(t,e,n){var i,a,s,c,u=t.tag,l=t.anchor,p={},f=null,h=null,m=null,g=!1,y=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=p),c=t.input.charCodeAt(t.position);0!==c;){if(i=t.input.charCodeAt(t.position+1),s=t.line,63!==c&&58!==c||!o(i)){if(!T(t,n,G,!1,!0))break;if(t.line===s){for(c=t.input.charCodeAt(t.position);r(c);)c=t.input.charCodeAt(++t.position);if(58===c)c=t.input.charCodeAt(++t.position),o(c)||d(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(v(t,p,f,h,null),f=h=m=null),y=!0,g=!1,a=!1,f=t.tag,h=t.result;else{if(!y)return t.tag=u,t.anchor=l,!0;d(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=u,t.anchor=l,!0;d(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(g&&(v(t,p,f,h,null),f=h=m=null),y=!0,g=!0,a=!0):g?(g=!1,a=!0):d(t,"incomplete explicit mapping pair; a key node is missed"),t.position+=1,c=i;if((t.line===s||t.lineIndent>e)&&(T(t,e,Z,!0,a)&&(g?h=t.result:m=t.result),g||(v(t,p,f,h,m),f=h=m=null),A(t,!0,-1),c=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==c)d(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&v(t,p,f,h,null),y&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=p),y}function E(t){var e,n,i,r,a=!1,s=!1;if(r=t.input.charCodeAt(t.position),33!==r)return!1;if(null!==t.tag&&d(t,"duplication of a tag property"),r=t.input.charCodeAt(++t.position),60===r?(a=!0,r=t.input.charCodeAt(++t.position)):33===r?(s=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,a){do r=t.input.charCodeAt(++t.position);while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):d(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!o(r);)33===r&&(s?d(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),nt.test(n)||d(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),et.test(i)&&d(t,"tag suffix cannot contain flow indicator characters")}return i&&!it.test(i)&&d(t,"tag name cannot contain such characters: "+i),a?t.tag=i:R.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:d(t,'undeclared tag handle "'+n+'"'),!0}function F(t){var e,n;if(n=t.input.charCodeAt(t.position),38!==n)return!1;for(null!==t.anchor&&d(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!o(n)&&!a(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&d(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function N(t){var e,n,i;if(i=t.input.charCodeAt(t.position),42!==i)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!o(i)&&!a(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&d(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),t.anchorMap.hasOwnProperty(n)||d(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],A(t,!0,-1),!0}function T(t,e,n,i,r){var o,a,s,c,u,l,p,f,h=1,m=!1,g=!1;if(t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=Z===n||V===n,i&&A(t,!0,-1)&&(m=!0,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)),1===h)for(;E(t)||F(t);)A(t,!0,-1)?(m=!0,s=o,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)):s=!1;if(s&&(s=m||r),(1===h||Z===n)&&(p=W===n||G===n?e:e+1,f=t.position-t.lineStart,1===h?s&&(_(t,f)||I(t,f,p))||O(t,p)?g=!0:(a&&S(t,p)||C(t,p)||j(t,p)?g=!0:N(t)?(g=!0,(null!==t.tag||null!==t.anchor)&&d(t,"alias node should not have any properties")):k(t,p,W===n)&&(g=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===h&&(g=s&&_(t,f))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(c=0,u=t.implicitTypes.length;u>c;c+=1)if(l=t.implicitTypes[c],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else R.call(t.typeMap,t.tag)?(l=t.typeMap[t.tag],null!==t.result&&l.kind!==t.kind&&d(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result)?(t.result=l.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):d(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):d(t,"unknown tag !<"+t.tag+">");return null!==t.tag||null!==t.anchor||g}function M(t){var e,n,a,s,c=t.position,u=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(s=t.input.charCodeAt(t.position))&&(A(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==s));){for(u=!0,s=t.input.charCodeAt(++t.position),e=t.position;0!==s&&!o(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(e,t.position),a=[],n.length<1&&d(t,"directive name must not be less than one character in length");0!==s;){for(;r(s);)s=t.input.charCodeAt(++t.position);if(35===s){do s=t.input.charCodeAt(++t.position);while(0!==s&&!i(s));break}if(i(s))break;for(e=t.position;0!==s&&!o(s);)s=t.input.charCodeAt(++t.position);a.push(t.input.slice(e,t.position))}0!==s&&x(t),R.call(st,n)?st[n](t,n,a):m(t,'unknown document directive "'+n+'"')}return A(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,A(t,!0,-1)):u&&d(t,"directives end mark is expected"),T(t,t.lineIndent-1,Z,!1,!0),A(t,!0,-1),t.checkLineBreaks&&tt.test(t.input.slice(c,t.position))&&m(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&b(t)?void(46===t.input.charCodeAt(t.position)&&(t.position+=3,A(t,!0,-1))):void(t.position<t.length-1&&d(t,"end of the stream or a document separator is expected"))}function L(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new f(t,e);for(n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)M(n);return n.documents}function D(t,e,n){var i,r,o=L(t,n);for(i=0,r=o.length;r>i;i+=1)e(o[i])}function U(t,e){var n=L(t,e);if(0===n.length)return void 0;if(1===n.length)return n[0];throw new $("expected a single document in the stream, but found more")}function q(t,e,n){D(t,e,P.extend({schema:K},n))}function Y(t,e){return U(t,P.extend({schema:K},e))}for(var P=t("./common"),$=t("./exception"),B=t("./mark"),K=t("./schema/default_safe"),H=t("./schema/default_full"),R=Object.prototype.hasOwnProperty,W=1,G=2,V=3,Z=4,z=1,J=2,Q=3,X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\x85\u2028\u2029]/,et=/[,\[\]\{\}]/,nt=/^(?:!|!!|![a-z\-]+!)$/i,it=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,rt=new Array(256),ot=new Array(256),at=0;256>at;at++)rt[at]=l(at)?1:0,ot[at]=l(at);var st={YAML:function(t,e,n){var i,r,o;null!==t.version&&d(t,"duplication of %YAML directive"),1!==n.length&&d(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&d(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&d(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=2>o,1!==o&&2!==o&&m(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&d(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],nt.test(i)||d(t,"ill-formed tag handle (first argument) of the TAG directive"),R.call(t.tagMap,i)&&d(t,'there is a previously declared suffix for "'+i+'" tag handle'),it.test(r)||d(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=r}};e.exports.loadAll=D,e.exports.load=U,e.exports.safeLoadAll=q,e.exports.safeLoad=Y},{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(t,e,n){"use strict";function i(t,e,n,i,r){this.name=t,this.buffer=e,this.position=n,this.line=i,this.column=r}var r=t("./common");i.prototype.getSnippet=function(t,e){var n,i,o,a,s;if(!this.buffer)return null;for(t=t||4,e=e||75,n="",i=this.position;i>0&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>e/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\x00\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a));)if(a+=1,a-this.position>e/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",t)+n+s+o+"\n"+r.repeat(" ",t+this.position-i+n.length)+"^"},i.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n},e.exports=i},{"./common":2}],7:[function(t,e,n){"use strict";function i(t,e,n){var r=[];return t.include.forEach(function(t){n=i(t,e,n)}),t[e].forEach(function(t){n.forEach(function(e,n){e.tag===t.tag&&r.push(n)}),n.push(t)}),n.filter(function(t,e){return-1===r.indexOf(e)})}function r(){function t(t){i[t.tag]=t}var e,n,i={};for(e=0,n=arguments.length;n>e;e+=1)arguments[e].forEach(t);return i}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=i(this,"implicit",[]),this.compiledExplicit=i(this,"explicit",[]),this.compiledTypeMap=r(this.compiledImplicit,this.compiledExplicit)}var a=t("./common"),s=t("./exception"),c=t("./type");o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new s("Wrong number of arguments for Schema.create function")}if(t=a.toArray(t),e=a.toArray(e),!t.every(function(t){return t instanceof o}))throw new s("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(t){return t instanceof c}))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},e.exports=o},{"./common":2,"./exception":4,"./type":13}],8:[function(t,e,n){"use strict";var i=t("../schema");e.exports=new i({include:[t("./json")]})},{"../schema":7,"./json":12}],9:[function(t,e,n){"use strict";var i=t("../schema");e.exports=i.DEFAULT=new i({include:[t("./default_safe")],explicit:[t("../type/js/undefined"),t("../type/js/regexp"),t("../type/js/function")]})},{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(t,e,n){"use strict";var i=t("../schema");e.exports=new i({include:[t("./core")],implicit:[t("../type/timestamp"),t("../type/merge")],explicit:[t("../type/binary"),t("../type/omap"),t("../type/pairs"),t("../type/set")]})},{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(t,e,n){"use strict";var i=t("../schema");e.exports=new i({explicit:[t("../type/str"),t("../type/seq"),t("../type/map")]})},{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(t,e,n){"use strict";var i=t("../schema");e.exports=new i({include:[t("./failsafe")],implicit:[t("../type/null"),t("../type/bool"),t("../type/int"),t("../type/float")]})},{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(t,e,n){"use strict";function i(t){var e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}function r(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===a.indexOf(e))throw new o('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=i(e.styleAliases||null),-1===s.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var o=t("./exception"),a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];e.exports=r},{"./exception":4}],14:[function(t,e,n){"use strict";function i(t){if(null===t)return!1;var e,n,i=0,r=t.length,o=u;for(n=0;r>n;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(0>e)return!1;i+=6}return i%8===0}function r(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=u,a=0,c=[];for(e=0;r>e;e++)e%4===0&&e&&(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)),a=a<<6|o.indexOf(i.charAt(e));return n=r%4*6,0===n?(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)):18===n?(c.push(a>>10&255),c.push(a>>2&255)):12===n&&c.push(a>>4&255),s?new s(c):c}function o(t){var e,n,i="",r=0,o=t.length,a=u;for(e=0;o>e;e++)e%3===0&&e&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+t[e];return n=o%3,0===n?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}function a(t){return s&&s.isBuffer(t)}var s=t("buffer").Buffer,c=t("../type"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new c("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,
3 +construct:r,predicate:a,represent:o})},{"../type":13,buffer:30}],15:[function(t,e,n){"use strict";function i(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function o(t){return"[object Boolean]"===Object.prototype.toString.call(t)}var a=t("../type");e.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(t,e,n){"use strict";function i(t){return null===t?!1:u.test(t)?!0:!1}function r(t){var e,n,i,r;return e=t.replace(/_/g,"").toLowerCase(),n="-"===e[0]?-1:1,r=[],0<="+-".indexOf(e[0])&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:0<=e.indexOf(":")?(e.split(":").forEach(function(t){r.unshift(parseFloat(t,10))}),e=0,i=1,r.forEach(function(t){e+=t*i,i*=60}),n*e):n*parseFloat(e,10)}function o(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(t))return"-0.0";return n=t.toString(10),l.test(n)?n.replace("e",".e"):n}function a(t){return"[object Number]"===Object.prototype.toString.call(t)&&(0!==t%1||s.isNegativeZero(t))}var s=t("../common"),c=t("../type"),u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;e.exports=new c("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o,defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(t,e,n){"use strict";function i(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function r(t){return t>=48&&55>=t}function o(t){return t>=48&&57>=t}function a(t){if(null===t)return!1;var e,n=t.length,a=0,s=!1;if(!n)return!1;if(e=t[a],("-"===e||"+"===e)&&(e=t[++a]),"0"===e){if(a+1===n)return!0;if(e=t[++a],"b"===e){for(a++;n>a;a++)if(e=t[a],"_"!==e){if("0"!==e&&"1"!==e)return!1;s=!0}return s}if("x"===e){for(a++;n>a;a++)if(e=t[a],"_"!==e){if(!i(t.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(e=t[a],"_"!==e){if(!r(t.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(e=t[a],"_"!==e){if(":"===e)break;if(!o(t.charCodeAt(a)))return!1;s=!0}return s?":"!==e?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(a)):!1}function s(t){var e,n,i=t,r=1,o=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),e=i[0],("-"===e||"+"===e)&&("-"===e&&(r=-1),i=i.slice(1),e=i[0]),"0"===i?0:"0"===e?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(t){o.unshift(parseInt(t,10))}),i=0,n=1,o.forEach(function(t){i+=t*n,n*=60}),r*i):r*parseInt(i,10)}function c(t){return"[object Number]"===Object.prototype.toString.call(t)&&0===t%1&&!u.isNegativeZero(t)}var u=t("../common"),l=t("../type");e.exports=new l("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:c,represent:{binary:function(t){return"0b"+t.toString(2)},octal:function(t){return"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(t,e,n){"use strict";function i(t){if(null===t)return!1;try{var e="("+t+")",n=s.parse(e,{range:!0});return"Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"FunctionExpression"!==n.body[0].expression.type?!1:!0}catch(i){return!1}}function r(t){var e,n="("+t+")",i=s.parse(n,{range:!0}),r=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(t){r.push(t.name)}),e=i.body[0].expression.body.range,new Function(r,n.slice(e[0]+1,e[1]-1))}function o(t){return t.toString()}function a(t){return"[object Function]"===Object.prototype.toString.call(t)}var s;try{s=t("esprima")}catch(c){"undefined"!=typeof window&&(s=window.esprima)}var u=t("../../type");e.exports=new u("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13,esprima:"esprima"}],19:[function(t,e,n){"use strict";function i(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,n=/\/([gim]*)$/.exec(t),i="";if("/"===e[0]){if(n&&(i=n[1]),i.length>3)return!1;if("/"!==e[e.length-i.length-1])return!1;e=e.slice(1,e.length-i.length-1)}try{return!0}catch(r){return!1}}function r(t){var e=t,n=/\/([gim]*)$/.exec(t),i="";return"/"===e[0]&&(n&&(i=n[1]),e=e.slice(1,e.length-i.length-1)),new RegExp(e,i)}function o(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function a(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var s=t("../../type");e.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],20:[function(t,e,n){"use strict";function i(){return!0}function r(){return void 0}function o(){return""}function a(t){return"undefined"==typeof t}var s=t("../../type");e.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],21:[function(t,e,n){"use strict";var i=t("../type");e.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},{"../type":13}],22:[function(t,e,n){"use strict";function i(t){return"<<"===t||null===t}var r=t("../type");e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i})},{"../type":13}],23:[function(t,e,n){"use strict";function i(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function o(t){return null===t}var a=t("../type");e.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(t,e,n){"use strict";function i(t){if(null===t)return!0;var e,n,i,r,o,c=[],u=t;for(e=0,n=u.length;n>e;e+=1){if(i=u[e],o=!1,"[object Object]"!==s.call(i))return!1;for(r in i)if(a.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(r))return!1;c.push(r)}return!0}function r(t){return null!==t?t:[]}var o=t("../type"),a=Object.prototype.hasOwnProperty,s=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],25:[function(t,e,n){"use strict";function i(t){if(null===t)return!0;var e,n,i,r,o,s=t;for(o=new Array(s.length),e=0,n=s.length;n>e;e+=1){if(i=s[e],"[object Object]"!==a.call(i))return!1;if(r=Object.keys(i),1!==r.length)return!1;o[e]=[r[0],i[r[0]]]}return!0}function r(t){if(null===t)return[];var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;n>e;e+=1)i=a[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}var o=t("../type"),a=Object.prototype.toString;e.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],26:[function(t,e,n){"use strict";var i=t("../type");e.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},{"../type":13}],27:[function(t,e,n){"use strict";function i(t){if(null===t)return!0;var e,n=t;for(e in n)if(a.call(n,e)&&null!==n[e])return!1;return!0}function r(t){return null!==t?t:{}}var o=t("../type"),a=Object.prototype.hasOwnProperty;e.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:r})},{"../type":13}],28:[function(t,e,n){"use strict";var i=t("../type");e.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},{"../type":13}],29:[function(t,e,n){"use strict";function i(t){return null===t?!1:null===s.exec(t)?!1:!0}function r(t){var e,n,i,r,o,a,c,u,l,p,f=0,h=null;if(e=s.exec(t),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],a=+e[5],c=+e[6],e[7]){for(f=e[7].slice(0,3);f.length<3;)f+="0";f=+f}return e[9]&&(u=+e[10],l=+(e[11]||0),h=6e4*(60*u+l),"-"===e[9]&&(h=-h)),p=new Date(Date.UTC(n,i,r,o,a,c,f)),h&&p.setTime(p.getTime()-h),p}function o(t){return t.toISOString()}var a=t("../type"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");e.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:r,instanceOf:Date,represent:o})},{"../type":13}],30:[function(t,e,n){},{}],31:[function(t,e,n){e.exports=t("./lib/inherit")},{"./lib/inherit":32}],32:[function(e,n,i){!function(e){function r(t){var e=f(t);if(v)for(var n,i=0;n=b[i++];)t.hasOwnProperty(n)&&e.push(n);return e}function o(t,e,n){for(var i,o,a=r(n),s=0,u=a.length;u>s;)"__self"!==(i=a[s++])&&(o=n[i],g(o)&&(!c||o.toString().indexOf(".__base")>-1)?e[i]=function(n,i){var r=t[n]?t[n]:"__constructor"===n?e.__self.__parent:y;return function(){var t=this.__base;this.__base=r;var e=i.apply(this,arguments);return this.__base=t,e}}(i,o):e[i]=o)}function a(t,e){for(var n,i=1;n=t[i++];)e?g(n)?s.self(e,n.prototype,n):s.self(e,n):e=g(n)?s(t[0],n.prototype,n):s(t[0],n);return e||t[0]}function s(){var t=arguments,e=m(t[0]),n=e||g(t[0]),i=n?e?a(t[0]):t[0]:u,r=t[n?1:0]||{},s=t[n?2:1],c=r.__constructor||n&&i.prototype.__constructor?function(){return this.__constructor.apply(this,arguments)}:n?function(){return i.apply(this,arguments)}:function(){};if(!n)return c.prototype=r,c.prototype.__self=c.prototype.constructor=c,h(c,s);h(c,i),c.__parent=i;var l=i.prototype,f=c.prototype=p(l);return f.__self=f.constructor=c,r&&o(l,f,r),s&&o(i,c,s),c}var c=function(){"_"}.toString().indexOf("_")>-1,u=function(){},l=Object.prototype.hasOwnProperty,p=Object.create||function(t){var e=function(){};return e.prototype=t,new e},f=Object.keys||function(t){var e=[];for(var n in t)l.call(t,n)&&e.push(n);return e},h=function(t,e){for(var n in e)l.call(e,n)&&(t[n]=e[n]);return t},d=Object.prototype.toString,m=Array.isArray||function(t){return"[object Array]"===d.call(t)},g=function(t){return"[object Function]"===d.call(t)},y=function(){},v=!0,x={toString:""};for(var A in x)x.hasOwnProperty(A)&&(v=!1);var b=v?["toString","valueOf"]:null;s.self=function(){var t=arguments,e=m(t[0]),n=e?a(t[0],t[0][0]):t[0],i=t[1],r=t[2],s=n.prototype;return i&&o(s,s,i),r&&o(n,n,r),n};var w=!0;"object"==typeof i&&(n.exports=s,w=!1),"object"==typeof modules&&(modules.define("inherit",function(t){t(s)}),w=!1),"function"==typeof t&&(t(function(t,e,n){n.exports=s}),w=!1),w&&(e.inherit=s)}(this)},{}],"/":[function(t,e,n){"use strict";var i=t("./lib/js-yaml.js");e.exports=i},{"./lib/js-yaml.js":1}]},{},[])("/")});
1 +/**
2 + * @license
3 + * lodash 3.10.1 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
4 + * Build: `lodash compat -o ./lodash.js`
5 + */
6 +;(function(){function n(n,t){if(n!==t){var r=null===n,e=n===w,u=n===n,o=null===t,i=t===w,f=t===t;if(n>t&&!o||!u||r&&!i&&f||e&&f)return 1;if(n<t&&!r||!f||o&&!e&&u||i&&u)return-1}return 0}function t(n,t,r){for(var e=n.length,u=r?e:-1;r?u--:++u<e;)if(t(n[u],u,n))return u;return-1}function r(n,t,r){if(t!==t)return p(n,r);r-=1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function e(n){return typeof n=="function"||false}function u(n){return null==n?"":n+""}function o(n,t){for(var r=-1,e=n.length;++r<e&&-1<t.indexOf(n.charAt(r)););
7 +return r}function i(n,t){for(var r=n.length;r--&&-1<t.indexOf(n.charAt(r)););return r}function f(t,r){return n(t.a,r.a)||t.b-r.b}function a(n){return Nn[n]}function c(n){return Tn[n]}function l(n,t,r){return t?n=Bn[n]:r&&(n=Dn[n]),"\\"+n}function s(n){return"\\"+Dn[n]}function p(n,t,r){var e=n.length;for(t+=r?0:-1;r?t--:++t<e;){var u=n[t];if(u!==u)return t}return-1}function h(n){return!!n&&typeof n=="object"}function _(n){return 160>=n&&9<=n&&13>=n||32==n||160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n);
8 +}function v(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;)n[r]===t&&(n[r]=P,o[++u]=r);return o}function g(n){for(var t=-1,r=n.length;++t<r&&_(n.charCodeAt(t)););return t}function y(n){for(var t=n.length;t--&&_(n.charCodeAt(t)););return t}function d(n){return Pn[n]}function m(_){function Nn(n){if(h(n)&&!(Wo(n)||n instanceof zn)){if(n instanceof Pn)return n;if(eu.call(n,"__chain__")&&eu.call(n,"__wrapped__"))return qr(n)}return new Pn(n)}function Tn(){}function Pn(n,t,r){this.__wrapped__=n,this.__actions__=r||[],
9 +this.__chain__=!!t}function zn(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=Cu,this.__views__=[]}function Bn(){this.__data__={}}function Dn(n){var t=n?n.length:0;for(this.data={hash:mu(null),set:new hu};t--;)this.push(n[t])}function Mn(n,t){var r=n.data;return(typeof t=="string"||de(t)?r.set.has(t):r.hash[t])?0:-1}function qn(n,t){var r=-1,e=n.length;for(t||(t=De(e));++r<e;)t[r]=n[r];return t}function Kn(n,t){for(var r=-1,e=n.length;++r<e&&false!==t(n[r],r,n););
10 +return n}function Vn(n,t){for(var r=-1,e=n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function Zn(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r<e;){var i=n[r];t(i,r,n)&&(o[++u]=i)}return o}function Xn(n,t){for(var r=-1,e=n.length,u=De(e);++r<e;)u[r]=t(n[r],r,n);return u}function Hn(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function Qn(n,t,r,e){var u=-1,o=n.length;for(e&&o&&(r=n[++u]);++u<o;)r=t(r,n[u],u,n);return r}function nt(n,t){for(var r=-1,e=n.length;++r<e;)if(t(n[r],r,n))return true;
11 +return false}function tt(n,t,r,e){return n!==w&&eu.call(e,r)?n:t}function rt(n,t,r){for(var e=-1,u=Ko(t),o=u.length;++e<o;){var i=u[e],f=n[i],a=r(f,t[i],i,n,t);(a===a?a===f:f!==f)&&(f!==w||i in n)||(n[i]=a)}return n}function et(n,t){return null==t?n:ot(t,Ko(t),n)}function ut(n,t){for(var r=-1,e=null==n,u=!e&&Sr(n),o=u?n.length:0,i=t.length,f=De(i);++r<i;){var a=t[r];f[r]=u?Ur(a,o)?n[a]:w:e?w:n[a]}return f}function ot(n,t,r){r||(r={});for(var e=-1,u=t.length;++e<u;){var o=t[e];r[o]=n[o]}return r}function it(n,t,r){
12 +var e=typeof n;return"function"==e?t===w?n:Dt(n,t,r):null==n?Ne:"object"==e?At(n):t===w?Be(n):jt(n,t)}function ft(n,t,r,e,u,o,i){var f;if(r&&(f=u?r(n,e,u):r(n)),f!==w)return f;if(!de(n))return n;if(e=Wo(n)){if(f=Ir(n),!t)return qn(n,f)}else{var a=ou.call(n),c=a==K;if(a!=Z&&a!=z&&(!c||u))return Ln[a]?Er(n,a,t):u?n:{};if(Gn(n))return u?n:{};if(f=Rr(c?{}:n),!t)return et(f,n)}for(o||(o=[]),i||(i=[]),u=o.length;u--;)if(o[u]==n)return i[u];return o.push(n),i.push(f),(e?Kn:gt)(n,function(e,u){f[u]=ft(e,t,r,u,n,o,i);
13 +}),f}function at(n,t,r){if(typeof n!="function")throw new Xe(T);return _u(function(){n.apply(w,r)},t)}function ct(n,t){var e=n?n.length:0,u=[];if(!e)return u;var o=-1,i=jr(),f=i===r,a=f&&t.length>=F&&mu&&hu?new Dn(t):null,c=t.length;a&&(i=Mn,f=false,t=a);n:for(;++o<e;)if(a=n[o],f&&a===a){for(var l=c;l--;)if(t[l]===a)continue n;u.push(a)}else 0>i(t,a,0)&&u.push(a);return u}function lt(n,t){var r=true;return zu(n,function(n,e,u){return r=!!t(n,e,u)}),r}function st(n,t,r,e){var u=e,o=u;return zu(n,function(n,i,f){
14 +i=+t(n,i,f),(r(i,u)||i===e&&i===o)&&(u=i,o=n)}),o}function pt(n,t){var r=[];return zu(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function ht(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,false):void 0}),u}function _t(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++u<o;){var i=n[u];h(i)&&Sr(i)&&(r||Wo(i)||_e(i))?t?_t(i,t,r,e):Hn(e,i):r||(e[e.length]=i)}return e}function vt(n,t){return Du(n,t,Ee)}function gt(n,t){return Du(n,t,Ko)}function yt(n,t){return Mu(n,t,Ko)}function dt(n,t){for(var r=-1,e=t.length,u=-1,o=[];++r<e;){
15 +var i=t[r];ye(n[i])&&(o[++u]=i)}return o}function mt(n,t,r){if(null!=n){n=Dr(n),r!==w&&r in n&&(t=[r]),r=0;for(var e=t.length;null!=n&&r<e;)n=Dr(n)[t[r++]];return r&&r==e?n:w}}function wt(n,t,r,e,u,o){if(n===t)return true;if(null==n||null==t||!de(n)&&!h(t))return n!==n&&t!==t;n:{var i=wt,f=Wo(n),a=Wo(t),c=B,l=B;f||(c=ou.call(n),c==z?c=Z:c!=Z&&(f=je(n))),a||(l=ou.call(t),l==z?l=Z:l!=Z&&je(t));var s=c==Z&&!Gn(n),a=l==Z&&!Gn(t),l=c==l;if(!l||f||s){if(!e&&(c=s&&eu.call(n,"__wrapped__"),a=a&&eu.call(t,"__wrapped__"),
16 +c||a)){n=i(c?n.value():n,a?t.value():t,r,e,u,o);break n}if(l){for(u||(u=[]),o||(o=[]),c=u.length;c--;)if(u[c]==n){n=o[c]==t;break n}u.push(n),o.push(t),n=(f?mr:xr)(n,t,i,r,e,u,o),u.pop(),o.pop()}else n=false}else n=wr(n,t,c)}return n}function xt(n,t,r){var e=t.length,u=e,o=!r;if(null==n)return!u;for(n=Dr(n);e--;){var i=t[e];if(o&&i[2]?i[1]!==n[i[0]]:!(i[0]in n))return false}for(;++e<u;){var i=t[e],f=i[0],a=n[f],c=i[1];if(o&&i[2]){if(a===w&&!(f in n))return false}else if(i=r?r(a,c,f):w,i===w?!wt(c,a,r,true):!i)return false;
17 +}return true}function bt(n,t){var r=-1,e=Sr(n)?De(n.length):[];return zu(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function At(n){var t=kr(n);if(1==t.length&&t[0][2]){var r=t[0][0],e=t[0][1];return function(n){return null==n?false:(n=Dr(n),n[r]===e&&(e!==w||r in n))}}return function(n){return xt(n,t)}}function jt(n,t){var r=Wo(n),e=Wr(n)&&t===t&&!de(t),u=n+"";return n=Mr(n),function(o){if(null==o)return false;var i=u;if(o=Dr(o),!(!r&&e||i in o)){if(o=1==n.length?o:mt(o,St(n,0,-1)),null==o)return false;i=Gr(n),o=Dr(o);
18 +}return o[i]===t?t!==w||i in o:wt(t,o[i],w,true)}}function kt(n,t,r,e,u){if(!de(n))return n;var o=Sr(t)&&(Wo(t)||je(t)),i=o?w:Ko(t);return Kn(i||t,function(f,a){if(i&&(a=f,f=t[a]),h(f)){e||(e=[]),u||(u=[]);n:{for(var c=a,l=e,s=u,p=l.length,_=t[c];p--;)if(l[p]==_){n[c]=s[p];break n}var p=n[c],v=r?r(p,_,c,n,t):w,g=v===w;g&&(v=_,Sr(_)&&(Wo(_)||je(_))?v=Wo(p)?p:Sr(p)?qn(p):[]:xe(_)||_e(_)?v=_e(p)?Ie(p):xe(p)?p:{}:g=false),l.push(_),s.push(v),g?n[c]=kt(v,_,r,l,s):(v===v?v!==p:p===p)&&(n[c]=v)}}else c=n[a],
19 +l=r?r(c,f,a,n,t):w,(s=l===w)&&(l=f),l===w&&(!o||a in n)||!s&&(l===l?l===c:c!==c)||(n[a]=l)}),n}function Ot(n){return function(t){return null==t?w:Dr(t)[n]}}function It(n){var t=n+"";return n=Mr(n),function(r){return mt(r,n,t)}}function Rt(n,t){for(var r=n?t.length:0;r--;){var e=t[r];if(e!=u&&Ur(e)){var u=e;vu.call(n,e,1)}}return n}function Et(n,t){return n+wu(Ru()*(t-n+1))}function Ct(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function St(n,t,r){var e=-1,u=n.length;for(t=null==t?0:+t||0,
20 +0>t&&(t=-t>u?0:u+t),r=r===w||r>u?u:+r||0,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=De(u);++e<u;)r[e]=n[e+t];return r}function Ut(n,t){var r;return zu(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function $t(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function Wt(t,r,e){var u=br(),o=-1;return r=Xn(r,function(n){return u(n)}),t=bt(t,function(n){return{a:Xn(r,function(t){return t(n)}),b:++o,c:n}}),$t(t,function(t,r){var u;n:{for(var o=-1,i=t.a,f=r.a,a=i.length,c=e.length;++o<a;)if(u=n(i[o],f[o])){
21 +if(o>=c)break n;o=e[o],u*="asc"===o||true===o?1:-1;break n}u=t.b-r.b}return u})}function Ft(n,t){var r=0;return zu(n,function(n,e,u){r+=+t(n,e,u)||0}),r}function Lt(n,t){var e=-1,u=jr(),o=n.length,i=u===r,f=i&&o>=F,a=f&&mu&&hu?new Dn(void 0):null,c=[];a?(u=Mn,i=false):(f=false,a=t?[]:c);n:for(;++e<o;){var l=n[e],s=t?t(l,e,n):l;if(i&&l===l){for(var p=a.length;p--;)if(a[p]===s)continue n;t&&a.push(s),c.push(l)}else 0>u(a,s,0)&&((t||f)&&a.push(s),c.push(l))}return c}function Nt(n,t){for(var r=-1,e=t.length,u=De(e);++r<e;)u[r]=n[t[r]];
22 +return u}function Tt(n,t,r,e){for(var u=n.length,o=e?u:-1;(e?o--:++o<u)&&t(n[o],o,n););return r?St(n,e?0:o,e?o+1:u):St(n,e?o+1:0,e?u:o)}function Pt(n,t){var r=n;r instanceof zn&&(r=r.value());for(var e=-1,u=t.length;++e<u;)var o=t[e],r=o.func.apply(o.thisArg,Hn([r],o.args));return r}function zt(n,t,r){var e=0,u=n?n.length:e;if(typeof t=="number"&&t===t&&u<=Uu){for(;e<u;){var o=e+u>>>1,i=n[o];(r?i<=t:i<t)&&null!==i?e=o+1:u=o}return u}return Bt(n,t,Ne,r)}function Bt(n,t,r,e){t=r(t);for(var u=0,o=n?n.length:0,i=t!==t,f=null===t,a=t===w;u<o;){
23 +var c=wu((u+o)/2),l=r(n[c]),s=l!==w,p=l===l;(i?p||e:f?p&&s&&(e||null!=l):a?p&&(e||s):null==l?0:e?l<=t:l<t)?u=c+1:o=c}return ku(o,Su)}function Dt(n,t,r){if(typeof n!="function")return Ne;if(t===w)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)};case 5:return function(r,e,u,o,i){return n.call(t,r,e,u,o,i)}}return function(){return n.apply(t,arguments)}}function Mt(n){var t=new au(n.byteLength);
24 +return new gu(t).set(new gu(n)),t}function qt(n,t,r){for(var e=r.length,u=-1,o=ju(n.length-e,0),i=-1,f=t.length,a=De(f+o);++i<f;)a[i]=t[i];for(;++u<e;)a[r[u]]=n[u];for(;o--;)a[i++]=n[u++];return a}function Kt(n,t,r){for(var e=-1,u=r.length,o=-1,i=ju(n.length-u,0),f=-1,a=t.length,c=De(i+a);++o<i;)c[o]=n[o];for(i=o;++f<a;)c[i+f]=t[f];for(;++e<u;)c[i+r[e]]=n[o++];return c}function Vt(n,t){return function(r,e,u){var o=t?t():{};if(e=br(e,u,3),Wo(r)){u=-1;for(var i=r.length;++u<i;){var f=r[u];n(o,f,e(f,u,r),r);
25 +}}else zu(r,function(t,r,u){n(o,t,e(t,r,u),u)});return o}}function Zt(n){return pe(function(t,r){var e=-1,u=null==t?0:r.length,o=2<u?r[u-2]:w,i=2<u?r[2]:w,f=1<u?r[u-1]:w;for(typeof o=="function"?(o=Dt(o,f,5),u-=2):(o=typeof f=="function"?f:w,u-=o?1:0),i&&$r(r[0],r[1],i)&&(o=3>u?w:o,u=1);++e<u;)(i=r[e])&&n(t,i,o);return t})}function Yt(n,t){return function(r,e){var u=r?Vu(r):0;if(!Lr(u))return n(r,e);for(var o=t?u:-1,i=Dr(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}function Gt(n){return function(t,r,e){
26 +var u=Dr(t);e=e(t);for(var o=e.length,i=n?o:-1;n?i--:++i<o;){var f=e[i];if(false===r(u[f],f,u))break}return t}}function Jt(n,t){function r(){return(this&&this!==Yn&&this instanceof r?e:n).apply(t,arguments)}var e=Ht(n);return r}function Xt(n){return function(t){var r=-1;t=Fe(Ue(t));for(var e=t.length,u="";++r<e;)u=n(u,t[r],r);return u}}function Ht(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);
27 +case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Pu(n.prototype),t=n.apply(r,t);return de(t)?t:r}}function Qt(n){function t(r,e,u){return u&&$r(r,e,u)&&(e=w),r=dr(r,n,w,w,w,w,w,e),r.placeholder=t.placeholder,r}return t}function nr(n,t){return pe(function(r){var e=r[0];return null==e?e:(r.push(t),n.apply(w,r))})}function tr(n,t){return function(r,e,u){
28 +if(u&&$r(r,e,u)&&(e=w),e=br(e,u,3),1==e.length){u=r=Wo(r)?r:Br(r);for(var o=e,i=-1,f=u.length,a=t,c=a;++i<f;){var l=u[i],s=+o(l);n(s,a)&&(a=s,c=l)}if(u=c,!r.length||u!==t)return u}return st(r,e,n,t)}}function rr(n,r){return function(e,u,o){return u=br(u,o,3),Wo(e)?(u=t(e,u,r),-1<u?e[u]:w):ht(e,u,n)}}function er(n){return function(r,e,u){return r&&r.length?(e=br(e,u,3),t(r,e,n)):-1}}function ur(n){return function(t,r,e){return r=br(r,e,3),ht(t,r,n,true)}}function or(n){return function(){for(var t,r=arguments.length,e=n?r:-1,u=0,o=De(r);n?e--:++e<r;){
29 +var i=o[u++]=arguments[e];if(typeof i!="function")throw new Xe(T);!t&&Pn.prototype.thru&&"wrapper"==Ar(i)&&(t=new Pn([],true))}for(e=t?-1:r;++e<r;){var i=o[e],u=Ar(i),f="wrapper"==u?Ku(i):w;t=f&&Fr(f[0])&&f[1]==(E|k|I|C)&&!f[4].length&&1==f[9]?t[Ar(f[0])].apply(t,f[3]):1==i.length&&Fr(i)?t[u]():t.thru(i)}return function(){var n=arguments,e=n[0];if(t&&1==n.length&&Wo(e)&&e.length>=F)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++u<r;)n=o[u].call(this,n);return n}}}function ir(n,t){
30 +return function(r,e,u){return typeof e=="function"&&u===w&&Wo(r)?n(r,e):t(r,Dt(e,u,3))}}function fr(n){return function(t,r,e){return(typeof r!="function"||e!==w)&&(r=Dt(r,e,3)),n(t,r,Ee)}}function ar(n){return function(t,r,e){return(typeof r!="function"||e!==w)&&(r=Dt(r,e,3)),n(t,r)}}function cr(n){return function(t,r,e){var u={};return r=br(r,e,3),gt(t,function(t,e,o){o=r(t,e,o),e=n?o:e,t=n?t:o,u[e]=t}),u}}function lr(n){return function(t,r,e){return t=u(t),(n?t:"")+_r(t,r,e)+(n?"":t)}}function sr(n){
31 +var t=pe(function(r,e){var u=v(e,t.placeholder);return dr(r,n,w,e,u)});return t}function pr(n,t){return function(r,e,u,o){var i=3>arguments.length;return typeof e=="function"&&o===w&&Wo(r)?n(r,e,u,i):Ct(r,br(e,o,4),u,i,t)}}function hr(n,t,r,e,u,o,i,f,a,c){function l(){for(var m=arguments.length,x=m,j=De(m);x--;)j[x]=arguments[x];if(e&&(j=qt(j,e,u)),o&&(j=Kt(j,o,i)),_||y){var x=l.placeholder,k=v(j,x),m=m-k.length;if(m<c){var O=f?qn(f):w,m=ju(c-m,0),E=_?k:w,k=_?w:k,C=_?j:w,j=_?w:j;return t|=_?I:R,t&=~(_?R:I),
32 +g||(t&=~(b|A)),j=[n,t,r,C,E,j,k,O,a,m],O=hr.apply(w,j),Fr(n)&&Zu(O,j),O.placeholder=x,O}}if(x=p?r:this,O=h?x[n]:n,f)for(m=j.length,E=ku(f.length,m),k=qn(j);E--;)C=f[E],j[E]=Ur(C,m)?k[C]:w;return s&&a<j.length&&(j.length=a),this&&this!==Yn&&this instanceof l&&(O=d||Ht(n)),O.apply(x,j)}var s=t&E,p=t&b,h=t&A,_=t&k,g=t&j,y=t&O,d=h?w:Ht(n);return l}function _r(n,t,r){return n=n.length,t=+t,n<t&&bu(t)?(t-=n,r=null==r?" ":r+"",$e(r,du(t/r.length)).slice(0,t)):""}function vr(n,t,r,e){function u(){for(var t=-1,f=arguments.length,a=-1,c=e.length,l=De(c+f);++a<c;)l[a]=e[a];
33 +for(;f--;)l[a++]=arguments[++t];return(this&&this!==Yn&&this instanceof u?i:n).apply(o?r:this,l)}var o=t&b,i=Ht(n);return u}function gr(n){var t=Ve[n];return function(n,r){return(r=r===w?0:+r||0)?(r=su(10,r),t(n*r)/r):t(n)}}function yr(n){return function(t,r,e,u){var o=br(e);return null==e&&o===it?zt(t,r,n):Bt(t,r,o(e,u,1),n)}}function dr(n,t,r,e,u,o,i,f){var a=t&A;if(!a&&typeof n!="function")throw new Xe(T);var c=e?e.length:0;if(c||(t&=~(I|R),e=u=w),c-=u?u.length:0,t&R){var l=e,s=u;e=u=w}var p=a?w:Ku(n);
34 +return r=[n,t,r,e,u,l,s,o,i,f],p&&(e=r[1],t=p[1],f=e|t,u=t==E&&e==k||t==E&&e==C&&r[7].length<=p[8]||t==(E|C)&&e==k,(f<E||u)&&(t&b&&(r[2]=p[2],f|=e&b?0:j),(e=p[3])&&(u=r[3],r[3]=u?qt(u,e,p[4]):qn(e),r[4]=u?v(r[3],P):qn(p[4])),(e=p[5])&&(u=r[5],r[5]=u?Kt(u,e,p[6]):qn(e),r[6]=u?v(r[5],P):qn(p[6])),(e=p[7])&&(r[7]=qn(e)),t&E&&(r[8]=null==r[8]?p[8]:ku(r[8],p[8])),null==r[9]&&(r[9]=p[9]),r[0]=p[0],r[1]=f),t=r[1],f=r[9]),r[9]=null==f?a?0:n.length:ju(f-c,0)||0,n=t==b?Jt(r[0],r[2]):t!=I&&t!=(b|I)||r[4].length?hr.apply(w,r):vr.apply(w,r),
35 +(p?qu:Zu)(n,r)}function mr(n,t,r,e,u,o,i){var f=-1,a=n.length,c=t.length;if(a!=c&&(!u||c<=a))return false;for(;++f<a;){var l=n[f],c=t[f],s=e?e(u?c:l,u?l:c,f):w;if(s!==w){if(s)continue;return false}if(u){if(!nt(t,function(n){return l===n||r(l,n,e,u,o,i)}))return false}else if(l!==c&&!r(l,c,e,u,o,i))return false}return true}function wr(n,t,r){switch(r){case D:case M:return+n==+t;case q:return n.name==t.name&&n.message==t.message;case V:return n!=+n?t!=+t:n==+t;case Y:case G:return n==t+""}return false}function xr(n,t,r,e,u,o,i){
36 +var f=Ko(n),a=f.length,c=Ko(t).length;if(a!=c&&!u)return false;for(c=a;c--;){var l=f[c];if(!(u?l in t:eu.call(t,l)))return false}for(var s=u;++c<a;){var l=f[c],p=n[l],h=t[l],_=e?e(u?h:p,u?p:h,l):w;if(_===w?!r(p,h,e,u,o,i):!_)return false;s||(s="constructor"==l)}return s||(r=n.constructor,e=t.constructor,!(r!=e&&"constructor"in n&&"constructor"in t)||typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)?true:false}function br(n,t,r){var e=Nn.callback||Le,e=e===Le?it:e;return r?e(n,t,r):e}function Ar(n){
37 +for(var t=n.name+"",r=Fu[t],e=r?r.length:0;e--;){var u=r[e],o=u.func;if(null==o||o==n)return u.name}return t}function jr(n,t,e){var u=Nn.indexOf||Yr,u=u===Yr?r:u;return n?u(n,t,e):u}function kr(n){n=Ce(n);for(var t=n.length;t--;){var r,e=n[t];r=n[t][1],r=r===r&&!de(r),e[2]=r}return n}function Or(n,t){var r=null==n?w:n[t];return me(r)?r:w}function Ir(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&eu.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Rr(n){return n=n.constructor,
38 +typeof n=="function"&&n instanceof n||(n=Ye),new n}function Er(n,t,r){var e=n.constructor;switch(t){case J:return Mt(n);case D:case M:return new e(+n);case X:case H:case Q:case nn:case tn:case rn:case en:case un:case on:return e instanceof e&&(e=Lu[t]),t=n.buffer,new e(r?Mt(t):t,n.byteOffset,n.length);case V:case G:return new e(n);case Y:var u=new e(n.source,kn.exec(n));u.lastIndex=n.lastIndex}return u}function Cr(n,t,r){return null==n||Wr(t,n)||(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),t=Gr(t)),
39 +t=null==n?n:n[t],null==t?w:t.apply(n,r)}function Sr(n){return null!=n&&Lr(Vu(n))}function Ur(n,t){return n=typeof n=="number"||Rn.test(n)?+n:-1,t=null==t?$u:t,-1<n&&0==n%1&&n<t}function $r(n,t,r){if(!de(r))return false;var e=typeof t;return("number"==e?Sr(r)&&Ur(t,r.length):"string"==e&&t in r)?(t=r[t],n===n?n===t:t!==t):false}function Wr(n,t){var r=typeof n;return"string"==r&&dn.test(n)||"number"==r?true:Wo(n)?false:!yn.test(n)||null!=t&&n in Dr(t)}function Fr(n){var t=Ar(n),r=Nn[t];return typeof r=="function"&&t in zn.prototype?n===r?true:(t=Ku(r),
40 +!!t&&n===t[0]):false}function Lr(n){return typeof n=="number"&&-1<n&&0==n%1&&n<=$u}function Nr(n,t){return n===w?t:Fo(n,t,Nr)}function Tr(n,t){n=Dr(n);for(var r=-1,e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function Pr(n,t){var r={};return vt(n,function(n,e,u){t(n,e,u)&&(r[e]=n)}),r}function zr(n){for(var t=Ee(n),r=t.length,e=r&&n.length,u=!!e&&Lr(e)&&(Wo(n)||_e(n)||Ae(n)),o=-1,i=[];++o<r;){var f=t[o];(u&&Ur(f,e)||eu.call(n,f))&&i.push(f)}return i}function Br(n){return null==n?[]:Sr(n)?Nn.support.unindexedChars&&Ae(n)?n.split(""):de(n)?n:Ye(n):Se(n);
41 +}function Dr(n){if(Nn.support.unindexedChars&&Ae(n)){for(var t=-1,r=n.length,e=Ye(n);++t<r;)e[t]=n.charAt(t);return e}return de(n)?n:Ye(n)}function Mr(n){if(Wo(n))return n;var t=[];return u(n).replace(mn,function(n,r,e,u){t.push(e?u.replace(An,"$1"):r||n)}),t}function qr(n){return n instanceof zn?n.clone():new Pn(n.__wrapped__,n.__chain__,qn(n.__actions__))}function Kr(n,t,r){return n&&n.length?((r?$r(n,t,r):null==t)&&(t=1),St(n,0>t?0:t)):[]}function Vr(n,t,r){var e=n?n.length:0;return e?((r?$r(n,t,r):null==t)&&(t=1),
42 +t=e-(+t||0),St(n,0,0>t?0:t)):[]}function Zr(n){return n?n[0]:w}function Yr(n,t,e){var u=n?n.length:0;if(!u)return-1;if(typeof e=="number")e=0>e?ju(u+e,0):e;else if(e)return e=zt(n,t),e<u&&(t===t?t===n[e]:n[e]!==n[e])?e:-1;return r(n,t,e||0)}function Gr(n){var t=n?n.length:0;return t?n[t-1]:w}function Jr(n){return Kr(n,1)}function Xr(n,t,e,u){if(!n||!n.length)return[];null!=t&&typeof t!="boolean"&&(u=e,e=$r(n,t,u)?w:t,t=false);var o=br();if((null!=e||o!==it)&&(e=o(e,u,3)),t&&jr()===r){t=e;var i;e=-1,
43 +u=n.length;for(var o=-1,f=[];++e<u;){var a=n[e],c=t?t(a,e,n):a;e&&i===c||(i=c,f[++o]=a)}n=f}else n=Lt(n,e);return n}function Hr(n){if(!n||!n.length)return[];var t=-1,r=0;n=Zn(n,function(n){return Sr(n)?(r=ju(n.length,r),true):void 0});for(var e=De(r);++t<r;)e[t]=Xn(n,Ot(t));return e}function Qr(n,t,r){return n&&n.length?(n=Hr(n),null==t?n:(t=Dt(t,r,4),Xn(n,function(n){return Qn(n,t,w,true)}))):[]}function ne(n,t){var r=-1,e=n?n.length:0,u={};for(!e||t||Wo(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1]);
44 +}return u}function te(n){return n=Nn(n),n.__chain__=true,n}function re(n,t,r){return t.call(r,n)}function ee(n,t,r){var e=Wo(n)?Vn:lt;return r&&$r(n,t,r)&&(t=w),(typeof t!="function"||r!==w)&&(t=br(t,r,3)),e(n,t)}function ue(n,t,r){var e=Wo(n)?Zn:pt;return t=br(t,r,3),e(n,t)}function oe(n,t,r,e){var u=n?Vu(n):0;return Lr(u)||(n=Se(n),u=n.length),r=typeof r!="number"||e&&$r(t,r,e)?0:0>r?ju(u+r,0):r||0,typeof n=="string"||!Wo(n)&&Ae(n)?r<=u&&-1<n.indexOf(t,r):!!u&&-1<jr(n,t,r)}function ie(n,t,r){var e=Wo(n)?Xn:bt;
45 +return t=br(t,r,3),e(n,t)}function fe(n,t,r){if(r?$r(n,t,r):null==t){n=Br(n);var e=n.length;return 0<e?n[Et(0,e-1)]:w}r=-1,n=Oe(n);var e=n.length,u=e-1;for(t=ku(0>t?0:+t||0,e);++r<t;){var e=Et(r,u),o=n[e];n[e]=n[r],n[r]=o}return n.length=t,n}function ae(n,t,r){var e=Wo(n)?nt:Ut;return r&&$r(n,t,r)&&(t=w),(typeof t!="function"||r!==w)&&(t=br(t,r,3)),e(n,t)}function ce(n,t){var r;if(typeof t!="function"){if(typeof n!="function")throw new Xe(T);var e=n;n=t,t=e}return function(){return 0<--n&&(r=t.apply(this,arguments)),
46 +1>=n&&(t=w),r}}function le(n,t,r){function e(t,r){r&&cu(r),a=p=h=w,t&&(_=wo(),c=n.apply(s,f),p||a||(f=s=w))}function u(){var n=t-(wo()-l);0>=n||n>t?e(h,a):p=_u(u,n)}function o(){e(g,p)}function i(){if(f=arguments,l=wo(),s=this,h=g&&(p||!y),false===v)var r=y&&!p;else{a||y||(_=l);var e=v-(l-_),i=0>=e||e>v;i?(a&&(a=cu(a)),_=l,c=n.apply(s,f)):a||(a=_u(o,e))}return i&&p?p=cu(p):p||t===v||(p=_u(u,t)),r&&(i=true,c=n.apply(s,f)),!i||p||a||(f=s=w),c}var f,a,c,l,s,p,h,_=0,v=false,g=true;if(typeof n!="function")throw new Xe(T);
47 +if(t=0>t?0:+t||0,true===r)var y=true,g=false;else de(r)&&(y=!!r.leading,v="maxWait"in r&&ju(+r.maxWait||0,t),g="trailing"in r?!!r.trailing:g);return i.cancel=function(){p&&cu(p),a&&cu(a),_=0,a=p=h=w},i}function se(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new Xe(T);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)};return r.cache=new se.Cache,r}function pe(n,t){if(typeof n!="function")throw new Xe(T);return t=ju(t===w?n.length-1:+t||0,0),
48 +function(){for(var r=arguments,e=-1,u=ju(r.length-t,0),o=De(u);++e<u;)o[e]=r[t+e];switch(t){case 0:return n.call(this,o);case 1:return n.call(this,r[0],o);case 2:return n.call(this,r[0],r[1],o)}for(u=De(t+1),e=-1;++e<t;)u[e]=r[e];return u[t]=o,n.apply(this,u)}}function he(n,t){return n>t}function _e(n){return h(n)&&Sr(n)&&eu.call(n,"callee")&&!pu.call(n,"callee")}function ve(n,t,r,e){return e=(r=typeof r=="function"?Dt(r,e,3):w)?r(n,t):w,e===w?wt(n,t,r):!!e}function ge(n){return h(n)&&typeof n.message=="string"&&ou.call(n)==q;
49 +}function ye(n){return de(n)&&ou.call(n)==K}function de(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function me(n){return null==n?false:ye(n)?fu.test(ru.call(n)):h(n)&&(Gn(n)?fu:In).test(n)}function we(n){return typeof n=="number"||h(n)&&ou.call(n)==V}function xe(n){var t;if(!h(n)||ou.call(n)!=Z||Gn(n)||_e(n)||!(eu.call(n,"constructor")||(t=n.constructor,typeof t!="function"||t instanceof t)))return false;var r;return Nn.support.ownLast?(vt(n,function(n,t,e){return r=eu.call(e,t),false}),false!==r):(vt(n,function(n,t){
50 +r=t}),r===w||eu.call(n,r))}function be(n){return de(n)&&ou.call(n)==Y}function Ae(n){return typeof n=="string"||h(n)&&ou.call(n)==G}function je(n){return h(n)&&Lr(n.length)&&!!Fn[ou.call(n)]}function ke(n,t){return n<t}function Oe(n){var t=n?Vu(n):0;return Lr(t)?t?Nn.support.unindexedChars&&Ae(n)?n.split(""):qn(n):[]:Se(n)}function Ie(n){return ot(n,Ee(n))}function Re(n){return dt(n,Ee(n))}function Ee(n){if(null==n)return[];de(n)||(n=Ye(n));for(var t=n.length,r=Nn.support,t=t&&Lr(t)&&(Wo(n)||_e(n)||Ae(n))&&t||0,e=n.constructor,u=-1,e=ye(e)&&e.prototype||nu,o=e===n,i=De(t),f=0<t,a=r.enumErrorProps&&(n===Qe||n instanceof qe),c=r.enumPrototypes&&ye(n);++u<t;)i[u]=u+"";
51 +for(var l in n)c&&"prototype"==l||a&&("message"==l||"name"==l)||f&&Ur(l,t)||"constructor"==l&&(o||!eu.call(n,l))||i.push(l);if(r.nonEnumShadows&&n!==nu)for(t=n===tu?G:n===Qe?q:ou.call(n),r=Nu[t]||Nu[Z],t==Z&&(e=nu),t=Wn.length;t--;)l=Wn[t],u=r[l],o&&u||(u?!eu.call(n,l):n[l]===e[l])||i.push(l);return i}function Ce(n){n=Dr(n);for(var t=-1,r=Ko(n),e=r.length,u=De(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u}function Se(n){return Nt(n,Ko(n))}function Ue(n){return(n=u(n))&&n.replace(En,a).replace(bn,"");
52 +}function $e(n,t){var r="";if(n=u(n),t=+t,1>t||!n||!bu(t))return r;do t%2&&(r+=n),t=wu(t/2),n+=n;while(t);return r}function We(n,t,r){var e=n;return(n=u(n))?(r?$r(e,t,r):null==t)?n.slice(g(n),y(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function Fe(n,t,r){return r&&$r(n,t,r)&&(t=w),n=u(n),n.match(t||Un)||[]}function Le(n,t,r){return r&&$r(n,t,r)&&(t=w),h(n)?Te(n):it(n,t)}function Ne(n){return n}function Te(n){return At(ft(n,true))}function Pe(n,t,r){if(null==r){var e=de(t),u=e?Ko(t):w;((u=u&&u.length?dt(t,u):w)?u.length:e)||(u=false,
53 +r=t,t=n,n=this)}u||(u=dt(t,Ko(t)));var o=true,e=-1,i=ye(n),f=u.length;false===r?o=false:de(r)&&"chain"in r&&(o=r.chain);for(;++e<f;){r=u[e];var a=t[r];n[r]=a,i&&(n.prototype[r]=function(t){return function(){var r=this.__chain__;if(o||r){var e=n(this.__wrapped__);return(e.__actions__=qn(this.__actions__)).push({func:t,args:arguments,thisArg:n}),e.__chain__=r,e}return t.apply(n,Hn([this.value()],arguments))}}(a))}return n}function ze(){}function Be(n){return Wr(n)?Ot(n):It(n)}_=_?Jn.defaults(Yn.Object(),_,Jn.pick(Yn,$n)):Yn;
54 +var De=_.Array,Me=_.Date,qe=_.Error,Ke=_.Function,Ve=_.Math,Ze=_.Number,Ye=_.Object,Ge=_.RegExp,Je=_.String,Xe=_.TypeError,He=De.prototype,Qe=qe.prototype,nu=Ye.prototype,tu=Je.prototype,ru=Ke.prototype.toString,eu=nu.hasOwnProperty,uu=0,ou=nu.toString,iu=Yn._,fu=Ge("^"+ru.call(eu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),au=_.ArrayBuffer,cu=_.clearTimeout,lu=_.parseFloat,su=Ve.pow,pu=nu.propertyIsEnumerable,hu=Or(_,"Set"),_u=_.setTimeout,vu=He.splice,gu=_.Uint8Array,yu=Or(_,"WeakMap"),du=Ve.ceil,mu=Or(Ye,"create"),wu=Ve.floor,xu=Or(De,"isArray"),bu=_.isFinite,Au=Or(Ye,"keys"),ju=Ve.max,ku=Ve.min,Ou=Or(Me,"now"),Iu=_.parseInt,Ru=Ve.random,Eu=Ze.NEGATIVE_INFINITY,Cu=Ze.POSITIVE_INFINITY,Su=4294967294,Uu=2147483647,$u=9007199254740991,Wu=yu&&new yu,Fu={},Lu={};
55 +Lu[X]=_.Float32Array,Lu[H]=_.Float64Array,Lu[Q]=_.Int8Array,Lu[nn]=_.Int16Array,Lu[tn]=_.Int32Array,Lu[rn]=gu,Lu[en]=_.Uint8ClampedArray,Lu[un]=_.Uint16Array,Lu[on]=_.Uint32Array;var Nu={};Nu[B]=Nu[M]=Nu[V]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Nu[D]=Nu[G]={constructor:true,toString:true,valueOf:true},Nu[q]=Nu[K]=Nu[Y]={constructor:true,toString:true},Nu[Z]={constructor:true},Kn(Wn,function(n){for(var t in Nu)if(eu.call(Nu,t)){var r=Nu[t];r[n]=eu.call(r,n)}});var Tu=Nn.support={};!function(n){
56 +var t=function(){this.x=n},r={0:n,length:n},e=[];t.prototype={valueOf:n,y:n};for(var u in new t)e.push(u);Tu.enumErrorProps=pu.call(Qe,"message")||pu.call(Qe,"name"),Tu.enumPrototypes=pu.call(t,"prototype"),Tu.nonEnumShadows=!/valueOf/.test(e),Tu.ownLast="x"!=e[0],Tu.spliceObjects=(vu.call(r,0,1),!r[0]),Tu.unindexedChars="xx"!="x"[0]+Ye("x")[0]}(1,0),Nn.templateSettings={escape:_n,evaluate:vn,interpolate:gn,variable:"",imports:{_:Nn}};var Pu=function(){function n(){}return function(t){if(de(t)){n.prototype=t;
57 +var r=new n;n.prototype=w}return r||{}}}(),zu=Yt(gt),Bu=Yt(yt,true),Du=Gt(),Mu=Gt(true),qu=Wu?function(n,t){return Wu.set(n,t),n}:Ne,Ku=Wu?function(n){return Wu.get(n)}:ze,Vu=Ot("length"),Zu=function(){var n=0,t=0;return function(r,e){var u=wo(),o=W-(u-t);if(t=u,0<o){if(++n>=$)return r}else n=0;return qu(r,e)}}(),Yu=pe(function(n,t){return h(n)&&Sr(n)?ct(n,_t(t,false,true)):[]}),Gu=er(),Ju=er(true),Xu=pe(function(n){for(var t=n.length,e=t,u=De(l),o=jr(),i=o===r,f=[];e--;){var a=n[e]=Sr(a=n[e])?a:[];u[e]=i&&120<=a.length&&mu&&hu?new Dn(e&&a):null;
58 +}var i=n[0],c=-1,l=i?i.length:0,s=u[0];n:for(;++c<l;)if(a=i[c],0>(s?Mn(s,a):o(f,a,0))){for(e=t;--e;){var p=u[e];if(0>(p?Mn(p,a):o(n[e],a,0)))continue n}s&&s.push(a),f.push(a)}return f}),Hu=pe(function(t,r){r=_t(r);var e=ut(t,r);return Rt(t,r.sort(n)),e}),Qu=yr(),no=yr(true),to=pe(function(n){return Lt(_t(n,false,true))}),ro=pe(function(n,t){return Sr(n)?ct(n,t):[]}),eo=pe(Hr),uo=pe(function(n){var t=n.length,r=2<t?n[t-2]:w,e=1<t?n[t-1]:w;return 2<t&&typeof r=="function"?t-=2:(r=1<t&&typeof e=="function"?(--t,
59 +e):w,e=w),n.length=t,Qr(n,r,e)}),oo=pe(function(n){return n=_t(n),this.thru(function(t){t=Wo(t)?t:[Dr(t)];for(var r=n,e=-1,u=t.length,o=-1,i=r.length,f=De(u+i);++e<u;)f[e]=t[e];for(;++o<i;)f[e++]=r[o];return f})}),io=pe(function(n,t){return Sr(n)&&(n=Br(n)),ut(n,_t(t))}),fo=Vt(function(n,t,r){eu.call(n,r)?++n[r]:n[r]=1}),ao=rr(zu),co=rr(Bu,true),lo=ir(Kn,zu),so=ir(function(n,t){for(var r=n.length;r--&&false!==t(n[r],r,n););return n},Bu),po=Vt(function(n,t,r){eu.call(n,r)?n[r].push(t):n[r]=[t]}),ho=Vt(function(n,t,r){
60 +n[r]=t}),_o=pe(function(n,t,r){var e=-1,u=typeof t=="function",o=Wr(t),i=Sr(n)?De(n.length):[];return zu(n,function(n){var f=u?t:o&&null!=n?n[t]:w;i[++e]=f?f.apply(n,r):Cr(n,t,r)}),i}),vo=Vt(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),go=pr(Qn,zu),yo=pr(function(n,t,r,e){var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r},Bu),mo=pe(function(n,t){if(null==n)return[];var r=t[2];return r&&$r(t[0],t[1],r)&&(t.length=1),Wt(n,_t(t),[])}),wo=Ou||function(){return(new Me).getTime();
61 +},xo=pe(function(n,t,r){var e=b;if(r.length)var u=v(r,xo.placeholder),e=e|I;return dr(n,e,t,r,u)}),bo=pe(function(n,t){t=t.length?_t(t):Re(n);for(var r=-1,e=t.length;++r<e;){var u=t[r];n[u]=dr(n[u],b,n)}return n}),Ao=pe(function(n,t,r){var e=b|A;if(r.length)var u=v(r,Ao.placeholder),e=e|I;return dr(t,e,n,r,u)}),jo=Qt(k),ko=Qt(O),Oo=pe(function(n,t){return at(n,1,t)}),Io=pe(function(n,t,r){return at(n,t,r)}),Ro=or(),Eo=or(true),Co=pe(function(n,t){if(t=_t(t),typeof n!="function"||!Vn(t,e))throw new Xe(T);
62 +var r=t.length;return pe(function(e){for(var u=ku(e.length,r);u--;)e[u]=t[u](e[u]);return n.apply(this,e)})}),So=sr(I),Uo=sr(R),$o=pe(function(n,t){return dr(n,C,w,w,w,_t(t))}),Wo=xu||function(n){return h(n)&&Lr(n.length)&&ou.call(n)==B},Fo=Zt(kt),Lo=Zt(function(n,t,r){return r?rt(n,t,r):et(n,t)}),No=nr(Lo,function(n,t){return n===w?t:n}),To=nr(Fo,Nr),Po=ur(gt),zo=ur(yt),Bo=fr(Du),Do=fr(Mu),Mo=ar(gt),qo=ar(yt),Ko=Au?function(n){var t=null==n?w:n.constructor;return typeof t=="function"&&t.prototype===n||(typeof n=="function"?Nn.support.enumPrototypes:Sr(n))?zr(n):de(n)?Au(n):[];
63 +}:zr,Vo=cr(true),Zo=cr(),Yo=pe(function(n,t){if(null==n)return{};if("function"!=typeof t[0])return t=Xn(_t(t),Je),Tr(n,ct(Ee(n),t));var r=Dt(t[0],t[1],3);return Pr(n,function(n,t,e){return!r(n,t,e)})}),Go=pe(function(n,t){return null==n?{}:"function"==typeof t[0]?Pr(n,Dt(t[0],t[1],3)):Tr(n,_t(t))}),Jo=Xt(function(n,t,r){return t=t.toLowerCase(),n+(r?t.charAt(0).toUpperCase()+t.slice(1):t)}),Xo=Xt(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Ho=lr(),Qo=lr(true),ni=Xt(function(n,t,r){return n+(r?"_":"")+t.toLowerCase();
64 +}),ti=Xt(function(n,t,r){return n+(r?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),ri=pe(function(n,t){try{return n.apply(w,t)}catch(r){return ge(r)?r:new qe(r)}}),ei=pe(function(n,t){return function(r){return Cr(r,n,t)}}),ui=pe(function(n,t){return function(r){return Cr(n,r,t)}}),oi=gr("ceil"),ii=gr("floor"),fi=tr(he,Eu),ai=tr(ke,Cu),ci=gr("round");return Nn.prototype=Tn.prototype,Pn.prototype=Pu(Tn.prototype),Pn.prototype.constructor=Pn,zn.prototype=Pu(Tn.prototype),zn.prototype.constructor=zn,
65 +Bn.prototype["delete"]=function(n){return this.has(n)&&delete this.__data__[n]},Bn.prototype.get=function(n){return"__proto__"==n?w:this.__data__[n]},Bn.prototype.has=function(n){return"__proto__"!=n&&eu.call(this.__data__,n)},Bn.prototype.set=function(n,t){return"__proto__"!=n&&(this.__data__[n]=t),this},Dn.prototype.push=function(n){var t=this.data;typeof n=="string"||de(n)?t.set.add(n):t.hash[n]=true},se.Cache=Bn,Nn.after=function(n,t){if(typeof t!="function"){if(typeof n!="function")throw new Xe(T);
66 +var r=n;n=t,t=r}return n=bu(n=+n)?n:0,function(){return 1>--n?t.apply(this,arguments):void 0}},Nn.ary=function(n,t,r){return r&&$r(n,t,r)&&(t=w),t=n&&null==t?n.length:ju(+t||0,0),dr(n,E,w,w,w,w,t)},Nn.assign=Lo,Nn.at=io,Nn.before=ce,Nn.bind=xo,Nn.bindAll=bo,Nn.bindKey=Ao,Nn.callback=Le,Nn.chain=te,Nn.chunk=function(n,t,r){t=(r?$r(n,t,r):null==t)?1:ju(wu(t)||1,1),r=0;for(var e=n?n.length:0,u=-1,o=De(du(e/t));r<e;)o[++u]=St(n,r,r+=t);return o},Nn.compact=function(n){for(var t=-1,r=n?n.length:0,e=-1,u=[];++t<r;){
67 +var o=n[t];o&&(u[++e]=o)}return u},Nn.constant=function(n){return function(){return n}},Nn.countBy=fo,Nn.create=function(n,t,r){var e=Pu(n);return r&&$r(n,t,r)&&(t=w),t?et(e,t):e},Nn.curry=jo,Nn.curryRight=ko,Nn.debounce=le,Nn.defaults=No,Nn.defaultsDeep=To,Nn.defer=Oo,Nn.delay=Io,Nn.difference=Yu,Nn.drop=Kr,Nn.dropRight=Vr,Nn.dropRightWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),true,true):[]},Nn.dropWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),true):[]},Nn.fill=function(n,t,r,e){
68 +var u=n?n.length:0;if(!u)return[];for(r&&typeof r!="number"&&$r(n,t,r)&&(r=0,e=u),u=n.length,r=null==r?0:+r||0,0>r&&(r=-r>u?0:u+r),e=e===w||e>u?u:+e||0,0>e&&(e+=u),u=r>e?0:e>>>0,r>>>=0;r<u;)n[r++]=t;return n},Nn.filter=ue,Nn.flatten=function(n,t,r){var e=n?n.length:0;return r&&$r(n,t,r)&&(t=false),e?_t(n,t):[]},Nn.flattenDeep=function(n){return n&&n.length?_t(n,true):[]},Nn.flow=Ro,Nn.flowRight=Eo,Nn.forEach=lo,Nn.forEachRight=so,Nn.forIn=Bo,Nn.forInRight=Do,Nn.forOwn=Mo,Nn.forOwnRight=qo,Nn.functions=Re,
69 +Nn.groupBy=po,Nn.indexBy=ho,Nn.initial=function(n){return Vr(n,1)},Nn.intersection=Xu,Nn.invert=function(n,t,r){r&&$r(n,t,r)&&(t=w),r=-1;for(var e=Ko(n),u=e.length,o={};++r<u;){var i=e[r],f=n[i];t?eu.call(o,f)?o[f].push(i):o[f]=[i]:o[f]=i}return o},Nn.invoke=_o,Nn.keys=Ko,Nn.keysIn=Ee,Nn.map=ie,Nn.mapKeys=Vo,Nn.mapValues=Zo,Nn.matches=Te,Nn.matchesProperty=function(n,t){return jt(n,ft(t,true))},Nn.memoize=se,Nn.merge=Fo,Nn.method=ei,Nn.methodOf=ui,Nn.mixin=Pe,Nn.modArgs=Co,Nn.negate=function(n){if(typeof n!="function")throw new Xe(T);
70 +return function(){return!n.apply(this,arguments)}},Nn.omit=Yo,Nn.once=function(n){return ce(2,n)},Nn.pairs=Ce,Nn.partial=So,Nn.partialRight=Uo,Nn.partition=vo,Nn.pick=Go,Nn.pluck=function(n,t){return ie(n,Be(t))},Nn.property=Be,Nn.propertyOf=function(n){return function(t){return mt(n,Mr(t),t+"")}},Nn.pull=function(){var n=arguments,t=n[0];if(!t||!t.length)return t;for(var r=0,e=jr(),u=n.length;++r<u;)for(var o=0,i=n[r];-1<(o=e(t,i,o));)vu.call(t,o,1);return t},Nn.pullAt=Hu,Nn.range=function(n,t,r){
71 +r&&$r(n,t,r)&&(t=r=w),n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=ju(du((t-n)/(r||1)),0);for(var u=De(t);++e<t;)u[e]=n,n+=r;return u},Nn.rearg=$o,Nn.reject=function(n,t,r){var e=Wo(n)?Zn:pt;return t=br(t,r,3),e(n,function(n,r,e){return!t(n,r,e)})},Nn.remove=function(n,t,r){var e=[];if(!n||!n.length)return e;var u=-1,o=[],i=n.length;for(t=br(t,r,3);++u<i;)r=n[u],t(r,u,n)&&(e.push(r),o.push(u));return Rt(n,o),e},Nn.rest=Jr,Nn.restParam=pe,Nn.set=function(n,t,r){if(null==n)return n;
72 +var e=t+"";t=null!=n[e]||Wr(t,n)?[e]:Mr(t);for(var e=-1,u=t.length,o=u-1,i=n;null!=i&&++e<u;){var f=t[e];de(i)&&(e==o?i[f]=r:null==i[f]&&(i[f]=Ur(t[e+1])?[]:{})),i=i[f]}return n},Nn.shuffle=function(n){return fe(n,Cu)},Nn.slice=function(n,t,r){var e=n?n.length:0;return e?(r&&typeof r!="number"&&$r(n,t,r)&&(t=0,r=e),St(n,t,r)):[]},Nn.sortBy=function(n,t,r){if(null==n)return[];r&&$r(n,t,r)&&(t=w);var e=-1;return t=br(t,r,3),n=bt(n,function(n,r,u){return{a:t(n,r,u),b:++e,c:n}}),$t(n,f)},Nn.sortByAll=mo,
73 +Nn.sortByOrder=function(n,t,r,e){return null==n?[]:(e&&$r(t,r,e)&&(r=w),Wo(t)||(t=null==t?[]:[t]),Wo(r)||(r=null==r?[]:[r]),Wt(n,t,r))},Nn.spread=function(n){if(typeof n!="function")throw new Xe(T);return function(t){return n.apply(this,t)}},Nn.take=function(n,t,r){return n&&n.length?((r?$r(n,t,r):null==t)&&(t=1),St(n,0,0>t?0:t)):[]},Nn.takeRight=function(n,t,r){var e=n?n.length:0;return e?((r?$r(n,t,r):null==t)&&(t=1),t=e-(+t||0),St(n,0>t?0:t)):[]},Nn.takeRightWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3),false,true):[];
74 +},Nn.takeWhile=function(n,t,r){return n&&n.length?Tt(n,br(t,r,3)):[]},Nn.tap=function(n,t,r){return t.call(r,n),n},Nn.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new Xe(T);return false===r?e=false:de(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),le(n,t,{leading:e,maxWait:+t,trailing:u})},Nn.thru=re,Nn.times=function(n,t,r){if(n=wu(n),1>n||!bu(n))return[];var e=-1,u=De(ku(n,4294967295));for(t=Dt(t,r,1);++e<n;)4294967295>e?u[e]=t(e):t(e);return u},Nn.toArray=Oe,
75 +Nn.toPlainObject=Ie,Nn.transform=function(n,t,r,e){var u=Wo(n)||je(n);return t=br(t,e,4),null==r&&(u||de(n)?(e=n.constructor,r=u?Wo(n)?new e:[]:Pu(ye(e)?e.prototype:w)):r={}),(u?Kn:gt)(n,function(n,e,u){return t(r,n,e,u)}),r},Nn.union=to,Nn.uniq=Xr,Nn.unzip=Hr,Nn.unzipWith=Qr,Nn.values=Se,Nn.valuesIn=function(n){return Nt(n,Ee(n))},Nn.where=function(n,t){return ue(n,At(t))},Nn.without=ro,Nn.wrap=function(n,t){return t=null==t?Ne:t,dr(t,I,w,[n],[])},Nn.xor=function(){for(var n=-1,t=arguments.length;++n<t;){
76 +var r=arguments[n];if(Sr(r))var e=e?Hn(ct(e,r),ct(r,e)):r}return e?Lt(e):[]},Nn.zip=eo,Nn.zipObject=ne,Nn.zipWith=uo,Nn.backflow=Eo,Nn.collect=ie,Nn.compose=Eo,Nn.each=lo,Nn.eachRight=so,Nn.extend=Lo,Nn.iteratee=Le,Nn.methods=Re,Nn.object=ne,Nn.select=ue,Nn.tail=Jr,Nn.unique=Xr,Pe(Nn,Nn),Nn.add=function(n,t){return(+n||0)+(+t||0)},Nn.attempt=ri,Nn.camelCase=Jo,Nn.capitalize=function(n){return(n=u(n))&&n.charAt(0).toUpperCase()+n.slice(1)},Nn.ceil=oi,Nn.clone=function(n,t,r,e){return t&&typeof t!="boolean"&&$r(n,t,r)?t=false:typeof t=="function"&&(e=r,
77 +r=t,t=false),typeof r=="function"?ft(n,t,Dt(r,e,3)):ft(n,t)},Nn.cloneDeep=function(n,t,r){return typeof t=="function"?ft(n,true,Dt(t,r,3)):ft(n,true)},Nn.deburr=Ue,Nn.endsWith=function(n,t,r){n=u(n),t+="";var e=n.length;return r=r===w?e:ku(0>r?0:+r||0,e),r-=t.length,0<=r&&n.indexOf(t,r)==r},Nn.escape=function(n){return(n=u(n))&&hn.test(n)?n.replace(sn,c):n},Nn.escapeRegExp=function(n){return(n=u(n))&&xn.test(n)?n.replace(wn,l):n||"(?:)"},Nn.every=ee,Nn.find=ao,Nn.findIndex=Gu,Nn.findKey=Po,Nn.findLast=co,
78 +Nn.findLastIndex=Ju,Nn.findLastKey=zo,Nn.findWhere=function(n,t){return ao(n,At(t))},Nn.first=Zr,Nn.floor=ii,Nn.get=function(n,t,r){return n=null==n?w:mt(n,Mr(t),t+""),n===w?r:n},Nn.gt=he,Nn.gte=function(n,t){return n>=t},Nn.has=function(n,t){if(null==n)return false;var r=eu.call(n,t);if(!r&&!Wr(t)){if(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),null==n)return false;t=Gr(t),r=eu.call(n,t)}return r||Lr(n.length)&&Ur(t,n.length)&&(Wo(n)||_e(n)||Ae(n))},Nn.identity=Ne,Nn.includes=oe,Nn.indexOf=Yr,Nn.inRange=function(n,t,r){
79 +return t=+t||0,r===w?(r=t,t=0):r=+r||0,n>=ku(t,r)&&n<ju(t,r)},Nn.isArguments=_e,Nn.isArray=Wo,Nn.isBoolean=function(n){return true===n||false===n||h(n)&&ou.call(n)==D},Nn.isDate=function(n){return h(n)&&ou.call(n)==M},Nn.isElement=function(n){return!!n&&1===n.nodeType&&h(n)&&!xe(n)},Nn.isEmpty=function(n){return null==n?true:Sr(n)&&(Wo(n)||Ae(n)||_e(n)||h(n)&&ye(n.splice))?!n.length:!Ko(n).length},Nn.isEqual=ve,Nn.isError=ge,Nn.isFinite=function(n){return typeof n=="number"&&bu(n)},Nn.isFunction=ye,Nn.isMatch=function(n,t,r,e){
80 +return r=typeof r=="function"?Dt(r,e,3):w,xt(n,kr(t),r)},Nn.isNaN=function(n){return we(n)&&n!=+n},Nn.isNative=me,Nn.isNull=function(n){return null===n},Nn.isNumber=we,Nn.isObject=de,Nn.isPlainObject=xe,Nn.isRegExp=be,Nn.isString=Ae,Nn.isTypedArray=je,Nn.isUndefined=function(n){return n===w},Nn.kebabCase=Xo,Nn.last=Gr,Nn.lastIndexOf=function(n,t,r){var e=n?n.length:0;if(!e)return-1;var u=e;if(typeof r=="number")u=(0>r?ju(e+r,0):ku(r||0,e-1))+1;else if(r)return u=zt(n,t,true)-1,n=n[u],(t===t?t===n:n!==n)?u:-1;
81 +if(t!==t)return p(n,u,true);for(;u--;)if(n[u]===t)return u;return-1},Nn.lt=ke,Nn.lte=function(n,t){return n<=t},Nn.max=fi,Nn.min=ai,Nn.noConflict=function(){return Yn._=iu,this},Nn.noop=ze,Nn.now=wo,Nn.pad=function(n,t,r){n=u(n),t=+t;var e=n.length;return e<t&&bu(t)?(e=(t-e)/2,t=wu(e),e=du(e),r=_r("",e,r),r.slice(0,t)+n+r):n},Nn.padLeft=Ho,Nn.padRight=Qo,Nn.parseInt=function(n,t,r){return(r?$r(n,t,r):null==t)?t=0:t&&(t=+t),n=We(n),Iu(n,t||(On.test(n)?16:10))},Nn.random=function(n,t,r){r&&$r(n,t,r)&&(t=r=w);
82 +var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=Ru(),ku(n+r*(t-n+lu("1e-"+((r+"").length-1))),t)):Et(n,t)},Nn.reduce=go,Nn.reduceRight=yo,Nn.repeat=$e,Nn.result=function(n,t,r){var e=null==n?w:Dr(n)[t];return e===w&&(null==n||Wr(t,n)||(t=Mr(t),n=1==t.length?n:mt(n,St(t,0,-1)),e=null==n?w:Dr(n)[Gr(t)]),e=e===w?r:e),ye(e)?e.call(n):e},Nn.round=ci,Nn.runInContext=m,Nn.size=function(n){
83 +var t=n?Vu(n):0;return Lr(t)?t:Ko(n).length},Nn.snakeCase=ni,Nn.some=ae,Nn.sortedIndex=Qu,Nn.sortedLastIndex=no,Nn.startCase=ti,Nn.startsWith=function(n,t,r){return n=u(n),r=null==r?0:ku(0>r?0:+r||0,n.length),n.lastIndexOf(t,r)==r},Nn.sum=function(n,t,r){if(r&&$r(n,t,r)&&(t=w),t=br(t,r,3),1==t.length){n=Wo(n)?n:Br(n),r=n.length;for(var e=0;r--;)e+=+t(n[r])||0;n=e}else n=Ft(n,t);return n},Nn.template=function(n,t,r){var e=Nn.templateSettings;r&&$r(n,t,r)&&(t=r=w),n=u(n),t=rt(et({},r||t),e,tt),r=rt(et({},t.imports),e.imports,tt);
84 +var o,i,f=Ko(r),a=Nt(r,f),c=0;r=t.interpolate||Cn;var l="__p+='";r=Ge((t.escape||Cn).source+"|"+r.source+"|"+(r===gn?jn:Cn).source+"|"+(t.evaluate||Cn).source+"|$","g");var p="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,u,f,a){return e||(e=u),l+=n.slice(c,a).replace(Sn,s),r&&(o=true,l+="'+__e("+r+")+'"),f&&(i=true,l+="';"+f+";\n__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),c=a+t.length,t}),l+="';",(t=t.variable)||(l="with(obj){"+l+"}"),l=(i?l.replace(fn,""):l).replace(an,"$1").replace(cn,"$1;"),
85 +l="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(o?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}",t=ri(function(){return Ke(f,p+"return "+l).apply(w,a)}),t.source=l,ge(t))throw t;return t},Nn.trim=We,Nn.trimLeft=function(n,t,r){var e=n;return(n=u(n))?n.slice((r?$r(e,t,r):null==t)?g(n):o(n,t+"")):n},Nn.trimRight=function(n,t,r){var e=n;return(n=u(n))?(r?$r(e,t,r):null==t)?n.slice(0,y(n)+1):n.slice(0,i(n,t+"")+1):n;
86 +},Nn.trunc=function(n,t,r){r&&$r(n,t,r)&&(t=w);var e=S;if(r=U,null!=t)if(de(t)){var o="separator"in t?t.separator:o,e="length"in t?+t.length||0:e;r="omission"in t?u(t.omission):r}else e=+t||0;if(n=u(n),e>=n.length)return n;if(e-=r.length,1>e)return r;if(t=n.slice(0,e),null==o)return t+r;if(be(o)){if(n.slice(e).search(o)){var i,f=n.slice(0,e);for(o.global||(o=Ge(o.source,(kn.exec(o)||"")+"g")),o.lastIndex=0;n=o.exec(f);)i=n.index;t=t.slice(0,null==i?e:i)}}else n.indexOf(o,e)!=e&&(o=t.lastIndexOf(o),
87 +-1<o&&(t=t.slice(0,o)));return t+r},Nn.unescape=function(n){return(n=u(n))&&pn.test(n)?n.replace(ln,d):n},Nn.uniqueId=function(n){var t=++uu;return u(n)+t},Nn.words=Fe,Nn.all=ee,Nn.any=ae,Nn.contains=oe,Nn.eq=ve,Nn.detect=ao,Nn.foldl=go,Nn.foldr=yo,Nn.head=Zr,Nn.include=oe,Nn.inject=go,Pe(Nn,function(){var n={};return gt(Nn,function(t,r){Nn.prototype[r]||(n[r]=t)}),n}(),false),Nn.sample=fe,Nn.prototype.sample=function(n){return this.__chain__||null!=n?this.thru(function(t){return fe(t,n)}):fe(this.value());
88 +},Nn.VERSION=x,Kn("bind bindKey curry curryRight partial partialRight".split(" "),function(n){Nn[n].placeholder=Nn}),Kn(["drop","take"],function(n,t){zn.prototype[n]=function(r){var e=this.__filtered__;if(e&&!t)return new zn(this);r=null==r?1:ju(wu(r)||0,0);var u=this.clone();return e?u.__takeCount__=ku(u.__takeCount__,r):u.__views__.push({size:r,type:n+(0>u.__dir__?"Right":"")}),u},zn.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),Kn(["filter","map","takeWhile"],function(n,t){
89 +var r=t+1,e=r!=N;zn.prototype[n]=function(n,t){var u=this.clone();return u.__iteratees__.push({iteratee:br(n,t,1),type:r}),u.__filtered__=u.__filtered__||e,u}}),Kn(["first","last"],function(n,t){var r="take"+(t?"Right":"");zn.prototype[n]=function(){return this[r](1).value()[0]}}),Kn(["initial","rest"],function(n,t){var r="drop"+(t?"":"Right");zn.prototype[n]=function(){return this.__filtered__?new zn(this):this[r](1)}}),Kn(["pluck","where"],function(n,t){var r=t?"filter":"map",e=t?At:Be;zn.prototype[n]=function(n){
90 +return this[r](e(n))}}),zn.prototype.compact=function(){return this.filter(Ne)},zn.prototype.reject=function(n,t){return n=br(n,t,1),this.filter(function(t){return!n(t)})},zn.prototype.slice=function(n,t){n=null==n?0:+n||0;var r=this;return r.__filtered__&&(0<n||0>t)?new zn(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==w&&(t=+t||0,r=0>t?r.dropRight(-t):r.take(t-n)),r)},zn.prototype.takeRightWhile=function(n,t){return this.reverse().takeWhile(n,t).reverse()},zn.prototype.toArray=function(){return this.take(Cu);
91 +},gt(zn.prototype,function(n,t){var r=/^(?:filter|map|reject)|While$/.test(t),e=/^(?:first|last)$/.test(t),u=Nn[e?"take"+("last"==t?"Right":""):t];u&&(Nn.prototype[t]=function(){var t=e?[1]:arguments,o=this.__chain__,i=this.__wrapped__,f=!!this.__actions__.length,a=i instanceof zn,c=t[0],l=a||Wo(i);l&&r&&typeof c=="function"&&1!=c.length&&(a=l=false);var s=function(n){return e&&o?u(n,1)[0]:u.apply(w,Hn([n],t))},c={func:re,args:[s],thisArg:w},f=a&&!f;return e&&!o?f?(i=i.clone(),i.__actions__.push(c),
92 +n.call(i)):u.call(w,this.value())[0]:!e&&l?(i=f?i:new zn(this),i=n.apply(i,t),i.__actions__.push(c),new Pn(i,o)):this.thru(s)})}),Kn("join pop push replace shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?tu:He)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=!Tu.spliceObjects&&/^(?:pop|shift|splice)$/.test(n),u=/^(?:join|pop|replace|shift)$/.test(n),o=e?function(){var n=t.apply(this,arguments);return 0===this.length&&delete this[0],n}:t;Nn.prototype[n]=function(){
93 +var n=arguments;return u&&!this.__chain__?o.apply(this.value(),n):this[r](function(t){return o.apply(t,n)})}}),gt(zn.prototype,function(n,t){var r=Nn[t];if(r){var e=r.name+"";(Fu[e]||(Fu[e]=[])).push({name:t,func:r})}}),Fu[hr(w,A).name]=[{name:"wrapper",func:w}],zn.prototype.clone=function(){var n=new zn(this.__wrapped__);return n.__actions__=qn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=qn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=qn(this.__views__),
94 +n},zn.prototype.reverse=function(){if(this.__filtered__){var n=new zn(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n},zn.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=Wo(t),u=0>r,o=e?t.length:0;n=0;for(var i=o,f=this.__views__,a=-1,c=f.length;++a<c;){var l=f[a],s=l.size;switch(l.type){case"drop":n+=s;break;case"dropRight":i-=s;break;case"take":i=ku(i,n+s);break;case"takeRight":n=ju(n,i-s)}}if(n={start:n,end:i},i=n.start,f=n.end,n=f-i,
95 +u=u?f:i-1,i=this.__iteratees__,f=i.length,a=0,c=ku(n,this.__takeCount__),!e||o<F||o==n&&c==n)return Pt(t,this.__actions__);e=[];n:for(;n--&&a<c;){for(u+=r,o=-1,l=t[u];++o<f;){var p=i[o],s=p.type,p=p.iteratee(l);if(s==N)l=p;else if(!p){if(s==L)continue n;break n}}e[a++]=l}return e},Nn.prototype.chain=function(){return te(this)},Nn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Nn.prototype.concat=oo,Nn.prototype.plant=function(n){for(var t,r=this;r instanceof Tn;){var e=qr(r);
96 +t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},Nn.prototype.reverse=function(){var n=this.__wrapped__,t=function(n){return n.reverse()};return n instanceof zn?(this.__actions__.length&&(n=new zn(this)),n=n.reverse(),n.__actions__.push({func:re,args:[t],thisArg:w}),new Pn(n,this.__chain__)):this.thru(t)},Nn.prototype.toString=function(){return this.value()+""},Nn.prototype.run=Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return Pt(this.__wrapped__,this.__actions__);
97 +},Nn.prototype.collect=Nn.prototype.map,Nn.prototype.head=Nn.prototype.first,Nn.prototype.select=Nn.prototype.filter,Nn.prototype.tail=Nn.prototype.rest,Nn}var w,x="3.10.1",b=1,A=2,j=4,k=8,O=16,I=32,R=64,E=128,C=256,S=30,U="...",$=150,W=16,F=200,L=1,N=2,T="Expected a function",P="__lodash_placeholder__",z="[object Arguments]",B="[object Array]",D="[object Boolean]",M="[object Date]",q="[object Error]",K="[object Function]",V="[object Number]",Z="[object Object]",Y="[object RegExp]",G="[object String]",J="[object ArrayBuffer]",X="[object Float32Array]",H="[object Float64Array]",Q="[object Int8Array]",nn="[object Int16Array]",tn="[object Int32Array]",rn="[object Uint8Array]",en="[object Uint8ClampedArray]",un="[object Uint16Array]",on="[object Uint32Array]",fn=/\b__p\+='';/g,an=/\b(__p\+=)''\+/g,cn=/(__e\(.*?\)|\b__t\))\+'';/g,ln=/&(?:amp|lt|gt|quot|#39|#96);/g,sn=/[&<>"'`]/g,pn=RegExp(ln.source),hn=RegExp(sn.source),_n=/<%-([\s\S]+?)%>/g,vn=/<%([\s\S]+?)%>/g,gn=/<%=([\s\S]+?)%>/g,yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,dn=/^\w*$/,mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,wn=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,xn=RegExp(wn.source),bn=/[\u0300-\u036f\ufe20-\ufe23]/g,An=/\\(\\)?/g,jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,On=/^0[xX]/,In=/^\[object .+?Constructor\]$/,Rn=/^\d+$/,En=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Cn=/($^)/,Sn=/['\n\r\u2028\u2029\\]/g,Un=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?=[A-Z\\xc0-\\xd6\\xd8-\\xde][a-z\\xdf-\\xf6\\xf8-\\xff]+)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+|[A-Z\\xc0-\\xd6\\xd8-\\xde]+|[0-9]+","g"),$n="Array ArrayBuffer Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Math Number Object RegExp Set String _ clearTimeout isFinite parseFloat parseInt setTimeout TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap".split(" "),Wn="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Fn={};
98 +Fn[X]=Fn[H]=Fn[Q]=Fn[nn]=Fn[tn]=Fn[rn]=Fn[en]=Fn[un]=Fn[on]=true,Fn[z]=Fn[B]=Fn[J]=Fn[D]=Fn[M]=Fn[q]=Fn[K]=Fn["[object Map]"]=Fn[V]=Fn[Z]=Fn[Y]=Fn["[object Set]"]=Fn[G]=Fn["[object WeakMap]"]=false;var Ln={};Ln[z]=Ln[B]=Ln[J]=Ln[D]=Ln[M]=Ln[X]=Ln[H]=Ln[Q]=Ln[nn]=Ln[tn]=Ln[V]=Ln[Z]=Ln[Y]=Ln[G]=Ln[rn]=Ln[en]=Ln[un]=Ln[on]=true,Ln[q]=Ln[K]=Ln["[object Map]"]=Ln["[object Set]"]=Ln["[object WeakMap]"]=false;var Nn={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a",
99 +"\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y",
100 +"\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss"},Tn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Pn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},zn={"function":true,object:true},Bn={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Dn={"\\":"\\",
101 +"'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mn=zn[typeof exports]&&exports&&!exports.nodeType&&exports,qn=zn[typeof module]&&module&&!module.nodeType&&module,Kn=zn[typeof self]&&self&&self.Object&&self,Vn=zn[typeof window]&&window&&window.Object&&window,Zn=qn&&qn.exports===Mn&&Mn,Yn=Mn&&qn&&typeof global=="object"&&global&&global.Object&&global||Vn!==(this&&this.window)&&Vn||Kn||this,Gn=function(){try{Object({toString:0}+"")}catch(n){return function(){return false}}return function(n){
102 +return typeof n.toString!="function"&&typeof(n+"")=="string"}}(),Jn=m();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Yn._=Jn, define(function(){return Jn})):Mn&&qn?Zn?(qn.exports=Jn)._=Jn:Mn._=Jn:Yn._=Jn}).call(this);
...\ No newline at end of file ...\ No newline at end of file
1 +if (typeof Object.assign != 'function') {
2 + (function () {
3 + Object.assign = function (target) {
4 + 'use strict';
5 + if (target === undefined || target === null) {
6 + throw new TypeError('Cannot convert undefined or null to object');
7 + }
8 +
9 + var output = Object(target);
10 + for (var index = 1; index < arguments.length; index++) {
11 + var source = arguments[index];
12 + if (source !== undefined && source !== null) {
13 + for (var nextKey in source) {
14 + if (Object.prototype.hasOwnProperty.call(source, nextKey)) {
15 + output[nextKey] = source[nextKey];
16 + }
17 + }
18 + }
19 + }
20 + return output;
21 + };
22 + })();
23 +}
...@@ -250,11 +250,19 @@ function clientCredentialsFlow(scopes, tokenUrl, OAuthSchemeKey) { ...@@ -250,11 +250,19 @@ function clientCredentialsFlow(scopes, tokenUrl, OAuthSchemeKey) {
250 250
251 window.processOAuthCode = function processOAuthCode(data) { 251 window.processOAuthCode = function processOAuthCode(data) {
252 var OAuthSchemeKey = data.state; 252 var OAuthSchemeKey = data.state;
253 +
254 + // redirect_uri is required in auth code flow
255 + // see https://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-4.1.3
256 + var host = window.location;
257 + var pathname = location.pathname.substring(0, location.pathname.lastIndexOf("/"));
258 + var defaultRedirectUrl = host.protocol + '//' + host.host + pathname + '/o2c.html';
259 + var redirectUrl = window.oAuthRedirectUrl || defaultRedirectUrl;
260 +
253 var params = { 261 var params = {
254 'client_id': clientId, 262 'client_id': clientId,
255 'code': data.code, 263 'code': data.code,
256 'grant_type': 'authorization_code', 264 'grant_type': 'authorization_code',
257 - 'redirect_uri': redirect_uri 265 + 'redirect_uri': redirectUrl
258 }; 266 };
259 267
260 if (clientSecret) { 268 if (clientSecret) {
...@@ -331,7 +339,8 @@ window.onOAuthComplete = function onOAuthComplete(token,OAuthSchemeKey) { ...@@ -331,7 +339,8 @@ window.onOAuthComplete = function onOAuthComplete(token,OAuthSchemeKey) {
331 } 339 }
332 } 340 }
333 }); 341 });
334 - window.swaggerUi.api.clientAuthorizations.add(OAuthSchemeKey, new SwaggerClient.ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header')); 342 + window.swaggerUi.api.clientAuthorizations.add(window.OAuthSchemeKey, new SwaggerClient.ApiKeyAuthorization('Authorization', 'Bearer ' + b, 'header'));
343 + window.swaggerUi.load();
335 } 344 }
336 } 345 }
337 } 346 }
......
1 -// Underscore.js 1.7.0
2 -// http://underscorejs.org
3 -// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4 -// Underscore may be freely distributed under the MIT license.
5 -(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):n._=h,h.VERSION="1.7.0";var g=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}};h.iteratee=function(n,t,r){return null==n?h.identity:h.isFunction(n)?g(n,t,r):h.isObject(n)?h.matches(n):h.property(n)},h.each=h.forEach=function(n,t,r){if(null==n)return n;t=g(t,r);var e,u=n.length;if(u===+u)for(e=0;u>e;e++)t(n[e],e,n);else{var i=h.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},h.map=h.collect=function(n,t,r){if(null==n)return[];t=h.iteratee(t,r);for(var e,u=n.length!==+n.length&&h.keys(n),i=(u||n).length,a=Array(i),o=0;i>o;o++)e=u?u[o]:o,a[o]=t(n[e],e,n);return a};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length,o=0;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[o++]:o++]}for(;a>o;o++)u=i?i[o]:o,r=t(r,n[u],u,n);return r},h.reduceRight=h.foldr=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[--a]:--a]}for(;a--;)u=i?i[a]:a,r=t(r,n[u],u,n);return r},h.find=h.detect=function(n,t,r){var e;return t=h.iteratee(t,r),h.some(n,function(n,r,u){return t(n,r,u)?(e=n,!0):void 0}),e},h.filter=h.select=function(n,t,r){var e=[];return null==n?e:(t=h.iteratee(t,r),h.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e)},h.reject=function(n,t,r){return h.filter(n,h.negate(h.iteratee(t)),r)},h.every=h.all=function(n,t,r){if(null==n)return!0;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,!t(n[u],u,n))return!1;return!0},h.some=h.any=function(n,t,r){if(null==n)return!1;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,t(n[u],u,n))return!0;return!1},h.contains=h.include=function(n,t){return null==n?!1:(n.length!==+n.length&&(n=h.values(n)),h.indexOf(n,t)>=0)},h.invoke=function(n,t){var r=a.call(arguments,2),e=h.isFunction(t);return h.map(n,function(n){return(e?t:n[t]).apply(n,r)})},h.pluck=function(n,t){return h.map(n,h.property(t))},h.where=function(n,t){return h.filter(n,h.matches(t))},h.findWhere=function(n,t){return h.find(n,h.matches(t))},h.max=function(n,t,r){var e,u,i=-1/0,a=-1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],e>i&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(u>a||u===-1/0&&i===-1/0)&&(i=n,a=u)});return i},h.min=function(n,t,r){var e,u,i=1/0,a=1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],i>e&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(a>u||1/0===u&&1/0===i)&&(i=n,a=u)});return i},h.shuffle=function(n){for(var t,r=n&&n.length===+n.length?n:h.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=h.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},h.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=h.values(n)),n[h.random(n.length-1)]):h.shuffle(n).slice(0,Math.max(0,t))},h.sortBy=function(n,t,r){return t=h.iteratee(t,r),h.pluck(h.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var m=function(n){return function(t,r,e){var u={};return r=h.iteratee(r,e),h.each(t,function(e,i){var a=r(e,i,t);n(u,e,a)}),u}};h.groupBy=m(function(n,t,r){h.has(n,r)?n[r].push(t):n[r]=[t]}),h.indexBy=m(function(n,t,r){n[r]=t}),h.countBy=m(function(n,t,r){h.has(n,r)?n[r]++:n[r]=1}),h.sortedIndex=function(n,t,r,e){r=h.iteratee(r,e,1);for(var u=r(t),i=0,a=n.length;a>i;){var o=i+a>>>1;r(n[o])<u?i=o+1:a=o}return i},h.toArray=function(n){return n?h.isArray(n)?a.call(n):n.length===+n.length?h.map(n,h.identity):h.values(n):[]},h.size=function(n){return null==n?0:n.length===+n.length?n.length:h.keys(n).length},h.partition=function(n,t,r){t=h.iteratee(t,r);var e=[],u=[];return h.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},h.first=h.head=h.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:0>t?[]:a.call(n,0,t)},h.initial=function(n,t,r){return a.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},h.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:a.call(n,Math.max(n.length-t,0))},h.rest=h.tail=h.drop=function(n,t,r){return a.call(n,null==t||r?1:t)},h.compact=function(n){return h.filter(n,h.identity)};var y=function(n,t,r,e){if(t&&h.every(n,h.isArray))return o.apply(e,n);for(var u=0,a=n.length;a>u;u++){var l=n[u];h.isArray(l)||h.isArguments(l)?t?i.apply(e,l):y(l,t,r,e):r||e.push(l)}return e};h.flatten=function(n,t){return y(n,t,!1,[])},h.without=function(n){return h.difference(n,a.call(arguments,1))},h.uniq=h.unique=function(n,t,r,e){if(null==n)return[];h.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=h.iteratee(r,e));for(var u=[],i=[],a=0,o=n.length;o>a;a++){var l=n[a];if(t)a&&i===l||u.push(l),i=l;else if(r){var c=r(l,a,n);h.indexOf(i,c)<0&&(i.push(c),u.push(l))}else h.indexOf(u,l)<0&&u.push(l)}return u},h.union=function(){return h.uniq(y(arguments,!0,!0,[]))},h.intersection=function(n){if(null==n)return[];for(var t=[],r=arguments.length,e=0,u=n.length;u>e;e++){var i=n[e];if(!h.contains(t,i)){for(var a=1;r>a&&h.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},h.difference=function(n){var t=y(a.call(arguments,1),!0,!0,[]);return h.filter(n,function(n){return!h.contains(t,n)})},h.zip=function(n){if(null==n)return[];for(var t=h.max(arguments,"length").length,r=Array(t),e=0;t>e;e++)r[e]=h.pluck(arguments,e);return r},h.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},h.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=h.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}for(;u>e;e++)if(n[e]===t)return e;return-1},h.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(n[e]===t)return e;return-1},h.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var d=function(){};h.bind=function(n,t){var r,e;if(p&&n.bind===p)return p.apply(n,a.call(arguments,1));if(!h.isFunction(n))throw new TypeError("Bind must be called on a function");return r=a.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(a.call(arguments)));d.prototype=n.prototype;var u=new d;d.prototype=null;var i=n.apply(u,r.concat(a.call(arguments)));return h.isObject(i)?i:u}},h.partial=function(n){var t=a.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===h&&(e[u]=arguments[r++]);for(;r<arguments.length;)e.push(arguments[r++]);return n.apply(this,e)}},h.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=h.bind(n[r],n);return n},h.memoize=function(n,t){var r=function(e){var u=r.cache,i=t?t.apply(this,arguments):e;return h.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},h.delay=function(n,t){var r=a.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},h.defer=function(n){return h.delay.apply(h,[n,1].concat(a.call(arguments,1)))},h.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var l=function(){o=r.leading===!1?0:h.now(),a=null,i=n.apply(e,u),a||(e=u=null)};return function(){var c=h.now();o||r.leading!==!1||(o=c);var f=t-(c-o);return e=this,u=arguments,0>=f||f>t?(clearTimeout(a),a=null,o=c,i=n.apply(e,u),a||(e=u=null)):a||r.trailing===!1||(a=setTimeout(l,f)),i}},h.debounce=function(n,t,r){var e,u,i,a,o,l=function(){var c=h.now()-a;t>c&&c>0?e=setTimeout(l,t-c):(e=null,r||(o=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,a=h.now();var c=r&&!e;return e||(e=setTimeout(l,t)),c&&(o=n.apply(i,u),i=u=null),o}},h.wrap=function(n,t){return h.partial(t,n)},h.negate=function(n){return function(){return!n.apply(this,arguments)}},h.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},h.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},h.before=function(n,t){var r;return function(){return--n>0?r=t.apply(this,arguments):t=null,r}},h.once=h.partial(h.before,2),h.keys=function(n){if(!h.isObject(n))return[];if(s)return s(n);var t=[];for(var r in n)h.has(n,r)&&t.push(r);return t},h.values=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},h.pairs=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},h.invert=function(n){for(var t={},r=h.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},h.functions=h.methods=function(n){var t=[];for(var r in n)h.isFunction(n[r])&&t.push(r);return t.sort()},h.extend=function(n){if(!h.isObject(n))return n;for(var t,r,e=1,u=arguments.length;u>e;e++){t=arguments[e];for(r in t)c.call(t,r)&&(n[r]=t[r])}return n},h.pick=function(n,t,r){var e,u={};if(null==n)return u;if(h.isFunction(t)){t=g(t,r);for(e in n){var i=n[e];t(i,e,n)&&(u[e]=i)}}else{var l=o.apply([],a.call(arguments,1));n=new Object(n);for(var c=0,f=l.length;f>c;c++)e=l[c],e in n&&(u[e]=n[e])}return u},h.omit=function(n,t,r){if(h.isFunction(t))t=h.negate(t);else{var e=h.map(o.apply([],a.call(arguments,1)),String);t=function(n,t){return!h.contains(e,t)}}return h.pick(n,t,r)},h.defaults=function(n){if(!h.isObject(n))return n;for(var t=1,r=arguments.length;r>t;t++){var e=arguments[t];for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n},h.clone=function(n){return h.isObject(n)?h.isArray(n)?n.slice():h.extend({},n):n},h.tap=function(n,t){return t(n),n};var b=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof h&&(n=n._wrapped),t instanceof h&&(t=t._wrapped);var u=l.call(n);if(u!==l.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]===n)return e[i]===t;var a=n.constructor,o=t.constructor;if(a!==o&&"constructor"in n&&"constructor"in t&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c,f;if("[object Array]"===u){if(c=n.length,f=c===t.length)for(;c--&&(f=b(n[c],t[c],r,e)););}else{var s,p=h.keys(n);if(c=p.length,f=h.keys(t).length===c)for(;c--&&(s=p[c],f=h.has(t,s)&&b(n[s],t[s],r,e)););}return r.pop(),e.pop(),f};h.isEqual=function(n,t){return b(n,t,[],[])},h.isEmpty=function(n){if(null==n)return!0;if(h.isArray(n)||h.isString(n)||h.isArguments(n))return 0===n.length;for(var t in n)if(h.has(n,t))return!1;return!0},h.isElement=function(n){return!(!n||1!==n.nodeType)},h.isArray=f||function(n){return"[object Array]"===l.call(n)},h.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(n){h["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}}),h.isArguments(arguments)||(h.isArguments=function(n){return h.has(n,"callee")}),"function"!=typeof/./&&(h.isFunction=function(n){return"function"==typeof n||!1}),h.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},h.isNaN=function(n){return h.isNumber(n)&&n!==+n},h.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)},h.isNull=function(n){return null===n},h.isUndefined=function(n){return n===void 0},h.has=function(n,t){return null!=n&&c.call(n,t)},h.noConflict=function(){return n._=t,this},h.identity=function(n){return n},h.constant=function(n){return function(){return n}},h.noop=function(){},h.property=function(n){return function(t){return t[n]}},h.matches=function(n){var t=h.pairs(n),r=t.length;return function(n){if(null==n)return!r;n=new Object(n);for(var e=0;r>e;e++){var u=t[e],i=u[0];if(u[1]!==n[i]||!(i in n))return!1}return!0}},h.times=function(n,t,r){var e=Array(Math.max(0,n));t=g(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},h.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},h.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},w=h.invert(_),j=function(n){var t=function(t){return n[t]},r="(?:"+h.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};h.escape=j(_),h.unescape=j(w),h.result=function(n,t){if(null==n)return void 0;var r=n[t];return h.isFunction(r)?n[t]():r};var x=0;h.uniqueId=function(n){var t=++x+"";return n?n+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,k={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,F=function(n){return"\\"+k[n]};h.template=function(n,t,r){!t&&r&&(t=r),t=h.defaults({},t,h.templateSettings);var e=RegExp([(t.escape||A).source,(t.interpolate||A).source,(t.evaluate||A).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,a,o){return i+=n.slice(u,o).replace(O,F),u=o+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(o){throw o.source=i,o}var l=function(n){return a.call(this,n,h)},c=t.variable||"obj";return l.source="function("+c+"){\n"+i+"}",l},h.chain=function(n){var t=h(n);return t._chain=!0,t};var E=function(n){return this._chain?h(n).chain():n};h.mixin=function(n){h.each(h.functions(n),function(t){var r=h[t]=n[t];h.prototype[t]=function(){var n=[this._wrapped];return i.apply(n,arguments),E.call(this,r.apply(h,n))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];h.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],E.call(this,r)}}),h.each(["concat","join","slice"],function(n){var t=r[n];h.prototype[n]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this);
6 -//# sourceMappingURL=underscore-min.map
...\ No newline at end of file ...\ No newline at end of file
1 -{"version":3,"file":"underscore-min.js","sources":["underscore.js"],"names":["createReduce","dir","iterator","obj","iteratee","memo","keys","index","length","currentKey","context","optimizeCb","isArrayLike","_","arguments","createIndexFinder","array","predicate","cb","collectNonEnumProps","nonEnumIdx","nonEnumerableProps","constructor","proto","isFunction","prototype","ObjProto","prop","has","contains","push","root","this","previousUnderscore","ArrayProto","Array","Object","FuncProto","Function","slice","toString","hasOwnProperty","nativeIsArray","isArray","nativeKeys","nativeBind","bind","nativeCreate","create","Ctor","_wrapped","exports","module","VERSION","func","argCount","value","call","other","collection","accumulator","apply","identity","isObject","matcher","property","Infinity","createAssigner","keysFunc","undefinedOnly","source","l","i","key","baseCreate","result","MAX_ARRAY_INDEX","Math","pow","each","forEach","map","collect","results","reduce","foldl","inject","reduceRight","foldr","find","detect","findIndex","findKey","filter","select","list","reject","negate","every","all","some","any","includes","include","target","fromIndex","values","indexOf","invoke","method","args","isFunc","pluck","where","attrs","findWhere","max","computed","lastComputed","min","shuffle","rand","set","shuffled","random","sample","n","guard","sortBy","criteria","sort","left","right","a","b","group","behavior","groupBy","indexBy","countBy","toArray","size","partition","pass","fail","first","head","take","initial","last","rest","tail","drop","compact","flatten","input","shallow","strict","startIndex","output","idx","isArguments","j","len","without","difference","uniq","unique","isSorted","isBoolean","seen","union","intersection","argsLength","item","zip","unzip","object","sortedIndex","isNaN","lastIndexOf","from","findLastIndex","low","high","mid","floor","range","start","stop","step","ceil","executeBound","sourceFunc","boundFunc","callingContext","self","TypeError","bound","concat","partial","boundArgs","position","bindAll","Error","memoize","hasher","cache","address","delay","wait","setTimeout","defer","throttle","options","timeout","previous","later","leading","now","remaining","clearTimeout","trailing","debounce","immediate","timestamp","callNow","wrap","wrapper","compose","after","times","before","once","hasEnumBug","propertyIsEnumerable","allKeys","mapObject","pairs","invert","functions","methods","names","extend","extendOwn","assign","pick","oiteratee","omit","String","defaults","clone","tap","interceptor","isMatch","eq","aStack","bStack","className","areArrays","aCtor","bCtor","pop","isEqual","isEmpty","isString","isElement","nodeType","type","name","Int8Array","isFinite","parseFloat","isNumber","isNull","isUndefined","noConflict","constant","noop","propertyOf","matches","accum","Date","getTime","escapeMap","&","<",">","\"","'","`","unescapeMap","createEscaper","escaper","match","join","testRegexp","RegExp","replaceRegexp","string","test","replace","escape","unescape","fallback","idCounter","uniqueId","prefix","id","templateSettings","evaluate","interpolate","noMatch","escapes","\\","\r","\n","
","
","escapeChar","template","text","settings","oldSettings","offset","variable","render","e","data","argument","chain","instance","_chain","mixin","valueOf","toJSON","define","amd"],"mappings":";;;;CAKC,WAoKC,QAASA,GAAaC,GAGpB,QAASC,GAASC,EAAKC,EAAUC,EAAMC,EAAMC,EAAOC,GAClD,KAAOD,GAAS,GAAaC,EAARD,EAAgBA,GAASN,EAAK,CACjD,GAAIQ,GAAaH,EAAOA,EAAKC,GAASA,CACtCF,GAAOD,EAASC,EAAMF,EAAIM,GAAaA,EAAYN,GAErD,MAAOE,GAGT,MAAO,UAASF,EAAKC,EAAUC,EAAMK,GACnCN,EAAWO,EAAWP,EAAUM,EAAS,EACzC,IAAIJ,IAAQM,EAAYT,IAAQU,EAAEP,KAAKH,GACnCK,GAAUF,GAAQH,GAAKK,OACvBD,EAAQN,EAAM,EAAI,EAAIO,EAAS,CAMnC,OAJIM,WAAUN,OAAS,IACrBH,EAAOF,EAAIG,EAAOA,EAAKC,GAASA,GAChCA,GAASN,GAEJC,EAASC,EAAKC,EAAUC,EAAMC,EAAMC,EAAOC,IA+btD,QAASO,GAAkBd,GACzB,MAAO,UAASe,EAAOC,EAAWP,GAChCO,EAAYC,EAAGD,EAAWP,EAG1B,KAFA,GAAIF,GAAkB,MAATQ,GAAiBA,EAAMR,OAChCD,EAAQN,EAAM,EAAI,EAAIO,EAAS,EAC5BD,GAAS,GAAaC,EAARD,EAAgBA,GAASN,EAC5C,GAAIgB,EAAUD,EAAMT,GAAQA,EAAOS,GAAQ,MAAOT,E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