import{a as $}from"./chunk.IF6Y3ILD.js";import{a as c,c as _}from"./chunk.QQD62QOV.js";var n=(s,t)=>{var i;let e=s._$AN;if(e===void 0)return!1;for(let o of e)(i=o._$AO)==null||i.call(o,t,!1),n(o,t);return!0},h=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},d=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),l(t)}};function a(s){this._$AN!==void 0?(h(this),this._$AM=s,d(this)):this._$AM=s}function f(s,t=!1,e=0){let i=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(i))for(let r=e;r<i.length;r++)n(i[r],!1),h(i[r]);else i!=null&&(n(i,!1),h(i));else n(this,s)}var l=s=>{var t,e;s.type==c.CHILD&&((t=s._$AP)!=null||(s._$AP=f),(e=s._$AQ)!=null||(s._$AQ=a))},A=class extends _{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),d(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(o=this.disconnected)==null||o.call(this)),e&&(n(this,t),h(this))}setValue(t){if($(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};export{A as a};
/*! Bundled license information:

lit-html/async-directive.js:
  (**
   * @license
   * Copyright 2017 Google LLC
   * SPDX-License-Identifier: BSD-3-Clause
   *)
*/
