iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
5 lines • 21 kB
JavaScript
/*! For license information please see 61339.9ecd128aff82fea0.js.LICENSE.txt */
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[61339],{9391:function(e,t,a){var r=a(46518),i=a(96395),o=a(80550),s=a(79039),n=a(97751),l=a(94901),c=a(2293),d=a(93438),p=a(36840),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,n("Promise")),a=l(e);return this.then(a?function(a){return d(t,e()).then(function(){return a})}:e,a?function(a){return d(t,e()).then(function(){throw a})}:e)}}),!i&&l(o)){var u=n("Promise").prototype.finally;h.finally!==u&&p(h,"finally",u,{unsafe:!0})}},61366:function(e,t,a){a.a(e,async function(e,t){try{a(74423),a(3362),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);var r=a(5124),i=a(67576),o=a(6412),s=a(63672),n=a(17051),l=a(42462),c=a(28438),d=a(98779),p=a(27259),h=a(25877),u=a(984),v=a(95010),m=a(9395),f=a(717),b=a(40158),y=a(10416),g=e([b]);b=(g.then?(await g)():g)[0];let C,_=e=>e;var w=Object.defineProperty,k=Object.getOwnPropertyDescriptor,x=(e,t,a,r)=>{for(var i,o=r>1?void 0:r?k(t,a):t,s=e.length-1;s>=0;s--)(i=e[s])&&(o=(r?i(t,a,o):i(o))||o);return r&&o&&w(t,a,o),o};const D=new Set;let $=class extends f.A{connectedCallback(){super.connectedCallback(),this.id||(this.id=(0,v.N)("wa-popover-")),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.for&&this.anchor&&(this.anchor=null,this.handleForChange())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,h.Fw)(this),this.eventController.abort()}firstUpdated(){this.open&&this.handleOpenChange()}updated(e){e.has("open")&&this.customStates.set("open",this.open)}async handleOpenChange(){if(this.open){const e=new d.k;if(this.dispatchEvent(e),e.defaultPrevented)return void(this.open=!1);D.forEach(e=>e.open=!1),document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),document.addEventListener("click",this.handleDocumentClick,{signal:this.eventController.signal}),this.trapFocus?this.dialog.showModal():this.dialog.show(),this.popup.active=!0,D.add(this),(0,h.AZ)(this),requestAnimationFrame(()=>{const e=this.querySelector("[autofocus]");e&&"function"==typeof e.focus?e.focus():this.dialog.focus()}),this.popup.popup||await this.popup.updateComplete,await(0,p.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new l.q)}else{const e=new c.L;if(this.dispatchEvent(e),e.defaultPrevented)return void(this.open=!0);document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick),D.delete(this),(0,h.Fw)(this),await(0,p.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.dialog.close(),this.dispatchEvent(new n.Z)}}handleForChange(){const e=this.getRootNode();if(!e)return;const t=this.for?e.getElementById(this.for):null,a=this.anchor;if(t===a)return;const{signal:r}=this.eventController;t&&t.addEventListener("click",this.handleAnchorClick,{signal:r}),a&&a.removeEventListener("click",this.handleAnchorClick),this.anchor=t,this.for&&!t&&console.warn(`A popover was assigned to an element with an ID of "${this.for}" but the element could not be found.`,this)}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}async show(){if(!this.open)return this.open=!0,(0,u.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,u.l)(this,"wa-after-hide")}handleDialogCancel(e){e.preventDefault(),this.dialog.classList.contains("hide")||(this.open=!1)}render(){return(0,r.qy)(C||(C=_` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="dialog" @cancel="${0}"> <wa-popup part="popup" exportparts="
popup:popup__popup,
arrow:popup__arrow
" class="${0}" placement="${0}" distance="${0}" skidding="${0}" flip shift ?arrow="${0}" .anchor="${0}" .autoSize="${0}" .autoSizePadding="${0}"> <div part="body" class="body" @click="${0}"> <slot></slot> </div> </wa-popup> </dialog> `),(0,s.J)(this.ariaLabelledby),(0,s.J)(this.ariaDescribedby),this.handleDialogCancel,(0,o.H)({popover:!0,"popover-open":this.open}),this.placement,this.distance,this.skidding,!this.withoutArrow,this.anchor,this.autoSize,this.autoSizePadding,this.handleBodyClick)}constructor(){super(...arguments),this.anchor=null,this.placement="top",this.open=!1,this.distance=8,this.skidding=0,this.for=null,this.withoutArrow=!1,this.autoSizePadding=0,this.trapFocus=!1,this.eventController=new AbortController,this.handleAnchorClick=()=>{this.open=!this.open},this.handleBodyClick=e=>{e.stopPropagation();e.target.closest('[data-popover="close"]')&&(this.open=!1)},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.open&&(0,h.a0)(this)&&(e.preventDefault(),e.stopPropagation(),this.open=!1,this.anchor&&"function"==typeof this.anchor.focus&&this.anchor.focus())},this.handleDocumentClick=e=>{this.anchor&&e.composedPath().includes(this.anchor)||e.composedPath().includes(this)||(this.open=!1)}}};$.css=y.A,$.dependencies={"wa-popup":b.A},x([(0,i.P)("dialog")],$.prototype,"dialog",2),x([(0,i.P)(".body")],$.prototype,"body",2),x([(0,i.P)("wa-popup")],$.prototype,"popup",2),x([(0,i.wk)()],$.prototype,"anchor",2),x([(0,i.MZ)()],$.prototype,"placement",2),x([(0,i.MZ)({type:Boolean,reflect:!0})],$.prototype,"open",2),x([(0,i.MZ)({type:Number})],$.prototype,"distance",2),x([(0,i.MZ)({type:Number})],$.prototype,"skidding",2),x([(0,i.MZ)()],$.prototype,"for",2),x([(0,i.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],$.prototype,"withoutArrow",2),x([(0,i.MZ)({attribute:"auto-size"})],$.prototype,"autoSize",2),x([(0,i.MZ)({attribute:"auto-size-padding",type:Number})],$.prototype,"autoSizePadding",2),x([(0,i.MZ)({attribute:"trap-focus",type:Boolean})],$.prototype,"trapFocus",2),x([(0,i.MZ)({attribute:"aria-labelledby"})],$.prototype,"ariaLabelledby",2),x([(0,i.MZ)({attribute:"aria-describedby"})],$.prototype,"ariaDescribedby",2),x([(0,m.w)("open",{waitUntilFirstUpdate:!0})],$.prototype,"handleOpenChange",1),x([(0,m.w)("for")],$.prototype,"handleForChange",1),x([(0,m.w)(["distance","placement","skidding"])],$.prototype,"handleOptionsChange",1),$=x([(0,i.EM)("wa-popover")],$),t()}catch(C){t(C)}})},10416:function(e,t,a){a.d(t,{A:function(){return i}});let r;var i=(0,a(5124).AH)(r||(r=(e=>e)`:host{--arrow-size:0.375rem;--max-width:25rem;--show-duration:100ms;--hide-duration:100ms;display:contents;font-size:var(--wa-font-size-m);line-height:var(--wa-line-height-normal);text-align:start;white-space:normal}.dialog{display:none;position:fixed;inset:0;width:100%;height:100%;margin:0;padding:0;border:none;background:0 0;overflow:visible;pointer-events:none}.dialog:focus{outline:0}.dialog[open]{display:block}.popover{--arrow-size:inherit;--popup-border-width:var(--wa-panel-border-width);--show-duration:inherit;--hide-duration:inherit;pointer-events:auto}.popover::part(arrow){background-color:var(--wa-color-surface-default);border-top:none;border-left:none;border-bottom:solid var(--wa-panel-border-width) var(--wa-color-surface-border);border-right:solid var(--wa-panel-border-width) var(--wa-color-surface-border);box-shadow:none}.popover[placement^=top]::part(popup){transform-origin:bottom}.popover[placement^=bottom]::part(popup){transform-origin:top}.popover[placement^=left]::part(popup){transform-origin:right}.popover[placement^=right]::part(popup){transform-origin:left}.body{display:flex;flex-direction:column;width:auto;max-width:min(var(--max-width),100vw);padding:var(--wa-space-l);background-color:var(--wa-color-surface-default);border:var(--wa-panel-border-width) solid var(--wa-color-surface-border);border-radius:var(--wa-panel-border-radius);border-style:var(--wa-panel-border-style);box-shadow:var(--wa-shadow-l);color:var(--wa-color-text-normal);user-select:none;-webkit-user-select:none}.popover[data-current-placement^=bottom] .body,.popover[data-current-placement^=top] .body{max-width:min(var(--max-width),100vw - (var(--wa-space-m) * 2));margin-inline:var(--wa-space-m)}.popover[data-current-placement^=left] .body,.popover[data-current-placement^=right] .body{max-height:calc(100vh - (var(--wa-space-m) * 2));margin-block:var(--wa-space-m)}`))},65686:function(e,t,a){a.a(e,async function(e,r){try{a.d(t,{A:function(){return y}});a(62953);var i=a(5124),o=a(67576),s=a(89784),n=a(717),l=a(17060),c=a(42320),d=e([l]);l=(d.then?(await d)():d)[0];let v,m,f,b=e=>e;var p=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u=(e,t,a,r)=>{for(var i,o=r>1?void 0:r?h(t,a):t,s=e.length-1;s>=0;s--)(i=e[s])&&(o=(r?i(t,a,o):i(o))||o);return r&&o&&p(t,a,o),o};let y=class extends n.A{updated(e){if(super.updated(e),e.has("value")){const e=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),t=2*Math.PI*e,a=t-this.value/100*t;this.indicatorOffset=`${a}px`}}render(){return(0,i.qy)(v||(v=b` <div part="base" class="progress-ring" role="progressbar" aria-label="${0}" aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${0}" style="${0}"> <svg class="image"> <circle part="track" class="track"></circle> <circle part="indicator" class="indicator" style="${0}"></circle> </svg> <slot id="label" part="label" class="label"></slot> </div> `),this.label.length>0?this.label:this.localize.term("progress"),this.value,(0,s.W)({"--percentage":this.value/100}),(0,s.W)({"stroke-dashoffset":this.indicatorOffset}))}constructor(){super(...arguments),this.localize=new l.c(this),this.value=0,this.label=""}};y.css=c.A,u([(0,o.P)(".indicator")],y.prototype,"indicator",2),u([(0,o.wk)()],y.prototype,"indicatorOffset",2),u([(0,o.MZ)({type:Number,reflect:!0})],y.prototype,"value",2),u([(0,o.MZ)()],y.prototype,"label",2),y=u([(0,o.EM)("wa-progress-ring")],y),null===(m=(f=y).disableWarning)||void 0===m||m.call(f,"change-in-update"),r()}catch(v){r(v)}})},42320:function(e,t,a){a.d(t,{A:function(){return i}});let r;var i=(0,a(5124).AH)(r||(r=(e=>e)`:host{--size:8rem;--track-width:0.25em;--track-color:var(--wa-color-neutral-fill-normal);--indicator-width:var(--track-width);--indicator-color:var(--wa-color-brand-fill-loud);--indicator-transition-duration:0.35s;display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.image{width:var(--size);height:var(--size);rotate:-90deg;transform-origin:50% 50%}.indicator,.track{--radius:calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5);--circumference:calc(var(--radius) * 2 * 3.141592654);fill:none;r:var(--radius);cx:calc(var(--size)/ 2);cy:calc(var(--size)/ 2)}.track{stroke:var(--track-color);stroke-width:var(--track-width)}.indicator{stroke:var(--indicator-color);stroke-width:var(--indicator-width);stroke-linecap:round;transition-property:stroke-dashoffset;transition-duration:var(--indicator-transition-duration);stroke-dasharray:var(--circumference) var(--circumference);stroke-dashoffset:calc(var(--circumference) - var(--percentage) * var(--circumference))}.label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;-webkit-user-select:none}`))},49546:function(e,t,a){a.d(t,{Y:function(){return r}});a(44114);const r=(e={})=>{let{validationElement:t,validationProperty:a}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),a||(a="value");const r={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){var t;const i={message:"",isValid:!0,invalidKeys:[]};if(!(null!==(t=e.required)&&void 0!==t?t:e.hasAttribute("required")))return i;return!e[a]&&(i.message="function"==typeof r.message?r.message(e):r.message||"",i.isValid=!1,i.invalidKeys.push("valueMissing")),i}};return r}},96229:function(e,t,a){a.d(t,{k:function(){return p}});a(62953);var r=a(40445),i=(a(73535),a(5124)),o=a(67576),s=a(99591);let n,l,c,d=e=>e;class p extends s.v{get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href})}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?(0,i.qy)(n||(n=d` <a class="primary action" id="link" aria-label="${0}" href="${0}" download="${0}" target="${0}">${0}</a> `),t||i.s6,this.href,this.download||i.s6,this.target||i.s6,e):(0,i.qy)(l||(l=d` <button class="primary action" id="button" aria-label="${0}" aria-disabled="${0}" ?disabled="${0}" type="button">${0}</button> `),t||i.s6,this.softDisabled||i.s6,this.disabled&&!this.alwaysFocusable,e)}renderOutline(){return this.elevated?(0,i.qy)(c||(c=d`<md-elevation part="elevation"></md-elevation>`)):super.renderOutline()}constructor(){super(...arguments),this.elevated=!1,this.href="",this.download="",this.target=""}}(0,r.Cg)([(0,o.MZ)({type:Boolean})],p.prototype,"elevated",void 0),(0,r.Cg)([(0,o.MZ)()],p.prototype,"href",void 0),(0,r.Cg)([(0,o.MZ)()],p.prototype,"download",void 0),(0,r.Cg)([(0,o.MZ)()],p.prototype,"target",void 0)},26069:function(e,t,a){a.d(t,{R:function(){return i}});let r;const i=(0,a(5124).AH)(r||(r=(e=>e)`:host{--_container-height:var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color:var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color:var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation:var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color:var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color:var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation:var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity:var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation:var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation:var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation:var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color:var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color:var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font:var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color:var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color:var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity:var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color:var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color:var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color:var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color:var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size:var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color:var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start:var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-assist-chip-leading-space, 16px);--_trailing-space:var(--md-assist-chip-trailing-space, 16px);--_icon-label-space:var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors:active){.link .outline{border-color:ActiveText}}`))},25625:function(e,t,a){a.d(t,{H:function(){return s}});a(84864),a(57465),a(27495),a(25440);var r=a(9160),i=a(73420),o=a(83504);function s(e,t){var a;const s=()=>(0,i.w)(null==t?void 0:t.in,NaN),m=null!==(a=null==t?void 0:t.additionalDigits)&&void 0!==a?a:2,f=function(e){const t={},a=e.split(n.dateTimeDelimiter);let r;if(a.length>2)return t;/:/.test(a[0])?r=a[0]:(t.date=a[0],r=a[1],n.timeZoneDelimiter.test(t.date)&&(t.date=e.split(n.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=n.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}return t}(e);let b;if(f.date){const e=function(e,t){const a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(a);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(f.date,m);b=function(e,t){if(null===t)return new Date(NaN);const a=e.match(l);if(!a)return new Date(NaN);const r=!!a[4],i=p(a[1]),o=p(a[2])-1,s=p(a[3]),n=p(a[4]),c=p(a[5])-1;if(r)return function(e,t,a){return t>=1&&t<=53&&a>=0&&a<=6}(0,n,c)?function(e,t,a){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=7*(t-1)+a+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,n,c):new Date(NaN);{const e=new Date(0);return function(e,t,a){return t>=0&&t<=11&&a>=1&&a<=(u[t]||(v(e)?29:28))}(t,o,s)&&function(e,t){return t>=1&&t<=(v(e)?366:365)}(t,i)?(e.setUTCFullYear(t,o,Math.max(i,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!b||isNaN(+b))return s();const y=+b;let g,w=0;if(f.time&&(w=function(e){const t=e.match(c);if(!t)return NaN;const a=h(t[1]),i=h(t[2]),o=h(t[3]);if(!function(e,t,a){if(24===e)return 0===t&&0===a;return a>=0&&a<60&&t>=0&&t<60&&e>=0&&e<25}(a,i,o))return NaN;return a*r.s0+6e4*i+1e3*o}(f.time),isNaN(w)))return s();if(!f.timezone){const e=new Date(y+w),a=(0,o.a)(0,null==t?void 0:t.in);return a.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),a.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),a}return g=function(e){if("Z"===e)return 0;const t=e.match(d);if(!t)return 0;const a="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return a*(i*r.s0+6e4*o)}(f.timezone),isNaN(g)?s():(0,o.a)(y+w+g,null==t?void 0:t.in)}const n={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400==0||e%4==0&&e%100!=0}}}]);