(function() {
"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: / | /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);
})();
(window.wp ||= {}).wordcount = wp.wordcount;
})();
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| development/ | 2026-02-23 19:41 | 87.9 KB | 76129f60960:kunden | dxwrx-rx-r | |
| script-modules/ | 2026-08-20 11:46 | 17.7 MB | 76129f60960:kunden | dxwrx-rx-r | |
| vendor/ | 2026-08-20 11:46 | 2.54 MB | 76129f60960:kunden | dxwrx-rx-r | |
| a11y.js | 2026-08-20 11:46 | 5.56 KB | 76129f60960:kunden | -xw-x--x-- | |
| a11y.min.js | 2026-08-20 11:46 | 2.55 KB | 76129f60960:kunden | -xw-x--x-- | |
| annotations.js | 2026-08-20 11:46 | 15.58 KB | 76129f60960:kunden | -xw-x--x-- | |
| annotations.min.js | 2026-08-20 11:46 | 5.84 KB | 76129f60960:kunden | -xw-x--x-- | |
| api-fetch.js | 2026-08-20 11:46 | 19.53 KB | 76129f60960:kunden | -xw-x--x-- | |
| api-fetch.min.js | 2026-08-20 11:46 | 7.33 KB | 76129f60960:kunden | -xw-x--x-- | |
| autop.js | 2026-08-20 11:46 | 9.78 KB | 76129f60960:kunden | -xw-x--x-- | |
| autop.min.js | 2026-08-20 11:46 | 5.56 KB | 76129f60960:kunden | -xw-x--x-- | |
| base-styles.js | 2026-08-20 11:46 | 115 B | 76129f60960:kunden | -xw-x--x-- | |
| base-styles.min.js | 2026-08-20 11:46 | 142 B | 76129f60960:kunden | -xw-x--x-- | |
| blob.js | 2026-08-20 11:46 | 2.35 KB | 76129f60960:kunden | -xw-x--x-- | |
| blob.min.js | 2026-08-20 11:46 | 1.21 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-directory.js | 2026-08-20 11:46 | 372.69 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-directory.min.js | 2026-08-20 11:46 | 126.54 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-editor.js | 2026-09-18 04:01 | 3.6 MB | 76129f60960:kunden | -xw-x--x-- | |
| block-editor.min.js | 2026-09-18 04:01 | 1.35 MB | 76129f60960:kunden | -xw-x--x-- | |
| block-library.js | 2026-11-19 00:38 | 2.89 MB | 76129f60960:kunden | -xw-x--x-- | |
| block-library.min.js | 2026-11-19 00:38 | 1.24 MB | 76129f60960:kunden | -xw-x--x-- | |
| block-serialization-default-parser.js | 2026-10-29 00:28 | 6.68 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-serialization-default-parser.min.js | 2026-10-29 00:28 | 2.54 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-serialization-spec-parser.js | 2026-10-29 00:28 | 50.59 KB | 76129f60960:kunden | -xw-x--x-- | |
| block-serialization-spec-parser.min.js | 2026-10-29 00:28 | 10.48 KB | 76129f60960:kunden | -xw-x--x-- | |
| blocks.js | 2026-08-20 11:46 | 292.88 KB | 76129f60960:kunden | -xw-x--x-- | |
| blocks.min.js | 2026-08-20 11:46 | 142.99 KB | 76129f60960:kunden | -xw-x--x-- | |
| commands.js | 2026-08-20 11:46 | 128.65 KB | 76129f60960:kunden | -xw-x--x-- | |
| commands.min.js | 2026-08-20 11:46 | 55.89 KB | 76129f60960:kunden | -xw-x--x-- | |
| components.js | 2026-08-20 11:46 | 3.64 MB | 76129f60960:kunden | -xw-x--x-- | |
| components.min.js | 2026-08-20 11:46 | 817.08 KB | 76129f60960:kunden | -xw-x--x-- | |
| compose.js | 2026-08-20 11:46 | 83.74 KB | 76129f60960:kunden | -xw-x--x-- | |
| compose.min.js | 2026-08-20 11:46 | 29.39 KB | 76129f60960:kunden | -xw-x--x-- | |
| core-commands.js | 2026-08-20 11:46 | 29.11 KB | 76129f60960:kunden | -xw-x--x-- | |
| core-commands.min.js | 2026-08-20 11:46 | 12.2 KB | 76129f60960:kunden | -xw-x--x-- | |
| core-data.js | 2026-11-19 00:38 | 661.31 KB | 76129f60960:kunden | -xw-x--x-- | |
| core-data.min.js | 2026-11-19 00:38 | 227.04 KB | 76129f60960:kunden | -xw-x--x-- | |
| customize-widgets.js | 2026-08-20 11:46 | 111.55 KB | 76129f60960:kunden | -xw-x--x-- | |
| customize-widgets.min.js | 2026-08-20 11:46 | 43.42 KB | 76129f60960:kunden | -xw-x--x-- | |
| data-controls.js | 2026-08-20 11:46 | 4.2 KB | 76129f60960:kunden | -xw-x--x-- | |
| data-controls.min.js | 2026-08-20 11:46 | 1.84 KB | 76129f60960:kunden | -xw-x--x-- | |
| data.js | 2026-08-20 11:46 | 83.69 KB | 76129f60960:kunden | -xw-x--x-- | |
| data.min.js | 2026-08-20 11:46 | 26.04 KB | 76129f60960:kunden | -xw-x--x-- | |
| date.js | 2026-08-20 11:46 | 176.69 KB | 76129f60960:kunden | -xw-x--x-- | |
| date.min.js | 2026-08-20 11:46 | 141.35 KB | 76129f60960:kunden | -xw-x--x-- | |
| deprecated.js | 2026-08-20 11:46 | 3.11 KB | 76129f60960:kunden | -xw-x--x-- | |
| deprecated.min.js | 2026-08-20 11:46 | 1.35 KB | 76129f60960:kunden | -xw-x--x-- | |
| dom-ready.js | 2026-08-20 11:46 | 1.53 KB | 76129f60960:kunden | -xw-x--x-- | |
| dom-ready.min.js | 2026-08-20 11:46 | 881 B | 76129f60960:kunden | -xw-x--x-- | |
| dom.js | 2026-08-20 11:46 | 35.12 KB | 76129f60960:kunden | -xw-x--x-- | |
| dom.min.js | 2026-08-20 11:46 | 12.86 KB | 76129f60960:kunden | -xw-x--x-- | |
| edit-post.js | 2026-09-18 04:01 | 441.28 KB | 76129f60960:kunden | -xw-x--x-- | |
| edit-post.min.js | 2026-09-18 04:01 | 156.59 KB | 76129f60960:kunden | -xw-x--x-- | |
| edit-site.js | 2026-09-18 04:01 | 2.2 MB | 76129f60960:kunden | -xw-x--x-- | |
| edit-site.min.js | 2026-09-18 04:01 | 884.08 KB | 76129f60960:kunden | -xw-x--x-- | |
| edit-widgets.js | 2026-08-20 11:46 | 180.29 KB | 76129f60960:kunden | -xw-x--x-- | |
| edit-widgets.min.js | 2026-08-20 11:46 | 68.81 KB | 76129f60960:kunden | -xw-x--x-- | |
| editor.js | 2026-11-19 00:38 | 3.79 MB | 76129f60960:kunden | -xw-x--x-- | |
| editor.min.js | 2026-11-19 00:38 | 1.5 MB | 76129f60960:kunden | -xw-x--x-- | |
| element.js | 2026-08-20 11:46 | 27.32 KB | 76129f60960:kunden | -xw-x--x-- | |
| element.min.js | 2026-08-20 11:46 | 12.18 KB | 76129f60960:kunden | -xw-x--x-- | |
| escape-html.js | 2026-08-20 11:46 | 2.36 KB | 76129f60960:kunden | -xw-x--x-- | |
| escape-html.min.js | 2026-08-20 11:46 | 1.13 KB | 76129f60960:kunden | -xw-x--x-- | |
| format-library.js | 2026-08-20 11:46 | 229.45 KB | 76129f60960:kunden | -xw-x--x-- | |
| format-library.min.js | 2026-08-20 11:46 | 96.19 KB | 76129f60960:kunden | -xw-x--x-- | |
| hooks.js | 2026-08-20 11:46 | 12.01 KB | 76129f60960:kunden | -xw-x--x-- | |
| hooks.min.js | 2026-08-20 11:46 | 4.99 KB | 76129f60960:kunden | -xw-x--x-- | |
| html-entities.js | 2026-08-20 11:46 | 1.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| html-entities.min.js | 2026-08-20 11:46 | 950 B | 76129f60960:kunden | -xw-x--x-- | |
| i18n.js | 2026-08-20 11:46 | 15.36 KB | 76129f60960:kunden | -xw-x--x-- | |
| i18n.min.js | 2026-08-20 11:46 | 5.66 KB | 76129f60960:kunden | -xw-x--x-- | |
| is-shallow-equal.js | 2026-08-20 11:46 | 2.77 KB | 76129f60960:kunden | -xw-x--x-- | |
| is-shallow-equal.min.js | 2026-08-20 11:46 | 1.17 KB | 76129f60960:kunden | -xw-x--x-- | |
| keyboard-shortcuts.js | 2026-08-20 11:46 | 10.26 KB | 76129f60960:kunden | -xw-x--x-- | |
| keyboard-shortcuts.min.js | 2026-08-20 11:46 | 3.6 KB | 76129f60960:kunden | -xw-x--x-- | |
| keycodes.js | 2026-08-20 11:46 | 8.36 KB | 76129f60960:kunden | -xw-x--x-- | |
| keycodes.min.js | 2026-08-20 11:46 | 2.97 KB | 76129f60960:kunden | -xw-x--x-- | |
| list-reusable-blocks.js | 2026-08-20 11:46 | 13.34 KB | 76129f60960:kunden | -xw-x--x-- | |
| list-reusable-blocks.min.js | 2026-08-20 11:46 | 5.41 KB | 76129f60960:kunden | -xw-x--x-- | |
| media-utils.js | 2026-09-18 04:01 | 1.02 MB | 76129f60960:kunden | -xw-x--x-- | |
| media-utils.min.js | 2026-09-18 04:01 | 381.85 KB | 76129f60960:kunden | -xw-x--x-- | |
| notices.js | 2026-08-20 11:46 | 9.55 KB | 76129f60960:kunden | -xw-x--x-- | |
| notices.min.js | 2026-08-20 11:46 | 3.85 KB | 76129f60960:kunden | -xw-x--x-- | |
| nux.js | 2026-08-20 11:46 | 4.32 KB | 76129f60960:kunden | -xw-x--x-- | |
| nux.min.js | 2026-08-20 11:46 | 1.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| patterns.js | 2026-08-20 11:46 | 88.07 KB | 76129f60960:kunden | -xw-x--x-- | |
| patterns.min.js | 2026-08-20 11:46 | 37.4 KB | 76129f60960:kunden | -xw-x--x-- | |
| plugins.js | 2026-08-20 11:46 | 20.72 KB | 76129f60960:kunden | -xw-x--x-- | |
| plugins.min.js | 2026-08-20 11:46 | 7.08 KB | 76129f60960:kunden | -xw-x--x-- | |
| preferences-persistence.js | 2026-08-20 11:46 | 17.3 KB | 76129f60960:kunden | -xw-x--x-- | |
| preferences-persistence.min.js | 2026-08-20 11:46 | 5.58 KB | 76129f60960:kunden | -xw-x--x-- | |
| preferences.js | 2026-08-20 11:46 | 21.03 KB | 76129f60960:kunden | -xw-x--x-- | |
| preferences.min.js | 2026-08-20 11:46 | 7.84 KB | 76129f60960:kunden | -xw-x--x-- | |
| primitives.js | 2026-08-20 11:46 | 5.15 KB | 76129f60960:kunden | -xw-x--x-- | |
| primitives.min.js | 2026-08-20 11:46 | 2.04 KB | 76129f60960:kunden | -xw-x--x-- | |
| priority-queue.js | 2026-08-20 11:46 | 10.1 KB | 76129f60960:kunden | -xw-x--x-- | |
| priority-queue.min.js | 2026-08-20 11:46 | 3.42 KB | 76129f60960:kunden | -xw-x--x-- | |
| private-apis.js | 2026-08-20 11:46 | 4.42 KB | 76129f60960:kunden | -xw-x--x-- | |
| private-apis.min.js | 2026-08-20 11:46 | 2.95 KB | 76129f60960:kunden | -xw-x--x-- | |
| react-i18n.js | 2026-08-20 11:46 | 3.97 KB | 76129f60960:kunden | -xw-x--x-- | |
| react-i18n.min.js | 2026-08-20 11:46 | 1.59 KB | 76129f60960:kunden | -xw-x--x-- | |
| redux-routine.js | 2026-08-20 11:46 | 24.75 KB | 76129f60960:kunden | -xw-x--x-- | |
| redux-routine.min.js | 2026-08-20 11:46 | 9.72 KB | 76129f60960:kunden | -xw-x--x-- | |
| reusable-blocks.js | 2026-08-20 11:46 | 21.87 KB | 76129f60960:kunden | -xw-x--x-- | |
| reusable-blocks.min.js | 2026-08-20 11:46 | 7.99 KB | 76129f60960:kunden | -xw-x--x-- | |
| rich-text.js | 2026-08-20 11:46 | 104.89 KB | 76129f60960:kunden | -xw-x--x-- | |
| rich-text.min.js | 2026-08-20 11:46 | 42.17 KB | 76129f60960:kunden | -xw-x--x-- | |
| router.js | 2026-08-20 11:46 | 36.21 KB | 76129f60960:kunden | -xw-x--x-- | |
| router.min.js | 2026-08-20 11:46 | 14.21 KB | 76129f60960:kunden | -xw-x--x-- | |
| server-side-render.js | 2026-08-20 11:46 | 11.32 KB | 76129f60960:kunden | -xw-x--x-- | |
| server-side-render.min.js | 2026-08-20 11:46 | 4.1 KB | 76129f60960:kunden | -xw-x--x-- | |
| shortcode.js | 2026-08-20 11:46 | 8.02 KB | 76129f60960:kunden | -xw-x--x-- | |
| shortcode.min.js | 2026-08-20 11:46 | 3.35 KB | 76129f60960:kunden | -xw-x--x-- | |
| style-engine.js | 2026-08-20 11:46 | 18.37 KB | 76129f60960:kunden | -xw-x--x-- | |
| style-engine.min.js | 2026-08-20 11:46 | 6.78 KB | 76129f60960:kunden | -xw-x--x-- | |
| theme.js | 2026-08-20 11:46 | 135.48 KB | 76129f60960:kunden | -xw-x--x-- | |
| theme.min.js | 2026-08-20 11:46 | 59.71 KB | 76129f60960:kunden | -xw-x--x-- | |
| token-list.js | 2026-08-20 11:46 | 6.18 KB | 76129f60960:kunden | -xw-x--x-- | |
| token-list.min.js | 2026-08-20 11:46 | 1.68 KB | 76129f60960:kunden | -xw-x--x-- | |
| undo-manager.js | 2026-08-20 11:46 | 5.36 KB | 76129f60960:kunden | -xw-x--x-- | |
| undo-manager.min.js | 2026-08-20 11:46 | 1.77 KB | 76129f60960:kunden | -xw-x--x-- | |
| upload-media.js | 2026-09-18 04:01 | 116.33 KB | 76129f60960:kunden | -xw-x--x-- | |
| upload-media.min.js | 2026-09-18 04:01 | 49.3 KB | 76129f60960:kunden | -xw-x--x-- | |
| url.js | 2026-08-20 11:46 | 23.4 KB | 76129f60960:kunden | -xw-x--x-- | |
| url.min.js | 2026-08-20 11:46 | 10.18 KB | 76129f60960:kunden | -xw-x--x-- | |
| viewport.js | 2026-08-20 11:46 | 7.14 KB | 76129f60960:kunden | -xw-x--x-- | |
| viewport.min.js | 2026-08-20 11:46 | 2.32 KB | 76129f60960:kunden | -xw-x--x-- | |
| warning.js | 2026-08-20 11:46 | 1.58 KB | 76129f60960:kunden | -xw-x--x-- | |
| warning.min.js | 2026-08-20 11:46 | 816 B | 76129f60960:kunden | -xw-x--x-- | |
| widgets.js | 2026-08-20 11:46 | 50.14 KB | 76129f60960:kunden | -xw-x--x-- | |
| widgets.min.js | 2026-08-20 11:46 | 20.97 KB | 76129f60960:kunden | -xw-x--x-- | |
| wordcount.js | 2026-08-20 11:46 | 7 KB | 76129f60960:kunden | -xw-x--x-- | |
| wordcount.min.js | 2026-08-20 11:46 | 2.51 KB | 76129f60960:kunden | -xw-x--x-- | |