BarterDEX/gui/js/charts/Intl.complete.min.js

14 lines
596 KiB
JavaScript
Raw Normal View History

/**
* @license Copyright 2013 Andy Earnshaw, MIT License
*
* Implements the ECMAScript Internationalization API in ES5-compatible environments,
* following the ECMA-402 specification as closely as possible
*
* ECMA-402: http://ecma-international.org/ecma-402/1.0/
*
* CLDR format locale data should be provided using IntlPolyfill.__addLocaleData().
*/
(function(n,t){var i=t();typeof define=="function"&&define.amd&&define(i);typeof exports=="object"&&(module.exports=i);n.Intl||(n.Intl=i,i.__applyLocaleSensitivePrototypes());n.IntlPolyfill=i})(typeof global!="undefined"?global:this,function(){"use strict";function gt(n){return wt.test(n)?bt.test(n)?!1:kt.test(n)?!1:!0:!1}function pi(n){var e,i,r,u;for(n=n.toLowerCase(),i=n.split("-"),r=1,u=i.length;r<u;r++)if(i[r].length===2)i[r]=i[r].toUpperCase();else if(i[r].length===4)i[r]=i[r].charAt(0).toUpperCase()+i[r].slice(1);else if(i[r].length===1&&i[r]!="x")break;for(n=f.call(i,"-"),(e=n.match(ot))&&e.length>1&&(e.sort(),n=n.replace(RegExp("(?:"+ot.source+")+","i"),f.call(e,""))),t.call(v.tags,n)&&(n=v.tags[n]),i=n.split("-"),r=1,u=i.length;r<u;r++)t.call(v.subtags,i[r])?i[r]=v.subtags[i[r]]:t.call(v.extLang,i[r])&&(i[r]=v.extLang[i[r]][0],r===1&&v.extLang[i[1]][1]===i[0]&&(i=w.call(i,r++),u-=1));return f.call(i,"-")}function wi(){return ft}function bi(n){var t=String(n),i=li(t);return yi.test(i)===!1?!1:!0}function st(n){var e,h,i,t;if(n===undefined)return new o;for(var r=new o,n=typeof n=="string"?[n]:n,u=b(n),c=u.length,f=0;f<c;){if(e=String(f),h=e in u,h){if(i=u[e],i==null||typeof i!="string"&&typeof i!="object")throw new TypeError("String or Object type expected");if(t=String(i),!gt(t))throw new RangeError("'"+t+"' is not a structurally valid language tag");t=pi(t);p.call(r,t)===-1&&s.call(r,t)}f++}return r}function ni(n,t){for(var i=t,r;;){if(p.call(n,i)>-1)return i;if(r=i.lastIndexOf("-"),r<0)return;r>=2&&i.charAt(r-2)=="-"&&(r-=2);i=i.substring(0,r)}}function ti(n,t){for(var u=0,c=t.length,f,i,s,h;u<c&&!f;){var r=t[u],o=String(r).replace(et,""),f=ni(n,o);u++}return i=new e,f!==undefined?(i["[[locale]]"]=f,String(r)!==String(o)&&(s=r.match(et)[0],h=r.indexOf("-u-"),i["[[extension]]"]=s,i["[[extensionIndex]]"]=h)):i["[[locale]]"]=wi(),i}function ki(n,t){return ti(n,t)}function ii(n,i,r,u,f){var it,c,o,a,v,tt,nt,b,h,k;if(n.length===0)throw new ReferenceError("No locale data has been provided for this object yet.");if(it=r["[[localeMatcher]]"],c=it==="lookup"?ti(n,i):ki(n,i),o=c["[[locale]]"],t.call(c,"[[extension]]"))var ut=c["[[extension]]"],rt=c["[[extensionIndex]]"],ft=String.prototype.split,l=ft.call(ut,"-"),et=l.length;a=new e;a["[[dataLocale]]"]=o;for(var d="-u",g=0,ot=u.length;g<ot;){var s=u[g],st=f[o],y=st[s],h=y["0"],nt="",w=p;l!==undefined&&(v=w.call(l,s),v!==-1&&(v+1<et&&l[v+1].length>2?(tt=l[v+1],b=w.call(y,tt),b!==-1&&(h=tt,nt="-"+s+"-"+h)):(b=w(y,"true"),b!==-1&&(h="true"))));t.call(r,"[["+s+"]]")&&(k=r["[["+s+"]]"],w.call(y,k)!==-1&&k!==h&&(h=k,nt=""));a["[["+s+"]]"]=h;d+=nt;g++}if(d.length>2)var ht=o.substring(0,rt),ct=o.substring(rt),o=ht+d+ct;return a["[[locale]]"]=o,a}function ri(n,t){for(var f=t.length,r=new o,i=0;i<f;){var u=t[i],e=String(u).replace(et,""),h=ni(n,e);h!==undefined&&s.call(r,u);i++}return w.call(r)}function di(n,t){return ri(n,t)}function gi(n,i,u){var u,f,o,s;if(u!==undefined&&(u=new e(b(u)),f=u.localeMatcher,f!==undefined&&(f=String(f),f!=="lookup"&&f!=="best fit")))throw new RangeError('matcher should be "lookup" or "best fit"');o=f===undefined||f==="best fit"?di(n,i):ri(n,i);for(s in o)t.call(o,s)&&r(o,s,{writable:!1,configurable:!1,value:o[s]});return r(o,"length",{writable:!1}),o}function h(n,t,i,r,u){var f=n[t];if(f!==undefined){if(f=i==="boolean"?Boolean(f):i==="string"?String(f):f,r!==undefined&&p.call(r,f)===-1)throw new RangeError("'"+f+"' is not an allowed value for `"+t+"`");return f}return u}function k(n,t,i,r,u){var f=n[t];if(f!==undefined){if(f=Number(f),isNaN(f)||f<i||f>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(f)}return u}function ui(){var n=arguments[0],t=arguments[1];return!this||this===i?new i.NumberFormat(n,t):fi(b(this),n,t)}function fi(n,t,i){var f=y(n),it=g(),rt,w,ut,d,a,ft,s,c,nt,et,ot,ht,l,ct,lt,v,p,vt;if(f["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");if(r(n,"__getInternalProperties",{value:function(){if(arguments[0]===tt)return f}}),f
/*
//# sourceMappingURL=Intl.complete.min.js.map
*/