proto-autos-wc 0.0.978 → 0.0.980

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?b($):a.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(m),w(y),(p=m.length>0)&&a.raf($)},b=t=>h().then(t),g=v(y,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,H);const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),D={},H={forEach:(t,e)=>t.map(N).forEach(e),map:(t,e)=>t.map(N).map(e).map(R)},N=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),R=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),P(t.vtag,e,...t.vchildren||[])}const e=A(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},T=(t,e)=>null==t||S(t)?t:1&e?t+"":t,L=new WeakMap,U=t=>"sc-"+t.S,F=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);t["s-si"]?(s.push(t["s-si"]),l.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s),delete t["s-si"]):(e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t)))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},V=/\s/,W=t=>("object"==typeof t&&"baseVal"in t&&(t=t.baseVal),t?t.split(V):[]),q="Capture",G=RegExp(q+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of z(Object.keys(l)))t in s||F(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))F(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=f.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,y,l))X(d,y,l),d=e[--a],y=o[--p];else if(Q(h,y,l))X(h,y,l),Y(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(Q(d,m,l))X(d,m,l),Y(t,d.v,h.v),d=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>a?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.O),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return nt(void 0,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=L.get(t=t.head||t);if(i||L.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=null,it=(t,e,n,o)=>{try{st=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||A(null,null),i=(t=>t&&t.m===D)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return st=null,null},rt=()=>st,ct=t=>{const e=t.$hostElement$,n=t.t,o=t.O;64&t.o||(t.o|=64,ht(e),at(n,"componentDidLoad"),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},ut=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&tt(e,!1),o}},ft=()=>{ht(f.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-autos-wc"}});return t.dispatchEvent(e),e})(u)))},at=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},ht=t=>t.classList.add("hydrated"),dt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.A.get(e),r=s.o,c=s.t;o=T(o,l.D[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(e,o),c&&2==(18&r)&&tt(s,!1))},pt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D){const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,T(s,l)),void dt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return dt(this,t,s,e),void(1&o&&!i.t&&i.H.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=T(s,l),dt(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},mt=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],R:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.H=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.O=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.T){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.T;if(!n)return;const o=i.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(i.set(n,t),t[e])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(pt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=U(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).H}};l.T=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,pt(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=a.C)?l:j(f);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(ft,30)))},yt=t=>a.C=t;export{mt as b,ut as f,rt as g,P as h,h as p,o as r,yt as s}
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?b($):a.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(m),w(y),(p=m.length>0)&&a.raf($)},b=t=>h().then(t),g=v(y,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,H);const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),D={},H={forEach:(t,e)=>t.map(N).forEach(e),map:(t,e)=>t.map(N).map(e).map(R)},N=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),R=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),P(t.vtag,e,...t.vchildren||[])}const e=A(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},T=(t,e)=>null==t||S(t)?t:1&e?t+"":t,L=new WeakMap,U=t=>"sc-"+t.S,F=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);t["s-si"]?(s.push(t["s-si"]),l.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s),delete t["s-si"]):(e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t)))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},V=/\s/,W=t=>("object"==typeof t&&"baseVal"in t&&(t=t.baseVal),t?t.split(V):[]),q="Capture",G=RegExp(q+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of z(Object.keys(l)))t in s||F(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))F(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=f.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,y,l))X(d,y,l),d=e[--a],y=o[--p];else if(Q(h,y,l))X(h,y,l),Y(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(Q(d,m,l))X(d,m,l),Y(t,d.v,h.v),d=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>a?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.O),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return nt(void 0,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=L.get(t=t.head||t);if(i||L.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=null,it=(t,e,n,o)=>{try{st=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||A(null,null),i=(t=>t&&t.m===D)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return st=null,null},rt=()=>st,ct=t=>{const e=t.$hostElement$,n=t.t,o=t.O;64&t.o||(t.o|=64,ht(e),at(n,"componentDidLoad",void 0,e),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},ut=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&tt(e,!1),o}},ft=()=>{ht(f.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-autos-wc"}});return t.dispatchEvent(e),e})(u)))},at=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ht=t=>t.classList.add("hydrated"),dt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.A.get(e),r=s.o,c=s.t;o=T(o,l.D[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(e,o),c&&2==(18&r)&&tt(s,!1))},pt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D){const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,T(s,l)),void dt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return dt(this,t,s,e),void(1&o&&!i.t&&i.H.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=T(s,l),dt(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},mt=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],R:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.H=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.O=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.T;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(pt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=U(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).H}};l.T=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,pt(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=a.C)?l:j(f);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(ft,30)))},yt=t=>a.C=t;export{mt as b,ut as f,rt as g,P as h,h as p,o as r,yt as s}
@@ -0,0 +1 @@
1
+ import{g as n,f as e,h as t,r}from"./p-b9d09fb7.js";const o="proto-autos",a="data",i="pick",s=n=>{const e=localStorage.getItem(n?`${o}-${n}`:o);return e?JSON.parse(e):void 0},l=(n,e)=>{const t=n?`${o}-${n}`:o,r=JSON.stringify(e);localStorage.setItem(t,r)},c=n=>!("isConnected"in n)||n.isConnected,d=(()=>{let n;return(...e)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let e of n.keys())n.set(e,n.get(e).filter(c))})(...e)}),2e3)}})(),u=n=>"function"==typeof n?n():n;var f=function(){function n(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();function h(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}var v=function(){function n(){var e=this;h(this,n),this.interceptors=[],this.fetch=function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.interceptorWrapper.apply(e,[fetch].concat(t))}}return f(n,[{key:"addInterceptors",value:function(n){var e=this,t=[];return Array.isArray(n)?n.map((function(n){return t.push(e.interceptors.length),e.interceptors.push(n)})):n instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(n)),this.updateInterceptors(),function(){return e.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(n){var e=this;Array.isArray(n)&&(n.map((function(n){return e.interceptors.splice(n,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(n,e){return[e].concat(n)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(n){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var o=Promise.resolve(t);return this.reversedInterceptors.forEach((function(n){var e=n.request,r=n.requestError;(e||r)&&(o=o.then((function(){return e.apply(void 0,t)}),r))})),o=o.then((function(){return n.apply(void 0,t)})),this.reversedInterceptors.forEach((function(n){var e=n.response,t=n.responseError;(e||t)&&(o=o.then(e,t))})),o}}]),n}(),p=function(){function n(e){var t=e.url,r=e.interceptors,o=e.headers,a=e.onStart,i=e.onEnd,s=e.omitEmptyVariables,l=void 0!==s&&s,c=e.requestOptions,d=void 0===c?{}:c;h(this,n);var u=function(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},o),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=l,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:a,onEnd:i},u.addInterceptors(r),u}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(n,v),f(n,[{key:"query",value:function(n){var e,t=this,r=n.operationName,o=n.query,a=n.variables,i=n.opts,s=void 0===i?{}:i,l=n.requestOptions,c=Object.assign({},this.requestObject,void 0===l?{}:l);return e=this.omitEmptyVariables||s.omitEmptyVariables?this.doOmitEmptyVariables(a):a,c.body=JSON.stringify({operationName:r,query:o,variables:e}),this.onStart(),this.fetch(this.url,c).then((function(n){return n.ok?n.json():{errors:[{message:n.statusText,stack:n}]}})).then((function(n){var e=n.data,r=n.errors;return new Promise((function(n,o){return t.onEnd(),e?Object.keys(e).every((function(n){return!e[n]}))?o(r):n({data:e,errors:r}):o(r||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(n){this.url=n}},{key:"getEnumTypes",value:function(n){var e=this,t={},r=n.filter((function(n){return!e.EnumMap[n]||(t[n]=e.EnumMap[n],!1)}));if(!r.length)return new Promise((function(n){n({data:t})}));var o="\n query {\n "+r.map((function(n){return n+': __type(name: "'+n+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",a=Object.assign({},this.requestObject);return a.body=JSON.stringify({query:o}),this.onStart(),this.fetch(this.url,a).then((function(n){return n.ok?n.json():{errors:[{message:n.statusText,stack:n}]}})).then((function(n){var r=n.data,o=n.errors;return new Promise((function(n,a){if(e.onEnd(),!r)return a(o||[{message:"Do not get any data."}]);if(Object.keys(r).every((function(n){return!r[n]}))&&o&&o.length)return a(o);var i=Object.assign(t,r);return Object.keys(r).map((function(n){return e.EnumMap[n]=r[n],n})),n({data:i,errors:o})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(n){var e=this,t={};return Object.keys(n).map((function(r){var o=n[r];return"string"==typeof o&&0===o.length||null==o||(t[r]=o instanceof Object?e.doOmitEmptyVariables(o):o),r})),t}}]),n}();const b={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:g}=(()=>{const t=((n,e=((n,e)=>n!==e))=>{const t=u(n);let r=new Map(Object.entries(null!=t?t:{}));const o={dispose:[],get:[],set:[],reset:[]},a=()=>{var e;r=new Map(Object.entries(null!==(e=u(n))&&void 0!==e?e:{})),o.reset.forEach((n=>n()))},i=n=>(o.get.forEach((e=>e(n))),r.get(n)),s=(n,t)=>{const a=r.get(n);e(t,a,n)&&(r.set(n,t),o.set.forEach((e=>e(n,t,a))))},l="undefined"==typeof Proxy?{}:new Proxy(t,{get:(n,e)=>i(e),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,e)=>r.has(e),set:(n,e,t)=>(s(e,t),!0)}),c=(n,e)=>(o[n].push(e),()=>{((n,e)=>{const t=n.indexOf(e);t>=0&&(n[t]=n[n.length-1],n.length--)})(o[n],e)});return{state:l,get:i,set:s,on:c,onChange:(e,t)=>{const r=c("set",((n,r)=>{n===e&&t(r)})),o=c("reset",(()=>t(u(n)[e])));return()=>{r(),o()}},use:(...n)=>{const e=n.reduce(((n,e)=>(e.set&&n.push(c("set",e.set)),e.get&&n.push(c("get",e.get)),e.reset&&n.push(c("reset",e.reset)),e.dispose&&n.push(c("dispose",e.dispose)),n)),[]);return()=>e.forEach((n=>n()))},dispose:()=>{o.dispose.forEach((n=>n())),a()},reset:a,forceUpdate:n=>{const e=r.get(n);o.set.forEach((t=>t(n,e,e)))}}})(b,void 0);return t.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const r=n();r&&((n,e,t)=>{const r=n.get(e);r?r.includes(t)||r.push(t):n.set(e,[t])})(t,e,r)},set:n=>{const r=t.get(n);r&&t.set(n,r.filter(e)),d(t)},reset:()=>{t.forEach((n=>n.forEach(e))),d(t)}}})()),t})(),y=(n=!1)=>{g.loading=n,g.error=void 0,g.pick=0,g.data=void 0,g.dealer=void 0},m=n=>{if(n){const{pick:e}=g;g.dealer=null!=e?n.list[e]:void 0,g.data=n,g.loading=!1}else g.data=void 0,g.loading=!1},w=n=>{const{data:e}=g;e&&void 0!==n?(g.pick=n,g.dealer=e.list[n]):(g.pick=0,g.dealer=void 0)};var x=new p({url:"https://gt-forza.vercel.app/graphql"});const k=()=>{y(!0),l(i,0),x.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((n=>{const e=n.data.uuid[0];x.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:e}}).then((n=>{const t=JSON.parse(JSON.stringify(n.data.solution.data.dealers)),r={id:e,list:t};l(a,r),m(r)}))}))},O=()=>{y();const n=s(a),e=s(i);n?(m(n),e&&w(e)):k()},j=k,S=n=>{l(i,n),w(n)},z=(...n)=>n.filter(Boolean).join(" "),$=n=>{const{value:e}=n,{dealerId:r,name:o,vehicles:a}=e||{},i=a?a.length:0;return t("div",{class:z("flex flex-wrap content-center","mb-4 rounded-lg bg-blue-200 p-4","border border-solid border-blue-400")},t("label",{class:"text-xl font-bold"},o?`${o} `:"",t("sup",null,i||"")),t("label",{class:"ml-auto self-center text-right text-sm"},r||""))},T=/^\#[0-9]*/,q=n=>null!=n.match(T),E=n=>2554===n,N=n=>n>2010,A=n=>{const{vin:e,make:r,model:o,year:a,color:i}=n.value||{};return t("div",{class:z("flex align-middle","mb-1 rounded-lg p-4","border border-solid",E(a)?"border-clrs-navy bg-clrs-navy text-clrs-white":q(o)?"border-yellow-600 bg-yellow-300":N(a)?"border-green-600 bg-green-200":"border-gray-600 bg-gray-300")},t("div",{class:"mr-1.5 flex flex-col"},t("label",{class:"mb-2 text-xs"},e||""),t("label",{class:"text-lg font-bold"},r||""),t("label",{class:"mb-2 text-sm italic"},o||""),t("label",null,a||"",", ",i||""),t("label",null,E(a)?"- exotic... [ Sierra 117 ]":q(o)?"- track only...":"")),t("proto-ikon-loader",{class:"ikon ml-auto self-center",name:r,label:r.toLowerCase()}))},C=n=>{const{list:e}=n,r=e.length;return 0===r?"":t("div",{class:"flex flex-col"},r?e.map((n=>t(A,{value:n}))):"")},I=n=>{const{dealer:e}=n,{vehicles:r}=e||{vehicles:[]},o=r;return e?t("div",{class:"flex flex-col"},t($,{value:e}),t(C,{list:o})):""},P="eswat2",J=()=>t("a",{class:"absolute right-0 top-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},t("proto-ikon-loader",{name:"fingerprint",size:24,label:"eswat2"})),M=()=>t("div",{class:"mb-4 mr-2 mt-2 flex flex-row"},t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","4.0.0")),U=n=>{const{label:e}=n;return t("h1",{class:z("text-center uppercase text-clrs-red","mb-11 ml-0 mr-0 mt-11","text-6xl font-thin")},e)},_=n=>{const e=n.hex||"currentColor",r=n.label||"loading...",o=n.size||24;return t("svg",{class:z(n.class||"","animate-spin"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,r),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:e,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:e,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},D=()=>{const{loading:n,pick:e,data:r}=g||{},{list:o}=r||{list:[]},a=o.length-1;return n?"":t("div",{class:"flex"},t("div",{class:"refresh hover:text-clrs-red md:w-auto",onClick:()=>j()},t("proto-ikon-loader",{name:"refresh",size:24})),t("div",{class:z("ml-auto inline-flex justify-end","border border-solid border-gray-600","rounded-md")},o.map(((n,r)=>t("button",{class:z("h-8 w-8 border-none font-bold",0==r?"rounded-bl-md rounded-br-none rounded-tl-md rounded-tr-none":r==a?"rounded-bl-none rounded-br-md rounded-tl-none rounded-tr-md":"rounded-none",e==r?"bg-clrs-red text-white":"bg-clrs-yellow text-clrs-navy"),onClick:()=>S(r),title:`${n.name} (${n.vehicles.length})`},r+1)))))},V=class{constructor(n){r(this,n),this.tag="proto-autos"}componentDidLoad(){O()}render(){const{loading:n,dealer:e}=g;return t("main",{key:"eb918bee95389cd4c78c6a7b3134ada507c5a042",id:"app",class:"ds1-main relative"},t(J,{key:"efa617ee04ddd6c58650d1cf4d00f899c3520efa"}),t(U,{key:"6762516c1c9fc2d4490e9343d75f4f09f657fae6",label:"Auto Dealers"}),t(D,{key:"ce1aeeb560729f66726b859d6f9d5a4a410703b1"}),n?t(_,null):t("hr",{class:z("mb-4 ml-0 mr-0 mt-4","border-solid border-gray-300","border-b-0 border-l-0 border-r-0")}),t(I,{key:"63ef8ba16a60533a147c06e126442e9f2481f8fe",dealer:e}),t(M,{key:"00d32c34fcf933386a5e5f920e09f02f95dbfbf1"}))}};V.style="/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */\n@layer theme, base, components, utilities;\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .top-0 {\n top: calc(var(--spacing) * 0);\n }\n .right-0 {\n right: calc(var(--spacing) * 0);\n }\n .m-6 {\n margin: calc(var(--spacing) * 6);\n }\n .mt-2 {\n margin-top: calc(var(--spacing) * 2);\n }\n .mt-4 {\n margin-top: calc(var(--spacing) * 4);\n }\n .mt-11 {\n margin-top: calc(var(--spacing) * 11);\n }\n .mr-0 {\n margin-right: calc(var(--spacing) * 0);\n }\n .mr-1\\.5 {\n margin-right: calc(var(--spacing) * 1.5);\n }\n .mr-2 {\n margin-right: calc(var(--spacing) * 2);\n }\n .mb-1 {\n margin-bottom: calc(var(--spacing) * 1);\n }\n .mb-2 {\n margin-bottom: calc(var(--spacing) * 2);\n }\n .mb-4 {\n margin-bottom: calc(var(--spacing) * 4);\n }\n .mb-11 {\n margin-bottom: calc(var(--spacing) * 11);\n }\n .ml-0 {\n margin-left: calc(var(--spacing) * 0);\n }\n .ml-auto {\n margin-left: auto;\n }\n .flex {\n display: flex;\n }\n .inline-flex {\n display: inline-flex;\n }\n .h-8 {\n height: calc(var(--spacing) * 8);\n }\n .w-8 {\n width: calc(var(--spacing) * 8);\n }\n .animate-spin {\n animation: var(--animate-spin);\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .content-center {\n align-content: center;\n }\n .justify-end {\n justify-content: flex-end;\n }\n .self-center {\n align-self: center;\n }\n .rounded-lg {\n border-radius: var(--radius-lg);\n }\n .rounded-md {\n border-radius: var(--radius-md);\n }\n .rounded-none {\n border-radius: 0;\n }\n .rounded-tl-md {\n border-top-left-radius: var(--radius-md);\n }\n .rounded-tl-none {\n border-top-left-radius: 0;\n }\n .rounded-tr-md {\n border-top-right-radius: var(--radius-md);\n }\n .rounded-tr-none {\n border-top-right-radius: 0;\n }\n .rounded-br-md {\n border-bottom-right-radius: var(--radius-md);\n }\n .rounded-br-none {\n border-bottom-right-radius: 0;\n }\n .rounded-bl-md {\n border-bottom-left-radius: var(--radius-md);\n }\n .rounded-bl-none {\n border-bottom-left-radius: 0;\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-r-0 {\n border-right-style: var(--tw-border-style);\n border-right-width: 0px;\n }\n .border-b-0 {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 0px;\n }\n .border-l-0 {\n border-left-style: var(--tw-border-style);\n border-left-width: 0px;\n }\n .border-none {\n --tw-border-style: none;\n border-style: none;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-blue-400 {\n border-color: var(--color-blue-400);\n }\n .border-clrs-navy {\n border-color: var(--clrs-navy, #001f3f);\n }\n .border-gray-300 {\n border-color: var(--color-gray-300);\n }\n .border-gray-600 {\n border-color: var(--color-gray-600);\n }\n .border-green-600 {\n border-color: var(--color-green-600);\n }\n .border-yellow-600 {\n border-color: var(--color-yellow-600);\n }\n .bg-blue-200 {\n background-color: var(--color-blue-200);\n }\n .bg-clrs-navy {\n background-color: var(--clrs-navy, #001f3f);\n }\n .bg-clrs-red {\n background-color: var(--clrs-red, #ff4136);\n }\n .bg-clrs-yellow {\n background-color: var(--clrs-yellow, #ffdc00);\n }\n .bg-gray-300 {\n background-color: var(--color-gray-300);\n }\n .bg-green-200 {\n background-color: var(--color-green-200);\n }\n .bg-yellow-300 {\n background-color: var(--color-yellow-300);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .text-right {\n text-align: right;\n }\n .align-middle {\n vertical-align: middle;\n }\n .align-top {\n vertical-align: top;\n }\n .font-sans {\n font-family: var(--font-sans);\n }\n .text-6xl {\n font-size: var(--text-6xl);\n line-height: var(--tw-leading, var(--text-6xl--line-height));\n }\n .text-lg {\n font-size: var(--text-lg);\n line-height: var(--tw-leading, var(--text-lg--line-height));\n }\n .text-sm {\n font-size: var(--text-sm);\n line-height: var(--tw-leading, var(--text-sm--line-height));\n }\n .text-xl {\n font-size: var(--text-xl);\n line-height: var(--tw-leading, var(--text-xl--line-height));\n }\n .text-xs {\n font-size: var(--text-xs);\n line-height: var(--tw-leading, var(--text-xs--line-height));\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .font-thin {\n --tw-font-weight: var(--font-weight-thin);\n font-weight: var(--font-weight-thin);\n }\n .text-clrs-gray {\n color: var(--clrs-gray, #aaaaaa);\n }\n .text-clrs-navy {\n color: var(--clrs-navy, #001f3f);\n }\n .text-clrs-red {\n color: var(--clrs-red, #ff4136);\n }\n .text-clrs-slate4 {\n color: var(--clrs-slate4, #4e5964);\n }\n .text-clrs-white {\n color: var(--clrs-white, #ffffff);\n }\n .text-white {\n color: var(--color-white);\n }\n .uppercase {\n text-transform: uppercase;\n }\n .italic {\n font-style: italic;\n }\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .opacity-25 {\n opacity: 25%;\n }\n .opacity-75 {\n opacity: 75%;\n }\n .shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)),\n 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .filter {\n filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,)\n var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,)\n var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);\n }\n .hover\\:text-clrs-navy {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-navy, #001f3f);\n }\n }\n }\n .hover\\:text-clrs-red {\n &:hover {\n @media (hover: hover) {\n color: var(--clrs-red, #ff4136);\n }\n }\n }\n .md\\:w-auto {\n @media (width >= 48rem) {\n width: auto;\n }\n }\n}\n@layer components {\n .ds1-main {\n margin: calc(var(--spacing) * 6);\n display: flex;\n flex-direction: column;\n font-family: var(--font-sans);\n color: var(--clrs-navy, #001f3f);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n}\n.ikon {\n height: 96px;\n width: 96px;\n}\n@media (min-width: 500px) {\n .ikon {\n height: 144px;\n width: 144px;\n }\n}\n@media (min-width: 700px) {\n .ikon {\n height: 192px;\n width: 192px;\n }\n}\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n@keyframes ping {\n 75%,\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n@keyframes pulse {\n 50% {\n opacity: 0.5;\n }\n}\n@keyframes bounce {\n 0%,\n 100% {\n transform: translateY(-25%);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: none;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n}\n@property --tw-border-style {\n syntax: '*';\n inherits: false;\n initial-value: solid;\n}\n@property --tw-font-weight {\n syntax: '*';\n inherits: false;\n}\n@property --tw-shadow {\n syntax: '*';\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n syntax: '*';\n inherits: false;\n}\n@property --tw-inset-shadow {\n syntax: '*';\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n syntax: '*';\n inherits: false;\n}\n@property --tw-ring-color {\n syntax: '*';\n inherits: false;\n}\n@property --tw-ring-shadow {\n syntax: '*';\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n syntax: '*';\n inherits: false;\n}\n@property --tw-inset-ring-shadow {\n syntax: '*';\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n syntax: '*';\n inherits: false;\n}\n@property --tw-ring-offset-width {\n syntax: '<length>';\n inherits: false;\n initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n syntax: '*';\n inherits: false;\n initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n syntax: '*';\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-blur {\n syntax: '*';\n inherits: false;\n}\n@property --tw-brightness {\n syntax: '*';\n inherits: false;\n}\n@property --tw-contrast {\n syntax: '*';\n inherits: false;\n}\n@property --tw-grayscale {\n syntax: '*';\n inherits: false;\n}\n@property --tw-hue-rotate {\n syntax: '*';\n inherits: false;\n}\n@property --tw-invert {\n syntax: '*';\n inherits: false;\n}\n@property --tw-opacity {\n syntax: '*';\n inherits: false;\n}\n@property --tw-saturate {\n syntax: '*';\n inherits: false;\n}\n@property --tw-sepia {\n syntax: '*';\n inherits: false;\n}\n";export{V as proto_autos}
@@ -1 +1 @@
1
- import{p as a,b as o}from"./p-6ffb2af1.js";export{s as setNonce}from"./p-6ffb2af1.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),a(s)})().then((async a=>(await t(),o([["p-adf54c85",[[1,"proto-autos",{tag:[1]}]]]],a))));
1
+ import{p as o,b as t}from"./p-b9d09fb7.js";export{s as setNonce}from"./p-b9d09fb7.js";import{g as a}from"./p-e1255160.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),o(t)})().then((async o=>(await a(),t([["p-cbdaff0e",[[1,"proto-autos",{tag:[1]}]]]],o))));
@@ -0,0 +1,381 @@
1
+ /*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */
2
+ @layer theme, base, components, utilities;
3
+ @layer theme {
4
+ :root {
5
+ --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
6
+ 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
7
+ --font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
8
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
9
+ 'Liberation Mono', 'Courier New', monospace;
10
+ --color-red-50: oklch(0.971 0.013 17.38);
11
+ --color-red-100: oklch(0.936 0.032 17.717);
12
+ --color-red-200: oklch(0.885 0.062 18.334);
13
+ --color-red-300: oklch(0.808 0.114 19.571);
14
+ --color-red-400: oklch(0.704 0.191 22.216);
15
+ --color-red-500: oklch(0.637 0.237 25.331);
16
+ --color-red-600: oklch(0.577 0.245 27.325);
17
+ --color-red-700: oklch(0.505 0.213 27.518);
18
+ --color-red-800: oklch(0.444 0.177 26.899);
19
+ --color-red-900: oklch(0.396 0.141 25.723);
20
+ --color-red-950: oklch(0.258 0.092 26.042);
21
+ --color-orange-50: oklch(0.98 0.016 73.684);
22
+ --color-orange-100: oklch(0.954 0.038 75.164);
23
+ --color-orange-200: oklch(0.901 0.076 70.697);
24
+ --color-orange-300: oklch(0.837 0.128 66.29);
25
+ --color-orange-400: oklch(0.75 0.183 55.934);
26
+ --color-orange-500: oklch(0.705 0.213 47.604);
27
+ --color-orange-600: oklch(0.646 0.222 41.116);
28
+ --color-orange-700: oklch(0.553 0.195 38.402);
29
+ --color-orange-800: oklch(0.47 0.157 37.304);
30
+ --color-orange-900: oklch(0.408 0.123 38.172);
31
+ --color-orange-950: oklch(0.266 0.079 36.259);
32
+ --color-amber-50: oklch(0.987 0.022 95.277);
33
+ --color-amber-100: oklch(0.962 0.059 95.617);
34
+ --color-amber-200: oklch(0.924 0.12 95.746);
35
+ --color-amber-300: oklch(0.879 0.169 91.605);
36
+ --color-amber-400: oklch(0.828 0.189 84.429);
37
+ --color-amber-500: oklch(0.769 0.188 70.08);
38
+ --color-amber-600: oklch(0.666 0.179 58.318);
39
+ --color-amber-700: oklch(0.555 0.163 48.998);
40
+ --color-amber-800: oklch(0.473 0.137 46.201);
41
+ --color-amber-900: oklch(0.414 0.112 45.904);
42
+ --color-amber-950: oklch(0.279 0.077 45.635);
43
+ --color-yellow-50: oklch(0.987 0.026 102.212);
44
+ --color-yellow-100: oklch(0.973 0.071 103.193);
45
+ --color-yellow-200: oklch(0.945 0.129 101.54);
46
+ --color-yellow-300: oklch(0.905 0.182 98.111);
47
+ --color-yellow-400: oklch(0.852 0.199 91.936);
48
+ --color-yellow-500: oklch(0.795 0.184 86.047);
49
+ --color-yellow-600: oklch(0.681 0.162 75.834);
50
+ --color-yellow-700: oklch(0.554 0.135 66.442);
51
+ --color-yellow-800: oklch(0.476 0.114 61.907);
52
+ --color-yellow-900: oklch(0.421 0.095 57.708);
53
+ --color-yellow-950: oklch(0.286 0.066 53.813);
54
+ --color-lime-50: oklch(0.986 0.031 120.757);
55
+ --color-lime-100: oklch(0.967 0.067 122.328);
56
+ --color-lime-200: oklch(0.938 0.127 124.321);
57
+ --color-lime-300: oklch(0.897 0.196 126.665);
58
+ --color-lime-400: oklch(0.841 0.238 128.85);
59
+ --color-lime-500: oklch(0.768 0.233 130.85);
60
+ --color-lime-600: oklch(0.648 0.2 131.684);
61
+ --color-lime-700: oklch(0.532 0.157 131.589);
62
+ --color-lime-800: oklch(0.453 0.124 130.933);
63
+ --color-lime-900: oklch(0.405 0.101 131.063);
64
+ --color-lime-950: oklch(0.274 0.072 132.109);
65
+ --color-green-50: oklch(0.982 0.018 155.826);
66
+ --color-green-100: oklch(0.962 0.044 156.743);
67
+ --color-green-200: oklch(0.925 0.084 155.995);
68
+ --color-green-300: oklch(0.871 0.15 154.449);
69
+ --color-green-400: oklch(0.792 0.209 151.711);
70
+ --color-green-500: oklch(0.723 0.219 149.579);
71
+ --color-green-600: oklch(0.627 0.194 149.214);
72
+ --color-green-700: oklch(0.527 0.154 150.069);
73
+ --color-green-800: oklch(0.448 0.119 151.328);
74
+ --color-green-900: oklch(0.393 0.095 152.535);
75
+ --color-green-950: oklch(0.266 0.065 152.934);
76
+ --color-emerald-50: oklch(0.979 0.021 166.113);
77
+ --color-emerald-100: oklch(0.95 0.052 163.051);
78
+ --color-emerald-200: oklch(0.905 0.093 164.15);
79
+ --color-emerald-300: oklch(0.845 0.143 164.978);
80
+ --color-emerald-400: oklch(0.765 0.177 163.223);
81
+ --color-emerald-500: oklch(0.696 0.17 162.48);
82
+ --color-emerald-600: oklch(0.596 0.145 163.225);
83
+ --color-emerald-700: oklch(0.508 0.118 165.612);
84
+ --color-emerald-800: oklch(0.432 0.095 166.913);
85
+ --color-emerald-900: oklch(0.378 0.077 168.94);
86
+ --color-emerald-950: oklch(0.262 0.051 172.552);
87
+ --color-teal-50: oklch(0.984 0.014 180.72);
88
+ --color-teal-100: oklch(0.953 0.051 180.801);
89
+ --color-teal-200: oklch(0.91 0.096 180.426);
90
+ --color-teal-300: oklch(0.855 0.138 181.071);
91
+ --color-teal-400: oklch(0.777 0.152 181.912);
92
+ --color-teal-500: oklch(0.704 0.14 182.503);
93
+ --color-teal-600: oklch(0.6 0.118 184.704);
94
+ --color-teal-700: oklch(0.511 0.096 186.391);
95
+ --color-teal-800: oklch(0.437 0.078 188.216);
96
+ --color-teal-900: oklch(0.386 0.063 188.416);
97
+ --color-teal-950: oklch(0.277 0.046 192.524);
98
+ --color-cyan-50: oklch(0.984 0.019 200.873);
99
+ --color-cyan-100: oklch(0.956 0.045 203.388);
100
+ --color-cyan-200: oklch(0.917 0.08 205.041);
101
+ --color-cyan-300: oklch(0.865 0.127 207.078);
102
+ --color-cyan-400: oklch(0.789 0.154 211.53);
103
+ --color-cyan-500: oklch(0.715 0.143 215.221);
104
+ --color-cyan-600: oklch(0.609 0.126 221.723);
105
+ --color-cyan-700: oklch(0.52 0.105 223.128);
106
+ --color-cyan-800: oklch(0.45 0.085 224.283);
107
+ --color-cyan-900: oklch(0.398 0.07 227.392);
108
+ --color-cyan-950: oklch(0.302 0.056 229.695);
109
+ --color-sky-50: oklch(0.977 0.013 236.62);
110
+ --color-sky-100: oklch(0.951 0.026 236.824);
111
+ --color-sky-200: oklch(0.901 0.058 230.902);
112
+ --color-sky-300: oklch(0.828 0.111 230.318);
113
+ --color-sky-400: oklch(0.746 0.16 232.661);
114
+ --color-sky-500: oklch(0.685 0.169 237.323);
115
+ --color-sky-600: oklch(0.588 0.158 241.966);
116
+ --color-sky-700: oklch(0.5 0.134 242.749);
117
+ --color-sky-800: oklch(0.443 0.11 240.79);
118
+ --color-sky-900: oklch(0.391 0.09 240.876);
119
+ --color-sky-950: oklch(0.293 0.066 243.157);
120
+ --color-blue-50: oklch(0.97 0.014 254.604);
121
+ --color-blue-100: oklch(0.932 0.032 255.585);
122
+ --color-blue-200: oklch(0.882 0.059 254.128);
123
+ --color-blue-300: oklch(0.809 0.105 251.813);
124
+ --color-blue-400: oklch(0.707 0.165 254.624);
125
+ --color-blue-500: oklch(0.623 0.214 259.815);
126
+ --color-blue-600: oklch(0.546 0.245 262.881);
127
+ --color-blue-700: oklch(0.488 0.243 264.376);
128
+ --color-blue-800: oklch(0.424 0.199 265.638);
129
+ --color-blue-900: oklch(0.379 0.146 265.522);
130
+ --color-blue-950: oklch(0.282 0.091 267.935);
131
+ --color-indigo-50: oklch(0.962 0.018 272.314);
132
+ --color-indigo-100: oklch(0.93 0.034 272.788);
133
+ --color-indigo-200: oklch(0.87 0.065 274.039);
134
+ --color-indigo-300: oklch(0.785 0.115 274.713);
135
+ --color-indigo-400: oklch(0.673 0.182 276.935);
136
+ --color-indigo-500: oklch(0.585 0.233 277.117);
137
+ --color-indigo-600: oklch(0.511 0.262 276.966);
138
+ --color-indigo-700: oklch(0.457 0.24 277.023);
139
+ --color-indigo-800: oklch(0.398 0.195 277.366);
140
+ --color-indigo-900: oklch(0.359 0.144 278.697);
141
+ --color-indigo-950: oklch(0.257 0.09 281.288);
142
+ --color-violet-50: oklch(0.969 0.016 293.756);
143
+ --color-violet-100: oklch(0.943 0.029 294.588);
144
+ --color-violet-200: oklch(0.894 0.057 293.283);
145
+ --color-violet-300: oklch(0.811 0.111 293.571);
146
+ --color-violet-400: oklch(0.702 0.183 293.541);
147
+ --color-violet-500: oklch(0.606 0.25 292.717);
148
+ --color-violet-600: oklch(0.541 0.281 293.009);
149
+ --color-violet-700: oklch(0.491 0.27 292.581);
150
+ --color-violet-800: oklch(0.432 0.232 292.759);
151
+ --color-violet-900: oklch(0.38 0.189 293.745);
152
+ --color-violet-950: oklch(0.283 0.141 291.089);
153
+ --color-purple-50: oklch(0.977 0.014 308.299);
154
+ --color-purple-100: oklch(0.946 0.033 307.174);
155
+ --color-purple-200: oklch(0.902 0.063 306.703);
156
+ --color-purple-300: oklch(0.827 0.119 306.383);
157
+ --color-purple-400: oklch(0.714 0.203 305.504);
158
+ --color-purple-500: oklch(0.627 0.265 303.9);
159
+ --color-purple-600: oklch(0.558 0.288 302.321);
160
+ --color-purple-700: oklch(0.496 0.265 301.924);
161
+ --color-purple-800: oklch(0.438 0.218 303.724);
162
+ --color-purple-900: oklch(0.381 0.176 304.987);
163
+ --color-purple-950: oklch(0.291 0.149 302.717);
164
+ --color-fuchsia-50: oklch(0.977 0.017 320.058);
165
+ --color-fuchsia-100: oklch(0.952 0.037 318.852);
166
+ --color-fuchsia-200: oklch(0.903 0.076 319.62);
167
+ --color-fuchsia-300: oklch(0.833 0.145 321.434);
168
+ --color-fuchsia-400: oklch(0.74 0.238 322.16);
169
+ --color-fuchsia-500: oklch(0.667 0.295 322.15);
170
+ --color-fuchsia-600: oklch(0.591 0.293 322.896);
171
+ --color-fuchsia-700: oklch(0.518 0.253 323.949);
172
+ --color-fuchsia-800: oklch(0.452 0.211 324.591);
173
+ --color-fuchsia-900: oklch(0.401 0.17 325.612);
174
+ --color-fuchsia-950: oklch(0.293 0.136 325.661);
175
+ --color-pink-50: oklch(0.971 0.014 343.198);
176
+ --color-pink-100: oklch(0.948 0.028 342.258);
177
+ --color-pink-200: oklch(0.899 0.061 343.231);
178
+ --color-pink-300: oklch(0.823 0.12 346.018);
179
+ --color-pink-400: oklch(0.718 0.202 349.761);
180
+ --color-pink-500: oklch(0.656 0.241 354.308);
181
+ --color-pink-600: oklch(0.592 0.249 0.584);
182
+ --color-pink-700: oklch(0.525 0.223 3.958);
183
+ --color-pink-800: oklch(0.459 0.187 3.815);
184
+ --color-pink-900: oklch(0.408 0.153 2.432);
185
+ --color-pink-950: oklch(0.284 0.109 3.907);
186
+ --color-rose-50: oklch(0.969 0.015 12.422);
187
+ --color-rose-100: oklch(0.941 0.03 12.58);
188
+ --color-rose-200: oklch(0.892 0.058 10.001);
189
+ --color-rose-300: oklch(0.81 0.117 11.638);
190
+ --color-rose-400: oklch(0.712 0.194 13.428);
191
+ --color-rose-500: oklch(0.645 0.246 16.439);
192
+ --color-rose-600: oklch(0.586 0.253 17.585);
193
+ --color-rose-700: oklch(0.514 0.222 16.935);
194
+ --color-rose-800: oklch(0.455 0.188 13.697);
195
+ --color-rose-900: oklch(0.41 0.159 10.272);
196
+ --color-rose-950: oklch(0.271 0.105 12.094);
197
+ --color-slate-50: oklch(0.984 0.003 247.858);
198
+ --color-slate-100: oklch(0.968 0.007 247.896);
199
+ --color-slate-200: oklch(0.929 0.013 255.508);
200
+ --color-slate-300: oklch(0.869 0.022 252.894);
201
+ --color-slate-400: oklch(0.704 0.04 256.788);
202
+ --color-slate-500: oklch(0.554 0.046 257.417);
203
+ --color-slate-600: oklch(0.446 0.043 257.281);
204
+ --color-slate-700: oklch(0.372 0.044 257.287);
205
+ --color-slate-800: oklch(0.279 0.041 260.031);
206
+ --color-slate-900: oklch(0.208 0.042 265.755);
207
+ --color-slate-950: oklch(0.129 0.042 264.695);
208
+ --color-gray-50: oklch(0.985 0.002 247.839);
209
+ --color-gray-100: oklch(0.967 0.003 264.542);
210
+ --color-gray-200: oklch(0.928 0.006 264.531);
211
+ --color-gray-300: oklch(0.872 0.01 258.338);
212
+ --color-gray-400: oklch(0.707 0.022 261.325);
213
+ --color-gray-500: oklch(0.551 0.027 264.364);
214
+ --color-gray-600: oklch(0.446 0.03 256.802);
215
+ --color-gray-700: oklch(0.373 0.034 259.733);
216
+ --color-gray-800: oklch(0.278 0.033 256.848);
217
+ --color-gray-900: oklch(0.21 0.034 264.665);
218
+ --color-gray-950: oklch(0.13 0.028 261.692);
219
+ --color-zinc-50: oklch(0.985 0 0);
220
+ --color-zinc-100: oklch(0.967 0.001 286.375);
221
+ --color-zinc-200: oklch(0.92 0.004 286.32);
222
+ --color-zinc-300: oklch(0.871 0.006 286.286);
223
+ --color-zinc-400: oklch(0.705 0.015 286.067);
224
+ --color-zinc-500: oklch(0.552 0.016 285.938);
225
+ --color-zinc-600: oklch(0.442 0.017 285.786);
226
+ --color-zinc-700: oklch(0.37 0.013 285.805);
227
+ --color-zinc-800: oklch(0.274 0.006 286.033);
228
+ --color-zinc-900: oklch(0.21 0.006 285.885);
229
+ --color-zinc-950: oklch(0.141 0.005 285.823);
230
+ --color-neutral-50: oklch(0.985 0 0);
231
+ --color-neutral-100: oklch(0.97 0 0);
232
+ --color-neutral-200: oklch(0.922 0 0);
233
+ --color-neutral-300: oklch(0.87 0 0);
234
+ --color-neutral-400: oklch(0.708 0 0);
235
+ --color-neutral-500: oklch(0.556 0 0);
236
+ --color-neutral-600: oklch(0.439 0 0);
237
+ --color-neutral-700: oklch(0.371 0 0);
238
+ --color-neutral-800: oklch(0.269 0 0);
239
+ --color-neutral-900: oklch(0.205 0 0);
240
+ --color-neutral-950: oklch(0.145 0 0);
241
+ --color-stone-50: oklch(0.985 0.001 106.423);
242
+ --color-stone-100: oklch(0.97 0.001 106.424);
243
+ --color-stone-200: oklch(0.923 0.003 48.717);
244
+ --color-stone-300: oklch(0.869 0.005 56.366);
245
+ --color-stone-400: oklch(0.709 0.01 56.259);
246
+ --color-stone-500: oklch(0.553 0.013 58.071);
247
+ --color-stone-600: oklch(0.444 0.011 73.639);
248
+ --color-stone-700: oklch(0.374 0.01 67.558);
249
+ --color-stone-800: oklch(0.268 0.007 34.298);
250
+ --color-stone-900: oklch(0.216 0.006 56.043);
251
+ --color-stone-950: oklch(0.147 0.004 49.25);
252
+ --color-black: #000;
253
+ --color-white: #fff;
254
+ --spacing: 0.25rem;
255
+ --breakpoint-sm: 40rem;
256
+ --breakpoint-md: 48rem;
257
+ --breakpoint-lg: 64rem;
258
+ --breakpoint-xl: 80rem;
259
+ --breakpoint-2xl: 96rem;
260
+ --container-3xs: 16rem;
261
+ --container-2xs: 18rem;
262
+ --container-xs: 20rem;
263
+ --container-sm: 24rem;
264
+ --container-md: 28rem;
265
+ --container-lg: 32rem;
266
+ --container-xl: 36rem;
267
+ --container-2xl: 42rem;
268
+ --container-3xl: 48rem;
269
+ --container-4xl: 56rem;
270
+ --container-5xl: 64rem;
271
+ --container-6xl: 72rem;
272
+ --container-7xl: 80rem;
273
+ --text-xs: 0.75rem;
274
+ --text-xs--line-height: calc(1 / 0.75);
275
+ --text-sm: 0.875rem;
276
+ --text-sm--line-height: calc(1.25 / 0.875);
277
+ --text-base: 1rem;
278
+ --text-base--line-height: calc(1.5 / 1);
279
+ --text-lg: 1.125rem;
280
+ --text-lg--line-height: calc(1.75 / 1.125);
281
+ --text-xl: 1.25rem;
282
+ --text-xl--line-height: calc(1.75 / 1.25);
283
+ --text-2xl: 1.5rem;
284
+ --text-2xl--line-height: calc(2 / 1.5);
285
+ --text-3xl: 1.875rem;
286
+ --text-3xl--line-height: calc(2.25 / 1.875);
287
+ --text-4xl: 2.25rem;
288
+ --text-4xl--line-height: calc(2.5 / 2.25);
289
+ --text-5xl: 3rem;
290
+ --text-5xl--line-height: 1;
291
+ --text-6xl: 3.75rem;
292
+ --text-6xl--line-height: 1;
293
+ --text-7xl: 4.5rem;
294
+ --text-7xl--line-height: 1;
295
+ --text-8xl: 6rem;
296
+ --text-8xl--line-height: 1;
297
+ --text-9xl: 8rem;
298
+ --text-9xl--line-height: 1;
299
+ --font-weight-thin: 100;
300
+ --font-weight-extralight: 200;
301
+ --font-weight-light: 300;
302
+ --font-weight-normal: 400;
303
+ --font-weight-medium: 500;
304
+ --font-weight-semibold: 600;
305
+ --font-weight-bold: 700;
306
+ --font-weight-extrabold: 800;
307
+ --font-weight-black: 900;
308
+ --tracking-tighter: -0.05em;
309
+ --tracking-tight: -0.025em;
310
+ --tracking-normal: 0em;
311
+ --tracking-wide: 0.025em;
312
+ --tracking-wider: 0.05em;
313
+ --tracking-widest: 0.1em;
314
+ --leading-tight: 1.25;
315
+ --leading-snug: 1.375;
316
+ --leading-normal: 1.5;
317
+ --leading-relaxed: 1.625;
318
+ --leading-loose: 2;
319
+ --radius-xs: 0.125rem;
320
+ --radius-sm: 0.25rem;
321
+ --radius-md: 0.375rem;
322
+ --radius-lg: 0.5rem;
323
+ --radius-xl: 0.75rem;
324
+ --radius-2xl: 1rem;
325
+ --radius-3xl: 1.5rem;
326
+ --radius-4xl: 2rem;
327
+ --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
328
+ --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
329
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
330
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
331
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
332
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
333
+ 0 4px 6px -4px rgb(0 0 0 / 0.1);
334
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
335
+ 0 8px 10px -6px rgb(0 0 0 / 0.1);
336
+ --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
337
+ --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
338
+ --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
339
+ --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
340
+ --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
341
+ --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
342
+ --drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
343
+ --drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
344
+ --drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
345
+ --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
346
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
347
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
348
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
349
+ --animate-spin: spin 1s linear infinite;
350
+ --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
351
+ --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
352
+ --animate-bounce: bounce 1s infinite;
353
+ --blur-xs: 4px;
354
+ --blur-sm: 8px;
355
+ --blur-md: 12px;
356
+ --blur-lg: 16px;
357
+ --blur-xl: 24px;
358
+ --blur-2xl: 40px;
359
+ --blur-3xl: 64px;
360
+ --perspective-dramatic: 100px;
361
+ --perspective-near: 300px;
362
+ --perspective-normal: 500px;
363
+ --perspective-midrange: 800px;
364
+ --perspective-distant: 1200px;
365
+ --aspect-video: 16 / 9;
366
+ --default-transition-duration: 150ms;
367
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
368
+ --default-font-family: var(--font-sans);
369
+ --default-font-feature-settings: var(--font-sans--font-feature-settings);
370
+ --default-font-variation-settings: var(
371
+ --font-sans--font-variation-settings
372
+ );
373
+ --default-mono-font-family: var(--font-mono);
374
+ --default-mono-font-feature-settings: var(
375
+ --font-mono--font-feature-settings
376
+ );
377
+ --default-mono-font-variation-settings: var(
378
+ --font-mono--font-variation-settings
379
+ );
380
+ }
381
+ }
@@ -1,3 +1,3 @@
1
- declare const TW_VERSION = "3.4.17";
1
+ declare const TW_VERSION = "4.0.0";
2
2
  export { TW_VERSION };
3
3
  export default TW_VERSION;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-autos-wc",
3
- "version": "0.0.978",
3
+ "version": "0.0.980",
4
4
  "description": "prototype - a simple GraphQL demo rendered in Stencil and Tailwind",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -27,21 +27,22 @@
27
27
  "format": "prettier --write src cSpell.json"
28
28
  },
29
29
  "dependencies": {
30
- "@stencil/core": "4.24.0",
30
+ "@stencil/core": "4.25.0",
31
31
  "@stencil/store": "2.0.16",
32
32
  "fetchql": "3.0.0",
33
- "proto-tailwindcss-clrs": "0.0.396",
34
- "tailwindcss": "3.4.17"
33
+ "proto-tailwindcss-clrs": "0.0.398",
34
+ "tailwindcss": "4.0.0"
35
35
  },
36
36
  "license": "MIT",
37
37
  "devDependencies": {
38
38
  "autoprefixer": "10.4.20",
39
39
  "concurrently": "9.1.2",
40
40
  "cspell": "8.17.2",
41
- "eslint": "9.18.0",
41
+ "eslint": "9.19.0",
42
42
  "postcss": "8.5.1",
43
43
  "prettier": "3.4.2",
44
- "prettier-plugin-tailwindcss": "0.6.10",
45
- "typescript": "5.7.3"
44
+ "prettier-plugin-tailwindcss": "0.6.11",
45
+ "typescript": "5.7.3",
46
+ "workbox-build": "7.3.0"
46
47
  }
47
48
  }
@@ -1 +0,0 @@
1
- import{g as e,f as r,h as t,r as o}from"./p-6ffb2af1.js";const n="proto-autos",i="data",a="pick",l=e=>{const r=localStorage.getItem(e?`${n}-${e}`:n);return r?JSON.parse(r):void 0},s=(e,r)=>{const t=e?`${n}-${e}`:n,o=JSON.stringify(r);localStorage.setItem(t,o)},c=e=>!("isConnected"in e)||e.isConnected,d=(()=>{let e;return(...r)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let r of e.keys())e.set(r,e.get(r).filter(c))})(...r)}),2e3)}})(),u=e=>"function"==typeof e?e():e;var f=function(){function e(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}();function b(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(){var r=this;b(this,e),this.interceptors=[],this.fetch=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.interceptorWrapper.apply(r,[fetch].concat(t))}}return f(e,[{key:"addInterceptors",value:function(e){var r=this,t=[];return Array.isArray(e)?e.map((function(e){return t.push(r.interceptors.length),r.interceptors.push(e)})):e instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(e)),this.updateInterceptors(),function(){return r.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(e){var r=this;Array.isArray(e)&&(e.map((function(e){return r.interceptors.splice(e,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(e,r){return[r].concat(e)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];var n=Promise.resolve(t);return this.reversedInterceptors.forEach((function(e){var r=e.request,o=e.requestError;(r||o)&&(n=n.then((function(){return r.apply(void 0,t)}),o))})),n=n.then((function(){return e.apply(void 0,t)})),this.reversedInterceptors.forEach((function(e){var r=e.response,t=e.responseError;(r||t)&&(n=n.then(r,t))})),n}}]),e}(),m=function(){function e(r){var t=r.url,o=r.interceptors,n=r.headers,i=r.onStart,a=r.onEnd,l=r.omitEmptyVariables,s=void 0!==l&&l,c=r.requestOptions,d=void 0===c?{}:c;b(this,e);var u=function(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},n),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=s,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:i,onEnd:a},u.addInterceptors(o),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}(e,p),f(e,[{key:"query",value:function(e){var r,t=this,o=e.operationName,n=e.query,i=e.variables,a=e.opts,l=void 0===a?{}:a,s=e.requestOptions,c=Object.assign({},this.requestObject,void 0===s?{}:s);return r=this.omitEmptyVariables||l.omitEmptyVariables?this.doOmitEmptyVariables(i):i,c.body=JSON.stringify({operationName:o,query:n,variables:r}),this.onStart(),this.fetch(this.url,c).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var r=e.data,o=e.errors;return new Promise((function(e,n){return t.onEnd(),r?Object.keys(r).every((function(e){return!r[e]}))?n(o):e({data:r,errors:o}):n(o||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getEnumTypes",value:function(e){var r=this,t={},o=e.filter((function(e){return!r.EnumMap[e]||(t[e]=r.EnumMap[e],!1)}));if(!o.length)return new Promise((function(e){e({data:t})}));var n="\n query {\n "+o.map((function(e){return e+': __type(name: "'+e+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",i=Object.assign({},this.requestObject);return i.body=JSON.stringify({query:n}),this.onStart(),this.fetch(this.url,i).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var o=e.data,n=e.errors;return new Promise((function(e,i){if(r.onEnd(),!o)return i(n||[{message:"Do not get any data."}]);if(Object.keys(o).every((function(e){return!o[e]}))&&n&&n.length)return i(n);var a=Object.assign(t,o);return Object.keys(o).map((function(e){return r.EnumMap[e]=o[e],e})),e({data:a,errors:n})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(e){var r=this,t={};return Object.keys(e).map((function(o){var n=e[o];return"string"==typeof n&&0===n.length||null==n||(t[o]=n instanceof Object?r.doOmitEmptyVariables(n):n),o})),t}}]),e}();const g={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:h}=(()=>{const t=((e,r=((e,r)=>e!==r))=>{const t=u(e);let o=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var r;o=new Map(Object.entries(null!==(r=u(e))&&void 0!==r?r:{})),n.reset.forEach((e=>e()))},a=e=>(n.get.forEach((r=>r(e))),o.get(e)),l=(e,t)=>{const i=o.get(e);r(t,i,e)&&(o.set(e,t),n.set.forEach((r=>r(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,r)=>a(r),ownKeys:()=>Array.from(o.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,r)=>o.has(r),set:(e,r,t)=>(l(r,t),!0)}),c=(e,r)=>(n[e].push(r),()=>{((e,r)=>{const t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.length--)})(n[e],r)});return{state:s,get:a,set:l,on:c,onChange:(r,t)=>{const o=c("set",((e,o)=>{e===r&&t(o)})),n=c("reset",(()=>t(u(e)[r])));return()=>{o(),n()}},use:(...e)=>{const r=e.reduce(((e,r)=>(r.set&&e.push(c("set",r.set)),r.get&&e.push(c("get",r.get)),r.reset&&e.push(c("reset",r.reset)),r.dispose&&e.push(c("dispose",r.dispose)),e)),[]);return()=>r.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const r=o.get(e);n.set.forEach((t=>t(e,r,r)))}}})(g,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const o=e();o&&((e,r,t)=>{const o=e.get(r);o?o.includes(t)||o.push(t):e.set(r,[t])})(t,r,o)},set:e=>{const o=t.get(e);o&&t.set(e,o.filter(r)),d(t)},reset:()=>{t.forEach((e=>e.forEach(r))),d(t)}}})()),t})(),w=(e=!1)=>{h.loading=e,h.error=void 0,h.pick=0,h.data=void 0,h.dealer=void 0},v=e=>{if(e){const{pick:r}=h;h.dealer=null!=r?e.list[r]:void 0,h.data=e,h.loading=!1}else h.data=void 0,h.loading=!1},y=e=>{const{data:r}=h;r&&void 0!==e?(h.pick=e,h.dealer=r.list[e]):(h.pick=0,h.dealer=void 0)};var x=new m({url:"https://gt-forza.vercel.app/graphql"});const k=()=>{w(!0),s(a,0),x.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((e=>{const r=e.data.uuid[0];x.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:r}}).then((e=>{const t=JSON.parse(JSON.stringify(e.data.solution.data.dealers)),o={id:r,list:t};s(i,o),v(o)}))}))},j=()=>{w();const e=l(i),r=l(a);e?(v(e),r&&y(r)):k()},O=k,S=e=>{s(a,e),y(e)},z=(...e)=>e.filter(Boolean).join(" "),E=e=>{const{value:r}=e,{dealerId:o,name:n,vehicles:i}=r||{},a=i?i.length:0;return t("div",{class:z("flex flex-wrap content-center","mb-4 rounded-lg bg-blue-200 p-4","border border-solid border-blue-400")},t("label",{class:"text-xl font-bold"},n?`${n} `:"",t("sup",null,a||"")),t("label",{class:"ml-auto self-center text-right text-sm"},o||""))},$=/^\#[0-9]*/,C=e=>null!=e.match($),N=e=>2554===e,q=e=>e>2010,A=e=>{const{vin:r,make:o,model:n,year:i,color:a}=e.value||{};return t("div",{class:z("flex align-middle","mb-1 rounded-lg p-4","border border-solid",N(i)?"border-clrs-navy bg-clrs-navy text-clrs-white":C(n)?"border-yellow-600 bg-yellow-300":q(i)?"border-green-600 bg-green-200":"border-gray-600 bg-gray-300")},t("div",{class:"mr-1.5 flex flex-col"},t("label",{class:"mb-2 text-xs"},r||""),t("label",{class:"text-lg font-bold"},o||""),t("label",{class:"mb-2 text-sm italic"},n||""),t("label",null,i||"",", ",a||""),t("label",null,N(i)?"- exotic... [ Sierra 117 ]":C(n)?"- track only...":"")),t("proto-ikon-loader",{class:"ikon ml-auto self-center",name:o,label:o.toLowerCase()}))},I=e=>{const{list:r}=e,o=r.length;return 0===o?"":t("div",{class:"flex flex-col"},o?r.map((e=>t(A,{value:e}))):"")},T=e=>{const{dealer:r}=e,{vehicles:o}=r||{vehicles:[]},n=o;return r?t("div",{class:"flex flex-col"},t(E,{value:r}),t(I,{list:n})):""},P="eswat2",U=()=>t("a",{class:"absolute right-0 top-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},t("proto-ikon-loader",{name:"fingerprint",size:24,label:"eswat2"})),J=()=>t("div",{class:"mb-4 mr-2 mt-2 flex flex-row"},t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.17")),M=e=>{const{label:r}=e;return t("h1",{class:z("text-center uppercase text-clrs-red","mb-11 ml-0 mr-0 mt-11","text-6xl font-thin")},r)},_=e=>{const r=e.hex||"currentColor",o=e.label||"loading...",n=e.size||24;return t("svg",{class:z(e.class||"","animate-spin"),width:n,height:n,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,o),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},D=()=>{const{loading:e,pick:r,data:o}=h||{},{list:n}=o||{list:[]},i=n.length-1;return e?"":t("div",{class:"flex"},t("div",{class:"refresh hover:text-clrs-red md:w-auto",onClick:()=>O()},t("proto-ikon-loader",{name:"refresh",size:24})),t("div",{class:z("ml-auto inline-flex justify-end","border border-solid border-gray-600","rounded-md")},n.map(((e,o)=>t("button",{class:z("h-8 w-8 border-none font-bold",0==o?"rounded-bl-md rounded-br-none rounded-tl-md rounded-tr-none":o==i?"rounded-bl-none rounded-br-md rounded-tl-none rounded-tr-md":"rounded-none",r==o?"bg-clrs-red text-white":"bg-clrs-yellow text-clrs-navy"),onClick:()=>S(o),title:`${e.name} (${e.vehicles.length})`},o+1)))))},V=class{constructor(e){o(this,e),this.tag="proto-autos"}componentDidLoad(){j()}render(){const{loading:e,dealer:r}=h;return t("main",{key:"eb918bee95389cd4c78c6a7b3134ada507c5a042",id:"app",class:"ds1-main relative"},t(U,{key:"efa617ee04ddd6c58650d1cf4d00f899c3520efa"}),t(M,{key:"6762516c1c9fc2d4490e9343d75f4f09f657fae6",label:"Auto Dealers"}),t(D,{key:"ce1aeeb560729f66726b859d6f9d5a4a410703b1"}),e?t(_,null):t("hr",{class:z("mb-4 ml-0 mr-0 mt-4","border-solid border-gray-300","border-b-0 border-l-0 border-r-0")}),t(T,{key:"63ef8ba16a60533a147c06e126442e9f2481f8fe",dealer:r}),t(J,{key:"00d32c34fcf933386a5e5f920e09f02f95dbfbf1"}))}};V.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.right-0{right:0px}.top-0{top:0px}.mb-1{margin-bottom:0.25rem}.mb-11{margin-bottom:2.75rem}.mb-2{margin-bottom:0.5rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-1\\.5{margin-right:0.375rem}.mr-2{margin-right:0.5rem}.mt-11{margin-top:2.75rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.justify-end{justify-content:flex-end}.self-center{align-self:center}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-none{border-radius:0px}.rounded-bl-md{border-bottom-left-radius:0.375rem}.rounded-bl-none{border-bottom-left-radius:0px}.rounded-br-md{border-bottom-right-radius:0.375rem}.rounded-br-none{border-bottom-right-radius:0px}.rounded-tl-md{border-top-left-radius:0.375rem}.rounded-tl-none{border-top-left-radius:0px}.rounded-tr-md{border-top-right-radius:0.375rem}.rounded-tr-none{border-top-right-radius:0px}.border{border-width:1px}.border-b-0{border-bottom-width:0px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-solid{border-style:solid}.border-none{border-style:none}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity:1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.ikon{height:96px;width:96px}@media (min-width: 500px){.ikon{height:144px;width:144px}}@media (min-width: 700px){.ikon{height:192px;width:192px}}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red, #ff4136)}@media (min-width: 768px){.md\\:w-auto{width:auto}}";export{V as proto_autos}