import{desc as e}from"./base.js";
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */function o(t){return(s,r)=>{const{slot:n,selector:a}=t??{},c="slot"+(n?`[name=${n}]`:":not([name])");return e(s,r,{get(){const e=this.renderRoot?.querySelector(c),s=e?.assignedElements(t)??[];return void 0===a?s:s.filter((e=>e.matches(a)))}})}}export{o as queryAssignedElements};