iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 8.52 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[28456],{55081:function(e,t,r){var a=r(46518),n=r(44576);a({global:!0,forced:n.globalThis!==n},{globalThis:n})},89463:function(e,t,r){var a=r(46518),n=r(43724),o=r(44576),i=r(69565),l=r(79504),c=r(39297),s=r(94901),u=r(1625),f=r(655),d=r(62106),g=r(77740),p=o.Symbol,y=p&&p.prototype;if(n&&s(p)&&(!("description"in y)||void 0!==p().description)){var b={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),t=u(y,this)?new p(e):void 0===e?p():p(e);return""===e&&(b[t]=!0),t};g(h,p);var v=h.for;h.for={for:function(e){var t=f(e),r=i(v,this,t);return""===t&&(b[r]=!0),r}}.for,h.prototype=y,y.constructor=h;var w="Symbol(description detection)"===String(p("description detection")),m=l(y.valueOf),_=l(y.toString),D=/^Symbol\((.*)\)[^)]+$/,T=l("".replace),z=l("".slice);d(y,"description",{configurable:!0,get:function(){var e=m(this);if(c(b,e))return"";var t=_(e),r=w?z(t,7,-1):T(t,D,"$1");return""===r?void 0:r}}),a({global:!0,constructor:!0,forced:!0},{Symbol:h})}},603:function(e,t,r){r.r(t);r(89463),r(16280),r(72712),r(55081),r(18111),r(22489),r(18237),r(33110),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(88454),r(29452),r(62953);var a,n=r(32838);function o(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function i(e){return Intl.getCanonicalLocales(e)}function l(e,t,r,a,n){if("object"!=typeof e)throw new TypeError("Options must be an object");let i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=o(i)),void 0!==a&&!a.filter(e=>e==i).length)throw new RangeError(`${i} is not within ${a.join(", ")}`);return i}return n}const c=/[^A-Z]/;function s(e){return 3===(e=e.replace(/([a-z])/g,(e,t)=>t.toUpperCase())).length&&!c.test(e)}function u(e,t,r){let a="best fit";return void 0!==r&&(a=l(r=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}(r),"localeMatcher","string",["lookup","best fit"],"best fit")),(0,n.s8)(Array.from(e),t)}function f(e,t){const r=t&&t.cache?t.cache:v,a=t&&t.serializer?t.serializer:b;return(t&&t.strategy?t.strategy:y)(e,{cache:r,serializer:a})}function d(e,t,r,a){const n=null==(o=a)||"number"==typeof o||"boolean"==typeof o?a:r(a);var o;let i=t.get(n);return void 0===i&&(i=e.call(this,a),t.set(n,i)),i}function g(e,t,r){const a=Array.prototype.slice.call(arguments,3),n=r(a);let o=t.get(n);return void 0===o&&(o=e.apply(this,a),t.set(n,o)),o}function p(e,t,r,a,n){return r.bind(t,e,a,n)}function y(e,t){return p(e,this,1===e.length?d:g,t.cache.create(),t.serializer)}const b=function(){return JSON.stringify(arguments)};var h=class{get(e){return this.cache[e]}set(e,t){this.cache[e]=t}constructor(){this.cache=Object.create(null)}};const v={create:function(){return new h}},w={variadic:function(e,t){return p(e,this,g,t.cache.create(),t.serializer)},monadic:function(e,t){return p(e,this,d,t.cache.create(),t.serializer)}};function m(e,t,...r){const a=e.get(t);if(!a)throw new TypeError(`${t} InternalSlot has not been initialized`);return r.reduce((e,t)=>(e[t]=a[t],e),Object.create(null))}function _(e,t,r=Error){if(!e)throw new r(t)}f((...e)=>new Intl.NumberFormat(...e),{strategy:w.variadic}),f((...e)=>new Intl.PluralRules(...e),{strategy:w.variadic}),f((...e)=>new Intl.Locale(...e),{strategy:w.variadic}),f((...e)=>new Intl.ListFormat(...e),{strategy:w.variadic});const D=["era","year","quarter","month","weekOfYear","weekday","day","dayPeriod","hour","minute","second","timeZoneName"];function T(e){return D.indexOf(e)>=0}const z=/^([a-z]{2}|[0-9]{3})$/i,L=/^[a-z]{4}$/i,S=/^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i;function O(e,t){if("language"===e)return i([t])[0];if("region"===e){if(r=t,!z.test(r))throw RangeError("invalid region");return t.toUpperCase()}var r,a;if("script"===e){if(a=t,!L.test(a))throw RangeError("invalid script");return`${t[0].toUpperCase()}${t.slice(1).toLowerCase()}`}if("calendar"===e){if(!function(e){return S.test(e)}(t))throw RangeError("invalid calendar");return t.toLowerCase()}if("dateTimeField"===e){if(!T(t))throw RangeError("invalid dateTimeField");return t}if(_("currency"===e,"invalid type"),!s(t))throw RangeError("invalid currency");return t.toUpperCase()}var j=(a=class e{static supportedLocalesOf(t,r){return u(e.availableLocales,i(t),r)}static __addLocaleData(...t){for(const{data:r,locale:a}of t){const t=new Intl.Locale(a).minimize().toString();e.localeData[a]=e.localeData[t]=r,e.availableLocales.add(t),e.availableLocales.add(a),e.__defaultLocale||(e.__defaultLocale=t)}}of(e){k(this,"of");const t=I(this,"type"),r=o(e);if(!function(e,t){switch(e){case"language":return/^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|\d{3}))?(-([a-z\d]{5,8}|\d[a-z\d]{3}))*$/i.test(t);case"region":return/^([a-z]{2}|\d{3})$/i.test(t);case"script":return/^[a-z]{4}$/i.test(t);case"currency":return s(t);case"calendar":return/^[a-z0-9]{3,8}([-_][a-z0-9]{3,8})*$/i.test(t);case"dateTimeField":return T(t)}}(t,r))throw RangeError("invalid code for Intl.DisplayNames.prototype.of");const{localeData:a,style:n,fallback:i}=m(E,this,"localeData","style","fallback");let l,c=O(t,r);if("language"===t)l=function(e,t,r,a,n){const o=t.types.language[e],i=o[r][a]||o.long[a];if(void 0!==i)return i;{const e=/-([a-z]{2}|\d{3})\b/i.exec(a);if(e){const i=a.substring(0,e.index)+a.substring(e.index+e[0].length),l=e[1],c=o[r][i]||o.long[i];if(void 0===c||!l)return c;{const e=t.types.region,a=e[r][l]||e.long[l];if(a||"code"===n)return t.patterns.locale.replace("{0}",c).replace("{1}",a||l)}}}}(I(this,"languageDisplay"),a,n,c,i);else{const e=a.types[t];l=e[n][c]||e.long[c]}return void 0!==l?l:"code"===i?r:void 0}resolvedOptions(){return k(this,"resolvedOptions"),Object.assign({},m(E,this,"locale","style","type","fallback","languageDisplay"))}static getDefaultLocale(){return e.__defaultLocale}constructor(t,r){if(void 0===new.target)throw TypeError("Constructor Intl.DisplayNames requires 'new'");const a=i(t);r=function(e){if(void 0===e)return Object.create(null);if("object"==typeof e)return e;throw new TypeError("Options must be an object")}(r);const o=Object.create(null),{localeData:c}=e;o.localeMatcher=l(r,"localeMatcher","string",["lookup","best fit"],"best fit");const s=(0,n.Bg)(Array.from(e.availableLocales),a,o,[],e.localeData,e.getDefaultLocale),u=l(r,"style","string",["narrow","short","long"],"long");$(this,"style",u);const f=l(r,"type","string",["language","region","script","currency","calendar","dateTimeField"],void 0);if(void 0===f)throw TypeError('Intl.DisplayNames constructor requires "type" option');$(this,"type",f);$(this,"fallback",l(r,"fallback","string",["code","none"],"code")),$(this,"locale",s.locale);const{dataLocale:d}=s,g=c[d];_(!!g,`Missing locale data for ${d}`),$(this,"localeData",g),_(void 0!==g,`locale data for ${s.locale} does not exist.`);const{types:p}=g;_("object"==typeof p&&null!=p,"invalid types data");const y=p[f];_("object"==typeof y&&null!=y,"invalid typeFields data");const b=l(r,"languageDisplay","string",["dialect","standard"],"dialect");if("language"===f){$(this,"languageDisplay",b);const e=p[f][b];_("object"==typeof e&&null!=e,"invalid language typeFields data")}const h="language"===f?p[f][b][u]:p[f][u];_("object"==typeof h&&null!=h,"invalid styleFields data"),$(this,"fields",h)}},a.localeData={},a.availableLocales=new Set,a.__defaultLocale="",a.polyfilled=!0,a);try{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(j.prototype,Symbol.toStringTag,{value:"Intl.DisplayNames",configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(j,"length",{value:2,writable:!1,enumerable:!1,configurable:!0})}catch(C){}const E=new WeakMap;function I(e,t){return m(E,e,r=t)[r];var r}function $(e,t,r){!function(e,t,r,a){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=a}(E,e,t,r)}function k(e,t){if(!(e instanceof j))throw TypeError(`Method Intl.DisplayNames.prototype.${t} called on incompatible receiver`)}!function(e,t,{value:r}){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}(("undefined"==typeof Intl&&Object.defineProperty(globalThis,"Intl",{configurable:!0,enumerable:!1,writable:!0,value:{}}),Intl),"DisplayNames",{value:j});const A=globalThis.__FORMATJS_DISPLAYNAMES_DATA__;if(A){for(const e of A)j.__addLocaleData(e);delete globalThis.__FORMATJS_DISPLAYNAMES_DATA__}}}]);