n2words 1.21.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.
Files changed (74) hide show
  1. package/README.md +2 -2
  2. package/dist/ar.js +1 -1
  3. package/dist/ar.js.map +1 -1
  4. package/dist/az.js +1 -1
  5. package/dist/az.js.map +1 -1
  6. package/dist/cz.js +1 -1
  7. package/dist/cz.js.map +1 -1
  8. package/dist/de.js +1 -1
  9. package/dist/de.js.map +1 -1
  10. package/dist/dk.js +1 -1
  11. package/dist/dk.js.map +1 -1
  12. package/dist/en.js +1 -1
  13. package/dist/en.js.map +1 -1
  14. package/dist/es.js +1 -1
  15. package/dist/es.js.map +1 -1
  16. package/dist/fa.js +1 -1
  17. package/dist/fa.js.map +1 -1
  18. package/dist/fr-BE.js +1 -1
  19. package/dist/fr-BE.js.map +1 -1
  20. package/dist/fr.js +1 -1
  21. package/dist/fr.js.map +1 -1
  22. package/dist/he.js +1 -1
  23. package/dist/he.js.map +1 -1
  24. package/dist/hr.js +1 -1
  25. package/dist/hr.js.map +1 -1
  26. package/dist/hu.js +1 -1
  27. package/dist/hu.js.map +1 -1
  28. package/dist/id.js +1 -1
  29. package/dist/id.js.map +1 -1
  30. package/dist/it.js +1 -1
  31. package/dist/it.js.map +1 -1
  32. package/dist/ko.js +1 -1
  33. package/dist/ko.js.map +1 -1
  34. package/dist/lt.js +1 -1
  35. package/dist/lt.js.map +1 -1
  36. package/dist/lv.js +1 -1
  37. package/dist/lv.js.map +1 -1
  38. package/dist/n2words.js +1 -1
  39. package/dist/n2words.js.map +1 -1
  40. package/dist/nl.js +1 -1
  41. package/dist/nl.js.map +1 -1
  42. package/dist/no.js +1 -1
  43. package/dist/no.js.map +1 -1
  44. package/dist/pl.js +1 -1
  45. package/dist/pl.js.map +1 -1
  46. package/dist/pt.js +1 -1
  47. package/dist/pt.js.map +1 -1
  48. package/dist/ro.js +2 -0
  49. package/dist/ro.js.map +1 -0
  50. package/dist/ru.js +1 -1
  51. package/dist/ru.js.map +1 -1
  52. package/dist/sr.js +1 -1
  53. package/dist/sr.js.map +1 -1
  54. package/dist/tr.js +1 -1
  55. package/dist/tr.js.map +1 -1
  56. package/dist/uk.js +1 -1
  57. package/dist/uk.js.map +1 -1
  58. package/dist/vi.js +1 -1
  59. package/dist/vi.js.map +1 -1
  60. package/dist/zh.js +1 -1
  61. package/dist/zh.js.map +1 -1
  62. package/lib/classes/abstract-language.d.ts +3 -2
  63. package/lib/classes/abstract-language.js +4 -2
  64. package/lib/classes/base-language.d.ts +5 -8
  65. package/lib/classes/base-language.js +9 -11
  66. package/lib/i18n/fr.d.ts +1 -1
  67. package/lib/i18n/fr.js +7 -5
  68. package/lib/i18n/ro.d.ts +109 -0
  69. package/lib/i18n/ro.js +360 -0
  70. package/lib/i18n/ru.d.ts +1 -1
  71. package/lib/i18n/ru.js +1 -1
  72. package/lib/n2words.d.ts +2 -1
  73. package/lib/n2words.js +9 -1
  74. package/package.json +31 -23
package/dist/cz.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={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")}},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")}},9617:(t,r,e)=>{var n=e(5397),o=e(5610),i=e(6198),a=function(t){return function(r,e,a){var s=n(r),u=i(s);if(0===u)return!t&&-1;var c,p=o(a,u);if(t&&e!=e){for(;u>p;)if((c=s[p++])!=c)return!0}else for(;u>p;p++)if((t||p in s)&&s[p]===e)return t||p||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4527:(t,r,e)=>{var n=e(3724),o=e(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?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}},4576:(t,r,e)=>{var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},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 s=o(r),u=a.f,c=i.f,p=0;p<s.length;p++){var l=s[p];n(t,l)||e&&n(e,l)||u(t,l,c(r,l))}}},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}},6980:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},6840:(t,r,e)=>{var n=e(4901),o=e(4913),i=e(283),a=e(9433);t.exports=function(t,r,e,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:r;if(n(e)&&i(e,c,s),s.global)u?t[r]=e:a(r,e);else{try{s.unsafe?t[r]&&(u=!0):delete t[r]}catch(t){}u?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9433:(t,r,e)=>{var n=e(4475),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}},3724:(t,r,e)=>{var n=e(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,r,e)=>{var n=e(4475),o=e(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6837:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},9392:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,r,e)=>{var n,o,i=e(4475),a=e(9392),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.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},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(t,r,e)=>{var n=e(4475),o=e(7347).f,i=e(6699),a=e(6840),s=e(9433),u=e(7740),c=e(2796);t.exports=function(t,r){var e,p,l,f,h,v=t.target,d=t.global,y=t.stat;if(e=d?n:y?n[v]||s(v,{}):n[v]&&n[v].prototype)for(p in r){if(f=r[p],l=t.dontCallGetSet?(h=o(e,p))&&h.value:e[p],!c(d?p:v+(y?".":"#")+p,t.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(t.sham||l&&l.sham)&&i(f,"sham",!0),a(e,p,f,t)}}},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:(t,r,e)=>{var n=e(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,r,e)=>{var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(t,r,e)=>{var n=e(3724),o=e(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},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)}}},7751:(t,r,e)=>{var n=e(4475),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}},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)}},4475: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")()},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)}},421:t=>{t.exports={}},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}))},7055:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4576),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},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},1181:(t,r,e)=>{var n,o,i,a=e(8622),s=e(4475),u=e(34),c=e(6699),p=e(9297),l=e(7629),f=e(6119),h=e(421),v="Object already initialized",d=s.TypeError,y=s.WeakMap;if(a||l.state){var g=l.state||(l.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(v);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=f("state");h[b]=!0,n=function(t,r){if(p(t,b))throw new d(v);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(!u(r)||(e=o(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return e}}}},4376:(t,r,e)=>{var n=e(4576);t.exports=Array.isArray||function(t){return"Array"===n(t)}},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}},2796:(t,r,e)=>{var n=e(9039),o=e(4901),i=/#|\.prototype\./,a=function(t,r){var e=u[s(t)];return e===p||e!==c&&(o(r)?n(r):!!r)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",p=a.POLYFILL="P";t.exports=a},4117:t=>{t.exports=function(t){return null==t}},34:(t,r,e)=>{var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6395:t=>{t.exports=!1},757:(t,r,e)=>{var n=e(7751),o=e(4901),i=e(1625),a=e(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},6198:(t,r,e)=>{var n=e(8014);t.exports=function(t){return n(t.length)}},283:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4901),a=e(9297),s=e(3724),u=e(350).CONFIGURABLE,c=e(3706),p=e(1181),l=p.enforce,f=p.get,h=String,v=Object.defineProperty,d=n("".slice),y=n("".replace),g=n([].join),b=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===d(h(r),0,7)&&(r="["+y(h(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||u&&t.name!==r)&&(s?v(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&a(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return a(n,"source")||(n.source=g(m,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&f(this).source||c(this)}),"toString")},741:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},4913:(t,r,e)=>{var n=e(3724),o=e(5917),i=e(8686),a=e(8551),s=e(6969),u=TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l="enumerable",f="configurable",h="writable";r.f=n?i?function(t,r,e){if(a(t),r=s(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&h in e&&!e[h]){var n=p(t,r);n&&n[h]&&(t[r]=e.value,e={configurable:f in e?e[f]:n[f],enumerable:l in e?e[l]:n[l],writable:!1})}return c(t,r,e)}:c:function(t,r,e){if(a(t),r=s(r),a(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7347:(t,r,e)=>{var n=e(3724),o=e(9565),i=e(8773),a=e(6980),s=e(5397),u=e(6969),c=e(9297),p=e(5917),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=s(t),r=u(r),p)try{return l(t,r)}catch(t){}if(c(t,r))return a(!o(i.f,t,r),t[r])}},8480:(t,r,e)=>{var n=e(1828),o=e(8727).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3717:(t,r)=>{r.f=Object.getOwnPropertySymbols},1625:(t,r,e)=>{var n=e(9504);t.exports=n({}.isPrototypeOf)},1828:(t,r,e)=>{var n=e(9504),o=e(9297),i=e(5397),a=e(9617).indexOf,s=e(421),u=n([].push);t.exports=function(t,r){var e,n=i(t),c=0,p=[];for(e in n)!o(s,e)&&o(n,e)&&u(p,e);for(;r.length>c;)o(n,e=r[c++])&&(~a(p,e)||u(p,e));return p}},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},4270:(t,r,e)=>{var n=e(9565),o=e(4901),i=e(34),a=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw new a("Can't convert object to primitive value")}},5031:(t,r,e)=>{var n=e(7751),o=e(9504),i=e(8480),a=e(3717),s=e(8551),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(s(t)),e=a.f;return e?u(r,e(t)):r}},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}},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))}},7629:(t,r,e)=>{var n=e(6395),o=e(4475),i=e(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,r,e)=>{var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},4495:(t,r,e)=>{var n=e(7388),o=e(9039),i=e(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},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)}},5397:(t,r,e)=>{var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},1291:(t,r,e)=>{var n=e(741);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},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}},8981:(t,r,e)=>{var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:(t,r,e)=>{var n=e(9565),o=e(34),i=e(757),a=e(5966),s=e(4270),u=e(8227),c=TypeError,p=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=a(t,p);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw new c("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},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+""}},6823:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},3392:(t,r,e)=>{var n=e(9504),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7040:(t,r,e)=>{var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},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}))},8622:(t,r,e)=>{var n=e(4475),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:(t,r,e)=>{var n=e(4475),o=e(5745),i=e(9297),a=e(3392),s=e(4495),u=e(7040),c=n.Symbol,p=o("wks"),l=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(p,t)||(p[t]=s&&i(c,t)?c[t]:l("Symbol."+t)),p[t]}},4114:(t,r,e)=>{var n=e(6518),o=e(8981),i=e(6198),a=e(4527),s=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;s(e+n);for(var u=0;u<n;u++)r[e]=arguments[u],e++;return a(r,e),e}})},6298:(t,r,e)=>{e.d(r,{A:()=>n}),e(4114);class n{#t;#r;#e;#n;#o;constructor(t){t=Object.assign({negativeWord:"",separatorWord:"",zero:"",spaceSeparator:" "},t),this.#t=t.negativeWord,this.#r=t.separatorWord,this.#e=t.zero,this.#n=t.spaceSeparator}get negativeWord(){return this.#t}get separatorWord(){return this.#r}get zero(){return this.#e}get spaceSeparator(){return this.#n}get wholeNumber(){return this.#o}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.#o=r,n=[...n,this.toCardinal(r)],e&&(n.push(this.separatorWord),n=[...n,...this.decimalToCardinal(e)]),n.join(this.spaceSeparator)}}},4702:(t,r,e)=>{e.d(r,{h:()=>o}),e(4114);var n=e(6298);class o extends n.A{feminine;ones={1:"один",2:"два",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"};onesFeminine={1:"одна",2:"две",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"};tens={0:"десять",1:"одиннадцать",2:"двенадцать",3:"тринадцать",4:"четырнадцать",5:"пятнадцать",6:"шестнадцать",7:"семнадцать",8:"восемнадцать",9:"девятнадцать"};twenties={2:"двадцать",3:"тридцать",4:"сорок",5:"пятьдесят",6:"шестьдесят",7:"семьдесят",8:"восемьдесят",9:"девяносто"};hundreds={1:"сто",2:"двести",3:"триста",4:"четыреста",5:"пятьсот",6:"шестьсот",7:"семьсот",8:"восемьсот",9:"девятьсот"};thousands={1:["тысяча","тысячи","тысяч"],2:["миллион","миллиона","миллионов"],3:["миллиард","миллиарда","миллиардов"],4:["триллион","триллиона","триллионов"],5:["квадриллион","квадриллиона","квадриллионов"],6:["квинтиллион","квинтиллиона","квинтиллионов"],7:["секстиллион","секстиллиона","секстиллионов"],8:["септиллион","септиллиона","септиллионов"],9:["октиллион","октиллиона","октиллионов"],10:["нониллион","нониллиона","нониллионов"]};constructor(t){super(t=Object.assign({negativeWord:"минус",separatorWord:"запятая",zero:"ноль",feminine:!1},t)),this.feminine=t.feminine}toCardinal(t){if(0==t)return this.zero;const r=[],e=this.splitByX(t.toString(),3);let n=e.length;for(const t of e){let e=[];if(n-=1,0==t)continue;const[o,i,a]=this.getDigits(t);a>0&&r.push(this.hundreds[a]),i>1&&r.push(this.twenties[i]),1==i?r.push(this.tens[o]):o>0&&(e=1==n||this.feminine&&0==n?this.onesFeminine:this.ones,r.push(e[o])),n>0&&r.push(this.pluralize(t,this.thousands[n]))}return r.join(" ")}splitByX(t,r){const e=[],n=t.length;let o;if(n>r){const i=n%r;i>0&&(o=t.slice(0,i),e.push(BigInt(o)));for(let a=i;a<n;a+=r)o=t.slice(a,a+r),e.push(BigInt(o))}else e.push(BigInt(t));return e}getDigits(t){return[...t.toString().padStart(3,"0").slice(-3)].reverse().map(BigInt)}pluralize(t,r){let e=2;return(t%100n<10n||t%100n>20n)&&(t%10n==1n?e=0:t%10n<5n&&t%10n>1n&&(e=1)),r[e]}}}},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}),e(4114);var o=e(4702);class i extends o.h{ones={1:"jedna",2:"dva",3:"tři",4:"čtyři",5:"pět",6:"šest",7:"sedm",8:"osm",9:"devět"};tens={0:"deset",1:"jedenáct",2:"dvanáct",3:"třináct",4:"čtrnáct",5:"patnáct",6:"šestnáct",7:"sedmnáct",8:"osmnáct",9:"devatenáct"};twenties={2:"dvacet",3:"třicet",4:"čtyřicet",5:"padesát",6:"šedesát",7:"sedmdesát",8:"osmdesát",9:"devadesát"};hundreds={1:"sto",2:"dvě stě",3:"tři sta",4:"čtyři sta",5:"pět set",6:"šest set",7:"sedm set",8:"osm set",9:"devět set"};thousands={1:["tisíc","tisíce","tisíc"],2:["milion","miliony","milionů"],3:["miliarda","miliardy","miliard"],4:["bilion","biliony","bilionů"],5:["biliarda","biliardy","biliard"],6:["trilion","triliony","trilionů"],7:["triliarda","triliardy","triliard"],8:["kvadrilion","kvadriliony","kvadrilionů"],9:["kvadriliarda","kvadriliardy","kvadriliard"],10:["quintillion","quintilliony","quintillionů"]};constructor(t){super(t=Object.assign({negativeWord:"mínus",zero:"nula"},t))}get separatorWord(){return 0n==this.wholeNumber||1n==this.wholeNumber?"celá":this.wholeNumber>=2n&&this.wholeNumber<=4n?"celé":"celých"}pluralize(t,r){let e=2;return 1==t?e=0:t%10n<5n&&t%10n>1n&&(t%100n<10n||t%100n>20n)&&(e=1),r[e]}toCardinal(t){if(0==t)return this.zero;const r=[],e=this.splitByX(t.toString(),3);let n=e.length;for(const t of e){if(n-=1,0==t)continue;const[e,o,i]=this.getDigits(t);i>0&&r.push(this.hundreds[i]),o>1&&r.push(this.twenties[o]),1==o?r.push(this.tens[e]):e>0&&!(n>0&&1==t)&&r.push(this.ones[e]),n>0&&r.push(this.pluralize(t,this.thousands[n]))}return r.join(" ")}}function a(t){return new i(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).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)}},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,h=String,v=Object.defineProperty,d=n("".slice),y=n("".replace),g=n([].join),b=u&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),m=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===d(h(r),0,7)&&(r="["+y(h(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||s&&t.name!==r)&&(u?v(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&a(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=g(m,"string"==typeof r?r:"")),t};Function.prototype.toString=x(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")}},684:t=>{t.exports=function(t,r){var e="function"==typeof Iterator&&Iterator.prototype[t];if(e)try{e.call({next:null},r).next()}catch(t){return!0}}},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))}},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),h=e(421),v="Object already initialized",d=u.TypeError,y=u.WeakMap;if(a||f.state){var g=f.state||(f.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(v);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");h[b]=!0,n=function(t,r){if(p(t,b))throw new d(v);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 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)}},1385:(t,r,e)=>{var n=e(9539);t.exports=function(t,r,e){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{e=n(t[o].iterator,r,e)}catch(t){r="throw",e=t}if("throw"===r)throw e;return e}},1454:(t,r,e)=>{e(1701)},1625:(t,r,e)=>{var n=e(9504);t.exports=n({}.isPrototypeOf)},1701:(t,r,e)=>{var n=e(6518),o=e(9565),i=e(9306),a=e(8551),u=e(1767),s=e(9462),c=e(6319),p=e(9539),f=e(684),l=e(4549),h=e(6395),v=!h&&!f("map",function(){}),d=!h&&!v&&l("map",TypeError),y=h||v||d,g=s(function(){var t=this.iterator,r=a(o(this.next,t));if(!(this.done=!!r.done))return c(t,this.mapper,[r.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:y},{map:function(t){a(this);try{i(t)}catch(t){p(this,"throw",t)}return d?o(d,this,t):new g(u(this),{mapper:t})}})},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)}},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",h=p("IE_PROTO"),v=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=c("iframe"),e="java"+l+":",r.style.display="none",s.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[f][a[o]];return g()};u[h]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(v[f]=o(t),e=new v,v[f]=null,e[h]=t):e=g(),void 0===r?e:i.f(e,r)}},2529:t=>{t.exports=function(t,r){return{value:t,done:r}}},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]})},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}},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}},4702:(t,r,e)=>{e.d(r,{h:()=>o}),e(4114),e(9678),e(8992),e(1454);var n=e(6298);class o extends n.A{feminine;ones={1:"один",2:"два",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"};onesFeminine={1:"одна",2:"две",3:"три",4:"четыре",5:"пять",6:"шесть",7:"семь",8:"восемь",9:"девять"};tens={0:"десять",1:"одиннадцать",2:"двенадцать",3:"тринадцать",4:"четырнадцать",5:"пятнадцать",6:"шестнадцать",7:"семнадцать",8:"восемнадцать",9:"девятнадцать"};twenties={2:"двадцать",3:"тридцать",4:"сорок",5:"пятьдесят",6:"шестьдесят",7:"семьдесят",8:"восемьдесят",9:"девяносто"};hundreds={1:"сто",2:"двести",3:"триста",4:"четыреста",5:"пятьсот",6:"шестьсот",7:"семьсот",8:"восемьсот",9:"девятьсот"};thousands={1:["тысяча","тысячи","тысяч"],2:["миллион","миллиона","миллионов"],3:["миллиард","миллиарда","миллиардов"],4:["триллион","триллиона","триллионов"],5:["квадриллион","квадриллиона","квадриллионов"],6:["квинтиллион","квинтиллиона","квинтиллионов"],7:["секстиллион","секстиллиона","секстиллионов"],8:["септиллион","септиллиона","септиллионов"],9:["октиллион","октиллиона","октиллионов"],10:["нониллион","нониллиона","нониллионов"]};constructor(t){super(t=Object.assign({negativeWord:"минус",separatorWord:"запятая",zero:"ноль",feminine:!1},t)),this.feminine=t.feminine}toCardinal(t){if(0==t)return this.zero;const r=[],e=this.splitByX(t.toString(),3);let n=e.length;for(const t of e){let e=[];if(n-=1,0==t)continue;const[o,i,a]=this.getDigits(t);a>0&&r.push(this.hundreds[a]),i>1&&r.push(this.twenties[i]),1==i?r.push(this.tens[o]):o>0&&(e=1==n||this.feminine&&0==n?this.onesFeminine:this.ones,r.push(e[o])),n>0&&r.push(this.pluralize(t,this.thousands[n]))}return r.join(" ")}splitByX(t,r){const e=[],n=t.length;let o;if(n>r){const i=n%r;i>0&&(o=t.slice(0,i),e.push(BigInt(o)));for(let a=i;a<n;a+=r)o=t.slice(a,a+r),e.push(BigInt(o))}else e.push(BigInt(t));return e}getDigits(t){return[...t.toString().padStart(3,"0").slice(-3)].toReversed().map(BigInt)}pluralize(t,r){let e=2;return(t%100n<10n||t%100n>20n)&&(t%10n==1n?e=0:t%10n<5n&&t%10n>1n&&(e=1)),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",h="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&&h in e&&!e[h]){var n=p(t,r);n&&n[h]&&(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)}},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)}},6279:(t,r,e)=>{var n=e(6840);t.exports=function(t,r,e){for(var o in r)n(t,o,r[o],e);return t}},6298:(t,r,e)=>{e.d(r,{A:()=>n}),e(4114);const n=class{#t;#r;#e;#n;#o;constructor(t){t=Object.assign({negativeWord:"",separatorWord:"",zero:"",spaceSeparator:" "},t),this.#t=t.negativeWord,this.#r=t.separatorWord,this.#e=t.zero,this.#n=t.spaceSeparator}get negativeWord(){return this.#t}get separatorWord(){return this.#r}get zero(){return this.#e}get spaceSeparator(){return this.#n}get wholeNumber(){return this.#o}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.#o=r,n=[...n,this.toCardinal(r)],e&&(n.push(this.separatorWord),n=[...n,...this.decimalToCardinal(e)]),n.join(this.spaceSeparator)}}},6319:(t,r,e)=>{var n=e(8551),o=e(9539);t.exports=function(t,r,e,i){try{return i?r(n(e)[0],e[1]):r(e)}catch(r){o(t,"throw",r)}}},6395:t=>{t.exports=!1},6469:(t,r,e)=>{var n=e(8227),o=e(2360),i=e(4913).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},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,h,v=t.target,d=t.global,y=t.stat;if(e=d?n:y?n[v]||u(v,{}):n[v]&&n[v].prototype)for(p in r){if(l=r[p],f=t.dontCallGetSet?(h=o(e,p))&&h.value:e[p],!c(d?p:v+(y?".":"#")+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)}}},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}},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])}},7628:(t,r,e)=>{var n=e(6198);t.exports=function(t,r){for(var e=n(t),o=new r(e),i=0;i<e;i++)o[i]=t[e-i-1];return o}},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),h=e(6395),v=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=p(p(i)))!==Object.prototype&&(n=o):d=!0),!s(n)||a(function(){var t={};return n[v].call(t)!==t})?n={}:h&&(n=c(n)),u(n[v])||f(n,v,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),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),h=e(8227),v=e(7657).IteratorPrototype,d=e(3724),y=e(6395),g="constructor",b="Iterator",m=h("toStringTag"),x=TypeError,w=o[b],O=y||!u(w)||w.prototype!==v||!f(function(){w({})}),j=function(){if(i(this,v),s(this)===v)throw new x("Abstract class Iterator not directly constructable")},S=function(t,r){d?c(v,t,{configurable:!0,get:function(){return r},set:function(r){if(a(this),this===v)throw new x("You can't redefine this property");l(this,t)?this[t]=r:p(this,t,r)}}):v[t]=r};l(v,m)||S(m,b),!O&&l(v,g)&&v[g]!==Object||S(g,j),j.prototype=v,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),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}},9462:(t,r,e)=>{var n=e(9565),o=e(2360),i=e(6699),a=e(6279),u=e(8227),s=e(1181),c=e(5966),p=e(7657).IteratorPrototype,f=e(2529),l=e(9539),h=e(1385),v=u("toStringTag"),d="IteratorHelper",y="WrapForValidIterator",g="normal",b="throw",m=s.set,x=function(t){var r=s.getterFor(t?y:d);return a(o(p),{next:function(){var e=r(this);if(t)return e.nextHandler();if(e.done)return f(void 0,!0);try{var n=e.nextHandler();return e.returnHandlerResult?n:f(n,e.done)}catch(t){throw e.done=!0,t}},return:function(){var e=r(this),o=e.iterator;if(e.done=!0,t){var i=c(o,"return");return i?n(i,o):f(void 0,!0)}if(e.inner)try{l(e.inner.iterator,g)}catch(t){return l(o,b,t)}if(e.openIters)try{h(e.openIters,g)}catch(t){return l(o,b,t)}return o&&l(o,g),f(void 0,!0)}})},w=x(!0),O=x(!1);i(O,v,"Iterator Helper"),t.exports=function(t,r,e){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=r?y:d,o.returnHandlerResult=!!e,o.nextHandler=t,o.counter=0,o.done=!1,m(this,o)};return n.prototype=r?w:O,n}},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)}},9678:(t,r,e)=>{var n=e(6518),o=e(7628),i=e(5397),a=e(6469),u=Array;n({target:"Array",proto:!0},{toReversed:function(){return o(i(this),u)}}),a("toReversed")}},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}),e(4114);var o=e(4702);class i extends o.h{ones={1:"jedna",2:"dva",3:"tři",4:"čtyři",5:"pět",6:"šest",7:"sedm",8:"osm",9:"devět"};tens={0:"deset",1:"jedenáct",2:"dvanáct",3:"třináct",4:"čtrnáct",5:"patnáct",6:"šestnáct",7:"sedmnáct",8:"osmnáct",9:"devatenáct"};twenties={2:"dvacet",3:"třicet",4:"čtyřicet",5:"padesát",6:"šedesát",7:"sedmdesát",8:"osmdesát",9:"devadesát"};hundreds={1:"sto",2:"dvě stě",3:"tři sta",4:"čtyři sta",5:"pět set",6:"šest set",7:"sedm set",8:"osm set",9:"devět set"};thousands={1:["tisíc","tisíce","tisíc"],2:["milion","miliony","milionů"],3:["miliarda","miliardy","miliard"],4:["bilion","biliony","bilionů"],5:["biliarda","biliardy","biliard"],6:["trilion","triliony","trilionů"],7:["triliarda","triliardy","triliard"],8:["kvadrilion","kvadriliony","kvadrilionů"],9:["kvadriliarda","kvadriliardy","kvadriliard"],10:["quintillion","quintilliony","quintillionů"]};constructor(t){super(t=Object.assign({negativeWord:"mínus",zero:"nula"},t))}get separatorWord(){return 0n==this.wholeNumber||1n==this.wholeNumber?"celá":this.wholeNumber>=2n&&this.wholeNumber<=4n?"celé":"celých"}pluralize(t,r){let e=2;return 1==t?e=0:t%10n<5n&&t%10n>1n&&(t%100n<10n||t%100n>20n)&&(e=1),r[e]}toCardinal(t){if(0==t)return this.zero;const r=[],e=this.splitByX(t.toString(),3);let n=e.length;for(const t of e){if(n-=1,0==t)continue;const[e,o,i]=this.getDigits(t);i>0&&r.push(this.hundreds[i]),o>1&&r.push(this.twenties[o]),1==o?r.push(this.tens[e]):e>0&&!(n>0&&1==t)&&r.push(this.ones[e]),n>0&&r.push(this.pluralize(t,this.thousands[n]))}return r.join(" ")}}function a(t,r={}){return new i(r).floatToCardinal(t)}return n.default})());
2
2
  //# sourceMappingURL=cz.js.map