PageSourceSearch

https://python-fiddle.com/_nuxt/CKswjV-I.js

js python-fiddle.com collected 2026-10-01 15:31:48 UTC 7,058 bytes, 4 lines download raw bytes

1import{aV as $,h as x,L as F,$ as P,a0 as T,F as I}from"#entry";var g;let k=Symbol("headlessui.useid"),D=0;const re=(g=$)!=null?g:function(){return x(k,()=>`${++D}`)()};function L(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function w(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,w),r}var M=Object.defineProperty,U=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>(U(e,typeof t!="symbol"?t+"":t,n),n);class _{constructor(){E(this,"current",this.detect()),E(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let R=new _;function O(e){if(R.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=L(e);if(t)return t.ownerDocument}return document}let y=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var H=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(H||{}),C=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(C||{}),K=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(K||{});function N(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(y)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var V=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(V||{});function W(e,t=0){var n;return e===((n=O(e))==null?void 0:n.body)?!1:w(t,{0(){return e.matches(y)},1(){let r=e;for(;r!==null;){if(r.matches(y))return!0;r=r.parentElement}return!1}})}function oe(e){let t=O(e);F(()=>{t&&!W(t.activeElement,0)&&B(e)})}var G=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(G||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function B(e){e?.focus({preventScroll:!0})}let X=["textarea","input"].join(",");function q(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,X))!=null?n:!1}function Y(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),a=t(r);if(o===null||a===null)return 0;let l=o.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ue(e,t){return z(N(),t,{relativeTo:e})}function z(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var a;let l=(a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?a:document,u=Array.isArray(e)?n?Y(e):e:N(e);o.length>0&&u.length>1&&(u=u.filter(i=>!o.includes(i))),r=r??l.activeElement;let m=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,u.indexOf(r))-1;if(t&4)return Math.max(0,u.indexOf(r))+1;if(t&8)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=t&32?{preventScroll:!0}:{},f=0,p=u.length,d;do{if(f>=p||f+p<=0)return 0;let i=c+f;if(t&16)i=(i+p)%p;else{if(i<0)return 3;if(i>=p)return 1}d=u[i],d?.focus(h),f+=m}while(d!==l.activeElement);return t&6&&q(d)&&d.select(),2}var J=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(J||{}),Q=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Q||{});function le({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}
1){var a;let l=j(r,n),u=Object.assign(o,{props:l});if(e||t&2&&l.static)return b(u);if(t&1){let m=(a=l.unmount)==null||a?0:1;return w(m,{0(){return null},1(){return b({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return b(u)}function b({props:e,attrs:t,slots:n,slot:r,name:o}){var a,l;let{as:u,...m}=Z(e,["unmount","static"]),c=(a=n.default)==null?void 0:a.call(n,r),h={};if(r){let f=!1,p=[];for(let[d,i]of Object.entries(r))typeof i=="boolean"&&(f=!0),i===!0&&p.push(d);f&&(h["data-headlessui-state"]=p.join(" "))}if(u==="template"){if(c=S(c??[]),Object.keys(m).length>0||Object.keys(t).length>0){let[f,...p]=c??[];if(!ee(f)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(m).concat(Object.keys(t)).map(s=>s.trim()).filter((s,v,A)=>A.indexOf(s)===v).sort((s,v)=>s.localeCompare(v)).map(s=>`  - ${s}`).join(`
2`),"","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(s=>`  - ${s}`).join(`
3`)].join(`
4`));let d=j((l=f.props)!=null?l:{},m,h),i=P(f,d,!0);for(let s in d)s.startsWith("on")&&(i.props||(i.props={}),i.props[s]=d[s]);return i}return Array.isArray(c)&&c.length===1?c[0]:c}return T(u,Object.assign({},m,h),{default:()=>c})}function S(e){return e.flatMap(t=>t.type===I?S(t.children):[t])}function j(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...a){let l=n[r];for(let u of l){if(o instanceof Event&&o.defaultPrevented)return;u(o,...a)}}});return t}function ie(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Z(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ee(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var te=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(te||{});export{le as A,ie as E,J as N,Y as O,z as P,B as S,C as T,oe as _,te as a,O as b,H as c,Q as d,R as e,Z as f,N as g,V as h,re as i,L as o,w as u,ue as v,W as w};

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.