vendor: 4,215 bytes, line 1
1import{ar as E,as as ne,U as Z,at as ae,au as se,s as v,$ as ue,av as le,o as ie,W as k,I as D,a5 as C,aw as $,a2 as re,ax as W,ay as ce,a1 as R}from"./C1SkhfMm.js";const M=Symbol.for("vuetify:layout"),X=Symbol.for("vuetify:layout-item"),U=1e3,fe=D({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),pe=D({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function me(){const s=E(M);if(!s)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:s.getLayoutItem,mainRect:s.mainRect,mainStyles:s.mainStyles}}function ge(s){const u=E(M);if(!u)throw new Error("[Vuetify] Could not find injected layout");const d=s.id??`layout-item-${ne()}`,i=Z("useLayoutItem");W(X,{id:d});const n=k(!1);ae(()=>n.value=!0),se(()=>n.value=!1);const{layoutItemStyles:r,layoutItemScrimStyles:c}=u.register(i,{...s,active:v(()=>n.value?!1:s.active.value),id:d});return ue(()=>u.unregister(d)),{layoutItemStyles:r,layoutRect:u.layoutRect,layoutItemScrimStyles:c}}const ve=(s,u,d,i)=>{let n={top:0,left:0,right:0,bottom:0};const r=[{id:"",layer:{...n}}];for(const c of s){const p=u.get(c),g=d.get(c),z=i.get(c);if(!p||!g||!z)continue;const I={...n,[p.value]:parseInt(n[p.value],10)+(z.value?parseInt(g.value,10):0)};r.push({id:c,layer:I}),n=I}return r};function Ie(s){const u=E(M,null),d=v(()=>u?u.rootZIndex.value-100:U),i=re([]),n=$(new Map),r=$(new Map),c=$(new Map),p=$(new Map),g=$(new Map),{resizeRef:z,contentRect:I}=le(),q=v(()=>{const t=new Map,l=s.overlaps??[];for(const e of l.filter(a=>a.includes(":"))){const[a,o]=e.split(":");if(!i.value.includes(a)||!i.value.includes(o))continue;const m=n.get(a),f=n.get(o),S=r.get(a),w=r.get(o);!m||!f||!S||!w||(t.set(o,{position:m.value,amount:parseInt(S.value,10)}),t.set(a,{position:f.value,amount:-parseInt(w.value,10)}))}return t}),h=v(()=>{const t=[...new Set([...c.values()].map(e=>e.value))].sort((e,a)=>e-a),l=[];for(const e of t){const a=i.value.filter(o=>c.get(o)?.value===e);l.push(...a)}return ve(l,n,r,p)}),H=v(()=>!Array.from(g.values()).some(t=>t.value)),x=v(()=>h.value[h.value.length-1].layer),F=C(()=>({"--v-layout-left":R(x.value.left),"--v-layout-right":R(x.value.right),"--v-layout-top":R(x.value.top),"--v-layout-bottom":R(x.value.bottom),...H.value?void 0:{transition:"none"}})),b=v(()=>h.value.slice(1).map((t,l)=>{let{id:e}=t;const{layer:a}=h.value[l],o=r.get(e),m=n.get(e);return{id:e,...a,size:Number(o.value),position:m.value}})),T=t=>b.value.find(l=>l.id===t),Y=Z("createLayout"),j=k(!1);ie(()=>{j.value=!0}),W(M,{register:(t,l)=>{let{id:e,order:a,position:o,layoutSize:m,elementSize:f,active:S,disableTransitions:w,absolute:J}=l;c.set(e,a),n.set(e,o),r.set(e,m),p.set(e,S),w&&g.set(e,w);const B=ce(X,Y?.vnode).indexOf(t);B>-1?i.value.splice(B,0,e):i.value.push(e);const K=v(()=>b.value.findIndex(L=>L.id===e)),O=v(()=>d.value+h.value.length*2-K.value*2),Q=v(()=>{const L=o.value==="left"||o.value==="right",A=o.value==="right",te=o.value==="bottom",P=f.value??m.value,oe=P===0?"%":"px",N={[o.value]:0,zIndex:O.value,transform:`translate${L?"X":"Y"}(${(S.value?0:-(P===0?100:P))*(A||te?-1:1)}${oe})`,position:J.value||d.value!==U?"absolute":"fixed",...H.value?void 0:{transition:"none"}};if(!j.value)return N;const y=b.value[K.value],V=q.value.get(e);return V&&(y[V.position]+=V.amount),{...N,height:L?`calc(100% - ${y.top}px - ${y.bottom}px)`:f.value?`${f.value}px`:void 0,left:A?void 0:`${y.left}px`,right:A?`${y.right}px`:void 0,top:o.value!=="bottom"?`${y.top}px`:void 0,bottom:o.value!=="top"?`${y.bottom}px`:void 0,width:L?f.value?`${f.value}px`:void 0:`calc(100% - ${y.left}px - ${y.right}px)`}}),ee=v(()=>({zIndex:O.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:ee,zIndex:O}},unregister:t=>{c.delete(t),n.delete(t),r.delete(t),p.delete(t),g.delete(t),i.value=i.value.filter(l=>l!==t)},mainRect:x,mainStyles:F,getLayoutItem:T,items:b,layoutRect:I,rootZIndex:d});const _=C(()=>["v-layout",{"v-layout--full-height":s.fullHeight}]),G=C(()=>({zIndex:u?d.value:void 0,position:u?"relative":void 0,overflow:u?"hidden":void 0}));return{layoutClasses:_,layoutStyles:G,getLayoutItem:T,items:b,layoutRect:I,layoutRef:z}}export{me as a,fe as b,Ie as c,pe as m,ge as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.