diff --git a/.gitignore b/.gitignore index dd5660b..0a66357 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /node_modules Gemfile.lock *.key +*~ diff --git a/app/assets/builds/@turbo-boost/elements.js b/app/assets/builds/@turbo-boost/elements.js index 0b1503e..5eeca36 100644 --- a/app/assets/builds/@turbo-boost/elements.js +++ b/app/assets/builds/@turbo-boost/elements.js @@ -1,13 +1,8 @@ -var $o=Object.defineProperty,jo=Object.defineProperties;var No=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable;var $n=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))Bo.call(t,n)&&$n(e,n,t[n]);if(Ln)for(var n of Ln(t))Mo.call(t,n)&&$n(e,n,t[n]);return e},K=(e,t)=>jo(e,No(t));var Ro=Object.defineProperty,Do=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable,Nn=(e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||(t={}))Ho.call(t,n)&&Nn(e,n,t[n]);if(jn)for(var n of jn(t))qo.call(t,n)&&Nn(e,n,t[n]);return e},Y=(e,t)=>Do(e,Po(t)),Io=Object.defineProperty,zo=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Mn=(e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Me=(e,t)=>{for(var n in t||(t={}))Wo.call(t,n)&&Mn(e,n,t[n]);if(Bn)for(var n of Bn(t))Vo.call(t,n)&&Mn(e,n,t[n]);return e},Xn=(e,t)=>zo(e,Fo(t)),Dt=!1,Pt=!1,ie=[];function Uo(e){Jo(e)}function Jo(e){ie.includes(e)||ie.push(e),Ko()}function Gn(e){let t=ie.indexOf(e);t!==-1&&ie.splice(t,1)}function Ko(){!Pt&&!Dt&&(Dt=!0,queueMicrotask(Xo))}function Xo(){Dt=!1,Pt=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Ht?Uo(n):n()}}),Zn=e.raw}function Rn(e){xe=e}function Yo(e){let t=()=>{};return[n=>{let r=xe(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),He(r))},r},()=>{t()}]}var Yn=[],Qn=[],er=[];function Qo(e){er.push(e)}function tr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Qn.push(t))}function ei(e){Yn.push(e)}function ti(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function nr(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(o=>o()),delete e._x_attributeCleanups[n])})}var en=new MutationObserver(on),tn=!1;function nn(){en.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),tn=!0}function rr(){ni(),en.disconnect(),tn=!1}var $e=[],$t=!1;function ni(){$e=$e.concat(en.takeRecords()),$e.length&&!$t&&($t=!0,queueMicrotask(()=>{ri(),$t=!1}))}function ri(){on($e),$e.length=0}function O(e){if(!tn)return e();rr();let t=e();return nn(),t}var rn=!1,ot=[];function oi(){rn=!0}function ii(){rn=!1,on(ot),ot=[]}function on(e){if(rn){ot=ot.concat(e);return}let t=[],n=[],r=new Map,o=new Map;for(let i=0;is.nodeType===1&&t.push(s)),e[i].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[i].type==="attributes")){let s=e[i].target,l=e[i].attributeName,a=e[i].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:l,value:s.getAttribute(l)})},d=()=>{o.has(s)||o.set(s,[]),o.get(s).push(l)};s.hasAttribute(l)&&a===null?u():s.hasAttribute(l)?(d(),u()):d()}o.forEach((i,s)=>{nr(s,i)}),r.forEach((i,s)=>{Yn.forEach(l=>l(s,i))});for(let i of n)if(!t.includes(i)&&(Qn.forEach(s=>s(i)),i._x_cleanups))for(;i._x_cleanups.length;)i._x_cleanups.pop()();t.forEach(i=>{i._x_ignoreSelf=!0,i._x_ignore=!0});for(let i of t)n.includes(i)||i.isConnected&&(delete i._x_ignoreSelf,delete i._x_ignore,er.forEach(s=>s(i)),i._x_ignore=!0,i._x_ignoreSelf=!0);t.forEach(i=>{delete i._x_ignoreSelf,delete i._x_ignore}),t=null,n=null,r=null,o=null}function or(e){return Ie(be(e))}function qe(e,t,n){return e._x_dataStack=[t,...be(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Dn(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,o])=>{n[r]=o})}function be(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?be(e.host):e.parentNode?be(e.parentNode):[]}function Ie(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(o=>o.hasOwnProperty(r)),get:(n,r)=>(e.find(o=>{if(o.hasOwnProperty(r)){let i=Object.getOwnPropertyDescriptor(o,r);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let s=i.get,l=i.set,a=i;s=s&&s.bind(t),l=l&&l.bind(t),s&&(s._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(o,r,Xn(Me({},a),{get:s,set:l}))}return!0}return!1})||{})[r],set:(n,r,o)=>{let i=e.find(s=>s.hasOwnProperty(r));return i?i[r]=o:e[e.length-1][r]=o,!0}});return t}function ir(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([i,{value:s,enumerable:l}])=>{if(l===!1||s===void 0)return;let a=o===""?i:`${o}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[i]=s.initialize(e,a,i):t(s)&&s!==r&&!(s instanceof Element)&&n(s,a)})};return n(e)}function sr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,o,i){return e(this.initialValue,()=>si(r,o),s=>lr(r,o,s),o,i)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let o=n.initialize.bind(n);n.initialize=(i,s,l)=>{let a=r.initialize(i,s,l);return n.initialValue=a,o(i,s,l)}}else n.initialValue=r;return n}}function si(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function lr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),lr(e[t[0]],t.slice(1),n)}}var ar={};function q(e,t){ar[e]=t}function qt(e,t){return Object.entries(ar).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[o,i]=hr(t);return o=Me({interceptor:sr},o),tr(t,i),r(t,o)},enumerable:!1})}),e}function li(e,t,n,...r){try{return n(...r)}catch(o){Re(o,e,t)}}function Re(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} +var Oo=Object.defineProperty,Co=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,jo=Object.prototype.propertyIsEnumerable,On=(e,t,n)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||(t={}))$o.call(t,n)&&On(e,n,t[n]);if(An)for(var n of An(t))jo.call(t,n)&&On(e,n,t[n]);return e},G=(e,t)=>Co(e,Lo(t)),No=Object.defineProperty,Bo=Object.defineProperties,Do=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Ln=(e,t,n)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ne=(e,t)=>{for(var n in t||(t={}))Mo.call(t,n)&&Ln(e,n,t[n]);if(Cn)for(var n of Cn(t))Ro.call(t,n)&&Ln(e,n,t[n]);return e},Wn=(e,t)=>Bo(e,Do(t)),Ot=!1,Ct=!1,re=[];function Po(e){Ho(e)}function Ho(e){re.includes(e)||re.push(e),qo()}function Vn(e){let t=re.indexOf(e);t!==-1&&re.splice(t,1)}function qo(){!Ct&&!Ot&&(Ot=!0,queueMicrotask(Io))}function Io(){Ot=!1,Ct=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Lt?Po(n):n()}}),Un=e.raw}function $n(e){ye=e}function Wo(e){let t=()=>{};return[n=>{let r=ye(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),Re(r))},r},()=>{t()}]}var Jn=[],Kn=[],Xn=[];function Vo(e){Xn.push(e)}function Gn(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Kn.push(t))}function Uo(e){Jn.push(e)}function Jo(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Zn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(o=>o()),delete e._x_attributeCleanups[n])})}var Vt=new MutationObserver(Xt),Ut=!1;function Jt(){Vt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ut=!0}function Yn(){Ko(),Vt.disconnect(),Ut=!1}var Ce=[],Et=!1;function Ko(){Ce=Ce.concat(Vt.takeRecords()),Ce.length&&!Et&&(Et=!0,queueMicrotask(()=>{Xo(),Et=!1}))}function Xo(){Xt(Ce),Ce.length=0}function C(e){if(!Ut)return e();Yn();let t=e();return Jt(),t}var Kt=!1,Ye=[];function Go(){Kt=!0}function Zo(){Kt=!1,Xt(Ye),Ye=[]}function Xt(e){if(Kt){Ye=Ye.concat(e);return}let t=[],n=[],r=new Map,o=new Map;for(let i=0;is.nodeType===1&&t.push(s)),e[i].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[i].type==="attributes")){let s=e[i].target,l=e[i].attributeName,a=e[i].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:l,value:s.getAttribute(l)})},d=()=>{o.has(s)||o.set(s,[]),o.get(s).push(l)};s.hasAttribute(l)&&a===null?u():s.hasAttribute(l)?(d(),u()):d()}o.forEach((i,s)=>{Zn(s,i)}),r.forEach((i,s)=>{Jn.forEach(l=>l(s,i))});for(let i of n)if(!t.includes(i)&&(Kn.forEach(s=>s(i)),i._x_cleanups))for(;i._x_cleanups.length;)i._x_cleanups.pop()();t.forEach(i=>{i._x_ignoreSelf=!0,i._x_ignore=!0});for(let i of t)n.includes(i)||i.isConnected&&(delete i._x_ignoreSelf,delete i._x_ignore,Xn.forEach(s=>s(i)),i._x_ignore=!0,i._x_ignoreSelf=!0);t.forEach(i=>{delete i._x_ignoreSelf,delete i._x_ignore}),t=null,n=null,r=null,o=null}function Qn(e){return He(me(e))}function Pe(e,t,n){return e._x_dataStack=[t,...me(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function jn(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,o])=>{n[r]=o})}function me(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?me(e.host):e.parentNode?me(e.parentNode):[]}function He(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(o=>o.hasOwnProperty(r)),get:(n,r)=>(e.find(o=>{if(o.hasOwnProperty(r)){let i=Object.getOwnPropertyDescriptor(o,r);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let s=i.get,l=i.set,a=i;s=s&&s.bind(t),l=l&&l.bind(t),s&&(s._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(o,r,Wn(Ne({},a),{get:s,set:l}))}return!0}return!1})||{})[r],set:(n,r,o)=>{let i=e.find(s=>s.hasOwnProperty(r));return i?i[r]=o:e[e.length-1][r]=o,!0}});return t}function er(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([i,{value:s,enumerable:l}])=>{if(l===!1||s===void 0)return;let a=o===""?i:`${o}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[i]=s.initialize(e,a,i):t(s)&&s!==r&&!(s instanceof Element)&&n(s,a)})};return n(e)}function tr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,o,i){return e(this.initialValue,()=>Yo(r,o),s=>nr(r,o,s),o,i)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let o=n.initialize.bind(n);n.initialize=(i,s,l)=>{let a=r.initialize(i,s,l);return n.initialValue=a,o(i,s,l)}}else n.initialValue=r;return n}}function Yo(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function nr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),nr(e[t[0]],t.slice(1),n)}}var rr={};function q(e,t){rr[e]=t}function $t(e,t){return Object.entries(rr).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[o,i]=ar(t);return o=Ne({interceptor:tr},o),Gn(t,i),r(t,o)},enumerable:!1})}),e}function Qo(e,t,n,...r){try{return n(...r)}catch(o){Be(o,e,t)}}function Be(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}var nt=!0;function ai(e){let t=nt;nt=!1,e(),nt=t}function me(e,t,n={}){let r;return N(e,t)(o=>r=o,n),r}function N(...e){return ur(...e)}var ur=cr;function ui(e){ur=e}function cr(e,t){let n={};qt(n,e);let r=[n,...be(e)];if(typeof t=="function")return ci(r,t);let o=fi(r,t,e);return li.bind(null,e,t,o)}function ci(e,t){return(n=()=>{},{scope:r={},params:o=[]}={})=>{let i=t.apply(Ie([r,...e]),o);it(n,i)}}var jt={};function di(e,t){if(jt[e])return jt[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(i){return Re(i,t,e),Promise.resolve()}})();return jt[e]=o,o}function fi(e,t,n){let r=di(t,n);return(o=()=>{},{scope:i={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let l=Ie([i,...e]);if(typeof r=="function"){let a=r(r,l).catch(u=>Re(u,n,t));r.finished?(it(o,r.result,l,s,n),r.result=void 0):a.then(u=>{it(o,u,l,s,n)}).catch(u=>Re(u,n,t)).finally(()=>r.result=void 0)}}}function it(e,t,n,r,o){if(nt&&typeof t=="function"){let i=t.apply(n,r);i instanceof Promise?i.then(s=>it(e,s,n,r)).catch(s=>Re(s,o,t)):e(i)}else typeof t=="object"&&t instanceof Promise?t.then(i=>e(i)):e(t)}var sn="x-";function Ee(e=""){return sn+e}function hi(e){sn=e}var It={};function T(e,t){return It[e]=t,{before(n){var r;if(!It[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let o=(r=oe.indexOf(n))!=null?r:oe.indexOf("DEFAULT");o>=0&&oe.splice(o,0,e)}}}function ln(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([s,l])=>({name:s,value:l})),i=dr(o);o=o.map(s=>i.find(l=>l.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(o)}let r={};return t.map(gr((o,i)=>r[o]=i)).filter(vr).map(gi(r,n)).sort(bi).map(o=>mi(e,o))}function dr(e){return Array.from(e).map(gr()).filter(t=>!vr(t))}var zt=!1,Le=new Map,fr=Symbol();function pi(e){zt=!0;let t=Symbol();fr=t,Le.set(t,[]);let n=()=>{for(;Le.get(t).length;)Le.get(t).shift()();Le.delete(t)},r=()=>{zt=!1,n()};e(n),r()}function hr(e){let t=[],n=i=>t.push(i),[r,o]=Yo(e);return t.push(o),[{Alpine:Fe,effect:r,cleanup:n,evaluateLater:N.bind(N,e),evaluate:me.bind(me,e)},()=>t.forEach(i=>i())]}function mi(e,t){let n=()=>{},r=It[t.type]||n,[o,i]=hr(e);ti(e,t.original,i);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,o),r=r.bind(r,e,t,o),zt?Le.get(fr).push(r):r())};return s.runCleanups=i,s}var pr=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),mr=e=>e;function gr(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:o}=br.reduce((i,s)=>s(i),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:o}}}var br=[];function an(e){br.push(e)}function vr({name:e}){return _r().test(e)}var _r=()=>new RegExp(`^${sn}([^:^.]+)\\b`);function gi(e,t){return({name:n,value:r})=>{let o=n.match(_r()),i=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[n]||n;return{type:o?o[1]:null,value:i?i[1]:null,modifiers:s.map(a=>a.replace(".","")),expression:r,original:l}}}var Ft="DEFAULT",oe=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","combobox","bind","init","for","mask","model","modelable","transition","show","if",Ft,"teleport"];function bi(e,t){let n=oe.indexOf(e.type)===-1?Ft:e.type,r=oe.indexOf(t.type)===-1?Ft:t.type;return oe.indexOf(n)-oe.indexOf(r)}function je(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Q(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(o=>Q(o,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Q(r,t,!1),r=r.nextElementSibling}function ve(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function vi(){document.body||ve("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `