n2words 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/fr-BE.js +1 -1
- package/dist/fr-BE.js.map +1 -1
- package/dist/fr.js +1 -1
- package/dist/fr.js.map +1 -1
- package/dist/n2words.js +1 -1
- package/dist/n2words.js.map +1 -1
- package/lib/i18n/fr.d.ts +1 -1
- package/lib/i18n/fr.js +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ n2words(-1.5) // 'minus one point five'
|
|
|
16
16
|
|
|
17
17
|
n2words(123, {lang: 'fr'}) // 'cent vingt-trois'
|
|
18
18
|
n2words(123, {lang: 'es'}) // 'ciento veintitrés'
|
|
19
|
-
n2words(123, {lang: 'ar'}) // 'مائة
|
|
19
|
+
n2words(123, {lang: 'ar'}) // 'مائة وثلاثة وعشرون'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
See the [Wiki](https://github.com/forzagreen/n2words/wiki) for examples and advanced usage like [importing only specific languages](https://github.com/forzagreen/n2words/wiki/Importing-only-specific-languages).
|
package/dist/fr-BE.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.n2words=r():t.n2words=r()}(this,()=>(()=>{"use strict";var t={34:(t,r,e)=>{var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},81:(t,r,e)=>{var n=e(9565),o=e(9306),i=e(8551),a=e(6823),u=e(851),c=TypeError;t.exports=function(t,r){var e=arguments.length<2?u(t):r;if(o(e))return i(n(e,t));throw new c(a(t)+" is not iterable")}},116:(t,r,e)=>{var n=e(6518),o=e(9565),i=e(2652),a=e(9306),u=e(8551),c=e(1767),s=e(9539),f=e(4549)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(t){u(this);try{a(t)}catch(t){s(this,"throw",t)}if(f)return o(f,this,t);var r=c(this),e=0;return i(r,function(r,n){if(t(r,e++))return n(r)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},283:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4901),a=e(9297),u=e(3724),c=e(350).CONFIGURABLE,s=e(3706),f=e(1181),p=f.enforce,l=f.get,v=String,h=Object.defineProperty,d=n("".slice),y=n("".replace),g=n([].join),b=u&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),x=String(String).split("String"),m=t.exports=function(t,r,e){"Symbol("===d(v(r),0,7)&&(r="["+y(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||c&&t.name!==r)&&(u?h(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&a(e,"arity")&&t.length!==e.arity&&h(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=p(t);return a(n,"source")||(n.source=g(x,"string"==typeof r?r:"")),t};Function.prototype.toString=m(function(){return i(this)&&l(this).source||s(this)},"toString")},350:(t,r,e)=>{var n=e(3724),o=e(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},397:(t,r,e)=>{var n=e(7751);t.exports=n("document","documentElement")},421:t=>{t.exports={}},616:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},679:(t,r,e)=>{var n=e(1625),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw new o("Incorrect invocation")}},741:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},757:(t,r,e)=>{var n=e(7751),o=e(4901),i=e(1625),a=e(7040),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},851:(t,r,e)=>{var n=e(6955),o=e(5966),i=e(4117),a=e(6269),u=e(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[n(t)]}},1072:(t,r,e)=>{var n=e(1828),o=e(8727);t.exports=Object.keys||function(t){return n(t,o)}},1181:(t,r,e)=>{var n,o,i,a=e(8622),u=e(4576),c=e(34),s=e(6699),f=e(9297),p=e(7629),l=e(6119),v=e(421),h="Object already initialized",d=u.TypeError,y=u.WeakMap;if(a||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,r){if(g.has(t))throw new d(h);return r.facade=t,g.set(t,r),r},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var b=l("state");v[b]=!0,n=function(t,r){if(f(t,b))throw new d(h);return r.facade=t,s(t,b,r),r},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return e}}}},1291:(t,r,e)=>{var n=e(741);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},1625:(t,r,e)=>{var n=e(9504);t.exports=n({}.isPrototypeOf)},1767:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:(t,r,e)=>{var n=e(9504),o=e(9297),i=e(5397),a=e(9617).indexOf,u=e(421),c=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(u,e)&&o(n,e)&&c(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~a(f,e)||c(f,e));return f}},2106:(t,r,e)=>{var n=e(283),o=e(4913);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},2140:(t,r,e)=>{var n={};n[e(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},2195:(t,r,e)=>{var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2360:(t,r,e)=>{var n,o=e(8551),i=e(6801),a=e(8727),u=e(421),c=e(397),s=e(4055),f=e(6119),p="prototype",l="script",v=f("IE_PROTO"),h=function(){},d=function(t){return"<"+l+">"+t+"</"+l+">"},y=function(t){t.write(d("")),t.close();var r=t.parentWindow.Object;return t=null,r},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;g="undefined"!=typeof document?document.domain&&n?y(n):(r=s("iframe"),e="java"+l+":",r.style.display="none",c.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):y(n);for(var o=a.length;o--;)delete g[p][a[o]];return g()};u[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(h[p]=o(t),e=new h,h[p]=null,e[v]=t):e=g(),void 0===r?e:i.f(e,r)}},2577:(t,r,e)=>{e(116)},2652:(t,r,e)=>{var n=e(6080),o=e(9565),i=e(8551),a=e(6823),u=e(4209),c=e(6198),s=e(1625),f=e(81),p=e(851),l=e(9539),v=TypeError,h=function(t,r){this.stopped=t,this.result=r},d=h.prototype;t.exports=function(t,r,e){var y,g,b,x,m,w,O,j=e&&e.that,S=!(!e||!e.AS_ENTRIES),E=!(!e||!e.IS_RECORD),T=!(!e||!e.IS_ITERATOR),P=!(!e||!e.INTERRUPTED),I=n(r,j),A=function(t){return y&&l(y,"normal"),new h(!0,t)},C=function(t){return S?(i(t),P?I(t[0],t[1],A):I(t[0],t[1])):P?I(t,A):I(t)};if(E)y=t.iterator;else if(T)y=t;else{if(!(g=p(t)))throw new v(a(t)+" is not iterable");if(u(g)){for(b=0,x=c(t);x>b;b++)if((m=C(t[b]))&&s(d,m))return m;return new h(!1)}y=f(t,g)}for(w=E?t.next:y.next;!(O=o(w,y)).done;){try{m=C(O.value)}catch(t){l(y,"throw",t)}if("object"==typeof m&&m&&s(d,m))return m}return new h(!1)}},2777:(t,r,e)=>{var n=e(9565),o=e(34),i=e(757),a=e(5966),u=e(4270),c=e(8227),s=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=a(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new s("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},2787:(t,r,e)=>{var n=e(9297),o=e(4901),i=e(8981),a=e(6119),u=e(2211),c=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var r=i(t);if(n(r,c))return r[c];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof s?f:null}},2796:(t,r,e)=>{var n=e(9039),o=e(4901),i=/#|\.prototype\./,a=function(t,r){var e=c[u(t)];return e===f||e!==s&&(o(r)?n(r):!!r)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},2839:(t,r,e)=>{var n=e(4576).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},3392:(t,r,e)=>{var n=e(9504),o=0,i=Math.random(),a=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3706:(t,r,e)=>{var n=e(9504),o=e(4901),i=e(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3717:(t,r)=>{r.f=Object.getOwnPropertySymbols},3724:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3843:(t,r,e)=>{e.d(r,{A:()=>i}),e(4114),e(8992),e(2577);var n=e(6298);class o extends n.A{#t;constructor(t,r){super(t),this.#t=r}get cards(){return this.#t}set cards(t){this.#t=t}getCardWord(t){const r=this.cards.find(r=>r[0]==t);return Array.isArray(r)?r[1]:void 0}toCardMatches(t){const r=[];let e=t;do{const t=this.cards.find(t=>e>=t[0]);let n;0==e?(n=1,e=0):(n=e/t[0],e%=t[0]),1==n?r.push({[this.getCardWord(1)]:1}):r.push(this.toCardMatches(n)),r.push({[t[1]]:t[0]})}while(e>0);return r}clean(t){let r=t;for(;1!=t.length;){r=[];const e=t[0],n=t[1];if(Array.isArray(e)||Array.isArray(n))for(const e of t)Array.isArray(e)?1==e.length?r.push(e[0]):r.push(this.clean(e)):r.push(e);else r.push(this.merge(e,n)),t.slice(2).length>0&&r.push(t.slice(2));t=r}return r[0]}postClean(t){return t.trimEnd()}toCardinal(t){const r=this.toCardMatches(t),e=Object.keys(this.clean(r))[0];return this.postClean(e)}}const i=o},4055:(t,r,e)=>{var n=e(4576),o=e(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4114:(t,r,e)=>{var n=e(6518),o=e(8981),i=e(6198),a=e(4527),u=e(6837);n({target:"Array",proto:!0,arity:1,forced:e(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=o(this),e=i(r),n=arguments.length;u(e+n);for(var c=0;c<n;c++)r[e]=arguments[c],e++;return a(r,e),e}})},4117:t=>{t.exports=function(t){return null==t}},4209:(t,r,e)=>{var n=e(8227),o=e(6269),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4270:(t,r,e)=>{var n=e(9565),o=e(4901),i=e(34),a=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw new a("Can't convert object to primitive value")}},4376:(t,r,e)=>{var n=e(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4495:(t,r,e)=>{var n=e(9519),o=e(9039),i=e(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4527:(t,r,e)=>{var n=e(3724),o=e(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,r){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},4549:(t,r,e)=>{var n=e(4576);t.exports=function(t,r){var e=n.Iterator,o=e&&e.prototype,i=o&&o[t],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof r||(a=!1)}if(!a)return i}},4576:function(t){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4659:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=function(t,r,e){n?o.f(t,r,i(0,e)):t[r]=e}},4901:t=>{var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4913:(t,r,e)=>{var n=e(3724),o=e(5917),i=e(8686),a=e(8551),u=e(6969),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(a(t),r=u(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(a(t),r=u(r),a(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},5031:(t,r,e)=>{var n=e(7751),o=e(9504),i=e(8480),a=e(3717),u=e(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=a.f;return e?c(r,e(t)):r}},5397:(t,r,e)=>{var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},5610:(t,r,e)=>{var n=e(1291),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5745:(t,r,e)=>{var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5917:(t,r,e)=>{var n=e(3724),o=e(9039),i=e(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:(t,r,e)=>{var n=e(9306),o=e(4117);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},6080:(t,r,e)=>{var n=e(7476),o=e(9306),i=e(616),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},6119:(t,r,e)=>{var n=e(5745),o=e(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6198:(t,r,e)=>{var n=e(8014);t.exports=function(t){return n(t.length)}},6269:t=>{t.exports={}},6298:(t,r,e)=>{e.d(r,{A:()=>n}),e(4114);const n=class{#r;#e;#n;#o;#i;constructor(t){t=Object.assign({negativeWord:"",separatorWord:"",zero:"",spaceSeparator:" "},t),this.#r=t.negativeWord,this.#e=t.separatorWord,this.#n=t.zero,this.#o=t.spaceSeparator}get negativeWord(){return this.#r}get separatorWord(){return this.#e}get zero(){return this.#n}get spaceSeparator(){return this.#o}get wholeNumber(){return this.#i}decimalToCardinal(t){const r=[],e=[...t];let n=0;for(;n<e.length&&"0"===e[n];)r.push(this.zero),n++;return n===e.length?r:[...r,this.toCardinal(BigInt(t))]}floatToCardinal(t){if("number"==typeof t){if(Number.isNaN(t))throw new TypeError("NaN is not an accepted number.");t=t.toString()}else if("string"==typeof t){if(0===(t=t.trim()).length||Number.isNaN(Number(t)))throw new Error('"'+t+'" is not a valid number.')}else if("bigint"!=typeof t)throw new TypeError("Invalid variable type: "+typeof t);let r,e,n=[];if(t<0&&n.push(this.negativeWord),"bigint"==typeof t)r=t;else{const n=t.split(".");r=BigInt(n[0]),e=n[1]}return r<0&&(r=-r),this.#i=r,n=[...n,this.toCardinal(r)],e&&(n.push(this.separatorWord),n=[...n,...this.decimalToCardinal(e)]),n.join(this.spaceSeparator)}}},6395:t=>{t.exports=!1},6518:(t,r,e)=>{var n=e(4576),o=e(7347).f,i=e(6699),a=e(6840),u=e(9433),c=e(7740),s=e(2796);t.exports=function(t,r){var e,f,p,l,v,h=t.target,d=t.global,y=t.stat;if(e=d?n:y?n[h]||u(h,{}):n[h]&&n[h].prototype)for(f in r){if(l=r[f],p=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(d?f:h+(y?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),a(e,f,l,t)}}},6603:(t,r,e)=>{e.d(r,{O:()=>o});var n=e(3843);class o extends n.A{constructor(t){super(t=Object.assign({negativeWord:"moins",separatorWord:"virgule",zero:"zéro",_region:"FR"},t),[[1000000000000000000000000000n,"quadrilliard"],[1000000000000000000000000n,"quadrillion"],[1000000000000000000000n,"trilliard"],[1000000000000000000n,"trillion"],[1000000000000000n,"billiard"],[1000000000000n,"billion"],[1000000000n,"milliard"],[1000000n,"million"],[1000n,"mille"],[100n,"cent"],...["BE"].includes(t._region)?[[90n,"nonante"]]:[],[80n,"quatre-vingts"],...["BE"].includes(t._region)?[[70n,"septante"]]:[],[60n,"soixante"],[50n,"cinquante"],[40n,"quarante"],[30n,"trente"],[20n,"vingt"],[19n,"dix-neuf"],[18n,"dix-huit"],[17n,"dix-sept"],[16n,"seize"],[15n,"quinze"],[14n,"quatorze"],[13n,"treize"],[12n,"douze"],[11n,"onze"],[10n,"dix"],[9n,"neuf"],[8n,"huit"],[7n,"sept"],[6n,"six"],[5n,"cinq"],[4n,"quatre"],[3n,"trois"],[2n,"deux"],[1n,"un"],[0n,"zéro"]])}merge(t,r){let e=Object.keys(t)[0],n=Object.keys(r)[0];const o=BigInt(Object.values(t)[0]),i=BigInt(Object.values(r)[0]);if(1==o){if(i<1e6)return{[n]:i}}else((o-80n)%100n==0||o%100n==0&&o<1e3)&&i<1e6&&"s"==e.at(-1)&&(e=e.slice(0,-1)),o<1e3&&1e3!=i&&"s"!=n.at(-1)&&i%100n==0&&(n+="s");return i<o&&o<100?i%10n==1&&80!=o?{[`${e} et ${n}`]:o+i}:{[`${e}-${n}`]:o+i}:i>o?{[`${e} ${n}`]:o*i}:{[`${e} ${n}`]:o+i}}}},6699:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6801:(t,r,e)=>{var n=e(3724),o=e(8686),i=e(4913),a=e(8551),u=e(5397),c=e(1072);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=u(r),o=c(r),s=o.length,f=0;s>f;)i.f(t,e=o[f++],n[e]);return t}},6823:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},6837:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},6840:(t,r,e)=>{var n=e(4901),o=e(4913),i=e(283),a=e(9433);t.exports=function(t,r,e,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:r;if(n(e)&&i(e,s,u),u.global)c?t[r]=e:a(r,e);else{try{u.unsafe?t[r]&&(c=!0):delete t[r]}catch(t){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6955:(t,r,e)=>{var n=e(2140),o=e(4901),i=e(2195),a=e(8227)("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),a))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},6969:(t,r,e)=>{var n=e(2777),o=e(757);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},6980:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},7040:(t,r,e)=>{var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(2195),a=Object,u=n("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?u(t,""):a(t)}:a},7347:(t,r,e)=>{var n=e(3724),o=e(9565),i=e(8773),a=e(6980),u=e(5397),c=e(6969),s=e(9297),f=e(5917),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=u(t),r=c(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return a(!o(i.f,t,r),t[r])}},7476:(t,r,e)=>{var n=e(2195),o=e(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},7629:(t,r,e)=>{var n=e(6395),o=e(4576),i=e(9433),a="__core-js_shared__",u=t.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.45.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:(t,r,e)=>{var n,o,i,a=e(9039),u=e(4901),c=e(34),s=e(2360),f=e(2787),p=e(6840),l=e(8227),v=e(6395),h=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):d=!0),!c(n)||a(function(){var t={};return n[h].call(t)!==t})?n={}:v&&(n=s(n)),u(n[h])||p(n,h,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7740:(t,r,e)=>{var n=e(9297),o=e(5031),i=e(7347),a=e(4913);t.exports=function(t,r,e){for(var u=o(r),c=a.f,s=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||e&&n(e,p)||c(t,p,s(r,p))}}},7750:(t,r,e)=>{var n=e(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},7751:(t,r,e)=>{var n=e(4576),o=e(4901);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},8014:(t,r,e)=>{var n=e(1291),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},8111:(t,r,e)=>{var n=e(6518),o=e(4576),i=e(679),a=e(8551),u=e(4901),c=e(2787),s=e(2106),f=e(4659),p=e(9039),l=e(9297),v=e(8227),h=e(7657).IteratorPrototype,d=e(3724),y=e(6395),g="constructor",b="Iterator",x=v("toStringTag"),m=TypeError,w=o[b],O=y||!u(w)||w.prototype!==h||!p(function(){w({})}),j=function(){if(i(this,h),c(this)===h)throw new m("Abstract class Iterator not directly constructable")},S=function(t,r){d?s(h,t,{configurable:!0,get:function(){return r},set:function(r){if(a(this),this===h)throw new m("You can't redefine this property");l(this,t)?this[t]=r:f(this,t,r)}}):h[t]=r};l(h,x)||S(x,b),!O&&l(h,g)&&h[g]!==Object||S(g,j),j.prototype=h,n({global:!0,constructor:!0,forced:O},{Iterator:j})},8227:(t,r,e)=>{var n=e(4576),o=e(5745),i=e(9297),a=e(3392),u=e(4495),c=e(7040),s=n.Symbol,f=o("wks"),p=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},8480:(t,r,e)=>{var n=e(1828),o=e(8727).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8551:(t,r,e)=>{var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},8622:(t,r,e)=>{var n=e(4576),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:(t,r,e)=>{var n=e(3724),o=e(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:(t,r)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},8981:(t,r,e)=>{var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},8992:(t,r,e)=>{e(8111)},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9297:(t,r,e)=>{var n=e(9504),o=e(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9306:(t,r,e)=>{var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9433:(t,r,e)=>{var n=e(4576),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9504:(t,r,e)=>{var n=e(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},9519:(t,r,e)=>{var n,o,i=e(4576),a=e(2839),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},9539:(t,r,e)=>{var n=e(9565),o=e(8551),i=e(5966);t.exports=function(t,r,e){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===r)throw e;return e}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===r)throw e;if(u)throw a;return o(a),e}},9565:(t,r,e)=>{var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9617:(t,r,e)=>{var n=e(5397),o=e(5610),i=e(6198),a=function(t){return function(r,e,a){var u=n(r),c=i(u);if(0===c)return!t&&-1;var s,f=o(a,c);if(t&&e!=e){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var n={};e.d(n,{default:()=>a});var o=e(6603);class i extends o.O{constructor(t){super(t=Object.assign({},t,{_region:"BE"}))}}function a(t,r={}){return new i(r).floatToCardinal(t)}return n.default})());
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.n2words=r():t.n2words=r()}(this,()=>(()=>{"use strict";var t={34:(t,r,e)=>{var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},81:(t,r,e)=>{var n=e(9565),o=e(9306),i=e(8551),a=e(6823),u=e(851),s=TypeError;t.exports=function(t,r){var e=arguments.length<2?u(t):r;if(o(e))return i(n(e,t));throw new s(a(t)+" is not iterable")}},116:(t,r,e)=>{var n=e(6518),o=e(9565),i=e(2652),a=e(9306),u=e(8551),s=e(1767),c=e(9539),p=e(4549)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:p},{find:function(t){u(this);try{a(t)}catch(t){c(this,"throw",t)}if(p)return o(p,this,t);var r=s(this),e=0;return i(r,function(r,n){if(t(r,e++))return n(r)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},283:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4901),a=e(9297),u=e(3724),s=e(350).CONFIGURABLE,c=e(3706),p=e(1181),f=p.enforce,l=p.get,v=String,h=Object.defineProperty,y=n("".slice),d=n("".replace),g=n([].join),b=u&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),x=String(String).split("String"),m=t.exports=function(t,r,e){"Symbol("===y(v(r),0,7)&&(r="["+d(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||s&&t.name!==r)&&(u?h(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&a(e,"arity")&&t.length!==e.arity&&h(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=g(x,"string"==typeof r?r:"")),t};Function.prototype.toString=m(function(){return i(this)&&l(this).source||c(this)},"toString")},350:(t,r,e)=>{var n=e(3724),o=e(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),s=u&&"something"===function(){}.name,c=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:c}},397:(t,r,e)=>{var n=e(7751);t.exports=n("document","documentElement")},421:t=>{t.exports={}},616:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},679:(t,r,e)=>{var n=e(1625),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw new o("Incorrect invocation")}},741:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},757:(t,r,e)=>{var n=e(7751),o=e(4901),i=e(1625),a=e(7040),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},851:(t,r,e)=>{var n=e(6955),o=e(5966),i=e(4117),a=e(6269),u=e(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||a[n(t)]}},1072:(t,r,e)=>{var n=e(1828),o=e(8727);t.exports=Object.keys||function(t){return n(t,o)}},1181:(t,r,e)=>{var n,o,i,a=e(8622),u=e(4576),s=e(34),c=e(6699),p=e(9297),f=e(7629),l=e(6119),v=e(421),h="Object already initialized",y=u.TypeError,d=u.WeakMap;if(a||f.state){var g=f.state||(f.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,r){if(g.has(t))throw new y(h);return r.facade=t,g.set(t,r),r},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var b=l("state");v[b]=!0,n=function(t,r){if(p(t,b))throw new y(h);return r.facade=t,c(t,b,r),r},o=function(t){return p(t,b)?t[b]:{}},i=function(t){return p(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!s(r)||(e=o(r)).type!==t)throw new y("Incompatible receiver, "+t+" required");return e}}}},1291:(t,r,e)=>{var n=e(741);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},1625:(t,r,e)=>{var n=e(9504);t.exports=n({}.isPrototypeOf)},1767:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:(t,r,e)=>{var n=e(9504),o=e(9297),i=e(5397),a=e(9617).indexOf,u=e(421),s=n([].push);t.exports=function(t,r){var e,n=i(t),c=0,p=[];for(e in n)!o(u,e)&&o(n,e)&&s(p,e);for(;r.length>c;)o(n,e=r[c++])&&(~a(p,e)||s(p,e));return p}},2106:(t,r,e)=>{var n=e(283),o=e(4913);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},2140:(t,r,e)=>{var n={};n[e(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},2195:(t,r,e)=>{var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2360:(t,r,e)=>{var n,o=e(8551),i=e(6801),a=e(8727),u=e(421),s=e(397),c=e(4055),p=e(6119),f="prototype",l="script",v=p("IE_PROTO"),h=function(){},y=function(t){return"<"+l+">"+t+"</"+l+">"},d=function(t){t.write(y("")),t.close();var r=t.parentWindow.Object;return t=null,r},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;g="undefined"!=typeof document?document.domain&&n?d(n):(r=c("iframe"),e="java"+l+":",r.style.display="none",s.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):d(n);for(var o=a.length;o--;)delete g[f][a[o]];return g()};u[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(h[f]=o(t),e=new h,h[f]=null,e[v]=t):e=g(),void 0===r?e:i.f(e,r)}},2577:(t,r,e)=>{e(116)},2652:(t,r,e)=>{var n=e(6080),o=e(9565),i=e(8551),a=e(6823),u=e(4209),s=e(6198),c=e(1625),p=e(81),f=e(851),l=e(9539),v=TypeError,h=function(t,r){this.stopped=t,this.result=r},y=h.prototype;t.exports=function(t,r,e){var d,g,b,x,m,w,O,S=e&&e.that,j=!(!e||!e.AS_ENTRIES),E=!(!e||!e.IS_RECORD),T=!(!e||!e.IS_ITERATOR),P=!(!e||!e.INTERRUPTED),I=n(r,S),A=function(t){return d&&l(d,"normal"),new h(!0,t)},C=function(t){return j?(i(t),P?I(t[0],t[1],A):I(t[0],t[1])):P?I(t,A):I(t)};if(E)d=t.iterator;else if(T)d=t;else{if(!(g=f(t)))throw new v(a(t)+" is not iterable");if(u(g)){for(b=0,x=s(t);x>b;b++)if((m=C(t[b]))&&c(y,m))return m;return new h(!1)}d=p(t,g)}for(w=E?t.next:d.next;!(O=o(w,d)).done;){try{m=C(O.value)}catch(t){l(d,"throw",t)}if("object"==typeof m&&m&&c(y,m))return m}return new h(!1)}},2777:(t,r,e)=>{var n=e(9565),o=e(34),i=e(757),a=e(5966),u=e(4270),s=e(8227),c=TypeError,p=s("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,s=a(t,p);if(s){if(void 0===r&&(r="default"),e=n(s,t,r),!o(e)||i(e))return e;throw new c("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},2787:(t,r,e)=>{var n=e(9297),o=e(4901),i=e(8981),a=e(6119),u=e(2211),s=a("IE_PROTO"),c=Object,p=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var r=i(t);if(n(r,s))return r[s];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof c?p:null}},2796:(t,r,e)=>{var n=e(9039),o=e(4901),i=/#|\.prototype\./,a=function(t,r){var e=s[u(t)];return e===p||e!==c&&(o(r)?n(r):!!r)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",p=a.POLYFILL="P";t.exports=a},2839:(t,r,e)=>{var n=e(4576).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},3392:(t,r,e)=>{var n=e(9504),o=0,i=Math.random(),a=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3706:(t,r,e)=>{var n=e(9504),o=e(4901),i=e(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3717:(t,r)=>{r.f=Object.getOwnPropertySymbols},3724:(t,r,e)=>{var n=e(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3843:(t,r,e)=>{e.d(r,{A:()=>i}),e(4114),e(8992),e(2577);var n=e(6298);class o extends n.A{#t;constructor(t,r){super(t),this.#t=r}get cards(){return this.#t}set cards(t){this.#t=t}getCardWord(t){const r=this.cards.find(r=>r[0]==t);return Array.isArray(r)?r[1]:void 0}toCardMatches(t){const r=[];let e=t;do{const t=this.cards.find(t=>e>=t[0]);let n;0==e?(n=1,e=0):(n=e/t[0],e%=t[0]),1==n?r.push({[this.getCardWord(1)]:1}):r.push(this.toCardMatches(n)),r.push({[t[1]]:t[0]})}while(e>0);return r}clean(t){let r=t;for(;1!=t.length;){r=[];const e=t[0],n=t[1];if(Array.isArray(e)||Array.isArray(n))for(const e of t)Array.isArray(e)?1==e.length?r.push(e[0]):r.push(this.clean(e)):r.push(e);else r.push(this.merge(e,n)),t.slice(2).length>0&&r.push(t.slice(2));t=r}return r[0]}postClean(t){return t.trimEnd()}toCardinal(t){const r=this.toCardMatches(t),e=Object.keys(this.clean(r))[0];return this.postClean(e)}}const i=o},4055:(t,r,e)=>{var n=e(4576),o=e(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4114:(t,r,e)=>{var n=e(6518),o=e(8981),i=e(6198),a=e(4527),u=e(6837);n({target:"Array",proto:!0,arity:1,forced:e(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=o(this),e=i(r),n=arguments.length;u(e+n);for(var s=0;s<n;s++)r[e]=arguments[s],e++;return a(r,e),e}})},4117:t=>{t.exports=function(t){return null==t}},4209:(t,r,e)=>{var n=e(8227),o=e(6269),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4270:(t,r,e)=>{var n=e(9565),o=e(4901),i=e(34),a=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw new a("Can't convert object to primitive value")}},4376:(t,r,e)=>{var n=e(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4495:(t,r,e)=>{var n=e(9519),o=e(9039),i=e(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4527:(t,r,e)=>{var n=e(3724),o=e(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,r){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},4549:(t,r,e)=>{var n=e(4576);t.exports=function(t,r){var e=n.Iterator,o=e&&e.prototype,i=o&&o[t],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof r||(a=!1)}if(!a)return i}},4576:function(t){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4659:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=function(t,r,e){n?o.f(t,r,i(0,e)):t[r]=e}},4901:t=>{var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4913:(t,r,e)=>{var n=e(3724),o=e(5917),i=e(8686),a=e(8551),u=e(6969),s=TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(a(t),r=u(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=p(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:f in e?e[f]:n[f],writable:!1})}return c(t,r,e)}:c:function(t,r,e){if(a(t),r=u(r),a(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new s("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},5031:(t,r,e)=>{var n=e(7751),o=e(9504),i=e(8480),a=e(3717),u=e(8551),s=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=a.f;return e?s(r,e(t)):r}},5397:(t,r,e)=>{var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},5610:(t,r,e)=>{var n=e(1291),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5745:(t,r,e)=>{var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},5917:(t,r,e)=>{var n=e(3724),o=e(9039),i=e(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:(t,r,e)=>{var n=e(9306),o=e(4117);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},6080:(t,r,e)=>{var n=e(7476),o=e(9306),i=e(616),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},6119:(t,r,e)=>{var n=e(5745),o=e(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6198:(t,r,e)=>{var n=e(8014);t.exports=function(t){return n(t.length)}},6269:t=>{t.exports={}},6298:(t,r,e)=>{e.d(r,{A:()=>n}),e(4114);const n=class{#r;#e;#n;#o;#i;constructor(t){t=Object.assign({negativeWord:"",separatorWord:"",zero:"",spaceSeparator:" "},t),this.#r=t.negativeWord,this.#e=t.separatorWord,this.#n=t.zero,this.#o=t.spaceSeparator}get negativeWord(){return this.#r}get separatorWord(){return this.#e}get zero(){return this.#n}get spaceSeparator(){return this.#o}get wholeNumber(){return this.#i}decimalToCardinal(t){const r=[],e=[...t];let n=0;for(;n<e.length&&"0"===e[n];)r.push(this.zero),n++;return n===e.length?r:[...r,this.toCardinal(BigInt(t))]}floatToCardinal(t){if("number"==typeof t){if(Number.isNaN(t))throw new TypeError("NaN is not an accepted number.");t=t.toString()}else if("string"==typeof t){if(0===(t=t.trim()).length||Number.isNaN(Number(t)))throw new Error('"'+t+'" is not a valid number.')}else if("bigint"!=typeof t)throw new TypeError("Invalid variable type: "+typeof t);let r,e,n=[];if(t<0&&n.push(this.negativeWord),"bigint"==typeof t)r=t;else{const n=t.split(".");r=BigInt(n[0]),e=n[1]}return r<0&&(r=-r),this.#i=r,n=[...n,this.toCardinal(r)],e&&(n.push(this.separatorWord),n=[...n,...this.decimalToCardinal(e)]),n.join(this.spaceSeparator)}}},6395:t=>{t.exports=!1},6518:(t,r,e)=>{var n=e(4576),o=e(7347).f,i=e(6699),a=e(6840),u=e(9433),s=e(7740),c=e(2796);t.exports=function(t,r){var e,p,f,l,v,h=t.target,y=t.global,d=t.stat;if(e=y?n:d?n[h]||u(h,{}):n[h]&&n[h].prototype)for(p in r){if(l=r[p],f=t.dontCallGetSet?(v=o(e,p))&&v.value:e[p],!c(y?p:h+(d?".":"#")+p,t.forced)&&void 0!==f){if(typeof l==typeof f)continue;s(l,f)}(t.sham||f&&f.sham)&&i(l,"sham",!0),a(e,p,l,t)}}},6603:(t,r,e)=>{e.d(r,{O:()=>o});var n=e(3843);class o extends n.A{constructor(t){super(t=Object.assign({negativeWord:"moins",separatorWord:"virgule",zero:"zéro",_region:"FR",withHyphenSeparator:!1,spaceSeparator:!0===t.withHyphenSeparator?"-":" "},t),[[1000000000000000000000000000n,"quadrilliard"],[1000000000000000000000000n,"quadrillion"],[1000000000000000000000n,"trilliard"],[1000000000000000000n,"trillion"],[1000000000000000n,"billiard"],[1000000000000n,"billion"],[1000000000n,"milliard"],[1000000n,"million"],[1000n,"mille"],[100n,"cent"],...["BE"].includes(t._region)?[[90n,"nonante"]]:[],[80n,"quatre-vingts"],...["BE"].includes(t._region)?[[70n,"septante"]]:[],[60n,"soixante"],[50n,"cinquante"],[40n,"quarante"],[30n,"trente"],[20n,"vingt"],[19n,"dix-neuf"],[18n,"dix-huit"],[17n,"dix-sept"],[16n,"seize"],[15n,"quinze"],[14n,"quatorze"],[13n,"treize"],[12n,"douze"],[11n,"onze"],[10n,"dix"],[9n,"neuf"],[8n,"huit"],[7n,"sept"],[6n,"six"],[5n,"cinq"],[4n,"quatre"],[3n,"trois"],[2n,"deux"],[1n,"un"],[0n,"zéro"]])}merge(t,r){let e=Object.keys(t)[0],n=Object.keys(r)[0];const o=BigInt(Object.values(t)[0]),i=BigInt(Object.values(r)[0]);if(1==o){if(i<1e6)return{[n]:i}}else((o-80n)%100n==0||o%100n==0&&o<1e3)&&i<1e6&&"s"==e.at(-1)&&(e=e.slice(0,-1)),o<1e3&&1e3!=i&&"s"!=n.at(-1)&&i%100n==0&&(n+="s");return i<o&&o<100?i%10n==1&&80!=o?{[`${e}${this.spaceSeparator}et${this.spaceSeparator}${n}`]:o+i}:{[`${e}-${n}`]:o+i}:i>o?{[`${e}${this.spaceSeparator}${n}`]:o*i}:{[`${e}${this.spaceSeparator}${n}`]:o+i}}}},6699:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6801:(t,r,e)=>{var n=e(3724),o=e(8686),i=e(4913),a=e(8551),u=e(5397),s=e(1072);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=u(r),o=s(r),c=o.length,p=0;c>p;)i.f(t,e=o[p++],n[e]);return t}},6823:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},6837:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},6840:(t,r,e)=>{var n=e(4901),o=e(4913),i=e(283),a=e(9433);t.exports=function(t,r,e,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:r;if(n(e)&&i(e,c,u),u.global)s?t[r]=e:a(r,e);else{try{u.unsafe?t[r]&&(s=!0):delete t[r]}catch(t){}s?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6955:(t,r,e)=>{var n=e(2140),o=e(4901),i=e(2195),a=e(8227)("toStringTag"),u=Object,s="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),a))?e:s?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},6969:(t,r,e)=>{var n=e(2777),o=e(757);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},6980:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},7040:(t,r,e)=>{var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(2195),a=Object,u=n("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?u(t,""):a(t)}:a},7347:(t,r,e)=>{var n=e(3724),o=e(9565),i=e(8773),a=e(6980),u=e(5397),s=e(6969),c=e(9297),p=e(5917),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=u(t),r=s(r),p)try{return f(t,r)}catch(t){}if(c(t,r))return a(!o(i.f,t,r),t[r])}},7476:(t,r,e)=>{var n=e(2195),o=e(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},7629:(t,r,e)=>{var n=e(6395),o=e(4576),i=e(9433),a="__core-js_shared__",u=t.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.45.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:(t,r,e)=>{var n,o,i,a=e(9039),u=e(4901),s=e(34),c=e(2360),p=e(2787),f=e(6840),l=e(8227),v=e(6395),h=l("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=p(p(i)))!==Object.prototype&&(n=o):y=!0),!s(n)||a(function(){var t={};return n[h].call(t)!==t})?n={}:v&&(n=c(n)),u(n[h])||f(n,h,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},7740:(t,r,e)=>{var n=e(9297),o=e(5031),i=e(7347),a=e(4913);t.exports=function(t,r,e){for(var u=o(r),s=a.f,c=i.f,p=0;p<u.length;p++){var f=u[p];n(t,f)||e&&n(e,f)||s(t,f,c(r,f))}}},7750:(t,r,e)=>{var n=e(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},7751:(t,r,e)=>{var n=e(4576),o=e(4901);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},8014:(t,r,e)=>{var n=e(1291),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},8111:(t,r,e)=>{var n=e(6518),o=e(4576),i=e(679),a=e(8551),u=e(4901),s=e(2787),c=e(2106),p=e(4659),f=e(9039),l=e(9297),v=e(8227),h=e(7657).IteratorPrototype,y=e(3724),d=e(6395),g="constructor",b="Iterator",x=v("toStringTag"),m=TypeError,w=o[b],O=d||!u(w)||w.prototype!==h||!f(function(){w({})}),S=function(){if(i(this,h),s(this)===h)throw new m("Abstract class Iterator not directly constructable")},j=function(t,r){y?c(h,t,{configurable:!0,get:function(){return r},set:function(r){if(a(this),this===h)throw new m("You can't redefine this property");l(this,t)?this[t]=r:p(this,t,r)}}):h[t]=r};l(h,x)||j(x,b),!O&&l(h,g)&&h[g]!==Object||j(g,S),S.prototype=h,n({global:!0,constructor:!0,forced:O},{Iterator:S})},8227:(t,r,e)=>{var n=e(4576),o=e(5745),i=e(9297),a=e(3392),u=e(4495),s=e(7040),c=n.Symbol,p=o("wks"),f=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(p,t)||(p[t]=u&&i(c,t)?c[t]:f("Symbol."+t)),p[t]}},8480:(t,r,e)=>{var n=e(1828),o=e(8727).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8551:(t,r,e)=>{var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},8622:(t,r,e)=>{var n=e(4576),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:(t,r,e)=>{var n=e(3724),o=e(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:(t,r)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},8981:(t,r,e)=>{var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},8992:(t,r,e)=>{e(8111)},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9297:(t,r,e)=>{var n=e(9504),o=e(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},9306:(t,r,e)=>{var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9433:(t,r,e)=>{var n=e(4576),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9504:(t,r,e)=>{var n=e(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},9519:(t,r,e)=>{var n,o,i=e(4576),a=e(2839),u=i.process,s=i.Deno,c=u&&u.versions||s&&s.version,p=c&&c.v8;p&&(o=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},9539:(t,r,e)=>{var n=e(9565),o=e(8551),i=e(5966);t.exports=function(t,r,e){var a,u;o(t);try{if(!(a=i(t,"return"))){if("throw"===r)throw e;return e}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===r)throw e;if(u)throw a;return o(a),e}},9565:(t,r,e)=>{var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9617:(t,r,e)=>{var n=e(5397),o=e(5610),i=e(6198),a=function(t){return function(r,e,a){var u=n(r),s=i(u);if(0===s)return!t&&-1;var c,p=o(a,s);if(t&&e!=e){for(;s>p;)if((c=u[p++])!=c)return!0}else for(;s>p;p++)if((t||p in u)&&u[p]===e)return t||p||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);var n={};e.d(n,{default:()=>a});var o=e(6603);class i extends o.O{constructor(t){super(t=Object.assign({},t,{_region:"BE"}))}}function a(t,r={}){return new i(r).floatToCardinal(t)}return n.default})());
|
|
2
2
|
//# sourceMappingURL=fr-BE.js.map
|