WordPress/wp-includes/js/dist/i18n.min.js
Peter Wilson eae23abd88 Build tools: Use hashed module IDs for minified files.
Further improves webpack configuration for editor files to use hashed module IDs in the compressed (`*.min.js`) production files.

Follow up to [50940].

Props @gziolo.
Merges [51035] to the 5.7 branch.
Fixes #53192.


Built from https://develop.svn.wordpress.org/branches/5.7@51036


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-27 00:29:10 +00:00

2 lines
10 KiB
JavaScript
Raw Permalink 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.i18n=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="Vhyj")}({"4Z/T":function(t,e,n){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(t){return u(c(t),arguments)}function a(t,e){return o.apply(null,[t].concat(e||[]))}function u(t,e){var n,r,a,u,s,c,p,l,f,d=1,g=t.length,h="";for(r=0;r<g;r++)if("string"==typeof t[r])h+=t[r];else if("object"==typeof t[r]){if((u=t[r]).keys)for(n=e[d],a=0;a<u.keys.length;a++){if(null==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',u.keys[a],u.keys[a-1]));n=n[u.keys[a]]}else n=u.param_no?e[u.param_no]:e[d++];if(i.not_type.test(u.type)&&i.not_primitive.test(u.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(u.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(u.type)&&(l=n>=0),u.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,u.width?parseInt(u.width):0);break;case"e":n=u.precision?parseFloat(n).toExponential(u.precision):parseFloat(n).toExponential();break;case"f":n=u.precision?parseFloat(n).toFixed(u.precision):parseFloat(n);break;case"g":n=u.precision?String(Number(n.toPrecision(u.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=u.precision?n.substring(0,u.precision):n;break;case"t":n=String(!!n),n=u.precision?n.substring(0,u.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=u.precision?n.substring(0,u.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=u.precision?n.substring(0,u.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(u.type)?h+=n:(!i.number.test(u.type)||l&&!u.sign?f="":(f=l?"+":"-",n=n.toString().replace(i.sign,"")),c=u.pad_char?"0"===u.pad_char?"0":u.pad_char.charAt(1):" ",p=u.width-(f+n).length,s=u.width&&p>0?c.repeat(p):"",h+=u.align?f+n+s:"0"===c?f+s+n:s+f+n)}return h}var s=Object.create(null);function c(t){if(s[t])return s[t];for(var e,n=t,r=[],o=0;n;){if(null!==(e=i.text.exec(n)))r.push(e[0]);else if(null!==(e=i.modulo.exec(n)))r.push("%");else{if(null===(e=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var a=[],u=e[2],c=[];if(null===(c=i.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(c[1]);""!==(u=u.substring(c[0].length));)if(null!==(c=i.key_access.exec(u)))a.push(c[1]);else{if(null===(c=i.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(c[1])}e[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return s[t]=r}e.sprintf=o,e.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(e,n,e,t))||(t.exports=r))}()},"4eJC":function(t,e,n){t.exports=function(t,e){var n,r,i=0;function o(){var o,a,u=n,s=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(a=0;a<s;a++)if(u.args[a]!==arguments[a]){u=u.next;continue t}return u!==n&&(u===r&&(r=u.prev),u.prev.next=u.next,u.next&&(u.next.prev=u.prev),u.next=n,u.prev=null,n.prev=u,n=u),u.val}u=u.next}for(o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return u={args:o,val:t.apply(null,o)},n?(n.prev=u,u.next=n):r=u,i===e.maxSize?(r=r.prev).next=null:i++,n=u,u.val}return e=e||{},o.clear=function(){n=null,r=null,i=0},o}},Vhyj:function(t,e,n){"use strict";n.r(e),n.d(e,"sprintf",(function(){return s})),n.d(e,"createI18n",(function(){return m})),n.d(e,"setLocaleData",(function(){return j})),n.d(e,"__",(function(){return k})),n.d(e,"_x",(function(){return F})),n.d(e,"_n",(function(){return S})),n.d(e,"_nx",(function(){return P})),n.d(e,"isRTL",(function(){return T}));var r=n("4eJC"),i=n.n(r),o=n("4Z/T"),a=n.n(o),u=i()(console.error);function s(t){try{for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return a.a.sprintf.apply(a.a,[t].concat(n))}catch(e){return u("sprintf error: \n\n"+e.toString()),t}}var c,p,l,f,d=n("rePB");c={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],l={")":["("],":":["?","?:"]},f=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function h(t){var e=function(t){for(var e,n,r,i,o=[],a=[];e=t.match(f);){for(n=e[0],(r=t.substr(0,e.index).trim())&&o.push(r);i=a.pop();){if(l[n]){if(l[n][0]===i){n=l[n][1]||n;break}}else if(p.indexOf(i)>=0||c[i]<c[n]){a.push(i);break}o.push(i)}l[n]||a.push(n),t=t.substr(e.index+n.length)}return(t=t.trim())&&o.push(t),o.concat(a.reverse())}(t);return function(t){return function(t,e){var n,r,i,o,a,u,s=[];for(n=0;n<t.length;n++){if(a=t[n],o=g[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{u=o.apply(null,i)}catch(t){return t}}else u=e.hasOwnProperty(a)?e[a]:+a;s.push(u)}return s[0]}(e,t)}}var y={contextDelimiter:"",onMissingKey:null};function v(t,e){var n;for(n in this.data=t,this.pluralForms={},this.options={},y)this.options[n]=void 0!==e&&n in e?e[n]:y[n]}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){Object(d.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}v.prototype.getPluralForm=function(t,e){var n,r,i,o,a=this.pluralForms[t];return a||("function"!=typeof(i=(n=this.data[t][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(t){var e,n,r;for(e=t.split(";"),n=0;n<e.length;n++)if(0===(r=e[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=h(r),i=function(t){return+o({n:t})}),a=this.pluralForms[t]=i),a(e)},v.prototype.dcnpgettext=function(t,e,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(t,i),a=n,e&&(a=e+this.options.contextDelimiter+n),(u=this.data[t][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,t),0===o?n:r)};var _={"":{plural_forms:function(t){return 1===t?0:1}}},m=function(t,e,n){var r=new v({}),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[e]=x(x(x({},_),r.data[e]),t),r.data[e][""]=x(x({},_[""]),r.data[e][""])},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return r.data[t]||i(void 0,t),r.dcnpgettext(t,e,n,o,a)},a=function(t){return void 0===t?"default":t},u=function(t,e,r){var i=o(r,e,t);return void 0===n?i:(i=n.applyFilters("i18n.gettext_with_context",i,t,e,r),n.applyFilters("i18n.gettext_with_context_"+a(r),i,t,e,r))};return t&&i(t,e),{setLocaleData:i,__:function(t,e){var r=o(e,void 0,t);return void 0===n?r:(r=n.applyFilters("i18n.gettext",r,t,e),n.applyFilters("i18n.gettext_"+a(e),r,t,e))},_x:u,_n:function(t,e,r,i){var u=o(i,void 0,t,e,r);return void 0===n?u:(u=n.applyFilters("i18n.ngettext",u,t,e,r,i),n.applyFilters("i18n.ngettext_"+a(i),u,t,e,r,i))},_nx:function(t,e,r,i,u){var s=o(u,i,t,e,r);return void 0===n?s:(s=n.applyFilters("i18n.ngettext_with_context",s,t,e,r,i,u),n.applyFilters("i18n.ngettext_with_context_"+a(u),s,t,e,r,i,u))},isRTL:function(){return"rtl"===u("ltr","text direction")}}},w=n("g56x"),O=m(void 0,void 0,{applyFilters:w.applyFilters}),j=O.setLocaleData.bind(O),k=O.__.bind(O),F=O._x.bind(O),S=O._n.bind(O),P=O._nx.bind(O),T=O.isRTL.bind(O)},g56x:function(t,e){t.exports=window.wp.hooks},rePB:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}});