/home/desid573/verdenaturopathy.com.au/wp-includes/js/dist
NameSizeModeActions
development/-0755rm
script-modules/-0755rm
vendor/-0755rm
a11y.js56970644editdlrm
a11y.min.js26160644editdlrm
annotations.js159520644editdlrm
annotations.min.js59780644editdlrm
api-fetch.js200030644editdlrm
api-fetch.min.js75100644editdlrm
autop.js100190644editdlrm
autop.min.js56940644editdlrm
base-styles.js1150644editdlrm
base-styles.min.js1420644editdlrm
blob.js24100644editdlrm
blob.min.js12430644editdlrm
block-directory.js3816380644editdlrm
block-directory.min.js1295730644editdlrm
block-editor.js37792910644editdlrm
block-editor.min.js14111060644editdlrm
block-library.js30226840644editdlrm
block-library.min.js13043780644editdlrm
block-serialization-default-parser.js68000644editdlrm
block-serialization-default-parser.min.js25600644editdlrm
block-serialization-spec-parser.js517960644editdlrm
block-serialization-spec-parser.min.js107280644editdlrm
blocks.js2999050644editdlrm
blocks.min.js1464260644editdlrm
commands.js1317390644editdlrm
commands.min.js572270644editdlrm
components.js38212980644editdlrm
components.min.js8366890644editdlrm
compose.js857520644editdlrm
compose.min.js300980644editdlrm
core-commands.js298050644editdlrm
core-commands.min.js124890644editdlrm
core-data.js6758400644editdlrm
core-data.min.js2319570644editdlrm
customize-widgets.js1142260644editdlrm
customize-widgets.min.js444660644editdlrm
data-controls.js43010644editdlrm
data-controls.min.js18850644editdlrm
data.js856980644editdlrm
data.min.js266640644editdlrm
date.js1809350644editdlrm
date.min.js1447470644editdlrm
deprecated.js31800644editdlrm
deprecated.min.js13820644editdlrm
dom-ready.js15710644editdlrm
dom-ready.min.js8810644editdlrm
dom.js359620644editdlrm
dom.min.js131720644editdlrm
edit-post.js4513590644editdlrm
edit-post.min.js1601570644editdlrm
edit-site.js23047570644editdlrm
edit-site.min.js9052880644editdlrm
edit-widgets.js1846200644editdlrm
edit-widgets.min.js704650644editdlrm
editor.js39683670644editdlrm
editor.min.js15738860644editdlrm
element.js279710644editdlrm
element.min.js124680644editdlrm
escape-html.js24130644editdlrm
escape-html.min.js11580644editdlrm
format-library.js2349570644editdlrm
format-library.min.js984950644editdlrm
hooks.js122990644editdlrm
hooks.min.js51070644editdlrm
html-entities.js17560644editdlrm
html-entities.min.js9500644editdlrm
i18n.js157250644editdlrm
i18n.min.js57910644editdlrm
is-shallow-equal.js28330644editdlrm
is-shallow-equal.min.js11970644editdlrm
keyboard-shortcuts.js105080644editdlrm
keyboard-shortcuts.min.js36820644editdlrm
keycodes.js85640644editdlrm
keycodes.min.js30380644editdlrm
list-reusable-blocks.js136620644editdlrm
list-reusable-blocks.min.js55390644editdlrm
media-utils.js10650270644editdlrm
media-utils.min.js3909950644editdlrm
notices.js97830644editdlrm
notices.min.js39470644editdlrm
nux.js44230644editdlrm
nux.min.js17490644editdlrm
patterns.js901840644editdlrm
patterns.min.js383020644editdlrm
plugins.js212200644editdlrm
plugins.min.js72530644editdlrm
preferences-persistence.js177200644editdlrm
preferences-persistence.min.js57130644editdlrm
preferences.js215310644editdlrm
preferences.min.js80280644editdlrm
primitives.js52700644editdlrm
primitives.min.js20930644editdlrm
priority-queue.js103380644editdlrm
priority-queue.min.js35050644editdlrm
private-apis.js45310644editdlrm
private-apis.min.js30170644editdlrm
react-i18n.js40640644editdlrm
react-i18n.min.js16270644editdlrm
redux-routine.js253460644editdlrm
redux-routine.min.js99520644editdlrm
reusable-blocks.js223910644editdlrm
reusable-blocks.min.js81850644editdlrm
rich-text.js1074050644editdlrm
rich-text.min.js431820644editdlrm
router.js370790644editdlrm
router.min.js145520644editdlrm
server-side-render.js115880644editdlrm
server-side-render.min.js41980644editdlrm
shortcode.js82150644editdlrm
shortcode.min.js34260644editdlrm
style-engine.js188100644editdlrm
style-engine.min.js69460644editdlrm
theme.js1387330644editdlrm
theme.min.js611440644editdlrm
token-list.js63270644editdlrm
token-list.min.js17230644editdlrm
undo-manager.js54910644editdlrm
undo-manager.min.js18080644editdlrm
upload-media.js1180360644editdlrm
upload-media.min.js498740644editdlrm
url.js239570644editdlrm
url.min.js104230644editdlrm
viewport.js73120644editdlrm
viewport.min.js23740644editdlrm
warning.js16160644editdlrm
warning.min.js8160644editdlrm
widgets.js513460644editdlrm
widgets.min.js214750644editdlrm
wordcount.js71660644editdlrm
wordcount.min.js25700644editdlrm
Edit: /home/desid573/verdenaturopathy.com.au/wp-includes/js/dist/shortcode.js (8215B)
(function() { "use strict"; var wp; (wp ||= {}).shortcode = (() => { 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/shortcode/build-module/index.mjs var index_exports = {}; __export(index_exports, { attrs: () => attrs, default: () => index_default, fromMatch: () => fromMatch, next: () => next, regexp: () => regexp, replace: () => replace, string: () => string }); // node_modules/memize/dist/index.js function memize(fn, options) { var size = 0; var head; var tail; options = options || {}; function memoized() { var node = head, len = arguments.length, args, i; searchCache: while (node) { if (node.args.length !== arguments.length) { node = node.next; continue; } for (i = 0; i < len; i++) { if (node.args[i] !== arguments[i]) { node = node.next; continue searchCache; } } if (node !== head) { if (node === tail) { tail = node.prev; } node.prev.next = node.next; if (node.next) { node.next.prev = node.prev; } node.next = head; node.prev = null; head.prev = node; head = node; } return node.val; } args = new Array(len); for (i = 0; i < len; i++) { args[i] = arguments[i]; } node = { args, // Generate the result from original function val: fn.apply(null, args) }; if (head) { head.prev = node; node.next = head; } else { tail = node; } if (size === /** @type {MemizeOptions} */ options.maxSize) { tail = /** @type {MemizeCacheNode} */ tail.prev; tail.next = null; } else { size++; } head = node; return node.val; } memoized.clear = function() { head = null; tail = null; size = 0; }; return memoized; } // packages/shortcode/build-module/index.mjs function next(tag, text, index = 0) { const re = regexp(tag); re.lastIndex = index; const match = re.exec(text); if (!match) { return; } if ("[" === match[1] && "]" === match[7]) { return next(tag, text, re.lastIndex); } const result = { index: match.index, content: match[0], shortcode: fromMatch(match) }; if (match[1]) { result.content = result.content.slice(1); result.index++; } if (match[7]) { result.content = result.content.slice(0, -1); } return result; } function replace(tag, text, callback) { return text.replace( regexp(tag), // Let us use spread syntax to capture the arguments object. (...args) => { const match = args[0]; const left = args[1]; const right = args[7]; if (left === "[" && right === "]") { return match; } const result = callback(fromMatch(args)); return result || result === "" ? left + result + right : match; } ); } function string(options) { return new Shortcode(options).string(); } function regexp(tag) { return new RegExp( "\\[(\\[?)(" + tag + ")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)", "g" ); } var attrs = memize((text) => { const named = {}; const numeric = []; const pattern = /([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g; text = text.replace(/[\u00a0\u200b]/g, " "); let match; while (match = pattern.exec(text)) { if (match[1]) { named[match[1].toLowerCase()] = match[2]; } else if (match[3]) { named[match[3].toLowerCase()] = match[4]; } else if (match[5]) { named[match[5].toLowerCase()] = match[6]; } else if (match[7]) { numeric.push(match[7]); } else if (match[8]) { numeric.push(match[8]); } else if (match[9]) { numeric.push(match[9]); } } return { named, numeric }; }); function fromMatch(match) { let type; if (match[4]) { type = "self-closing"; } else if (match[6]) { type = "closed"; } else { type = "single"; } return new Shortcode({ tag: match[2], attrs: match[3], type, content: match[5] }); } var Shortcode = class { // Instance properties tag; type; content; attrs; // Static methods static next = next; static replace = replace; static string = string; static regexp = regexp; static attrs = attrs; static fromMatch = fromMatch; constructor(options) { const { tag, attrs: attributes, type, content } = options; this.tag = tag; this.type = type; this.content = content; this.attrs = { named: {}, numeric: [] }; if (!attributes) { return; } if (typeof attributes === "string") { this.attrs = attrs(attributes); } else if ("named" in attributes && "numeric" in attributes && attributes.named !== void 0 && attributes.numeric !== void 0) { this.attrs = attributes; } else { Object.entries(attributes).forEach(([key, value]) => { if (value !== void 0) { this.set(key, String(value)); } }); } } /** * Get a shortcode attribute. * * Automatically detects whether `attr` is named or numeric and routes it * accordingly. * * @param attr Attribute key. * * @return Attribute value. */ get(attr) { if (typeof attr === "number") { return this.attrs.numeric[attr]; } return this.attrs.named[attr]; } /** * Set a shortcode attribute. * * Automatically detects whether `attr` is named or numeric and routes it * accordingly. * * @param attr Attribute key. * @param value Attribute value. * * @return Shortcode instance. */ set(attr, value) { if (typeof attr === "number") { this.attrs.numeric[attr] = value; } else { this.attrs.named[attr] = value; } return this; } /** * Transform the shortcode into a string. * * @return String representation of the shortcode. */ string() { let text = "[" + this.tag; this.attrs.numeric.forEach((value) => { if (/\s/.test(value)) { text += ' "' + value + '"'; } else { text += " " + value; } }); Object.entries(this.attrs.named).forEach(([name, value]) => { text += " " + name + '="' + value + '"'; }); if ("single" === this.type) { return text + "]"; } else if ("self-closing" === this.type) { return text + " /]"; } text += "]"; if (this.content) { text += this.content; } return text + "[/" + this.tag + "]"; } }; var index_default = Shortcode; return __toCommonJS(index_exports); })(); if (typeof wp.shortcode === 'object' && wp.shortcode.default) { wp.shortcode = wp.shortcode.default; } (window.wp ||= {}).shortcode = wp.shortcode; })();