70 lines
118 KiB
JavaScript
70 lines
118 KiB
JavaScript
|
|
"use strict";var yo=Object.create;var Ue=Object.defineProperty;var So=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames;var To=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty;var Ro=(e,o,n)=>o in e?Ue(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n;var Oo=(e,o)=>{for(var n in o)Ue(e,n,{get:o[n],enumerable:!0})},qt=(e,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of xo(o))!Eo.call(e,r)&&r!==n&&Ue(e,r,{get:()=>o[r],enumerable:!(a=So(o,r))||a.enumerable});return e};var wo=(e,o,n)=>(n=e!=null?yo(To(e)):{},qt(o||!e||!e.__esModule?Ue(n,"default",{value:e,enumerable:!0}):n,e)),Co=e=>qt(Ue({},"__esModule",{value:!0}),e);var It=(e,o,n)=>(Ro(e,typeof o!="symbol"?o+"":o,n),n);var qr={};Oo(qr,{Combobox:()=>Ko,ComboboxButton:()=>_o,ComboboxInput:()=>Uo,ComboboxLabel:()=>$o,ComboboxOption:()=>zo,ComboboxOptions:()=>Wo,Dialog:()=>nr,DialogBackdrop:()=>rr,DialogDescription:()=>ir,DialogOverlay:()=>or,DialogPanel:()=>lr,DialogTitle:()=>ar,Disclosure:()=>sr,DisclosureButton:()=>dr,DisclosurePanel:()=>fr,FocusTrap:()=>Ie,Listbox:()=>mr,ListboxButton:()=>br,ListboxLabel:()=>vr,ListboxOption:()=>hr,ListboxOptions:()=>gr,Menu:()=>Sr,MenuButton:()=>xr,MenuItem:()=>Er,MenuItems:()=>Tr,Popover:()=>lo,PopoverButton:()=>Or,PopoverGroup:()=>Pr,PopoverOverlay:()=>wr,PopoverPanel:()=>Cr,Portal:()=>Je,PortalGroup:()=>ht,RadioGroup:()=>Mr,RadioGroupDescription:()=>Fr,RadioGroupLabel:()=>Lr,RadioGroupOption:()=>Dr,Switch:()=>Hr,SwitchDescription:()=>jr,SwitchGroup:()=>kr,SwitchLabel:()=>Ar,Tab:()=>Vr,TabGroup:()=>Nr,TabList:()=>Br,TabPanel:()=>$r,TabPanels:()=>Kr,TransitionChild:()=>go,TransitionRoot:()=>ho,provideUseId:()=>un});module.exports=Co(qr);function We(){return We=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},We.apply(this,arguments)}function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ze.apply(this,arguments)}function Te(e,o,n){var a,r=(a=n.initialDeps)!=null?a:[],t;return function(){var l;n.key&&n.debug!=null&&n.debug()&&(l=Date.now());var i=e(),u=i.length!==r.length||i.some(function(y,b){return r[b]!==y});if(!u)return t;r=i;var p;if(n.key&&n.debug!=null&&n.debug()&&(p=Date.now()),t=o.apply(void 0,i),n.key&&n.debug!=null&&n.debug()){var d=Math.round((Date.now()-l)*100)/100,f=Math.round((Date.now()-p)*100)/100,s=f/16,S=function(b,g){for(b=String(b);b.length<g;)b=" "+b;return b};console.info("%c\u23F1 "+S(f,5)+" /"+S(d,5)+" ms",`
|
||
|
|
font-size: .6rem;
|
||
|
|
font-weight: bold;
|
||
|
|
color: hsl(`+Math.max(0,Math.min(120-120*s,120))+"deg 100% 31%);",n==null?void 0:n.key)}return n==null||n.onChange==null||n.onChange(t),t}}function rt(e,o){if(e===void 0)throw new Error("Unexpected undefined"+(o?": "+o:""));return e}var Yt=function(o,n){return Math.abs(o-n)<1};var Po=function(o){return o},Io=function(o){for(var n=Math.max(o.startIndex-o.overscan,0),a=Math.min(o.endIndex+o.overscan,o.count-1),r=[],t=n;t<=a;t++)r.push(t);return r},Qt=function(o,n){var a=o.scrollElement;if(a){var r=function(i){var u=i.width,p=i.height;n({width:Math.round(u),height:Math.round(p)})};r(a.getBoundingClientRect());var t=new ResizeObserver(function(l){var i=l[0];if(i!=null&&i.borderBoxSize){var u=i.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(a.getBoundingClientRect())});return t.observe(a,{box:"border-box"}),function(){t.unobserve(a)}}};var Jt=function(o,n){var a=o.scrollElement;if(a){var r=function(){n(a[o.options.horizontal?"scrollLeft":"scrollTop"])};return r(),a.addEventListener("scroll",r,{passive:!0}),function(){a.removeEventListener("scroll",r)}}};var Mo=function(o,n,a){if(n!=null&&n.borderBoxSize){var r=n.borderBoxSize[0];if(r){var t=Math.round(r[a.options.horizontal?"inlineSize":"blockSize"]);return t}}return Math.round(o.getBoundingClientRect()[a.options.horizontal?"width":"height"])};var Xt=function(o,n,a){var r,t,l=n.adjustments,i=l===void 0?0:l,u=n.behavior,p=o+i;(r=a.scrollElement)==null||r.scrollTo==null||r.scrollTo((t={},t[a.options.horizontal?"left":"top"]=p,t.behavior=u,t))},Zt=function(o){var n=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=function(){var a=null,r=function(){return a||(typeof ResizeObserver!="undefined"?a=new ResizeObserver(function(l){l.forEach(function(i){n._measureElement(i.target,i)})}):null)};return{disconnect:function(){var l;return(l=r())==null?void 0:l.disconnect()},observe:function(l){var i;return(i=r())==null?void 0:i.observe(l,{box:"border-box"})},unobserve:function(l){var i;return(i=r())==null?void 0:i.unobserve(l)}}}(),this.range={startIndex:0,endIndex:0},this.setOptions=function(a){Object.entries(a).forEach(function(r){var t=r[0],l=r[1];typeof l=="undefined"&&delete a[t]}),n.options=ze({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Po,rangeExtractor:Io,onChange:function(){},measureElement:Mo,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},a)},this.notify=function(){n.options.onChange==null||n.options.onChange(n)},this.cleanup=function(){n.unsubs.filter(Boolean).forEach(function(a){return a()}),n.unsubs=[],n.scrollElement=null},this._didMount=function(){return n.measureElementCache.forEach(n.observer.observe),function(){n.observer.disconnect(),n.cleanup()}},this._willUpdate=function(){var a=n.options.getScrollElement();n.scrollElement!==a&&(n.cleanup(),n.scrollElement=a,n._scrollToOffset(n.scrollOffset,{adjustments:void 0,behavior:void 0}),n.unsubs.push(n.options.observeElementRect(n,function(r){var t=n.scrollRect;n.scrollRect=r,(n.options.horizontal?r.width!==t.width:r.height!==t.height)&&n.maybeNotify()})),n.unsubs.push(n.options.observeElementOffset(n,function(r){n.scrollAdjustments=0,n.scrollOffset!==r&&(n.isScrollingTimeoutId!==null&&(clearTimeout(n.isScrollingTimeoutId),n.isScrollingTimeoutId=null),n.isScrolling=!0,n.scrollDirection=n.scrollOffset<r?"forward":"backward",n.scrollOffset=r,n.maybeNotify(),n.isScrollingTimeoutId=setTimeout(function(){n.isScrollingTimeoutId=null,n.isScrolling=!1,n.scrollDirection=null,n.maybeNotify()},n.options.scrollingDelay))})))},this.getSize=function(){return n.scrollRect[n.options.horizontal?"width":"height"]},this.memoOptions=Te(function(){return[n.options.count,n.options.
|
||
|
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(`
|
||
|
|
`)].join(`
|
||
|
|
`));let S=hn((d=f.props)!=null?d:{},l,u),y=(0,je.cloneVNode)(f,S,!0);for(let b in S)b.startsWith("on")&&(y.props||(y.props={}),y.props[b]=S[b]);return y}return Array.isArray(i)&&i.length===1?i[0]:i}return(0,je.h)(t,Object.assign({},l,u),{default:()=>i})}function gn(e){return e.flatMap(o=>o.type===je.Fragment?gn(o.children):[o])}function hn(...e){var a;if(e.length===0)return{};if(e.length===1)return e[0];let o={},n={};for(let r of e)for(let t in r)t.startsWith("on")&&typeof r[t]=="function"?((a=n[t])!=null||(n[t]=[]),n[t].push(r[t])):o[t]=r[t];if(o.disabled||o["aria-disabled"])return Object.assign(o,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(o,{[r](t,...l){let i=n[r];for(let u of i){if(t instanceof Event&&t.defaultPrevented)return;u(t,...l)}}});return o}function Se(e){let o=Object.assign({},e);for(let n in o)o[n]===void 0&&delete o[n];return o}function le(e,o=[]){let n=Object.assign({},e);for(let a of o)a in n&&delete n[a];return n}function jo(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var X=(0,yn.defineComponent)({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:o,attrs:n}){return()=>{var l;let{features:a,...r}=e,t={"aria-hidden":(a&2)===2?!0:(l=r["aria-hidden"])!=null?l:void 0,hidden:(a&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(a&4)===4&&(a&2)!==2&&{display:"none"}}};return D({ourProps:t,theirProps:r,slot:{},attrs:n,slots:o,name:"Hidden"})}}});var st=require("vue"),Sn=Symbol("Context");function xn(){return ne()!==null}function ne(){return(0,st.inject)(Sn,null)}function se(e){(0,st.provide)(Sn,e)}function Tn(e){function o(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",o))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",o),o())}var de=[];Tn(()=>{function e(o){o.target instanceof HTMLElement&&o.target!==document.body&&de[0]!==o.target&&(de.unshift(o.target),de=de.filter(n=>n!=null&&n.isConnected),de.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function No(e){throw new Error("Unexpected object: "+e)}function Re(e,o){let n=o.resolveItems();if(n.length<=0)return null;let a=o.resolveActiveIndex(),r=a!=null?a:-1;switch(e.focus){case 0:{for(let t=0;t<n.length;++t)if(!o.resolveDisabled(n[t],t,n))return t;return a}case 1:{r===-1&&(r=n.length);for(let t=r-1;t>=0;--t)if(!o.resolveDisabled(n[t],t,n))return t;return a}case 2:{for(let t=r+1;t<n.length;++t)if(!o.resolveDisabled(n[t],t,n))return t;return a}case 3:{for(let t=n.length-1;t>=0;--t)if(!o.resolveDisabled(n[t],t,n))return t;return a}case 4:{for(let t=0;t<n.length;++t)if(o.resolveId(n[t],t,n)===e.id)return t;return a}case 5:return null;default:No(e)}}function Oe(e={},o=null,n=[]){for(let[a,r]of Object.entries(e))Rn(n,En(o,a),r);return n}function En(e,o){return e?e+"["+o+"]":o}function Rn(e,o,n){if(Array.isArray(n))for(let[a,r]of n.entries())Rn(e,En(o,a.toString()),r);else n instanceof Date?e.push([o,n.toISOString()]):typeof n=="boolean"?e.push([o,n?"1":"0"]):typeof n=="string"?e.push([o,n]):typeof n=="number"?e.push([o,`${n}`]):n==null?e.push([o,""]):Oe(n,o,e)}function dt(e){var n,a;let o=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(o){for(let r of o.elements)if(r!==e&&(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image")){r.click();return}(a=o.requestSubmit)==null||a.call(o)}}function Bo(e,o){return e===o}var wn=Symbol("ComboboxContext");function Pe(e){let o=(0,E.inject)(wn,null);if(o===null){let n=new Error(`<${e} /> is missing a parent <Comb
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
@tanstack/vue-virtual/build/lib/_virtual/_rollupPluginBabelHelpers.mjs:
|
||
|
|
(**
|
||
|
|
* vue-virtual
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*)
|
||
|
|
|
||
|
|
@tanstack/virtual-core/build/lib/_virtual/_rollupPluginBabelHelpers.mjs:
|
||
|
|
(**
|
||
|
|
* virtual-core
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*)
|
||
|
|
|
||
|
|
@tanstack/virtual-core/build/lib/utils.mjs:
|
||
|
|
(**
|
||
|
|
* virtual-core
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*)
|
||
|
|
|
||
|
|
@tanstack/virtual-core/build/lib/index.mjs:
|
||
|
|
(**
|
||
|
|
* virtual-core
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*)
|
||
|
|
|
||
|
|
@tanstack/vue-virtual/build/lib/index.mjs:
|
||
|
|
(**
|
||
|
|
* vue-virtual
|
||
|
|
*
|
||
|
|
* Copyright (c) TanStack
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*)
|
||
|
|
*/
|