(()=>{var t={5596:(t,i,e)=>{"use strict";e.d(i,{A:()=>r});const r=class{constructor(t){this.message=t,this.name="LocalizationException"}}},9663:(t,i,e)=>{"use strict";e.d(i,{A:()=>n});var r=e(5596);const n=class{constructor(t,i,e,r,n,s,o,a,c,p,u){this.decimal=t,this.group=i,this.list=e,this.percentSign=r,this.minusSign=n,this.plusSign=s,this.exponential=o,this.superscriptingExponent=a,this.perMille=c,this.infinity=p,this.nan=u,this.validateData()}getDecimal(){return this.decimal}getGroup(){return this.group}getList(){return this.list}getPercentSign(){return this.percentSign}getMinusSign(){return this.minusSign}getPlusSign(){return this.plusSign}getExponential(){return this.exponential}getSuperscriptingExponent(){return this.superscriptingExponent}getPerMille(){return this.perMille}getInfinity(){return this.infinity}getNan(){return this.nan}validateData(){if(!this.decimal||"string"!=typeof this.decimal)throw new r.A("Invalid decimal");if(!this.group||"string"!=typeof this.group)throw new r.A("Invalid group");if(!this.list||"string"!=typeof this.list)throw new r.A("Invalid symbol list");if(!this.percentSign||"string"!=typeof this.percentSign)throw new r.A("Invalid percentSign");if(!this.minusSign||"string"!=typeof this.minusSign)throw new r.A("Invalid minusSign");if(!this.plusSign||"string"!=typeof this.plusSign)throw new r.A("Invalid plusSign");if(!this.exponential||"string"!=typeof this.exponential)throw new r.A("Invalid exponential");if(!this.superscriptingExponent||"string"!=typeof this.superscriptingExponent)throw new r.A("Invalid superscriptingExponent");if(!this.perMille||"string"!=typeof this.perMille)throw new r.A("Invalid perMille");if(!this.infinity||"string"!=typeof this.infinity)throw new r.A("Invalid infinity");if(!this.nan||"string"!=typeof this.nan)throw new r.A("Invalid nan")}}},5017:(t,i,e)=>{"use strict";e.d(i,{A:()=>s});var r=e(5596),n=e(9663);const s=class{constructor(t,i,e,s,o,a,c,p){if(this.positivePattern=t,this.negativePattern=i,this.symbol=e,this.maxFractionDigits=s,this.minFractionDigits=s{var r="[object Symbol]",n=/[\\^$.*+?()[\]{}|]/g,s=RegExp(n.source),o="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,a="object"==typeof self&&self&&self.Object===Object&&self,c=o||a||Function("return this")(),p=Object.prototype.toString,u=c.Symbol,g=u?u.prototype:void 0,l=g?g.toString:void 0;function h(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&p.call(t)==r}(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}t.exports=function(t){var i;return(t=null==(i=t)?"":h(i))&&s.test(t)?t.replace(n,"\\$&"):t}}},i={};function e(r){var n=i[r];if(void 0!==n)return n.exports;var s=i[r]={exports:{}};return t[r](s,s.exports,e),s.exports}e.d=(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";e.r(r),e.d(r,{NumberFormatter:()=>p,NumberSpecification:()=>n.A,NumberSymbol:()=>t.A,PriceSpecification:()=>o});var t=e(9663),i=e(5596),n=e(5017);class s extends n.A{constructor(t,e,r,n,s,o,a,c,p,u){if(super(t,e,r,n,s,o,a,c),this.currencySymbol=p,this.currencyCode=u,!this.currencySymbol||"string"!=typeof this.currencySymbol)throw new i.A("Invalid currencySymbol");if(!this.currencyCode||"string"!=typeof this.currencyCode)throw new i.A("Invalid currencyCode")}static getCurrencyDisplay(){return"symbol"}getCurrencySymbol(){return this.currencySymbol}getCurrencyCode(){return this.currencyCode}}const o=s,a=e(912);class c{constructor(t){this.numberSpecification=t}format(t,i){void 0!==i&&(this.numberSpecification=i);const e=Math.abs(t).toFixed(this.numberSpecification.getMaxFractionDigits());let[r,n]=this.extractMajorMinorDigits(e);r=this.splitMajorGroups(r),n=this.adjustMinorDigitsZeroes(n);let s=r;n&&(s+="."+n);const o=this.getCldrPattern(t<0);return s=this.addPlaceholders(s,o),s=this.replaceSymbols(s),s=this.performSpecificReplacements(s),s}extractMajorMinorDigits(t){const i=t.toString().split(".");return[i[0],void 0===i[1]?"":i[1]]}splitMajorGroups(t){if(!this.numberSpecification.isGroupingUsed())return t;const i=t.split("").reverse();let e=[];for(e.push(i.splice(0,this.numberSpecification.getPrimaryGroupSize()));i.length;)e.push(i.splice(0,this.numberSpecification.getSecondaryGroupSize()));e=e.reverse();const r=[];return e.forEach((t=>{r.push(t.reverse().join(""))})),r.join(",")}adjustMinorDigitsZeroes(t){let i=t;return i.length>this.numberSpecification.getMaxFractionDigits()&&(i=i.replace(/0+$/,"")),i.lengthi[t]||t)).join("")}addPlaceholders(t,i){return i.replace(/#?(,#+)*0(\.[0#]+)*/,t)}performSpecificReplacements(t){return this.numberSpecification instanceof o?t.split("ยค").join(this.numberSpecification.getCurrencySymbol()):t}static build(i){let e,r;return e=void 0!==i.numberSymbols?new t.A(...i.numberSymbols):new t.A(...i.symbol),r=i.currencySymbol?new o(i.positivePattern,i.negativePattern,e,parseInt(i.maxFractionDigits,10),parseInt(i.minFractionDigits,10),i.groupingUsed,i.primaryGroupSize,i.secondaryGroupSize,i.currencySymbol,i.currencyCode):new n.A(i.positivePattern,i.negativePattern,e,parseInt(i.maxFractionDigits,10),parseInt(i.minFractionDigits,10),i.groupingUsed,i.primaryGroupSize,i.secondaryGroupSize),new c(r)}}const p=c})(),window.cldr=r})();