(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{2198:function(t,e,r){"use strict";r.r(e),r.d(e,"pseudoLocalizeStringForLocale",(function(){return a})),r.d(e,"pseudoLocalizeBundle",(function(){return i}));var o=r(336);const n=r.n(o)()(""),s=t=>{switch(t=t.toLowerCase()){case"zh-cn-pseudo":return"zh_CN_pseudo";case"ar-xx":return"ar_XX";case"pl-xx":default:return"pl_XX"}},a=(t,e)=>{if(e&&e.length<1)return e;const r=(t=>n._strategies[s(t)])(t);return n._transformString(r,e)},i=(t,e)=>{if(!e)return e;const r={};return Object.keys(e).forEach(o=>{/[._](notrans|lcl|image|classname|gif)$/i.test(o)?r[o]=e[o]:r[o]=a(t,e[o])}),r}},336:function(t,e,r){"use strict";const o=r(337),n=new RegExp("^__([0-9]+)__$");function s(t){this._pseudo={},this._createPseudo(t)}s.prototype._expMap=[0,0,1,2,3,3,3,3,4,4,4,5,5,5,6,6,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,14,14,14,14,14,14],s.prototype._ignoreMap={"<":t=>">"===t,"{":t=>"}"===t,"%":t=>~[" ",",",":",";","?","!",")","}","]"].indexOf(t),"&":t=>~[" ",";"].indexOf(t)},s.prototype._strategies={pl_XX:{prefix:"[",suffix:"]",map:o.pl_pseudoCharMap,extChar:"@",quote:" ",locale:"pl_XX",ratio:1},zh_CN_pseudo:{prefix:"Ｘ",suffix:"Ｚ",map:null,extChar:"补",quote:" ",locale:"zh_CN_pseudo",ratio:1.25},ar_XX:{prefix:"",suffix:"",map:o.ar_pseudoCharMap,extChar:"",quote:"",locale:"ar_XX",ratio:1}},s.prototype._createPseudo=function(t){for(const e of Object.keys(this._strategies))this._pseudo[e]=this.pseudoLocalizeWith(this._strategies[e],t)},s.prototype.getPseudo=function(){return this._pseudo},s.prototype._getExtension=function(t,e,r,o){let n,s="",a=t<=this._expMap.length?this._expMap[t]:.15*t;if(a=parseInt(a/e),0===a||0===r.length)return s;if("zh_CN_pseudo"===o)for(n=0;n<a;n++)s+=n>0&&n%7==0?" ":r;else{var i=[];for(n=0;n<a;n++)i.push(r);for(n=6;n<a;n+=7)i[n]=" ";s=i.join("")}return s},s.prototype._transformString=function(t,e){if(!e||0===e.length||n.test(e))return e;var r=t.map,o=t.quote;e=e.replace(/\\[nrt]|\\u([0-9A-Fa-f]{4})/g,"%$&!");const{result:s,charCount:a}=e.split("").reduce(({ignoreFn:t,result:e,charCount:o},n,s)=>(t&&t(n,s)&&(t=null),t||((t=this._ignoreMap[n])?o-=1:(o+=1,null!=r&&r[n]&&(n=r[n]))),{ignoreFn:t,result:e+=n,charCount:o}),{ignoreFn:null,result:"",charCount:0});var i=s.replace(/\%(\\[nrt]|\\u([0-9A-Fa-f]{4}))\!/g,(function(t,e,r){return t.substr(1).slice(0,-1)}));return t.prefix+i+o+this._getExtension(a,t.ratio,t.extChar,t.locale)+t.suffix},s.prototype._getStrategy=function(t){var e;switch(t){case"plxx":e=strategies.plxx;break;case"frxx":e=strategies.frxx;break;case"zhxx":e=strategies.zhxx;break;default:e=strategies.plxx}return e},s.prototype._utf8_2ascii=function(t){for(var e="",r=0;r<t.length;r++)if(t.charCodeAt(r)<128)e+=t.charAt(r);else{var o=""+t.charCodeAt(r).toString(16).toUpperCase();e+="\\u"+(2===o.length?"00"+o:3===o.length?"0"+o:o)}return e},s.prototype._hasPlaceholder=function(t){return t.match(/\{[A-Za-z0-9_]+}/g)},s.prototype.pseudoLocalizeWith=function(t,e){var r=this._transformString(t,e);return this._utf8_2ascii(r)},s.prototype.pseudoLocalize=function(t,e){if(e.length<=1)return e;var r=this._getStrategy(t);return this.pseudoLocalizeWith(r)},s.builder=function(t){return new s(t)},t.exports=s.builder},337:function(t,e){t.exports={pl_pseudoCharMap:{a:"ą",c:"ć",d:"đ",e:"ę",i:"í",l:"ł",n:"ň",o:"ő",r:"ř",s:"ś",t:"ţ",u:"ű",z:"ż",A:"Ą",C:"Ć",D:"Đ",E:"Ę",I:"Í",L:"Ł",N:"Ň",O:"Ő",R:"Ř",S:"Ś",T:"Ţ",U:"Ű",Z:"Ż"},fr_pseudoCharMap:{a:"å",b:"þ",c:"ç",d:"ð",e:"ë",i:"î",n:"ñ",o:"ǿ",u:"ü",y:"ÿ",A:"Å",B:"ß",C:"Ç",D:"Ð",E:"Ë",I:"Î",N:"Ñ",O:"Ǿ",U:"Ü",Y:"Ÿ"},ar_pseudoCharMap:{A:"ٯ",B:"إ",C:"ژ",D:"ٺ",E:"ٻ",F:"ټ",G:"ں",H:"آ",I:"ک",J:"ھ",K:"ٹ",L:"ہ",M:"ٽ",N:"أ",O:"گ",P:"ے",Q:"ٿ",R:"ج",S:"ڀ",T:"ځ",U:"پ",V:"ؤ",W:"ڂ",X:"ي",Y:"چ",Z:"ة",a:"ش",b:"ذ",c:"ز",d:"ڈ",e:"ث",f:"ب",g:"ل",h:"ا",i:"ه",j:"ت",k:"ن",l:"م",m:"ئ",n:"د",o:"خ",p:"ح",q:"ض",r:"ق",s:"س",t:"ف",u:"ع",v:"ر",w:"ص",x:"ط",y:"غ",z:"ظ"}}}}]);
//# sourceMappingURL=4.content-sdk-components.js.map