import{aI as y,W as g}from"./BctTnmkH.js";import{ay as l,al as s,v as h,az as p,ah as m,R as d,p as w,aA as S,aB as x,s as b,aC as P,b as O}from"./BmI4Cs3c.js";async function Q(...n){const e=typeof n[n.length-1]=="string"?n.pop():void 0;typeof n[0]!="string"&&n.unshift(e);const[t,a,r]=n;if(!t||typeof t!="string")throw new TypeError("[nuxt] [callOnce] key must be a string: "+t);if(a!==void 0&&typeof a!="function")throw new Error("[nuxt] [callOnce] fn must be a function: "+a);const i=y();if(r?.mode==="navigation"){let o=function(){i.payload.once.delete(t);for(const v of u)v()};const u=[];u.push(i.hooks.hook("page:start",o),g().beforeResolve(o))}i.payload.once.has(t)||(i._once||={},i._once[t]||=a()||!0,await i._once[t],i.payload.once.add(t),delete i._once[t])}function k(n){return n}function _(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var A=800,T=16,C=Date.now;function R(n){var e=0,t=0;return function(){var a=C(),r=T-(a-t);if(t=a,r>0){if(++e>=A)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function I(n){return function(){return n}}var N=l?function(n,e){return l(n,"toString",{configurable:!0,enumerable:!1,value:I(e),writable:!0})}:k,H=R(N),f=Math.max;function z(n,e,t){return e=f(e===void 0?n.length-1:e,0),function(){for(var a=arguments,r=-1,i=f(a.length-e,0),o=Array(i);++r<i;)o[r]=a[e+r];r=-1;for(var u=Array(e+1);++r<e;)u[r]=a[r];return u[e]=t(o),_(n,this,u)}}var c=s?s.isConcatSpreadable:void 0;function B(n){return h(n)||p(n)||!!(c&&n&&n[c])}function E(n,e,t,a,r){var i=-1,o=n.length;for(t||(t=B),r||(r=[]);++i<o;){var u=n[i];t(u)?m(r,u):r[r.length]=u}return r}function F(n){var e=n==null?0:n.length;return e?E(n):[]}function K(n){return H(z(n,void 0,F),n+"")}function L(n,e){return n!=null&&e in Object(n)}function M(n,e,t){e=d(e,n);for(var a=-1,r=e.length,i=!1;++a<r;){var o=w(e[a]);if(!(i=n!=null&&t(n,o)))break;n=n[o]}return i||++a!=r?i:(r=n==null?0:n.length,!!r&&S(r)&&x(o,r)&&(h(n)||p(n)))}function D(n,e){return n!=null&&M(n,e,L)}function G(n,e,t){for(var a=-1,r=e.length,i={};++a<r;){var o=e[a],u=b(n,o);t(u,o)&&P(i,d(o,n),u)}return i}function U(n,e){return G(n,e,function(t,a){return D(n,a)})}var W=K(function(n,e){return n==null?{}:U(n,e)});const $=O({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),V=n=>W($,n);export{Q as c,K as f,D as h,k as i,W as p,V as u};
