@kong-ui-public/app-layout 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/kongponents"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D["kong-ui-public-app-layout"]={},D.Vue,D.Kongponents))})(this,function(D,e,ae){"use strict";const Nt={class:"kong-ui-app-navbar"},Bt={class:"header-content"},It={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},$t={class:"navbar-content-left"},At={class:"navbar-content-center"},Ft={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(s=>({"70cd97af":e.unref(f).top,"0d2cc7de":e.unref(f).zIndex,ae3cd626:e.unref(f).left,"103f0fb5":l.marginRight,"078344a6":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var s,p;(p=(s=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:s.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(s,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",It,[e.renderSlot(s.$slots,"mobile-sidebar-toggle"),e.renderSlot(s.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(s.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",$t,[e.renderSlot(s.$slots,"left")]),e.createElementVNode("div",At,[e.renderSlot(s.$slots,"center")]),e.createElementVNode("div",Ft,[e.renderSlot(s.$slots,"right")])])])]))}}),Mr="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Me=Z(Dt,[["__scopeId","data-v-f2e6c8f7"]]),Vt=["title"],Mt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(l,f)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),Lr="",Lt=Z(Mt,[["__scopeId","data-v-9e48c714"]]),Rt=["data-testid"],Zt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Pt={key:0,class:"sidebar-item-icon"},jt={class:"sidebar-item-name-container"},Ht={class:"sidebar-item-name has-tooltip"},Kt={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Wt=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),l=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),s=v=>{n("click",v)},p=(v,_,B)=>{s(_),typeof B=="function"&&(v.preventDefault(),B())};return(v,_)=>{var E;const B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(l)?r.item.to:void 0},{default:e.withCtx(y=>{var k,x;return[e.createElementVNode("a",{"aria-controls":(k=r.item.items)!=null&&k.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(x=r.item.items)!=null&&x.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(l),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):y==null?void 0:y.href,target:e.unref(l)?"_blank":void 0,onClick:A=>p(A,r.item,y==null?void 0:y.navigate),onKeypress:e.withKeys(A=>p(A,r.item,y==null?void 0:y.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(e.unref(ae.KIcon),{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(e.unref(ae.KTooltip),{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Lt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Zt)]}),_:1},8,["custom","to"])),(E=r.item.items)!=null&&E.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,y=>(e.openBlock(),e.createBlock(B,{key:y.name,item:y,"subnav-item":!0,onClick:k=>s(y)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Rr="",Zr="",Le=Z(Wt,[["__scopeId","data-v-
|
|
1
|
+
(function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/kongponents")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/kongponents"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D["kong-ui-public-app-layout"]={},D.Vue,D.Kongponents))})(this,function(D,e,ae){"use strict";const Nt={class:"kong-ui-app-navbar"},Bt={class:"header-content"},It={class:"mobile-header-left"},xt={key:0,class:"app-navbar-logo"},Ot={class:"navbar-content"},$t={class:"navbar-content-left"},At={class:"navbar-content-center"},Ft={class:"navbar-content-right"},Dt=e.defineComponent({__name:"AppNavbar",props:{topOffset:{type:Number,default:0},leftOffset:{type:Number,default:240},zIndex:{type:Number,default:3}},setup(r){const n=r;e.useCssVars(s=>({"70cd97af":e.unref(f).top,"0d2cc7de":e.unref(f).zIndex,ae3cd626:e.unref(f).left,"103f0fb5":l.marginRight,"078344a6":l.width}));const a=e.useSlots(),o=e.computed(()=>!!a.logo),l=e.reactive({marginRight:"0",width:"0"});e.onMounted(()=>{var s,p;(p=(s=document==null?void 0:document.querySelector(".kong-ui-app-navbar .app-navbar-logo"))==null?void 0:s.children)!=null&&p.length?(l.marginRight="32px",l.width="calc(240px - 32px)"):(l.marginRight="0",l.width="0")});const f=e.computed(()=>({top:n.topOffset?`${n.topOffset}px`:"0",left:n.leftOffset?`${n.leftOffset}px`:"0",zIndex:n.zIndex}));return(s,p)=>(e.openBlock(),e.createElementBlock("header",Nt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",It,[e.renderSlot(s.$slots,"mobile-sidebar-toggle"),e.renderSlot(s.$slots,"mobile-logo")]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(s.$slots,"logo")])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.createElementVNode("div",$t,[e.renderSlot(s.$slots,"left")]),e.createElementVNode("div",At,[e.renderSlot(s.$slots,"center")]),e.createElementVNode("div",Ft,[e.renderSlot(s.$slots,"right")])])])]))}}),Mr="",Z=(r,n)=>{const a=r.__vccOpts||r;for(const[o,l]of n)a[o]=l;return a},Me=Z(Dt,[["__scopeId","data-v-f2e6c8f7"]]),Vt=["title"],Mt=e.defineComponent({__name:"ItemBadge",props:{count:{type:Number,required:!0,default:void 0}},setup(r){const n=r,a=99,o=e.computed(()=>n.count?n.count>a?`${a}+`:n.count.toString():"");return(l,f)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"item-badge",title:(r.count||0)>a?String(r.count):void 0},e.toDisplayString(e.unref(o)),9,Vt)):e.createCommentVNode("",!0)}}),Lr="",Lt=Z(Mt,[["__scopeId","data-v-9e48c714"]]),Rt=["data-testid"],Zt=["aria-controls","aria-expanded","href","target","onClick","onKeypress"],Pt={key:0,class:"sidebar-item-icon"},jt={class:"sidebar-item-name-container"},Ht={class:"sidebar-item-name has-tooltip"},Kt={key:2,class:"sidebar-item-label truncate-text truncate-20"},zt=["id"],Wt=e.defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},subnavItem:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:n}){const a=r,o=e.computed(()=>typeof a.item.to!="string"?!1:!!a.item.newWindow||!!a.item.external||a.item.to.startsWith("http")),l=e.computed(()=>!a.item.to||typeof a.item.to!="string"||!a.item.newWindow?!1:a.item.newWindow&&(a.item.to.startsWith("http")||a.item.to.startsWith("/"))),f=e.computed(()=>a.subnavItem&&a.item.badgeCount!==void 0),s=v=>{n("click",v)},p=(v,_,B)=>{s(_),typeof B=="function"&&(v.preventDefault(),B())};return(v,_)=>{var E;const B=e.resolveComponent("SidebarItem",!0);return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([r.subnavItem?"sidebar-item-secondary":"sidebar-item-primary",{expanded:r.item.expanded},{active:r.item.active}]),"data-testid":r.item.testId?`sidebar-item-${r.item.testId}`:void 0},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o)?"div":"router-link"),{custom:e.unref(o)?void 0:!0,to:!e.unref(o)&&!e.unref(l)?r.item.to:void 0},{default:e.withCtx(y=>{var k,x;return[e.createElementVNode("a",{"aria-controls":(k=r.item.items)!=null&&k.length&&r.item.expanded?`subnav-${r.item.key}`:void 0,"aria-expanded":(x=r.item.items)!=null&&x.length&&r.item.expanded?!0:void 0,class:e.normalizeClass(["sidebar-item-link",{"sidebar-item-external-link":e.unref(l),"router-link":!e.unref(o)}]),href:e.unref(o)?String(r.item.to||"#"):y==null?void 0:y.href,target:e.unref(l)?"_blank":void 0,onClick:A=>p(A,r.item,y==null?void 0:y.navigate),onKeypress:e.withKeys(A=>p(A,r.item,y==null?void 0:y.navigate),["enter"])},[e.createElementVNode("div",{class:e.normalizeClass(["sidebar-item-display",{"has-label":!!r.item.label&&r.item.expanded,"has-badge":e.unref(f)}])},[r.item.icon?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(e.unref(ae.KIcon),{color:r.item.active||r.item.expanded?"var(--white, #fff)":"#B5BECD",icon:String(r.item.icon),size:"20"},null,8,["color","icon"])])):e.createCommentVNode("",!0),e.createElementVNode("div",jt,[(r.subnavItem?r.item.name.length<25:r.item.name.length<18)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["sidebar-item-name truncate-text",[r.subnavItem?"has-badge-max-width truncate-24":"truncate-17"]])},e.toDisplayString(r.item.name),3)):(e.openBlock(),e.createBlock(e.unref(ae.KTooltip),{key:1,class:"sidebar-item-tooltip",label:r.item.name,placement:"right","position-fixed":""},{default:e.withCtx(()=>[e.createElementVNode("div",Ht,[e.createElementVNode("span",{class:e.normalizeClass(["truncate-text",[r.subnavItem?"truncate-20":"truncate-17",{"has-badge-max-width":e.unref(f)}]])},e.toDisplayString(r.item.name),3)])]),_:1},8,["label"])),r.item.label&&r.item.expanded?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(r.item.label),1)):e.createCommentVNode("",!0)]),e.unref(f)?(e.openBlock(),e.createBlock(Lt,{key:1,count:r.item.badgeCount},null,8,["count"])):e.createCommentVNode("",!0)],2)],42,Zt)]}),_:1},8,["custom","to"])),(E=r.item.items)!=null&&E.length&&r.item.expanded?(e.openBlock(),e.createElementBlock("ul",{key:0,id:`subnav-${r.item.key}`,class:"level-secondary"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.item.items,y=>(e.openBlock(),e.createBlock(B,{key:y.name,item:y,"subnav-item":!0,onClick:k=>s(y)},null,8,["item","onClick"]))),128))],8,zt)):e.createCommentVNode("",!0)],10,Rt)}}}),Rr="",Zr="",Le=Z(Wt,[["__scopeId","data-v-2d4be12b"]]),Gt={},Ut={class:"profile-icon",fill:"none",height:"30",width:"30",xmlns:"http://www.w3.org/2000/svg"},qt=[e.createElementVNode("path",{d:"M0 15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15Z",fill:"#0A7FAE"},null,-1),e.createElementVNode("path",{d:"M12.613 15 8.5 18.115V23h13v-4.885L17.648 15h-5.035ZM15 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"#fff"},null,-1)];function Yt(r,n){return e.openBlock(),e.createElementBlock("svg",Ut,qt)}const Xt=Z(Gt,[["render",Yt]]),Jt={"aria-haspopup":"true","aria-label":"Profile Menu",class:"sidebar-footer"},Qt={class:"sidebar-profile-link"},en={class:"sidebar-item-icon"},tn={class:"sidebar-profile-item-container"},nn={class:"sidebar-profile-dropdown-container"},an={key:0,class:"sidebar-profile-name"},rn={class:"sidebar-profile-name"},on=e.defineComponent({__name:"SidebarFooter",props:{name:{type:String,required:!0},itemCount:{type:Number,required:!0,default:0}},setup(r){const n=r,a=e.computed(()=>n.itemCount>0);return(o,l)=>(e.openBlock(),e.createElementBlock("nav",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",en,[e.createVNode(Xt)]),e.createElementVNode("div",tn,[e.createElementVNode("div",nn,[e.unref(a)?(e.openBlock(),e.createBlock(e.unref(ae.KDropdownMenu),{key:1,"kpop-attributes":{placement:"right",popoverClasses:"ml-5 sidebar-profile-menu-popover",target:".sidebar-footer"},width:"240"},{items:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("a",{"aria-label":"Open Profile Menu",class:"profile-dropdown-trigger",role:"button",tabindex:"0",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("span",rn,e.toDisplayString(r.name),1)])]),_:3},8,["kpop-attributes"])):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(r.name),1))])])])]))}}),Hr="",cn=Z(on,[["__scopeId","data-v-57607227"]]);/*!
|
|
2
2
|
* tabbable 6.0.1
|
|
3
3
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
4
|
*/var Re=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],le=Re.join(","),Ze=typeof Element>"u",U=Ze?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!Ze&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},Pe=function(n,a,o){var l=Array.prototype.slice.apply(n.querySelectorAll(le));return a&&U.call(n,le)&&l.unshift(n),l=l.filter(o),l},je=function r(n,a,o){for(var l=[],f=Array.from(n);f.length;){var s=f.shift();if(s.tagName==="SLOT"){var p=s.assignedElements(),v=p.length?p:s.children,_=r(v,!0,o);o.flatten?l.push.apply(l,_):l.push({scopeParent:s,candidates:_})}else{var B=U.call(s,le);B&&o.filter(s)&&(a||!n.includes(s))&&l.push(s);var E=s.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(s),y=!o.shadowRootFilter||o.shadowRootFilter(s);if(E&&y){var k=r(E===!0?s.children:E.children,!0,o);o.flatten?l.push.apply(l,k):l.push({scopeParent:s,candidates:k})}else f.unshift.apply(f,s.children)}}return l},He=function(n,a){return n.tabIndex<0&&(a||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},sn=function(n,a){return n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex},Ke=function(n){return n.tagName==="INPUT"},ln=function(n){return Ke(n)&&n.type==="hidden"},dn=function(n){var a=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(o){return o.tagName==="SUMMARY"});return a},fn=function(n,a){for(var o=0;o<n.length;o++)if(n[o].checked&&n[o].form===a)return n[o]},un=function(n){if(!n.name)return!0;var a=n.form||de(n),o=function(p){return a.querySelectorAll('input[type="radio"][name="'+p+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(n.name));else try{l=o(n.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var f=fn(l,n.form);return!f||f===n},pn=function(n){return Ke(n)&&n.type==="radio"},mn=function(n){return pn(n)&&!un(n)},bn=function(n){for(var a,o=de(n).host,l=!!((a=o)!==null&&a!==void 0&&a.ownerDocument.contains(o)||n.ownerDocument.contains(n));!l&&o;){var f;o=de(o).host,l=!!((f=o)!==null&&f!==void 0&&f.ownerDocument.contains(o))}return l},ze=function(n){var a=n.getBoundingClientRect(),o=a.width,l=a.height;return o===0&&l===0},hn=function(n,a){var o=a.displayCheck,l=a.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var f=U.call(n,"details>summary:first-of-type"),s=f?n.parentElement:n;if(U.call(s,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var p=n;n;){var v=n.parentElement,_=de(n);if(v&&!v.shadowRoot&&l(v)===!0)return ze(n);n.assignedSlot?n=n.assignedSlot:!v&&_!==n.ownerDocument?n=_.host:n=v}n=p}if(bn(n))return!n.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ze(n);return!1},gn=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var a=n.parentElement;a;){if(a.tagName==="FIELDSET"&&a.disabled){for(var o=0;o<a.children.length;o++){var l=a.children.item(o);if(l.tagName==="LEGEND")return U.call(a,"fieldset[disabled] *")?!0:!l.contains(n)}return!0}a=a.parentElement}return!1},fe=function(n,a){return!(a.disabled||ln(a)||hn(a,n)||dn(a)||gn(a))},ke=function(n,a){return!(mn(a)||He(a)<0||!fe(n,a))},yn=function(n){var a=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(a)||a>=0)},vn=function r(n){var a=[],o=[];return n.forEach(function(l,f){var s=!!l.scopeParent,p=s?l.scopeParent:l,v=He(p,s),_=s?r(l.candidates):p;v===0?s?a.push.apply(a,_):a.push(p):o.push({documentOrder:f,tabIndex:v,item:l,isScope:s,content:_})}),o.sort(sn).reduce(function(l,f){return f.isScope?l.push.apply(l,f.content):l.push(f.content),l},[]).concat(a)},_n=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:ke.bind(null,a),flatten:!1,getShadowRoot:a.getShadowRoot,shadowRootFilter:yn}):o=Pe(n,a.includeContainer,ke.bind(null,a)),vn(o)},wn=function(n,a){a=a||{};var o;return a.getShadowRoot?o=je([n],a.includeContainer,{filter:fe.bind(null,a),flatten:!0,getShadowRoot:a.getShadowRoot}):o=Pe(n,a.includeContainer,fe.bind(null,a)),o},ue=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,le)===!1?!1:ke(a,n)},kn=Re.concat("iframe").join(","),Ce=function(n,a){if(a=a||{},!n)throw new Error("No node provided");return U.call(n,kn)===!1?!1:fe(a,n)};/*!
|