import{defaultConverter as t}from"../../../../lit/index.js";var defaultValue=(o="value")=>(r,e)=>{const i=r.constructor,n=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(r,a,l){var u;const c=i.getPropertyOptions(o);if(r===("string"==typeof c.attribute?c.attribute:o)){const r=c.converter||t,i=("function"==typeof r?r:null!=(u=null==r?void 0:r.fromAttribute)?u:t.fromAttribute)(l,c.type);this[o]!==i&&(this[e]=i)}n.call(this,r,a,l)}};export{defaultValue};