$88 GRAYBYTE WORDPRESS FILE MANAGER $17

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.88
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/dantho.rw/wp-includes/js/dist/

HOME
Current File : /home/bravetechrwanda/dantho.rw/wp-includes/js/dist//wordcount.js
"use strict";
var wp;
(wp ||= {}).wordcount = (() => {
  var __defProp = Object.defineProperty;
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __hasOwnProp = Object.prototype.hasOwnProperty;
  var __export = (target, all) => {
    for (var name in all)
      __defProp(target, name, { get: all[name], enumerable: true });
  };
  var __copyProps = (to, from, except, desc) => {
    if (from && typeof from === "object" || typeof from === "function") {
      for (let key of __getOwnPropNames(from))
        if (!__hasOwnProp.call(to, key) && key !== except)
          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
    }
    return to;
  };
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

  // packages/wordcount/build-module/index.mjs
  var index_exports = {};
  __export(index_exports, {
    count: () => count
  });

  // packages/wordcount/build-module/defaultSettings.mjs
  var defaultSettings = {
    HTMLRegExp: /<\/?[a-z][^>]*?>/gi,
    HTMLcommentRegExp: /<!--[\s\S]*?-->/g,
    spaceRegExp: /&nbsp;|&#160;/gi,
    HTMLEntityRegExp: /&\S+?;/g,
    // \u2014 = em-dash.
    connectorRegExp: /--|\u2014/g,
    // Characters to be removed from input text.
    removeRegExp: new RegExp(
      [
        "[",
        // Basic Latin (extract)
        "!-/:-@[-`{-~",
        // Latin-1 Supplement (extract)
        "\x80-\xBF\xD7\xF7",
        /*
         * The following range consists of:
         * General Punctuation
         * Superscripts and Subscripts
         * Currency Symbols
         * Combining Diacritical Marks for Symbols
         * Letterlike Symbols
         * Number Forms
         * Arrows
         * Mathematical Operators
         * Miscellaneous Technical
         * Control Pictures
         * Optical Character Recognition
         * Enclosed Alphanumerics
         * Box Drawing
         * Block Elements
         * Geometric Shapes
         * Miscellaneous Symbols
         * Dingbats
         * Miscellaneous Mathematical Symbols-A
         * Supplemental Arrows-A
         * Braille Patterns
         * Supplemental Arrows-B
         * Miscellaneous Mathematical Symbols-B
         * Supplemental Mathematical Operators
         * Miscellaneous Symbols and Arrows
         */
        "\u2000-\u2BFF",
        // Supplemental Punctuation.
        "\u2E00-\u2E7F",
        "]"
      ].join(""),
      "g"
    ),
    // Remove UTF-16 surrogate points, see https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF
    astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
    wordsRegExp: /\S\s+/g,
    characters_excluding_spacesRegExp: /\S/g,
    /*
     * Match anything that is not a formatting character, excluding:
     * \f = form feed
     * \n = new line
     * \r = carriage return
     * \t = tab
     * \v = vertical tab
     * \u00AD = soft hyphen
     * \u2028 = line separator
     * \u2029 = paragraph separator
     */
    characters_including_spacesRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g,
    l10n: {
      type: "words"
    }
  };

  // packages/wordcount/build-module/stripTags.mjs
  function stripTags(settings, text) {
    return text.replace(settings.HTMLRegExp, "\n");
  }

  // packages/wordcount/build-module/transposeAstralsToCountableChar.mjs
  function transposeAstralsToCountableChar(settings, text) {
    return text.replace(settings.astralRegExp, "a");
  }

  // packages/wordcount/build-module/stripHTMLEntities.mjs
  function stripHTMLEntities(settings, text) {
    return text.replace(settings.HTMLEntityRegExp, "");
  }

  // packages/wordcount/build-module/stripConnectors.mjs
  function stripConnectors(settings, text) {
    return text.replace(settings.connectorRegExp, " ");
  }

  // packages/wordcount/build-module/stripRemovables.mjs
  function stripRemovables(settings, text) {
    return text.replace(settings.removeRegExp, "");
  }

  // packages/wordcount/build-module/stripHTMLComments.mjs
  function stripHTMLComments(settings, text) {
    return text.replace(settings.HTMLcommentRegExp, "");
  }

  // packages/wordcount/build-module/stripShortcodes.mjs
  function stripShortcodes(settings, text) {
    if (settings.shortcodesRegExp) {
      return text.replace(settings.shortcodesRegExp, "\n");
    }
    return text;
  }

  // packages/wordcount/build-module/stripSpaces.mjs
  function stripSpaces(settings, text) {
    return text.replace(settings.spaceRegExp, " ");
  }

  // packages/wordcount/build-module/transposeHTMLEntitiesToCountableChars.mjs
  function transposeHTMLEntitiesToCountableChars(settings, text) {
    return text.replace(settings.HTMLEntityRegExp, "a");
  }

  // packages/wordcount/build-module/index.mjs
  function loadSettings(type = "words", userSettings = {}) {
    const mergedSettings = { ...defaultSettings, ...userSettings };
    const settings = {
      ...mergedSettings,
      type,
      shortcodes: []
    };
    settings.shortcodes = settings.l10n?.shortcodes ?? [];
    if (settings.shortcodes && settings.shortcodes.length) {
      settings.shortcodesRegExp = new RegExp(
        "\\[\\/?(?:" + settings.shortcodes.join("|") + ")[^\\]]*?\\]",
        "g"
      );
    }
    if (settings.type !== "characters_excluding_spaces" && settings.type !== "characters_including_spaces") {
      settings.type = "words";
    }
    return settings;
  }
  function countWords(text, regex, settings) {
    text = [
      stripTags.bind(null, settings),
      stripHTMLComments.bind(null, settings),
      stripShortcodes.bind(null, settings),
      stripSpaces.bind(null, settings),
      stripHTMLEntities.bind(null, settings),
      stripConnectors.bind(null, settings),
      stripRemovables.bind(null, settings)
    ].reduce((result, fn) => fn(result), text);
    text = text + "\n";
    return text.match(regex)?.length ?? 0;
  }
  function countCharacters(text, regex, settings) {
    text = [
      stripTags.bind(null, settings),
      stripHTMLComments.bind(null, settings),
      stripShortcodes.bind(null, settings),
      transposeAstralsToCountableChar.bind(null, settings),
      stripSpaces.bind(null, settings),
      transposeHTMLEntitiesToCountableChars.bind(null, settings)
    ].reduce((result, fn) => fn(result), text);
    text = text + "\n";
    return text.match(regex)?.length ?? 0;
  }
  function count(text, type, userSettings) {
    const settings = loadSettings(type, userSettings);
    let matchRegExp;
    switch (settings.type) {
      case "words":
        matchRegExp = settings.wordsRegExp;
        return countWords(text, matchRegExp, settings);
      case "characters_including_spaces":
        matchRegExp = settings.characters_including_spacesRegExp;
        return countCharacters(text, matchRegExp, settings);
      case "characters_excluding_spaces":
        matchRegExp = settings.characters_excluding_spacesRegExp;
        return countCharacters(text, matchRegExp, settings);
      default:
        return 0;
    }
  }
  return __toCommonJS(index_exports);
})();

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 May 2026 3.40 PM
bravetechrwanda / bravetechrwanda
0755
development
--
7 Oct 2024 8.37 AM
bravetechrwanda / bravetechrwanda
0755
script-modules
--
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0755
vendor
--
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0755
a11y.js
5.453 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
a11y.min.js
2.41 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
annotations.js
15.13 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
annotations.min.js
5.584 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
api-fetch.js
17.456 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
api-fetch.min.js
6.286 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
autop.js
9.729 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
autop.min.js
5.471 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
base-styles.js
0.047 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
base-styles.min.js
0.039 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
blob.js
2.3 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
blob.min.js
1.126 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-directory.js
55.67 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-directory.min.js
21.921 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-editor.js
2.7 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-editor.min.js
1.01 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-library.js
2.57 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-library.min.js
1.09 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-serialization-default-parser.js
6.538 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-serialization-default-parser.min.js
2.359 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-serialization-spec-parser.js
50.481 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
block-serialization-spec-parser.min.js
10.342 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
blocks.js
381.061 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
blocks.min.js
180.583 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
commands.js
151.705 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
commands.min.js
63.104 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
components.js
3.83 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
components.min.js
786.243 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
compose.js
80.842 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
compose.min.js
28.212 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
core-commands.js
28.679 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
core-commands.min.js
11.834 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
core-data.js
612.029 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
core-data.min.js
210.431 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
customize-widgets.js
91.572 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
customize-widgets.min.js
36.581 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
data-controls.js
4.131 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
data-controls.min.js
1.737 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
data.js
82.784 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
data.min.js
25.884 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
date.js
176.344 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
date.min.js
141.185 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
deprecated.js
3.04 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
deprecated.min.js
1.25 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
dom-ready.js
1.473 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
dom-ready.min.js
0.765 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
dom.js
34.614 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
dom.min.js
12.616 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-post.js
117.396 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-post.min.js
49.071 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-site.js
1.69 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-site.min.js
684.419 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-widgets.js
160.248 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
edit-widgets.min.js
61.825 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
editor.js
2.5 MB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
editor.min.js
1021.223 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
element.js
27.932 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
element.min.js
12.132 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
escape-html.js
2.291 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
escape-html.min.js
1.031 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
format-library.js
73.339 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
format-library.min.js
28.848 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
hooks.js
11.955 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
hooks.min.js
4.897 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
html-entities.js
1.646 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
html-entities.min.js
0.824 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
i18n.js
15.303 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
i18n.min.js
5.563 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
is-shallow-equal.js
2.693 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
is-shallow-equal.min.js
1.062 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
keyboard-shortcuts.js
9.681 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
keyboard-shortcuts.min.js
3.41 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
keycodes.js
8.302 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
keycodes.min.js
2.871 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
list-reusable-blocks.js
13.061 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
list-reusable-blocks.min.js
5.207 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
media-utils.js
637.146 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
media-utils.min.js
237.605 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
notices.js
10.113 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
notices.min.js
4.35 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
nux.js
10.324 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
nux.min.js
3.919 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
patterns.js
58.246 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
patterns.min.js
21.599 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
plugins.js
11.671 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
plugins.min.js
4.722 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
preferences-persistence.js
17.216 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
preferences-persistence.min.js
5.456 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
preferences.js
21.068 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
preferences.min.js
7.68 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
primitives.js
5.081 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
primitives.min.js
1.944 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
priority-queue.js
10.024 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
priority-queue.min.js
3.317 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
private-apis.js
4.094 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
private-apis.min.js
2.625 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
react-i18n.js
3.905 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
react-i18n.min.js
1.491 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
redux-routine.js
24.683 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
redux-routine.min.js
9.615 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
reusable-blocks.js
20.512 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
reusable-blocks.min.js
7.188 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
rich-text.js
97.037 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
rich-text.min.js
39.855 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
router.js
36.12 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
router.min.js
14.097 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
server-side-render.js
10.968 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
server-side-render.min.js
3.906 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
shortcode.js
7.959 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
shortcode.min.js
3.248 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
style-engine.js
17.617 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
style-engine.min.js
6.381 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
sync.js
359.401 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
sync.min.js
118.113 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
theme.js
127.647 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
theme.min.js
56.084 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
token-list.js
6.115 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
token-list.min.js
1.585 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
undo-manager.js
5.295 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
undo-manager.min.js
1.664 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
upload-media.js
55.666 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
upload-media.min.js
23.019 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
url.js
23.39 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
url.min.js
10.093 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
viewport.js
6.606 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
viewport.min.js
2.209 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
warning.js
1.522 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
warning.min.js
0.703 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
widgets.js
50.08 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
widgets.min.js
20.793 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
wordcount.js
6.935 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644
wordcount.min.js
2.412 KB
21 May 2026 3.20 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF