You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
8.8 KiB

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