{"version":3,"file":"live-thErVoOl.js","sources":["../../../../node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/live.js"],"sourcesContent":["import{noChange as r,nothing as e}from\"../lit-html.js\";import{directive as i,Directive as t,PartType as n}from\"../directive.js\";import{isSingleExpression as o,setCommittedValue as s}from\"../directive-helpers.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const l=i(class extends t{constructor(r){if(super(r),r.type!==n.PROPERTY&&r.type!==n.ATTRIBUTE&&r.type!==n.BOOLEAN_ATTRIBUTE)throw Error(\"The `live` directive is not allowed on child or event bindings\");if(!o(r))throw Error(\"`live` bindings can only contain a single expression\")}render(r){return r}update(i,[t]){if(t===r||t===e)return t;const o=i.element,l=i.name;if(i.type===n.PROPERTY){if(t===o[l])return r}else if(i.type===n.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(l))return r}else if(i.type===n.ATTRIBUTE&&o.getAttribute(l)===t+\"\")return r;return s(i),t}});export{l as live};\n//# sourceMappingURL=live.js.map\n"],"names":["l","i","t","r","n","o","e","s"],"mappings":"yFACA;AAAA;AAAA;AAAA;AAAA,GAIQ,MAACA,EAAEC,EAAE,cAAcC,CAAC,CAAC,YAAYC,EAAE,CAAC,GAAG,MAAMA,CAAC,EAAEA,EAAE,OAAOC,EAAE,UAAUD,EAAE,OAAOC,EAAE,WAAWD,EAAE,OAAOC,EAAE,kBAAkB,MAAM,MAAM,gEAAgE,EAAE,GAAG,CAACC,EAAEF,CAAC,EAAE,MAAM,MAAM,sDAAsD,CAAC,CAAC,OAAOA,EAAE,CAAC,OAAOA,CAAC,CAAC,OAAOF,EAAE,CAACC,CAAC,EAAE,CAAC,GAAGA,IAAIC,GAAGD,IAAII,EAAE,OAAOJ,EAAE,MAAMG,EAAEJ,EAAE,QAAQD,EAAEC,EAAE,KAAK,GAAGA,EAAE,OAAOG,EAAE,UAAU,GAAGF,IAAIG,EAAEL,CAAC,EAAE,OAAOG,UAAUF,EAAE,OAAOG,EAAE,mBAAmB,GAAG,CAAC,CAACF,IAAIG,EAAE,aAAaL,CAAC,EAAE,OAAOG,UAAUF,EAAE,OAAOG,EAAE,WAAWC,EAAE,aAAaL,CAAC,IAAIE,EAAE,GAAG,OAAOC,EAAE,OAAOI,EAAEN,CAAC,EAAEC,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}