UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 34.2 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[31484],{18866:function(t,e,n){var r=n(43802).end,i=n(60706);t.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},53487:function(t,e,n){var r=n(43802).start,i=n(60706);t.exports=i("trimStart")?function(){return r(this)}:"".trimStart},53921:function(t,e,n){var r=n(46518),i=n(72652),s=n(97040);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,function(t,n){s(e,t,n)},{AS_ENTRIES:!0}),e}})},39202:function(t,e,n){n(33313);var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},58934:function(t,e,n){var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},33313:function(t,e,n){var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},43359:function(t,e,n){n(58934);var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},42905:function(t,e,n){n.d(e,{A:function(){return r}});n(16280);function r(t){if(null==t)throw new TypeError("Cannot destructure "+t)}},45558:function(t,e,n){n.d(e,{Im:function(){return E},tv:function(){return d},Tu:function(){return L},eW:function(){return H},oF:function(){return B},N1:function(){return _},N6:function(){return P},jA:function(){return A},Jp:function(){return T},xm:function(){return S},Qh:function(){return y},qg:function(){return W}});n(16280),n(44114),n(72712),n(18111),n(7588),n(18237),n(45367),n(92731),n(53921),n(84864),n(57465),n(27495),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(25440),n(39202),n(43359),n(62953),n(22489);const r=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function i(t){const e={};return t.replace(r,t=>{const n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}const s=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function o(t){return t.replace(/^(.*?)-/,"")}const h=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,a=/^(@+)?(\+|#+)?[rs]?$/g,c=/(\*)(0+)|(#+)(0+)|(0+)/g,u=/^(0+)$/;function l(t){const e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(a,function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),e}function p(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function f(t){let e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){const n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!u.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function m(t){const e=p(t);return e||{}}function g(t){let e={};for(const n of t){switch(n.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=n.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=o(n.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Object.assign(Object.assign({},e),{},{notation:"scientific"},n.options.reduce((t,e)=>Object.assign(Object.assign({},t),m(e)),{}));continue;case"engineering":e=Object.assign(Object.assign({},e),{},{notation:"engineering"},n.options.reduce((t,e)=>Object.assign(Object.assign({},t),m(e)),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(c,function(t,n,r,i,s,o){if(n)e.minimumIntegerDigits=r.length;else{if(i&&s)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(u.test(n.stem)){e.minimumIntegerDigits=n.stem.length;continue}if(h.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(h,function(t,n,r,i,s,o){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""});const t=n.options[0];"w"===t?e=Object.assign(Object.assign({},e),{},{trailingZeroDisplay:"stripIfInteger"}):t&&(e=Object.assign(Object.assign({},e),l(t)));continue}if(a.test(n.stem)){e=Object.assign(Object.assign({},e),l(n.stem));continue}const t=p(n.stem);t&&(e=Object.assign(Object.assign({},e),t));const r=f(n.stem);r&&(e=Object.assign(Object.assign({},e),r))}return e}let b=function(t){return t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",t}({});function H(t){return 0===t.type}function E(t){return 1===t.type}function B(t){return 2===t.type}function d(t){return 3===t.type}function y(t){return 4===t.type}function T(t){return 5===t.type}function P(t){return 6===t.type}function A(t){return 7===t.type}function S(t){return 8===t.type}function _(t){return!(!t||"object"!=typeof t||0!==t.type)}function L(t){return!(!t||"object"!=typeof t||1!==t.type)}const I=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,O={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function N(t){let e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const n=t.language;let r;return"root"!==n&&(r=t.maximize().region),(O[r||""]||O[n||""]||O[`${n}-001`]||O["001"])[0]}const v=new RegExp(`^${I.source}*`),C=new RegExp(`${I.source}*$`);function R(t,e){return{start:t,end:e}}const w=!!Object.fromEntries,M=!!String.prototype.trimStart,D=!!String.prototype.trimEnd,U=w?Object.fromEntries:function(t){const e={};for(const[n,r]of t)e[n]=r;return e},G=M?function(t){return t.trimStart()}:function(t){return t.replace(v,"")},F=D?function(t){return t.trimEnd()}:function(t){return t.replace(C,"")},k=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var j=class{parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(t,e,n){let r=[];for(;!this.isEOF();){const i=this.char();if(123===i){const e=this.parseArgument(t,n);if(e.err)return e;r.push(e.val)}else{if(125===i&&t>0)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(26,R(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&x(this.peek()||0)){const n=this.parseTag(t,e);if(n.err)return n;r.push(n.val)}else{const n=this.parseLiteral(t,e);if(n.err)return n;r.push(n.val)}}else{const t=this.clonePosition();this.bump(),r.push({type:7,location:R(t,this.clonePosition())})}}}return{val:r,err:null}}parseTag(t,e){const n=this.clonePosition();this.bump();const r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${r}/>`,location:R(n,this.clonePosition())},err:null};if(this.bumpIf(">")){const i=this.parseMessage(t+1,e,!0);if(i.err)return i;const s=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!x(this.char()))return this.error(23,R(o,this.clonePosition()));const t=this.clonePosition();return r!==this.parseTagName()?this.error(26,R(t,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:r,children:s,location:R(n,this.clonePosition())},err:null}:this.error(23,R(o,this.clonePosition())))}return this.error(27,R(n,this.clonePosition()))}return this.error(23,R(n,this.clonePosition()))}parseTagName(){const t=this.offset();for(this.bump();!this.isEOF()&&V(this.char());)this.bump();return this.message.slice(t,this.offset())}parseLiteral(t,e){const n=this.clonePosition();let r="";for(;;){const n=this.tryParseQuote(e);if(n){r+=n;continue}const i=this.tryParseUnquoted(t,e);if(i){r+=i;continue}const s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}return{val:{type:0,value:r,location:R(n,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(x(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t}tryParseQuote(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();const e=[this.char()];for(this.bump();!this.isEOF();){const t=this.char();if(39===t){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(t);this.bump()}return String.fromCodePoint(...e)}tryParseUnquoted(t,e){if(this.isEOF())return null;const n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(t,e){const n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,R(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,R(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,R(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,R(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:R(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,R(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(3,R(n,this.clonePosition()))}}parseIdentifierIfPossible(){const t=this.clonePosition(),e=this.offset(),n=(r=this.message,i=e,k.lastIndex=i,null!==(s=k.exec(r)[1])&&void 0!==s?s:"");var r,i,s;const o=e+n.length;return this.bumpTo(o),{value:n,location:R(t,this.clonePosition())}}parseArgumentOptions(t,e,n,r){let s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(o){case"":return this.error(4,R(s,h));case"number":case"date":case"time":{var a,c;this.bumpSpace();let t=null;if(this.bumpIf(",")){this.bumpSpace();const e=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;const r=F(n.val);if(0===r.length)return this.error(6,R(this.clonePosition(),this.clonePosition()));t={style:r,styleLocation:R(e,this.clonePosition())}}const e=this.tryParseArgumentClose(r);if(e.err)return e;const s=R(r,this.clonePosition());if(t&&t.style.startsWith("::")){let e=G(t.style.slice(2));if("number"===o){const r=this.parseNumberSkeletonFromString(e,t.styleLocation);return r.err?r:{val:{type:2,value:n,location:s,style:r.val},err:null}}{if(0===e.length)return this.error(10,s);let r=e;this.locale&&(r=function(t,e){let n="";for(let r=0;r<t.length;r++){const i=t.charAt(r);if("j"===i){let s=0;for(;r+1<t.length&&t.charAt(r+1)===i;)s++,r++;let o=1+(1&s),h=s<2?1:3+(s>>1),a="a",c=N(e);for("H"!=c&&"k"!=c||(h=0);h-- >0;)n+=a;for(;o-- >0;)n=c+n}else n+="J"===i?"H":i}return n}(e,this.locale));return{val:{type:"date"===o?3:4,value:n,location:s,style:{type:1,pattern:r,location:t.styleLocation,parsedOptions:this.shouldParseSkeletons?i(r):{}}},err:null}}}return{val:{type:"number"===o?2:"date"===o?3:4,value:n,location:s,style:null!==(a=null===(c=t)||void 0===c?void 0:c.style)&&void 0!==a?a:null},err:null}}case"plural":case"selectordinal":case"select":{const i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,R(i,Object.assign({},i)));this.bumpSpace();let s=this.parseIdentifierIfPossible(),h=0;if("select"!==o&&"offset"===s.value){if(!this.bumpIf(":"))return this.error(13,R(this.clonePosition(),this.clonePosition()));this.bumpSpace();const t=this.tryParseDecimalInteger(13,14);if(t.err)return t;this.bumpSpace(),s=this.parseIdentifierIfPossible(),h=t.val}const a=this.tryParsePluralOrSelectOptions(t,o,e,s);if(a.err)return a;const c=this.tryParseArgumentClose(r);if(c.err)return c;const u=R(r,this.clonePosition());return"select"===o?{val:{type:5,value:n,options:U(a.val),location:u},err:null}:{val:{type:6,value:n,options:U(a.val),offset:h,pluralType:"plural"===o?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,R(s,h))}}tryParseArgumentClose(t){return this.isEOF()||125!==this.char()?this.error(1,R(t,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let t=0;const e=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let t=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,R(t,this.clonePosition()));this.bump();break}case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}}parseNumberSkeletonFromString(t,e){let n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");const e=t.split(s).filter(t=>t.length>0),n=[];for(const r of e){let t=r.split("/");if(0===t.length)throw new Error("Invalid number skeleton");const[e,...i]=t;for(const n of i)if(0===n.length)throw new Error("Invalid number skeleton");n.push({stem:e,options:i})}return n}(t)}catch(r){return this.error(7,e)}return{val:{type:0,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?g(n):{}},err:null}}tryParsePluralOrSelectOptions(t,e,n,r){let i=!1;const s=[],o=new Set;let{value:h,location:a}=r;for(;;){if(0===h.length){const t=this.clonePosition();if("select"===e||!this.bumpIf("="))break;{const e=this.tryParseDecimalInteger(16,19);if(e.err)return e;a=R(t,this.clonePosition()),h=this.message.slice(t.offset,this.offset())}}if(o.has(h))return this.error("select"===e?21:20,a);"other"===h&&(i=!0),this.bumpSpace();const r=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?17:18,R(this.clonePosition(),this.clonePosition()));const c=this.parseMessage(t+1,e,n);if(c.err)return c;const u=this.tryParseArgumentClose(r);if(u.err)return u;s.push([h,{value:c.val,location:R(r,this.clonePosition())}]),o.add(h),this.bumpSpace(),({value:h,location:a}=this.parseIdentifierIfPossible())}return 0===s.length?this.error("select"===e?15:16,R(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,R(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(t,e){let n=1;const r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);let i=!1,s=0;for(;!this.isEOF();){const t=this.char();if(!(t>=48&&t<=57))break;i=!0,s=10*s+(t-48),this.bump()}const o=R(r,this.clonePosition());return i?(s*=n,Number.isSafeInteger(s)?{val:s,err:null}:this.error(e,o)):this.error(t,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");const e=this.message.codePointAt(t);if(void 0===e)throw Error(`Offset ${t} is at invalid UTF-16 code unit boundary`);return e}error(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}}bump(){if(this.isEOF())return;const t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}bumpIf(t){if(this.message.startsWith(t,this.offset())){for(let e=0;e<t.length;e++)this.bump();return!0}return!1}bumpUntil(t){const e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(t){if(this.offset()>t)throw Error(`targetOffset ${t} must be greater than or equal to the current offset ${this.offset()}`);for(t=Math.min(t,this.message.length);;){const e=this.offset();if(e===t)break;if(e>t)throw Error(`targetOffset ${t} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&K(this.char());)this.bump()}peek(){var t;if(this.isEOF())return null;const e=this.char(),n=this.offset();return null!==(t=this.message.charCodeAt(n+(e>=65536?2:1)))&&void 0!==t?t:null}constructor(t,e={}){this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}};function x(t){return t>=97&&t<=122||t>=65&&t<=90}function V(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function K(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function X(t){t.forEach(t=>{if(delete t.location,T(t)||P(t))for(const e in t.options)delete t.options[e].location,X(t.options[e].value);else B(t)&&_(t.style)||(d(t)||y(t))&&L(t.style)?delete t.style.location:S(t)&&X(t.children)})}function W(t,e={}){var n;e=Object.assign({shouldParseSkeletons:!0,requiresOtherClause:!0},e);const r=new j(t,e).parse();if(r.err){const t=SyntaxError(b[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!==(n=e)&&void 0!==n&&n.captureLocation||X(r.val),r.val}},90103:function(t,e,n){n.a(t,async function(t,r){try{n.d(e,{IntlMessageFormat:function(){return m}});var i,s=n(42905),o=n(74487),h=(n(16280),n(44114),n(72712),n(18111),n(61701),n(18237),n(62953),n(40603)),a=n(45558),c=t([o]);o=(c.then?(await c)():c)[0];var u=class extends Error{toString(){return`[formatjs Error: ${this.code}] ${this.message}`}constructor(t,e,n){super(t),this.code=e,this.originalMessage=n}},l=class extends u{constructor(t,e,n,r){super(`Invalid values for "${t}": "${e}". Options are "${Object.keys(n).join('", "')}"`,"INVALID_VALUE",r)}},p=class extends u{constructor(t,e,n){super(`Value for "${t}" must be of type ${e}`,"INVALID_VALUE",n)}},f=class extends u{constructor(t,e){super(`The intl string context variable "${t}" was not provided to the string "${e}"`,"MISSING_VALUE",e)}};function b(t){return"function"==typeof t}function H(t,e,n,r,i,s,o){if(1===t.length&&(0,a.eW)(t[0]))return[{type:0,value:t[0].value}];const h=[];for(const m of t){if((0,a.eW)(m)){h.push({type:0,value:m.value});continue}if((0,a.jA)(m)){"number"==typeof s&&h.push({type:0,value:n.getNumberFormat(e).format(s)});continue}const{value:t}=m;if(!i||!(t in i))throw new f(t,o);let c=i[t];if((0,a.Im)(m))c&&"string"!=typeof c&&"number"!=typeof c&&"bigint"!=typeof c||(c="string"==typeof c||"number"==typeof c||"bigint"==typeof c?String(c):""),h.push({type:"string"==typeof c?0:1,value:c});else{if((0,a.tv)(m)){const t="string"==typeof m.style?r.date[m.style]:(0,a.Tu)(m.style)?m.style.parsedOptions:void 0;h.push({type:0,value:n.getDateTimeFormat(e,t).format(c)});continue}if((0,a.Qh)(m)){const t="string"==typeof m.style?r.time[m.style]:(0,a.Tu)(m.style)?m.style.parsedOptions:r.time.medium;h.push({type:0,value:n.getDateTimeFormat(e,t).format(c)});continue}if((0,a.oF)(m)){const t="string"==typeof m.style?r.number[m.style]:(0,a.N1)(m.style)?m.style.parsedOptions:void 0;if(t&&t.scale){const e=t.scale||1;if("bigint"==typeof c){if(!Number.isInteger(e))throw new TypeError(`Cannot apply fractional scale ${e} to bigint value. Scale must be an integer when formatting bigint.`);c*=BigInt(e)}else c*=e}h.push({type:0,value:n.getNumberFormat(e,t).format(c)});continue}if((0,a.xm)(m)){const{children:t,value:a}=m,c=i[a];if(!b(c))throw new p(a,"function",o);let u=c(H(t,e,n,r,i,s).map(t=>t.value));Array.isArray(u)||(u=[u]),h.push(...u.map(t=>({type:"string"==typeof t?0:1,value:t})))}if((0,a.Jp)(m)){const t=c,s=(Object.prototype.hasOwnProperty.call(m.options,t)?m.options[t]:void 0)||m.options.other;if(!s)throw new l(m.value,c,Object.keys(m.options),o);h.push(...H(s.value,e,n,r,i));continue}if((0,a.N6)(m)){const t=`=${c}`;let s=Object.prototype.hasOwnProperty.call(m.options,t)?m.options[t]:void 0;if(!s){if(!Intl.PluralRules)throw new u('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);const t="bigint"==typeof c?Number(c):c,r=n.getPluralRules(e,{type:m.pluralType}).select(t-(m.offset||0));s=(Object.prototype.hasOwnProperty.call(m.options,r)?m.options[r]:void 0)||m.options.other}if(!s)throw new l(m.value,c,Object.keys(m.options),o);const a="bigint"==typeof c?Number(c):c;h.push(...H(s.value,e,n,r,i,a-(m.offset||0)));continue}}}return(c=h).length<2?c:c.reduce((t,e)=>{const n=t[t.length-1];return n&&0===n.type&&0===e.type?n.value+=e.value:t.push(e),t},[]);var c}function E(t){return{create(){return{get(e){return t[e]},set(e,n){t[e]=n}}}}}function B(t={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,h.B)((...t)=>new Intl.NumberFormat(...t),{cache:E(t.number),strategy:h.W.variadic}),getDateTimeFormat:(0,h.B)((...t)=>new Intl.DateTimeFormat(...t),{cache:E(t.dateTime),strategy:h.W.variadic}),getPluralRules:(0,h.B)((...t)=>new Intl.PluralRules(...t),{cache:E(t.pluralRules),strategy:h.W.variadic})}}var m=(i=class t{static get defaultLocale(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale}constructor(e,n=t.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=t=>{const e=this.formatToParts(t);if(1===e.length)return e[0].value;const n=e.reduce((t,e)=>(t.length&&0===e.type&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t),[]);return n.length<=1?n[0]||"":n},this.formatToParts=t=>H(this.ast,this.locales,this.formatters,this.formats,t,void 0,this.message),this.resolvedOptions=()=>{var t;return{locale:(null===(t=this.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}},this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const n=i||{},r=Object.assign({},((0,s.A)(n),n));this.ast=t.__parse(e,Object.assign(Object.assign({},r),{},{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");var o,h;this.formats=(o=t.formats,(h=r)?Object.keys(o).reduce((t,e)=>{var n,r;return t[e]=(n=o[e],(r=h[e])?Object.assign(Object.assign(Object.assign({},n),r),Object.keys(n).reduce((t,e)=>(t[e]=Object.assign(Object.assign({},n[e]),r[e]),t),{})):n),t},Object.assign({},o)):o),this.formatters=i&&i.formatters||B(this.formatterCache)}},i.memoizedDefaultLocale=null,i.resolveLocale=t=>{if(void 0===Intl.Locale)return;const e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},i.__parse=a.qg,i.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},i);r()}catch(g){r(g)}})}}]);