[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> url.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["url"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = 427);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 2:
  91  /***/ (function(module, exports) {
  92  
  93  (function() { module.exports = this["lodash"]; }());
  94  
  95  /***/ }),
  96  
  97  /***/ 256:
  98  /***/ (function(module, exports, __webpack_require__) {
  99  
 100  "use strict";
 101  
 102  
 103  var has = Object.prototype.hasOwnProperty;
 104  var isArray = Array.isArray;
 105  
 106  var hexTable = (function () {
 107      var array = [];
 108      for (var i = 0; i < 256; ++i) {
 109          array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
 110      }
 111  
 112      return array;
 113  }());
 114  
 115  var compactQueue = function compactQueue(queue) {
 116      while (queue.length > 1) {
 117          var item = queue.pop();
 118          var obj = item.obj[item.prop];
 119  
 120          if (isArray(obj)) {
 121              var compacted = [];
 122  
 123              for (var j = 0; j < obj.length; ++j) {
 124                  if (typeof obj[j] !== 'undefined') {
 125                      compacted.push(obj[j]);
 126                  }
 127              }
 128  
 129              item.obj[item.prop] = compacted;
 130          }
 131      }
 132  };
 133  
 134  var arrayToObject = function arrayToObject(source, options) {
 135      var obj = options && options.plainObjects ? Object.create(null) : {};
 136      for (var i = 0; i < source.length; ++i) {
 137          if (typeof source[i] !== 'undefined') {
 138              obj[i] = source[i];
 139          }
 140      }
 141  
 142      return obj;
 143  };
 144  
 145  var merge = function merge(target, source, options) {
 146      if (!source) {
 147          return target;
 148      }
 149  
 150      if (typeof source !== 'object') {
 151          if (isArray(target)) {
 152              target.push(source);
 153          } else if (target && typeof target === 'object') {
 154              if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
 155                  target[source] = true;
 156              }
 157          } else {
 158              return [target, source];
 159          }
 160  
 161          return target;
 162      }
 163  
 164      if (!target || typeof target !== 'object') {
 165          return [target].concat(source);
 166      }
 167  
 168      var mergeTarget = target;
 169      if (isArray(target) && !isArray(source)) {
 170          mergeTarget = arrayToObject(target, options);
 171      }
 172  
 173      if (isArray(target) && isArray(source)) {
 174          source.forEach(function (item, i) {
 175              if (has.call(target, i)) {
 176                  var targetItem = target[i];
 177                  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
 178                      target[i] = merge(targetItem, item, options);
 179                  } else {
 180                      target.push(item);
 181                  }
 182              } else {
 183                  target[i] = item;
 184              }
 185          });
 186          return target;
 187      }
 188  
 189      return Object.keys(source).reduce(function (acc, key) {
 190          var value = source[key];
 191  
 192          if (has.call(acc, key)) {
 193              acc[key] = merge(acc[key], value, options);
 194          } else {
 195              acc[key] = value;
 196          }
 197          return acc;
 198      }, mergeTarget);
 199  };
 200  
 201  var assign = function assignSingleSource(target, source) {
 202      return Object.keys(source).reduce(function (acc, key) {
 203          acc[key] = source[key];
 204          return acc;
 205      }, target);
 206  };
 207  
 208  var decode = function (str, decoder, charset) {
 209      var strWithoutPlus = str.replace(/\+/g, ' ');
 210      if (charset === 'iso-8859-1') {
 211          // unescape never throws, no try...catch needed:
 212          return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
 213      }
 214      // utf-8
 215      try {
 216          return decodeURIComponent(strWithoutPlus);
 217      } catch (e) {
 218          return strWithoutPlus;
 219      }
 220  };
 221  
 222  var encode = function encode(str, defaultEncoder, charset) {
 223      // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
 224      // It has been adapted here for stricter adherence to RFC 3986
 225      if (str.length === 0) {
 226          return str;
 227      }
 228  
 229      var string = typeof str === 'string' ? str : String(str);
 230  
 231      if (charset === 'iso-8859-1') {
 232          return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
 233              return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
 234          });
 235      }
 236  
 237      var out = '';
 238      for (var i = 0; i < string.length; ++i) {
 239          var c = string.charCodeAt(i);
 240  
 241          if (
 242              c === 0x2D // -
 243              || c === 0x2E // .
 244              || c === 0x5F // _
 245              || c === 0x7E // ~
 246              || (c >= 0x30 && c <= 0x39) // 0-9
 247              || (c >= 0x41 && c <= 0x5A) // a-z
 248              || (c >= 0x61 && c <= 0x7A) // A-Z
 249          ) {
 250              out += string.charAt(i);
 251              continue;
 252          }
 253  
 254          if (c < 0x80) {
 255              out = out + hexTable[c];
 256              continue;
 257          }
 258  
 259          if (c < 0x800) {
 260              out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
 261              continue;
 262          }
 263  
 264          if (c < 0xD800 || c >= 0xE000) {
 265              out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
 266              continue;
 267          }
 268  
 269          i += 1;
 270          c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
 271          out += hexTable[0xF0 | (c >> 18)]
 272              + hexTable[0x80 | ((c >> 12) & 0x3F)]
 273              + hexTable[0x80 | ((c >> 6) & 0x3F)]
 274              + hexTable[0x80 | (c & 0x3F)];
 275      }
 276  
 277      return out;
 278  };
 279  
 280  var compact = function compact(value) {
 281      var queue = [{ obj: { o: value }, prop: 'o' }];
 282      var refs = [];
 283  
 284      for (var i = 0; i < queue.length; ++i) {
 285          var item = queue[i];
 286          var obj = item.obj[item.prop];
 287  
 288          var keys = Object.keys(obj);
 289          for (var j = 0; j < keys.length; ++j) {
 290              var key = keys[j];
 291              var val = obj[key];
 292              if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
 293                  queue.push({ obj: obj, prop: key });
 294                  refs.push(val);
 295              }
 296          }
 297      }
 298  
 299      compactQueue(queue);
 300  
 301      return value;
 302  };
 303  
 304  var isRegExp = function isRegExp(obj) {
 305      return Object.prototype.toString.call(obj) === '[object RegExp]';
 306  };
 307  
 308  var isBuffer = function isBuffer(obj) {
 309      if (!obj || typeof obj !== 'object') {
 310          return false;
 311      }
 312  
 313      return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
 314  };
 315  
 316  var combine = function combine(a, b) {
 317      return [].concat(a, b);
 318  };
 319  
 320  module.exports = {
 321      arrayToObject: arrayToObject,
 322      assign: assign,
 323      combine: combine,
 324      compact: compact,
 325      decode: decode,
 326      encode: encode,
 327      isBuffer: isBuffer,
 328      isRegExp: isRegExp,
 329      merge: merge
 330  };
 331  
 332  
 333  /***/ }),
 334  
 335  /***/ 257:
 336  /***/ (function(module, exports, __webpack_require__) {
 337  
 338  "use strict";
 339  
 340  
 341  var replace = String.prototype.replace;
 342  var percentTwenties = /%20/g;
 343  
 344  module.exports = {
 345      'default': 'RFC3986',
 346      formatters: {
 347          RFC1738: function (value) {
 348              return replace.call(value, percentTwenties, '+');
 349          },
 350          RFC3986: function (value) {
 351              return value;
 352          }
 353      },
 354      RFC1738: 'RFC1738',
 355      RFC3986: 'RFC3986'
 356  };
 357  
 358  
 359  /***/ }),
 360  
 361  /***/ 417:
 362  /***/ (function(module, exports, __webpack_require__) {
 363  
 364  "use strict";
 365  
 366  
 367  var utils = __webpack_require__(256);
 368  var formats = __webpack_require__(257);
 369  var has = Object.prototype.hasOwnProperty;
 370  
 371  var arrayPrefixGenerators = {
 372      brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
 373          return prefix + '[]';
 374      },
 375      comma: 'comma',
 376      indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
 377          return prefix + '[' + key + ']';
 378      },
 379      repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
 380          return prefix;
 381      }
 382  };
 383  
 384  var isArray = Array.isArray;
 385  var push = Array.prototype.push;
 386  var pushToArray = function (arr, valueOrArray) {
 387      push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
 388  };
 389  
 390  var toISO = Date.prototype.toISOString;
 391  
 392  var defaults = {
 393      addQueryPrefix: false,
 394      allowDots: false,
 395      charset: 'utf-8',
 396      charsetSentinel: false,
 397      delimiter: '&',
 398      encode: true,
 399      encoder: utils.encode,
 400      encodeValuesOnly: false,
 401      formatter: formats.formatters[formats['default']],
 402      // deprecated
 403      indices: false,
 404      serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
 405          return toISO.call(date);
 406      },
 407      skipNulls: false,
 408      strictNullHandling: false
 409  };
 410  
 411  var stringify = function stringify( // eslint-disable-line func-name-matching
 412      object,
 413      prefix,
 414      generateArrayPrefix,
 415      strictNullHandling,
 416      skipNulls,
 417      encoder,
 418      filter,
 419      sort,
 420      allowDots,
 421      serializeDate,
 422      formatter,
 423      encodeValuesOnly,
 424      charset
 425  ) {
 426      var obj = object;
 427      if (typeof filter === 'function') {
 428          obj = filter(prefix, obj);
 429      } else if (obj instanceof Date) {
 430          obj = serializeDate(obj);
 431      } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
 432          obj = obj.join(',');
 433      }
 434  
 435      if (obj === null) {
 436          if (strictNullHandling) {
 437              return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset) : prefix;
 438          }
 439  
 440          obj = '';
 441      }
 442  
 443      if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
 444          if (encoder) {
 445              var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset);
 446              return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset))];
 447          }
 448          return [formatter(prefix) + '=' + formatter(String(obj))];
 449      }
 450  
 451      var values = [];
 452  
 453      if (typeof obj === 'undefined') {
 454          return values;
 455      }
 456  
 457      var objKeys;
 458      if (isArray(filter)) {
 459          objKeys = filter;
 460      } else {
 461          var keys = Object.keys(obj);
 462          objKeys = sort ? keys.sort(sort) : keys;
 463      }
 464  
 465      for (var i = 0; i < objKeys.length; ++i) {
 466          var key = objKeys[i];
 467  
 468          if (skipNulls && obj[key] === null) {
 469              continue;
 470          }
 471  
 472          if (isArray(obj)) {
 473              pushToArray(values, stringify(
 474                  obj[key],
 475                  typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix,
 476                  generateArrayPrefix,
 477                  strictNullHandling,
 478                  skipNulls,
 479                  encoder,
 480                  filter,
 481                  sort,
 482                  allowDots,
 483                  serializeDate,
 484                  formatter,
 485                  encodeValuesOnly,
 486                  charset
 487              ));
 488          } else {
 489              pushToArray(values, stringify(
 490                  obj[key],
 491                  prefix + (allowDots ? '.' + key : '[' + key + ']'),
 492                  generateArrayPrefix,
 493                  strictNullHandling,
 494                  skipNulls,
 495                  encoder,
 496                  filter,
 497                  sort,
 498                  allowDots,
 499                  serializeDate,
 500                  formatter,
 501                  encodeValuesOnly,
 502                  charset
 503              ));
 504          }
 505      }
 506  
 507      return values;
 508  };
 509  
 510  var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
 511      if (!opts) {
 512          return defaults;
 513      }
 514  
 515      if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
 516          throw new TypeError('Encoder has to be a function.');
 517      }
 518  
 519      var charset = opts.charset || defaults.charset;
 520      if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
 521          throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
 522      }
 523  
 524      var format = formats['default'];
 525      if (typeof opts.format !== 'undefined') {
 526          if (!has.call(formats.formatters, opts.format)) {
 527              throw new TypeError('Unknown format option provided.');
 528          }
 529          format = opts.format;
 530      }
 531      var formatter = formats.formatters[format];
 532  
 533      var filter = defaults.filter;
 534      if (typeof opts.filter === 'function' || isArray(opts.filter)) {
 535          filter = opts.filter;
 536      }
 537  
 538      return {
 539          addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
 540          allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
 541          charset: charset,
 542          charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
 543          delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
 544          encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
 545          encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
 546          encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
 547          filter: filter,
 548          formatter: formatter,
 549          serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
 550          skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
 551          sort: typeof opts.sort === 'function' ? opts.sort : null,
 552          strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
 553      };
 554  };
 555  
 556  module.exports = function (object, opts) {
 557      var obj = object;
 558      var options = normalizeStringifyOptions(opts);
 559  
 560      var objKeys;
 561      var filter;
 562  
 563      if (typeof options.filter === 'function') {
 564          filter = options.filter;
 565          obj = filter('', obj);
 566      } else if (isArray(options.filter)) {
 567          filter = options.filter;
 568          objKeys = filter;
 569      }
 570  
 571      var keys = [];
 572  
 573      if (typeof obj !== 'object' || obj === null) {
 574          return '';
 575      }
 576  
 577      var arrayFormat;
 578      if (opts && opts.arrayFormat in arrayPrefixGenerators) {
 579          arrayFormat = opts.arrayFormat;
 580      } else if (opts && 'indices' in opts) {
 581          arrayFormat = opts.indices ? 'indices' : 'repeat';
 582      } else {
 583          arrayFormat = 'indices';
 584      }
 585  
 586      var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
 587  
 588      if (!objKeys) {
 589          objKeys = Object.keys(obj);
 590      }
 591  
 592      if (options.sort) {
 593          objKeys.sort(options.sort);
 594      }
 595  
 596      for (var i = 0; i < objKeys.length; ++i) {
 597          var key = objKeys[i];
 598  
 599          if (options.skipNulls && obj[key] === null) {
 600              continue;
 601          }
 602          pushToArray(keys, stringify(
 603              obj[key],
 604              key,
 605              generateArrayPrefix,
 606              options.strictNullHandling,
 607              options.skipNulls,
 608              options.encode ? options.encoder : null,
 609              options.filter,
 610              options.sort,
 611              options.allowDots,
 612              options.serializeDate,
 613              options.formatter,
 614              options.encodeValuesOnly,
 615              options.charset
 616          ));
 617      }
 618  
 619      var joined = keys.join(options.delimiter);
 620      var prefix = options.addQueryPrefix === true ? '?' : '';
 621  
 622      if (options.charsetSentinel) {
 623          if (options.charset === 'iso-8859-1') {
 624              // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
 625              prefix += 'utf8=%26%2310003%3B&';
 626          } else {
 627              // encodeURIComponent('✓')
 628              prefix += 'utf8=%E2%9C%93&';
 629          }
 630      }
 631  
 632      return joined.length > 0 ? prefix + joined : '';
 633  };
 634  
 635  
 636  /***/ }),
 637  
 638  /***/ 418:
 639  /***/ (function(module, exports, __webpack_require__) {
 640  
 641  "use strict";
 642  
 643  
 644  var utils = __webpack_require__(256);
 645  
 646  var has = Object.prototype.hasOwnProperty;
 647  
 648  var defaults = {
 649      allowDots: false,
 650      allowPrototypes: false,
 651      arrayLimit: 20,
 652      charset: 'utf-8',
 653      charsetSentinel: false,
 654      comma: false,
 655      decoder: utils.decode,
 656      delimiter: '&',
 657      depth: 5,
 658      ignoreQueryPrefix: false,
 659      interpretNumericEntities: false,
 660      parameterLimit: 1000,
 661      parseArrays: true,
 662      plainObjects: false,
 663      strictNullHandling: false
 664  };
 665  
 666  var interpretNumericEntities = function (str) {
 667      return str.replace(/&#(\d+);/g, function ($0, numberStr) {
 668          return String.fromCharCode(parseInt(numberStr, 10));
 669      });
 670  };
 671  
 672  // This is what browsers will submit when the ✓ character occurs in an
 673  // application/x-www-form-urlencoded body and the encoding of the page containing
 674  // the form is iso-8859-1, or when the submitted form has an accept-charset
 675  // attribute of iso-8859-1. Presumably also with other charsets that do not contain
 676  // the ✓ character, such as us-ascii.
 677  var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
 678  
 679  // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
 680  var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
 681  
 682  var parseValues = function parseQueryStringValues(str, options) {
 683      var obj = {};
 684      var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
 685      var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
 686      var parts = cleanStr.split(options.delimiter, limit);
 687      var skipIndex = -1; // Keep track of where the utf8 sentinel was found
 688      var i;
 689  
 690      var charset = options.charset;
 691      if (options.charsetSentinel) {
 692          for (i = 0; i < parts.length; ++i) {
 693              if (parts[i].indexOf('utf8=') === 0) {
 694                  if (parts[i] === charsetSentinel) {
 695                      charset = 'utf-8';
 696                  } else if (parts[i] === isoSentinel) {
 697                      charset = 'iso-8859-1';
 698                  }
 699                  skipIndex = i;
 700                  i = parts.length; // The eslint settings do not allow break;
 701              }
 702          }
 703      }
 704  
 705      for (i = 0; i < parts.length; ++i) {
 706          if (i === skipIndex) {
 707              continue;
 708          }
 709          var part = parts[i];
 710  
 711          var bracketEqualsPos = part.indexOf(']=');
 712          var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
 713  
 714          var key, val;
 715          if (pos === -1) {
 716              key = options.decoder(part, defaults.decoder, charset);
 717              val = options.strictNullHandling ? null : '';
 718          } else {
 719              key = options.decoder(part.slice(0, pos), defaults.decoder, charset);
 720              val = options.decoder(part.slice(pos + 1), defaults.decoder, charset);
 721          }
 722  
 723          if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
 724              val = interpretNumericEntities(val);
 725          }
 726  
 727          if (val && options.comma && val.indexOf(',') > -1) {
 728              val = val.split(',');
 729          }
 730  
 731          if (has.call(obj, key)) {
 732              obj[key] = utils.combine(obj[key], val);
 733          } else {
 734              obj[key] = val;
 735          }
 736      }
 737  
 738      return obj;
 739  };
 740  
 741  var parseObject = function (chain, val, options) {
 742      var leaf = val;
 743  
 744      for (var i = chain.length - 1; i >= 0; --i) {
 745          var obj;
 746          var root = chain[i];
 747  
 748          if (root === '[]' && options.parseArrays) {
 749              obj = [].concat(leaf);
 750          } else {
 751              obj = options.plainObjects ? Object.create(null) : {};
 752              var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
 753              var index = parseInt(cleanRoot, 10);
 754              if (!options.parseArrays && cleanRoot === '') {
 755                  obj = { 0: leaf };
 756              } else if (
 757                  !isNaN(index)
 758                  && root !== cleanRoot
 759                  && String(index) === cleanRoot
 760                  && index >= 0
 761                  && (options.parseArrays && index <= options.arrayLimit)
 762              ) {
 763                  obj = [];
 764                  obj[index] = leaf;
 765              } else {
 766                  obj[cleanRoot] = leaf;
 767              }
 768          }
 769  
 770          leaf = obj;
 771      }
 772  
 773      return leaf;
 774  };
 775  
 776  var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
 777      if (!givenKey) {
 778          return;
 779      }
 780  
 781      // Transform dot notation to bracket notation
 782      var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
 783  
 784      // The regex chunks
 785  
 786      var brackets = /(\[[^[\]]*])/;
 787      var child = /(\[[^[\]]*])/g;
 788  
 789      // Get the parent
 790  
 791      var segment = brackets.exec(key);
 792      var parent = segment ? key.slice(0, segment.index) : key;
 793  
 794      // Stash the parent if it exists
 795  
 796      var keys = [];
 797      if (parent) {
 798          // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
 799          if (!options.plainObjects && has.call(Object.prototype, parent)) {
 800              if (!options.allowPrototypes) {
 801                  return;
 802              }
 803          }
 804  
 805          keys.push(parent);
 806      }
 807  
 808      // Loop through children appending to the array until we hit depth
 809  
 810      var i = 0;
 811      while ((segment = child.exec(key)) !== null && i < options.depth) {
 812          i += 1;
 813          if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
 814              if (!options.allowPrototypes) {
 815                  return;
 816              }
 817          }
 818          keys.push(segment[1]);
 819      }
 820  
 821      // If there's a remainder, just add whatever is left
 822  
 823      if (segment) {
 824          keys.push('[' + key.slice(segment.index) + ']');
 825      }
 826  
 827      return parseObject(keys, val, options);
 828  };
 829  
 830  var normalizeParseOptions = function normalizeParseOptions(opts) {
 831      if (!opts) {
 832          return defaults;
 833      }
 834  
 835      if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
 836          throw new TypeError('Decoder has to be a function.');
 837      }
 838  
 839      if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
 840          throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined');
 841      }
 842      var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
 843  
 844      return {
 845          allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
 846          allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
 847          arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
 848          charset: charset,
 849          charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
 850          comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
 851          decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
 852          delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
 853          depth: typeof opts.depth === 'number' ? opts.depth : defaults.depth,
 854          ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
 855          interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
 856          parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
 857          parseArrays: opts.parseArrays !== false,
 858          plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
 859          strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
 860      };
 861  };
 862  
 863  module.exports = function (str, opts) {
 864      var options = normalizeParseOptions(opts);
 865  
 866      if (str === '' || str === null || typeof str === 'undefined') {
 867          return options.plainObjects ? Object.create(null) : {};
 868      }
 869  
 870      var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
 871      var obj = options.plainObjects ? Object.create(null) : {};
 872  
 873      // Iterate over the keys and setup the new object
 874  
 875      var keys = Object.keys(tempObj);
 876      for (var i = 0; i < keys.length; ++i) {
 877          var key = keys[i];
 878          var newObj = parseKeys(key, tempObj[key], options);
 879          obj = utils.merge(obj, newObj, options);
 880      }
 881  
 882      return utils.compact(obj);
 883  };
 884  
 885  
 886  /***/ }),
 887  
 888  /***/ 427:
 889  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 890  
 891  "use strict";
 892  __webpack_require__.r(__webpack_exports__);
 893  
 894  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-url.js
 895  /**
 896   * Determines whether the given string looks like a URL.
 897   *
 898   * @param {string} url The string to scrutinise.
 899   *
 900   * @example
 901   * ```js
 902   * const isURL = isURL( 'https://wordpress.org' ); // true
 903   * ```
 904   *
 905   * @see https://url.spec.whatwg.org/
 906   * @see https://url.spec.whatwg.org/#valid-url-string
 907   *
 908   * @return {boolean} Whether or not it looks like a URL.
 909   */
 910  function isURL(url) {
 911    // A URL can be considered value if the `URL` constructor is able to parse
 912    // it. The constructor throws an error for an invalid URL.
 913    try {
 914      new URL(url);
 915      return true;
 916    } catch (error) {
 917      return false;
 918    }
 919  }
 920  
 921  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-email.js
 922  var EMAIL_REGEXP = /^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;
 923  /**
 924   * Determines whether the given string looks like an email.
 925   *
 926   * @param {string} email The string to scrutinise.
 927   *
 928   * @example
 929   * ```js
 930   * const isEmail = isEmail( 'hello@wordpress.org' ); // true
 931   * ```
 932   *
 933   * @return {boolean} Whether or not it looks like an email.
 934   */
 935  
 936  function isEmail(email) {
 937    return EMAIL_REGEXP.test(email);
 938  }
 939  
 940  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-protocol.js
 941  /**
 942   * Returns the protocol part of the URL.
 943   *
 944   * @param {string} url The full URL.
 945   *
 946   * @example
 947   * ```js
 948   * const protocol1 = getProtocol( 'tel:012345678' ); // 'tel:'
 949   * const protocol2 = getProtocol( 'https://wordpress.org' ); // 'https:'
 950   * ```
 951   *
 952   * @return {string|void} The protocol part of the URL.
 953   */
 954  function getProtocol(url) {
 955    var matches = /^([^\s:]+:)/.exec(url);
 956  
 957    if (matches) {
 958      return matches[1];
 959    }
 960  }
 961  
 962  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-valid-protocol.js
 963  /**
 964   * Tests if a url protocol is valid.
 965   *
 966   * @param {string} protocol The url protocol.
 967   *
 968   * @example
 969   * ```js
 970   * const isValid = isValidProtocol( 'https:' ); // true
 971   * const isNotValid = isValidProtocol( 'https :' ); // false
 972   * ```
 973   *
 974   * @return {boolean} True if the argument is a valid protocol (e.g. http:, tel:).
 975   */
 976  function isValidProtocol(protocol) {
 977    if (!protocol) {
 978      return false;
 979    }
 980  
 981    return /^[a-z\-.\+]+[0-9]*:$/i.test(protocol);
 982  }
 983  
 984  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-authority.js
 985  /**
 986   * Returns the authority part of the URL.
 987   *
 988   * @param {string} url The full URL.
 989   *
 990   * @example
 991   * ```js
 992   * const authority1 = getAuthority( 'https://wordpress.org/help/' ); // 'wordpress.org'
 993   * const authority2 = getAuthority( 'https://localhost:8080/test/' ); // 'localhost:8080'
 994   * ```
 995   *
 996   * @return {string|void} The authority part of the URL.
 997   */
 998  function getAuthority(url) {
 999    var matches = /^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(url);
1000  
1001    if (matches) {
1002      return matches[1];
1003    }
1004  }
1005  
1006  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-valid-authority.js
1007  /**
1008   * Checks for invalid characters within the provided authority.
1009   *
1010   * @param {string} authority A string containing the URL authority.
1011   *
1012   * @example
1013   * ```js
1014   * const isValid = isValidAuthority( 'wordpress.org' ); // true
1015   * const isNotValid = isValidAuthority( 'wordpress#org' ); // false
1016   * ```
1017   *
1018   * @return {boolean} True if the argument contains a valid authority.
1019   */
1020  function isValidAuthority(authority) {
1021    if (!authority) {
1022      return false;
1023    }
1024  
1025    return /^[^\s#?]+$/.test(authority);
1026  }
1027  
1028  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-path.js
1029  /**
1030   * Returns the path part of the URL.
1031   *
1032   * @param {string} url The full URL.
1033   *
1034   * @example
1035   * ```js
1036   * const path1 = getPath( 'http://localhost:8080/this/is/a/test?query=true' ); // 'this/is/a/test'
1037   * const path2 = getPath( 'https://wordpress.org/help/faq/' ); // 'help/faq'
1038   * ```
1039   *
1040   * @return {string|void} The path part of the URL.
1041   */
1042  function getPath(url) {
1043    var matches = /^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(url);
1044  
1045    if (matches) {
1046      return matches[1];
1047    }
1048  }
1049  
1050  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-valid-path.js
1051  /**
1052   * Checks for invalid characters within the provided path.
1053   *
1054   * @param {string} path The URL path.
1055   *
1056   * @example
1057   * ```js
1058   * const isValid = isValidPath( 'test/path/' ); // true
1059   * const isNotValid = isValidPath( '/invalid?test/path/' ); // false
1060   * ```
1061   *
1062   * @return {boolean} True if the argument contains a valid path
1063   */
1064  function isValidPath(path) {
1065    if (!path) {
1066      return false;
1067    }
1068  
1069    return /^[^\s#?]+$/.test(path);
1070  }
1071  
1072  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-query-string.js
1073  /**
1074   * Returns the query string part of the URL.
1075   *
1076   * @param {string} url The full URL.
1077   *
1078   * @example
1079   * ```js
1080   * const queryString1 = getQueryString( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // 'query=true'
1081   * const queryString2 = getQueryString( 'https://wordpress.org#fragment?query=false&search=hello' ); // 'query=false&search=hello'
1082   * ```
1083   *
1084   * @return {string|void} The query string part of the URL.
1085   */
1086  function getQueryString(url) {
1087    var matches = /^\S+?\?([^\s#]+)/.exec(url);
1088  
1089    if (matches) {
1090      return matches[1];
1091    }
1092  }
1093  
1094  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-valid-query-string.js
1095  /**
1096   * Checks for invalid characters within the provided query string.
1097   *
1098   * @param {string} queryString The query string.
1099   *
1100   * @example
1101   * ```js
1102   * const isValid = isValidQueryString( 'query=true&another=false' ); // true
1103   * const isNotValid = isValidQueryString( 'query=true?another=false' ); // false
1104   * ```
1105   *
1106   * @return {boolean} True if the argument contains a valid query string.
1107   */
1108  function isValidQueryString(queryString) {
1109    if (!queryString) {
1110      return false;
1111    }
1112  
1113    return /^[^\s#?\/]+$/.test(queryString);
1114  }
1115  
1116  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-fragment.js
1117  /**
1118   * Returns the fragment part of the URL.
1119   *
1120   * @param {string} url The full URL
1121   *
1122   * @example
1123   * ```js
1124   * const fragment1 = getFragment( 'http://localhost:8080/this/is/a/test?query=true#fragment' ); // '#fragment'
1125   * const fragment2 = getFragment( 'https://wordpress.org#another-fragment?query=true' ); // '#another-fragment'
1126   * ```
1127   *
1128   * @return {string|void} The fragment part of the URL.
1129   */
1130  function getFragment(url) {
1131    var matches = /^\S+?(#[^\s\?]*)/.exec(url);
1132  
1133    if (matches) {
1134      return matches[1];
1135    }
1136  }
1137  
1138  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/is-valid-fragment.js
1139  /**
1140   * Checks for invalid characters within the provided fragment.
1141   *
1142   * @param {string} fragment The url fragment.
1143   *
1144   * @example
1145   * ```js
1146   * const isValid = isValidFragment( '#valid-fragment' ); // true
1147   * const isNotValid = isValidFragment( '#invalid-#fragment' ); // false
1148   * ```
1149   *
1150   * @return {boolean} True if the argument contains a valid fragment.
1151   */
1152  function isValidFragment(fragment) {
1153    if (!fragment) {
1154      return false;
1155    }
1156  
1157    return /^#[^\s#?\/]*$/.test(fragment);
1158  }
1159  
1160  // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
1161  var lib = __webpack_require__(92);
1162  
1163  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/add-query-args.js
1164  /**
1165   * External dependencies
1166   */
1167  
1168  /**
1169   * Appends arguments as querystring to the provided URL. If the URL already
1170   * includes query arguments, the arguments are merged with (and take precedent
1171   * over) the existing set.
1172   *
1173   * @param {string} [url='']  URL to which arguments should be appended. If omitted,
1174   *                           only the resulting querystring is returned.
1175   * @param {Object} args      Query arguments to apply to URL.
1176   *
1177   * @example
1178   * ```js
1179   * const newURL = addQueryArgs( 'https://google.com', { q: 'test' } ); // https://google.com/?q=test
1180   * ```
1181   *
1182   * @return {string} URL with arguments applied.
1183   */
1184  
1185  function addQueryArgs() {
1186    var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1187    var args = arguments.length > 1 ? arguments[1] : undefined;
1188  
1189    // If no arguments are to be appended, return original URL.
1190    if (!args || !Object.keys(args).length) {
1191      return url;
1192    }
1193  
1194    var baseUrl = url; // Determine whether URL already had query arguments.
1195  
1196    var queryStringIndex = url.indexOf('?');
1197  
1198    if (queryStringIndex !== -1) {
1199      // Merge into existing query arguments.
1200      args = Object.assign(Object(lib["parse"])(url.substr(queryStringIndex + 1)), args); // Change working base URL to omit previous query arguments.
1201  
1202      baseUrl = baseUrl.substr(0, queryStringIndex);
1203    }
1204  
1205    return baseUrl + '?' + Object(lib["stringify"])(args);
1206  }
1207  
1208  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/get-query-arg.js
1209  /**
1210   * External dependencies
1211   */
1212  
1213  /**
1214   * @typedef {{[key: string]: QueryArgParsed}} QueryArgObject
1215   */
1216  
1217  /**
1218   * @typedef {string|string[]|QueryArgObject} QueryArgParsed
1219   */
1220  
1221  /**
1222   * Returns a single query argument of the url
1223   *
1224   * @param {string} url URL.
1225   * @param {string} arg Query arg name.
1226   *
1227   * @example
1228   * ```js
1229   * const foo = getQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'foo' ); // bar
1230   * ```
1231   *
1232   * @return {QueryArgParsed|undefined} Query arg value.
1233   */
1234  
1235  function getQueryArg(url, arg) {
1236    var queryStringIndex = url.indexOf('?');
1237    var query = queryStringIndex !== -1 ? Object(lib["parse"])(url.substr(queryStringIndex + 1)) : {};
1238    return query[arg];
1239  }
1240  
1241  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/has-query-arg.js
1242  /**
1243   * Internal dependencies
1244   */
1245  
1246  /**
1247   * Determines whether the URL contains a given query arg.
1248   *
1249   * @param {string} url URL.
1250   * @param {string} arg Query arg name.
1251   *
1252   * @example
1253   * ```js
1254   * const hasBar = hasQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'bar' ); // true
1255   * ```
1256   *
1257   * @return {boolean} Whether or not the URL contains the query arg.
1258   */
1259  
1260  function hasQueryArg(url, arg) {
1261    return getQueryArg(url, arg) !== undefined;
1262  }
1263  
1264  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/remove-query-args.js
1265  /**
1266   * External dependencies
1267   */
1268  
1269  /**
1270   * Removes arguments from the query string of the url
1271   *
1272   * @param {string}    url  URL.
1273   * @param {...string} args Query Args.
1274   *
1275   * @example
1276   * ```js
1277   * const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar
1278   * ```
1279   *
1280   * @return {string} Updated URL.
1281   */
1282  
1283  function removeQueryArgs(url) {
1284    var queryStringIndex = url.indexOf('?');
1285    var query = queryStringIndex !== -1 ? Object(lib["parse"])(url.substr(queryStringIndex + 1)) : {};
1286    var baseUrl = queryStringIndex !== -1 ? url.substr(0, queryStringIndex) : url;
1287  
1288    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1289      args[_key - 1] = arguments[_key];
1290    }
1291  
1292    args.forEach(function (arg) {
1293      return delete query[arg];
1294    });
1295    return baseUrl + '?' + Object(lib["stringify"])(query);
1296  }
1297  
1298  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/prepend-http.js
1299  /**
1300   * Internal dependencies
1301   */
1302  
1303  var USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i;
1304  /**
1305   * Prepends "http://" to a url, if it looks like something that is meant to be a TLD.
1306   *
1307   * @param {string} url The URL to test.
1308   *
1309   * @example
1310   * ```js
1311   * const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org
1312   * ```
1313   *
1314   * @return {string} The updated URL.
1315   */
1316  
1317  function prependHTTP(url) {
1318    if (!url) {
1319      return url;
1320    }
1321  
1322    url = url.trim();
1323  
1324    if (!USABLE_HREF_REGEXP.test(url) && !isEmail(url)) {
1325      return 'http://' + url;
1326    }
1327  
1328    return url;
1329  }
1330  
1331  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/safe-decode-uri.js
1332  /**
1333   * Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
1334   * `decodeURI` throws an error.
1335   *
1336   * @param {string} uri URI to decode.
1337   *
1338   * @example
1339   * ```js
1340   * const badUri = safeDecodeURI( '%z' ); // does not throw an Error, simply returns '%z'
1341   * ```
1342   *
1343   * @return {string} Decoded URI if possible.
1344   */
1345  function safeDecodeURI(uri) {
1346    try {
1347      return decodeURI(uri);
1348    } catch (uriError) {
1349      return uri;
1350    }
1351  }
1352  
1353  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/safe-decode-uri-component.js
1354  /**
1355   * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if
1356   * `decodeURIComponent` throws an error.
1357   *
1358   * @param {string} uriComponent URI component to decode.
1359   *
1360   * @return {string} Decoded URI component if possible.
1361   */
1362  function safeDecodeURIComponent(uriComponent) {
1363    try {
1364      return decodeURIComponent(uriComponent);
1365    } catch (uriComponentError) {
1366      return uriComponent;
1367    }
1368  }
1369  
1370  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/filter-url-for-display.js
1371  /**
1372   * Returns a URL for display.
1373   *
1374   * @param {string} url Original URL.
1375   *
1376   * @example
1377   * ```js
1378   * const displayUrl = filterURLForDisplay( 'https://www.wordpress.org/gutenberg/' ); // wordpress.org/gutenberg
1379   * ```
1380   *
1381   * @return {string} Displayed URL.
1382   */
1383  function filterURLForDisplay(url) {
1384    // Remove protocol and www prefixes.
1385    var filteredURL = url.replace(/^(?:https?:)\/\/(?:www\.)?/, ''); // Ends with / and only has that single slash, strip it.
1386  
1387    if (filteredURL.match(/^[^\/]+\/$/)) {
1388      return filteredURL.replace('/', '');
1389    }
1390  
1391    return filteredURL;
1392  }
1393  
1394  // EXTERNAL MODULE: external {"this":"lodash"}
1395  var external_this_lodash_ = __webpack_require__(2);
1396  
1397  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/clean-for-slug.js
1398  /**
1399   * External dependencies
1400   */
1401  
1402  /**
1403   * Performs some basic cleanup of a string for use as a post slug.
1404   *
1405   * This replicates some of what `sanitize_title()` does in WordPress core, but
1406   * is only designed to approximate what the slug will be.
1407   *
1408   * Converts whitespace, periods, forward slashes and underscores to hyphens.
1409   * Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin
1410   * letters. Removes combining diacritical marks. Converts remaining string
1411   * to lowercase. It does not touch octets, HTML entities, or other encoded
1412   * characters.
1413   *
1414   * @param {string} string Title or slug to be processed.
1415   *
1416   * @return {string} Processed string.
1417   */
1418  
1419  function cleanForSlug(string) {
1420    if (!string) {
1421      return '';
1422    }
1423  
1424    return Object(external_this_lodash_["toLower"])(Object(external_this_lodash_["deburr"])(Object(external_this_lodash_["trim"])(string.replace(/[\s\./_]+/g, '-'), '-')));
1425  }
1426  
1427  // CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/index.js
1428  /* concated harmony reexport isURL */__webpack_require__.d(__webpack_exports__, "isURL", function() { return isURL; });
1429  /* concated harmony reexport isEmail */__webpack_require__.d(__webpack_exports__, "isEmail", function() { return isEmail; });
1430  /* concated harmony reexport getProtocol */__webpack_require__.d(__webpack_exports__, "getProtocol", function() { return getProtocol; });
1431  /* concated harmony reexport isValidProtocol */__webpack_require__.d(__webpack_exports__, "isValidProtocol", function() { return isValidProtocol; });
1432  /* concated harmony reexport getAuthority */__webpack_require__.d(__webpack_exports__, "getAuthority", function() { return getAuthority; });
1433  /* concated harmony reexport isValidAuthority */__webpack_require__.d(__webpack_exports__, "isValidAuthority", function() { return isValidAuthority; });
1434  /* concated harmony reexport getPath */__webpack_require__.d(__webpack_exports__, "getPath", function() { return getPath; });
1435  /* concated harmony reexport isValidPath */__webpack_require__.d(__webpack_exports__, "isValidPath", function() { return isValidPath; });
1436  /* concated harmony reexport getQueryString */__webpack_require__.d(__webpack_exports__, "getQueryString", function() { return getQueryString; });
1437  /* concated harmony reexport isValidQueryString */__webpack_require__.d(__webpack_exports__, "isValidQueryString", function() { return isValidQueryString; });
1438  /* concated harmony reexport getFragment */__webpack_require__.d(__webpack_exports__, "getFragment", function() { return getFragment; });
1439  /* concated harmony reexport isValidFragment */__webpack_require__.d(__webpack_exports__, "isValidFragment", function() { return isValidFragment; });
1440  /* concated harmony reexport addQueryArgs */__webpack_require__.d(__webpack_exports__, "addQueryArgs", function() { return addQueryArgs; });
1441  /* concated harmony reexport getQueryArg */__webpack_require__.d(__webpack_exports__, "getQueryArg", function() { return getQueryArg; });
1442  /* concated harmony reexport hasQueryArg */__webpack_require__.d(__webpack_exports__, "hasQueryArg", function() { return hasQueryArg; });
1443  /* concated harmony reexport removeQueryArgs */__webpack_require__.d(__webpack_exports__, "removeQueryArgs", function() { return removeQueryArgs; });
1444  /* concated harmony reexport prependHTTP */__webpack_require__.d(__webpack_exports__, "prependHTTP", function() { return prependHTTP; });
1445  /* concated harmony reexport safeDecodeURI */__webpack_require__.d(__webpack_exports__, "safeDecodeURI", function() { return safeDecodeURI; });
1446  /* concated harmony reexport safeDecodeURIComponent */__webpack_require__.d(__webpack_exports__, "safeDecodeURIComponent", function() { return safeDecodeURIComponent; });
1447  /* concated harmony reexport filterURLForDisplay */__webpack_require__.d(__webpack_exports__, "filterURLForDisplay", function() { return filterURLForDisplay; });
1448  /* concated harmony reexport cleanForSlug */__webpack_require__.d(__webpack_exports__, "cleanForSlug", function() { return cleanForSlug; });
1449  
1450  
1451  
1452  
1453  
1454  
1455  
1456  
1457  
1458  
1459  
1460  
1461  
1462  
1463  
1464  
1465  
1466  
1467  
1468  
1469  
1470  
1471  
1472  /***/ }),
1473  
1474  /***/ 92:
1475  /***/ (function(module, exports, __webpack_require__) {
1476  
1477  "use strict";
1478  
1479  
1480  var stringify = __webpack_require__(417);
1481  var parse = __webpack_require__(418);
1482  var formats = __webpack_require__(257);
1483  
1484  module.exports = {
1485      formats: formats,
1486      parse: parse,
1487      stringify: stringify
1488  };
1489  
1490  
1491  /***/ })
1492  
1493  /******/ });


Generated: Tue Apr 7 01:00:07 2020 Cross-referenced by PHPXref 0.7.1