WordPress/wp-includes/js/dist/wordcount.min.js
gziolo c3ea09ebb8 Editor: Update WordPress packages published for Gutenberg 10.6
It contains several changes in addition to regular update to WordPress packages:
- All newly exposed blocks are now registered on the server.
- Dutone block support was added.
- Border block support was updated.
- New shared function `construct_wp_query_args` was added for the family of Query blocks - it might need some further work.

Props youknowriad.
See #52991.



Built from https://develop.svn.wordpress.org/trunk@50929


git-svn-id: http://core.svn.wordpress.org/trunk@50538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-19 15:09:27 +00:00

2 lines
3.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.wordcount=function(e){var n={};function t(r){if(n[r])return n[r].exports;var c=n[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,t),c.l=!0,c.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)t.d(r,c,function(n){return e[n]}.bind(null,c));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=567)}({2:function(e,n){e.exports=window.lodash},567:function(e,n,t){"use strict";t.r(n),t.d(n,"count",(function(){return x}));var r=t(2);const c={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp:/<!--[\s\S]*?-->/g,spaceRegExp:/&nbsp;|&#160;/gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function u(e,n){return n.replace(e.HTMLRegExp,"\n")}function o(e,n){return n.replace(e.astralRegExp,"a")}function l(e,n){return n.replace(e.HTMLEntityRegExp,"")}function i(e,n){return n.replace(e.connectorRegExp," ")}function s(e,n){return n.replace(e.removeRegExp,"")}function a(e,n){return n.replace(e.HTMLcommentRegExp,"")}function p(e,n){return e.shortcodesRegExp?n.replace(e.shortcodesRegExp,"\n"):n}function d(e,n){return n.replace(e.spaceRegExp," ")}function g(e,n){return n.replace(e.HTMLEntityRegExp,"a")}function f(e,n,t){var c,l;return e=Object(r.flow)(u.bind(null,t),a.bind(null,t),p.bind(null,t),o.bind(null,t),d.bind(null,t),g.bind(null,t))(e),null!==(c=null===(l=(e+="\n").match(n))||void 0===l?void 0:l.length)&&void 0!==c?c:0}function x(e,n,t){const o=function(e,n){var t,u;const o=Object(r.extend)({},c,n);return o.shortcodes=null!==(t=null===(u=o.l10n)||void 0===u?void 0:u.shortcodes)&&void 0!==t?t:[],o.shortcodes&&o.shortcodes.length&&(o.shortcodesRegExp=new RegExp("\\[\\/?(?:"+o.shortcodes.join("|")+")[^\\]]*?\\]","g")),o.type=e,"characters_excluding_spaces"!==o.type&&"characters_including_spaces"!==o.type&&(o.type="words"),o}(n,t);let g;switch(o.type){case"words":return g=o.wordsRegExp,function(e,n,t){var c,o;return e=Object(r.flow)(u.bind(null,t),a.bind(null,t),p.bind(null,t),d.bind(null,t),l.bind(null,t),i.bind(null,t),s.bind(null,t))(e),null!==(c=null===(o=(e+="\n").match(n))||void 0===o?void 0:o.length)&&void 0!==c?c:0}(e,g,o);case"characters_including_spaces":return g=o.characters_including_spacesRegExp,f(e,g,o);case"characters_excluding_spaces":return g=o.characters_excluding_spacesRegExp,f(e,g,o);default:return 0}}}});