Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/@formatjs/intl-displaynames/dist/umd/intl-displaynames.min.js
Назад
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).IntlDisplayNames={})}(this,function(e){"use strict";function m(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function g(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function c(e,t,r,n,a){var o=e[t];if(void 0===o)return a;if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(o=Boolean(o)),"string"===r&&(o=g(o)),void 0!==n&&!n.filter(function(e){return e==o}).length)throw new RangeError(o+" is not within "+n.join(", "));return o}function y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=e.get(t);if(!a)throw new TypeError(t+" InternalSlot has not been initialized");return r.reduce(function(e,t){return e[t]=a[t],e},Object.create(null))}var t=/[^A-Z]/;function d(e){return 3===(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length&&!t.test(e)}function j(e){var t=Intl.getCanonicalLocales;return"function"==typeof t?t(e):Intl.DateTimeFormat.supportedLocalesOf(e)}var n,r=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function u(e){var c,u,O=function(e,t){for(var r={locale:""},n=0,a=t;n<a.length;n++){var o=a[n],l=o.replace(s,""),i=f(e,l);if(i)return r.locale=i,o!==l&&(r.extension=o.slice(l.length+1,o.length)),r}return r.locale=c(),r},w=(u=c=e,function(e,t){for(var r={locale:""},n=0,a=t;n<a.length;n++){var o=a[n],l=o.replace(s,""),i=f(e,l);if(i)return r.locale=i,o!==l&&(r.extension=o.slice(l.length+1,o.length)),r}return r.locale=u(),r});return function(e,t,r,n,a){for(var o,l=("lookup"===r.localeMatcher?O:w)(e,t),i=l.locale,c={locale:"",dataLocale:i},u="-u",s=0,f=n;s<f.length;s++){var p=f[s],v=a[i];m("object"==typeof v&&null!==v,"locale data "+p+" must be an object");var g=v[p];m(Array.isArray(g),"keyLocaleData for "+p+" must be an array");var y=g[0];m("string"==typeof y||null===y,"value must be string or null");var d,h,b="";!l.extension||void 0!==(d=L(l.extension,p))&&(""!==d?~g.indexOf(d)&&(b="-"+p+"-"+(y=d)):~d.indexOf("true")&&(y="true",b="-"+p)),p in r&&(m("string"==typeof(h=r[p])||null==h,"optionsValue must be String, Undefined or Null"),~g.indexOf(h)&&h!==y&&(y=h,b="")),c[p]=y,u+=b}return 2<u.length&&(-1===(o=i.indexOf("-x-"))?i+=u:i=i.slice(0,o)+u+i.slice(o,i.length),i=j(i)[0]),c.locale=i,c}}function L(e,t){m(2===t.length,"key must have 2 elements");var r=e.length,n="-"+t+"-",a=e.indexOf(n);if(-1!==a){for(var o=a+4,l=o,i=o,c=!1;!c;){var u=e.indexOf("-",i);2===(-1===u?r-i:u-i)?c=!0:-1===u?(l=r,c=!0):i=(l=u)+1}return e.slice(o,l)}if(n="-"+t,-1!==(a=e.indexOf(n))&&a+3===r)return""}var s=/-u(?:-[0-9a-z]{2,8})+/gi;function f(e,t){for(var r=t;;){if(~e.indexOf(r))return r;var n=r.lastIndexOf("-");if(!~n)return;2<=n&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function a(e,t){for(var r=[],n=0,a=t;n<a.length;n++){var o=f(e,a[n].replace(s,""));o&&r.push(o)}return r}function l(e,t,r){return void 0!==r&&c(r=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}(r),"localeMatcher","string",["lookup","best fit"],"best fit"),a(e,t)}var i,p=(i=Error,r(v,i),v);function v(){var e=null!==i&&i.apply(this,arguments)||this;return e.type="MISSING_LOCALE_DATA",e}function h(e,t,r){void 0===r&&(r=function(e,t){return o(o({},e),t)});var n=function(e,t,r){var n=[e];t[e]&&(e=t[e],n.push(e));var a=r[e];a&&n.push(a);for(var o=e.split("-"),l=o.length;1<l;l--)n.push(o.slice(0,l-1).join("-"));return n}(e,t.aliases,t.parentLocales),a=n.map(function(e){return t.data[e]}).filter(Boolean);if(!a.length)throw new p('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return a.reverse(),a.reduce(r,{})}var b=function(){return(b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},O=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],l=0,i=o.length;l<i;l++,a++)n[a]=o[l];return n},w=(_.supportedLocalesOf=function(e,t){return l(_.availableLocales,j(e),t)},_.__addLocaleData=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++)for(var a=n[r],o=0,l=Object.keys(O(a.availableLocales,Object.keys(a.aliases),Object.keys(a.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{}));o<l.length;o++){var i=l[o];try{_.localeData[i]=h(i,a)}catch(e){}}_.availableLocales=Object.keys(_.localeData),_.__defaultLocale||(_.__defaultLocale=_.availableLocales[0])},_.prototype.of=function(e){k(this,"of");var t=function(e,t,r){return y(e,t,r)[r]}(x,this,"type"),r=g(e);if(!function(e,t){switch(e){case"language":return/^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|\d{3}))?(-([a-z\d]{5,8}|\d[a-z\d]{3}))*$/i.test(t);case"region":return/^([a-z]{2}|\d{3})$/i.test(t);case"script":return/^[a-z]{4}$/i.test(t);case"currency":return d(t)}}(t,r))throw RangeError("invalid code for Intl.DisplayNames.prototype.of");var n,a,o=y(x,this,"localeData","style","fallback"),l=o.localeData,i=o.style,c=o.fallback;switch(t){case"language":n=j(r)[0];var u=/-([a-z]{2}|\d{3})\b/i.exec(n);u&&(n=n.substring(0,u.index)+n.substring(u.index+u[0].length),a=u[1]);break;case"currency":n=r.toUpperCase();break;case"script":n=r[0]+r.substring(1).toLowerCase();break;case"region":n=r.toUpperCase()}var s=l.types[t],f=s[i][n]||s.long[n];if(void 0!==f){if(!a)return f;var p=l.types.region,v=p[i][a]||p.long[a];if(v||"code"===c)return l.patterns.locale.replace("{0}",f).replace("{1}",v||a)}if("code"===c)return r},_.prototype.resolvedOptions=function(){return k(this,"resolvedOptions"),b({},y(x,this,"locale","style","type","fallback"))},_.getDefaultLocale=function(){return _.__defaultLocale},_.localeData={},_.availableLocales=[],_.__defaultLocale="en",_.polyfilled=!0,_);function _(e,t){var r=this.constructor;if(void 0===t&&(t=Object.create(null)),void 0===r)throw TypeError("Constructor Intl.DisplayNames requires 'new'");var n=j(e),a=c(t,"localeMatcher","string",["lookup","best fit"],"best fit"),o=u(_.getDefaultLocale)(_.availableLocales,n,{localeMatcher:a},[],_.localeData);D(this,"style",c(t,"style","string",["narrow","short","long"],"long")),D(this,"type",c(t,"type","string",["language","currency","region","script"],"language")),D(this,"fallback",c(t,"fallback","string",["code","none"],"code")),D(this,"locale",o.locale);var l=o.dataLocale,i=_.localeData[l];m(void 0!==i,"locale data for "+o.locale+" does not exist."),D(this,"localeData",i)}try{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(w.prototype,Symbol.toStringTag,{value:"Intl.DisplayNames",configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(w,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}var x=new WeakMap;function D(e,t,r){var n,a,o,l;a=e,o=t,l=r,(n=x).get(a)||n.set(a,Object.create(null)),n.get(a)[o]=l}function k(e,t){if(!(e instanceof w))throw TypeError("Method Intl.DisplayNames.prototype."+t+" called on incompatible receiver")}e.DisplayNames=w,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=intl-displaynames.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка