WordPress/wp-includes/js/dist/i18n.min.js

1 line
8.2 KiB
JavaScript
Raw Normal View History

this.wp=this.wp||{},this.wp.i18n=function(n){var t={};function r(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)r.d(e,o,function(t){return n[t]}.bind(null,o));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=376)}({137:function(n,t,r){!function(n){var r={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function e(){var n=arguments[0],t=e.cache;return t[n]&&t.hasOwnProperty(n)||(t[n]=e.parse(n)),e.format.call(null,t[n],arguments)}e.format=function(n,t){var i,u,a,l,s,c,f,p,d=1,g=n.length,h="",v=[],b=!0,y="";for(u=0;u<g;u++)if("string"===(h=o(n[u])))v[v.length]=n[u];else if("array"===h){if((l=n[u])[2])for(i=t[d],a=0;a<l[2].length;a++){if(!i.hasOwnProperty(l[2][a]))throw new Error(e("[sprintf] property '%s' does not exist",l[2][a]));i=i[l[2][a]]}else i=l[1]?t[l[1]]:t[d++];if("function"==o(i)&&(i=i()),r.not_string.test(l[8])&&r.not_json.test(l[8])&&"number"!=o(i)&&isNaN(i))throw new TypeError(e("[sprintf] expecting number but found %s",o(i)));switch(r.number.test(l[8])&&(b=i>=0),l[8]){case"b":i=i.toString(2);break;case"c":i=String.fromCharCode(i);break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,l[6]?parseInt(l[6]):0);break;case"e":i=l[7]?i.toExponential(l[7]):i.toExponential();break;case"f":i=l[7]?parseFloat(i).toFixed(l[7]):parseFloat(i);break;case"g":i=l[7]?parseFloat(i).toPrecision(l[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=String(i))&&l[7]?i.substring(0,l[7]):i;break;case"u":i>>>=0;break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}r.json.test(l[8])?v[v.length]=i:(!r.number.test(l[8])||b&&!l[3]?y="":(y=b?"+":"-",i=i.toString().replace(r.sign,"")),c=l[4]?"0"===l[4]?"0":l[4].charAt(1):" ",f=l[6]-(y+i).length,s=l[6]&&f>0?(p=c,Array(f+1).join(p)):"",v[v.length]=l[5]?y+i+s:"0"===c?y+s+i:s+y+i)}return v.join("")},e.cache={},e.parse=function(n){for(var t=n,e=[],o=[],i=0;t;){if(null!==(e=r.text.exec(t)))o[o.length]=e[0];else if(null!==(e=r.modulo.exec(t)))o[o.length]="%";else{if(null===(e=r.placeholder.exec(t)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){i|=1;var u=[],a=e[2],l=[];if(null===(l=r.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u[u.length]=l[1];""!==(a=a.substring(l[0].length));)if(null!==(l=r.key_access.exec(a)))u[u.length]=l[1];else{if(null===(l=r.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u[u.length]=l[1]}e[2]=u}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o[o.length]=e}t=t.substring(e[0].length)}return o};function o(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}t.sprintf=e,t.vsprintf=function(n,t,r){return(r=(t||[]).slice(0)).splice(0,0,n),e.apply(null,r)}}("undefined"==typeof window||window)},15:function(n,t,r){"use strict";function e(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}r.d(t,"a",function(){return e})},376:function(n,t,r){"use strict";r.r(t);var e,o,i,u,a=r(7);e={"(":9,"!":8,"*":7,"/":7,"%":7