diff --git a/.prettierignore b/.prettierignore index be712d47808..def6484d2f3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,38 +2,36 @@ **/*.log **/.DS_Store *. -.history -.yarn -.yarnrc.yml -.pnpm-store pnpm-lock.yaml -.mf +.* +!.eslintrc.cjs +!.prettierignore +!.prettierrc.json + +# Build output dist dist-dev lib -etc -external -node_modules -qwik-app target -output -rollup.config.js -build -!packages/qwik/src/build -.cache -.rollup.cache +starters/apps/**/dist +node_modules + tsconfig.tsbuildinfo -packages/docs/api/**/* + +# REPL files packages/docs/public/repl/repl-sw.js* -packages/docs/src/routes/**/*.mdx -**/server/**/*.js -starters/**/*.js -# explicit exclusion for tailwind prettier.config.js -starters/features/tailwind/* -packages/docs/server + +# build output +packages/*/lib +packages/*/dist +packages/*/server + +# API output files packages/docs/src/routes/api -packages/docs/**/*.md + +# Prettier doesn't handle mdx files well packages/docs/**/*.mdx + packages/insights/drizzle packages/insights/.netlify packages/insights/scripts @@ -41,6 +39,8 @@ packages/insights/**/*.gen.d.ts packages/qwik-labs/lib-types packages/qwik-labs/vite -# TODO: Figure out why this doesn't pass in CI -packages/qwik/src/core/props/props.ts -packages/docs/src/routes/docs/overview/index.mdx +# insights cache files +**/q-insights.json + +# Exclude builder js files from formatting - delete after migration +packages/docs/public/builder diff --git a/packages/docs/public/builder/high.js b/packages/docs/public/builder/high.js new file mode 100644 index 00000000000..1f6a81dbeab --- /dev/null +++ b/packages/docs/public/builder/high.js @@ -0,0 +1,71 @@ +import{useLexicalScope}from"./qwik-0.100.0.js";export const Component856B004403F841C789CF61F2A180C93F_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component856B004403F841C789CF61F2A180C93F_onClick_1=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component856B004403F841C789CF61F2A180C93F_onClick_2=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component856B004403F841C789CF61F2A180C93F_onClick_3=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const __proxyMerge__=function __proxyMerge__(state,local){return new Proxy(state,{get:function(obj,prop){if(local && prop in local){return local[prop];}else{return state[prop];}},set:function(obj,prop,value){obj[prop] = value;return true;},});};export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_1=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_2=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft -= interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_3=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { let interactiveScroller = document.querySelector(`#row${state.rowNumber}`); +interactiveScroller.scrollLeft += interactiveScroller.children[1].clientWidth; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const Component3C0255D6D2D94E3390539DEE6AF8C7C0_onClick_0=(event)=>{const [s,l]=useLexicalScope();const state=__proxyMerge__(s,l);; + try { return state.slide = state.$index; + } + catch (err) { + console.warn('Builder code error', err); + } + };export const ComponentB417246B77124735ADE3A2694CB86BF9_onClick_0=(event)=>{ + try { navigator.clipboard.writeText(`npm create qwik@latest`); +event.target.innerText = "Copied to Clipboard"; +setTimeout(() => (event.target.innerText = "npm create qwik@latest"), 2000); + } + catch (err) { + console.warn('Builder code error', err); + } + }; \ No newline at end of file diff --git a/packages/docs/public/builder/med.js b/packages/docs/public/builder/med.js new file mode 100644 index 00000000000..ff02495cc6c --- /dev/null +++ b/packages/docs/public/builder/med.js @@ -0,0 +1,186 @@ +import{componentQrl,h,qrl,useStore,useStylesQrl}from"./qwik-0.100.0.js";export const Component856B004403F841C789CF61F2A180C93FUsrStyles=".builder-heading-1{font-size:2em;margin:.67em 0}.builder-heading-2{font-size:1.5em;margin:.75em 0}.builder-heading-3{font-size:1.17em;margin:.83em 0}.builder-heading-4,.builder-paragraph{margin:1.12em 0}.builder-heading-5{font-size:.83em;margin:1.5em 0}.builder-heading-6{font-size:.75em;margin:1.67em 0}.builder-heading-1,.builder-heading-2,.builder-heading-3,.builder-heading-4,.builder-heading-5,.builder-heading-6{font-weight:bolder}\r\n\r\n.interactive-scroller::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n\r\n .interactive-scroller {\r\n -ms-overflow-style: none; \r\n scrollbar-width: none; \r\n }\r\n\r\n.information:hover{\r\n opacity: 1;\r\n}";export const Component856B004403F841C789CF61F2A180C93FOnMount=(p)=>{const s=useStore(()=>{const state=Object.assign({},structuredClone(typeof __STATE__==="object"&&__STATE__[p.serverStateId]),p);if(!state.hasOwnProperty("featuredContent"))state.featuredContent=[{"contentName":"Everlane","contentType":"Podcast","image":"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2F329d8065fc13497e8588c3f03df1f49a","link":"https://www.everlane.com/"},{"contentName":"Everlane","contentType":"Podcast","image":"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2F329d8065fc13497e8588c3f03df1f49a","link":"https://www.everlane.com/"}];if(!state.hasOwnProperty("alignLeft"))state.alignLeft=false;if(!state.hasOwnProperty("rowNumber"))state.rowNumber=2;return state},{deep:true});const l={};const state=__proxyMerge__(s,l);useStylesQrl(qrl("./med.js","Component856B004403F841C789CF61F2A180C93FUsrStyles",[]));return (h("div",{"builder-id":"builder-45671151128e43d78d14606f5a7431f8",class:"catfy1 builder-block builder-block"},h("div",{"builder-id":"builder-b13168e2732e4349aed054a738692035",class:"c3v64af"},h("div",{"builder-id":"builder-0f809d92d25c4b3788cdf422e90a132b",class:"cv1pw7l","onClick$":qrl("./high.js","Component856B004403F841C789CF61F2A180C93F_onClick_2",[s,l])},h(Image,{"builder-id":"builder-a3f50e2b423e42e985c5be47952135f1",image:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe4d535b208c844419f26d057e5490ab5",backgroundSize:"contain",backgroundPosition:"center",class:"clcdmxz",lazy:false,fitContent:true,aspectRatio:1.667,lockAspectRatio:false,height:10,width:6,noWebp:true,srcsetSizes:10})),h("div",{"builder-id":"builder-6aedcf97961b4615b7bc68b29598f195",class:"cv1pw7l","onClick$":qrl("./high.js","Component856B004403F841C789CF61F2A180C93F_onClick_3",[s,l])},h(Image,{"builder-id":"builder-b2523b0552dc47edbdea69b80cfe0014",image:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fa4604a3d47ab49cf9e4fc3772c0b62cb",backgroundSize:"contain",backgroundPosition:"center",class:"cm0gcj3",lazy:false,fitContent:true,aspectRatio:1.667,lockAspectRatio:false,height:10,width:6,noWebp:true,srcsetSizes:10}))),h("div",{"builder-id":"builder-d08c40a189e84d06bcadb5d1d1edc591",class:"chye5ds","onClick$":qrl("./high.js","Component856B004403F841C789CF61F2A180C93F_onClick_2",[s,l])}),h("div",{"builder-id":"builder-509a829a989f4b9ba8bfeb9dd30b636a",class:"cglm7wr","onClick$":qrl("./high.js","Component856B004403F841C789CF61F2A180C93F_onClick_3",[s,l])}),h("div",{class:"cbmbzxo interactive-scroller","builder-id":"builder-e6e1c8dee32744168f120bfd819ca70b",id:`row${state.rowNumber}`,style:{ direction: (() => { + try { return state.alignLeft ? "rtl" : "ltr"; } + catch (err) { + console.warn('Builder code error', err); + } + })(), }},h("div",{"builder-id":"builder-69bfb475c69f41c8b28806fa18916638",class:"cxiz55v"}),(state.featuredContent||[]).map(((function(item,$index){const l={...this,featuredContentItem:item==null?{}:item,item:item,$index:$index};const state = __proxyMerge__(s,l);return(h("a",{class:"c9sroqn card","builder-id":"builder-cd2dc332bf7c48b0a0fe6b5d8da7e2b7",href:state.featuredContentItem.link},h("div",{"builder-id":"builder-434b5a960093412c91e3ba1524b28f14",class:"ci29ryq"},h(Image,{"builder-id":"builder-f418cf4ab5634ff68b1e1b04138875bd",backgroundSize:"cover",backgroundPosition:"top",sizes:"(max-width: 638px) 46vw, (max-width: 998px) 42vw, 30vw",class:"cajg5b6",image:state.featuredContentItem.image,lazy:false,fitContent:true,aspectRatio:0.65,lockAspectRatio:true},h("div",{"builder-id":"builder-bc0f7c1bdf3340c287358088b0c1cd21",class:"c43zgy5"}))),h("div",{"builder-id":"builder-6524c56f898147e8a0c03e8c013be2cc",class:"cpdwgtw"},h(Image,{"builder-id":"builder-b6abdb76b555490d81464c154a2d428a",image:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=30",backgroundSize:"cover",backgroundPosition:"center",srcset:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=100 100w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=200 200w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=400 400w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=800 800w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=1200 1200w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=1600 1600w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=2000 2000w, https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe2c98593b27343b0bf7b1e436769b80d?width=30 30w",sizes:"(max-width: 638px) 5vw, (max-width: 998px) 4vw, 3vw",class:"crhhdt",lazy:false,fitContent:true,aspectRatio:1,lockAspectRatio:false,noWebp:true,height:20,width:20,srcsetSizes:30}),h("div",{"block-id":"builder-fbd2b04538384fbd830f83e198c0cde8",class:"cif4mvp"},h("div",{key:"builder-b6abdb76b555490d81464c154a2d428a",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index=state.featuredContentItem.contentType;return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()}))),h("div",{"block-id":"builder-73e7eef09de1471c89897b26d4edf1e1",class:"clabz1x"},h("div",{key:"builder-6524c56f898147e8a0c03e8c013be2cc",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index=state.featuredContentItem.contentName;return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()}))));}).bind(l))),h("div",{"builder-id":"builder-a1c14943c90244c7b2a32cad19e86a1c",class:"c38x0cp"}))));;};export const Component856B004403F841C789CF61F2A180C93F=componentQrl(qrl("./med.js","Component856B004403F841C789CF61F2A180C93FOnMount",[]));export const Image=function Image(props){var _a;var jsx = props.children || [];var image = props.image;if(image){var isBuilderIoImage = !!(image || '').match(/\.builder\.io/)&& !props.noWebp;var isPixel =(_a = props.builderBlock)=== null || _a === void 0 ? void 0:_a.id.startsWith('builder-pixel-');var imgProps ={src:props.image,style:"object-fit:".concat(props.backgroundSize || 'cover',";object-position:").concat(props.backgroundPosition || 'center',";")+(props.aspectRatio ? 'position:absolute;height:100%;width:100%;top:0;left:0':''),sizes:props.sizes,alt:props.altText,role:!props.altText ? 'presentation':undefined,loading:isPixel ? 'eager':'lazy',srcset:undefined,};var qwikBugWorkaround = function(imgProps){return Object.keys(imgProps).forEach(function(k){return imgProps[k] === undefined && delete imgProps[k];});};qwikBugWorkaround(imgProps);if(isBuilderIoImage){var webpImage_1 = updateQueryParam(image,'format','webp');var srcset = ['100','200','400','800','1200','1600','2000'] .concat(props.srcsetSizes ? String(props.srcsetSizes).split(' '):[]).map(function(size){return updateQueryParam(webpImage_1,'width',size)+ ' ' + size + 'w';}).concat(tryAppendWidth(image)).join(',');imgProps.srcset = srcset;jsx = jsx = [ h('picture',{},[ h('source',{type:'image/webp',srcset:srcset}),h('img',imgProps,jsx),]),];}else{jsx = [h('img',imgProps,jsx)];}if(props.aspectRatio && !(props.fitContent && props.children && props.children.length)){var sizingDiv = h('div',{class:'builder-image-sizer',style:"width:100%;padding-top:".concat((props.aspectRatio || 1)* 100,"%;pointer-events:none;font-size:0"),});jsx.push(sizingDiv);}}var children = props.children ? [jsx].concat(props.children):[jsx];return h(props.href ? 'a':'div',__passThroughProps__({href:props.href,class:props.class},props),children);function updateQueryParam(uri,key,value){if(uri === void 0){uri = '';}var re = new RegExp('([?&])' + key + '=.*?(&|$)','i');var separator = uri.indexOf('?')!==-1 ? '&':'?';if(uri.match(re)){return uri.replace(re,'$1' + key + '=' + encodeURIComponent(value)+ '$2');}return uri + separator + key + '=' + encodeURIComponent(value);}function tryAppendWidth(url){var match = url.match(/[?&]width=(\d+)/);var width = match && match[1];if(width){return [url + ' ' + width + 'w'];}return [];}};export const __passThroughProps__=function __passThroughProps__(dstProps,srcProps){for(var key in srcProps){if(Object.prototype.hasOwnProperty.call(srcProps,key)&&((key.startsWith('on')&& key.endsWith('$'))|| key == 'style')){dstProps[key] = srcProps[key];}}return dstProps;};export const __proxyMerge__=function __proxyMerge__(state,local){return new Proxy(state,{get:function(obj,prop){if(local && prop in local){return local[prop];}else{return state[prop];}},set:function(obj,prop,value){obj[prop] = value;return true;},});};export const Component2CB3CABC3EE84F0E987EB4525859E0A8UsrStyles=".builder-heading-1{font-size:2em;margin:.67em 0}.builder-heading-2{font-size:1.5em;margin:.75em 0}.builder-heading-3{font-size:1.17em;margin:.83em 0}.builder-heading-4,.builder-paragraph{margin:1.12em 0}.builder-heading-5{font-size:.83em;margin:1.5em 0}.builder-heading-6{font-size:.75em;margin:1.67em 0}.builder-heading-1,.builder-heading-2,.builder-heading-3,.builder-heading-4,.builder-heading-5,.builder-heading-6{font-weight:bolder}\r\n\r\n.interactive-scroller::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n\r\n .interactive-scroller {\r\n -ms-overflow-style: none; \r\n scrollbar-width: none; \r\n }\r\n\r\n.information:hover{\r\n opacity: 1;\r\n}";export const Component2CB3CABC3EE84F0E987EB4525859E0A8OnMount=(p)=>{const s=useStore(()=>{const state=Object.assign({},structuredClone(typeof __STATE__==="object"&&__STATE__[p.serverStateId]),p);if(!state.hasOwnProperty("featuredSites"))state.featuredSites=[{"image":"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F4535a6d82a904eb28d6f4f6213624dea","link":"https://www.everlane.com/","performanceScore":85,"siteName":"Everlane","strokeSize":102},{"image":"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F4535a6d82a904eb28d6f4f6213624dea","link":"https://www.everlane.com/","performanceScore":85,"siteName":"Everlane","strokeSize":102}];if(!state.hasOwnProperty("alignLeft"))state.alignLeft=false;if(!state.hasOwnProperty("rowNumber"))state.rowNumber=1;return state},{deep:true});const l={};const state=__proxyMerge__(s,l);useStylesQrl(qrl("./med.js","Component2CB3CABC3EE84F0E987EB4525859E0A8UsrStyles",[]));return (h("div",{"builder-id":"builder-8e224839632741c5919cfaaf15cdc079",class:"catfy1 builder-block builder-block"},h("div",{"builder-id":"builder-c4db49fe9a74445ab23b6a211885b11e",class:"cppa4w7"},h("div",{"builder-id":"builder-38fcde6fe1114b8e9618d60d40ae2490",class:"cv1pw7l","onClick$":qrl("./high.js","Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_2",[s,l])},h(Image,{"builder-id":"builder-f59da0468cf945998527ab893b3e1de6",image:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fe4d535b208c844419f26d057e5490ab5",backgroundSize:"contain",backgroundPosition:"center",class:"clcdmxz",lazy:false,fitContent:true,aspectRatio:1.667,lockAspectRatio:false,height:10,width:6,noWebp:true,srcsetSizes:10})),h("div",{"builder-id":"builder-6b145e3999c341d3962098b376f51727",class:"cv1pw7l","onClick$":qrl("./high.js","Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_3",[s,l])},h(Image,{"builder-id":"builder-2996aad19c034a9dae5446beb7d1f79f",image:"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2Fa4604a3d47ab49cf9e4fc3772c0b62cb",backgroundSize:"contain",backgroundPosition:"center",class:"cm0gcj3",lazy:false,fitContent:true,aspectRatio:1.667,lockAspectRatio:false,height:10,width:6,noWebp:true,srcsetSizes:10}))),h("div",{"builder-id":"builder-39a6a3f528fd4c64bdca447182899c81",class:"c8kb54b","onClick$":qrl("./high.js","Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_2",[s,l])}),h("div",{"builder-id":"builder-15d7f28001fd4178b7bb2f7a1531bf4c",class:"c3bwmck","onClick$":qrl("./high.js","Component2CB3CABC3EE84F0E987EB4525859E0A8_onClick_3",[s,l])}),h("div",{class:"clwho8x interactive-scroller","builder-id":"builder-7ad645f14d364801b23b11b72470de6d",id:`row${state.rowNumber}`,style:{ direction: (() => { + try { return state.alignLeft ? "rtl" : "ltr"; } + catch (err) { + console.warn('Builder code error', err); + } + })(), }},h("div",{"builder-id":"builder-a2335740a3434f5d89136198c2ab6eae",class:"c3y3i5e"}),(state.featuredSites||[]).map(((function(item,$index){const l={...this,featuredSitesItem:item==null?{}:item,item:item,$index:$index};const state = __proxyMerge__(s,l);return(h("a",{class:"cy3wjif card","builder-id":"builder-3390809a33c64d3890bac879bdf3baf4",href:state.featuredSitesItem?.link},h("div",{"builder-id":"builder-39a191d8723c4a94bb76f7aef6951ed5",class:"cxw2f6r"},h("div",{"builder-id":"builder-55465aface484326b81ac8985f83dc49",class:"clzvnrc",scriptsClientOnly:true,style:{ strokeDasharray: (() => { + try { return `${state.featuredSitesItem.strokeSize}, 1000`; } + catch (err) { + console.warn('Builder code error', err); + } + })(), }},h("div",{key:"builder-55465aface484326b81ac8985f83dc49",dangerouslySetInnerHTML:"\n \n \n \n \n \n \n\n \n\n"})),h("div",{"block-id":"builder-5386a2819ec045b3b16859b743d4e0e2",class:"cy8hub5"},h("div",{key:"builder-55465aface484326b81ac8985f83dc49",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index="".concat(state.featuredSitesItem.performanceScore,"%");return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()}))),h(Image,{"builder-id":"builder-b8d47faa4d7b4cdea07ef08d0e01bca7",backgroundSize:"cover",backgroundPosition:"top",sizes:"(max-width: 638px) 48vw, (max-width: 998px) 66vw, 47vw",class:"c6307wf",image:state.featuredSitesItem.image,lazy:false,fitContent:true,aspectRatio:0.65,lockAspectRatio:true}),h("div",{"block-id":"builder-74208b0179934788841c25658732c9be",class:"cxyrqhw"},h("div",{key:"builder-b8d47faa4d7b4cdea07ef08d0e01bca7",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index=state.featuredSitesItem.siteName;return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()}))));}).bind(l))),h("div",{"builder-id":"builder-762c787964de408b9d7dccc3d53f3c0c",class:"c38x0cp"}))));;};export const Component2CB3CABC3EE84F0E987EB4525859E0A8=componentQrl(qrl("./med.js","Component2CB3CABC3EE84F0E987EB4525859E0A8OnMount",[]));export const Component3C0255D6D2D94E3390539DEE6AF8C7C0UsrStyles="/*\n* Custom CSS styles\n*\n* Global by default, but use `&` to scope to just this content, e.g.\n*\n* & .foo {\n* color: 'red'\n* }\n*/\n.feature-name >.builder-text{\n transition: color .3s cubic-bezier(.37,.01,0,.98);\n}\n\n.feature-name >.builder-text:hover{\n color: rgba(230, 230, 230, 1)\n}";export const Component3C0255D6D2D94E3390539DEE6AF8C7C0OnMount=(p)=>{const s=useStore(()=>{const state=Object.assign({},structuredClone(typeof __STATE__==="object"&&__STATE__[p.serverStateId]),p);if(!state.hasOwnProperty("features"))state.features=[{"description":"Qwik does not do hydration because it is resumable. Hydration can take several seconds, depending on the complexity of your application and mobile device speed.","featureLink":"https://qwik.builder.io/docs/","image":"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2F0e27d4f4dba042a998f88b4ac4a49189","name":"Zero Loading"},{"description":"Qwik does not do hydration because it is resumable. Hydration can take several seconds, depending on the complexity of your application and mobile device speed.","featureLink":"https://qwik.builder.io/docs/","image":"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2F0e27d4f4dba042a998f88b4ac4a49189","name":"Zero Loading"},{"description":"Qwik does not do hydration because it is resumable. Hydration can take several seconds, depending on the complexity of your application and mobile device speed.","featureLink":"https://qwik.builder.io/docs/","image":"https://cdn.builder.io/api/v1/image/assets%2Ffe30f73e01ef40558cd69a9493eba2a2%2F0e27d4f4dba042a998f88b4ac4a49189","name":"Zero Loading"}];if(!state.hasOwnProperty("slide"))state.slide=0;var __awaiter = function (e, n, t, r) { + return new (t || (t = Promise))(function (o, i) { + function a(e) { + try { + l(r.next(e)); + } catch (e) { + i(e); + } + } + + function u(e) { + try { + l(r.throw(e)); + } catch (e) { + i(e); + } + } + + function l(e) { + var n; + e.done ? o(e.value) : (n = e.value, n instanceof t ? n : new t(function (e) { + e(n); + })).then(a, u); + } + + l((r = r.apply(e, n || [])).next()); + }); +}, + __generator = function (e, n) { + var t, + r, + o, + i, + a = { + label: 0, + sent: function () { + if (1 & o[0]) throw o[1]; + return o[1]; + }, + trys: [], + ops: [] + }; + return i = { + next: u(0), + throw: u(1), + return: u(2) + }, "function" == typeof Symbol && (i[Symbol.iterator] = function () { + return this; + }), i; + + function u(i) { + return function (u) { + return function (i) { + if (t) throw new TypeError("Generator is already executing."); + + for (; a;) try { + if (t = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o; + + switch (r = 0, o && (i = [2 & i[0], o.value]), i[0]) { + case 0: + case 1: + o = i; + break; + + case 4: + return a.label++, { + value: i[1], + done: !1 + }; + + case 5: + a.label++, r = i[1], i = [0]; + continue; + + case 7: + i = a.ops.pop(), a.trys.pop(); + continue; + + default: + if (!(o = (o = a.trys).length > 0 && o[o.length - 1]) && (6 === i[0] || 2 === i[0])) { + a = 0; + continue; + } + + if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) { + a.label = i[1]; + break; + } + + if (6 === i[0] && a.label < o[1]) { + a.label = o[1], o = i; + break; + } + + if (o && a.label < o[2]) { + a.label = o[2], a.ops.push(i); + break; + } + + o[2] && a.ops.pop(), a.trys.pop(); + continue; + } + + i = n.call(e, a); + } catch (e) { + i = [6, e], r = 0; + } finally { + t = o = 0; + } + + if (5 & i[0]) throw i[1]; + return { + value: i[0] ? i[1] : void 0, + done: !0 + }; + }([i, u]); + }; + } +}; + +function main() { + return __awaiter(this, void 0, void 0, function () { + return __generator(this, function (e) { + return Builder.isServer, Builder.isBrowser, [2]; + }); + }); +} + +var _virtual_index = main(); + +_virtual_index;;return state},{deep:true});const l={};const state=__proxyMerge__(s,l);useStylesQrl(qrl("./med.js","Component3C0255D6D2D94E3390539DEE6AF8C7C0UsrStyles",[]));return (h("div",{"builder-id":"builder-02050f46e326400ebb9a4b00e2f2eba6",class:"cxdh6gf builder-block builder-block"},h("div",{class:"cgit9t0 builder-columns"},h("div",{class:"civv4i9 builder-column"},h("div",{"builder-id":"builder-ac19fef77ab34a509f18eeef6a955a36",class:"cjjpbna"},(state.features||[]).map(((function(item,$index){const l={...this,featuresItem:item==null?{}:item,item:item,$index:$index};const state = __proxyMerge__(s,l);return(h("div",{"block-id":"builder-fe2cecd761254557b53b153193064f55",class:"cxmqbja feature-name","onClick$":qrl("./high.js","Component3C0255D6D2D94E3390539DEE6AF8C7C0_onClick_0",[s,l]),style:{ color: (() => { + try { return state.slide == state.$index ? 'rgba(24, 182, 246, 1)' : 'rgba(230, 230, 230, 0.16)'; } + catch (err) { + console.warn('Builder code error', err); + } + })(), borderColor: (() => { + try { return state.slide == state.$index ? 'rgba(24, 182, 246, 1)' : 'rgba(230, 230, 230, 0.16)'; } + catch (err) { + console.warn('Builder code error', err); + } + })(), }},h("div",{key:"default",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index=state.featuresItem.name;return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()})));}).bind(l))))),h("div",{class:"cbe2pk1 builder-column"},(state.features||[]).map(((function(item,$index){const l={...this,featuresItem:item==null?{}:item,item:item,$index:$index};const state = __proxyMerge__(s,l);return(state.$index == state.slide?h("div",{"builder-id":"builder-44c171f2c3764cada15b54d18a47c501",class:"cq489v6"},h(Image,{"builder-id":"builder-c0502681a93a4d7fb4b5461e4d7393c9",backgroundSize:"contain",backgroundPosition:"left",class:"c826kto",image:state.featuresItem.image,lazy:false,fitContent:true,aspectRatio:0.55,lockAspectRatio:false,height:1500,width:1436,srcsetSizes:500}),h("div",{"builder-id":"builder-61da2fffb36949d58595300bf5d2f8bc",class:"c89a57i"},h("div",{"builder-id":"builder-8fb3503ec1f94d04b75bc31489227f03",class:"cqwe493"},h("div",{"block-id":"builder-44477e90706141afb8d57da3a6cd8b95",class:"ccj5ok3"},h("div",{key:"builder-8fb3503ec1f94d04b75bc31489227f03",class:"builder-text",dangerouslySetInnerHTML:(() => { + try { var _virtual_index=state.featuresItem.description;return _virtual_index } + catch (err) { + console.warn('Builder code error', err); + } + })()})),h(CoreButton,{"builder-id":"builder-8717ff5be6f842a5800435f50ae94933",text:"Learn More",class:"cimr38a",link:state.featuresItem.featureLink,openLinkInNewTab:false})))):null);}).bind(l)))))));;};export const Component3C0255D6D2D94E3390539DEE6AF8C7C0=componentQrl(qrl("./med.js","Component3C0255D6D2D94E3390539DEE6AF8C7C0OnMount",[]));export const CoreButton=function CoreButton(props){var hasLink = !!props.link;var hProps ={dangerouslySetInnerHTML:props.text || '',href:props.link,target:props.openInNewTab ? '_blank':'_self',class:props.class,};return h(hasLink ? 'a':props.tagName$ || 'span',__passThroughProps__(hProps,props));};export const ComponentB417246B77124735ADE3A2694CB86BF9=componentQrl(qrl("./low.js","ComponentB417246B77124735ADE3A2694CB86BF9OnMount",[]));export const ComponentLAZY_97A3DDC814674F85B6EF0D82DC2B6EB1=componentQrl(qrl("./low.js","ComponentLAZY_97A3DDC814674F85B6EF0D82DC2B6EB1OnMount",[]));export const Component97A3DDC814674F85B6EF0D82DC2B6EB1=componentQrl(qrl("./low.js","Component97A3DDC814674F85B6EF0D82DC2B6EB1OnMount",[])); \ No newline at end of file diff --git a/packages/docs/public/builder/qwik-0.100.0.js b/packages/docs/public/builder/qwik-0.100.0.js new file mode 100644 index 00000000000..36c7a586e80 --- /dev/null +++ b/packages/docs/public/builder/qwik-0.100.0.js @@ -0,0 +1,8 @@ +/** + * @license + * @builder.io/qwik 0.100.0 + * Copyright Builder.io, Inc. All Rights Reserved. + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE + */ +const e=e=>function(t,...n){return e.call(null,Hi(t),...n)},t=!1,n=e=>{t&&Object.seal(e)},o=e=>e&&"number"==typeof e.nodeType,r=e=>e&&9===e.nodeType,s=e=>1===e.nodeType,i=e=>1===e.nodeType||111===e.nodeType,c=e=>{const t=e.nodeType;return 1===t||111===t||3===t},l=e=>111===e.nodeType,u=e=>3===e.nodeType,a=e=>8===e.nodeType;function f(e){if(t&&!i(e))throw console.error("Not a Qwik Element, got",e),new Error("Not a Qwik Element")}function d(e){if(t&&!s(e))throw console.error("Not a Element, got",e),new Error("Not an Element")}const h=t?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",p=(e,...t)=>{const n=e instanceof Error?e:m(e),o=n.stack||n.message;return console.error("%cQWIK ERROR",h,o,...g(t)),n},m=e=>new Error(e),$=(e,...t)=>p(e,...t),b=/*@__PURE__*/new Set,v=(e,...n)=>{if(t){const t="warn"+String(e);b.has(t)||(b.add(t),w(e,...n))}},w=(e,...n)=>{t&&console.warn("%cQWIK WARN",h,e,...g(n))},y=(e,...n)=>{t&&console.debug("%cQWIK",h,e,...g(n))},g=e=>t?e.map((e=>o(e)&&s(e)?S(e):e)):e,S=e=>{const t=e._qc_,n=/*#__PURE__*/(()=>"undefined"!=typeof process&&!!process.versions&&!!process.versions.node)();return{tagName:e.tagName,renderQRL:t?.t?.getSymbol(),element:n?void 0:e,ctx:n?void 0:t}},x=(e,...t)=>{const n=k(e);return $(n,...t)},k=e=>t?`Code(${e}): ${["Error while serializing class attribute","Can not serialize a HTML Node that is not an Element","Runtime but no instance found on element.","Only primitive and object literals can be serialized","Crash while rendering","You can render over a existing q:container. Skipping render().","Set property","Only function's and 'string's are supported.","Only objects can be wrapped in 'QObject'","Only objects literals can be wrapped in 'QObject'","QRL is not a function","Dynamic import not found","Unknown type argument","Actual value for useContext() can not be found, make sure some ancestor component has set a value using useContextProvider()","Invoking 'use*()' method outside of invocation context.","Cant access renderCtx for existing context","Cant access document for existing context","props are immutable","
component can only be used at the root of a Qwik component$()","Props are immutable by default.","Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nFor more information see: https://qwik.builder.io/docs/components/tasks/#use-method-rules","Container is already paused. Skipping",'Components using useServerMount() can only be mounted in the server, if you need your component to be mounted in the client, use "useMount$()" instead',"When rendering directly on top of Document, the root node must be a ","A node must have 2 children. The first one and the second one a ","Invalid JSXNode type. It must be either a function or a string. Found:","Tracking value changes can only be done to useStore() objects and component props","Missing Object ID for captured object","The provided Context reference is not a valid context created by createContextId()"," is the root container, it can not be rendered inside a component","QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.","QRLs can not be dynamically resolved, because it does not have a chunk path","The JSX ref attribute must be a Signal"][e]??""}`:`Code(${e})`,q=e=>{const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},j=e=>e&&"object"==typeof e,C=e=>Array.isArray(e),O=e=>"string"==typeof e,T=e=>"function"==typeof e,E=()=>({isServer:!1,importSymbol(e,t,n){if(!t)throw x(31,n);if(!e)throw x(30,t,n);const o=P(e.ownerDocument,e,t).toString(),r=new URL(o);r.hash="",r.search="";const s=r.href;return import(s).then((e=>M(e,n)))},raf:e=>new Promise((t=>{requestAnimationFrame((()=>{t(e())}))})),nextTick:e=>new Promise((t=>{setTimeout((()=>{t(e())}))})),chunkForSymbol:(e,t)=>[e,t??"_"]}),M=(e,t)=>{if(t in e)return e[t];for(const n of Object.values(e))if(j(n)&&t in n)return n[t]},P=(e,t,n)=>{const o=e.baseURI,r=new URL(t.getAttribute("q:base")??o,o);return new URL(n,r)};let L=/* @__PURE__ */E();const I=e=>L=e,R=()=>L;function N(e,n,...o){if(t){if(null!=e)return;throw $(n,...o)}}function z(e,n,o,...r){if(t){if(e===n)return;throw $(o,...r)}}function A(e,n,...o){if(t){if(!0===e)return;throw $(n,...o)}}function _(e,n,...o){if(t){if("number"==typeof e)return;throw $(n,...o)}}const Q=e=>e instanceof Promise,H=(e,t,n)=>{try{const o=e();return Q(o)?o.then(t,n):t(o)}catch(e){return n(e)}},J=(e,t)=>Q(e)?e.then(t):t(e),D=e=>e.some(Q)?Promise.all(e):e,U=e=>e.length>0?Promise.all(e):e,X=e=>null!=e,W=e=>new Promise((t=>{setTimeout(t,e)})),F=[],V={};Object.freeze(F),Object.freeze(V);const K=/*@__PURE__*/new Set,B=(e,t,n=F,o=0)=>{let r=null,s=null;if(T(e))s=e;else{if(!O(e))throw x(12,e);r=e}return K.has(t)&&(K.add(t),_i("qprefetch",{symbols:[Ri(t)]})),Ii(r,t,null,s,null,n,null)},G=(e,t,n=F)=>Ii(null,t,e,null,null,n,null),Y=(e,t=F)=>Ii(null,e,null,null,null,t,null),Z=(e,t,n,o=F)=>{const r=B(e,t,o,1);return r.dev=n,r},ee=(e,t,n,o=F)=>{const r=G(e,t,o);return r.dev=n,r},te=(e,t={})=>{A(!1,"In order to serialize a QRL, qSerialize must be true"),Ni(e);let n=e.o,o=e.l;const r=e.m??n,s=R();if(s){const t=s.chunkForSymbol(r,o);t&&(o=t[1],e.m||(n=t[0]))}if(!o)throw x(31,e.o);o.startsWith("./")&&(o=o.slice(2));const i=[o,"#",n],c=e.$,l=e.v;if(l&&l.length){if(t.g){const e=l.map(t.g);i.push(`[${e.join(" ")}]`)}else if(t.S){const e=l.map(t.S);i.push(`[${e.join(" ")}]`)}}else c&&c.length>0&&i.push(`[${c.join(" ")}]`);return i.join("")},ne=(e,t)=>{d(t.k);const n={S:e=>se(t.j,e)};return e.map((e=>te(e,n))).join("\n")},oe=(e,t)=>{const n=e.length,o=re(e,0,"#"),r=re(e,o,"["),s=Math.min(o,r),i=e.substring(0,s),c=o==n?o:o+1,l=r,u=c==l?"default":e.substring(c,l),a=r,f=n,d=a===f?F:e.substring(a+1,f-1).split(" "),h=Ii(i,u,null,null,d,null,null);return t&&h.C(t),h},re=(e,t,n)=>{const o=e.length,r=e.indexOf(n,t==o?0:t);return-1==r?o:r},se=(e,t)=>{const n=e.indexOf(t);return-1===n?(e.push(t),e.length-1):n},ie=(e,t)=>(N(e.$,"invoke: qrl capture must be defined inside useLexicalScope()",e),e.v=e.$.map((e=>{const n=parseInt(e,10),o=t.j[n];return A(t.j.length>n,"out of bounds inflate access",e),o}))),ce=(e,t)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(t,e),e),le=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),ue="q:renderFn",ae="⭐️",fe="q:slot",de="q:sref",he="q:s",pe="q:style",me="q:sstyle",$e="q:container",be="[q\\:container]",ve="qRender",we="q:id",ye="#",ge=(e,t,n)=>e.setAttribute(t,n),Se=(e,t)=>e.getAttribute(t),xe=(e,t)=>e.removeAttribute(t),ke=Symbol("ContainerState"),qe=e=>{let t=e[ke];return t||(e[ke]=t=je(e,Se(e,"q:base")??"/")),t},je=(e,t)=>{const o={O:e,T:0,M:new WeakMap,P:new Set,L:new Set,I:new Set,R:new Set,N:new Set,A:new Set,H:new Set,J:{},D:t,U:void 0,X:void 0,W:void 0,F:null};return n(o),o.F=Ei(o),o},Ce=(e,t)=>{if(T(e))return e(t);if(j(e)&&"value"in e)return e.value=t;throw x(32,e)},Oe=(e,t)=>{var n;const o=Me(e);try{((n=globalThis).qwikevents||(n.qwikevents=[])).push(o)}catch(e){w(e)}},Te=e=>e.toString(36),Ee=e=>parseInt(e,36),Me=e=>{const t=e.indexOf(":");return e?e.slice(t+1).replace(/-./g,(e=>e[1].toUpperCase())):e},Pe=/^(on|window:|document:)/,Le="preventdefault:",Ie=e=>e.endsWith("$")&&Pe.test(e),Re=e=>{if(0===e.length)return F;if(1===e.length){const t=e[0];return[[t[0],[t[1]]]]}const t=[];for(let n=0;n[t,e.filter((e=>e[0]===t)).map((e=>e[1]))]))},Ne=(e,t,n,o)=>{if(A(t.endsWith("$"),"render: event property does not end with $",t),t=_e(t.slice(0,-1)),n)if(C(n)){const r=n.flat(1/0).filter((e=>null!=e)).map((e=>[t,Qe(e,o)]));e.push(...r)}else e.push([t,Qe(n,o)]);return t},ze=["on","window:on","document:on"],Ae=["on","on-window","on-document"],_e=e=>{let t="on";for(let n=0;n{const n=Li(e)?e:Hi(e);return n.C(t),n};function He(e){return function(e){return e&&"number"==typeof e.nodeType}(e)&&1===e.nodeType}const Je=Symbol("proxy target"),De=Symbol("proxy flags"),Ue=Symbol("proxy manager"),Xe=Symbol("IMMUTABLE"),We="$$",Fe=(e,t,n)=>new et(e,t,n);var Ve;const Ke=(e,t,n,o)=>{const r=t.F.K(o);return new Ze(e,r,n)},Be=Symbol("proxy manager"),Ge=Symbol("unassigned signal");class Ye{}class Ze extends Ye{constructor(e,t,n){super(),this[Ve]=0,this.untrackedValue=e,this[Ue]=t,this[Be]=n}valueOf(){throw new TypeError("Cannot coerce a Signal, use `.value` instead")}toString(){return`[Signal ${String(this.value)}]`}toJSON(){return{value:this.value}}get value(){if(2&this[Be])throw Ge;const e=yt()?.B;return e&&this[Ue].G(e),this.untrackedValue}set value(e){if(t){if(1&this[Be])throw new Error("Cannot mutate immutable signal");pi(e);const t=yt();t&&(t.Y===ve&&w("State mutation inside render function. Use useTask$() instead.",t.Z),"ComputedEvent"===t.Y&&w("State mutation inside useComputed$() is an antipattern. Use useTask$() instead",t.Z))}const n=this[Ue],o=this.untrackedValue;n&&o!==e&&(this.untrackedValue=e,n.ee())}}Ve=Be;class et extends Ye{constructor(e,t,n){super(),this.te=e,this.ne=t,this.oe=n}get value(){return this.te.apply(void 0,this.ne)}}class tt extends Ye{constructor(e,t){super(),this.ref=e,this.prop=t}get[Ue](){return ji(this.ref)}get value(){return this.ref[this.prop]}set value(e){this.ref[this.prop]=e}}const nt=e=>e instanceof Ye,ot=(e,t)=>{if(!j(e))return e[t];if(e instanceof Ze)return z(t,"value","Left side is a signal, prop must be value"),e;if(e instanceof tt)return z(t,"value","Left side is a signal, prop must be value"),e;const n=qi(e);if(n){const o=n[We+t];if(o)return A(nt(o),`${We} has to be a signal kind`),o;if(!0!==n[Xe]?.[t])return new tt(e,t)}const o=e[Xe]?.[t];return nt(o)?o:Xe},rt=(e,t)=>{const n=ot(e,t);return n===Xe?e[t]:n},st=(e,t,n=0)=>t.M.get(e)||(0!==n&<(e,n),it(e,t,void 0)),it=(e,t,n)=>{z(ki(e),e,"Unexpected proxy at this location",e),A(!t.M.has(e),"Proxy was already created",e),A(j(e),"Target must be an object"),A(q(e)||C(e),"Target must be a serializable object");const o=t.F.K(n),r=new Proxy(e,new at(t,o));return t.M.set(e,r),r},ct=()=>{const e={};return lt(e,2),e},lt=(e,t)=>{Object.defineProperty(e,De,{value:t,enumerable:!1})},ut=(e,t)=>{const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n};class at{constructor(e,t){this.re=e,this.se=t}deleteProperty(e,t){if(2&e[De])throw x(17);return"string"==typeof t&&delete e[t]&&(this.se.ee(C(e)?void 0:t),!0)}get(e,t){if("symbol"==typeof t)return t===Je?e:t===Ue?this.se:e[t];let n;const o=e[De]??0;_(o,"flags must be an number");const r=yt(),s=0!=(1&o),i=0!=(2&o);let c=e[t];if(r&&(n=r.B),i){const o=e[We+t],r=e[Xe]?.[t];(!(t in e)||o||nt(r)||r===Xe)&&(n=null),o&&(A(nt(o),"$$ prop must be a signal"),c=o.value)}if(n){const o=C(e);this.se.G(n,o?void 0:t)}return s?ft(c,this.re):c}set(e,n,o){if("symbol"==typeof n)return e[n]=o,!0;const r=e[De]??0;if(_(r,"flags must be an number"),0!=(2&r))throw x(17);const s=0!=(1&r)?ki(o):o;if(t){pi(s);const e=yt();e&&e.Y===ve&&p("State mutation inside render function. Move mutation to useTask$() or useVisibleTask$()",n)}return C(e)?(e[n]=s,this.se.ee(),!0):(e[n]!==s&&(e[n]=s,this.se.ee(n)),!0)}has(e,t){if(t===Je)return!0;const n=Object.prototype.hasOwnProperty;return!!n.call(e,t)||!("string"!=typeof t||!n.call(e,We+t))}ownKeys(e){const t=e[De]??0;if(_(t,"flags must be an number"),0==(2&t)){let e=null;const t=yt();t&&(e=t.B),e&&this.se.G(e)}return C(e)?Reflect.ownKeys(e):Reflect.ownKeys(e).map((e=>"string"==typeof e&&e.startsWith(We)?e.slice(We.length):e))}getOwnPropertyDescriptor(e,t){return C(e)||"symbol"==typeof t?Object.getOwnPropertyDescriptor(e,t):{enumerable:!0,configurable:!0}}}const ft=(e,t)=>{if(j(e)){if(Object.isFrozen(e))return e;const n=ki(e);if(n!==e)return e;if(wi(n))return e;if(q(n)||C(n))return t.M.get(n)||st(n,t,1)}return e},dt="_qc_",ht=e=>e[dt],pt=(e,t)=>{f(e);const n=ht(e);if(n)return n;const o=mt(e),r=Se(e,"q:id");if(r){const n=t.W;if(o.ie=r,n){const{getObject:s,meta:i,refs:c}=n;if(He(e)){const n=c[r];n&&(A(He(e),"el must be an actual DOM element"),o.j=n.split(" ").map(s),o.li=((e,t)=>{const n=e.k.attributes,o=[];for(let r=0;r{const t={fe:0,ie:"",k:e,j:[],li:[],ue:null,le:null,he:null,ce:null,pe:null,de:null,me:null,t:null,ae:null,$e:null,be:null,ve:null};return n(t),e[dt]=t,t};let $t,bt;function vt(e){if(void 0===$t){const t=yt();if(t&&t.we)return t.we;if(void 0!==e)return e;throw new Error("Reading `locale` outside of context.")}return $t}function wt(e,t){const n=$t;try{return $t=e,t()}finally{$t=n}}const yt=()=>{if(!bt){const e="undefined"!=typeof document&&document&&document.__q_context__;if(!e)return;return C(e)?document.__q_context__=jt(e):e}return bt},gt=()=>{const e=yt();if(!e)throw x(14);return e},St=()=>{const e=yt();if(!e||e.Y!==ve)throw x(20);return N(e.Z,"invoke: $hostElement$ must be defined",e),N(e.ye,"invoke: $waitOn$ must be defined",e),N(e.ge,"invoke: $renderCtx$ must be defined",e),N(e.B,"invoke: $subscriber$ must be defined",e),e},xt=e=>{if(null==e)return e;const t=gt();return(...n)=>kt(t,e.bind(void 0,...n))};function kt(e,t,...n){const o=bt;let r;try{bt=e,r=t.apply(this,n)}finally{bt=o}return r}const qt=(e,t)=>{const n=e.ye;if(0===n.length){const e=t();Q(e)&&n.push(e)}else n.push(Promise.all(n).then(t))},jt=e=>{const t=e[0],n=t.closest(be),o=n?.getAttribute("q:locale")||void 0;return o&&function(e){$t=e}(o),Ct(o,void 0,t,e[1],e[2])},Ct=(e,t,o,r,s)=>{const i={le:0,Z:t,k:o,Y:r,Se:s,xe:void 0,de:void 0,ge:void 0,B:void 0,ye:void 0,we:e};return n(i),i},Ot=e=>e.closest(be),Tt=e=>kt(void 0,e),Et=Ct(void 0,void 0,void 0,ve),Mt=(e,t)=>(Et.B=t,kt(Et,(()=>e.value))),Pt=()=>{const e=yt();if(e)return e.k??e.Z??e.xe?.C(void 0)},Lt=e=>{const t=yt();if(t&&t.Z&&t.ge){const e=t.Z;pt(e,t.ge.ke.re).fe|=8}return e},It=(e,t)=>zt(`on-${e}`,t),Rt=(e,t)=>zt(`document:on-${e}`,t),Nt=(e,t)=>zt(`window:on-${e}`,t),zt=(e,t)=>{const n=St(),o=pt(n.Z,n.ge.ke.re);Ni(t),"string"==typeof e?o.li.push([_e(e),t]):o.li.push(...e.map((e=>[_e(e),t]))),o.fe|=2},At=()=>{const e=St(),n=e.le,o=e.Z,r=pt(o,e.ge.ke.re),s=r.le?r.le:r.le=[];return e.le++,{get:s[n],set:e=>(t&&pi(e),s[n]=e),i:n,iCtx:e,elCtx:r}},_t=e=>document,Qt=(e,t,n,o)=>{e?e.qe.push({je:Ht,ne:[t,n,o]}):Ht(t,n,o)},Ht=(e,t,n)=>{if(null==n||!1===n)e.removeAttribute(t);else{const o=!0===n?"":String(n);ge(e,t,o)}},Jt=(e,t,n,o)=>{e?e.qe.push({je:Dt,ne:[t,n,o]}):Dt(t,n,o)},Dt=(e,t,n)=>{try{e[t]=n??"",null==n&&o(e)&&s(e)&&e.removeAttribute(t)}catch(o){p(k(6),{node:e,key:t,value:n},o)}},Ut=(e,t,n)=>n?e.createElementNS(qr,t):e.createElement(t),Xt=(e,t,n,o)=>(e.qe.push({je:rs,ne:[t,n,o||null]}),n),Wt=(e,t,n,o)=>(e.qe.push({je:os,ne:[t,n,o||null]}),n),Ft=(e,t,n)=>(e.qe.push({je:ts,ne:[t,n]}),n),Vt=(e,t)=>{e.re.A.add(t.styleId),e.Ce.push({je:Kt,ne:[e.re.O,t]})},Kt=(e,t)=>{const n=_t(),o=n.documentElement===e,r=n.head,s=n.createElement("style");o&&!r&&w("document.head is undefined"),ge(s,pe,t.styleId),ge(s,"hidden",""),s.textContent=t.content,o&&r?ts(r,s):rs(e,s,e.firstChild)},Bt=(e,t)=>{rs(e,t,e.firstChild)},Gt=(e,t)=>{if(1===t.nodeType||111===t.nodeType){const n=e.re.F;es(t,e,n,!0)}e.qe.push({je:Yt,ne:[t,e]})},Yt=(e,n)=>{const o=e.parentElement;o?ns(o,e):t&&w("Trying to remove component already removed",e)},Zt=(e,t)=>{const n=Ut(e,"q:template",!1);return ge(n,fe,t),ge(n,"hidden",""),ge(n,"aria-hidden","true"),n},en=e=>{for(const t of e.qe)t.je.apply(void 0,t.ne);nn(e)},tn=e=>Se(e,"q:key"),nn=e=>{const t=e.re.F;for(const n of e.Oe){const o=tn(n);N(o,"slots must have a key");const r=Mr(n,"root");if(r.length>0){const s=n.getAttribute(de),i=e.Te.find((e=>e.ie===s));if(i){const s=i.k;if(s.isConnected)if(Array.from(s.childNodes).some((e=>Nr(e)&&Se(e,fe)===o)))es(n,e,t,!1);else{const t=Zt(e.Ee,o);for(const e of r)ts(t,e);rs(s,t,s.firstChild)}else es(n,e,t,!1)}else es(n,e,t,!1)}}for(const[t,n]of e.Me){const e=tn(t);N(e,"slots must have a key");const o=Array.from(n.childNodes).find((t=>Nr(t)&&t.getAttribute(fe)===e));o&&(Mr(o,"root").forEach((e=>{ts(t,e)})),o.remove())}},on=e=>{if(t&&"undefined"!=typeof window&&null!=window.document){const t={};for(const n of e.qe)t[n.je.name]=(t[n.je.name]??0)+1;const n={byOp:t,roots:e.Te.map((e=>e.k)),hostElements:Array.from(e.Pe),operations:e.qe.map((e=>[e.je.name,...e.ne]))},o=0===e.qe.length;y("Render stats.",o?"No operations":"",n)}},rn="__virtual",sn=":virtual";class cn{constructor(e,t){this.open=e,this.close=t,this._qc_=null,this.nodeType=111,this.localName=sn,this.nodeName=sn;const o=this.ownerDocument=e.ownerDocument;this.template=Ut(o,"template",!1),this.attributes=(e=>{if(!e)return new Map;const t=e.split(" ");return new Map(t.map((e=>{const t=e.indexOf("=");return t>=0?[e.slice(0,t),(n=e.slice(t+1),n.replace(/\+/g," "))]:[e,""];var n})))})(e.data.slice(3)),A(e.data.startsWith("qv "),"comment is not a qv"),e[rn]=this,n(this)}insertBefore(e,t){const n=this.parentElement;if(n){const o=t||this.close;n.insertBefore(e,o)}else this.template.insertBefore(e,t);return e}remove(){const e=this.parentElement;if(e){const t=Array.from(this.childNodes);z(this.template.childElementCount,0,"children should be empty"),e.removeChild(this.open),this.template.append(...t),e.removeChild(this.close)}}appendChild(e){return this.insertBefore(e,null)}insertBeforeTo(e,t){const n=Array.from(this.childNodes);e.insertBefore(this.open,t);for(const o of n)e.insertBefore(o,t);e.insertBefore(this.close,t),z(this.template.childElementCount,0,"children should be empty")}appendTo(e){this.insertBeforeTo(e,null)}get namespaceURI(){return this.parentElement?.namespaceURI??""}removeChild(e){this.parentElement?this.parentElement.removeChild(e):this.template.removeChild(e)}getAttribute(e){return this.attributes.get(e)??null}hasAttribute(e){return this.attributes.has(e)}setAttribute(e,t){this.attributes.set(e,t)}removeAttribute(e){this.attributes.delete(e)}matches(e){return!1}compareDocumentPosition(e){return this.open.compareDocumentPosition(e)}closest(e){const t=this.parentElement;return t?t.closest(e):null}querySelectorAll(e){const t=[];return Mr(this,"elements").forEach((n=>{i(n)&&(n.matches(e)&&t.push(n),t.concat(Array.from(n.querySelectorAll(e))))})),t}querySelector(e){for(const t of this.childNodes)if(s(t)){if(t.matches(e))return t;const n=t.querySelector(e);if(null!==n)return n}return null}get firstChild(){if(this.parentElement){const e=this.open.nextSibling;return e===this.close?null:e}return this.template.firstChild}get nextSibling(){return this.close.nextSibling}get previousSibling(){return this.open.previousSibling}get childNodes(){if(!this.parentElement)return this.template.childNodes;const e=[];let t=this.open;for(;(t=t.nextSibling)&&t!==this.close;)e.push(t);return e}get isConnected(){return this.open.isConnected}get parentElement(){return this.open.parentElement}}const ln=e=>{if(null==e)return null;if(a(e)){const t=un(e);if(t)return t}return e},un=e=>{const t=e[rn];if(t)return t;if(e.data.startsWith("qv ")){const t=an(e);return new cn(e,t)}return null},an=e=>{let t=e.nextSibling,n=1;for(;t;){if(a(t))if(t.data.startsWith("qv "))n++;else if("/qv"===t.data&&(n--,0===n))return t;t=t.nextSibling}throw new Error("close not found")},fn=e=>null==e?null:l(e)?e.open:e,dn=e=>(A(/^[\w/.-]+$/.test(e),"Context name must only contain A-Z,a-z,0-9, _",e),/*#__PURE__*/Object.freeze({id:le(e)})),hn=(e,n)=>{const{get:o,set:r,elCtx:s}=At();if(void 0!==o)return;t&&vn(e);let i=s.ae;i||(s.ae=i=new Map),t&&pi(n),i.set(e.id,n),r(!0)},pn=(e,n)=>{const{get:o,set:r,iCtx:s,elCtx:i}=At();if(void 0!==o)return o;t&&vn(e);const c=mn(e,i,s.ge.ke.re);if("function"==typeof n)return r(kt(void 0,n,c));if(void 0!==c)return r(c);if(void 0!==n)return r(n);throw x(13,e.id)},mn=(e,t,n)=>{const o=e.id;if(t){let e=t.k,r=t.ve??t.be;for(;r;){if(e=r.k,r.ae){const e=r.ae.get(o);if(e)return e;if(!0===r.ae.get("_"))break}r=r.ve??r.be}if(e.closest){const t=$n(e,n,o);if(void 0!==t)return t}}},$n=(e,t,n)=>{let o=e;for(;o;){let e,r=o;for(;r&&(e=bn(r));){const o=pt(e,t)?.ae;if(o&&o.has(n))return o.get(n);r=e}o=o.parentElement}},bn=e=>{let t=e,n=1;for(;t=t.previousSibling;)if(a(t))if("/qv"===t.data)n++;else if(t.data.startsWith("qv ")&&(n--,0===n))return un(t);return null},vn=e=>{if(!j(e)||"string"!=typeof e.id||0===e.id.length)throw x(28,e)},wn=/*#__PURE__*/dn("qk-error"),yn=(e,n,o)=>{const r=ht(n);if(t){if("undefined"!=typeof document&&l(n)){r.me=null;const t=document.createElement("errored-host");e&&e instanceof Error&&(t.props={error:e}),t.setAttribute("q:key","_error_"),t.append(...n.childNodes),n.appendChild(t)}if(e&&e instanceof Error&&("hostElement"in e||(e.hostElement=n)),!gn(e))throw e}{const t=mn(wn,r,o.ke.re);if(void 0===t)throw e;t.error=e}},gn=e=>!(e&&e instanceof Error&&"plugin"in e),Sn=(e,t)=>{t.fe&=-2,t.fe|=4,t.he=[],t.li.length=0;const n=t.k,o=t.t,r=t.de,s=kn(e),i=Ct(e.ke.we,n,void 0,ve),c=i.ye=[];N(o,"render: host element to render must has a $renderQrl$:",t),N(r,"render: host element to render must has defined props",t),s.Le=t,s.Ie=null,i.B=[0,n],i.ge=e,o.C(e.ke.re.O);const l=o.getFn(i);return H((()=>l(r)),(n=>c.length>0?Promise.all(c).then((()=>1&t.fe?Sn(e,t):{node:n,rCtx:s})):1&t.fe?Sn(e,t):{node:n,rCtx:s}),(o=>o===Ge?Promise.all(c).then((()=>Sn(e,t))):(yn(o,n,e),{node:Ln,rCtx:s})))},xn=(e,t)=>{const o={ke:{Ee:e,we:t.J.locale,re:t,Pe:new Set,qe:[],Ce:[],Te:[],Me:[],Oe:[],Re:[]},Le:null,Ie:null};return n(o),n(o.ke),o},kn=e=>({ke:e.ke,Le:e.Le,Ie:e.Ie}),qn=(e,t)=>t&&t.ce?t.ce.join(" ")+" "+jn(e):jn(e),jn=e=>e?O(e)?e.trim():C(e)?e.reduce(((e,t)=>{const n=jn(t);return n?e?`${e} ${n}`:n:e}),""):Object.entries(e).reduce(((e,[t,n])=>n?e?`${e} ${t.trim()}`:t.trim():e),""):"",Cn=e=>{if(null==e)return"";if("object"==typeof e){if(C(e))throw x(0,e,"style");{const t=[];for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];if(null!=o){const e=n.startsWith("--")?n:le(n);t.push(e+":"+o)}}return t.join(";")}}return String(e)},On=e=>Te(e.ke.re.T++),Tn=(e,t)=>{const n=On(e);t.ie=n},En=e=>nt(e)?En(e.value):null==e||"boolean"==typeof e?"":String(e);function Mn(e){return e.startsWith("aria-")}const Pn=(e,t)=>!!t.key&&(!vr(e)||!T(e.type)&&e.key!=t.key),Ln=Symbol("skip render"),In=(e,t)=>fr(zn,null,null,e.children,2,t),Rn=()=>null,Nn=e=>hr(Rn,{data:`\x3c!--${e.data}--\x3e`},null),zn=e=>e.children,An=e=>[hr(Nn,{data:"qkssr-pu"}),e.children,hr(Nn,{data:"qkssr-po"})],_n=(e,t)=>hr(In,{children:hr(Hn,e)},t),Qn=()=>null,Hn=()=>null,Jn=(e,t=0)=>{if(0===e.length)return t;for(let n=0;n{const t=e.join("|");if(t.length>0)return t},Un=async(e,t)=>{const n={},o=Fn(n);let r;for(to(e,o,!1);(r=o.Ne).length>0;)o.Ne=[],await Promise.all(r);const s=Array.from(o.ze.keys());let i=0;const c=new Map;for(const e of s)c.set(e,Te(i)),i++;if(o.Ae.length>0){const e=c.get(void 0);N(e,"undefined ID must be defined");for(const t of o.Ae)c.set(t,e)}const l=e=>{let t="";if(Q(e)){const n=eo(e);if(!n)throw x(27,e);e=n.value,n.resolved?t+="~":t+="_"}if(j(e)){const n=qi(e);n&&(t+="!",e=n)}const n=c.get(e);if(void 0===n)throw x(27,e);return n+t},u=s.map((e=>{if(null===e)return null;const t=typeof e;switch(t){case"undefined":return Ks;case"number":if(!Number.isFinite(e))break;return e;case"string":case"boolean":return e}const r=ui(e,l,o,n);if(void 0!==r)return r;if("object"===t){if(C(e))return e.map(l);if(q(e)){const t={};for(const n of Object.keys(e))t[n]=l(e[n]);return t}}throw x(3,e)}));return JSON.stringify({_entry:l(e),_objs:u})},Xn=async(e,n,r)=>{const c=Fn(n);let u,a=!1;for(const n of e)if(n.ue)for(const e of n.ue)t&&(e.fe&ks&&w("Serializing dirty watch. Looks like an internal error."),xi(e)||w("Serializing disconnected watch. Looks like an internal error.")),Ms(e)&&c._e.push(e.Qe),zs(e);for(const t of e){const e=t.k,n=t.li;for(const t of n)if(s(e)){const e=t[1],n=e.v;if(n)for(const e of n)to(e,c,!0);c.He.push(e),a=!0}}if(!a)return{state:{refs:{},ctx:{},objs:[],subs:[]},objs:[],funcs:[],qrls:[],resources:c._e,mode:"static"};for(;(u=c.Ne).length>0;)c.Ne=[],await Promise.all(u);const f=c.Je.length>0;if(f){for(const e of c.De)Bn(e,c,e.k);for(const t of e)Wn(t,c)}for(;(u=c.Ne).length>0;)c.Ne=[],await Promise.all(u);const h=new Map,p=Array.from(c.ze.keys()),m=new Map,$=e=>{let t="";if(Q(e)){const n=eo(e);if(!n)return null;e=n.value,n.resolved?t+="~":t+="_"}if(j(e)){const n=qi(e);if(n)t+="!",e=n;else if(i(e)){const n=(e=>{let t=h.get(e);return void 0===t&&(t=ro(e),t||console.warn("Missing ID",e),h.set(e,t)),t})(e);return n?ye+n+t:null}}const n=m.get(e);return n?n+t:r?r(e):null},b=e=>{const t=$(e);if(null===t)throw x(27,e);return t},v=new Map;p.forEach((e=>{const t=oo(e,n)?.Ue;if(!t)return null;const r=Ci(e)??0,s=[];r>0&&s.push(r);for(const e of t){const t=e[1];0===e[0]&&o(t)&&l(t)&&!c.Je.includes(ht(t))||s.push(e)}s.length>0&&v.set(e,s)})),p.sort(((e,t)=>(v.has(e)?0:1)-(v.has(t)?0:1)));let y=0;for(const e of p)m.set(e,Te(y)),y++;if(c.Ae.length>0){const e=m.get(void 0);N(e,"undefined ID must be defined");for(const t of c.Ae)m.set(t,e)}const g=[];for(const e of p){const t=v.get(e);if(null==t)break;g.push(t.map((e=>"number"==typeof e?`_${e}`:Oi(e,$))).filter(X))}z(g.length,v.size,"missing subscriptions to serialize",g,v);const S=p.map((e=>{if(null===e)return null;const t=typeof e;switch(t){case"undefined":return Ks;case"number":if(!Number.isFinite(e))break;return e;case"string":case"boolean":return e}const o=ui(e,b,c,n);if(void 0!==o)return o;if("object"===t){if(C(e))return e.map(b);if(q(e)){const t={};for(const n of Object.keys(e)){const o=$(e[n]);null!==o&&(t[n]=o)}return t}}throw x(3,e)})),k={},O={};return e.forEach((e=>{const t=e.k,n=e.ie,o=e.j,r=e.de,s=e.ae,i=e.ue,u=e.t,a=e.le,h={},p=l(t)&&c.Je.includes(e);if(N(n,"pause: can not generate ID for dom node",t),o.length>0){d(t);const e=o.map(b).join(" ");e&&(O[n]=e)}else if(f){let e=!1;if(p){N(u,"renderQrl must be defined");const t=$(r);h.h=b(u)+(t?" "+t:""),e=!0}else{const t=$(r);t&&(h.h=" "+t,e=!0)}if(i&&i.length>0){const t=i.map($).filter(X).join(" ");t&&(h.w=t,e=!0)}if(p&&a&&a.length>0){const t=a.map(b).join(" ");h.s=t,e=!0}if(s){const t=[];s.forEach(((e,n)=>{const o=$(e);o&&t.push(`${n}=${o}`)}));const n=t.join(" ");n&&(h.c=n,e=!0)}e&&(k[n]=h)}})),t&&h.forEach(((e,t)=>{e||w("unconnected element",t.nodeName,"\n")})),{state:{refs:O,ctx:k,objs:S,subs:g},objs:p,funcs:c.Xe,resources:c._e,qrls:c.He,mode:f?"render":"listeners"}},Wn=(e,t)=>{const n=e.be,o=e.de;if(n&&o&&!so(o)&&t.Je.includes(n)){const n=ji(o)?.Ue,r=e.k;if(n)for(const e of n){if(0===e[0]&&e[1]===r)return void Kn(r,t);to(o,t,!1)}}},Fn=e=>({re:e,We:new Set,ze:new Set,Fe:0,Ae:[],Xe:[],_e:[],Je:[],He:[],De:[],Ne:[]}),Vn=(e,t)=>{const n=ht(e);t.Je.includes(n)||(t.Je.push(n),t.Fe++,8&n.fe?Bn(n,t,!0):t.De.push(n),t.Fe--)},Kn=(e,t)=>{const n=ht(e);if(n){if(t.Je.includes(n))return;t.Je.push(n),Bn(n,t,e)}},Bn=(e,t,n)=>{if(e.de&&!so(e.de)&&to(e.de,t,n),e.t&&to(e.t,t,n),e.le)for(const o of e.le)to(o,t,n);if(e.ue){const o=t.re.F.Ve;for(const r of e.ue)o.has(r)&&to(r,t,n)}if(n&&(Gn(e,t),e.$e))for(const n of e.$e)Gn(n,t)},Gn=(e,t)=>{for(;e;){if(e.ae){for(const n of e.ae.values())to(n,t,!0);if(!0===e.ae.get("_"))break}e=e.ve??e.be}},Yn=(e,t,n)=>{if(t.We.has(e))return;t.We.add(e);const r=e.Ue;N(r,"subs must be defined");for(const e of r){const r=e[0];if(r>0&&to(e[2],t,!0),!0===n){const n=e[1];o(n)&&l(n)?0===r&&Vn(n,t):to(n,t,!0)}}},Zn=Symbol(),eo=e=>e[Zn],to=(e,t,n)=>{if(null!==e){const s=typeof e;switch(s){case"function":case"object":{const i=t.We;if(i.has(e))return;if(i.add(e),wi(e))return t.ze.add(void 0),void t.Ae.push(e);const c=e,l=qi(e);if(l){if(e=l,i.has(e))return;if(i.add(e),Yn(ji(c),t,n),yi(c))return void t.ze.add(e)}if(li(e,t,n))return void t.ze.add(e);if(Q(e))return void t.Ne.push((r=e,r.then((e=>{const t={resolved:!0,value:e};return r[Zn]=t,e}),(e=>{const t={resolved:!1,value:e};return r[Zn]=t,e}))).then((e=>{to(e,t,n)})));if("object"===s){if(o(e))return;if(C(e))for(let o=0;o{const t=ln(e);if(i(t)){const e=ht(t);if(e&&e.ie)return e}},oo=(e,t)=>{if(!j(e))return;if(e instanceof Ze)return ji(e);const n=t.M.get(e);return n?ji(n):void 0},ro=e=>{const t=ht(e);return t?t.ie:null},so=e=>0===Object.keys(e).length,io="0.100.0";var co;const lo="\x3c!--qkssr-f--\x3e";class uo{constructor(e){this.nodeType=e,this[co]=null,n(this)}}co=dt;const ao=async(e,o)=>{const r=o.containerTagName,s=yo(1).k,i=je(s,o.base??"/");i.J.locale=o.serverData?.locale;const c=new uo(9),l=xn(c,i),u=o.beforeContent??[],a={ke:{ae:[],Ke:!1,Be:"html"===r?u:[],we:o.serverData?.locale},Ge:void 0,Ye:void 0,Ze:void 0};n(a);let f=t?"ssr-dev":"ssr";o.containerAttributes["q:render"]&&(f=`${o.containerAttributes["q:render"]}-${f}`);const d={...o.containerAttributes,"q:container":"paused","q:version":io,"q:render":f,"q:base":o.base,"q:locale":o.serverData?.locale,children:"html"===r?[e]:[u,e]};"html"!==r&&(d.class="qc📦"+(d.class?" "+d.class:"")),i.J={url:o.url,...o.serverData},e=hr(r,d),i.X=new Set,await Promise.resolve().then((()=>fo(e,l,a,o.stream,i,o)))},fo=async(e,n,o,r,s,i)=>{const c=i.beforeClose;return await go(e,n,o,r,0,c?e=>{const t=c(o.ke.ae,s,o.ke.Ke);return So(t,n,o,e,0,void 0)}:void 0),t&&o.ke.Be.length>0&&p("Missing . Global styles could not be rendered. Please render a element at the root of the app"),n},ho=(e,t,n,o,r,s,i,c)=>{const l=e.props,u=l[ue];if(u)return t.t=u,bo(o,r,s,t,e,i,c);let a="\x3c!--qv"+mo(l);const f=he in l,d=null!=e.key?String(e.key):null;if(f&&(N(o.Le?.ie,"hostId must be defined for a slot"),a+=" q:sref="+o.Le.ie),null!=d&&(a+=" q:key="+d),a+="--\x3e",s.write(a),n)for(const e of n)$o(e.type,e.props,s);const h=xo(e.children,o,r,s,i);return J(h,(()=>{if(!f&&!c)return void s.write(po);let e;if(f){N(d,"key must be defined for a slot");const n=r.Ge?.[d];if(n){const[o,c]=r.Ye,l=kn(o);l.Ie=t,r.Ge[d]=void 0,e=So(n,l,c,s,i)}}return c&&(e=J(e,(()=>c(s)))),J(e,(()=>{s.write(po)}))}))},po="\x3c!--/qv--\x3e",mo=e=>{let t="";for(const n of Object.keys(e)){if("children"===n)continue;const o=e[n];null!=o&&(t+=" "+(""===o?n:n+"="+o))}return t},$o=(e,t,n)=>{if(n.write("<"+e+(e=>{let t="";for(const n of Object.keys(e)){if("dangerouslySetInnerHTML"===n)continue;const o=e[n];null!=o&&(t+=" "+(""===o?n:n+'="'+o+'"'))}return t})(t)+">"),Mo[e])return;const o=t.dangerouslySetInnerHTML;null!=o&&n.write(o),n.write(``)},bo=(e,t,n,o,r,s,i)=>{const c=r.props;return jo(e,o,c.props),J(Sn(e,o),(c=>{const l=o.k,u=c.rCtx,a=Ct(t.ke.we,l,void 0);a.B=[0,l],a.ge=u;const f={...t,Ge:wo(r.children,t),Ye:[e,t],Ze:a},d=[];if(o.pe){const e=4&s?t.ke.Be:d;for(const t of o.pe)e.push(hr("style",{[pe]:t.styleId,hidden:"",dangerouslySetInnerHTML:t.content}))}const h=On(e),p=o.ce?Dn(o.ce):void 0,m=hr(r.type,{[me]:p,[we]:h,children:c.node},r.key);return o.ie=h,t.ke.ae.push(o),ho(m,o,d,u,f,n,s,(n=>{if(2&o.fe){const r=yo(1),s=r.li;s.push(...o.li),o.fe&=-3,r.ie=On(e);const i={type:"placeholder",hidden:"","q:id":r.ie};t.ke.ae.push(r);const c=Re(s);for(const t of c){const n=Xo(t[0]);i[n]=ne(t[1],r),Oe(n,e.ke.re)}$o("script",i,n)}return i?J(vo(e,f,n),(()=>i(n))):vo(e,f,n)}))}))},vo=(e,t,n)=>{const o=t.Ge;if(o){const r=Object.keys(o).map((e=>{const t=o[e];if(t)return hr("q:template",{[fe]:e,hidden:"","aria-hidden":"true",children:t})}));return So(r,e,t,n,0,void 0)}},wo=(e,t)=>{const n=ko(e,t);if(null===n)return;const o={};for(const e of n){let t="";vr(e)&&(t=e.props[fe]??"");let n=o[t];n||(o[t]=n=[]),n.push(e)}return o},yo=e=>{const t=new uo(e);return mt(t)},go=(e,n,o,r,s,i)=>{const c=e.type,l=n.Le;if("string"==typeof c){const u=e.key,a=e.props,f=e.immutableProps,h=yo(1),m=h.k,$="head"===c;let b="<"+c,v=!1,w=!1,y="",g=null;if(d(m),t&&a.class&&a.className)throw new TypeError("Can only have one of class or className");if(f)for(const e of Object.keys(f)){let o=f[e];if(Ie(e)){Ne(h.li,e,o,void 0);continue}const r=Co(e);if(nt(o)&&(N(l,"Signals can not be used outside the root"),o=Mt(o,[1,m,o,l.k,r]),v=!0),"dangerouslySetInnerHTML"===e){g=o;continue}e.startsWith(Le)&&Oe(e.slice(Le.length),n.ke.re);const s=Oo(r,o);null!=s&&("class"===r?y=s:"value"===r&&"textarea"===c?g=_o(s):Jo(r)?t&&p("Attribute value is unsafe for SSR"):b+=" "+(""===o?r:r+'="'+Qo(s)+'"'))}for(const e of Object.keys(a)){let o=a[e];if("ref"===e){Ce(o,m),w=!0;continue}if(Ie(e)){Ne(h.li,e,o,void 0);continue}const r=Co(e);if(nt(o)&&(N(l,"Signals can not be used outside the root"),o=Mt(o,[2,l.k,o,m,r]),v=!0),"dangerouslySetInnerHTML"===e){g=o;continue}e.startsWith(Le)&&Oe(e.slice(Le.length),n.ke.re);const s=Oo(r,o);null!=s&&("class"===r?y=s:"value"===r&&"textarea"===c?g=_o(s):Jo(r)?t&&p("Attribute value is unsafe for SSR"):b+=" "+(""===o?r:r+'="'+Qo(s)+'"'))}const S=h.li;if(l){if(t&&"html"===c)throw x(29);if(l.ce?.length){const e=l.ce.join(" ");y=y?`${e} ${y}`:e}2&l.fe&&(S.push(...l.li),l.fe&=-3)}if(t){if(32&s&&!(512&s)&&!No[c])throw xr(`<${c}> can not be rendered because one of its ancestor is a

or a

.\n\nThis goes against the HTML spec: https://html.spec.whatwg.org/multipage/dom.html#phrasing-content-2`,e);if("table"===c)s|=256;else{if(256&s&&!Io[c])throw xr(`The  element requires that its direct children to be '', '', '' or '
' instead, '<${c}>' was rendered.`,e);s&=-257}if("button"===c){if(128&s)throw xr(`<${c}> can not be rendered because one of its ancestor is already a