UNPKG

iobroker.lovelace

Version:

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

2 lines 20.5 kB
/*! For license information please see 78408.8eccd0c9beeda12c.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[78408],{12451:function(t,e,o){o.d(e,{O:function(){return s},i:function(){return i.is}});var n=o(5124),i=o(12130);class s extends n.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130:function(t,e,o){o.d(e,{SE:function(){return c},U9:function(){return l},hP:function(){return n},is:function(){return i}});o(44114);const n=t=>t.nodeType===Node.ELEMENT_NODE;function i(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}let s=!1;const a=()=>{},r={get passive(){return s=!0,!1}};document.addEventListener("x",a,r),document.removeEventListener("x",a);const l=(t=window.document)=>{let e=t.activeElement;const o=[];if(!e)return o;for(;e&&(o.push(e),e.shadowRoot);)e=e.shadowRoot.activeElement;return o},c=t=>{const e=l();if(!e.length)return!1;const o=e[e.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let i=[];const s=t=>{i=t.composedPath()};return document.body.addEventListener("check-if-focused",s),o.dispatchEvent(n),document.body.removeEventListener("check-if-focused",s),-1!==i.indexOf(t)}},35370:function(t,e,o){var n=o(26198);t.exports=function(t,e,o){for(var i=0,s=arguments.length>2?o:n(e),a=new t(s);s>i;)a[i]=e[i++];return a}},77957:function(t,e,o){var n=o(76080),i=o(79504),s=o(47055),a=o(48981),r=o(56969),l=o(26198),c=o(2360),d=o(35370),h=Array,u=i([].push);t.exports=function(t,e,o,i){for(var p,f,g,v=a(t),m=s(v),b=n(e,o),w=c(null),y=l(m),k=0;y>k;k++)g=m[k],(f=r(b(g,k,v)))in w?u(w[f],g):w[f]=[g];if(i&&(p=i(v))!==h)for(f in w)w[f]=d(p,w[f]);return w}},46058:function(t,e,o){var n=o(46518),i=o(77957),s=o(6469);n({target:"Array",proto:!0},{group:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),s("group")},13611:function(t,e,o){var n=o(46518),i=o(44576),s=o(62106),a=o(43724),r=TypeError,l=Object.defineProperty,c=i.self!==i;try{if(a){var d=Object.getOwnPropertyDescriptor(i,"self");!c&&d&&d.get&&d.enumerable||s(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw new r("Illegal invocation");l(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:c},{self:i})}catch(h){}},93900:function(t,e,o){o.a(t,async function(t,e){try{o(3362),o(27495),o(62953);var n=o(5124),i=o(67576),s=o(6412),a=o(63672),r=o(17051),l=o(42462),c=o(28438),d=o(98779),h=o(27259),u=o(25877),p=o(31247),f=o(4444),g=o(92070),v=o(9395),m=o(717),b=o(17060),w=o(88496),y=o(91470),k=t([w,b]);[w,b]=k.then?(await k)():k;let x,$,L,O=t=>t;var E=Object.defineProperty,C=Object.getOwnPropertyDescriptor,A=(t,e,o,n)=>{for(var i,s=n>1?void 0:n?C(e,o):e,a=t.length-1;a>=0;a--)(i=t[a])&&(s=(n?i(e,o,s):i(s))||s);return n&&s&&E(e,o,s),s};let _=class extends m.A{firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),(0,f.JG)(this))}disconnectedCallback(){super.disconnectedCallback(),(0,f.I7)(this),this.removeOpenListeners()}async requestClose(t){const e=new c.L({source:t});if(this.dispatchEvent(e),e.defaultPrevented)return this.open=!0,void(0,h.Ud)(this.dialog,"pulse");this.removeOpenListeners(),await(0,h.Ud)(this.dialog,"hide"),this.open=!1,this.dialog.close(),(0,f.I7)(this);const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout(()=>o.focus()),this.dispatchEvent(new r.Z)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),(0,u.AZ)(this)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this)}handleDialogCancel(t){t.preventDefault(),!this.dialog.classList.contains("hide")&&t.target===this.dialog&&(0,u.a0)(this)&&this.requestClose(this.dialog)}handleDialogClick(t){const e=t.target.closest('[data-dialog="close"]');e&&(t.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(t){t.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await(0,h.Ud)(this.dialog,"pulse"))}handleOpenChange(){this.open&&!this.dialog.open?this.show():!this.open&&this.dialog.open&&(this.open=!0,this.requestClose(this.dialog))}async show(){const t=new d.k;this.dispatchEvent(t),t.defaultPrevented?this.open=!1:(this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),(0,f.JG)(this),requestAnimationFrame(()=>{const t=this.querySelector("[autofocus]");t&&"function"==typeof t.focus?t.focus():this.dialog.focus()}),await(0,h.Ud)(this.dialog,"show"),this.dispatchEvent(new l.q))}render(){var t;const e=!this.withoutHeader,o=this.hasUpdated?this.hasSlotController.test("footer"):this.withFooter;return(0,n.qy)(x||(x=O` <dialog aria-labelledby="${0}" aria-describedby="${0}" part="dialog" class="${0}" @cancel="${0}" @click="${0}" @pointerdown="${0}"> ${0} <div part="body" class="body"><slot></slot></div> ${0} </dialog> `),null!==(t=this.ariaLabelledby)&&void 0!==t?t:"title",(0,a.J)(this.ariaDescribedby),(0,s.H)({dialog:!0,open:this.open}),this.handleDialogCancel,this.handleDialogClick,this.handleDialogPointerDown,e?(0,n.qy)($||($=O` <header part="header" class="header"> <h2 part="title" class="title" id="title"> <slot name="label"> ${0} </slot> </h2> <div part="header-actions" class="header-actions"> <slot name="header-actions"></slot> <wa-button part="close-button" exportparts="base:close-button__base" class="close" appearance="plain" @click="${0}"> <wa-icon name="xmark" label="${0}" library="system" variant="solid"></wa-icon> </wa-button> </div> </header> `),this.label.length>0?this.label:String.fromCharCode(8203),t=>this.requestClose(t.target),this.localize.term("close")):"",o?(0,n.qy)(L||(L=O` <footer part="footer" class="footer"> <slot name="footer"></slot> </footer> `)):"")}constructor(){super(...arguments),this.localize=new b.c(this),this.hasSlotController=new g.X(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.withFooter=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.requestClose(this.dialog))}}};_.css=y.A,A([(0,i.P)(".dialog")],_.prototype,"dialog",2),A([(0,i.MZ)({type:Boolean,reflect:!0})],_.prototype,"open",2),A([(0,i.MZ)({reflect:!0})],_.prototype,"label",2),A([(0,i.MZ)({attribute:"without-header",type:Boolean,reflect:!0})],_.prototype,"withoutHeader",2),A([(0,i.MZ)({attribute:"light-dismiss",type:Boolean})],_.prototype,"lightDismiss",2),A([(0,i.MZ)({attribute:"aria-labelledby"})],_.prototype,"ariaLabelledby",2),A([(0,i.MZ)({attribute:"aria-describedby"})],_.prototype,"ariaDescribedby",2),A([(0,i.MZ)({attribute:"with-footer",type:Boolean})],_.prototype,"withFooter",2),A([(0,v.w)("open",{waitUntilFirstUpdate:!0})],_.prototype,"handleOpenChange",1),_=A([(0,i.EM)("wa-dialog")],_),n.S$||(document.addEventListener("click",t=>{const e=t.target.closest("[data-dialog]");if(e instanceof Element){const[t,o]=(0,p.v)(e.getAttribute("data-dialog")||"");if("open"===t&&null!=o&&o.length){const t=e.getRootNode().getElementById(o);"wa-dialog"===(null==t?void 0:t.localName)?t.open=!0:console.warn(`A dialog with an ID of "${o}" could not be found in this document.`)}}}),document.addEventListener("pointerdown",()=>{})),e()}catch(x){e(x)}})},91470:function(t,e,o){o.d(e,{A:function(){return i}});let n;var i=(0,o(5124).AH)(n||(n=(t=>t)`:host{--width:31rem;--spacing:var(--wa-space-l);--backdrop-filter:none;--show-duration:200ms;--hide-duration:200ms;display:none}:host([open]){display:block}.dialog{display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;width:var(--width);max-width:calc(100% - var(--wa-space-2xl));max-height:calc(100% - var(--wa-space-2xl));color:inherit;background-color:var(--wa-color-surface-raised);border-radius:var(--wa-panel-border-radius);border:none;box-shadow:var(--wa-shadow-l);padding:0;margin:auto}.dialog.show{animation:show-dialog var(--show-duration) ease}.dialog.show::backdrop{animation:show-backdrop var(--show-duration,200ms) ease}.dialog.hide{animation:show-dialog var(--hide-duration) ease reverse}.dialog.hide::backdrop{animation:show-backdrop var(--hide-duration,200ms) ease reverse}.dialog.pulse{animation:pulse 250ms ease}.dialog:focus{outline:0}@media screen and (max-width:420px){.dialog{max-height:80vh}}.open{display:flex;opacity:1}.header{flex:0 0 auto;display:flex;flex-wrap:nowrap;padding-inline-start:var(--spacing);padding-block-end:0;padding-inline-end:calc(var(--spacing) - var(--wa-form-control-padding-block));padding-block-start:calc(var(--spacing) - var(--wa-form-control-padding-block))}.title{align-self:center;flex:1 1 auto;font-family:inherit;font-size:var(--wa-font-size-l);font-weight:var(--wa-font-weight-heading);line-height:var(--wa-line-height-condensed);margin:0}.header-actions{align-self:start;display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:end;gap:var(--wa-space-2xs);padding-inline-start:var(--spacing)}.header-actions ::slotted(wa-button),.header-actions wa-button{flex:0 0 auto;display:flex;align-items:center}.body{flex:1 1 auto;display:block;padding:var(--spacing);overflow:auto;-webkit-overflow-scrolling:touch}.body:focus{outline:0}.body:focus-visible{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.footer{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:var(--wa-space-xs);justify-content:end;padding:var(--spacing);padding-block-start:0}.footer ::slotted(wa-button:not(:first-of-type)){margin-inline-start:var(--wa-spacing-xs)}.dialog::backdrop{background-color:var(--wa-color-overlay-modal,rgb(0 0 0 / .25));-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}@keyframes pulse{0%{scale:1}50%{scale:1.02}100%{scale:1}}@keyframes show-dialog{from{opacity:0;scale:0.8}to{opacity:1;scale:1}}@keyframes show-backdrop{from{opacity:0}to{opacity:1}}@media (forced-colors:active){.dialog{border:solid 1px #fff}}`))},31247:function(t,e,o){o.d(e,{v:function(){return n}});o(18111),o(22489),o(61701),o(42762);function n(t){return t.split(" ").map(t=>t.trim()).filter(t=>""!==t)}},4444:function(t,e,o){o.d(e,{JG:function(){return i},Rt:function(){return a},I7:function(){return s}});o(27495),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(25440),o(62953);const n=new Set;function i(t){if(n.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function s(t){n.delete(t),0===n.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function a(t,e,o="vertical",n="smooth"){const i=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=i.top+e.scrollTop,a=i.left+e.scrollLeft,r=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(a<r?e.scrollTo({left:a,behavior:n}):a+t.clientWidth>l&&e.scrollTo({left:a-e.offsetWidth+t.clientWidth,behavior:n})),"vertical"!==o&&"both"!==o||(s<c?e.scrollTo({top:s,behavior:n}):s+t.clientHeight>d&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:n}))}},88696:function(t,e,o){o.a(t,async function(t,n){try{o.d(e,{P:function(){return l}});var i=o(69235),s=(o(3362),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953),o(37540)),a=o(42017),r=t([i]);i=(r.then?(await r)():r)[0];class l{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return c(this,t)}constructor(t,{target:e,config:o,callback:n,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=o,this.o=null!=i?i:this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const c=(0,a.u$)(class extends s.Kq{render(t,e){}update(t,[e,o]){this.controller=e,this.part=t,this.observe=o,!1===o?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});n()}catch(l){n(l)}})},2209:function(t,e,o){o.d(e,{LV:function(){return u}});o(89463),o(16280),o(72712),o(55081),o(18111),o(61701),o(18237),o(45367),o(92731),o(3362),o(84864),o(57465),o(27495),o(88454),o(29452),o(62953);const n=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),s=Symbol("Comlink.releaseProxy"),a=Symbol("Comlink.finalizer"),r=Symbol("Comlink.thrown"),l=t=>"object"==typeof t&&null!==t||"function"==typeof t,c=new Map([["proxy",{canHandle:t=>l(t)&&t[n],serialize(t){const{port1:e,port2:o}=new MessageChannel;return d(t,e),[o,[o]]},deserialize(t){return t.start(),u(t)}}],["throw",{canHandle:t=>l(t)&&r in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function d(t,e=globalThis,o=["*"]){e.addEventListener("message",function i(s){if(!s||!s.data)return;if(!function(t,e){for(const o of t){if(e===o||"*"===o)return!0;if(o instanceof RegExp&&o.test(e))return!0}return!1}(o,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:l,type:c,path:u}=Object.assign({path:[]},s.data),p=(s.data.argumentList||[]).map(k);let f;try{const e=u.slice(0,-1).reduce((t,e)=>t[e],t),o=u.reduce((t,e)=>t[e],t);switch(c){case"GET":f=o;break;case"SET":e[u.slice(-1)[0]]=k(s.data.value),f=!0;break;case"APPLY":f=o.apply(e,p);break;case"CONSTRUCT":f=function(t){return Object.assign(t,{[n]:!0})}(new o(...p));break;case"ENDPOINT":{const{port1:e,port2:o}=new MessageChannel;d(t,o),f=function(t,e){return w.set(t,e),t}(e,[e])}break;case"RELEASE":f=void 0;break;default:return}}catch(g){f={value:g,[r]:0}}Promise.resolve(f).catch(t=>({value:t,[r]:0})).then(o=>{const[n,s]=y(o);e.postMessage(Object.assign(Object.assign({},n),{id:l}),s),"RELEASE"===c&&(e.removeEventListener("message",i),h(e),a in t&&"function"==typeof t[a]&&t[a]())}).catch(t=>{const[o,n]=y({value:new TypeError("Unserializable return value"),[r]:0});e.postMessage(Object.assign(Object.assign({},o),{id:l}),n)})}),e.start&&e.start()}function h(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function u(t,e){const o=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const n=o.get(e.id);if(n)try{n(e)}finally{o.delete(e.id)}}),m(t,o,[],e)}function p(t){if(t)throw new Error("Proxy has been released and is not useable")}function f(t){return E(t,new Map,{type:"RELEASE"}).then(()=>{h(t)})}const g=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(g.get(t)||0)-1;g.set(t,e),0===e&&f(t)});function m(t,e,o=[],n=function(){}){let a=!1;const r=new Proxy(n,{get(n,i){if(p(a),i===s)return()=>{!function(t){v&&v.unregister(t)}(r),f(t),e.clear(),a=!0};if("then"===i){if(0===o.length)return{then:()=>r};const n=E(t,e,{type:"GET",path:o.map(t=>t.toString())}).then(k);return n.then.bind(n)}return m(t,e,[...o,i])},set(n,i,s){p(a);const[r,l]=y(s);return E(t,e,{type:"SET",path:[...o,i].map(t=>t.toString()),value:r},l).then(k)},apply(n,s,r){p(a);const l=o[o.length-1];if(l===i)return E(t,e,{type:"ENDPOINT"}).then(k);if("bind"===l)return m(t,e,o.slice(0,-1));const[c,d]=b(r);return E(t,e,{type:"APPLY",path:o.map(t=>t.toString()),argumentList:c},d).then(k)},construct(n,i){p(a);const[s,r]=b(i);return E(t,e,{type:"CONSTRUCT",path:o.map(t=>t.toString()),argumentList:s},r).then(k)}});return function(t,e){const o=(g.get(e)||0)+1;g.set(e,o),v&&v.register(t,e,t)}(r,t),r}function b(t){const e=t.map(y);return[e.map(t=>t[0]),(o=e.map(t=>t[1]),Array.prototype.concat.apply([],o))];var o}const w=new WeakMap;function y(t){for(const[e,o]of c)if(o.canHandle(t)){const[n,i]=o.serialize(t);return[{type:"HANDLER",name:e,value:n},i]}return[{type:"RAW",value:t},w.get(t)||[]]}function k(t){switch(t.type){case"HANDLER":return c.get(t.name).deserialize(t.value);case"RAW":return t.value}}function E(t,e,o,n){return new Promise(i=>{const s=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(s,i),t.start&&t.start(),t.postMessage(Object.assign({id:s},o),n)})}},37540:function(t,e,o){o.d(e,{Kq:function(){return h}});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953);var n=o(63937),i=o(42017);const s=(t,e)=>{const o=t._$AN;if(void 0===o)return!1;for(const i of o){var n;null!==(n=i._$AO)&&void 0!==n&&n.call(i,e,!1),s(i,e)}return!0},a=t=>{let e,o;do{var n;if(void 0===(e=t._$AM))break;o=e._$AN,o.delete(t),t=e}while(0===(null===(n=o)||void 0===n?void 0:n.size))},r=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(void 0===o)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),d(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,r(this)):this._$AM=t}function c(t,e=!1,o=0){const n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(n))for(let r=o;r<n.length;r++)s(n[r],!1),a(n[r]);else null!=n&&(s(n,!1),a(n));else s(this,t)}const d=t=>{var e,o;t.type==i.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=c),null!==(o=t._$AQ)&&void 0!==o||(t._$AQ=l))};class h extends i.WL{_$AT(t,e,o){super._$AT(t,e,o),r(this),this.isConnected=t._$AU}_$AO(t,e=!0){var o,n;t!==this.isConnected&&(this.isConnected=t,t?null===(o=this.reconnected)||void 0===o||o.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),e&&(s(this,t),a(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},89784:function(t,e,o){o.d(e,{W:function(){return r}});o(16280),o(74423),o(72712),o(18111),o(18237),o(27495),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(25440),o(62953);var n=o(5055),i=o(42017);const s="important",a=" !"+s,r=(0,i.u$)(class extends i.WL{render(t){return Object.keys(t).reduce((e,o)=>{const n=t[o];return null==n?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const n of this.ft)null==e[n]&&(this.ft.delete(n),n.includes("-")?o.removeProperty(n):o[n]=null);for(const n in e){const t=e[n];if(null!=t){this.ft.add(n);const e="string"==typeof t&&t.endsWith(a);n.includes("-")||e?o.setProperty(n,e?t.slice(0,-11):t,e?s:""):o[n]=t}}return n.c0}constructor(t){var e;if(super(t),t.type!==i.OA.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}}]);