├── .browserslistrc ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── README.md ├── babel.config.js ├── dist ├── demo.html ├── vue-mapbox-geocoder.common.js ├── vue-mapbox-geocoder.umd.js └── vue-mapbox-geocoder.umd.min.js ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── GeocoderControl.js └── main.js └── vue.config.js /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not ie <= 8 4 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .dist 3 | build 4 | dist 5 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | extends: ["plugin:vue/essential", "@vue/prettier"], 7 | rules: { 8 | "no-console": process.env.NODE_ENV === "production" ? "error" : "off", 9 | "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" 10 | }, 11 | parserOptions: { 12 | parser: "babel-eslint" 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | *.code-workspace 6 | 7 | # Runtime data 8 | pids 9 | *.pid 10 | *.seed 11 | 12 | # Directory for instrumented libs generated by jscoverage/JSCover 13 | lib-cov 14 | 15 | # Coverage directory used by tools like istanbul 16 | coverage 17 | 18 | # nyc test coverage 19 | .nyc_output 20 | 21 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 22 | .grunt 23 | 24 | # node-waf configuration 25 | .lock-wscript 26 | 27 | # Compiled binary addons (http://nodejs.org/api/addons.html) 28 | build/Release 29 | 30 | # Dependency directories 31 | node_modules 32 | jspm_packages 33 | 34 | # Optional npm cache directory 35 | .npm 36 | 37 | # Optional REPL history 38 | .node_repl_history 39 | *.vscode 40 | *.idea 41 | 42 | *.sublime-* 43 | *.editorconfig 44 | *.code-workspace 45 | 46 | *.map* 47 | *.DS_Store 48 | vue-mapbox-demo 49 | checklist.txt 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue-mapbox-geocoder 2 | 3 | [Vue-mapbox](https://github.com/soal/vue-mapbox) plugin for [mapbox-gl-geocoder](https://github.com/mapbox/mapbox-gl-geocoder) support. 4 | 5 | ## Usage 6 | 7 | First of all you need to install Mapbox GL and Vue-mapbox. [See vue-mapbox doc](https://soal.github.io/vue-mapbox/#/quickstart) 8 | 9 | Install mabbox-gl-geocoder and vue-mapbox-geocoder: 10 | 11 | ```bash 12 | npm i @mapbox/mapbox-gl-geocoder vue-mapbox vue-mapbox-geocoder 13 | ``` 14 | 15 | Now you can add geocoder control like other controls: 16 | 17 | ```vue 18 | 31 | 32 | 62 | ``` 63 | 64 | Options for mapbox-gl-geocoder described [here](https://github.com/mapbox/mapbox-gl-geocoder/blob/master/API.md) can be passed via props. 65 | 66 | Additionaly you can pass syncronized prop `input` as in example below. 67 | It will be passed to mapbox-gl-geocoder as default input value. 68 | Each time you change value of this prop, mapbox-gl-geocoder `.setInput` method is called. 69 | 70 | Same for `proximity` prop that internally invokes mapbox-gl-geocoder `setProximity` method. 71 | 72 | Also you can call `query` method to query search and get results programmatically. 73 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@vue/app"] 3 | }; 4 | -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 | vue-mapbox-geocoder demo 3 | 4 | 5 | 6 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /dist/vue-mapbox-geocoder.common.js: -------------------------------------------------------------------------------- 1 | module.exports = /******/ (function(modules) { 2 | // webpackBootstrap 3 | /******/ // The module cache 4 | /******/ var installedModules = {}; // The require function 5 | /******/ 6 | /******/ /******/ function __webpack_require__(moduleId) { 7 | /******/ 8 | /******/ // Check if module is in cache 9 | /******/ if (installedModules[moduleId]) { 10 | /******/ return installedModules[moduleId].exports; 11 | /******/ 12 | } // Create a new module (and put it into the cache) 13 | /******/ /******/ var module = (installedModules[moduleId] = { 14 | /******/ i: moduleId, 15 | /******/ l: false, 16 | /******/ exports: {} 17 | /******/ 18 | }); // Execute the module function 19 | /******/ 20 | /******/ /******/ modules[moduleId].call( 21 | module.exports, 22 | module, 23 | module.exports, 24 | __webpack_require__ 25 | ); // Flag the module as loaded 26 | /******/ 27 | /******/ /******/ module.l = true; // Return the exports of the module 28 | /******/ 29 | /******/ /******/ return module.exports; 30 | /******/ 31 | } // expose the modules object (__webpack_modules__) 32 | /******/ 33 | /******/ 34 | /******/ /******/ __webpack_require__.m = modules; // expose the module cache 35 | /******/ 36 | /******/ /******/ __webpack_require__.c = installedModules; // define getter function for harmony exports 37 | /******/ 38 | /******/ /******/ __webpack_require__.d = function(exports, name, getter) { 39 | /******/ if (!__webpack_require__.o(exports, name)) { 40 | /******/ Object.defineProperty(exports, name, { 41 | enumerable: true, 42 | get: getter 43 | }); 44 | /******/ 45 | } 46 | /******/ 47 | }; // define __esModule on exports 48 | /******/ 49 | /******/ /******/ __webpack_require__.r = function(exports) { 50 | /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) { 51 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { 52 | value: "Module" 53 | }); 54 | /******/ 55 | } 56 | /******/ Object.defineProperty(exports, "__esModule", { value: true }); 57 | /******/ 58 | }; // create a fake namespace object // mode & 1: value is a module id, require it // mode & 2: merge all properties of value into the ns // mode & 4: return value when already ns object // mode & 8|1: behave like require 59 | /******/ 60 | /******/ /******/ /******/ /******/ /******/ /******/ __webpack_require__.t = function( 61 | value, 62 | mode 63 | ) { 64 | /******/ if (mode & 1) value = __webpack_require__(value); 65 | /******/ if (mode & 8) return value; 66 | /******/ if ( 67 | mode & 4 && 68 | typeof value === "object" && 69 | value && 70 | value.__esModule 71 | ) 72 | return value; 73 | /******/ var ns = Object.create(null); 74 | /******/ __webpack_require__.r(ns); 75 | /******/ Object.defineProperty(ns, "default", { 76 | enumerable: true, 77 | value: value 78 | }); 79 | /******/ if (mode & 2 && typeof value != "string") 80 | for (var key in value) 81 | __webpack_require__.d( 82 | ns, 83 | key, 84 | function(key) { 85 | return value[key]; 86 | }.bind(null, key) 87 | ); 88 | /******/ return ns; 89 | /******/ 90 | }; // getDefaultExport function for compatibility with non-harmony modules 91 | /******/ 92 | /******/ /******/ __webpack_require__.n = function(module) { 93 | /******/ var getter = 94 | module && module.__esModule 95 | ? /******/ function getDefault() { 96 | return module["default"]; 97 | } 98 | : /******/ function getModuleExports() { 99 | return module; 100 | }; 101 | /******/ __webpack_require__.d(getter, "a", getter); 102 | /******/ return getter; 103 | /******/ 104 | }; // Object.prototype.hasOwnProperty.call 105 | /******/ 106 | /******/ /******/ __webpack_require__.o = function(object, property) { 107 | return Object.prototype.hasOwnProperty.call(object, property); 108 | }; // __webpack_public_path__ 109 | /******/ 110 | /******/ /******/ __webpack_require__.p = ""; // Load entry module and return exports 111 | /******/ 112 | /******/ 113 | /******/ /******/ return __webpack_require__( 114 | (__webpack_require__.s = "fb15") 115 | ); 116 | /******/ 117 | })( 118 | /************************************************************************/ 119 | /******/ { 120 | /***/ "01f9": /***/ function(module, exports, __webpack_require__) { 121 | "use strict"; 122 | 123 | var LIBRARY = __webpack_require__("2d00"); 124 | var $export = __webpack_require__("5ca1"); 125 | var redefine = __webpack_require__("2aba"); 126 | var hide = __webpack_require__("32e9"); 127 | var Iterators = __webpack_require__("84f2"); 128 | var $iterCreate = __webpack_require__("41a0"); 129 | var setToStringTag = __webpack_require__("7f20"); 130 | var getPrototypeOf = __webpack_require__("38fd"); 131 | var ITERATOR = __webpack_require__("2b4c")("iterator"); 132 | var BUGGY = !([].keys && "next" in [].keys()); // Safari has buggy iterators w/o `next` 133 | var FF_ITERATOR = "@@iterator"; 134 | var KEYS = "keys"; 135 | var VALUES = "values"; 136 | 137 | var returnThis = function() { 138 | return this; 139 | }; 140 | 141 | module.exports = function( 142 | Base, 143 | NAME, 144 | Constructor, 145 | next, 146 | DEFAULT, 147 | IS_SET, 148 | FORCED 149 | ) { 150 | $iterCreate(Constructor, NAME, next); 151 | var getMethod = function(kind) { 152 | if (!BUGGY && kind in proto) return proto[kind]; 153 | switch (kind) { 154 | case KEYS: 155 | return function keys() { 156 | return new Constructor(this, kind); 157 | }; 158 | case VALUES: 159 | return function values() { 160 | return new Constructor(this, kind); 161 | }; 162 | } 163 | return function entries() { 164 | return new Constructor(this, kind); 165 | }; 166 | }; 167 | var TAG = NAME + " Iterator"; 168 | var DEF_VALUES = DEFAULT == VALUES; 169 | var VALUES_BUG = false; 170 | var proto = Base.prototype; 171 | var $native = 172 | proto[ITERATOR] || proto[FF_ITERATOR] || (DEFAULT && proto[DEFAULT]); 173 | var $default = $native || getMethod(DEFAULT); 174 | var $entries = DEFAULT 175 | ? !DEF_VALUES 176 | ? $default 177 | : getMethod("entries") 178 | : undefined; 179 | var $anyNative = NAME == "Array" ? proto.entries || $native : $native; 180 | var methods, key, IteratorPrototype; 181 | // Fix native 182 | if ($anyNative) { 183 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 184 | if ( 185 | IteratorPrototype !== Object.prototype && 186 | IteratorPrototype.next 187 | ) { 188 | // Set @@toStringTag to native iterators 189 | setToStringTag(IteratorPrototype, TAG, true); 190 | // fix for some old engines 191 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function") 192 | hide(IteratorPrototype, ITERATOR, returnThis); 193 | } 194 | } 195 | // fix Array#{values, @@iterator}.name in V8 / FF 196 | if (DEF_VALUES && $native && $native.name !== VALUES) { 197 | VALUES_BUG = true; 198 | $default = function values() { 199 | return $native.call(this); 200 | }; 201 | } 202 | // Define iterator 203 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 204 | hide(proto, ITERATOR, $default); 205 | } 206 | // Plug for library 207 | Iterators[NAME] = $default; 208 | Iterators[TAG] = returnThis; 209 | if (DEFAULT) { 210 | methods = { 211 | values: DEF_VALUES ? $default : getMethod(VALUES), 212 | keys: IS_SET ? $default : getMethod(KEYS), 213 | entries: $entries 214 | }; 215 | if (FORCED) 216 | for (key in methods) { 217 | if (!(key in proto)) redefine(proto, key, methods[key]); 218 | } 219 | else 220 | $export( 221 | $export.P + $export.F * (BUGGY || VALUES_BUG), 222 | NAME, 223 | methods 224 | ); 225 | } 226 | return methods; 227 | }; 228 | 229 | /***/ 230 | }, 231 | 232 | /***/ "07e3": /***/ function(module, exports) { 233 | var hasOwnProperty = {}.hasOwnProperty; 234 | module.exports = function(it, key) { 235 | return hasOwnProperty.call(it, key); 236 | }; 237 | 238 | /***/ 239 | }, 240 | 241 | /***/ "0d58": /***/ function(module, exports, __webpack_require__) { 242 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 243 | var $keys = __webpack_require__("ce10"); 244 | var enumBugKeys = __webpack_require__("e11e"); 245 | 246 | module.exports = 247 | Object.keys || 248 | function keys(O) { 249 | return $keys(O, enumBugKeys); 250 | }; 251 | 252 | /***/ 253 | }, 254 | 255 | /***/ "0fc9": /***/ function(module, exports, __webpack_require__) { 256 | var toInteger = __webpack_require__("3a38"); 257 | var max = Math.max; 258 | var min = Math.min; 259 | module.exports = function(index, length) { 260 | index = toInteger(index); 261 | return index < 0 ? max(index + length, 0) : min(index, length); 262 | }; 263 | 264 | /***/ 265 | }, 266 | 267 | /***/ "11e9": /***/ function(module, exports, __webpack_require__) { 268 | var pIE = __webpack_require__("52a7"); 269 | var createDesc = __webpack_require__("4630"); 270 | var toIObject = __webpack_require__("6821"); 271 | var toPrimitive = __webpack_require__("6a99"); 272 | var has = __webpack_require__("69a8"); 273 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 274 | var gOPD = Object.getOwnPropertyDescriptor; 275 | 276 | exports.f = __webpack_require__("9e1e") 277 | ? gOPD 278 | : function getOwnPropertyDescriptor(O, P) { 279 | O = toIObject(O); 280 | P = toPrimitive(P, true); 281 | if (IE8_DOM_DEFINE) 282 | try { 283 | return gOPD(O, P); 284 | } catch (e) { 285 | /* empty */ 286 | } 287 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 288 | }; 289 | 290 | /***/ 291 | }, 292 | 293 | /***/ "1495": /***/ function(module, exports, __webpack_require__) { 294 | var dP = __webpack_require__("86cc"); 295 | var anObject = __webpack_require__("cb7c"); 296 | var getKeys = __webpack_require__("0d58"); 297 | 298 | module.exports = __webpack_require__("9e1e") 299 | ? Object.defineProperties 300 | : function defineProperties(O, Properties) { 301 | anObject(O); 302 | var keys = getKeys(Properties); 303 | var length = keys.length; 304 | var i = 0; 305 | var P; 306 | while (length > i) dP.f(O, (P = keys[i++]), Properties[P]); 307 | return O; 308 | }; 309 | 310 | /***/ 311 | }, 312 | 313 | /***/ "1691": /***/ function(module, exports) { 314 | // IE 8- don't enum bug keys 315 | module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 316 | "," 317 | ); 318 | 319 | /***/ 320 | }, 321 | 322 | /***/ "1bc3": /***/ function(module, exports, __webpack_require__) { 323 | // 7.1.1 ToPrimitive(input [, PreferredType]) 324 | var isObject = __webpack_require__("f772"); 325 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 326 | // and the second argument - flag - preferred type is a string 327 | module.exports = function(it, S) { 328 | if (!isObject(it)) return it; 329 | var fn, val; 330 | if ( 331 | S && 332 | typeof (fn = it.toString) == "function" && 333 | !isObject((val = fn.call(it))) 334 | ) 335 | return val; 336 | if ( 337 | typeof (fn = it.valueOf) == "function" && 338 | !isObject((val = fn.call(it))) 339 | ) 340 | return val; 341 | if ( 342 | !S && 343 | typeof (fn = it.toString) == "function" && 344 | !isObject((val = fn.call(it))) 345 | ) 346 | return val; 347 | throw TypeError("Can't convert object to primitive value"); 348 | }; 349 | 350 | /***/ 351 | }, 352 | 353 | /***/ "1ec9": /***/ function(module, exports, __webpack_require__) { 354 | var isObject = __webpack_require__("f772"); 355 | var document = __webpack_require__("e53d").document; 356 | // typeof document.createElement is 'object' in old IE 357 | var is = isObject(document) && isObject(document.createElement); 358 | module.exports = function(it) { 359 | return is ? document.createElement(it) : {}; 360 | }; 361 | 362 | /***/ 363 | }, 364 | 365 | /***/ "230e": /***/ function(module, exports, __webpack_require__) { 366 | var isObject = __webpack_require__("d3f4"); 367 | var document = __webpack_require__("7726").document; 368 | // typeof document.createElement is 'object' in old IE 369 | var is = isObject(document) && isObject(document.createElement); 370 | module.exports = function(it) { 371 | return is ? document.createElement(it) : {}; 372 | }; 373 | 374 | /***/ 375 | }, 376 | 377 | /***/ "241e": /***/ function(module, exports, __webpack_require__) { 378 | // 7.1.13 ToObject(argument) 379 | var defined = __webpack_require__("25eb"); 380 | module.exports = function(it) { 381 | return Object(defined(it)); 382 | }; 383 | 384 | /***/ 385 | }, 386 | 387 | /***/ "25eb": /***/ function(module, exports) { 388 | // 7.2.1 RequireObjectCoercible(argument) 389 | module.exports = function(it) { 390 | if (it == undefined) throw TypeError("Can't call method on " + it); 391 | return it; 392 | }; 393 | 394 | /***/ 395 | }, 396 | 397 | /***/ "294c": /***/ function(module, exports) { 398 | module.exports = function(exec) { 399 | try { 400 | return !!exec(); 401 | } catch (e) { 402 | return true; 403 | } 404 | }; 405 | 406 | /***/ 407 | }, 408 | 409 | /***/ "2aba": /***/ function(module, exports, __webpack_require__) { 410 | var global = __webpack_require__("7726"); 411 | var hide = __webpack_require__("32e9"); 412 | var has = __webpack_require__("69a8"); 413 | var SRC = __webpack_require__("ca5a")("src"); 414 | var $toString = __webpack_require__("fa5b"); 415 | var TO_STRING = "toString"; 416 | var TPL = ("" + $toString).split(TO_STRING); 417 | 418 | __webpack_require__("8378").inspectSource = function(it) { 419 | return $toString.call(it); 420 | }; 421 | 422 | (module.exports = function(O, key, val, safe) { 423 | var isFunction = typeof val == "function"; 424 | if (isFunction) has(val, "name") || hide(val, "name", key); 425 | if (O[key] === val) return; 426 | if (isFunction) 427 | has(val, SRC) || 428 | hide(val, SRC, O[key] ? "" + O[key] : TPL.join(String(key))); 429 | if (O === global) { 430 | O[key] = val; 431 | } else if (!safe) { 432 | delete O[key]; 433 | hide(O, key, val); 434 | } else if (O[key]) { 435 | O[key] = val; 436 | } else { 437 | hide(O, key, val); 438 | } 439 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 440 | })(Function.prototype, TO_STRING, function toString() { 441 | return (typeof this == "function" && this[SRC]) || $toString.call(this); 442 | }); 443 | 444 | /***/ 445 | }, 446 | 447 | /***/ "2aeb": /***/ function(module, exports, __webpack_require__) { 448 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 449 | var anObject = __webpack_require__("cb7c"); 450 | var dPs = __webpack_require__("1495"); 451 | var enumBugKeys = __webpack_require__("e11e"); 452 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 453 | var Empty = function() { 454 | /* empty */ 455 | }; 456 | var PROTOTYPE = "prototype"; 457 | 458 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 459 | var createDict = function() { 460 | // Thrash, waste and sodomy: IE GC bug 461 | var iframe = __webpack_require__("230e")("iframe"); 462 | var i = enumBugKeys.length; 463 | var lt = "<"; 464 | var gt = ">"; 465 | var iframeDocument; 466 | iframe.style.display = "none"; 467 | __webpack_require__("fab2").appendChild(iframe); 468 | iframe.src = "javascript:"; // eslint-disable-line no-script-url 469 | // createDict = iframe.contentWindow.Object; 470 | // html.removeChild(iframe); 471 | iframeDocument = iframe.contentWindow.document; 472 | iframeDocument.open(); 473 | iframeDocument.write( 474 | lt + "script" + gt + "document.F=Object" + lt + "/script" + gt 475 | ); 476 | iframeDocument.close(); 477 | createDict = iframeDocument.F; 478 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 479 | return createDict(); 480 | }; 481 | 482 | module.exports = 483 | Object.create || 484 | function create(O, Properties) { 485 | var result; 486 | if (O !== null) { 487 | Empty[PROTOTYPE] = anObject(O); 488 | result = new Empty(); 489 | Empty[PROTOTYPE] = null; 490 | // add "__proto__" for Object.getPrototypeOf polyfill 491 | result[IE_PROTO] = O; 492 | } else result = createDict(); 493 | return Properties === undefined ? result : dPs(result, Properties); 494 | }; 495 | 496 | /***/ 497 | }, 498 | 499 | /***/ "2b4c": /***/ function(module, exports, __webpack_require__) { 500 | var store = __webpack_require__("5537")("wks"); 501 | var uid = __webpack_require__("ca5a"); 502 | var Symbol = __webpack_require__("7726").Symbol; 503 | var USE_SYMBOL = typeof Symbol == "function"; 504 | 505 | var $exports = (module.exports = function(name) { 506 | return ( 507 | store[name] || 508 | (store[name] = 509 | (USE_SYMBOL && Symbol[name]) || 510 | (USE_SYMBOL ? Symbol : uid)("Symbol." + name)) 511 | ); 512 | }); 513 | 514 | $exports.store = store; 515 | 516 | /***/ 517 | }, 518 | 519 | /***/ "2d00": /***/ function(module, exports) { 520 | module.exports = false; 521 | 522 | /***/ 523 | }, 524 | 525 | /***/ "2d95": /***/ function(module, exports) { 526 | var toString = {}.toString; 527 | 528 | module.exports = function(it) { 529 | return toString.call(it).slice(8, -1); 530 | }; 531 | 532 | /***/ 533 | }, 534 | 535 | /***/ "2fdb": /***/ function(module, exports, __webpack_require__) { 536 | "use strict"; 537 | // 21.1.3.7 String.prototype.includes(searchString, position = 0) 538 | 539 | var $export = __webpack_require__("5ca1"); 540 | var context = __webpack_require__("d2c8"); 541 | var INCLUDES = "includes"; 542 | 543 | $export( 544 | $export.P + $export.F * __webpack_require__("5147")(INCLUDES), 545 | "String", 546 | { 547 | includes: function includes(searchString /* , position = 0 */) { 548 | return !!~context(this, searchString, INCLUDES).indexOf( 549 | searchString, 550 | arguments.length > 1 ? arguments[1] : undefined 551 | ); 552 | } 553 | } 554 | ); 555 | 556 | /***/ 557 | }, 558 | 559 | /***/ "32a6": /***/ function(module, exports, __webpack_require__) { 560 | // 19.1.2.14 Object.keys(O) 561 | var toObject = __webpack_require__("241e"); 562 | var $keys = __webpack_require__("c3a1"); 563 | 564 | __webpack_require__("ce7e")("keys", function() { 565 | return function keys(it) { 566 | return $keys(toObject(it)); 567 | }; 568 | }); 569 | 570 | /***/ 571 | }, 572 | 573 | /***/ "32e9": /***/ function(module, exports, __webpack_require__) { 574 | var dP = __webpack_require__("86cc"); 575 | var createDesc = __webpack_require__("4630"); 576 | module.exports = __webpack_require__("9e1e") 577 | ? function(object, key, value) { 578 | return dP.f(object, key, createDesc(1, value)); 579 | } 580 | : function(object, key, value) { 581 | object[key] = value; 582 | return object; 583 | }; 584 | 585 | /***/ 586 | }, 587 | 588 | /***/ "335c": /***/ function(module, exports, __webpack_require__) { 589 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 590 | var cof = __webpack_require__("6b4c"); 591 | // eslint-disable-next-line no-prototype-builtins 592 | module.exports = Object("z").propertyIsEnumerable(0) 593 | ? Object 594 | : function(it) { 595 | return cof(it) == "String" ? it.split("") : Object(it); 596 | }; 597 | 598 | /***/ 599 | }, 600 | 601 | /***/ "35be": /***/ function(module, exports) { 602 | module.exports = require("vue-mapbox"); 603 | 604 | /***/ 605 | }, 606 | 607 | /***/ "35e8": /***/ function(module, exports, __webpack_require__) { 608 | var dP = __webpack_require__("d9f6"); 609 | var createDesc = __webpack_require__("aebd"); 610 | module.exports = __webpack_require__("8e60") 611 | ? function(object, key, value) { 612 | return dP.f(object, key, createDesc(1, value)); 613 | } 614 | : function(object, key, value) { 615 | object[key] = value; 616 | return object; 617 | }; 618 | 619 | /***/ 620 | }, 621 | 622 | /***/ "36c3": /***/ function(module, exports, __webpack_require__) { 623 | // to indexed object, toObject with fallback for non-array-like ES3 strings 624 | var IObject = __webpack_require__("335c"); 625 | var defined = __webpack_require__("25eb"); 626 | module.exports = function(it) { 627 | return IObject(defined(it)); 628 | }; 629 | 630 | /***/ 631 | }, 632 | 633 | /***/ "38fd": /***/ function(module, exports, __webpack_require__) { 634 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 635 | var has = __webpack_require__("69a8"); 636 | var toObject = __webpack_require__("4bf8"); 637 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 638 | var ObjectProto = Object.prototype; 639 | 640 | module.exports = 641 | Object.getPrototypeOf || 642 | function(O) { 643 | O = toObject(O); 644 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 645 | if ( 646 | typeof O.constructor == "function" && 647 | O instanceof O.constructor 648 | ) { 649 | return O.constructor.prototype; 650 | } 651 | return O instanceof Object ? ObjectProto : null; 652 | }; 653 | 654 | /***/ 655 | }, 656 | 657 | /***/ "3a38": /***/ function(module, exports) { 658 | // 7.1.4 ToInteger 659 | var ceil = Math.ceil; 660 | var floor = Math.floor; 661 | module.exports = function(it) { 662 | return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 663 | }; 664 | 665 | /***/ 666 | }, 667 | 668 | /***/ "41a0": /***/ function(module, exports, __webpack_require__) { 669 | "use strict"; 670 | 671 | var create = __webpack_require__("2aeb"); 672 | var descriptor = __webpack_require__("4630"); 673 | var setToStringTag = __webpack_require__("7f20"); 674 | var IteratorPrototype = {}; 675 | 676 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 677 | __webpack_require__("32e9")( 678 | IteratorPrototype, 679 | __webpack_require__("2b4c")("iterator"), 680 | function() { 681 | return this; 682 | } 683 | ); 684 | 685 | module.exports = function(Constructor, NAME, next) { 686 | Constructor.prototype = create(IteratorPrototype, { 687 | next: descriptor(1, next) 688 | }); 689 | setToStringTag(Constructor, NAME + " Iterator"); 690 | }; 691 | 692 | /***/ 693 | }, 694 | 695 | /***/ "4588": /***/ function(module, exports) { 696 | // 7.1.4 ToInteger 697 | var ceil = Math.ceil; 698 | var floor = Math.floor; 699 | module.exports = function(it) { 700 | return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 701 | }; 702 | 703 | /***/ 704 | }, 705 | 706 | /***/ "4630": /***/ function(module, exports) { 707 | module.exports = function(bitmap, value) { 708 | return { 709 | enumerable: !(bitmap & 1), 710 | configurable: !(bitmap & 2), 711 | writable: !(bitmap & 4), 712 | value: value 713 | }; 714 | }; 715 | 716 | /***/ 717 | }, 718 | 719 | /***/ "4bf8": /***/ function(module, exports, __webpack_require__) { 720 | // 7.1.13 ToObject(argument) 721 | var defined = __webpack_require__("be13"); 722 | module.exports = function(it) { 723 | return Object(defined(it)); 724 | }; 725 | 726 | /***/ 727 | }, 728 | 729 | /***/ "5147": /***/ function(module, exports, __webpack_require__) { 730 | var MATCH = __webpack_require__("2b4c")("match"); 731 | module.exports = function(KEY) { 732 | var re = /./; 733 | try { 734 | "/./"[KEY](re); 735 | } catch (e) { 736 | try { 737 | re[MATCH] = false; 738 | return !"/./"[KEY](re); 739 | } catch (f) { 740 | /* empty */ 741 | } 742 | } 743 | return true; 744 | }; 745 | 746 | /***/ 747 | }, 748 | 749 | /***/ "52a7": /***/ function(module, exports) { 750 | exports.f = {}.propertyIsEnumerable; 751 | 752 | /***/ 753 | }, 754 | 755 | /***/ "5537": /***/ function(module, exports, __webpack_require__) { 756 | var core = __webpack_require__("8378"); 757 | var global = __webpack_require__("7726"); 758 | var SHARED = "__core-js_shared__"; 759 | var store = global[SHARED] || (global[SHARED] = {}); 760 | 761 | (module.exports = function(key, value) { 762 | return store[key] || (store[key] = value !== undefined ? value : {}); 763 | })("versions", []).push({ 764 | version: core.version, 765 | mode: __webpack_require__("2d00") ? "pure" : "global", 766 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 767 | }); 768 | 769 | /***/ 770 | }, 771 | 772 | /***/ "5559": /***/ function(module, exports, __webpack_require__) { 773 | var shared = __webpack_require__("dbdb")("keys"); 774 | var uid = __webpack_require__("62a0"); 775 | module.exports = function(key) { 776 | return shared[key] || (shared[key] = uid(key)); 777 | }; 778 | 779 | /***/ 780 | }, 781 | 782 | /***/ "584a": /***/ function(module, exports) { 783 | var core = (module.exports = { version: "2.6.5" }); 784 | if (typeof __e == "number") __e = core; // eslint-disable-line no-undef 785 | 786 | /***/ 787 | }, 788 | 789 | /***/ "5b4e": /***/ function(module, exports, __webpack_require__) { 790 | // false -> Array#indexOf 791 | // true -> Array#includes 792 | var toIObject = __webpack_require__("36c3"); 793 | var toLength = __webpack_require__("b447"); 794 | var toAbsoluteIndex = __webpack_require__("0fc9"); 795 | module.exports = function(IS_INCLUDES) { 796 | return function($this, el, fromIndex) { 797 | var O = toIObject($this); 798 | var length = toLength(O.length); 799 | var index = toAbsoluteIndex(fromIndex, length); 800 | var value; 801 | // Array#includes uses SameValueZero equality algorithm 802 | // eslint-disable-next-line no-self-compare 803 | if (IS_INCLUDES && el != el) 804 | while (length > index) { 805 | value = O[index++]; 806 | // eslint-disable-next-line no-self-compare 807 | if (value != value) return true; 808 | // Array#indexOf ignores holes, Array#includes - not 809 | } 810 | else 811 | for (; length > index; index++) 812 | if (IS_INCLUDES || index in O) { 813 | if (O[index] === el) return IS_INCLUDES || index || 0; 814 | } 815 | return !IS_INCLUDES && -1; 816 | }; 817 | }; 818 | 819 | /***/ 820 | }, 821 | 822 | /***/ "5ca1": /***/ function(module, exports, __webpack_require__) { 823 | var global = __webpack_require__("7726"); 824 | var core = __webpack_require__("8378"); 825 | var hide = __webpack_require__("32e9"); 826 | var redefine = __webpack_require__("2aba"); 827 | var ctx = __webpack_require__("9b43"); 828 | var PROTOTYPE = "prototype"; 829 | 830 | var $export = function(type, name, source) { 831 | var IS_FORCED = type & $export.F; 832 | var IS_GLOBAL = type & $export.G; 833 | var IS_STATIC = type & $export.S; 834 | var IS_PROTO = type & $export.P; 835 | var IS_BIND = type & $export.B; 836 | var target = IS_GLOBAL 837 | ? global 838 | : IS_STATIC 839 | ? global[name] || (global[name] = {}) 840 | : (global[name] || {})[PROTOTYPE]; 841 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 842 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 843 | var key, own, out, exp; 844 | if (IS_GLOBAL) source = name; 845 | for (key in source) { 846 | // contains in native 847 | own = !IS_FORCED && target && target[key] !== undefined; 848 | // export native or passed 849 | out = (own ? target : source)[key]; 850 | // bind timers to global for call from export context 851 | exp = 852 | IS_BIND && own 853 | ? ctx(out, global) 854 | : IS_PROTO && typeof out == "function" 855 | ? ctx(Function.call, out) 856 | : out; 857 | // extend global 858 | if (target) redefine(target, key, out, type & $export.U); 859 | // export 860 | if (exports[key] != out) hide(exports, key, exp); 861 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 862 | } 863 | }; 864 | global.core = core; 865 | // type bitmap 866 | $export.F = 1; // forced 867 | $export.G = 2; // global 868 | $export.S = 4; // static 869 | $export.P = 8; // proto 870 | $export.B = 16; // bind 871 | $export.W = 32; // wrap 872 | $export.U = 64; // safe 873 | $export.R = 128; // real proto method for `library` 874 | module.exports = $export; 875 | 876 | /***/ 877 | }, 878 | 879 | /***/ "5dbc": /***/ function(module, exports, __webpack_require__) { 880 | var isObject = __webpack_require__("d3f4"); 881 | var setPrototypeOf = __webpack_require__("8b97").set; 882 | module.exports = function(that, target, C) { 883 | var S = target.constructor; 884 | var P; 885 | if ( 886 | S !== C && 887 | typeof S == "function" && 888 | (P = S.prototype) !== C.prototype && 889 | isObject(P) && 890 | setPrototypeOf 891 | ) { 892 | setPrototypeOf(that, P); 893 | } 894 | return that; 895 | }; 896 | 897 | /***/ 898 | }, 899 | 900 | /***/ "613b": /***/ function(module, exports, __webpack_require__) { 901 | var shared = __webpack_require__("5537")("keys"); 902 | var uid = __webpack_require__("ca5a"); 903 | module.exports = function(key) { 904 | return shared[key] || (shared[key] = uid(key)); 905 | }; 906 | 907 | /***/ 908 | }, 909 | 910 | /***/ "626a": /***/ function(module, exports, __webpack_require__) { 911 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 912 | var cof = __webpack_require__("2d95"); 913 | // eslint-disable-next-line no-prototype-builtins 914 | module.exports = Object("z").propertyIsEnumerable(0) 915 | ? Object 916 | : function(it) { 917 | return cof(it) == "String" ? it.split("") : Object(it); 918 | }; 919 | 920 | /***/ 921 | }, 922 | 923 | /***/ "62a0": /***/ function(module, exports) { 924 | var id = 0; 925 | var px = Math.random(); 926 | module.exports = function(key) { 927 | return "Symbol(".concat( 928 | key === undefined ? "" : key, 929 | ")_", 930 | (++id + px).toString(36) 931 | ); 932 | }; 933 | 934 | /***/ 935 | }, 936 | 937 | /***/ "63b6": /***/ function(module, exports, __webpack_require__) { 938 | var global = __webpack_require__("e53d"); 939 | var core = __webpack_require__("584a"); 940 | var ctx = __webpack_require__("d864"); 941 | var hide = __webpack_require__("35e8"); 942 | var has = __webpack_require__("07e3"); 943 | var PROTOTYPE = "prototype"; 944 | 945 | var $export = function(type, name, source) { 946 | var IS_FORCED = type & $export.F; 947 | var IS_GLOBAL = type & $export.G; 948 | var IS_STATIC = type & $export.S; 949 | var IS_PROTO = type & $export.P; 950 | var IS_BIND = type & $export.B; 951 | var IS_WRAP = type & $export.W; 952 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 953 | var expProto = exports[PROTOTYPE]; 954 | var target = IS_GLOBAL 955 | ? global 956 | : IS_STATIC 957 | ? global[name] 958 | : (global[name] || {})[PROTOTYPE]; 959 | var key, own, out; 960 | if (IS_GLOBAL) source = name; 961 | for (key in source) { 962 | // contains in native 963 | own = !IS_FORCED && target && target[key] !== undefined; 964 | if (own && has(exports, key)) continue; 965 | // export native or passed 966 | out = own ? target[key] : source[key]; 967 | // prevent global pollution for namespaces 968 | exports[key] = 969 | IS_GLOBAL && typeof target[key] != "function" 970 | ? source[key] 971 | : // bind timers to global for call from export context 972 | IS_BIND && own 973 | ? ctx(out, global) 974 | : // wrap global constructors for prevent change them in library 975 | IS_WRAP && target[key] == out 976 | ? (function(C) { 977 | var F = function(a, b, c) { 978 | if (this instanceof C) { 979 | switch (arguments.length) { 980 | case 0: 981 | return new C(); 982 | case 1: 983 | return new C(a); 984 | case 2: 985 | return new C(a, b); 986 | } 987 | return new C(a, b, c); 988 | } 989 | return C.apply(this, arguments); 990 | }; 991 | F[PROTOTYPE] = C[PROTOTYPE]; 992 | return F; 993 | // make static versions for prototype methods 994 | })(out) 995 | : IS_PROTO && typeof out == "function" 996 | ? ctx(Function.call, out) 997 | : out; 998 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 999 | if (IS_PROTO) { 1000 | (exports.virtual || (exports.virtual = {}))[key] = out; 1001 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1002 | if (type & $export.R && expProto && !expProto[key]) 1003 | hide(expProto, key, out); 1004 | } 1005 | } 1006 | }; 1007 | // type bitmap 1008 | $export.F = 1; // forced 1009 | $export.G = 2; // global 1010 | $export.S = 4; // static 1011 | $export.P = 8; // proto 1012 | $export.B = 16; // bind 1013 | $export.W = 32; // wrap 1014 | $export.U = 64; // safe 1015 | $export.R = 128; // real proto method for `library` 1016 | module.exports = $export; 1017 | 1018 | /***/ 1019 | }, 1020 | 1021 | /***/ "6762": /***/ function(module, exports, __webpack_require__) { 1022 | "use strict"; 1023 | 1024 | // https://github.com/tc39/Array.prototype.includes 1025 | var $export = __webpack_require__("5ca1"); 1026 | var $includes = __webpack_require__("c366")(true); 1027 | 1028 | $export($export.P, "Array", { 1029 | includes: function includes(el /* , fromIndex = 0 */) { 1030 | return $includes( 1031 | this, 1032 | el, 1033 | arguments.length > 1 ? arguments[1] : undefined 1034 | ); 1035 | } 1036 | }); 1037 | 1038 | __webpack_require__("9c6c")("includes"); 1039 | 1040 | /***/ 1041 | }, 1042 | 1043 | /***/ "6821": /***/ function(module, exports, __webpack_require__) { 1044 | // to indexed object, toObject with fallback for non-array-like ES3 strings 1045 | var IObject = __webpack_require__("626a"); 1046 | var defined = __webpack_require__("be13"); 1047 | module.exports = function(it) { 1048 | return IObject(defined(it)); 1049 | }; 1050 | 1051 | /***/ 1052 | }, 1053 | 1054 | /***/ "69a8": /***/ function(module, exports) { 1055 | var hasOwnProperty = {}.hasOwnProperty; 1056 | module.exports = function(it, key) { 1057 | return hasOwnProperty.call(it, key); 1058 | }; 1059 | 1060 | /***/ 1061 | }, 1062 | 1063 | /***/ "6a99": /***/ function(module, exports, __webpack_require__) { 1064 | // 7.1.1 ToPrimitive(input [, PreferredType]) 1065 | var isObject = __webpack_require__("d3f4"); 1066 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1067 | // and the second argument - flag - preferred type is a string 1068 | module.exports = function(it, S) { 1069 | if (!isObject(it)) return it; 1070 | var fn, val; 1071 | if ( 1072 | S && 1073 | typeof (fn = it.toString) == "function" && 1074 | !isObject((val = fn.call(it))) 1075 | ) 1076 | return val; 1077 | if ( 1078 | typeof (fn = it.valueOf) == "function" && 1079 | !isObject((val = fn.call(it))) 1080 | ) 1081 | return val; 1082 | if ( 1083 | !S && 1084 | typeof (fn = it.toString) == "function" && 1085 | !isObject((val = fn.call(it))) 1086 | ) 1087 | return val; 1088 | throw TypeError("Can't convert object to primitive value"); 1089 | }; 1090 | 1091 | /***/ 1092 | }, 1093 | 1094 | /***/ "6b4c": /***/ function(module, exports) { 1095 | var toString = {}.toString; 1096 | 1097 | module.exports = function(it) { 1098 | return toString.call(it).slice(8, -1); 1099 | }; 1100 | 1101 | /***/ 1102 | }, 1103 | 1104 | /***/ "7726": /***/ function(module, exports) { 1105 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1106 | var global = (module.exports = 1107 | typeof window != "undefined" && window.Math == Math 1108 | ? window 1109 | : typeof self != "undefined" && self.Math == Math 1110 | ? self 1111 | : // eslint-disable-next-line no-new-func 1112 | Function("return this")()); 1113 | if (typeof __g == "number") __g = global; // eslint-disable-line no-undef 1114 | 1115 | /***/ 1116 | }, 1117 | 1118 | /***/ "77f1": /***/ function(module, exports, __webpack_require__) { 1119 | var toInteger = __webpack_require__("4588"); 1120 | var max = Math.max; 1121 | var min = Math.min; 1122 | module.exports = function(index, length) { 1123 | index = toInteger(index); 1124 | return index < 0 ? max(index + length, 0) : min(index, length); 1125 | }; 1126 | 1127 | /***/ 1128 | }, 1129 | 1130 | /***/ "794b": /***/ function(module, exports, __webpack_require__) { 1131 | module.exports = 1132 | !__webpack_require__("8e60") && 1133 | !__webpack_require__("294c")(function() { 1134 | return ( 1135 | Object.defineProperty(__webpack_require__("1ec9")("div"), "a", { 1136 | get: function() { 1137 | return 7; 1138 | } 1139 | }).a != 7 1140 | ); 1141 | }); 1142 | 1143 | /***/ 1144 | }, 1145 | 1146 | /***/ "79aa": /***/ function(module, exports) { 1147 | module.exports = function(it) { 1148 | if (typeof it != "function") 1149 | throw TypeError(it + " is not a function!"); 1150 | return it; 1151 | }; 1152 | 1153 | /***/ 1154 | }, 1155 | 1156 | /***/ "79e5": /***/ function(module, exports) { 1157 | module.exports = function(exec) { 1158 | try { 1159 | return !!exec(); 1160 | } catch (e) { 1161 | return true; 1162 | } 1163 | }; 1164 | 1165 | /***/ 1166 | }, 1167 | 1168 | /***/ "7c06": /***/ function(module, exports) { 1169 | module.exports = require("@mapbox/mapbox-gl-geocoder"); 1170 | 1171 | /***/ 1172 | }, 1173 | 1174 | /***/ "7f20": /***/ function(module, exports, __webpack_require__) { 1175 | var def = __webpack_require__("86cc").f; 1176 | var has = __webpack_require__("69a8"); 1177 | var TAG = __webpack_require__("2b4c")("toStringTag"); 1178 | 1179 | module.exports = function(it, tag, stat) { 1180 | if (it && !has((it = stat ? it : it.prototype), TAG)) 1181 | def(it, TAG, { configurable: true, value: tag }); 1182 | }; 1183 | 1184 | /***/ 1185 | }, 1186 | 1187 | /***/ "8378": /***/ function(module, exports) { 1188 | var core = (module.exports = { version: "2.6.5" }); 1189 | if (typeof __e == "number") __e = core; // eslint-disable-line no-undef 1190 | 1191 | /***/ 1192 | }, 1193 | 1194 | /***/ "84f2": /***/ function(module, exports) { 1195 | module.exports = {}; 1196 | 1197 | /***/ 1198 | }, 1199 | 1200 | /***/ "86cc": /***/ function(module, exports, __webpack_require__) { 1201 | var anObject = __webpack_require__("cb7c"); 1202 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 1203 | var toPrimitive = __webpack_require__("6a99"); 1204 | var dP = Object.defineProperty; 1205 | 1206 | exports.f = __webpack_require__("9e1e") 1207 | ? Object.defineProperty 1208 | : function defineProperty(O, P, Attributes) { 1209 | anObject(O); 1210 | P = toPrimitive(P, true); 1211 | anObject(Attributes); 1212 | if (IE8_DOM_DEFINE) 1213 | try { 1214 | return dP(O, P, Attributes); 1215 | } catch (e) { 1216 | /* empty */ 1217 | } 1218 | if ("get" in Attributes || "set" in Attributes) 1219 | throw TypeError("Accessors not supported!"); 1220 | if ("value" in Attributes) O[P] = Attributes.value; 1221 | return O; 1222 | }; 1223 | 1224 | /***/ 1225 | }, 1226 | 1227 | /***/ "8aae": /***/ function(module, exports, __webpack_require__) { 1228 | __webpack_require__("32a6"); 1229 | module.exports = __webpack_require__("584a").Object.keys; 1230 | 1231 | /***/ 1232 | }, 1233 | 1234 | /***/ "8b97": /***/ function(module, exports, __webpack_require__) { 1235 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1236 | /* eslint-disable no-proto */ 1237 | var isObject = __webpack_require__("d3f4"); 1238 | var anObject = __webpack_require__("cb7c"); 1239 | var check = function(O, proto) { 1240 | anObject(O); 1241 | if (!isObject(proto) && proto !== null) 1242 | throw TypeError(proto + ": can't set as prototype!"); 1243 | }; 1244 | module.exports = { 1245 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1246 | ? (function(test, buggy, set) { 1247 | try { 1248 | set = __webpack_require__("9b43")( 1249 | Function.call, 1250 | __webpack_require__("11e9").f(Object.prototype, "__proto__") 1251 | .set, 1252 | 2 1253 | ); 1254 | set(test, []); 1255 | buggy = !(test instanceof Array); 1256 | } catch (e) { 1257 | buggy = true; 1258 | } 1259 | return function setPrototypeOf(O, proto) { 1260 | check(O, proto); 1261 | if (buggy) O.__proto__ = proto; 1262 | else set(O, proto); 1263 | return O; 1264 | }; 1265 | })({}, false) 1266 | : undefined), 1267 | check: check 1268 | }; 1269 | 1270 | /***/ 1271 | }, 1272 | 1273 | /***/ "8e60": /***/ function(module, exports, __webpack_require__) { 1274 | // Thank's IE8 for his funny defineProperty 1275 | module.exports = !__webpack_require__("294c")(function() { 1276 | return ( 1277 | Object.defineProperty({}, "a", { 1278 | get: function() { 1279 | return 7; 1280 | } 1281 | }).a != 7 1282 | ); 1283 | }); 1284 | 1285 | /***/ 1286 | }, 1287 | 1288 | /***/ "9093": /***/ function(module, exports, __webpack_require__) { 1289 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1290 | var $keys = __webpack_require__("ce10"); 1291 | var hiddenKeys = __webpack_require__("e11e").concat( 1292 | "length", 1293 | "prototype" 1294 | ); 1295 | 1296 | exports.f = 1297 | Object.getOwnPropertyNames || 1298 | function getOwnPropertyNames(O) { 1299 | return $keys(O, hiddenKeys); 1300 | }; 1301 | 1302 | /***/ 1303 | }, 1304 | 1305 | /***/ "9b43": /***/ function(module, exports, __webpack_require__) { 1306 | // optional / simple context binding 1307 | var aFunction = __webpack_require__("d8e8"); 1308 | module.exports = function(fn, that, length) { 1309 | aFunction(fn); 1310 | if (that === undefined) return fn; 1311 | switch (length) { 1312 | case 1: 1313 | return function(a) { 1314 | return fn.call(that, a); 1315 | }; 1316 | case 2: 1317 | return function(a, b) { 1318 | return fn.call(that, a, b); 1319 | }; 1320 | case 3: 1321 | return function(a, b, c) { 1322 | return fn.call(that, a, b, c); 1323 | }; 1324 | } 1325 | return function(/* ...args */) { 1326 | return fn.apply(that, arguments); 1327 | }; 1328 | }; 1329 | 1330 | /***/ 1331 | }, 1332 | 1333 | /***/ "9c6c": /***/ function(module, exports, __webpack_require__) { 1334 | // 22.1.3.31 Array.prototype[@@unscopables] 1335 | var UNSCOPABLES = __webpack_require__("2b4c")("unscopables"); 1336 | var ArrayProto = Array.prototype; 1337 | if (ArrayProto[UNSCOPABLES] == undefined) 1338 | __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {}); 1339 | module.exports = function(key) { 1340 | ArrayProto[UNSCOPABLES][key] = true; 1341 | }; 1342 | 1343 | /***/ 1344 | }, 1345 | 1346 | /***/ "9def": /***/ function(module, exports, __webpack_require__) { 1347 | // 7.1.15 ToLength 1348 | var toInteger = __webpack_require__("4588"); 1349 | var min = Math.min; 1350 | module.exports = function(it) { 1351 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1352 | }; 1353 | 1354 | /***/ 1355 | }, 1356 | 1357 | /***/ "9e1e": /***/ function(module, exports, __webpack_require__) { 1358 | // Thank's IE8 for his funny defineProperty 1359 | module.exports = !__webpack_require__("79e5")(function() { 1360 | return ( 1361 | Object.defineProperty({}, "a", { 1362 | get: function() { 1363 | return 7; 1364 | } 1365 | }).a != 7 1366 | ); 1367 | }); 1368 | 1369 | /***/ 1370 | }, 1371 | 1372 | /***/ a4bb: /***/ function(module, exports, __webpack_require__) { 1373 | module.exports = __webpack_require__("8aae"); 1374 | 1375 | /***/ 1376 | }, 1377 | 1378 | /***/ aa77: /***/ function(module, exports, __webpack_require__) { 1379 | var $export = __webpack_require__("5ca1"); 1380 | var defined = __webpack_require__("be13"); 1381 | var fails = __webpack_require__("79e5"); 1382 | var spaces = __webpack_require__("fdef"); 1383 | var space = "[" + spaces + "]"; 1384 | var non = "\u200b\u0085"; 1385 | var ltrim = RegExp("^" + space + space + "*"); 1386 | var rtrim = RegExp(space + space + "*$"); 1387 | 1388 | var exporter = function(KEY, exec, ALIAS) { 1389 | var exp = {}; 1390 | var FORCE = fails(function() { 1391 | return !!spaces[KEY]() || non[KEY]() != non; 1392 | }); 1393 | var fn = (exp[KEY] = FORCE ? exec(trim) : spaces[KEY]); 1394 | if (ALIAS) exp[ALIAS] = fn; 1395 | $export($export.P + $export.F * FORCE, "String", exp); 1396 | }; 1397 | 1398 | // 1 -> String#trimLeft 1399 | // 2 -> String#trimRight 1400 | // 3 -> String#trim 1401 | var trim = (exporter.trim = function(string, TYPE) { 1402 | string = String(defined(string)); 1403 | if (TYPE & 1) string = string.replace(ltrim, ""); 1404 | if (TYPE & 2) string = string.replace(rtrim, ""); 1405 | return string; 1406 | }); 1407 | 1408 | module.exports = exporter; 1409 | 1410 | /***/ 1411 | }, 1412 | 1413 | /***/ aae3: /***/ function(module, exports, __webpack_require__) { 1414 | // 7.2.8 IsRegExp(argument) 1415 | var isObject = __webpack_require__("d3f4"); 1416 | var cof = __webpack_require__("2d95"); 1417 | var MATCH = __webpack_require__("2b4c")("match"); 1418 | module.exports = function(it) { 1419 | var isRegExp; 1420 | return ( 1421 | isObject(it) && 1422 | ((isRegExp = it[MATCH]) !== undefined 1423 | ? !!isRegExp 1424 | : cof(it) == "RegExp") 1425 | ); 1426 | }; 1427 | 1428 | /***/ 1429 | }, 1430 | 1431 | /***/ ac6a: /***/ function(module, exports, __webpack_require__) { 1432 | var $iterators = __webpack_require__("cadf"); 1433 | var getKeys = __webpack_require__("0d58"); 1434 | var redefine = __webpack_require__("2aba"); 1435 | var global = __webpack_require__("7726"); 1436 | var hide = __webpack_require__("32e9"); 1437 | var Iterators = __webpack_require__("84f2"); 1438 | var wks = __webpack_require__("2b4c"); 1439 | var ITERATOR = wks("iterator"); 1440 | var TO_STRING_TAG = wks("toStringTag"); 1441 | var ArrayValues = Iterators.Array; 1442 | 1443 | var DOMIterables = { 1444 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 1445 | CSSStyleDeclaration: false, 1446 | CSSValueList: false, 1447 | ClientRectList: false, 1448 | DOMRectList: false, 1449 | DOMStringList: false, 1450 | DOMTokenList: true, 1451 | DataTransferItemList: false, 1452 | FileList: false, 1453 | HTMLAllCollection: false, 1454 | HTMLCollection: false, 1455 | HTMLFormElement: false, 1456 | HTMLSelectElement: false, 1457 | MediaList: true, // TODO: Not spec compliant, should be false. 1458 | MimeTypeArray: false, 1459 | NamedNodeMap: false, 1460 | NodeList: true, 1461 | PaintRequestList: false, 1462 | Plugin: false, 1463 | PluginArray: false, 1464 | SVGLengthList: false, 1465 | SVGNumberList: false, 1466 | SVGPathSegList: false, 1467 | SVGPointList: false, 1468 | SVGStringList: false, 1469 | SVGTransformList: false, 1470 | SourceBufferList: false, 1471 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 1472 | TextTrackCueList: false, 1473 | TextTrackList: false, 1474 | TouchList: false 1475 | }; 1476 | 1477 | for ( 1478 | var collections = getKeys(DOMIterables), i = 0; 1479 | i < collections.length; 1480 | i++ 1481 | ) { 1482 | var NAME = collections[i]; 1483 | var explicit = DOMIterables[NAME]; 1484 | var Collection = global[NAME]; 1485 | var proto = Collection && Collection.prototype; 1486 | var key; 1487 | if (proto) { 1488 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 1489 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1490 | Iterators[NAME] = ArrayValues; 1491 | if (explicit) 1492 | for (key in $iterators) 1493 | if (!proto[key]) redefine(proto, key, $iterators[key], true); 1494 | } 1495 | } 1496 | 1497 | /***/ 1498 | }, 1499 | 1500 | /***/ aebd: /***/ function(module, exports) { 1501 | module.exports = function(bitmap, value) { 1502 | return { 1503 | enumerable: !(bitmap & 1), 1504 | configurable: !(bitmap & 2), 1505 | writable: !(bitmap & 4), 1506 | value: value 1507 | }; 1508 | }; 1509 | 1510 | /***/ 1511 | }, 1512 | 1513 | /***/ b447: /***/ function(module, exports, __webpack_require__) { 1514 | // 7.1.15 ToLength 1515 | var toInteger = __webpack_require__("3a38"); 1516 | var min = Math.min; 1517 | module.exports = function(it) { 1518 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1519 | }; 1520 | 1521 | /***/ 1522 | }, 1523 | 1524 | /***/ b8e3: /***/ function(module, exports) { 1525 | module.exports = true; 1526 | 1527 | /***/ 1528 | }, 1529 | 1530 | /***/ be13: /***/ function(module, exports) { 1531 | // 7.2.1 RequireObjectCoercible(argument) 1532 | module.exports = function(it) { 1533 | if (it == undefined) throw TypeError("Can't call method on " + it); 1534 | return it; 1535 | }; 1536 | 1537 | /***/ 1538 | }, 1539 | 1540 | /***/ c366: /***/ function(module, exports, __webpack_require__) { 1541 | // false -> Array#indexOf 1542 | // true -> Array#includes 1543 | var toIObject = __webpack_require__("6821"); 1544 | var toLength = __webpack_require__("9def"); 1545 | var toAbsoluteIndex = __webpack_require__("77f1"); 1546 | module.exports = function(IS_INCLUDES) { 1547 | return function($this, el, fromIndex) { 1548 | var O = toIObject($this); 1549 | var length = toLength(O.length); 1550 | var index = toAbsoluteIndex(fromIndex, length); 1551 | var value; 1552 | // Array#includes uses SameValueZero equality algorithm 1553 | // eslint-disable-next-line no-self-compare 1554 | if (IS_INCLUDES && el != el) 1555 | while (length > index) { 1556 | value = O[index++]; 1557 | // eslint-disable-next-line no-self-compare 1558 | if (value != value) return true; 1559 | // Array#indexOf ignores holes, Array#includes - not 1560 | } 1561 | else 1562 | for (; length > index; index++) 1563 | if (IS_INCLUDES || index in O) { 1564 | if (O[index] === el) return IS_INCLUDES || index || 0; 1565 | } 1566 | return !IS_INCLUDES && -1; 1567 | }; 1568 | }; 1569 | 1570 | /***/ 1571 | }, 1572 | 1573 | /***/ c3a1: /***/ function(module, exports, __webpack_require__) { 1574 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1575 | var $keys = __webpack_require__("e6f3"); 1576 | var enumBugKeys = __webpack_require__("1691"); 1577 | 1578 | module.exports = 1579 | Object.keys || 1580 | function keys(O) { 1581 | return $keys(O, enumBugKeys); 1582 | }; 1583 | 1584 | /***/ 1585 | }, 1586 | 1587 | /***/ c5f6: /***/ function(module, exports, __webpack_require__) { 1588 | "use strict"; 1589 | 1590 | var global = __webpack_require__("7726"); 1591 | var has = __webpack_require__("69a8"); 1592 | var cof = __webpack_require__("2d95"); 1593 | var inheritIfRequired = __webpack_require__("5dbc"); 1594 | var toPrimitive = __webpack_require__("6a99"); 1595 | var fails = __webpack_require__("79e5"); 1596 | var gOPN = __webpack_require__("9093").f; 1597 | var gOPD = __webpack_require__("11e9").f; 1598 | var dP = __webpack_require__("86cc").f; 1599 | var $trim = __webpack_require__("aa77").trim; 1600 | var NUMBER = "Number"; 1601 | var $Number = global[NUMBER]; 1602 | var Base = $Number; 1603 | var proto = $Number.prototype; 1604 | // Opera ~12 has broken Object#toString 1605 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; 1606 | var TRIM = "trim" in String.prototype; 1607 | 1608 | // 7.1.3 ToNumber(argument) 1609 | var toNumber = function(argument) { 1610 | var it = toPrimitive(argument, false); 1611 | if (typeof it == "string" && it.length > 2) { 1612 | it = TRIM ? it.trim() : $trim(it, 3); 1613 | var first = it.charCodeAt(0); 1614 | var third, radix, maxCode; 1615 | if (first === 43 || first === 45) { 1616 | third = it.charCodeAt(2); 1617 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 1618 | } else if (first === 48) { 1619 | switch (it.charCodeAt(1)) { 1620 | case 66: 1621 | case 98: 1622 | radix = 2; 1623 | maxCode = 49; 1624 | break; // fast equal /^0b[01]+$/i 1625 | case 79: 1626 | case 111: 1627 | radix = 8; 1628 | maxCode = 55; 1629 | break; // fast equal /^0o[0-7]+$/i 1630 | default: 1631 | return +it; 1632 | } 1633 | for ( 1634 | var digits = it.slice(2), i = 0, l = digits.length, code; 1635 | i < l; 1636 | i++ 1637 | ) { 1638 | code = digits.charCodeAt(i); 1639 | // parseInt parses a string to a first unavailable symbol 1640 | // but ToNumber should return NaN if a string contains unavailable symbols 1641 | if (code < 48 || code > maxCode) return NaN; 1642 | } 1643 | return parseInt(digits, radix); 1644 | } 1645 | } 1646 | return +it; 1647 | }; 1648 | 1649 | if (!$Number(" 0o1") || !$Number("0b1") || $Number("+0x1")) { 1650 | $Number = function Number(value) { 1651 | var it = arguments.length < 1 ? 0 : value; 1652 | var that = this; 1653 | return that instanceof $Number && 1654 | // check on 1..constructor(foo) case 1655 | (BROKEN_COF 1656 | ? fails(function() { 1657 | proto.valueOf.call(that); 1658 | }) 1659 | : cof(that) != NUMBER) 1660 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) 1661 | : toNumber(it); 1662 | }; 1663 | for ( 1664 | var keys = __webpack_require__("9e1e") 1665 | ? gOPN(Base) 1666 | : // ES3: 1667 | ( 1668 | "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY," + 1669 | // ES6 (in case, if modules with ES6 Number statics required before): 1670 | "EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER," + 1671 | "MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger" 1672 | ).split(","), 1673 | j = 0, 1674 | key; 1675 | keys.length > j; 1676 | j++ 1677 | ) { 1678 | if (has(Base, (key = keys[j])) && !has($Number, key)) { 1679 | dP($Number, key, gOPD(Base, key)); 1680 | } 1681 | } 1682 | $Number.prototype = proto; 1683 | proto.constructor = $Number; 1684 | __webpack_require__("2aba")(global, NUMBER, $Number); 1685 | } 1686 | 1687 | /***/ 1688 | }, 1689 | 1690 | /***/ c69a: /***/ function(module, exports, __webpack_require__) { 1691 | module.exports = 1692 | !__webpack_require__("9e1e") && 1693 | !__webpack_require__("79e5")(function() { 1694 | return ( 1695 | Object.defineProperty(__webpack_require__("230e")("div"), "a", { 1696 | get: function() { 1697 | return 7; 1698 | } 1699 | }).a != 7 1700 | ); 1701 | }); 1702 | 1703 | /***/ 1704 | }, 1705 | 1706 | /***/ ca5a: /***/ function(module, exports) { 1707 | var id = 0; 1708 | var px = Math.random(); 1709 | module.exports = function(key) { 1710 | return "Symbol(".concat( 1711 | key === undefined ? "" : key, 1712 | ")_", 1713 | (++id + px).toString(36) 1714 | ); 1715 | }; 1716 | 1717 | /***/ 1718 | }, 1719 | 1720 | /***/ cadf: /***/ function(module, exports, __webpack_require__) { 1721 | "use strict"; 1722 | 1723 | var addToUnscopables = __webpack_require__("9c6c"); 1724 | var step = __webpack_require__("d53b"); 1725 | var Iterators = __webpack_require__("84f2"); 1726 | var toIObject = __webpack_require__("6821"); 1727 | 1728 | // 22.1.3.4 Array.prototype.entries() 1729 | // 22.1.3.13 Array.prototype.keys() 1730 | // 22.1.3.29 Array.prototype.values() 1731 | // 22.1.3.30 Array.prototype[@@iterator]() 1732 | module.exports = __webpack_require__("01f9")( 1733 | Array, 1734 | "Array", 1735 | function(iterated, kind) { 1736 | this._t = toIObject(iterated); // target 1737 | this._i = 0; // next index 1738 | this._k = kind; // kind 1739 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1740 | }, 1741 | function() { 1742 | var O = this._t; 1743 | var kind = this._k; 1744 | var index = this._i++; 1745 | if (!O || index >= O.length) { 1746 | this._t = undefined; 1747 | return step(1); 1748 | } 1749 | if (kind == "keys") return step(0, index); 1750 | if (kind == "values") return step(0, O[index]); 1751 | return step(0, [index, O[index]]); 1752 | }, 1753 | "values" 1754 | ); 1755 | 1756 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1757 | Iterators.Arguments = Iterators.Array; 1758 | 1759 | addToUnscopables("keys"); 1760 | addToUnscopables("values"); 1761 | addToUnscopables("entries"); 1762 | 1763 | /***/ 1764 | }, 1765 | 1766 | /***/ cb7c: /***/ function(module, exports, __webpack_require__) { 1767 | var isObject = __webpack_require__("d3f4"); 1768 | module.exports = function(it) { 1769 | if (!isObject(it)) throw TypeError(it + " is not an object!"); 1770 | return it; 1771 | }; 1772 | 1773 | /***/ 1774 | }, 1775 | 1776 | /***/ ce10: /***/ function(module, exports, __webpack_require__) { 1777 | var has = __webpack_require__("69a8"); 1778 | var toIObject = __webpack_require__("6821"); 1779 | var arrayIndexOf = __webpack_require__("c366")(false); 1780 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 1781 | 1782 | module.exports = function(object, names) { 1783 | var O = toIObject(object); 1784 | var i = 0; 1785 | var result = []; 1786 | var key; 1787 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1788 | // Don't enum bug & hidden keys 1789 | while (names.length > i) 1790 | if (has(O, (key = names[i++]))) { 1791 | ~arrayIndexOf(result, key) || result.push(key); 1792 | } 1793 | return result; 1794 | }; 1795 | 1796 | /***/ 1797 | }, 1798 | 1799 | /***/ ce7e: /***/ function(module, exports, __webpack_require__) { 1800 | // most Object methods by ES6 should accept primitives 1801 | var $export = __webpack_require__("63b6"); 1802 | var core = __webpack_require__("584a"); 1803 | var fails = __webpack_require__("294c"); 1804 | module.exports = function(KEY, exec) { 1805 | var fn = (core.Object || {})[KEY] || Object[KEY]; 1806 | var exp = {}; 1807 | exp[KEY] = exec(fn); 1808 | $export( 1809 | $export.S + 1810 | $export.F * 1811 | fails(function() { 1812 | fn(1); 1813 | }), 1814 | "Object", 1815 | exp 1816 | ); 1817 | }; 1818 | 1819 | /***/ 1820 | }, 1821 | 1822 | /***/ d2c8: /***/ function(module, exports, __webpack_require__) { 1823 | // helper for String#{startsWith, endsWith, includes} 1824 | var isRegExp = __webpack_require__("aae3"); 1825 | var defined = __webpack_require__("be13"); 1826 | 1827 | module.exports = function(that, searchString, NAME) { 1828 | if (isRegExp(searchString)) 1829 | throw TypeError("String#" + NAME + " doesn't accept regex!"); 1830 | return String(defined(that)); 1831 | }; 1832 | 1833 | /***/ 1834 | }, 1835 | 1836 | /***/ d3f4: /***/ function(module, exports) { 1837 | module.exports = function(it) { 1838 | return typeof it === "object" ? it !== null : typeof it === "function"; 1839 | }; 1840 | 1841 | /***/ 1842 | }, 1843 | 1844 | /***/ d53b: /***/ function(module, exports) { 1845 | module.exports = function(done, value) { 1846 | return { value: value, done: !!done }; 1847 | }; 1848 | 1849 | /***/ 1850 | }, 1851 | 1852 | /***/ d864: /***/ function(module, exports, __webpack_require__) { 1853 | // optional / simple context binding 1854 | var aFunction = __webpack_require__("79aa"); 1855 | module.exports = function(fn, that, length) { 1856 | aFunction(fn); 1857 | if (that === undefined) return fn; 1858 | switch (length) { 1859 | case 1: 1860 | return function(a) { 1861 | return fn.call(that, a); 1862 | }; 1863 | case 2: 1864 | return function(a, b) { 1865 | return fn.call(that, a, b); 1866 | }; 1867 | case 3: 1868 | return function(a, b, c) { 1869 | return fn.call(that, a, b, c); 1870 | }; 1871 | } 1872 | return function(/* ...args */) { 1873 | return fn.apply(that, arguments); 1874 | }; 1875 | }; 1876 | 1877 | /***/ 1878 | }, 1879 | 1880 | /***/ d8e8: /***/ function(module, exports) { 1881 | module.exports = function(it) { 1882 | if (typeof it != "function") 1883 | throw TypeError(it + " is not a function!"); 1884 | return it; 1885 | }; 1886 | 1887 | /***/ 1888 | }, 1889 | 1890 | /***/ d9f6: /***/ function(module, exports, __webpack_require__) { 1891 | var anObject = __webpack_require__("e4ae"); 1892 | var IE8_DOM_DEFINE = __webpack_require__("794b"); 1893 | var toPrimitive = __webpack_require__("1bc3"); 1894 | var dP = Object.defineProperty; 1895 | 1896 | exports.f = __webpack_require__("8e60") 1897 | ? Object.defineProperty 1898 | : function defineProperty(O, P, Attributes) { 1899 | anObject(O); 1900 | P = toPrimitive(P, true); 1901 | anObject(Attributes); 1902 | if (IE8_DOM_DEFINE) 1903 | try { 1904 | return dP(O, P, Attributes); 1905 | } catch (e) { 1906 | /* empty */ 1907 | } 1908 | if ("get" in Attributes || "set" in Attributes) 1909 | throw TypeError("Accessors not supported!"); 1910 | if ("value" in Attributes) O[P] = Attributes.value; 1911 | return O; 1912 | }; 1913 | 1914 | /***/ 1915 | }, 1916 | 1917 | /***/ dbdb: /***/ function(module, exports, __webpack_require__) { 1918 | var core = __webpack_require__("584a"); 1919 | var global = __webpack_require__("e53d"); 1920 | var SHARED = "__core-js_shared__"; 1921 | var store = global[SHARED] || (global[SHARED] = {}); 1922 | 1923 | (module.exports = function(key, value) { 1924 | return store[key] || (store[key] = value !== undefined ? value : {}); 1925 | })("versions", []).push({ 1926 | version: core.version, 1927 | mode: __webpack_require__("b8e3") ? "pure" : "global", 1928 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 1929 | }); 1930 | 1931 | /***/ 1932 | }, 1933 | 1934 | /***/ e11e: /***/ function(module, exports) { 1935 | // IE 8- don't enum bug keys 1936 | module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 1937 | "," 1938 | ); 1939 | 1940 | /***/ 1941 | }, 1942 | 1943 | /***/ e4ae: /***/ function(module, exports, __webpack_require__) { 1944 | var isObject = __webpack_require__("f772"); 1945 | module.exports = function(it) { 1946 | if (!isObject(it)) throw TypeError(it + " is not an object!"); 1947 | return it; 1948 | }; 1949 | 1950 | /***/ 1951 | }, 1952 | 1953 | /***/ e53d: /***/ function(module, exports) { 1954 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1955 | var global = (module.exports = 1956 | typeof window != "undefined" && window.Math == Math 1957 | ? window 1958 | : typeof self != "undefined" && self.Math == Math 1959 | ? self 1960 | : // eslint-disable-next-line no-new-func 1961 | Function("return this")()); 1962 | if (typeof __g == "number") __g = global; // eslint-disable-line no-undef 1963 | 1964 | /***/ 1965 | }, 1966 | 1967 | /***/ e6f3: /***/ function(module, exports, __webpack_require__) { 1968 | var has = __webpack_require__("07e3"); 1969 | var toIObject = __webpack_require__("36c3"); 1970 | var arrayIndexOf = __webpack_require__("5b4e")(false); 1971 | var IE_PROTO = __webpack_require__("5559")("IE_PROTO"); 1972 | 1973 | module.exports = function(object, names) { 1974 | var O = toIObject(object); 1975 | var i = 0; 1976 | var result = []; 1977 | var key; 1978 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1979 | // Don't enum bug & hidden keys 1980 | while (names.length > i) 1981 | if (has(O, (key = names[i++]))) { 1982 | ~arrayIndexOf(result, key) || result.push(key); 1983 | } 1984 | return result; 1985 | }; 1986 | 1987 | /***/ 1988 | }, 1989 | 1990 | /***/ f772: /***/ function(module, exports) { 1991 | module.exports = function(it) { 1992 | return typeof it === "object" ? it !== null : typeof it === "function"; 1993 | }; 1994 | 1995 | /***/ 1996 | }, 1997 | 1998 | /***/ fa5b: /***/ function(module, exports, __webpack_require__) { 1999 | module.exports = __webpack_require__("5537")( 2000 | "native-function-to-string", 2001 | Function.toString 2002 | ); 2003 | 2004 | /***/ 2005 | }, 2006 | 2007 | /***/ fab2: /***/ function(module, exports, __webpack_require__) { 2008 | var document = __webpack_require__("7726").document; 2009 | module.exports = document && document.documentElement; 2010 | 2011 | /***/ 2012 | }, 2013 | 2014 | /***/ fb15: /***/ function( 2015 | module, 2016 | __webpack_exports__, 2017 | __webpack_require__ 2018 | ) { 2019 | "use strict"; 2020 | __webpack_require__.r(__webpack_exports__); 2021 | 2022 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 2023 | // This file is imported into lib/wc client bundles. 2024 | 2025 | if (typeof window !== "undefined") { 2026 | var i; 2027 | if ( 2028 | (i = window.document.currentScript) && 2029 | (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)) 2030 | ) { 2031 | __webpack_require__.p = i[1] // eslint-disable-line 2032 | } 2033 | } 2034 | 2035 | // Indicate to webpack that this file can be concatenated 2036 | /* harmony default export */ var setPublicPath = null; 2037 | 2038 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js 2039 | var es7_array_includes = __webpack_require__("6762"); 2040 | 2041 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js 2042 | var es6_string_includes = __webpack_require__("2fdb"); 2043 | 2044 | // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 2045 | var web_dom_iterable = __webpack_require__("ac6a"); 2046 | 2047 | // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js 2048 | var keys = __webpack_require__("a4bb"); 2049 | var keys_default = /*#__PURE__*/ __webpack_require__.n(keys); 2050 | 2051 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js 2052 | var es6_number_constructor = __webpack_require__("c5f6"); 2053 | 2054 | // EXTERNAL MODULE: external {"commonjs":"@mapbox/mapbox-gl-geocoder","commonjs2":"@mapbox/mapbox-gl-geocoder","amd":"@mapbox/mapbox-gl-geocoder","root":"mapbox-gl-geocoder"} 2055 | var mapbox_gl_geocoder_root_mapbox_gl_geocoder_ = __webpack_require__( 2056 | "7c06" 2057 | ); 2058 | var mapbox_gl_geocoder_root_mapbox_gl_geocoder_default = /*#__PURE__*/ __webpack_require__.n( 2059 | mapbox_gl_geocoder_root_mapbox_gl_geocoder_ 2060 | ); 2061 | 2062 | // EXTERNAL MODULE: external {"commonjs":"vue-mapbox","commonjs2":"vue-mapbox","amd":"vue-mapbox","root":"vue-mapbox"} 2063 | var external_commonjs_vue_mapbox_commonjs2_vue_mapbox_amd_vue_mapbox_root_vue_mapbox_ = __webpack_require__( 2064 | "35be" 2065 | ); 2066 | 2067 | // CONCATENATED MODULE: ./src/GeocoderControl.js 2068 | 2069 | var geocoderEvents = { 2070 | clear: "clear", 2071 | loading: "loading", 2072 | results: "results", 2073 | result: "result", 2074 | error: "error" 2075 | }; 2076 | /* harmony default export */ var GeocoderControl = { 2077 | name: "GeocoderControl", 2078 | mixins: [ 2079 | external_commonjs_vue_mapbox_commonjs2_vue_mapbox_amd_vue_mapbox_root_vue_mapbox_[ 2080 | "$helpers" 2081 | ].asControl 2082 | ], 2083 | inject: ["mapbox", "map"], 2084 | props: { 2085 | // Mapbox-geocoder options 2086 | accessToken: { 2087 | type: String, 2088 | required: true 2089 | }, 2090 | zoom: { 2091 | type: Number, 2092 | default: 16 2093 | }, 2094 | flyTo: { 2095 | type: Boolean, 2096 | default: true 2097 | }, 2098 | placeholder: { 2099 | type: String, 2100 | default: "Search" 2101 | }, 2102 | proximity: { 2103 | type: Object, 2104 | default: null 2105 | }, 2106 | trackProximity: { 2107 | type: Boolean, 2108 | default: false 2109 | }, 2110 | bbox: { 2111 | type: Array, 2112 | default: null 2113 | }, 2114 | types: { 2115 | type: String, 2116 | default: null 2117 | }, 2118 | country: { 2119 | type: String, 2120 | default: null 2121 | }, 2122 | minLength: { 2123 | type: Number, 2124 | default: 2 2125 | }, 2126 | limit: { 2127 | type: Number, 2128 | default: 5 2129 | }, 2130 | language: { 2131 | type: String, 2132 | default: null 2133 | }, 2134 | filter: { 2135 | type: Function, 2136 | default: null 2137 | }, 2138 | localGeocoder: { 2139 | type: Function, 2140 | default: null 2141 | }, 2142 | // Component options 2143 | input: { 2144 | type: String, 2145 | default: null 2146 | } 2147 | }, 2148 | data: function data() { 2149 | return { 2150 | control: null, 2151 | initial: true 2152 | }; 2153 | }, 2154 | watch: { 2155 | input: { 2156 | handler: function handler(next, prev) { 2157 | if (this.control && next !== prev) { 2158 | this.control.setInput(next); 2159 | } 2160 | }, 2161 | immediate: true 2162 | }, 2163 | proximity: function proximity(next, prev) { 2164 | if (this.control && next !== prev) { 2165 | this.control.setProximity(next); 2166 | } 2167 | } 2168 | }, 2169 | created: function created() { 2170 | if (this.accessToken && !this.mapbox.accessToken) { 2171 | this.mapbox.accessToken = this.accessToken; 2172 | } 2173 | 2174 | this.control = new mapbox_gl_geocoder_root_mapbox_gl_geocoder_default.a( 2175 | this.$props 2176 | ); 2177 | this.control.on("results", this.$_updateInput); 2178 | this.$_deferredMount(); 2179 | }, 2180 | beforeDestroy: function beforeDestroy() { 2181 | this.control.off("results", this.$_updateInput); 2182 | }, 2183 | methods: { 2184 | $_deferredMount: function $_deferredMount() { 2185 | this.map.addControl(this.control); 2186 | 2187 | if (this.input) { 2188 | this.control.setInput(this.input); 2189 | } 2190 | 2191 | this.$_emitEvent("added", { 2192 | geocoder: this.control 2193 | }); 2194 | this.$_bindSelfEvents(keys_default()(geocoderEvents)); 2195 | this.initial = false; 2196 | }, 2197 | $_bindSelfEvents: function $_bindSelfEvents(events) { 2198 | var _this = this; 2199 | 2200 | var vm = this; 2201 | 2202 | keys_default()(this.$listeners).forEach(function(eventName) { 2203 | if (events.includes(eventName)) { 2204 | _this.control.on(eventName, function(eventData) { 2205 | return vm.$_emitSelfEvent( 2206 | { 2207 | type: eventName 2208 | }, 2209 | { 2210 | geocoderData: eventData 2211 | } 2212 | ); 2213 | }); 2214 | } 2215 | }); 2216 | }, 2217 | $_updateInput: function $_updateInput(results) { 2218 | if (!this.initial) { 2219 | var input = results.query ? results.query.join("") : ""; 2220 | this.$emit("update:input", input); 2221 | } 2222 | }, 2223 | query: function query(_query) { 2224 | if (this.control) { 2225 | this.$emit("update:input", _query); 2226 | return this.contol.query(_query); 2227 | } 2228 | 2229 | return null; 2230 | } 2231 | } 2232 | }; 2233 | // CONCATENATED MODULE: ./src/main.js 2234 | 2235 | /* harmony default export */ var main = GeocoderControl; 2236 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 2237 | 2238 | /* harmony default export */ var entry_lib = (__webpack_exports__[ 2239 | "default" 2240 | ] = main); 2241 | 2242 | /***/ 2243 | }, 2244 | 2245 | /***/ fdef: /***/ function(module, exports) { 2246 | module.exports = 2247 | "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" + 2248 | "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"; 2249 | 2250 | /***/ 2251 | } 2252 | 2253 | /******/ 2254 | } 2255 | )["default"]; 2256 | -------------------------------------------------------------------------------- /dist/vue-mapbox-geocoder.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if (typeof exports === "object" && typeof module === "object") 3 | module.exports = factory( 4 | require("vue-mapbox"), 5 | require("@mapbox/mapbox-gl-geocoder") 6 | ); 7 | else if (typeof define === "function" && define.amd) 8 | define(["vue-mapbox", "@mapbox/mapbox-gl-geocoder"], factory); 9 | else if (typeof exports === "object") 10 | exports["vue-mapbox-geocoder"] = factory( 11 | require("vue-mapbox"), 12 | require("@mapbox/mapbox-gl-geocoder") 13 | ); 14 | else 15 | root["vue-mapbox-geocoder"] = factory( 16 | root["vue-mapbox"], 17 | root["mapbox-gl-geocoder"] 18 | ); 19 | })(typeof self !== "undefined" ? self : this, function( 20 | __WEBPACK_EXTERNAL_MODULE__35be__, 21 | __WEBPACK_EXTERNAL_MODULE__7c06__ 22 | ) { 23 | return /******/ (function(modules) { 24 | // webpackBootstrap 25 | /******/ // The module cache 26 | /******/ var installedModules = {}; // The require function 27 | /******/ 28 | /******/ /******/ function __webpack_require__(moduleId) { 29 | /******/ 30 | /******/ // Check if module is in cache 31 | /******/ if (installedModules[moduleId]) { 32 | /******/ return installedModules[moduleId].exports; 33 | /******/ 34 | } // Create a new module (and put it into the cache) 35 | /******/ /******/ var module = (installedModules[moduleId] = { 36 | /******/ i: moduleId, 37 | /******/ l: false, 38 | /******/ exports: {} 39 | /******/ 40 | }); // Execute the module function 41 | /******/ 42 | /******/ /******/ modules[moduleId].call( 43 | module.exports, 44 | module, 45 | module.exports, 46 | __webpack_require__ 47 | ); // Flag the module as loaded 48 | /******/ 49 | /******/ /******/ module.l = true; // Return the exports of the module 50 | /******/ 51 | /******/ /******/ return module.exports; 52 | /******/ 53 | } // expose the modules object (__webpack_modules__) 54 | /******/ 55 | /******/ 56 | /******/ /******/ __webpack_require__.m = modules; // expose the module cache 57 | /******/ 58 | /******/ /******/ __webpack_require__.c = installedModules; // define getter function for harmony exports 59 | /******/ 60 | /******/ /******/ __webpack_require__.d = function(exports, name, getter) { 61 | /******/ if (!__webpack_require__.o(exports, name)) { 62 | /******/ Object.defineProperty(exports, name, { 63 | enumerable: true, 64 | get: getter 65 | }); 66 | /******/ 67 | } 68 | /******/ 69 | }; // define __esModule on exports 70 | /******/ 71 | /******/ /******/ __webpack_require__.r = function(exports) { 72 | /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) { 73 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { 74 | value: "Module" 75 | }); 76 | /******/ 77 | } 78 | /******/ Object.defineProperty(exports, "__esModule", { value: true }); 79 | /******/ 80 | }; // create a fake namespace object // mode & 1: value is a module id, require it // mode & 2: merge all properties of value into the ns // mode & 4: return value when already ns object // mode & 8|1: behave like require 81 | /******/ 82 | /******/ /******/ /******/ /******/ /******/ /******/ __webpack_require__.t = function( 83 | value, 84 | mode 85 | ) { 86 | /******/ if (mode & 1) value = __webpack_require__(value); 87 | /******/ if (mode & 8) return value; 88 | /******/ if ( 89 | mode & 4 && 90 | typeof value === "object" && 91 | value && 92 | value.__esModule 93 | ) 94 | return value; 95 | /******/ var ns = Object.create(null); 96 | /******/ __webpack_require__.r(ns); 97 | /******/ Object.defineProperty(ns, "default", { 98 | enumerable: true, 99 | value: value 100 | }); 101 | /******/ if (mode & 2 && typeof value != "string") 102 | for (var key in value) 103 | __webpack_require__.d( 104 | ns, 105 | key, 106 | function(key) { 107 | return value[key]; 108 | }.bind(null, key) 109 | ); 110 | /******/ return ns; 111 | /******/ 112 | }; // getDefaultExport function for compatibility with non-harmony modules 113 | /******/ 114 | /******/ /******/ __webpack_require__.n = function(module) { 115 | /******/ var getter = 116 | module && module.__esModule 117 | ? /******/ function getDefault() { 118 | return module["default"]; 119 | } 120 | : /******/ function getModuleExports() { 121 | return module; 122 | }; 123 | /******/ __webpack_require__.d(getter, "a", getter); 124 | /******/ return getter; 125 | /******/ 126 | }; // Object.prototype.hasOwnProperty.call 127 | /******/ 128 | /******/ /******/ __webpack_require__.o = function(object, property) { 129 | return Object.prototype.hasOwnProperty.call(object, property); 130 | }; // __webpack_public_path__ 131 | /******/ 132 | /******/ /******/ __webpack_require__.p = ""; // Load entry module and return exports 133 | /******/ 134 | /******/ 135 | /******/ /******/ return __webpack_require__( 136 | (__webpack_require__.s = "fb15") 137 | ); 138 | /******/ 139 | })( 140 | /************************************************************************/ 141 | /******/ { 142 | /***/ "01f9": /***/ function(module, exports, __webpack_require__) { 143 | "use strict"; 144 | 145 | var LIBRARY = __webpack_require__("2d00"); 146 | var $export = __webpack_require__("5ca1"); 147 | var redefine = __webpack_require__("2aba"); 148 | var hide = __webpack_require__("32e9"); 149 | var Iterators = __webpack_require__("84f2"); 150 | var $iterCreate = __webpack_require__("41a0"); 151 | var setToStringTag = __webpack_require__("7f20"); 152 | var getPrototypeOf = __webpack_require__("38fd"); 153 | var ITERATOR = __webpack_require__("2b4c")("iterator"); 154 | var BUGGY = !([].keys && "next" in [].keys()); // Safari has buggy iterators w/o `next` 155 | var FF_ITERATOR = "@@iterator"; 156 | var KEYS = "keys"; 157 | var VALUES = "values"; 158 | 159 | var returnThis = function() { 160 | return this; 161 | }; 162 | 163 | module.exports = function( 164 | Base, 165 | NAME, 166 | Constructor, 167 | next, 168 | DEFAULT, 169 | IS_SET, 170 | FORCED 171 | ) { 172 | $iterCreate(Constructor, NAME, next); 173 | var getMethod = function(kind) { 174 | if (!BUGGY && kind in proto) return proto[kind]; 175 | switch (kind) { 176 | case KEYS: 177 | return function keys() { 178 | return new Constructor(this, kind); 179 | }; 180 | case VALUES: 181 | return function values() { 182 | return new Constructor(this, kind); 183 | }; 184 | } 185 | return function entries() { 186 | return new Constructor(this, kind); 187 | }; 188 | }; 189 | var TAG = NAME + " Iterator"; 190 | var DEF_VALUES = DEFAULT == VALUES; 191 | var VALUES_BUG = false; 192 | var proto = Base.prototype; 193 | var $native = 194 | proto[ITERATOR] || 195 | proto[FF_ITERATOR] || 196 | (DEFAULT && proto[DEFAULT]); 197 | var $default = $native || getMethod(DEFAULT); 198 | var $entries = DEFAULT 199 | ? !DEF_VALUES 200 | ? $default 201 | : getMethod("entries") 202 | : undefined; 203 | var $anyNative = NAME == "Array" ? proto.entries || $native : $native; 204 | var methods, key, IteratorPrototype; 205 | // Fix native 206 | if ($anyNative) { 207 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 208 | if ( 209 | IteratorPrototype !== Object.prototype && 210 | IteratorPrototype.next 211 | ) { 212 | // Set @@toStringTag to native iterators 213 | setToStringTag(IteratorPrototype, TAG, true); 214 | // fix for some old engines 215 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function") 216 | hide(IteratorPrototype, ITERATOR, returnThis); 217 | } 218 | } 219 | // fix Array#{values, @@iterator}.name in V8 / FF 220 | if (DEF_VALUES && $native && $native.name !== VALUES) { 221 | VALUES_BUG = true; 222 | $default = function values() { 223 | return $native.call(this); 224 | }; 225 | } 226 | // Define iterator 227 | if ( 228 | (!LIBRARY || FORCED) && 229 | (BUGGY || VALUES_BUG || !proto[ITERATOR]) 230 | ) { 231 | hide(proto, ITERATOR, $default); 232 | } 233 | // Plug for library 234 | Iterators[NAME] = $default; 235 | Iterators[TAG] = returnThis; 236 | if (DEFAULT) { 237 | methods = { 238 | values: DEF_VALUES ? $default : getMethod(VALUES), 239 | keys: IS_SET ? $default : getMethod(KEYS), 240 | entries: $entries 241 | }; 242 | if (FORCED) 243 | for (key in methods) { 244 | if (!(key in proto)) redefine(proto, key, methods[key]); 245 | } 246 | else 247 | $export( 248 | $export.P + $export.F * (BUGGY || VALUES_BUG), 249 | NAME, 250 | methods 251 | ); 252 | } 253 | return methods; 254 | }; 255 | 256 | /***/ 257 | }, 258 | 259 | /***/ "07e3": /***/ function(module, exports) { 260 | var hasOwnProperty = {}.hasOwnProperty; 261 | module.exports = function(it, key) { 262 | return hasOwnProperty.call(it, key); 263 | }; 264 | 265 | /***/ 266 | }, 267 | 268 | /***/ "0d58": /***/ function(module, exports, __webpack_require__) { 269 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 270 | var $keys = __webpack_require__("ce10"); 271 | var enumBugKeys = __webpack_require__("e11e"); 272 | 273 | module.exports = 274 | Object.keys || 275 | function keys(O) { 276 | return $keys(O, enumBugKeys); 277 | }; 278 | 279 | /***/ 280 | }, 281 | 282 | /***/ "0fc9": /***/ function(module, exports, __webpack_require__) { 283 | var toInteger = __webpack_require__("3a38"); 284 | var max = Math.max; 285 | var min = Math.min; 286 | module.exports = function(index, length) { 287 | index = toInteger(index); 288 | return index < 0 ? max(index + length, 0) : min(index, length); 289 | }; 290 | 291 | /***/ 292 | }, 293 | 294 | /***/ "11e9": /***/ function(module, exports, __webpack_require__) { 295 | var pIE = __webpack_require__("52a7"); 296 | var createDesc = __webpack_require__("4630"); 297 | var toIObject = __webpack_require__("6821"); 298 | var toPrimitive = __webpack_require__("6a99"); 299 | var has = __webpack_require__("69a8"); 300 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 301 | var gOPD = Object.getOwnPropertyDescriptor; 302 | 303 | exports.f = __webpack_require__("9e1e") 304 | ? gOPD 305 | : function getOwnPropertyDescriptor(O, P) { 306 | O = toIObject(O); 307 | P = toPrimitive(P, true); 308 | if (IE8_DOM_DEFINE) 309 | try { 310 | return gOPD(O, P); 311 | } catch (e) { 312 | /* empty */ 313 | } 314 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 315 | }; 316 | 317 | /***/ 318 | }, 319 | 320 | /***/ "1495": /***/ function(module, exports, __webpack_require__) { 321 | var dP = __webpack_require__("86cc"); 322 | var anObject = __webpack_require__("cb7c"); 323 | var getKeys = __webpack_require__("0d58"); 324 | 325 | module.exports = __webpack_require__("9e1e") 326 | ? Object.defineProperties 327 | : function defineProperties(O, Properties) { 328 | anObject(O); 329 | var keys = getKeys(Properties); 330 | var length = keys.length; 331 | var i = 0; 332 | var P; 333 | while (length > i) dP.f(O, (P = keys[i++]), Properties[P]); 334 | return O; 335 | }; 336 | 337 | /***/ 338 | }, 339 | 340 | /***/ "1691": /***/ function(module, exports) { 341 | // IE 8- don't enum bug keys 342 | module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 343 | "," 344 | ); 345 | 346 | /***/ 347 | }, 348 | 349 | /***/ "1bc3": /***/ function(module, exports, __webpack_require__) { 350 | // 7.1.1 ToPrimitive(input [, PreferredType]) 351 | var isObject = __webpack_require__("f772"); 352 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 353 | // and the second argument - flag - preferred type is a string 354 | module.exports = function(it, S) { 355 | if (!isObject(it)) return it; 356 | var fn, val; 357 | if ( 358 | S && 359 | typeof (fn = it.toString) == "function" && 360 | !isObject((val = fn.call(it))) 361 | ) 362 | return val; 363 | if ( 364 | typeof (fn = it.valueOf) == "function" && 365 | !isObject((val = fn.call(it))) 366 | ) 367 | return val; 368 | if ( 369 | !S && 370 | typeof (fn = it.toString) == "function" && 371 | !isObject((val = fn.call(it))) 372 | ) 373 | return val; 374 | throw TypeError("Can't convert object to primitive value"); 375 | }; 376 | 377 | /***/ 378 | }, 379 | 380 | /***/ "1ec9": /***/ function(module, exports, __webpack_require__) { 381 | var isObject = __webpack_require__("f772"); 382 | var document = __webpack_require__("e53d").document; 383 | // typeof document.createElement is 'object' in old IE 384 | var is = isObject(document) && isObject(document.createElement); 385 | module.exports = function(it) { 386 | return is ? document.createElement(it) : {}; 387 | }; 388 | 389 | /***/ 390 | }, 391 | 392 | /***/ "230e": /***/ function(module, exports, __webpack_require__) { 393 | var isObject = __webpack_require__("d3f4"); 394 | var document = __webpack_require__("7726").document; 395 | // typeof document.createElement is 'object' in old IE 396 | var is = isObject(document) && isObject(document.createElement); 397 | module.exports = function(it) { 398 | return is ? document.createElement(it) : {}; 399 | }; 400 | 401 | /***/ 402 | }, 403 | 404 | /***/ "241e": /***/ function(module, exports, __webpack_require__) { 405 | // 7.1.13 ToObject(argument) 406 | var defined = __webpack_require__("25eb"); 407 | module.exports = function(it) { 408 | return Object(defined(it)); 409 | }; 410 | 411 | /***/ 412 | }, 413 | 414 | /***/ "25eb": /***/ function(module, exports) { 415 | // 7.2.1 RequireObjectCoercible(argument) 416 | module.exports = function(it) { 417 | if (it == undefined) throw TypeError("Can't call method on " + it); 418 | return it; 419 | }; 420 | 421 | /***/ 422 | }, 423 | 424 | /***/ "294c": /***/ function(module, exports) { 425 | module.exports = function(exec) { 426 | try { 427 | return !!exec(); 428 | } catch (e) { 429 | return true; 430 | } 431 | }; 432 | 433 | /***/ 434 | }, 435 | 436 | /***/ "2aba": /***/ function(module, exports, __webpack_require__) { 437 | var global = __webpack_require__("7726"); 438 | var hide = __webpack_require__("32e9"); 439 | var has = __webpack_require__("69a8"); 440 | var SRC = __webpack_require__("ca5a")("src"); 441 | var $toString = __webpack_require__("fa5b"); 442 | var TO_STRING = "toString"; 443 | var TPL = ("" + $toString).split(TO_STRING); 444 | 445 | __webpack_require__("8378").inspectSource = function(it) { 446 | return $toString.call(it); 447 | }; 448 | 449 | (module.exports = function(O, key, val, safe) { 450 | var isFunction = typeof val == "function"; 451 | if (isFunction) has(val, "name") || hide(val, "name", key); 452 | if (O[key] === val) return; 453 | if (isFunction) 454 | has(val, SRC) || 455 | hide(val, SRC, O[key] ? "" + O[key] : TPL.join(String(key))); 456 | if (O === global) { 457 | O[key] = val; 458 | } else if (!safe) { 459 | delete O[key]; 460 | hide(O, key, val); 461 | } else if (O[key]) { 462 | O[key] = val; 463 | } else { 464 | hide(O, key, val); 465 | } 466 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 467 | })(Function.prototype, TO_STRING, function toString() { 468 | return ( 469 | (typeof this == "function" && this[SRC]) || $toString.call(this) 470 | ); 471 | }); 472 | 473 | /***/ 474 | }, 475 | 476 | /***/ "2aeb": /***/ function(module, exports, __webpack_require__) { 477 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 478 | var anObject = __webpack_require__("cb7c"); 479 | var dPs = __webpack_require__("1495"); 480 | var enumBugKeys = __webpack_require__("e11e"); 481 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 482 | var Empty = function() { 483 | /* empty */ 484 | }; 485 | var PROTOTYPE = "prototype"; 486 | 487 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 488 | var createDict = function() { 489 | // Thrash, waste and sodomy: IE GC bug 490 | var iframe = __webpack_require__("230e")("iframe"); 491 | var i = enumBugKeys.length; 492 | var lt = "<"; 493 | var gt = ">"; 494 | var iframeDocument; 495 | iframe.style.display = "none"; 496 | __webpack_require__("fab2").appendChild(iframe); 497 | iframe.src = "javascript:"; // eslint-disable-line no-script-url 498 | // createDict = iframe.contentWindow.Object; 499 | // html.removeChild(iframe); 500 | iframeDocument = iframe.contentWindow.document; 501 | iframeDocument.open(); 502 | iframeDocument.write( 503 | lt + "script" + gt + "document.F=Object" + lt + "/script" + gt 504 | ); 505 | iframeDocument.close(); 506 | createDict = iframeDocument.F; 507 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 508 | return createDict(); 509 | }; 510 | 511 | module.exports = 512 | Object.create || 513 | function create(O, Properties) { 514 | var result; 515 | if (O !== null) { 516 | Empty[PROTOTYPE] = anObject(O); 517 | result = new Empty(); 518 | Empty[PROTOTYPE] = null; 519 | // add "__proto__" for Object.getPrototypeOf polyfill 520 | result[IE_PROTO] = O; 521 | } else result = createDict(); 522 | return Properties === undefined ? result : dPs(result, Properties); 523 | }; 524 | 525 | /***/ 526 | }, 527 | 528 | /***/ "2b4c": /***/ function(module, exports, __webpack_require__) { 529 | var store = __webpack_require__("5537")("wks"); 530 | var uid = __webpack_require__("ca5a"); 531 | var Symbol = __webpack_require__("7726").Symbol; 532 | var USE_SYMBOL = typeof Symbol == "function"; 533 | 534 | var $exports = (module.exports = function(name) { 535 | return ( 536 | store[name] || 537 | (store[name] = 538 | (USE_SYMBOL && Symbol[name]) || 539 | (USE_SYMBOL ? Symbol : uid)("Symbol." + name)) 540 | ); 541 | }); 542 | 543 | $exports.store = store; 544 | 545 | /***/ 546 | }, 547 | 548 | /***/ "2d00": /***/ function(module, exports) { 549 | module.exports = false; 550 | 551 | /***/ 552 | }, 553 | 554 | /***/ "2d95": /***/ function(module, exports) { 555 | var toString = {}.toString; 556 | 557 | module.exports = function(it) { 558 | return toString.call(it).slice(8, -1); 559 | }; 560 | 561 | /***/ 562 | }, 563 | 564 | /***/ "2fdb": /***/ function(module, exports, __webpack_require__) { 565 | "use strict"; 566 | // 21.1.3.7 String.prototype.includes(searchString, position = 0) 567 | 568 | var $export = __webpack_require__("5ca1"); 569 | var context = __webpack_require__("d2c8"); 570 | var INCLUDES = "includes"; 571 | 572 | $export( 573 | $export.P + $export.F * __webpack_require__("5147")(INCLUDES), 574 | "String", 575 | { 576 | includes: function includes(searchString /* , position = 0 */) { 577 | return !!~context(this, searchString, INCLUDES).indexOf( 578 | searchString, 579 | arguments.length > 1 ? arguments[1] : undefined 580 | ); 581 | } 582 | } 583 | ); 584 | 585 | /***/ 586 | }, 587 | 588 | /***/ "32a6": /***/ function(module, exports, __webpack_require__) { 589 | // 19.1.2.14 Object.keys(O) 590 | var toObject = __webpack_require__("241e"); 591 | var $keys = __webpack_require__("c3a1"); 592 | 593 | __webpack_require__("ce7e")("keys", function() { 594 | return function keys(it) { 595 | return $keys(toObject(it)); 596 | }; 597 | }); 598 | 599 | /***/ 600 | }, 601 | 602 | /***/ "32e9": /***/ function(module, exports, __webpack_require__) { 603 | var dP = __webpack_require__("86cc"); 604 | var createDesc = __webpack_require__("4630"); 605 | module.exports = __webpack_require__("9e1e") 606 | ? function(object, key, value) { 607 | return dP.f(object, key, createDesc(1, value)); 608 | } 609 | : function(object, key, value) { 610 | object[key] = value; 611 | return object; 612 | }; 613 | 614 | /***/ 615 | }, 616 | 617 | /***/ "335c": /***/ function(module, exports, __webpack_require__) { 618 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 619 | var cof = __webpack_require__("6b4c"); 620 | // eslint-disable-next-line no-prototype-builtins 621 | module.exports = Object("z").propertyIsEnumerable(0) 622 | ? Object 623 | : function(it) { 624 | return cof(it) == "String" ? it.split("") : Object(it); 625 | }; 626 | 627 | /***/ 628 | }, 629 | 630 | /***/ "35be": /***/ function(module, exports) { 631 | module.exports = __WEBPACK_EXTERNAL_MODULE__35be__; 632 | 633 | /***/ 634 | }, 635 | 636 | /***/ "35e8": /***/ function(module, exports, __webpack_require__) { 637 | var dP = __webpack_require__("d9f6"); 638 | var createDesc = __webpack_require__("aebd"); 639 | module.exports = __webpack_require__("8e60") 640 | ? function(object, key, value) { 641 | return dP.f(object, key, createDesc(1, value)); 642 | } 643 | : function(object, key, value) { 644 | object[key] = value; 645 | return object; 646 | }; 647 | 648 | /***/ 649 | }, 650 | 651 | /***/ "36c3": /***/ function(module, exports, __webpack_require__) { 652 | // to indexed object, toObject with fallback for non-array-like ES3 strings 653 | var IObject = __webpack_require__("335c"); 654 | var defined = __webpack_require__("25eb"); 655 | module.exports = function(it) { 656 | return IObject(defined(it)); 657 | }; 658 | 659 | /***/ 660 | }, 661 | 662 | /***/ "38fd": /***/ function(module, exports, __webpack_require__) { 663 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 664 | var has = __webpack_require__("69a8"); 665 | var toObject = __webpack_require__("4bf8"); 666 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 667 | var ObjectProto = Object.prototype; 668 | 669 | module.exports = 670 | Object.getPrototypeOf || 671 | function(O) { 672 | O = toObject(O); 673 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 674 | if ( 675 | typeof O.constructor == "function" && 676 | O instanceof O.constructor 677 | ) { 678 | return O.constructor.prototype; 679 | } 680 | return O instanceof Object ? ObjectProto : null; 681 | }; 682 | 683 | /***/ 684 | }, 685 | 686 | /***/ "3a38": /***/ function(module, exports) { 687 | // 7.1.4 ToInteger 688 | var ceil = Math.ceil; 689 | var floor = Math.floor; 690 | module.exports = function(it) { 691 | return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 692 | }; 693 | 694 | /***/ 695 | }, 696 | 697 | /***/ "41a0": /***/ function(module, exports, __webpack_require__) { 698 | "use strict"; 699 | 700 | var create = __webpack_require__("2aeb"); 701 | var descriptor = __webpack_require__("4630"); 702 | var setToStringTag = __webpack_require__("7f20"); 703 | var IteratorPrototype = {}; 704 | 705 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 706 | __webpack_require__("32e9")( 707 | IteratorPrototype, 708 | __webpack_require__("2b4c")("iterator"), 709 | function() { 710 | return this; 711 | } 712 | ); 713 | 714 | module.exports = function(Constructor, NAME, next) { 715 | Constructor.prototype = create(IteratorPrototype, { 716 | next: descriptor(1, next) 717 | }); 718 | setToStringTag(Constructor, NAME + " Iterator"); 719 | }; 720 | 721 | /***/ 722 | }, 723 | 724 | /***/ "4588": /***/ function(module, exports) { 725 | // 7.1.4 ToInteger 726 | var ceil = Math.ceil; 727 | var floor = Math.floor; 728 | module.exports = function(it) { 729 | return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); 730 | }; 731 | 732 | /***/ 733 | }, 734 | 735 | /***/ "4630": /***/ function(module, exports) { 736 | module.exports = function(bitmap, value) { 737 | return { 738 | enumerable: !(bitmap & 1), 739 | configurable: !(bitmap & 2), 740 | writable: !(bitmap & 4), 741 | value: value 742 | }; 743 | }; 744 | 745 | /***/ 746 | }, 747 | 748 | /***/ "4bf8": /***/ function(module, exports, __webpack_require__) { 749 | // 7.1.13 ToObject(argument) 750 | var defined = __webpack_require__("be13"); 751 | module.exports = function(it) { 752 | return Object(defined(it)); 753 | }; 754 | 755 | /***/ 756 | }, 757 | 758 | /***/ "5147": /***/ function(module, exports, __webpack_require__) { 759 | var MATCH = __webpack_require__("2b4c")("match"); 760 | module.exports = function(KEY) { 761 | var re = /./; 762 | try { 763 | "/./"[KEY](re); 764 | } catch (e) { 765 | try { 766 | re[MATCH] = false; 767 | return !"/./"[KEY](re); 768 | } catch (f) { 769 | /* empty */ 770 | } 771 | } 772 | return true; 773 | }; 774 | 775 | /***/ 776 | }, 777 | 778 | /***/ "52a7": /***/ function(module, exports) { 779 | exports.f = {}.propertyIsEnumerable; 780 | 781 | /***/ 782 | }, 783 | 784 | /***/ "5537": /***/ function(module, exports, __webpack_require__) { 785 | var core = __webpack_require__("8378"); 786 | var global = __webpack_require__("7726"); 787 | var SHARED = "__core-js_shared__"; 788 | var store = global[SHARED] || (global[SHARED] = {}); 789 | 790 | (module.exports = function(key, value) { 791 | return store[key] || (store[key] = value !== undefined ? value : {}); 792 | })("versions", []).push({ 793 | version: core.version, 794 | mode: __webpack_require__("2d00") ? "pure" : "global", 795 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 796 | }); 797 | 798 | /***/ 799 | }, 800 | 801 | /***/ "5559": /***/ function(module, exports, __webpack_require__) { 802 | var shared = __webpack_require__("dbdb")("keys"); 803 | var uid = __webpack_require__("62a0"); 804 | module.exports = function(key) { 805 | return shared[key] || (shared[key] = uid(key)); 806 | }; 807 | 808 | /***/ 809 | }, 810 | 811 | /***/ "584a": /***/ function(module, exports) { 812 | var core = (module.exports = { version: "2.6.5" }); 813 | if (typeof __e == "number") __e = core; // eslint-disable-line no-undef 814 | 815 | /***/ 816 | }, 817 | 818 | /***/ "5b4e": /***/ function(module, exports, __webpack_require__) { 819 | // false -> Array#indexOf 820 | // true -> Array#includes 821 | var toIObject = __webpack_require__("36c3"); 822 | var toLength = __webpack_require__("b447"); 823 | var toAbsoluteIndex = __webpack_require__("0fc9"); 824 | module.exports = function(IS_INCLUDES) { 825 | return function($this, el, fromIndex) { 826 | var O = toIObject($this); 827 | var length = toLength(O.length); 828 | var index = toAbsoluteIndex(fromIndex, length); 829 | var value; 830 | // Array#includes uses SameValueZero equality algorithm 831 | // eslint-disable-next-line no-self-compare 832 | if (IS_INCLUDES && el != el) 833 | while (length > index) { 834 | value = O[index++]; 835 | // eslint-disable-next-line no-self-compare 836 | if (value != value) return true; 837 | // Array#indexOf ignores holes, Array#includes - not 838 | } 839 | else 840 | for (; length > index; index++) 841 | if (IS_INCLUDES || index in O) { 842 | if (O[index] === el) return IS_INCLUDES || index || 0; 843 | } 844 | return !IS_INCLUDES && -1; 845 | }; 846 | }; 847 | 848 | /***/ 849 | }, 850 | 851 | /***/ "5ca1": /***/ function(module, exports, __webpack_require__) { 852 | var global = __webpack_require__("7726"); 853 | var core = __webpack_require__("8378"); 854 | var hide = __webpack_require__("32e9"); 855 | var redefine = __webpack_require__("2aba"); 856 | var ctx = __webpack_require__("9b43"); 857 | var PROTOTYPE = "prototype"; 858 | 859 | var $export = function(type, name, source) { 860 | var IS_FORCED = type & $export.F; 861 | var IS_GLOBAL = type & $export.G; 862 | var IS_STATIC = type & $export.S; 863 | var IS_PROTO = type & $export.P; 864 | var IS_BIND = type & $export.B; 865 | var target = IS_GLOBAL 866 | ? global 867 | : IS_STATIC 868 | ? global[name] || (global[name] = {}) 869 | : (global[name] || {})[PROTOTYPE]; 870 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 871 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 872 | var key, own, out, exp; 873 | if (IS_GLOBAL) source = name; 874 | for (key in source) { 875 | // contains in native 876 | own = !IS_FORCED && target && target[key] !== undefined; 877 | // export native or passed 878 | out = (own ? target : source)[key]; 879 | // bind timers to global for call from export context 880 | exp = 881 | IS_BIND && own 882 | ? ctx(out, global) 883 | : IS_PROTO && typeof out == "function" 884 | ? ctx(Function.call, out) 885 | : out; 886 | // extend global 887 | if (target) redefine(target, key, out, type & $export.U); 888 | // export 889 | if (exports[key] != out) hide(exports, key, exp); 890 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 891 | } 892 | }; 893 | global.core = core; 894 | // type bitmap 895 | $export.F = 1; // forced 896 | $export.G = 2; // global 897 | $export.S = 4; // static 898 | $export.P = 8; // proto 899 | $export.B = 16; // bind 900 | $export.W = 32; // wrap 901 | $export.U = 64; // safe 902 | $export.R = 128; // real proto method for `library` 903 | module.exports = $export; 904 | 905 | /***/ 906 | }, 907 | 908 | /***/ "5dbc": /***/ function(module, exports, __webpack_require__) { 909 | var isObject = __webpack_require__("d3f4"); 910 | var setPrototypeOf = __webpack_require__("8b97").set; 911 | module.exports = function(that, target, C) { 912 | var S = target.constructor; 913 | var P; 914 | if ( 915 | S !== C && 916 | typeof S == "function" && 917 | (P = S.prototype) !== C.prototype && 918 | isObject(P) && 919 | setPrototypeOf 920 | ) { 921 | setPrototypeOf(that, P); 922 | } 923 | return that; 924 | }; 925 | 926 | /***/ 927 | }, 928 | 929 | /***/ "613b": /***/ function(module, exports, __webpack_require__) { 930 | var shared = __webpack_require__("5537")("keys"); 931 | var uid = __webpack_require__("ca5a"); 932 | module.exports = function(key) { 933 | return shared[key] || (shared[key] = uid(key)); 934 | }; 935 | 936 | /***/ 937 | }, 938 | 939 | /***/ "626a": /***/ function(module, exports, __webpack_require__) { 940 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 941 | var cof = __webpack_require__("2d95"); 942 | // eslint-disable-next-line no-prototype-builtins 943 | module.exports = Object("z").propertyIsEnumerable(0) 944 | ? Object 945 | : function(it) { 946 | return cof(it) == "String" ? it.split("") : Object(it); 947 | }; 948 | 949 | /***/ 950 | }, 951 | 952 | /***/ "62a0": /***/ function(module, exports) { 953 | var id = 0; 954 | var px = Math.random(); 955 | module.exports = function(key) { 956 | return "Symbol(".concat( 957 | key === undefined ? "" : key, 958 | ")_", 959 | (++id + px).toString(36) 960 | ); 961 | }; 962 | 963 | /***/ 964 | }, 965 | 966 | /***/ "63b6": /***/ function(module, exports, __webpack_require__) { 967 | var global = __webpack_require__("e53d"); 968 | var core = __webpack_require__("584a"); 969 | var ctx = __webpack_require__("d864"); 970 | var hide = __webpack_require__("35e8"); 971 | var has = __webpack_require__("07e3"); 972 | var PROTOTYPE = "prototype"; 973 | 974 | var $export = function(type, name, source) { 975 | var IS_FORCED = type & $export.F; 976 | var IS_GLOBAL = type & $export.G; 977 | var IS_STATIC = type & $export.S; 978 | var IS_PROTO = type & $export.P; 979 | var IS_BIND = type & $export.B; 980 | var IS_WRAP = type & $export.W; 981 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 982 | var expProto = exports[PROTOTYPE]; 983 | var target = IS_GLOBAL 984 | ? global 985 | : IS_STATIC 986 | ? global[name] 987 | : (global[name] || {})[PROTOTYPE]; 988 | var key, own, out; 989 | if (IS_GLOBAL) source = name; 990 | for (key in source) { 991 | // contains in native 992 | own = !IS_FORCED && target && target[key] !== undefined; 993 | if (own && has(exports, key)) continue; 994 | // export native or passed 995 | out = own ? target[key] : source[key]; 996 | // prevent global pollution for namespaces 997 | exports[key] = 998 | IS_GLOBAL && typeof target[key] != "function" 999 | ? source[key] 1000 | : // bind timers to global for call from export context 1001 | IS_BIND && own 1002 | ? ctx(out, global) 1003 | : // wrap global constructors for prevent change them in library 1004 | IS_WRAP && target[key] == out 1005 | ? (function(C) { 1006 | var F = function(a, b, c) { 1007 | if (this instanceof C) { 1008 | switch (arguments.length) { 1009 | case 0: 1010 | return new C(); 1011 | case 1: 1012 | return new C(a); 1013 | case 2: 1014 | return new C(a, b); 1015 | } 1016 | return new C(a, b, c); 1017 | } 1018 | return C.apply(this, arguments); 1019 | }; 1020 | F[PROTOTYPE] = C[PROTOTYPE]; 1021 | return F; 1022 | // make static versions for prototype methods 1023 | })(out) 1024 | : IS_PROTO && typeof out == "function" 1025 | ? ctx(Function.call, out) 1026 | : out; 1027 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1028 | if (IS_PROTO) { 1029 | (exports.virtual || (exports.virtual = {}))[key] = out; 1030 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1031 | if (type & $export.R && expProto && !expProto[key]) 1032 | hide(expProto, key, out); 1033 | } 1034 | } 1035 | }; 1036 | // type bitmap 1037 | $export.F = 1; // forced 1038 | $export.G = 2; // global 1039 | $export.S = 4; // static 1040 | $export.P = 8; // proto 1041 | $export.B = 16; // bind 1042 | $export.W = 32; // wrap 1043 | $export.U = 64; // safe 1044 | $export.R = 128; // real proto method for `library` 1045 | module.exports = $export; 1046 | 1047 | /***/ 1048 | }, 1049 | 1050 | /***/ "6762": /***/ function(module, exports, __webpack_require__) { 1051 | "use strict"; 1052 | 1053 | // https://github.com/tc39/Array.prototype.includes 1054 | var $export = __webpack_require__("5ca1"); 1055 | var $includes = __webpack_require__("c366")(true); 1056 | 1057 | $export($export.P, "Array", { 1058 | includes: function includes(el /* , fromIndex = 0 */) { 1059 | return $includes( 1060 | this, 1061 | el, 1062 | arguments.length > 1 ? arguments[1] : undefined 1063 | ); 1064 | } 1065 | }); 1066 | 1067 | __webpack_require__("9c6c")("includes"); 1068 | 1069 | /***/ 1070 | }, 1071 | 1072 | /***/ "6821": /***/ function(module, exports, __webpack_require__) { 1073 | // to indexed object, toObject with fallback for non-array-like ES3 strings 1074 | var IObject = __webpack_require__("626a"); 1075 | var defined = __webpack_require__("be13"); 1076 | module.exports = function(it) { 1077 | return IObject(defined(it)); 1078 | }; 1079 | 1080 | /***/ 1081 | }, 1082 | 1083 | /***/ "69a8": /***/ function(module, exports) { 1084 | var hasOwnProperty = {}.hasOwnProperty; 1085 | module.exports = function(it, key) { 1086 | return hasOwnProperty.call(it, key); 1087 | }; 1088 | 1089 | /***/ 1090 | }, 1091 | 1092 | /***/ "6a99": /***/ function(module, exports, __webpack_require__) { 1093 | // 7.1.1 ToPrimitive(input [, PreferredType]) 1094 | var isObject = __webpack_require__("d3f4"); 1095 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1096 | // and the second argument - flag - preferred type is a string 1097 | module.exports = function(it, S) { 1098 | if (!isObject(it)) return it; 1099 | var fn, val; 1100 | if ( 1101 | S && 1102 | typeof (fn = it.toString) == "function" && 1103 | !isObject((val = fn.call(it))) 1104 | ) 1105 | return val; 1106 | if ( 1107 | typeof (fn = it.valueOf) == "function" && 1108 | !isObject((val = fn.call(it))) 1109 | ) 1110 | return val; 1111 | if ( 1112 | !S && 1113 | typeof (fn = it.toString) == "function" && 1114 | !isObject((val = fn.call(it))) 1115 | ) 1116 | return val; 1117 | throw TypeError("Can't convert object to primitive value"); 1118 | }; 1119 | 1120 | /***/ 1121 | }, 1122 | 1123 | /***/ "6b4c": /***/ function(module, exports) { 1124 | var toString = {}.toString; 1125 | 1126 | module.exports = function(it) { 1127 | return toString.call(it).slice(8, -1); 1128 | }; 1129 | 1130 | /***/ 1131 | }, 1132 | 1133 | /***/ "7726": /***/ function(module, exports) { 1134 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1135 | var global = (module.exports = 1136 | typeof window != "undefined" && window.Math == Math 1137 | ? window 1138 | : typeof self != "undefined" && self.Math == Math 1139 | ? self 1140 | : // eslint-disable-next-line no-new-func 1141 | Function("return this")()); 1142 | if (typeof __g == "number") __g = global; // eslint-disable-line no-undef 1143 | 1144 | /***/ 1145 | }, 1146 | 1147 | /***/ "77f1": /***/ function(module, exports, __webpack_require__) { 1148 | var toInteger = __webpack_require__("4588"); 1149 | var max = Math.max; 1150 | var min = Math.min; 1151 | module.exports = function(index, length) { 1152 | index = toInteger(index); 1153 | return index < 0 ? max(index + length, 0) : min(index, length); 1154 | }; 1155 | 1156 | /***/ 1157 | }, 1158 | 1159 | /***/ "794b": /***/ function(module, exports, __webpack_require__) { 1160 | module.exports = 1161 | !__webpack_require__("8e60") && 1162 | !__webpack_require__("294c")(function() { 1163 | return ( 1164 | Object.defineProperty(__webpack_require__("1ec9")("div"), "a", { 1165 | get: function() { 1166 | return 7; 1167 | } 1168 | }).a != 7 1169 | ); 1170 | }); 1171 | 1172 | /***/ 1173 | }, 1174 | 1175 | /***/ "79aa": /***/ function(module, exports) { 1176 | module.exports = function(it) { 1177 | if (typeof it != "function") 1178 | throw TypeError(it + " is not a function!"); 1179 | return it; 1180 | }; 1181 | 1182 | /***/ 1183 | }, 1184 | 1185 | /***/ "79e5": /***/ function(module, exports) { 1186 | module.exports = function(exec) { 1187 | try { 1188 | return !!exec(); 1189 | } catch (e) { 1190 | return true; 1191 | } 1192 | }; 1193 | 1194 | /***/ 1195 | }, 1196 | 1197 | /***/ "7c06": /***/ function(module, exports) { 1198 | module.exports = __WEBPACK_EXTERNAL_MODULE__7c06__; 1199 | 1200 | /***/ 1201 | }, 1202 | 1203 | /***/ "7f20": /***/ function(module, exports, __webpack_require__) { 1204 | var def = __webpack_require__("86cc").f; 1205 | var has = __webpack_require__("69a8"); 1206 | var TAG = __webpack_require__("2b4c")("toStringTag"); 1207 | 1208 | module.exports = function(it, tag, stat) { 1209 | if (it && !has((it = stat ? it : it.prototype), TAG)) 1210 | def(it, TAG, { configurable: true, value: tag }); 1211 | }; 1212 | 1213 | /***/ 1214 | }, 1215 | 1216 | /***/ "8378": /***/ function(module, exports) { 1217 | var core = (module.exports = { version: "2.6.5" }); 1218 | if (typeof __e == "number") __e = core; // eslint-disable-line no-undef 1219 | 1220 | /***/ 1221 | }, 1222 | 1223 | /***/ "84f2": /***/ function(module, exports) { 1224 | module.exports = {}; 1225 | 1226 | /***/ 1227 | }, 1228 | 1229 | /***/ "86cc": /***/ function(module, exports, __webpack_require__) { 1230 | var anObject = __webpack_require__("cb7c"); 1231 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 1232 | var toPrimitive = __webpack_require__("6a99"); 1233 | var dP = Object.defineProperty; 1234 | 1235 | exports.f = __webpack_require__("9e1e") 1236 | ? Object.defineProperty 1237 | : function defineProperty(O, P, Attributes) { 1238 | anObject(O); 1239 | P = toPrimitive(P, true); 1240 | anObject(Attributes); 1241 | if (IE8_DOM_DEFINE) 1242 | try { 1243 | return dP(O, P, Attributes); 1244 | } catch (e) { 1245 | /* empty */ 1246 | } 1247 | if ("get" in Attributes || "set" in Attributes) 1248 | throw TypeError("Accessors not supported!"); 1249 | if ("value" in Attributes) O[P] = Attributes.value; 1250 | return O; 1251 | }; 1252 | 1253 | /***/ 1254 | }, 1255 | 1256 | /***/ "8aae": /***/ function(module, exports, __webpack_require__) { 1257 | __webpack_require__("32a6"); 1258 | module.exports = __webpack_require__("584a").Object.keys; 1259 | 1260 | /***/ 1261 | }, 1262 | 1263 | /***/ "8b97": /***/ function(module, exports, __webpack_require__) { 1264 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1265 | /* eslint-disable no-proto */ 1266 | var isObject = __webpack_require__("d3f4"); 1267 | var anObject = __webpack_require__("cb7c"); 1268 | var check = function(O, proto) { 1269 | anObject(O); 1270 | if (!isObject(proto) && proto !== null) 1271 | throw TypeError(proto + ": can't set as prototype!"); 1272 | }; 1273 | module.exports = { 1274 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1275 | ? (function(test, buggy, set) { 1276 | try { 1277 | set = __webpack_require__("9b43")( 1278 | Function.call, 1279 | __webpack_require__("11e9").f( 1280 | Object.prototype, 1281 | "__proto__" 1282 | ).set, 1283 | 2 1284 | ); 1285 | set(test, []); 1286 | buggy = !(test instanceof Array); 1287 | } catch (e) { 1288 | buggy = true; 1289 | } 1290 | return function setPrototypeOf(O, proto) { 1291 | check(O, proto); 1292 | if (buggy) O.__proto__ = proto; 1293 | else set(O, proto); 1294 | return O; 1295 | }; 1296 | })({}, false) 1297 | : undefined), 1298 | check: check 1299 | }; 1300 | 1301 | /***/ 1302 | }, 1303 | 1304 | /***/ "8e60": /***/ function(module, exports, __webpack_require__) { 1305 | // Thank's IE8 for his funny defineProperty 1306 | module.exports = !__webpack_require__("294c")(function() { 1307 | return ( 1308 | Object.defineProperty({}, "a", { 1309 | get: function() { 1310 | return 7; 1311 | } 1312 | }).a != 7 1313 | ); 1314 | }); 1315 | 1316 | /***/ 1317 | }, 1318 | 1319 | /***/ "9093": /***/ function(module, exports, __webpack_require__) { 1320 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1321 | var $keys = __webpack_require__("ce10"); 1322 | var hiddenKeys = __webpack_require__("e11e").concat( 1323 | "length", 1324 | "prototype" 1325 | ); 1326 | 1327 | exports.f = 1328 | Object.getOwnPropertyNames || 1329 | function getOwnPropertyNames(O) { 1330 | return $keys(O, hiddenKeys); 1331 | }; 1332 | 1333 | /***/ 1334 | }, 1335 | 1336 | /***/ "9b43": /***/ function(module, exports, __webpack_require__) { 1337 | // optional / simple context binding 1338 | var aFunction = __webpack_require__("d8e8"); 1339 | module.exports = function(fn, that, length) { 1340 | aFunction(fn); 1341 | if (that === undefined) return fn; 1342 | switch (length) { 1343 | case 1: 1344 | return function(a) { 1345 | return fn.call(that, a); 1346 | }; 1347 | case 2: 1348 | return function(a, b) { 1349 | return fn.call(that, a, b); 1350 | }; 1351 | case 3: 1352 | return function(a, b, c) { 1353 | return fn.call(that, a, b, c); 1354 | }; 1355 | } 1356 | return function(/* ...args */) { 1357 | return fn.apply(that, arguments); 1358 | }; 1359 | }; 1360 | 1361 | /***/ 1362 | }, 1363 | 1364 | /***/ "9c6c": /***/ function(module, exports, __webpack_require__) { 1365 | // 22.1.3.31 Array.prototype[@@unscopables] 1366 | var UNSCOPABLES = __webpack_require__("2b4c")("unscopables"); 1367 | var ArrayProto = Array.prototype; 1368 | if (ArrayProto[UNSCOPABLES] == undefined) 1369 | __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {}); 1370 | module.exports = function(key) { 1371 | ArrayProto[UNSCOPABLES][key] = true; 1372 | }; 1373 | 1374 | /***/ 1375 | }, 1376 | 1377 | /***/ "9def": /***/ function(module, exports, __webpack_require__) { 1378 | // 7.1.15 ToLength 1379 | var toInteger = __webpack_require__("4588"); 1380 | var min = Math.min; 1381 | module.exports = function(it) { 1382 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1383 | }; 1384 | 1385 | /***/ 1386 | }, 1387 | 1388 | /***/ "9e1e": /***/ function(module, exports, __webpack_require__) { 1389 | // Thank's IE8 for his funny defineProperty 1390 | module.exports = !__webpack_require__("79e5")(function() { 1391 | return ( 1392 | Object.defineProperty({}, "a", { 1393 | get: function() { 1394 | return 7; 1395 | } 1396 | }).a != 7 1397 | ); 1398 | }); 1399 | 1400 | /***/ 1401 | }, 1402 | 1403 | /***/ a4bb: /***/ function(module, exports, __webpack_require__) { 1404 | module.exports = __webpack_require__("8aae"); 1405 | 1406 | /***/ 1407 | }, 1408 | 1409 | /***/ aa77: /***/ function(module, exports, __webpack_require__) { 1410 | var $export = __webpack_require__("5ca1"); 1411 | var defined = __webpack_require__("be13"); 1412 | var fails = __webpack_require__("79e5"); 1413 | var spaces = __webpack_require__("fdef"); 1414 | var space = "[" + spaces + "]"; 1415 | var non = "\u200b\u0085"; 1416 | var ltrim = RegExp("^" + space + space + "*"); 1417 | var rtrim = RegExp(space + space + "*$"); 1418 | 1419 | var exporter = function(KEY, exec, ALIAS) { 1420 | var exp = {}; 1421 | var FORCE = fails(function() { 1422 | return !!spaces[KEY]() || non[KEY]() != non; 1423 | }); 1424 | var fn = (exp[KEY] = FORCE ? exec(trim) : spaces[KEY]); 1425 | if (ALIAS) exp[ALIAS] = fn; 1426 | $export($export.P + $export.F * FORCE, "String", exp); 1427 | }; 1428 | 1429 | // 1 -> String#trimLeft 1430 | // 2 -> String#trimRight 1431 | // 3 -> String#trim 1432 | var trim = (exporter.trim = function(string, TYPE) { 1433 | string = String(defined(string)); 1434 | if (TYPE & 1) string = string.replace(ltrim, ""); 1435 | if (TYPE & 2) string = string.replace(rtrim, ""); 1436 | return string; 1437 | }); 1438 | 1439 | module.exports = exporter; 1440 | 1441 | /***/ 1442 | }, 1443 | 1444 | /***/ aae3: /***/ function(module, exports, __webpack_require__) { 1445 | // 7.2.8 IsRegExp(argument) 1446 | var isObject = __webpack_require__("d3f4"); 1447 | var cof = __webpack_require__("2d95"); 1448 | var MATCH = __webpack_require__("2b4c")("match"); 1449 | module.exports = function(it) { 1450 | var isRegExp; 1451 | return ( 1452 | isObject(it) && 1453 | ((isRegExp = it[MATCH]) !== undefined 1454 | ? !!isRegExp 1455 | : cof(it) == "RegExp") 1456 | ); 1457 | }; 1458 | 1459 | /***/ 1460 | }, 1461 | 1462 | /***/ ac6a: /***/ function(module, exports, __webpack_require__) { 1463 | var $iterators = __webpack_require__("cadf"); 1464 | var getKeys = __webpack_require__("0d58"); 1465 | var redefine = __webpack_require__("2aba"); 1466 | var global = __webpack_require__("7726"); 1467 | var hide = __webpack_require__("32e9"); 1468 | var Iterators = __webpack_require__("84f2"); 1469 | var wks = __webpack_require__("2b4c"); 1470 | var ITERATOR = wks("iterator"); 1471 | var TO_STRING_TAG = wks("toStringTag"); 1472 | var ArrayValues = Iterators.Array; 1473 | 1474 | var DOMIterables = { 1475 | CSSRuleList: true, // TODO: Not spec compliant, should be false. 1476 | CSSStyleDeclaration: false, 1477 | CSSValueList: false, 1478 | ClientRectList: false, 1479 | DOMRectList: false, 1480 | DOMStringList: false, 1481 | DOMTokenList: true, 1482 | DataTransferItemList: false, 1483 | FileList: false, 1484 | HTMLAllCollection: false, 1485 | HTMLCollection: false, 1486 | HTMLFormElement: false, 1487 | HTMLSelectElement: false, 1488 | MediaList: true, // TODO: Not spec compliant, should be false. 1489 | MimeTypeArray: false, 1490 | NamedNodeMap: false, 1491 | NodeList: true, 1492 | PaintRequestList: false, 1493 | Plugin: false, 1494 | PluginArray: false, 1495 | SVGLengthList: false, 1496 | SVGNumberList: false, 1497 | SVGPathSegList: false, 1498 | SVGPointList: false, 1499 | SVGStringList: false, 1500 | SVGTransformList: false, 1501 | SourceBufferList: false, 1502 | StyleSheetList: true, // TODO: Not spec compliant, should be false. 1503 | TextTrackCueList: false, 1504 | TextTrackList: false, 1505 | TouchList: false 1506 | }; 1507 | 1508 | for ( 1509 | var collections = getKeys(DOMIterables), i = 0; 1510 | i < collections.length; 1511 | i++ 1512 | ) { 1513 | var NAME = collections[i]; 1514 | var explicit = DOMIterables[NAME]; 1515 | var Collection = global[NAME]; 1516 | var proto = Collection && Collection.prototype; 1517 | var key; 1518 | if (proto) { 1519 | if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); 1520 | if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 1521 | Iterators[NAME] = ArrayValues; 1522 | if (explicit) 1523 | for (key in $iterators) 1524 | if (!proto[key]) redefine(proto, key, $iterators[key], true); 1525 | } 1526 | } 1527 | 1528 | /***/ 1529 | }, 1530 | 1531 | /***/ aebd: /***/ function(module, exports) { 1532 | module.exports = function(bitmap, value) { 1533 | return { 1534 | enumerable: !(bitmap & 1), 1535 | configurable: !(bitmap & 2), 1536 | writable: !(bitmap & 4), 1537 | value: value 1538 | }; 1539 | }; 1540 | 1541 | /***/ 1542 | }, 1543 | 1544 | /***/ b447: /***/ function(module, exports, __webpack_require__) { 1545 | // 7.1.15 ToLength 1546 | var toInteger = __webpack_require__("3a38"); 1547 | var min = Math.min; 1548 | module.exports = function(it) { 1549 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1550 | }; 1551 | 1552 | /***/ 1553 | }, 1554 | 1555 | /***/ b8e3: /***/ function(module, exports) { 1556 | module.exports = true; 1557 | 1558 | /***/ 1559 | }, 1560 | 1561 | /***/ be13: /***/ function(module, exports) { 1562 | // 7.2.1 RequireObjectCoercible(argument) 1563 | module.exports = function(it) { 1564 | if (it == undefined) throw TypeError("Can't call method on " + it); 1565 | return it; 1566 | }; 1567 | 1568 | /***/ 1569 | }, 1570 | 1571 | /***/ c366: /***/ function(module, exports, __webpack_require__) { 1572 | // false -> Array#indexOf 1573 | // true -> Array#includes 1574 | var toIObject = __webpack_require__("6821"); 1575 | var toLength = __webpack_require__("9def"); 1576 | var toAbsoluteIndex = __webpack_require__("77f1"); 1577 | module.exports = function(IS_INCLUDES) { 1578 | return function($this, el, fromIndex) { 1579 | var O = toIObject($this); 1580 | var length = toLength(O.length); 1581 | var index = toAbsoluteIndex(fromIndex, length); 1582 | var value; 1583 | // Array#includes uses SameValueZero equality algorithm 1584 | // eslint-disable-next-line no-self-compare 1585 | if (IS_INCLUDES && el != el) 1586 | while (length > index) { 1587 | value = O[index++]; 1588 | // eslint-disable-next-line no-self-compare 1589 | if (value != value) return true; 1590 | // Array#indexOf ignores holes, Array#includes - not 1591 | } 1592 | else 1593 | for (; length > index; index++) 1594 | if (IS_INCLUDES || index in O) { 1595 | if (O[index] === el) return IS_INCLUDES || index || 0; 1596 | } 1597 | return !IS_INCLUDES && -1; 1598 | }; 1599 | }; 1600 | 1601 | /***/ 1602 | }, 1603 | 1604 | /***/ c3a1: /***/ function(module, exports, __webpack_require__) { 1605 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1606 | var $keys = __webpack_require__("e6f3"); 1607 | var enumBugKeys = __webpack_require__("1691"); 1608 | 1609 | module.exports = 1610 | Object.keys || 1611 | function keys(O) { 1612 | return $keys(O, enumBugKeys); 1613 | }; 1614 | 1615 | /***/ 1616 | }, 1617 | 1618 | /***/ c5f6: /***/ function(module, exports, __webpack_require__) { 1619 | "use strict"; 1620 | 1621 | var global = __webpack_require__("7726"); 1622 | var has = __webpack_require__("69a8"); 1623 | var cof = __webpack_require__("2d95"); 1624 | var inheritIfRequired = __webpack_require__("5dbc"); 1625 | var toPrimitive = __webpack_require__("6a99"); 1626 | var fails = __webpack_require__("79e5"); 1627 | var gOPN = __webpack_require__("9093").f; 1628 | var gOPD = __webpack_require__("11e9").f; 1629 | var dP = __webpack_require__("86cc").f; 1630 | var $trim = __webpack_require__("aa77").trim; 1631 | var NUMBER = "Number"; 1632 | var $Number = global[NUMBER]; 1633 | var Base = $Number; 1634 | var proto = $Number.prototype; 1635 | // Opera ~12 has broken Object#toString 1636 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; 1637 | var TRIM = "trim" in String.prototype; 1638 | 1639 | // 7.1.3 ToNumber(argument) 1640 | var toNumber = function(argument) { 1641 | var it = toPrimitive(argument, false); 1642 | if (typeof it == "string" && it.length > 2) { 1643 | it = TRIM ? it.trim() : $trim(it, 3); 1644 | var first = it.charCodeAt(0); 1645 | var third, radix, maxCode; 1646 | if (first === 43 || first === 45) { 1647 | third = it.charCodeAt(2); 1648 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 1649 | } else if (first === 48) { 1650 | switch (it.charCodeAt(1)) { 1651 | case 66: 1652 | case 98: 1653 | radix = 2; 1654 | maxCode = 49; 1655 | break; // fast equal /^0b[01]+$/i 1656 | case 79: 1657 | case 111: 1658 | radix = 8; 1659 | maxCode = 55; 1660 | break; // fast equal /^0o[0-7]+$/i 1661 | default: 1662 | return +it; 1663 | } 1664 | for ( 1665 | var digits = it.slice(2), i = 0, l = digits.length, code; 1666 | i < l; 1667 | i++ 1668 | ) { 1669 | code = digits.charCodeAt(i); 1670 | // parseInt parses a string to a first unavailable symbol 1671 | // but ToNumber should return NaN if a string contains unavailable symbols 1672 | if (code < 48 || code > maxCode) return NaN; 1673 | } 1674 | return parseInt(digits, radix); 1675 | } 1676 | } 1677 | return +it; 1678 | }; 1679 | 1680 | if (!$Number(" 0o1") || !$Number("0b1") || $Number("+0x1")) { 1681 | $Number = function Number(value) { 1682 | var it = arguments.length < 1 ? 0 : value; 1683 | var that = this; 1684 | return that instanceof $Number && 1685 | // check on 1..constructor(foo) case 1686 | (BROKEN_COF 1687 | ? fails(function() { 1688 | proto.valueOf.call(that); 1689 | }) 1690 | : cof(that) != NUMBER) 1691 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) 1692 | : toNumber(it); 1693 | }; 1694 | for ( 1695 | var keys = __webpack_require__("9e1e") 1696 | ? gOPN(Base) 1697 | : // ES3: 1698 | ( 1699 | "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY," + 1700 | // ES6 (in case, if modules with ES6 Number statics required before): 1701 | "EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER," + 1702 | "MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger" 1703 | ).split(","), 1704 | j = 0, 1705 | key; 1706 | keys.length > j; 1707 | j++ 1708 | ) { 1709 | if (has(Base, (key = keys[j])) && !has($Number, key)) { 1710 | dP($Number, key, gOPD(Base, key)); 1711 | } 1712 | } 1713 | $Number.prototype = proto; 1714 | proto.constructor = $Number; 1715 | __webpack_require__("2aba")(global, NUMBER, $Number); 1716 | } 1717 | 1718 | /***/ 1719 | }, 1720 | 1721 | /***/ c69a: /***/ function(module, exports, __webpack_require__) { 1722 | module.exports = 1723 | !__webpack_require__("9e1e") && 1724 | !__webpack_require__("79e5")(function() { 1725 | return ( 1726 | Object.defineProperty(__webpack_require__("230e")("div"), "a", { 1727 | get: function() { 1728 | return 7; 1729 | } 1730 | }).a != 7 1731 | ); 1732 | }); 1733 | 1734 | /***/ 1735 | }, 1736 | 1737 | /***/ ca5a: /***/ function(module, exports) { 1738 | var id = 0; 1739 | var px = Math.random(); 1740 | module.exports = function(key) { 1741 | return "Symbol(".concat( 1742 | key === undefined ? "" : key, 1743 | ")_", 1744 | (++id + px).toString(36) 1745 | ); 1746 | }; 1747 | 1748 | /***/ 1749 | }, 1750 | 1751 | /***/ cadf: /***/ function(module, exports, __webpack_require__) { 1752 | "use strict"; 1753 | 1754 | var addToUnscopables = __webpack_require__("9c6c"); 1755 | var step = __webpack_require__("d53b"); 1756 | var Iterators = __webpack_require__("84f2"); 1757 | var toIObject = __webpack_require__("6821"); 1758 | 1759 | // 22.1.3.4 Array.prototype.entries() 1760 | // 22.1.3.13 Array.prototype.keys() 1761 | // 22.1.3.29 Array.prototype.values() 1762 | // 22.1.3.30 Array.prototype[@@iterator]() 1763 | module.exports = __webpack_require__("01f9")( 1764 | Array, 1765 | "Array", 1766 | function(iterated, kind) { 1767 | this._t = toIObject(iterated); // target 1768 | this._i = 0; // next index 1769 | this._k = kind; // kind 1770 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1771 | }, 1772 | function() { 1773 | var O = this._t; 1774 | var kind = this._k; 1775 | var index = this._i++; 1776 | if (!O || index >= O.length) { 1777 | this._t = undefined; 1778 | return step(1); 1779 | } 1780 | if (kind == "keys") return step(0, index); 1781 | if (kind == "values") return step(0, O[index]); 1782 | return step(0, [index, O[index]]); 1783 | }, 1784 | "values" 1785 | ); 1786 | 1787 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1788 | Iterators.Arguments = Iterators.Array; 1789 | 1790 | addToUnscopables("keys"); 1791 | addToUnscopables("values"); 1792 | addToUnscopables("entries"); 1793 | 1794 | /***/ 1795 | }, 1796 | 1797 | /***/ cb7c: /***/ function(module, exports, __webpack_require__) { 1798 | var isObject = __webpack_require__("d3f4"); 1799 | module.exports = function(it) { 1800 | if (!isObject(it)) throw TypeError(it + " is not an object!"); 1801 | return it; 1802 | }; 1803 | 1804 | /***/ 1805 | }, 1806 | 1807 | /***/ ce10: /***/ function(module, exports, __webpack_require__) { 1808 | var has = __webpack_require__("69a8"); 1809 | var toIObject = __webpack_require__("6821"); 1810 | var arrayIndexOf = __webpack_require__("c366")(false); 1811 | var IE_PROTO = __webpack_require__("613b")("IE_PROTO"); 1812 | 1813 | module.exports = function(object, names) { 1814 | var O = toIObject(object); 1815 | var i = 0; 1816 | var result = []; 1817 | var key; 1818 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1819 | // Don't enum bug & hidden keys 1820 | while (names.length > i) 1821 | if (has(O, (key = names[i++]))) { 1822 | ~arrayIndexOf(result, key) || result.push(key); 1823 | } 1824 | return result; 1825 | }; 1826 | 1827 | /***/ 1828 | }, 1829 | 1830 | /***/ ce7e: /***/ function(module, exports, __webpack_require__) { 1831 | // most Object methods by ES6 should accept primitives 1832 | var $export = __webpack_require__("63b6"); 1833 | var core = __webpack_require__("584a"); 1834 | var fails = __webpack_require__("294c"); 1835 | module.exports = function(KEY, exec) { 1836 | var fn = (core.Object || {})[KEY] || Object[KEY]; 1837 | var exp = {}; 1838 | exp[KEY] = exec(fn); 1839 | $export( 1840 | $export.S + 1841 | $export.F * 1842 | fails(function() { 1843 | fn(1); 1844 | }), 1845 | "Object", 1846 | exp 1847 | ); 1848 | }; 1849 | 1850 | /***/ 1851 | }, 1852 | 1853 | /***/ d2c8: /***/ function(module, exports, __webpack_require__) { 1854 | // helper for String#{startsWith, endsWith, includes} 1855 | var isRegExp = __webpack_require__("aae3"); 1856 | var defined = __webpack_require__("be13"); 1857 | 1858 | module.exports = function(that, searchString, NAME) { 1859 | if (isRegExp(searchString)) 1860 | throw TypeError("String#" + NAME + " doesn't accept regex!"); 1861 | return String(defined(that)); 1862 | }; 1863 | 1864 | /***/ 1865 | }, 1866 | 1867 | /***/ d3f4: /***/ function(module, exports) { 1868 | module.exports = function(it) { 1869 | return typeof it === "object" 1870 | ? it !== null 1871 | : typeof it === "function"; 1872 | }; 1873 | 1874 | /***/ 1875 | }, 1876 | 1877 | /***/ d53b: /***/ function(module, exports) { 1878 | module.exports = function(done, value) { 1879 | return { value: value, done: !!done }; 1880 | }; 1881 | 1882 | /***/ 1883 | }, 1884 | 1885 | /***/ d864: /***/ function(module, exports, __webpack_require__) { 1886 | // optional / simple context binding 1887 | var aFunction = __webpack_require__("79aa"); 1888 | module.exports = function(fn, that, length) { 1889 | aFunction(fn); 1890 | if (that === undefined) return fn; 1891 | switch (length) { 1892 | case 1: 1893 | return function(a) { 1894 | return fn.call(that, a); 1895 | }; 1896 | case 2: 1897 | return function(a, b) { 1898 | return fn.call(that, a, b); 1899 | }; 1900 | case 3: 1901 | return function(a, b, c) { 1902 | return fn.call(that, a, b, c); 1903 | }; 1904 | } 1905 | return function(/* ...args */) { 1906 | return fn.apply(that, arguments); 1907 | }; 1908 | }; 1909 | 1910 | /***/ 1911 | }, 1912 | 1913 | /***/ d8e8: /***/ function(module, exports) { 1914 | module.exports = function(it) { 1915 | if (typeof it != "function") 1916 | throw TypeError(it + " is not a function!"); 1917 | return it; 1918 | }; 1919 | 1920 | /***/ 1921 | }, 1922 | 1923 | /***/ d9f6: /***/ function(module, exports, __webpack_require__) { 1924 | var anObject = __webpack_require__("e4ae"); 1925 | var IE8_DOM_DEFINE = __webpack_require__("794b"); 1926 | var toPrimitive = __webpack_require__("1bc3"); 1927 | var dP = Object.defineProperty; 1928 | 1929 | exports.f = __webpack_require__("8e60") 1930 | ? Object.defineProperty 1931 | : function defineProperty(O, P, Attributes) { 1932 | anObject(O); 1933 | P = toPrimitive(P, true); 1934 | anObject(Attributes); 1935 | if (IE8_DOM_DEFINE) 1936 | try { 1937 | return dP(O, P, Attributes); 1938 | } catch (e) { 1939 | /* empty */ 1940 | } 1941 | if ("get" in Attributes || "set" in Attributes) 1942 | throw TypeError("Accessors not supported!"); 1943 | if ("value" in Attributes) O[P] = Attributes.value; 1944 | return O; 1945 | }; 1946 | 1947 | /***/ 1948 | }, 1949 | 1950 | /***/ dbdb: /***/ function(module, exports, __webpack_require__) { 1951 | var core = __webpack_require__("584a"); 1952 | var global = __webpack_require__("e53d"); 1953 | var SHARED = "__core-js_shared__"; 1954 | var store = global[SHARED] || (global[SHARED] = {}); 1955 | 1956 | (module.exports = function(key, value) { 1957 | return store[key] || (store[key] = value !== undefined ? value : {}); 1958 | })("versions", []).push({ 1959 | version: core.version, 1960 | mode: __webpack_require__("b8e3") ? "pure" : "global", 1961 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 1962 | }); 1963 | 1964 | /***/ 1965 | }, 1966 | 1967 | /***/ e11e: /***/ function(module, exports) { 1968 | // IE 8- don't enum bug keys 1969 | module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 1970 | "," 1971 | ); 1972 | 1973 | /***/ 1974 | }, 1975 | 1976 | /***/ e4ae: /***/ function(module, exports, __webpack_require__) { 1977 | var isObject = __webpack_require__("f772"); 1978 | module.exports = function(it) { 1979 | if (!isObject(it)) throw TypeError(it + " is not an object!"); 1980 | return it; 1981 | }; 1982 | 1983 | /***/ 1984 | }, 1985 | 1986 | /***/ e53d: /***/ function(module, exports) { 1987 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1988 | var global = (module.exports = 1989 | typeof window != "undefined" && window.Math == Math 1990 | ? window 1991 | : typeof self != "undefined" && self.Math == Math 1992 | ? self 1993 | : // eslint-disable-next-line no-new-func 1994 | Function("return this")()); 1995 | if (typeof __g == "number") __g = global; // eslint-disable-line no-undef 1996 | 1997 | /***/ 1998 | }, 1999 | 2000 | /***/ e6f3: /***/ function(module, exports, __webpack_require__) { 2001 | var has = __webpack_require__("07e3"); 2002 | var toIObject = __webpack_require__("36c3"); 2003 | var arrayIndexOf = __webpack_require__("5b4e")(false); 2004 | var IE_PROTO = __webpack_require__("5559")("IE_PROTO"); 2005 | 2006 | module.exports = function(object, names) { 2007 | var O = toIObject(object); 2008 | var i = 0; 2009 | var result = []; 2010 | var key; 2011 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 2012 | // Don't enum bug & hidden keys 2013 | while (names.length > i) 2014 | if (has(O, (key = names[i++]))) { 2015 | ~arrayIndexOf(result, key) || result.push(key); 2016 | } 2017 | return result; 2018 | }; 2019 | 2020 | /***/ 2021 | }, 2022 | 2023 | /***/ f772: /***/ function(module, exports) { 2024 | module.exports = function(it) { 2025 | return typeof it === "object" 2026 | ? it !== null 2027 | : typeof it === "function"; 2028 | }; 2029 | 2030 | /***/ 2031 | }, 2032 | 2033 | /***/ fa5b: /***/ function(module, exports, __webpack_require__) { 2034 | module.exports = __webpack_require__("5537")( 2035 | "native-function-to-string", 2036 | Function.toString 2037 | ); 2038 | 2039 | /***/ 2040 | }, 2041 | 2042 | /***/ fab2: /***/ function(module, exports, __webpack_require__) { 2043 | var document = __webpack_require__("7726").document; 2044 | module.exports = document && document.documentElement; 2045 | 2046 | /***/ 2047 | }, 2048 | 2049 | /***/ fb15: /***/ function( 2050 | module, 2051 | __webpack_exports__, 2052 | __webpack_require__ 2053 | ) { 2054 | "use strict"; 2055 | __webpack_require__.r(__webpack_exports__); 2056 | 2057 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 2058 | // This file is imported into lib/wc client bundles. 2059 | 2060 | if (typeof window !== "undefined") { 2061 | var i; 2062 | if ( 2063 | (i = window.document.currentScript) && 2064 | (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)) 2065 | ) { 2066 | __webpack_require__.p = i[1] // eslint-disable-line 2067 | } 2068 | } 2069 | 2070 | // Indicate to webpack that this file can be concatenated 2071 | /* harmony default export */ var setPublicPath = null; 2072 | 2073 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js 2074 | var es7_array_includes = __webpack_require__("6762"); 2075 | 2076 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js 2077 | var es6_string_includes = __webpack_require__("2fdb"); 2078 | 2079 | // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 2080 | var web_dom_iterable = __webpack_require__("ac6a"); 2081 | 2082 | // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js 2083 | var keys = __webpack_require__("a4bb"); 2084 | var keys_default = /*#__PURE__*/ __webpack_require__.n(keys); 2085 | 2086 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js 2087 | var es6_number_constructor = __webpack_require__("c5f6"); 2088 | 2089 | // EXTERNAL MODULE: external {"commonjs":"@mapbox/mapbox-gl-geocoder","commonjs2":"@mapbox/mapbox-gl-geocoder","amd":"@mapbox/mapbox-gl-geocoder","root":"mapbox-gl-geocoder"} 2090 | var mapbox_gl_geocoder_root_mapbox_gl_geocoder_ = __webpack_require__( 2091 | "7c06" 2092 | ); 2093 | var mapbox_gl_geocoder_root_mapbox_gl_geocoder_default = /*#__PURE__*/ __webpack_require__.n( 2094 | mapbox_gl_geocoder_root_mapbox_gl_geocoder_ 2095 | ); 2096 | 2097 | // EXTERNAL MODULE: external {"commonjs":"vue-mapbox","commonjs2":"vue-mapbox","amd":"vue-mapbox","root":"vue-mapbox"} 2098 | var external_commonjs_vue_mapbox_commonjs2_vue_mapbox_amd_vue_mapbox_root_vue_mapbox_ = __webpack_require__( 2099 | "35be" 2100 | ); 2101 | 2102 | // CONCATENATED MODULE: ./src/GeocoderControl.js 2103 | 2104 | var geocoderEvents = { 2105 | clear: "clear", 2106 | loading: "loading", 2107 | results: "results", 2108 | result: "result", 2109 | error: "error" 2110 | }; 2111 | /* harmony default export */ var GeocoderControl = { 2112 | name: "GeocoderControl", 2113 | mixins: [ 2114 | external_commonjs_vue_mapbox_commonjs2_vue_mapbox_amd_vue_mapbox_root_vue_mapbox_[ 2115 | "$helpers" 2116 | ].asControl 2117 | ], 2118 | inject: ["mapbox", "map"], 2119 | props: { 2120 | // Mapbox-geocoder options 2121 | accessToken: { 2122 | type: String, 2123 | required: true 2124 | }, 2125 | zoom: { 2126 | type: Number, 2127 | default: 16 2128 | }, 2129 | flyTo: { 2130 | type: Boolean, 2131 | default: true 2132 | }, 2133 | placeholder: { 2134 | type: String, 2135 | default: "Search" 2136 | }, 2137 | proximity: { 2138 | type: Object, 2139 | default: null 2140 | }, 2141 | trackProximity: { 2142 | type: Boolean, 2143 | default: false 2144 | }, 2145 | bbox: { 2146 | type: Array, 2147 | default: null 2148 | }, 2149 | types: { 2150 | type: String, 2151 | default: null 2152 | }, 2153 | country: { 2154 | type: String, 2155 | default: null 2156 | }, 2157 | minLength: { 2158 | type: Number, 2159 | default: 2 2160 | }, 2161 | limit: { 2162 | type: Number, 2163 | default: 5 2164 | }, 2165 | language: { 2166 | type: String, 2167 | default: null 2168 | }, 2169 | filter: { 2170 | type: Function, 2171 | default: null 2172 | }, 2173 | localGeocoder: { 2174 | type: Function, 2175 | default: null 2176 | }, 2177 | // Component options 2178 | input: { 2179 | type: String, 2180 | default: null 2181 | } 2182 | }, 2183 | data: function data() { 2184 | return { 2185 | control: null, 2186 | initial: true 2187 | }; 2188 | }, 2189 | watch: { 2190 | input: { 2191 | handler: function handler(next, prev) { 2192 | if (this.control && next !== prev) { 2193 | this.control.setInput(next); 2194 | } 2195 | }, 2196 | immediate: true 2197 | }, 2198 | proximity: function proximity(next, prev) { 2199 | if (this.control && next !== prev) { 2200 | this.control.setProximity(next); 2201 | } 2202 | } 2203 | }, 2204 | created: function created() { 2205 | if (this.accessToken && !this.mapbox.accessToken) { 2206 | this.mapbox.accessToken = this.accessToken; 2207 | } 2208 | 2209 | this.control = new mapbox_gl_geocoder_root_mapbox_gl_geocoder_default.a( 2210 | this.$props 2211 | ); 2212 | this.control.on("results", this.$_updateInput); 2213 | this.$_deferredMount(); 2214 | }, 2215 | beforeDestroy: function beforeDestroy() { 2216 | this.control.off("results", this.$_updateInput); 2217 | }, 2218 | methods: { 2219 | $_deferredMount: function $_deferredMount() { 2220 | this.map.addControl(this.control); 2221 | 2222 | if (this.input) { 2223 | this.control.setInput(this.input); 2224 | } 2225 | 2226 | this.$_emitEvent("added", { 2227 | geocoder: this.control 2228 | }); 2229 | this.$_bindSelfEvents(keys_default()(geocoderEvents)); 2230 | this.initial = false; 2231 | }, 2232 | $_bindSelfEvents: function $_bindSelfEvents(events) { 2233 | var _this = this; 2234 | 2235 | var vm = this; 2236 | 2237 | keys_default()(this.$listeners).forEach(function(eventName) { 2238 | if (events.includes(eventName)) { 2239 | _this.control.on(eventName, function(eventData) { 2240 | return vm.$_emitSelfEvent( 2241 | { 2242 | type: eventName 2243 | }, 2244 | { 2245 | geocoderData: eventData 2246 | } 2247 | ); 2248 | }); 2249 | } 2250 | }); 2251 | }, 2252 | $_updateInput: function $_updateInput(results) { 2253 | if (!this.initial) { 2254 | var input = results.query ? results.query.join("") : ""; 2255 | this.$emit("update:input", input); 2256 | } 2257 | }, 2258 | query: function query(_query) { 2259 | if (this.control) { 2260 | this.$emit("update:input", _query); 2261 | return this.contol.query(_query); 2262 | } 2263 | 2264 | return null; 2265 | } 2266 | } 2267 | }; 2268 | // CONCATENATED MODULE: ./src/main.js 2269 | 2270 | /* harmony default export */ var main = GeocoderControl; 2271 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 2272 | 2273 | /* harmony default export */ var entry_lib = (__webpack_exports__[ 2274 | "default" 2275 | ] = main); 2276 | 2277 | /***/ 2278 | }, 2279 | 2280 | /***/ fdef: /***/ function(module, exports) { 2281 | module.exports = 2282 | "\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003" + 2283 | "\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"; 2284 | 2285 | /***/ 2286 | } 2287 | 2288 | /******/ 2289 | } 2290 | )["default"]; 2291 | }); 2292 | -------------------------------------------------------------------------------- /dist/vue-mapbox-geocoder.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t, e) { 2 | "object" === typeof exports && "object" === typeof module 3 | ? (module.exports = e( 4 | require("vue-mapbox"), 5 | require("@mapbox/mapbox-gl-geocoder") 6 | )) 7 | : "function" === typeof define && define.amd 8 | ? define(["vue-mapbox", "@mapbox/mapbox-gl-geocoder"], e) 9 | : "object" === typeof exports 10 | ? (exports["vue-mapbox-geocoder"] = e( 11 | require("vue-mapbox"), 12 | require("@mapbox/mapbox-gl-geocoder") 13 | )) 14 | : (t["vue-mapbox-geocoder"] = e(t["vue-mapbox"], t["mapbox-gl-geocoder"])); 15 | })("undefined" !== typeof self ? self : this, function(t, e) { 16 | return (function(t) { 17 | var e = {}; 18 | function n(r) { 19 | if (e[r]) return e[r].exports; 20 | var o = (e[r] = { i: r, l: !1, exports: {} }); 21 | return t[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports; 22 | } 23 | return ( 24 | (n.m = t), 25 | (n.c = e), 26 | (n.d = function(t, e, r) { 27 | n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }); 28 | }), 29 | (n.r = function(t) { 30 | "undefined" !== typeof Symbol && 31 | Symbol.toStringTag && 32 | Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), 33 | Object.defineProperty(t, "__esModule", { value: !0 }); 34 | }), 35 | (n.t = function(t, e) { 36 | if ((1 & e && (t = n(t)), 8 & e)) return t; 37 | if (4 & e && "object" === typeof t && t && t.__esModule) return t; 38 | var r = Object.create(null); 39 | if ( 40 | (n.r(r), 41 | Object.defineProperty(r, "default", { enumerable: !0, value: t }), 42 | 2 & e && "string" != typeof t) 43 | ) 44 | for (var o in t) 45 | n.d( 46 | r, 47 | o, 48 | function(e) { 49 | return t[e]; 50 | }.bind(null, o) 51 | ); 52 | return r; 53 | }), 54 | (n.n = function(t) { 55 | var e = 56 | t && t.__esModule 57 | ? function() { 58 | return t["default"]; 59 | } 60 | : function() { 61 | return t; 62 | }; 63 | return n.d(e, "a", e), e; 64 | }), 65 | (n.o = function(t, e) { 66 | return Object.prototype.hasOwnProperty.call(t, e); 67 | }), 68 | (n.p = ""), 69 | n((n.s = "fb15")) 70 | ); 71 | })({ 72 | "01f9": function(t, e, n) { 73 | "use strict"; 74 | var r = n("2d00"), 75 | o = n("5ca1"), 76 | i = n("2aba"), 77 | c = n("32e9"), 78 | u = n("84f2"), 79 | f = n("41a0"), 80 | a = n("7f20"), 81 | s = n("38fd"), 82 | p = n("2b4c")("iterator"), 83 | l = !([].keys && "next" in [].keys()), 84 | d = "@@iterator", 85 | b = "keys", 86 | v = "values", 87 | y = function() { 88 | return this; 89 | }; 90 | t.exports = function(t, e, n, h, x, m, g) { 91 | f(n, e, h); 92 | var S, 93 | _, 94 | O, 95 | w = function(t) { 96 | if (!l && t in T) return T[t]; 97 | switch (t) { 98 | case b: 99 | return function() { 100 | return new n(this, t); 101 | }; 102 | case v: 103 | return function() { 104 | return new n(this, t); 105 | }; 106 | } 107 | return function() { 108 | return new n(this, t); 109 | }; 110 | }, 111 | j = e + " Iterator", 112 | E = x == v, 113 | P = !1, 114 | T = t.prototype, 115 | M = T[p] || T[d] || (x && T[x]), 116 | I = M || w(x), 117 | L = x ? (E ? w("entries") : I) : void 0, 118 | k = ("Array" == e && T.entries) || M; 119 | if ( 120 | (k && 121 | ((O = s(k.call(new t()))), 122 | O !== Object.prototype && 123 | O.next && 124 | (a(O, j, !0), r || "function" == typeof O[p] || c(O, p, y))), 125 | E && 126 | M && 127 | M.name !== v && 128 | ((P = !0), 129 | (I = function() { 130 | return M.call(this); 131 | })), 132 | (r && !g) || (!l && !P && T[p]) || c(T, p, I), 133 | (u[e] = I), 134 | (u[j] = y), 135 | x) 136 | ) 137 | if ( 138 | ((S = { values: E ? I : w(v), keys: m ? I : w(b), entries: L }), g) 139 | ) 140 | for (_ in S) _ in T || i(T, _, S[_]); 141 | else o(o.P + o.F * (l || P), e, S); 142 | return S; 143 | }; 144 | }, 145 | "07e3": function(t, e) { 146 | var n = {}.hasOwnProperty; 147 | t.exports = function(t, e) { 148 | return n.call(t, e); 149 | }; 150 | }, 151 | "0d58": function(t, e, n) { 152 | var r = n("ce10"), 153 | o = n("e11e"); 154 | t.exports = 155 | Object.keys || 156 | function(t) { 157 | return r(t, o); 158 | }; 159 | }, 160 | "0fc9": function(t, e, n) { 161 | var r = n("3a38"), 162 | o = Math.max, 163 | i = Math.min; 164 | t.exports = function(t, e) { 165 | return (t = r(t)), t < 0 ? o(t + e, 0) : i(t, e); 166 | }; 167 | }, 168 | "11e9": function(t, e, n) { 169 | var r = n("52a7"), 170 | o = n("4630"), 171 | i = n("6821"), 172 | c = n("6a99"), 173 | u = n("69a8"), 174 | f = n("c69a"), 175 | a = Object.getOwnPropertyDescriptor; 176 | e.f = n("9e1e") 177 | ? a 178 | : function(t, e) { 179 | if (((t = i(t)), (e = c(e, !0)), f)) 180 | try { 181 | return a(t, e); 182 | } catch (n) {} 183 | if (u(t, e)) return o(!r.f.call(t, e), t[e]); 184 | }; 185 | }, 186 | 1495: function(t, e, n) { 187 | var r = n("86cc"), 188 | o = n("cb7c"), 189 | i = n("0d58"); 190 | t.exports = n("9e1e") 191 | ? Object.defineProperties 192 | : function(t, e) { 193 | o(t); 194 | var n, 195 | c = i(e), 196 | u = c.length, 197 | f = 0; 198 | while (u > f) r.f(t, (n = c[f++]), e[n]); 199 | return t; 200 | }; 201 | }, 202 | 1691: function(t, e) { 203 | t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 204 | "," 205 | ); 206 | }, 207 | "1bc3": function(t, e, n) { 208 | var r = n("f772"); 209 | t.exports = function(t, e) { 210 | if (!r(t)) return t; 211 | var n, o; 212 | if (e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) 213 | return o; 214 | if ("function" == typeof (n = t.valueOf) && !r((o = n.call(t)))) 215 | return o; 216 | if (!e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) 217 | return o; 218 | throw TypeError("Can't convert object to primitive value"); 219 | }; 220 | }, 221 | "1ec9": function(t, e, n) { 222 | var r = n("f772"), 223 | o = n("e53d").document, 224 | i = r(o) && r(o.createElement); 225 | t.exports = function(t) { 226 | return i ? o.createElement(t) : {}; 227 | }; 228 | }, 229 | "230e": function(t, e, n) { 230 | var r = n("d3f4"), 231 | o = n("7726").document, 232 | i = r(o) && r(o.createElement); 233 | t.exports = function(t) { 234 | return i ? o.createElement(t) : {}; 235 | }; 236 | }, 237 | "241e": function(t, e, n) { 238 | var r = n("25eb"); 239 | t.exports = function(t) { 240 | return Object(r(t)); 241 | }; 242 | }, 243 | "25eb": function(t, e) { 244 | t.exports = function(t) { 245 | if (void 0 == t) throw TypeError("Can't call method on " + t); 246 | return t; 247 | }; 248 | }, 249 | "294c": function(t, e) { 250 | t.exports = function(t) { 251 | try { 252 | return !!t(); 253 | } catch (e) { 254 | return !0; 255 | } 256 | }; 257 | }, 258 | "2aba": function(t, e, n) { 259 | var r = n("7726"), 260 | o = n("32e9"), 261 | i = n("69a8"), 262 | c = n("ca5a")("src"), 263 | u = n("fa5b"), 264 | f = "toString", 265 | a = ("" + u).split(f); 266 | (n("8378").inspectSource = function(t) { 267 | return u.call(t); 268 | }), 269 | (t.exports = function(t, e, n, u) { 270 | var f = "function" == typeof n; 271 | f && (i(n, "name") || o(n, "name", e)), 272 | t[e] !== n && 273 | (f && (i(n, c) || o(n, c, t[e] ? "" + t[e] : a.join(String(e)))), 274 | t === r 275 | ? (t[e] = n) 276 | : u 277 | ? t[e] 278 | ? (t[e] = n) 279 | : o(t, e, n) 280 | : (delete t[e], o(t, e, n))); 281 | })(Function.prototype, f, function() { 282 | return ("function" == typeof this && this[c]) || u.call(this); 283 | }); 284 | }, 285 | "2aeb": function(t, e, n) { 286 | var r = n("cb7c"), 287 | o = n("1495"), 288 | i = n("e11e"), 289 | c = n("613b")("IE_PROTO"), 290 | u = function() {}, 291 | f = "prototype", 292 | a = function() { 293 | var t, 294 | e = n("230e")("iframe"), 295 | r = i.length, 296 | o = "<", 297 | c = ">"; 298 | (e.style.display = "none"), 299 | n("fab2").appendChild(e), 300 | (e.src = "javascript:"), 301 | (t = e.contentWindow.document), 302 | t.open(), 303 | t.write(o + "script" + c + "document.F=Object" + o + "/script" + c), 304 | t.close(), 305 | (a = t.F); 306 | while (r--) delete a[f][i[r]]; 307 | return a(); 308 | }; 309 | t.exports = 310 | Object.create || 311 | function(t, e) { 312 | var n; 313 | return ( 314 | null !== t 315 | ? ((u[f] = r(t)), (n = new u()), (u[f] = null), (n[c] = t)) 316 | : (n = a()), 317 | void 0 === e ? n : o(n, e) 318 | ); 319 | }; 320 | }, 321 | "2b4c": function(t, e, n) { 322 | var r = n("5537")("wks"), 323 | o = n("ca5a"), 324 | i = n("7726").Symbol, 325 | c = "function" == typeof i, 326 | u = (t.exports = function(t) { 327 | return r[t] || (r[t] = (c && i[t]) || (c ? i : o)("Symbol." + t)); 328 | }); 329 | u.store = r; 330 | }, 331 | "2d00": function(t, e) { 332 | t.exports = !1; 333 | }, 334 | "2d95": function(t, e) { 335 | var n = {}.toString; 336 | t.exports = function(t) { 337 | return n.call(t).slice(8, -1); 338 | }; 339 | }, 340 | "2fdb": function(t, e, n) { 341 | "use strict"; 342 | var r = n("5ca1"), 343 | o = n("d2c8"), 344 | i = "includes"; 345 | r(r.P + r.F * n("5147")(i), "String", { 346 | includes: function(t) { 347 | return !!~o(this, t, i).indexOf( 348 | t, 349 | arguments.length > 1 ? arguments[1] : void 0 350 | ); 351 | } 352 | }); 353 | }, 354 | "32a6": function(t, e, n) { 355 | var r = n("241e"), 356 | o = n("c3a1"); 357 | n("ce7e")("keys", function() { 358 | return function(t) { 359 | return o(r(t)); 360 | }; 361 | }); 362 | }, 363 | "32e9": function(t, e, n) { 364 | var r = n("86cc"), 365 | o = n("4630"); 366 | t.exports = n("9e1e") 367 | ? function(t, e, n) { 368 | return r.f(t, e, o(1, n)); 369 | } 370 | : function(t, e, n) { 371 | return (t[e] = n), t; 372 | }; 373 | }, 374 | "335c": function(t, e, n) { 375 | var r = n("6b4c"); 376 | t.exports = Object("z").propertyIsEnumerable(0) 377 | ? Object 378 | : function(t) { 379 | return "String" == r(t) ? t.split("") : Object(t); 380 | }; 381 | }, 382 | "35be": function(e, n) { 383 | e.exports = t; 384 | }, 385 | "35e8": function(t, e, n) { 386 | var r = n("d9f6"), 387 | o = n("aebd"); 388 | t.exports = n("8e60") 389 | ? function(t, e, n) { 390 | return r.f(t, e, o(1, n)); 391 | } 392 | : function(t, e, n) { 393 | return (t[e] = n), t; 394 | }; 395 | }, 396 | "36c3": function(t, e, n) { 397 | var r = n("335c"), 398 | o = n("25eb"); 399 | t.exports = function(t) { 400 | return r(o(t)); 401 | }; 402 | }, 403 | "38fd": function(t, e, n) { 404 | var r = n("69a8"), 405 | o = n("4bf8"), 406 | i = n("613b")("IE_PROTO"), 407 | c = Object.prototype; 408 | t.exports = 409 | Object.getPrototypeOf || 410 | function(t) { 411 | return ( 412 | (t = o(t)), 413 | r(t, i) 414 | ? t[i] 415 | : "function" == typeof t.constructor && t instanceof t.constructor 416 | ? t.constructor.prototype 417 | : t instanceof Object 418 | ? c 419 | : null 420 | ); 421 | }; 422 | }, 423 | "3a38": function(t, e) { 424 | var n = Math.ceil, 425 | r = Math.floor; 426 | t.exports = function(t) { 427 | return isNaN((t = +t)) ? 0 : (t > 0 ? r : n)(t); 428 | }; 429 | }, 430 | "41a0": function(t, e, n) { 431 | "use strict"; 432 | var r = n("2aeb"), 433 | o = n("4630"), 434 | i = n("7f20"), 435 | c = {}; 436 | n("32e9")(c, n("2b4c")("iterator"), function() { 437 | return this; 438 | }), 439 | (t.exports = function(t, e, n) { 440 | (t.prototype = r(c, { next: o(1, n) })), i(t, e + " Iterator"); 441 | }); 442 | }, 443 | 4588: function(t, e) { 444 | var n = Math.ceil, 445 | r = Math.floor; 446 | t.exports = function(t) { 447 | return isNaN((t = +t)) ? 0 : (t > 0 ? r : n)(t); 448 | }; 449 | }, 450 | 4630: function(t, e) { 451 | t.exports = function(t, e) { 452 | return { 453 | enumerable: !(1 & t), 454 | configurable: !(2 & t), 455 | writable: !(4 & t), 456 | value: e 457 | }; 458 | }; 459 | }, 460 | "4bf8": function(t, e, n) { 461 | var r = n("be13"); 462 | t.exports = function(t) { 463 | return Object(r(t)); 464 | }; 465 | }, 466 | 5147: function(t, e, n) { 467 | var r = n("2b4c")("match"); 468 | t.exports = function(t) { 469 | var e = /./; 470 | try { 471 | "/./"[t](e); 472 | } catch (n) { 473 | try { 474 | return (e[r] = !1), !"/./"[t](e); 475 | } catch (o) {} 476 | } 477 | return !0; 478 | }; 479 | }, 480 | "52a7": function(t, e) { 481 | e.f = {}.propertyIsEnumerable; 482 | }, 483 | 5537: function(t, e, n) { 484 | var r = n("8378"), 485 | o = n("7726"), 486 | i = "__core-js_shared__", 487 | c = o[i] || (o[i] = {}); 488 | (t.exports = function(t, e) { 489 | return c[t] || (c[t] = void 0 !== e ? e : {}); 490 | })("versions", []).push({ 491 | version: r.version, 492 | mode: n("2d00") ? "pure" : "global", 493 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 494 | }); 495 | }, 496 | 5559: function(t, e, n) { 497 | var r = n("dbdb")("keys"), 498 | o = n("62a0"); 499 | t.exports = function(t) { 500 | return r[t] || (r[t] = o(t)); 501 | }; 502 | }, 503 | "584a": function(t, e) { 504 | var n = (t.exports = { version: "2.6.5" }); 505 | "number" == typeof __e && (__e = n); 506 | }, 507 | "5b4e": function(t, e, n) { 508 | var r = n("36c3"), 509 | o = n("b447"), 510 | i = n("0fc9"); 511 | t.exports = function(t) { 512 | return function(e, n, c) { 513 | var u, 514 | f = r(e), 515 | a = o(f.length), 516 | s = i(c, a); 517 | if (t && n != n) { 518 | while (a > s) if (((u = f[s++]), u != u)) return !0; 519 | } else 520 | for (; a > s; s++) 521 | if ((t || s in f) && f[s] === n) return t || s || 0; 522 | return !t && -1; 523 | }; 524 | }; 525 | }, 526 | "5ca1": function(t, e, n) { 527 | var r = n("7726"), 528 | o = n("8378"), 529 | i = n("32e9"), 530 | c = n("2aba"), 531 | u = n("9b43"), 532 | f = "prototype", 533 | a = function(t, e, n) { 534 | var s, 535 | p, 536 | l, 537 | d, 538 | b = t & a.F, 539 | v = t & a.G, 540 | y = t & a.S, 541 | h = t & a.P, 542 | x = t & a.B, 543 | m = v ? r : y ? r[e] || (r[e] = {}) : (r[e] || {})[f], 544 | g = v ? o : o[e] || (o[e] = {}), 545 | S = g[f] || (g[f] = {}); 546 | for (s in (v && (n = e), n)) 547 | (p = !b && m && void 0 !== m[s]), 548 | (l = (p ? m : n)[s]), 549 | (d = 550 | x && p 551 | ? u(l, r) 552 | : h && "function" == typeof l 553 | ? u(Function.call, l) 554 | : l), 555 | m && c(m, s, l, t & a.U), 556 | g[s] != l && i(g, s, d), 557 | h && S[s] != l && (S[s] = l); 558 | }; 559 | (r.core = o), 560 | (a.F = 1), 561 | (a.G = 2), 562 | (a.S = 4), 563 | (a.P = 8), 564 | (a.B = 16), 565 | (a.W = 32), 566 | (a.U = 64), 567 | (a.R = 128), 568 | (t.exports = a); 569 | }, 570 | "5dbc": function(t, e, n) { 571 | var r = n("d3f4"), 572 | o = n("8b97").set; 573 | t.exports = function(t, e, n) { 574 | var i, 575 | c = e.constructor; 576 | return ( 577 | c !== n && 578 | "function" == typeof c && 579 | (i = c.prototype) !== n.prototype && 580 | r(i) && 581 | o && 582 | o(t, i), 583 | t 584 | ); 585 | }; 586 | }, 587 | "613b": function(t, e, n) { 588 | var r = n("5537")("keys"), 589 | o = n("ca5a"); 590 | t.exports = function(t) { 591 | return r[t] || (r[t] = o(t)); 592 | }; 593 | }, 594 | "626a": function(t, e, n) { 595 | var r = n("2d95"); 596 | t.exports = Object("z").propertyIsEnumerable(0) 597 | ? Object 598 | : function(t) { 599 | return "String" == r(t) ? t.split("") : Object(t); 600 | }; 601 | }, 602 | "62a0": function(t, e) { 603 | var n = 0, 604 | r = Math.random(); 605 | t.exports = function(t) { 606 | return "Symbol(".concat( 607 | void 0 === t ? "" : t, 608 | ")_", 609 | (++n + r).toString(36) 610 | ); 611 | }; 612 | }, 613 | "63b6": function(t, e, n) { 614 | var r = n("e53d"), 615 | o = n("584a"), 616 | i = n("d864"), 617 | c = n("35e8"), 618 | u = n("07e3"), 619 | f = "prototype", 620 | a = function(t, e, n) { 621 | var s, 622 | p, 623 | l, 624 | d = t & a.F, 625 | b = t & a.G, 626 | v = t & a.S, 627 | y = t & a.P, 628 | h = t & a.B, 629 | x = t & a.W, 630 | m = b ? o : o[e] || (o[e] = {}), 631 | g = m[f], 632 | S = b ? r : v ? r[e] : (r[e] || {})[f]; 633 | for (s in (b && (n = e), n)) 634 | (p = !d && S && void 0 !== S[s]), 635 | (p && u(m, s)) || 636 | ((l = p ? S[s] : n[s]), 637 | (m[s] = 638 | b && "function" != typeof S[s] 639 | ? n[s] 640 | : h && p 641 | ? i(l, r) 642 | : x && S[s] == l 643 | ? (function(t) { 644 | var e = function(e, n, r) { 645 | if (this instanceof t) { 646 | switch (arguments.length) { 647 | case 0: 648 | return new t(); 649 | case 1: 650 | return new t(e); 651 | case 2: 652 | return new t(e, n); 653 | } 654 | return new t(e, n, r); 655 | } 656 | return t.apply(this, arguments); 657 | }; 658 | return (e[f] = t[f]), e; 659 | })(l) 660 | : y && "function" == typeof l 661 | ? i(Function.call, l) 662 | : l), 663 | y && 664 | (((m.virtual || (m.virtual = {}))[s] = l), 665 | t & a.R && g && !g[s] && c(g, s, l))); 666 | }; 667 | (a.F = 1), 668 | (a.G = 2), 669 | (a.S = 4), 670 | (a.P = 8), 671 | (a.B = 16), 672 | (a.W = 32), 673 | (a.U = 64), 674 | (a.R = 128), 675 | (t.exports = a); 676 | }, 677 | 6762: function(t, e, n) { 678 | "use strict"; 679 | var r = n("5ca1"), 680 | o = n("c366")(!0); 681 | r(r.P, "Array", { 682 | includes: function(t) { 683 | return o(this, t, arguments.length > 1 ? arguments[1] : void 0); 684 | } 685 | }), 686 | n("9c6c")("includes"); 687 | }, 688 | 6821: function(t, e, n) { 689 | var r = n("626a"), 690 | o = n("be13"); 691 | t.exports = function(t) { 692 | return r(o(t)); 693 | }; 694 | }, 695 | "69a8": function(t, e) { 696 | var n = {}.hasOwnProperty; 697 | t.exports = function(t, e) { 698 | return n.call(t, e); 699 | }; 700 | }, 701 | "6a99": function(t, e, n) { 702 | var r = n("d3f4"); 703 | t.exports = function(t, e) { 704 | if (!r(t)) return t; 705 | var n, o; 706 | if (e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) 707 | return o; 708 | if ("function" == typeof (n = t.valueOf) && !r((o = n.call(t)))) 709 | return o; 710 | if (!e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) 711 | return o; 712 | throw TypeError("Can't convert object to primitive value"); 713 | }; 714 | }, 715 | "6b4c": function(t, e) { 716 | var n = {}.toString; 717 | t.exports = function(t) { 718 | return n.call(t).slice(8, -1); 719 | }; 720 | }, 721 | 7726: function(t, e) { 722 | var n = (t.exports = 723 | "undefined" != typeof window && window.Math == Math 724 | ? window 725 | : "undefined" != typeof self && self.Math == Math 726 | ? self 727 | : Function("return this")()); 728 | "number" == typeof __g && (__g = n); 729 | }, 730 | "77f1": function(t, e, n) { 731 | var r = n("4588"), 732 | o = Math.max, 733 | i = Math.min; 734 | t.exports = function(t, e) { 735 | return (t = r(t)), t < 0 ? o(t + e, 0) : i(t, e); 736 | }; 737 | }, 738 | "794b": function(t, e, n) { 739 | t.exports = 740 | !n("8e60") && 741 | !n("294c")(function() { 742 | return ( 743 | 7 != 744 | Object.defineProperty(n("1ec9")("div"), "a", { 745 | get: function() { 746 | return 7; 747 | } 748 | }).a 749 | ); 750 | }); 751 | }, 752 | "79aa": function(t, e) { 753 | t.exports = function(t) { 754 | if ("function" != typeof t) throw TypeError(t + " is not a function!"); 755 | return t; 756 | }; 757 | }, 758 | "79e5": function(t, e) { 759 | t.exports = function(t) { 760 | try { 761 | return !!t(); 762 | } catch (e) { 763 | return !0; 764 | } 765 | }; 766 | }, 767 | "7c06": function(t, n) { 768 | t.exports = e; 769 | }, 770 | "7f20": function(t, e, n) { 771 | var r = n("86cc").f, 772 | o = n("69a8"), 773 | i = n("2b4c")("toStringTag"); 774 | t.exports = function(t, e, n) { 775 | t && 776 | !o((t = n ? t : t.prototype), i) && 777 | r(t, i, { configurable: !0, value: e }); 778 | }; 779 | }, 780 | 8378: function(t, e) { 781 | var n = (t.exports = { version: "2.6.5" }); 782 | "number" == typeof __e && (__e = n); 783 | }, 784 | "84f2": function(t, e) { 785 | t.exports = {}; 786 | }, 787 | "86cc": function(t, e, n) { 788 | var r = n("cb7c"), 789 | o = n("c69a"), 790 | i = n("6a99"), 791 | c = Object.defineProperty; 792 | e.f = n("9e1e") 793 | ? Object.defineProperty 794 | : function(t, e, n) { 795 | if ((r(t), (e = i(e, !0)), r(n), o)) 796 | try { 797 | return c(t, e, n); 798 | } catch (u) {} 799 | if ("get" in n || "set" in n) 800 | throw TypeError("Accessors not supported!"); 801 | return "value" in n && (t[e] = n.value), t; 802 | }; 803 | }, 804 | "8aae": function(t, e, n) { 805 | n("32a6"), (t.exports = n("584a").Object.keys); 806 | }, 807 | "8b97": function(t, e, n) { 808 | var r = n("d3f4"), 809 | o = n("cb7c"), 810 | i = function(t, e) { 811 | if ((o(t), !r(e) && null !== e)) 812 | throw TypeError(e + ": can't set as prototype!"); 813 | }; 814 | t.exports = { 815 | set: 816 | Object.setPrototypeOf || 817 | ("__proto__" in {} 818 | ? (function(t, e, r) { 819 | try { 820 | (r = n("9b43")( 821 | Function.call, 822 | n("11e9").f(Object.prototype, "__proto__").set, 823 | 2 824 | )), 825 | r(t, []), 826 | (e = !(t instanceof Array)); 827 | } catch (o) { 828 | e = !0; 829 | } 830 | return function(t, n) { 831 | return i(t, n), e ? (t.__proto__ = n) : r(t, n), t; 832 | }; 833 | })({}, !1) 834 | : void 0), 835 | check: i 836 | }; 837 | }, 838 | "8e60": function(t, e, n) { 839 | t.exports = !n("294c")(function() { 840 | return ( 841 | 7 != 842 | Object.defineProperty({}, "a", { 843 | get: function() { 844 | return 7; 845 | } 846 | }).a 847 | ); 848 | }); 849 | }, 850 | 9093: function(t, e, n) { 851 | var r = n("ce10"), 852 | o = n("e11e").concat("length", "prototype"); 853 | e.f = 854 | Object.getOwnPropertyNames || 855 | function(t) { 856 | return r(t, o); 857 | }; 858 | }, 859 | "9b43": function(t, e, n) { 860 | var r = n("d8e8"); 861 | t.exports = function(t, e, n) { 862 | if ((r(t), void 0 === e)) return t; 863 | switch (n) { 864 | case 1: 865 | return function(n) { 866 | return t.call(e, n); 867 | }; 868 | case 2: 869 | return function(n, r) { 870 | return t.call(e, n, r); 871 | }; 872 | case 3: 873 | return function(n, r, o) { 874 | return t.call(e, n, r, o); 875 | }; 876 | } 877 | return function() { 878 | return t.apply(e, arguments); 879 | }; 880 | }; 881 | }, 882 | "9c6c": function(t, e, n) { 883 | var r = n("2b4c")("unscopables"), 884 | o = Array.prototype; 885 | void 0 == o[r] && n("32e9")(o, r, {}), 886 | (t.exports = function(t) { 887 | o[r][t] = !0; 888 | }); 889 | }, 890 | "9def": function(t, e, n) { 891 | var r = n("4588"), 892 | o = Math.min; 893 | t.exports = function(t) { 894 | return t > 0 ? o(r(t), 9007199254740991) : 0; 895 | }; 896 | }, 897 | "9e1e": function(t, e, n) { 898 | t.exports = !n("79e5")(function() { 899 | return ( 900 | 7 != 901 | Object.defineProperty({}, "a", { 902 | get: function() { 903 | return 7; 904 | } 905 | }).a 906 | ); 907 | }); 908 | }, 909 | a4bb: function(t, e, n) { 910 | t.exports = n("8aae"); 911 | }, 912 | aa77: function(t, e, n) { 913 | var r = n("5ca1"), 914 | o = n("be13"), 915 | i = n("79e5"), 916 | c = n("fdef"), 917 | u = "[" + c + "]", 918 | f = "​…", 919 | a = RegExp("^" + u + u + "*"), 920 | s = RegExp(u + u + "*$"), 921 | p = function(t, e, n) { 922 | var o = {}, 923 | u = i(function() { 924 | return !!c[t]() || f[t]() != f; 925 | }), 926 | a = (o[t] = u ? e(l) : c[t]); 927 | n && (o[n] = a), r(r.P + r.F * u, "String", o); 928 | }, 929 | l = (p.trim = function(t, e) { 930 | return ( 931 | (t = String(o(t))), 932 | 1 & e && (t = t.replace(a, "")), 933 | 2 & e && (t = t.replace(s, "")), 934 | t 935 | ); 936 | }); 937 | t.exports = p; 938 | }, 939 | aae3: function(t, e, n) { 940 | var r = n("d3f4"), 941 | o = n("2d95"), 942 | i = n("2b4c")("match"); 943 | t.exports = function(t) { 944 | var e; 945 | return r(t) && (void 0 !== (e = t[i]) ? !!e : "RegExp" == o(t)); 946 | }; 947 | }, 948 | ac6a: function(t, e, n) { 949 | for ( 950 | var r = n("cadf"), 951 | o = n("0d58"), 952 | i = n("2aba"), 953 | c = n("7726"), 954 | u = n("32e9"), 955 | f = n("84f2"), 956 | a = n("2b4c"), 957 | s = a("iterator"), 958 | p = a("toStringTag"), 959 | l = f.Array, 960 | d = { 961 | CSSRuleList: !0, 962 | CSSStyleDeclaration: !1, 963 | CSSValueList: !1, 964 | ClientRectList: !1, 965 | DOMRectList: !1, 966 | DOMStringList: !1, 967 | DOMTokenList: !0, 968 | DataTransferItemList: !1, 969 | FileList: !1, 970 | HTMLAllCollection: !1, 971 | HTMLCollection: !1, 972 | HTMLFormElement: !1, 973 | HTMLSelectElement: !1, 974 | MediaList: !0, 975 | MimeTypeArray: !1, 976 | NamedNodeMap: !1, 977 | NodeList: !0, 978 | PaintRequestList: !1, 979 | Plugin: !1, 980 | PluginArray: !1, 981 | SVGLengthList: !1, 982 | SVGNumberList: !1, 983 | SVGPathSegList: !1, 984 | SVGPointList: !1, 985 | SVGStringList: !1, 986 | SVGTransformList: !1, 987 | SourceBufferList: !1, 988 | StyleSheetList: !0, 989 | TextTrackCueList: !1, 990 | TextTrackList: !1, 991 | TouchList: !1 992 | }, 993 | b = o(d), 994 | v = 0; 995 | v < b.length; 996 | v++ 997 | ) { 998 | var y, 999 | h = b[v], 1000 | x = d[h], 1001 | m = c[h], 1002 | g = m && m.prototype; 1003 | if (g && (g[s] || u(g, s, l), g[p] || u(g, p, h), (f[h] = l), x)) 1004 | for (y in r) g[y] || i(g, y, r[y], !0); 1005 | } 1006 | }, 1007 | aebd: function(t, e) { 1008 | t.exports = function(t, e) { 1009 | return { 1010 | enumerable: !(1 & t), 1011 | configurable: !(2 & t), 1012 | writable: !(4 & t), 1013 | value: e 1014 | }; 1015 | }; 1016 | }, 1017 | b447: function(t, e, n) { 1018 | var r = n("3a38"), 1019 | o = Math.min; 1020 | t.exports = function(t) { 1021 | return t > 0 ? o(r(t), 9007199254740991) : 0; 1022 | }; 1023 | }, 1024 | b8e3: function(t, e) { 1025 | t.exports = !0; 1026 | }, 1027 | be13: function(t, e) { 1028 | t.exports = function(t) { 1029 | if (void 0 == t) throw TypeError("Can't call method on " + t); 1030 | return t; 1031 | }; 1032 | }, 1033 | c366: function(t, e, n) { 1034 | var r = n("6821"), 1035 | o = n("9def"), 1036 | i = n("77f1"); 1037 | t.exports = function(t) { 1038 | return function(e, n, c) { 1039 | var u, 1040 | f = r(e), 1041 | a = o(f.length), 1042 | s = i(c, a); 1043 | if (t && n != n) { 1044 | while (a > s) if (((u = f[s++]), u != u)) return !0; 1045 | } else 1046 | for (; a > s; s++) 1047 | if ((t || s in f) && f[s] === n) return t || s || 0; 1048 | return !t && -1; 1049 | }; 1050 | }; 1051 | }, 1052 | c3a1: function(t, e, n) { 1053 | var r = n("e6f3"), 1054 | o = n("1691"); 1055 | t.exports = 1056 | Object.keys || 1057 | function(t) { 1058 | return r(t, o); 1059 | }; 1060 | }, 1061 | c5f6: function(t, e, n) { 1062 | "use strict"; 1063 | var r = n("7726"), 1064 | o = n("69a8"), 1065 | i = n("2d95"), 1066 | c = n("5dbc"), 1067 | u = n("6a99"), 1068 | f = n("79e5"), 1069 | a = n("9093").f, 1070 | s = n("11e9").f, 1071 | p = n("86cc").f, 1072 | l = n("aa77").trim, 1073 | d = "Number", 1074 | b = r[d], 1075 | v = b, 1076 | y = b.prototype, 1077 | h = i(n("2aeb")(y)) == d, 1078 | x = "trim" in String.prototype, 1079 | m = function(t) { 1080 | var e = u(t, !1); 1081 | if ("string" == typeof e && e.length > 2) { 1082 | e = x ? e.trim() : l(e, 3); 1083 | var n, 1084 | r, 1085 | o, 1086 | i = e.charCodeAt(0); 1087 | if (43 === i || 45 === i) { 1088 | if (((n = e.charCodeAt(2)), 88 === n || 120 === n)) return NaN; 1089 | } else if (48 === i) { 1090 | switch (e.charCodeAt(1)) { 1091 | case 66: 1092 | case 98: 1093 | (r = 2), (o = 49); 1094 | break; 1095 | case 79: 1096 | case 111: 1097 | (r = 8), (o = 55); 1098 | break; 1099 | default: 1100 | return +e; 1101 | } 1102 | for (var c, f = e.slice(2), a = 0, s = f.length; a < s; a++) 1103 | if (((c = f.charCodeAt(a)), c < 48 || c > o)) return NaN; 1104 | return parseInt(f, r); 1105 | } 1106 | } 1107 | return +e; 1108 | }; 1109 | if (!b(" 0o1") || !b("0b1") || b("+0x1")) { 1110 | b = function(t) { 1111 | var e = arguments.length < 1 ? 0 : t, 1112 | n = this; 1113 | return n instanceof b && 1114 | (h 1115 | ? f(function() { 1116 | y.valueOf.call(n); 1117 | }) 1118 | : i(n) != d) 1119 | ? c(new v(m(e)), n, b) 1120 | : m(e); 1121 | }; 1122 | for ( 1123 | var g, 1124 | S = n("9e1e") 1125 | ? a(v) 1126 | : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split( 1127 | "," 1128 | ), 1129 | _ = 0; 1130 | S.length > _; 1131 | _++ 1132 | ) 1133 | o(v, (g = S[_])) && !o(b, g) && p(b, g, s(v, g)); 1134 | (b.prototype = y), (y.constructor = b), n("2aba")(r, d, b); 1135 | } 1136 | }, 1137 | c69a: function(t, e, n) { 1138 | t.exports = 1139 | !n("9e1e") && 1140 | !n("79e5")(function() { 1141 | return ( 1142 | 7 != 1143 | Object.defineProperty(n("230e")("div"), "a", { 1144 | get: function() { 1145 | return 7; 1146 | } 1147 | }).a 1148 | ); 1149 | }); 1150 | }, 1151 | ca5a: function(t, e) { 1152 | var n = 0, 1153 | r = Math.random(); 1154 | t.exports = function(t) { 1155 | return "Symbol(".concat( 1156 | void 0 === t ? "" : t, 1157 | ")_", 1158 | (++n + r).toString(36) 1159 | ); 1160 | }; 1161 | }, 1162 | cadf: function(t, e, n) { 1163 | "use strict"; 1164 | var r = n("9c6c"), 1165 | o = n("d53b"), 1166 | i = n("84f2"), 1167 | c = n("6821"); 1168 | (t.exports = n("01f9")( 1169 | Array, 1170 | "Array", 1171 | function(t, e) { 1172 | (this._t = c(t)), (this._i = 0), (this._k = e); 1173 | }, 1174 | function() { 1175 | var t = this._t, 1176 | e = this._k, 1177 | n = this._i++; 1178 | return !t || n >= t.length 1179 | ? ((this._t = void 0), o(1)) 1180 | : o(0, "keys" == e ? n : "values" == e ? t[n] : [n, t[n]]); 1181 | }, 1182 | "values" 1183 | )), 1184 | (i.Arguments = i.Array), 1185 | r("keys"), 1186 | r("values"), 1187 | r("entries"); 1188 | }, 1189 | cb7c: function(t, e, n) { 1190 | var r = n("d3f4"); 1191 | t.exports = function(t) { 1192 | if (!r(t)) throw TypeError(t + " is not an object!"); 1193 | return t; 1194 | }; 1195 | }, 1196 | ce10: function(t, e, n) { 1197 | var r = n("69a8"), 1198 | o = n("6821"), 1199 | i = n("c366")(!1), 1200 | c = n("613b")("IE_PROTO"); 1201 | t.exports = function(t, e) { 1202 | var n, 1203 | u = o(t), 1204 | f = 0, 1205 | a = []; 1206 | for (n in u) n != c && r(u, n) && a.push(n); 1207 | while (e.length > f) r(u, (n = e[f++])) && (~i(a, n) || a.push(n)); 1208 | return a; 1209 | }; 1210 | }, 1211 | ce7e: function(t, e, n) { 1212 | var r = n("63b6"), 1213 | o = n("584a"), 1214 | i = n("294c"); 1215 | t.exports = function(t, e) { 1216 | var n = (o.Object || {})[t] || Object[t], 1217 | c = {}; 1218 | (c[t] = e(n)), 1219 | r( 1220 | r.S + 1221 | r.F * 1222 | i(function() { 1223 | n(1); 1224 | }), 1225 | "Object", 1226 | c 1227 | ); 1228 | }; 1229 | }, 1230 | d2c8: function(t, e, n) { 1231 | var r = n("aae3"), 1232 | o = n("be13"); 1233 | t.exports = function(t, e, n) { 1234 | if (r(e)) throw TypeError("String#" + n + " doesn't accept regex!"); 1235 | return String(o(t)); 1236 | }; 1237 | }, 1238 | d3f4: function(t, e) { 1239 | t.exports = function(t) { 1240 | return "object" === typeof t ? null !== t : "function" === typeof t; 1241 | }; 1242 | }, 1243 | d53b: function(t, e) { 1244 | t.exports = function(t, e) { 1245 | return { value: e, done: !!t }; 1246 | }; 1247 | }, 1248 | d864: function(t, e, n) { 1249 | var r = n("79aa"); 1250 | t.exports = function(t, e, n) { 1251 | if ((r(t), void 0 === e)) return t; 1252 | switch (n) { 1253 | case 1: 1254 | return function(n) { 1255 | return t.call(e, n); 1256 | }; 1257 | case 2: 1258 | return function(n, r) { 1259 | return t.call(e, n, r); 1260 | }; 1261 | case 3: 1262 | return function(n, r, o) { 1263 | return t.call(e, n, r, o); 1264 | }; 1265 | } 1266 | return function() { 1267 | return t.apply(e, arguments); 1268 | }; 1269 | }; 1270 | }, 1271 | d8e8: function(t, e) { 1272 | t.exports = function(t) { 1273 | if ("function" != typeof t) throw TypeError(t + " is not a function!"); 1274 | return t; 1275 | }; 1276 | }, 1277 | d9f6: function(t, e, n) { 1278 | var r = n("e4ae"), 1279 | o = n("794b"), 1280 | i = n("1bc3"), 1281 | c = Object.defineProperty; 1282 | e.f = n("8e60") 1283 | ? Object.defineProperty 1284 | : function(t, e, n) { 1285 | if ((r(t), (e = i(e, !0)), r(n), o)) 1286 | try { 1287 | return c(t, e, n); 1288 | } catch (u) {} 1289 | if ("get" in n || "set" in n) 1290 | throw TypeError("Accessors not supported!"); 1291 | return "value" in n && (t[e] = n.value), t; 1292 | }; 1293 | }, 1294 | dbdb: function(t, e, n) { 1295 | var r = n("584a"), 1296 | o = n("e53d"), 1297 | i = "__core-js_shared__", 1298 | c = o[i] || (o[i] = {}); 1299 | (t.exports = function(t, e) { 1300 | return c[t] || (c[t] = void 0 !== e ? e : {}); 1301 | })("versions", []).push({ 1302 | version: r.version, 1303 | mode: n("b8e3") ? "pure" : "global", 1304 | copyright: "© 2019 Denis Pushkarev (zloirock.ru)" 1305 | }); 1306 | }, 1307 | e11e: function(t, e) { 1308 | t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( 1309 | "," 1310 | ); 1311 | }, 1312 | e4ae: function(t, e, n) { 1313 | var r = n("f772"); 1314 | t.exports = function(t) { 1315 | if (!r(t)) throw TypeError(t + " is not an object!"); 1316 | return t; 1317 | }; 1318 | }, 1319 | e53d: function(t, e) { 1320 | var n = (t.exports = 1321 | "undefined" != typeof window && window.Math == Math 1322 | ? window 1323 | : "undefined" != typeof self && self.Math == Math 1324 | ? self 1325 | : Function("return this")()); 1326 | "number" == typeof __g && (__g = n); 1327 | }, 1328 | e6f3: function(t, e, n) { 1329 | var r = n("07e3"), 1330 | o = n("36c3"), 1331 | i = n("5b4e")(!1), 1332 | c = n("5559")("IE_PROTO"); 1333 | t.exports = function(t, e) { 1334 | var n, 1335 | u = o(t), 1336 | f = 0, 1337 | a = []; 1338 | for (n in u) n != c && r(u, n) && a.push(n); 1339 | while (e.length > f) r(u, (n = e[f++])) && (~i(a, n) || a.push(n)); 1340 | return a; 1341 | }; 1342 | }, 1343 | f772: function(t, e) { 1344 | t.exports = function(t) { 1345 | return "object" === typeof t ? null !== t : "function" === typeof t; 1346 | }; 1347 | }, 1348 | fa5b: function(t, e, n) { 1349 | t.exports = n("5537")("native-function-to-string", Function.toString); 1350 | }, 1351 | fab2: function(t, e, n) { 1352 | var r = n("7726").document; 1353 | t.exports = r && r.documentElement; 1354 | }, 1355 | fb15: function(t, e, n) { 1356 | "use strict"; 1357 | var r; 1358 | (n.r(e), "undefined" !== typeof window) && 1359 | ((r = window.document.currentScript) && 1360 | (r = r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/)) && 1361 | (n.p = r[1])); 1362 | n("6762"), n("2fdb"), n("ac6a"); 1363 | var o = n("a4bb"), 1364 | i = n.n(o), 1365 | c = (n("c5f6"), n("7c06")), 1366 | u = n.n(c), 1367 | f = n("35be"), 1368 | a = { 1369 | clear: "clear", 1370 | loading: "loading", 1371 | results: "results", 1372 | result: "result", 1373 | error: "error" 1374 | }, 1375 | s = { 1376 | name: "GeocoderControl", 1377 | mixins: [f["$helpers"].asControl], 1378 | inject: ["mapbox", "map"], 1379 | props: { 1380 | accessToken: { type: String, required: !0 }, 1381 | zoom: { type: Number, default: 16 }, 1382 | flyTo: { type: Boolean, default: !0 }, 1383 | placeholder: { type: String, default: "Search" }, 1384 | proximity: { type: Object, default: null }, 1385 | trackProximity: { type: Boolean, default: !1 }, 1386 | bbox: { type: Array, default: null }, 1387 | types: { type: String, default: null }, 1388 | country: { type: String, default: null }, 1389 | minLength: { type: Number, default: 2 }, 1390 | limit: { type: Number, default: 5 }, 1391 | language: { type: String, default: null }, 1392 | filter: { type: Function, default: null }, 1393 | localGeocoder: { type: Function, default: null }, 1394 | input: { type: String, default: null } 1395 | }, 1396 | data: function() { 1397 | return { control: null, initial: !0 }; 1398 | }, 1399 | watch: { 1400 | input: { 1401 | handler: function(t, e) { 1402 | this.control && t !== e && this.control.setInput(t); 1403 | }, 1404 | immediate: !0 1405 | }, 1406 | proximity: function(t, e) { 1407 | this.control && t !== e && this.control.setProximity(t); 1408 | } 1409 | }, 1410 | created: function() { 1411 | this.accessToken && 1412 | !this.mapbox.accessToken && 1413 | (this.mapbox.accessToken = this.accessToken), 1414 | (this.control = new u.a(this.$props)), 1415 | this.control.on("results", this.$_updateInput), 1416 | this.$_deferredMount(); 1417 | }, 1418 | beforeDestroy: function() { 1419 | this.control.off("results", this.$_updateInput); 1420 | }, 1421 | methods: { 1422 | $_deferredMount: function() { 1423 | this.map.addControl(this.control), 1424 | this.input && this.control.setInput(this.input), 1425 | this.$_emitEvent("added", { geocoder: this.control }), 1426 | this.$_bindSelfEvents(i()(a)), 1427 | (this.initial = !1); 1428 | }, 1429 | $_bindSelfEvents: function(t) { 1430 | var e = this, 1431 | n = this; 1432 | i()(this.$listeners).forEach(function(r) { 1433 | t.includes(r) && 1434 | e.control.on(r, function(t) { 1435 | return n.$_emitSelfEvent({ type: r }, { geocoderData: t }); 1436 | }); 1437 | }); 1438 | }, 1439 | $_updateInput: function(t) { 1440 | if (!this.initial) { 1441 | var e = t.query ? t.query.join("") : ""; 1442 | this.$emit("update:input", e); 1443 | } 1444 | }, 1445 | query: function(t) { 1446 | return this.control 1447 | ? (this.$emit("update:input", t), this.contol.query(t)) 1448 | : null; 1449 | } 1450 | } 1451 | }, 1452 | p = s; 1453 | e["default"] = p; 1454 | }, 1455 | fdef: function(t, e) { 1456 | t.exports = "\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"; 1457 | } 1458 | })["default"]; 1459 | }); 1460 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-mapbox-geocoder", 3 | "version": "0.2.0", 4 | "description": "Geocoder plugin for VueMapbox", 5 | "homepage": "https://github.com/soal/vue-mapbox-geocoder#readme", 6 | "repository": { 7 | "type": "git", 8 | "url": "git+https://github.com/soal/vue-mapbox-geocoder.git" 9 | }, 10 | "author": { 11 | "name": "soal", 12 | "email": "sorrrow.about.alice@gmail.com", 13 | "url": "https://github.com/soal" 14 | }, 15 | "bugs": { 16 | "url": "https://github.com/soal/vue-mapbox-geocoder/issues" 17 | }, 18 | "keywords": [ 19 | "vue", 20 | "vuejs", 21 | "mapbox", 22 | "mapbox-gl-js", 23 | "mapbox-gl", 24 | "mapbox-gl-geocoder" 25 | ], 26 | "main": "dist/vue-mapbox-geocoder.umd.js", 27 | "module": "src/main.js", 28 | "scripts": { 29 | "build": "vue-cli-service build --target lib --name vue-mapbox-geocoder src/main.js", 30 | "serve": "vue-cli-service build --target lib --name vue-mapbox-geocoder src/main.js --watch", 31 | "lint": "vue-cli-service lint" 32 | }, 33 | "peerDependencies": { 34 | "vue": "^2.6.6", 35 | "mapbox-gl": "^0.53.0", 36 | "vue-mapbox": "^0.2.0", 37 | "@mapbox/mapbox-gl-geocoder": "^3.1.1" 38 | }, 39 | "devDependencies": { 40 | "@vue/cli-plugin-babel": "^3.4.0", 41 | "@vue/cli-plugin-eslint": "^3.4.0", 42 | "@vue/cli-service": "^3.4.0", 43 | "@vue/eslint-config-prettier": "^4.0.1", 44 | "babel-eslint": "^10.0.1", 45 | "eslint": "^5.8.0", 46 | "eslint-plugin-vue": "^5.0.0", 47 | "lint-staged": "^8.1.0", 48 | "vue-template-compiler": "^2.5.21" 49 | }, 50 | "gitHooks": { 51 | "pre-commit": "lint-staged" 52 | }, 53 | "lint-staged": { 54 | "*.js": [ 55 | "vue-cli-service lint", 56 | "git add" 57 | ], 58 | "*.vue": [ 59 | "vue-cli-service lint", 60 | "git add" 61 | ] 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soal/vue-mapbox-geocoder/bbea34b2d59b7e0f256cd9e9c97399970af9d433/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | vue-mapbox-geocoder 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/GeocoderControl.js: -------------------------------------------------------------------------------- 1 | import MapboxGeocoder from "@mapbox/mapbox-gl-geocoder"; 2 | import { $helpers } from "vue-mapbox"; 3 | 4 | const geocoderEvents = { 5 | clear: "clear", 6 | loading: "loading", 7 | results: "results", 8 | result: "result", 9 | error: "error" 10 | }; 11 | 12 | export default { 13 | name: "GeocoderControl", 14 | mixins: [$helpers.asControl], 15 | 16 | inject: ["mapbox", "map"], 17 | 18 | props: { 19 | // Mapbox-geocoder options 20 | accessToken: { 21 | type: String, 22 | required: true 23 | }, 24 | zoom: { 25 | type: Number, 26 | default: 16 27 | }, 28 | flyTo: { 29 | type: Boolean, 30 | default: true 31 | }, 32 | placeholder: { 33 | type: String, 34 | default: "Search" 35 | }, 36 | proximity: { 37 | type: Object, 38 | default: null 39 | }, 40 | trackProximity: { 41 | type: Boolean, 42 | default: false 43 | }, 44 | bbox: { 45 | type: Array, 46 | default: null 47 | }, 48 | types: { 49 | type: String, 50 | default: null 51 | }, 52 | country: { 53 | type: String, 54 | default: null 55 | }, 56 | minLength: { 57 | type: Number, 58 | default: 2 59 | }, 60 | limit: { 61 | type: Number, 62 | default: 5 63 | }, 64 | language: { 65 | type: String, 66 | default: null 67 | }, 68 | filter: { 69 | type: Function, 70 | default: null 71 | }, 72 | localGeocoder: { 73 | type: Function, 74 | default: null 75 | }, 76 | // Component options 77 | input: { 78 | type: String, 79 | default: null 80 | } 81 | }, 82 | 83 | data() { 84 | return { 85 | initial: true 86 | }; 87 | }, 88 | 89 | watch: { 90 | input: { 91 | handler(next, prev) { 92 | if (this.control && next !== prev) { 93 | this.control.setInput(next); 94 | } 95 | }, 96 | immediate: true 97 | }, 98 | proximity(next, prev) { 99 | if (this.control && next !== prev) { 100 | this.control.setProximity(next); 101 | } 102 | } 103 | }, 104 | 105 | created() { 106 | this.control = null; 107 | if (this.accessToken && !this.mapbox.accessToken) { 108 | this.mapbox.accessToken = this.accessToken; 109 | } 110 | this.control = new MapboxGeocoder(this.$props); 111 | this.control.on("results", this.$_updateInput); 112 | 113 | this.$_deferredMount(); 114 | }, 115 | 116 | beforeDestroy() { 117 | this.control.off("results", this.$_updateInput); 118 | }, 119 | 120 | methods: { 121 | $_deferredMount() { 122 | this.map.addControl(this.control); 123 | if (this.input) { 124 | this.control.setInput(this.input); 125 | } 126 | this.$_emitEvent("added", { geocoder: this.control }); 127 | this.$_bindSelfEvents(Object.keys(geocoderEvents)); 128 | this.initial = false; 129 | }, 130 | 131 | $_bindSelfEvents(events) { 132 | const vm = this; 133 | Object.keys(this.$listeners).forEach(eventName => { 134 | if (events.includes(eventName)) { 135 | this.control.on(eventName, vm.$_emitControlEvent.bind(vm, eventName)); 136 | } 137 | }); 138 | }, 139 | 140 | $_emitControlEvent(eventName, eventData) { 141 | return this.$_emitSelfEvent({ type: eventName }, eventData); 142 | }, 143 | 144 | $_updateInput(results) { 145 | if (!this.initial) { 146 | const input = results.query ? results.query.join("") : ""; 147 | this.$emit("update:input", input); 148 | } 149 | }, 150 | 151 | query(query) { 152 | if (this.control) { 153 | this.$emit("update:input", query); 154 | return this.contol.query(query); 155 | } 156 | return null; 157 | } 158 | } 159 | }; 160 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import GeocoderControl from "./GeocoderControl"; 2 | 3 | export default GeocoderControl; 4 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | productionSourceMap: false, 3 | configureWebpack: { 4 | output: { 5 | libraryExport: "default" 6 | }, 7 | externals: { 8 | "@mapbox/mapbox-gl-geocoder": { 9 | commonjs: "@mapbox/mapbox-gl-geocoder", 10 | commonjs2: "@mapbox/mapbox-gl-geocoder", 11 | amd: "@mapbox/mapbox-gl-geocoder", 12 | root: "mapbox-gl-geocoder" 13 | }, 14 | "vue-mapbox": { 15 | commonjs: "vue-mapbox", 16 | commonjs2: "vue-mapbox", 17 | amd: "vue-mapbox", 18 | root: "vue-mapbox" 19 | } 20 | } 21 | } 22 | }; 23 | --------------------------------------------------------------------------------