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


Generated: Mon Jul 22 01:00:03 2019 Cross-referenced by PHPXref 0.7.1