1&&je.reverse(),V&&LP))return!1;var Y=w.get(i),V=w.get(a);if(Y&&V)return Y==a&&V==i;var q=-1,re=!0,fe=u&N?new Do:n;for(w.set(i,a),w.set(a,i);++q1?"& ":"")+a[d],a=a.join(u>2?", ":" "),i.replace(tt,`{
+/* [wrapped with `+a+`] */
+`)}function nk(i){return Ee(i)||zo(i)||!!(Cy&&i&&i[Cy])}function ui(i,a){var u=typeof i;return a=a??z,!!a&&(u=="number"||u!="symbol"&&ya.test(i))&&i>-1&&i%1==0&&i0){if(++a>=he)return arguments[0]}else a=0;return i.apply(n,arguments)}}function Zu(i,a){var u=-1,d=i.length,g=d-1;for(a=a===n?d:a;++u1?i[a-1]:n;return u=typeof u=="function"?(i.pop(),u):n,D0(i,u)});function L0(i){var a=y(i);return a.__chain__=!0,a}function pR(i,a){return a(i),i}function Ju(i,a){return a(i)}var hR=si(function(i){var a=i.length,u=a?i[0]:0,d=this.__wrapped__,g=function(w){return Jd(w,i)};return a>1||this.__actions__.length||!(d instanceof Le)||!ui(u)?this.thru(g):(d=d.slice(u,+u+(a?1:0)),d.__actions__.push({func:Ju,args:[g],thisArg:n}),new ar(d,this.__chain__).thru(function(w){return a&&!w.length&&w.push(n),w}))});function mR(){return L0(this)}function vR(){return new ar(this.value(),this.__chain__)}function gR(){this.__values__===n&&(this.__values__=q0(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function yR(){return this}function wR(i){for(var a,u=this;u instanceof Fu;){var d=R0(u);d.__index__=0,d.__values__=n,a?g.__wrapped__=d:a=d;var g=d;u=u.__wrapped__}return g.__wrapped__=i,a}function xR(){var i=this.__wrapped__;if(i instanceof Le){var a=i;return this.__actions__.length&&(a=new Le(this)),a=a.reverse(),a.__actions__.push({func:Ju,args:[kp],thisArg:n}),new ar(a,this.__chain__)}return this.thru(kp)}function bR(){return Qy(this.__wrapped__,this.__actions__)}var SR=Gu(function(i,a,u){Ke.call(i,u)?++i[u]:ai(i,u,1)});function _R(i,a,u){var d=Ee(i)?cy:pN;return u&&hn(i,a,u)&&(a=n),d(i,ve(a,3))}function CR(i,a){var u=Ee(i)?Fi:Dy;return u(i,ve(a,3))}var ER=s0(O0),NR=s0(P0);function kR(i,a){return qt(ec(i,a),1)}function RR(i,a){return qt(ec(i,a),F)}function OR(i,a,u){return u=u===n?1:ke(u),qt(ec(i,a),u)}function M0(i,a){var u=Ee(i)?ir:Bi;return u(i,ve(a,3))}function j0(i,a){var u=Ee(i)?VC:Ay;return u(i,ve(a,3))}var PR=Gu(function(i,a,u){Ke.call(i,u)?i[u].push(a):ai(i,u,[a])});function TR(i,a,u,d){i=Nn(i)?i:Aa(i),u=u&&!d?ke(u):0;var g=i.length;return u<0&&(u=Tt(g+u,0)),oc(i)?u<=g&&i.indexOf(a,u)>-1:!!g&&ba(i,a,u)>-1}var IR=Pe(function(i,a,u){var d=-1,g=typeof a=="function",w=Nn(i)?$(i.length):[];return Bi(i,function(R){w[++d]=g?jn(a,R,u):zl(R,a,u)}),w}),AR=Gu(function(i,a,u){ai(i,u,a)});function ec(i,a){var u=Ee(i)?ut:Uy;return u(i,ve(a,3))}function DR(i,a,u,d){return i==null?[]:(Ee(a)||(a=a==null?[]:[a]),u=d?n:u,Ee(u)||(u=u==null?[]:[u]),Hy(i,a,u))}var LR=Gu(function(i,a,u){i[u?0:1].push(a)},function(){return[[],[]]});function MR(i,a,u){var d=Ee(i)?Ud:hy,g=arguments.length<3;return d(i,ve(a,4),u,g,Bi)}function jR(i,a,u){var d=Ee(i)?qC:hy,g=arguments.length<3;return d(i,ve(a,4),u,g,Ay)}function FR(i,a){var u=Ee(i)?Fi:Dy;return u(i,rc(ve(a,3)))}function zR(i){var a=Ee(i)?Oy:TN;return a(i)}function UR(i,a,u){(u?hn(i,a,u):a===n)?a=1:a=ke(a);var d=Ee(i)?sN:IN;return d(i,a)}function $R(i){var a=Ee(i)?uN:DN;return a(i)}function BR(i){if(i==null)return 0;if(Nn(i))return oc(i)?_a(i):i.length;var a=an(i);return a==st||a==jt?i.size:op(i).length}function WR(i,a,u){var d=Ee(i)?$d:LN;return u&&hn(i,a,u)&&(a=n),d(i,ve(a,3))}var HR=Pe(function(i,a){if(i==null)return[];var u=a.length;return u>1&&hn(i,a[0],a[1])?a=[]:u>2&&hn(a[0],a[1],a[2])&&(a=[a[0]]),Hy(i,qt(a,1),[])}),tc=CE||function(){return Vt.Date.now()};function GR(i,a){if(typeof a!="function")throw new or(s);return i=ke(i),function(){if(--i<1)return a.apply(this,arguments)}}function F0(i,a,u){return a=u?n:a,a=i&&a==null?i.length:a,li(i,k,n,n,n,n,a)}function z0(i,a){var u;if(typeof a!="function")throw new or(s);return i=ke(i),function(){return--i>0&&(u=a.apply(this,arguments)),i<=1&&(a=n),u}}var Op=Pe(function(i,a,u){var d=T;if(u.length){var g=Ui(u,Ta(Op));d|=M}return li(i,d,a,u,g)}),U0=Pe(function(i,a,u){var d=T|_;if(u.length){var g=Ui(u,Ta(U0));d|=M}return li(a,d,i,u,g)});function $0(i,a,u){a=u?n:a;var d=li(i,C,n,n,n,n,n,a);return d.placeholder=$0.placeholder,d}function B0(i,a,u){a=u?n:a;var d=li(i,I,n,n,n,n,n,a);return d.placeholder=B0.placeholder,d}function W0(i,a,u){var d,g,w,R,P,L,Y=0,V=!1,q=!1,re=!0;if(typeof i!="function")throw new or(s);a=cr(a)||0,pt(u)&&(V=!!u.leading,q="maxWait"in u,w=q?Tt(cr(u.maxWait)||0,a):w,re="trailing"in u?!!u.trailing:re);function fe(Ct){var Nr=d,di=g;return d=g=n,Y=Ct,R=i.apply(di,Nr),R}function we(Ct){return Y=Ct,P=Hl(Te,a),V?fe(Ct):R}function Re(Ct){var Nr=Ct-L,di=Ct-Y,s1=a-Nr;return q?on(s1,w-di):s1}function xe(Ct){var Nr=Ct-L,di=Ct-Y;return L===n||Nr>=a||Nr<0||q&&di>=w}function Te(){var Ct=tc();if(xe(Ct))return je(Ct);P=Hl(Te,Re(Ct))}function je(Ct){return P=n,re&&d?fe(Ct):(d=g=n,R)}function $n(){P!==n&&Jy(P),Y=0,d=L=g=P=n}function mn(){return P===n?R:je(tc())}function Bn(){var Ct=tc(),Nr=xe(Ct);if(d=arguments,g=this,L=Ct,Nr){if(P===n)return we(L);if(q)return Jy(P),P=Hl(Te,a),fe(L)}return P===n&&(P=Hl(Te,a)),R}return Bn.cancel=$n,Bn.flush=mn,Bn}var KR=Pe(function(i,a){return Iy(i,1,a)}),YR=Pe(function(i,a,u){return Iy(i,cr(a)||0,u)});function VR(i){return li(i,U)}function nc(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new or(s);var u=function(){var d=arguments,g=a?a.apply(this,d):d[0],w=u.cache;if(w.has(g))return w.get(g);var R=i.apply(this,d);return u.cache=w.set(g,R)||w,R};return u.cache=new(nc.Cache||oi),u}nc.Cache=oi;function rc(i){if(typeof i!="function")throw new or(s);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function qR(i){return z0(2,i)}var XR=MN(function(i,a){a=a.length==1&&Ee(a[0])?ut(a[0],Fn(ve())):ut(qt(a,1),Fn(ve()));var u=a.length;return Pe(function(d){for(var g=-1,w=on(d.length,u);++g=a}),zo=jy(function(){return arguments}())?jy:function(i){return yt(i)&&Ke.call(i,"callee")&&!_y.call(i,"callee")},Ee=$.isArray,fO=iy?Fn(iy):wN;function Nn(i){return i!=null&&ic(i.length)&&!ci(i)}function _t(i){return yt(i)&&Nn(i)}function dO(i){return i===!0||i===!1||yt(i)&&pn(i)==Mt}var Ki=NE||$p,pO=oy?Fn(oy):xN;function hO(i){return yt(i)&&i.nodeType===1&&!Gl(i)}function mO(i){if(i==null)return!0;if(Nn(i)&&(Ee(i)||typeof i=="string"||typeof i.splice=="function"||Ki(i)||Ia(i)||zo(i)))return!i.length;var a=an(i);if(a==st||a==jt)return!i.size;if(Wl(i))return!op(i).length;for(var u in i)if(Ke.call(i,u))return!1;return!0}function vO(i,a){return Ul(i,a)}function gO(i,a,u){u=typeof u=="function"?u:n;var d=u?u(i,a):n;return d===n?Ul(i,a,n,u):!!d}function Tp(i){if(!yt(i))return!1;var a=pn(i);return a==Jn||a==Ue||typeof i.message=="string"&&typeof i.name=="string"&&!Gl(i)}function yO(i){return typeof i=="number"&&Ey(i)}function ci(i){if(!pt(i))return!1;var a=pn(i);return a==Ge||a==dn||a==bt||a==No}function G0(i){return typeof i=="number"&&i==ke(i)}function ic(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=z}function pt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function yt(i){return i!=null&&typeof i=="object"}var K0=ay?Fn(ay):SN;function wO(i,a){return i===a||ip(i,a,bp(a))}function xO(i,a,u){return u=typeof u=="function"?u:n,ip(i,a,bp(a),u)}function bO(i){return Y0(i)&&i!=+i}function SO(i){if(ok(i))throw new _e(l);return Fy(i)}function _O(i){return i===null}function CO(i){return i==null}function Y0(i){return typeof i=="number"||yt(i)&&pn(i)==Sn}function Gl(i){if(!yt(i)||pn(i)!=_n)return!1;var a=Tu(i);if(a===null)return!0;var u=Ke.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&ku.call(u)==xE}var Ip=ly?Fn(ly):_N;function EO(i){return G0(i)&&i>=-z&&i<=z}var V0=sy?Fn(sy):CN;function oc(i){return typeof i=="string"||!Ee(i)&&yt(i)&&pn(i)==nn}function Un(i){return typeof i=="symbol"||yt(i)&&pn(i)==Mn}var Ia=uy?Fn(uy):EN;function NO(i){return i===n}function kO(i){return yt(i)&&an(i)==br}function RO(i){return yt(i)&&pn(i)==er}var OO=qu(ap),PO=qu(function(i,a){return i<=a});function q0(i){if(!i)return[];if(Nn(i))return oc(i)?_r(i):En(i);if(Il&&i[Il])return sE(i[Il]());var a=an(i),u=a==st?Yd:a==jt?Cu:Aa;return u(i)}function fi(i){if(!i)return i===0?i:0;if(i=cr(i),i===F||i===-F){var a=i<0?-1:1;return a*te}return i===i?i:0}function ke(i){var a=fi(i),u=a%1;return a===a?u?a-u:a:0}function X0(i){return i?Lo(ke(i),0,ae):0}function cr(i){if(typeof i=="number")return i;if(Un(i))return ne;if(pt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=pt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=my(i);var u=ji.test(i);return u||ga.test(i)?GC(i.slice(2),u?2:8):Mi.test(i)?ne:+i}function Q0(i){return Kr(i,kn(i))}function TO(i){return i?Lo(ke(i),-z,z):i===0?i:0}function Be(i){return i==null?"":zn(i)}var IO=Oa(function(i,a){if(Wl(a)||Nn(a)){Kr(a,$t(a),i);return}for(var u in a)Ke.call(a,u)&&jl(i,u,a[u])}),Z0=Oa(function(i,a){Kr(a,kn(a),i)}),ac=Oa(function(i,a,u,d){Kr(a,kn(a),i,d)}),AO=Oa(function(i,a,u,d){Kr(a,$t(a),i,d)}),DO=si(Jd);function LO(i,a){var u=Ra(i);return a==null?u:Py(u,a)}var MO=Pe(function(i,a){i=Xe(i);var u=-1,d=a.length,g=d>2?a[2]:n;for(g&&hn(a[0],a[1],g)&&(d=1);++u1),w}),Kr(i,wp(i),u),d&&(u=lr(u,m|v|S,YN));for(var g=a.length;g--;)fp(u,a[g]);return u});function eP(i,a){return e1(i,rc(ve(a)))}var tP=si(function(i,a){return i==null?{}:RN(i,a)});function e1(i,a){if(i==null)return{};var u=ut(wp(i),function(d){return[d]});return a=ve(a),Gy(i,u,function(d,g){return a(d,g[0])})}function nP(i,a,u){a=Hi(a,i);var d=-1,g=a.length;for(g||(g=1,i=n);++da){var d=i;i=a,a=d}if(u||i%1||a%1){var g=Ny();return on(i+g*(a-i+HC("1e-"+((g+"").length-1))),a)}return sp(i,a)}var pP=Pa(function(i,a,u){return a=a.toLowerCase(),i+(u?r1(a):a)});function r1(i){return Lp(Be(i).toLowerCase())}function i1(i){return i=Be(i),i&&i.replace(wa,rE).replace(DC,"")}function hP(i,a,u){i=Be(i),a=zn(a);var d=i.length;u=u===n?d:Lo(ke(u),0,d);var g=u;return u-=a.length,u>=0&&i.slice(u,g)==a}function mP(i){return i=Be(i),i&&tr.test(i)?i.replace(zt,iE):i}function vP(i){return i=Be(i),i&&ie.test(i)?i.replace(ce,"\\$&"):i}var gP=Pa(function(i,a,u){return i+(u?"-":"")+a.toLowerCase()}),yP=Pa(function(i,a,u){return i+(u?" ":"")+a.toLowerCase()}),wP=l0("toLowerCase");function xP(i,a,u){i=Be(i),a=ke(a);var d=a?_a(i):0;if(!a||d>=a)return i;var g=(a-d)/2;return Vu(Lu(g),u)+i+Vu(Du(g),u)}function bP(i,a,u){i=Be(i),a=ke(a);var d=a?_a(i):0;return a&&d>>0,u?(i=Be(i),i&&(typeof a=="string"||a!=null&&!Ip(a))&&(a=zn(a),!a&&Sa(i))?Gi(_r(i),0,u):i.split(a,u)):[]}var RP=Pa(function(i,a,u){return i+(u?" ":"")+Lp(a)});function OP(i,a,u){return i=Be(i),u=u==null?0:Lo(ke(u),0,i.length),a=zn(a),i.slice(u,u+a.length)==a}function PP(i,a,u){var d=y.templateSettings;u&&hn(i,a,u)&&(a=n),i=Be(i),a=ac({},a,d,h0);var g=ac({},a.imports,d.imports,h0),w=$t(g),R=Kd(g,w),P,L,Y=0,V=a.interpolate||Oe,q="__p += '",re=Vd((a.escape||Oe).source+"|"+V.source+"|"+(V===W?Hr:Oe).source+"|"+(a.evaluate||Oe).source+"|$","g"),fe="//# sourceURL="+(Ke.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zC+"]")+`
+`;i.replace(re,function(xe,Te,je,$n,mn,Bn){return je||(je=$n),q+=i.slice(Y,Bn).replace(Kt,oE),Te&&(P=!0,q+=`' +
+__e(`+Te+`) +
+'`),mn&&(L=!0,q+=`';
+`+mn+`;
+__p += '`),je&&(q+=`' +
+((__t = (`+je+`)) == null ? '' : __t) +
+'`),Y=Bn+xe.length,xe}),q+=`';
+`;var we=Ke.call(a,"variable")&&a.variable;if(!we)q=`with (obj) {
+`+q+`
+}
+`;else if(Nt.test(we))throw new _e(c);q=(L?q.replace(va,""):q).replace(Ro,"$1").replace(Pl,"$1;"),q="function("+(we||"obj")+`) {
+`+(we?"":`obj || (obj = {});
+`)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+`:`;
+`)+q+`return __p
+}`;var Re=a1(function(){return $e(w,fe+"return "+q).apply(n,R)});if(Re.source=q,Tp(Re))throw Re;return Re}function TP(i){return Be(i).toLowerCase()}function IP(i){return Be(i).toUpperCase()}function AP(i,a,u){if(i=Be(i),i&&(u||a===n))return my(i);if(!i||!(a=zn(a)))return i;var d=_r(i),g=_r(a),w=vy(d,g),R=gy(d,g)+1;return Gi(d,w,R).join("")}function DP(i,a,u){if(i=Be(i),i&&(u||a===n))return i.slice(0,wy(i)+1);if(!i||!(a=zn(a)))return i;var d=_r(i),g=gy(d,_r(a))+1;return Gi(d,0,g).join("")}function LP(i,a,u){if(i=Be(i),i&&(u||a===n))return i.replace(ye,"");if(!i||!(a=zn(a)))return i;var d=_r(i),g=vy(d,_r(a));return Gi(d,g).join("")}function MP(i,a){var u=K,d=Z;if(pt(a)){var g="separator"in a?a.separator:g;u="length"in a?ke(a.length):u,d="omission"in a?zn(a.omission):d}i=Be(i);var w=i.length;if(Sa(i)){var R=_r(i);w=R.length}if(u>=w)return i;var P=u-_a(d);if(P<1)return d;var L=R?Gi(R,0,P).join(""):i.slice(0,P);if(g===n)return L+d;if(R&&(P+=L.length-P),Ip(g)){if(i.slice(P).search(g)){var Y,V=L;for(g.global||(g=Vd(g.source,Be(ri.exec(g))+"g")),g.lastIndex=0;Y=g.exec(V);)var q=Y.index;L=L.slice(0,q===n?P:q)}}else if(i.indexOf(zn(g),P)!=P){var re=L.lastIndexOf(g);re>-1&&(L=L.slice(0,re))}return L+d}function jP(i){return i=Be(i),i&&Ut.test(i)?i.replace(dt,dE):i}var FP=Pa(function(i,a,u){return i+(u?" ":"")+a.toUpperCase()}),Lp=l0("toUpperCase");function o1(i,a,u){return i=Be(i),a=u?n:a,a===n?lE(i)?mE(i):ZC(i):i.match(a)||[]}var a1=Pe(function(i,a){try{return jn(i,n,a)}catch(u){return Tp(u)?u:new _e(u)}}),zP=si(function(i,a){return ir(a,function(u){u=Yr(u),ai(i,u,Op(i[u],i))}),i});function UP(i){var a=i==null?0:i.length,u=ve();return i=a?ut(i,function(d){if(typeof d[1]!="function")throw new or(s);return[u(d[0]),d[1]]}):[],Pe(function(d){for(var g=-1;++gz)return[];var u=ae,d=on(i,ae);a=ve(a),i-=ae;for(var g=Gd(d,a);++u0||a<0)?new Le(u):(i<0?u=u.takeRight(-i):i&&(u=u.drop(i)),a!==n&&(a=ke(a),u=a<0?u.dropRight(-a):u.take(a-i)),u)},Le.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Le.prototype.toArray=function(){return this.take(ae)},Gr(Le.prototype,function(i,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),d=/^(?:head|last)$/.test(a),g=y[d?"take"+(a=="last"?"Right":""):a],w=d||/^find/.test(a);g&&(y.prototype[a]=function(){var R=this.__wrapped__,P=d?[1]:arguments,L=R instanceof Le,Y=P[0],V=L||Ee(R),q=function(Te){var je=g.apply(y,zi([Te],P));return d&&re?je[0]:je};V&&u&&typeof Y=="function"&&Y.length!=1&&(L=V=!1);var re=this.__chain__,fe=!!this.__actions__.length,we=w&&!re,Re=L&&!fe;if(!w&&V){R=Re?R:new Le(this);var xe=i.apply(R,P);return xe.__actions__.push({func:Ju,args:[q],thisArg:n}),new ar(xe,re)}return we&&Re?i.apply(this,P):(xe=this.thru(q),we?d?xe.value()[0]:xe.value():xe)})}),ir(["pop","push","shift","sort","splice","unshift"],function(i){var a=Eu[i],u=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",d=/^(?:pop|shift)$/.test(i);y.prototype[i]=function(){var g=arguments;if(d&&!this.__chain__){var w=this.value();return a.apply(Ee(w)?w:[],g)}return this[u](function(R){return a.apply(Ee(R)?R:[],g)})}}),Gr(Le.prototype,function(i,a){var u=y[a];if(u){var d=u.name+"";Ke.call(ka,d)||(ka[d]=[]),ka[d].push({name:a,func:u})}}),ka[Ku(n,_).name]=[{name:"wrapper",func:n}],Le.prototype.clone=jE,Le.prototype.reverse=FE,Le.prototype.value=zE,y.prototype.at=hR,y.prototype.chain=mR,y.prototype.commit=vR,y.prototype.next=gR,y.prototype.plant=wR,y.prototype.reverse=xR,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=bR,y.prototype.first=y.prototype.head,Il&&(y.prototype[Il]=yR),y},Ca=vE();To?((To.exports=Ca)._=Ca,jd._=Ca):Vt._=Ca}).call(Kl)})(Af,Af.exports);var Ho=Af.exports;const nL={chefInstructions:[],currentInstruction:null,availableItems:[]},W_=gd({name:"chefActions",initialState:nL,reducers:{resetChefInstructions:e=>{e.chefInstructions=[]},setCustomInstructionItem:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.customItem=t.payload.customItem)},addChefInstruction:(e,t)=>{e.chefInstructions.push(t.payload)},removeChefInstruction:(e,t)=>{e.chefInstructions.find(r=>Ho.isEqual(r,t.payload))&&(e.chefInstructions=e.chefInstructions.filter(r=>!Ho.isEqual(r,t.payload)))},updateChefInstructionItems:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);if(n){const r={...n,items:t.payload.items};e.chefInstructions=e.chefInstructions.filter(o=>!Ho.isEqual(o,n)),e.chefInstructions.push(r)}},updateInstructionTime:(e,t)=>{const{instruction:n,time:r}=t.payload,o=e.chefInstructions.find(l=>Ho.isEqual(l,n));o&&(o.action.time=r)},updateInstructionAction:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.action=t.payload.action)},updateInstructionNote:(e,t)=>{const n=e.chefInstructions.find(r=>r.id===t.payload.id);n&&(n.note=t.payload.note)},setAvailableItems:(e,t)=>{e.availableItems=t.payload},updateAvailableItem:(e,t)=>{const n=e.availableItems.findIndex(r=>Ho.isEqual(r,t.payload));n===-1?e.availableItems.push(t.payload):e.availableItems.splice(n,1)},updateAvailableItems:(e,t)=>{e.availableItems.push(...t.payload)}}}),{resetChefInstructions:rL,setCustomInstructionItem:iL,addChefInstruction:oL,removeChefInstruction:aL,updateChefInstructionItems:H_,updateInstructionTime:lL,updateInstructionAction:sL,updateInstructionNote:Nc,setAvailableItems:uL,updateAvailableItem:pg,updateAvailableItems:cL}=W_.actions,fL=W_.reducer;function sa({page:e,isNext:t}){const n=lg(),r=wn(),o=He(p=>p.recipe.title),l=He(p=>p.groups.ingredientsGroups),s=He(p=>p.actions.chefInstructions),c=async()=>{const p=l.flatMap(S=>S.items.flat()),m=p.every(S=>S.amount>0),v=p.every(S=>S.unit!==ml);return m&&v},f=async()=>{const p=s.every(v=>v.items.length>0||v.customItem),m=s.every(v=>v.action.time!==0);return s.length>0&&p&&m},h=async()=>{if(t){let p=!1,m="";if(e==="/quantities"&&(o.length>0&&l.length>0?p=!0:m="You must have a Recipe Title and ingredients!"),e==="/instructions")if(await c()){p=!0;const v=l.flatMap(S=>S.items.flat());r(uL(v))}else m="Fill in all quantities and units!";(e==="/print"||e==="/doublePrint")&&(await f()?p=!0:m="Create some instructions with ingredients!"),p?(r(Dr("")),n(e)):r(Dr(m))}else r(Dr("")),n(e)};return x.jsx("div",{"data-testid":t?"next":"back",onKeyDown:Oi,onClick:h,children:t?x.jsx("button",{className:"go-to-button-arrow right-0 bg-green-500 hover:bg-green-400 hover:translate-x-4",type:"button",children:"NEXT"}):x.jsx("button",{className:"go-to-button-arrow left-0 bg-red-500 hover:bg-red-400 hover:-translate-x-4",type:"button",children:"BACK"})})}function G_(){return x.jsx("div",{"data-testid":"print",onKeyDown:Oi,onClick:()=>console.log("here"),children:x.jsxs("button",{type:"button",className:"print-to-a4-button",children:["PRINT",x.jsx("br",{}),"TO A4"]})})}const to=["All-purpose flour","Almond flour","Almond milk","Apples","Artichoke","Asparagus","Avocado","Bacon","Baguette","Baking powder","Baking soda","Banana","Barley","Basil","Bay leaves","Beans","Bean sprouts","Beets","Black beans","Black-eyed peas","Black olives","Black pepper","Blueberries","Bread","Bread buns","Bread crumbs","Bread flour","Broccoli","Brown butter","Brown lentils","Brown rice","Brown sugar","Brussels sprouts","Butter","Buttermilk","Cabbage","Cake flour","Candied ginger","Carrots","Cashew nuts","Cauliflower","Celery","Cheddar cheese","Cherries","Chia seeds","Chicken breasts","Chicken broth","Chickpeas","Chili powder","Cilantro","Cinnamon","Cloves","Cocoa nibs","Cocoa powder","Coconut milk","Coconut oil","Condensed milk","Cornmeal","Cornstarch","Corn syrup","Couscous","Cranberries","Cream cheese","Cumin","Dark chocolate","Dill","Eggs","Eggwhite","Fennel","Feta cheese","Fish sauce","Garlic","Gelatin","Ginger","Goat cheese","Grapes","Graham crackers","Greek yogurt","Green beans","Green lentils","Green olives","Ground beef","Ham","Hazelnuts","Heavy cream","Honey","Hot sauce","Kale","Ketchup","Leek","Lemon","Lemon juice","Lemon zest","Lentils","Lima beans","Lime","Macadamia nuts","Maple syrup","Marzipan","Mayonnaise","Milk","Molasses","Mozzarella cheese","Mung beans","Mushrooms","Mustard","Nutmeg","Oats","Olive oil","Onion","Orange","Oregano","Paprika","Parmesan cheese","Parsley","Pasta","Peas","Pecan flour","Pecans","Pecorino cheese","Pineapple","Pine nuts","Poppy seeds","Pork chop","Potatoes","Powdered sugar","Quinoa","Raisins","Raspberries","Red Bell Pepper","Red pepper flakes","Rice","Ricotta cheese","Rosemary","Salmon","Salt","Sausage","Seasoning","Shortening","Sliced bread","Sour cream","Soy sauce","Spinach","Sugar","Swiss cheese","Thyme","Tomato paste","Tomato sauce","Turkey","Vanilla bean","Vanilla extract","Vanilla sugar","Vegetable oil","Vinegar","Water","Walnuts","White chocolate","Whole wheat flour","Yeast","Yellow Bell Pepper","Yogurt","Yolk","Zucchini"],kc=["mg","g","kg","ml","liter","whole","quart","pint","lbs","oz","tsp","tbsp","cup","can"],Zw=[ml,"gallon","piece","slice","strip","drop","dash","smidgen","bunch","jar","stick","clove","head","fillet","block","sheet","pack","packet","bag","bar","cube","handful","bottle","sprig","stalk","ear","bowl","scoop","dozen","pinch"],dL=[{actionName:"Add",time:-1,unit:"min",equipment:"hand"},{actionName:"Bake",time:20,unit:"min",equipment:"oven"},{actionName:"Blanch",time:1,unit:"min",equipment:"stove"},{actionName:"Blend",time:-1,unit:"min",equipment:"blender"},{actionName:"Boil",time:5,unit:"min",equipment:"stove"},{actionName:"Braise",time:10,unit:"min",equipment:"oven"},{actionName:"Broil",time:20,unit:"min",equipment:"broiler"},{actionName:"Chill",time:5,unit:"min",equipment:"hand"},{actionName:"Chop",time:-1,unit:"min",equipment:"knife"},{actionName:"Core",time:-1,unit:"min",equipment:"corer"},{actionName:"Cure",time:5,unit:"hours",equipment:"refrigerator"},{actionName:"Dice",time:-1,unit:"min",equipment:"knife"},{actionName:"Dress",time:-1,unit:"min",equipment:"none"},{actionName:"Emulsify",time:-1,unit:"min",equipment:"blender"},{actionName:"Fold",time:-1,unit:"min",equipment:"spatula"},{actionName:"Ferment",time:24,unit:"hours",equipment:"refrigerator"},{actionName:"Fry",time:5,unit:"min",equipment:"stove"},{actionName:"Garnish",time:-1,unit:"min",equipment:"none"},{actionName:"Glaze",time:-1,unit:"min",equipment:"brush"},{actionName:"Grate",time:-1,unit:"min",equipment:"grater"},{actionName:"Grill",time:20,unit:"min",equipment:"grill"},{actionName:"Infuse",time:-1,unit:"min",equipment:"stove"},{actionName:"Knead",time:10,unit:"min",equipment:"stand mixer"},{actionName:"Marinate",time:8,unit:"hours",equipment:"refrigerator"},{actionName:"Mince",time:-1,unit:"min",equipment:"knife"},{actionName:"Mix",time:-1,unit:"min",equipment:"bowl"},{actionName:"Peel",time:-1,unit:"min",equipment:"peeler"},{actionName:"Poach",time:8,unit:"min",equipment:"stove"},{actionName:"Purée",time:-1,unit:"min",equipment:"food processor"},{actionName:"Roast",time:20,unit:"min",equipment:"oven"},{actionName:"Sauté",time:5,unit:"min",equipment:"stove"},{actionName:"Score",time:-1,unit:"min",equipment:"knife"},{actionName:"Sear",time:2,unit:"min",equipment:"stove"},{actionName:"Season",time:-1,unit:"min",equipment:"none"},{actionName:"Shred",time:-1,unit:"min",equipment:"grater"},{actionName:"Sieve",time:-1,unit:"min",equipment:"sieve"},{actionName:"Simmer",time:30,unit:"min",equipment:"stove"},{actionName:"Slice",time:-1,unit:"min",equipment:"knife"},{actionName:"Smoke",time:2,unit:"hours",equipment:"smoker"},{actionName:"Steam",time:10,unit:"min",equipment:"steamer"},{actionName:"Stew",time:45,unit:"min",equipment:"slow cooker"},{actionName:"Strain",time:-1,unit:"min",equipment:"strainer"},{actionName:"Toast",time:2,unit:"min",equipment:"toaster"},{actionName:"Trim",time:-1,unit:"min",equipment:"knife"},{actionName:"Warm",time:5,unit:"min",equipment:"hand"},{actionName:"Whisk",time:5,unit:"min",equipment:"hand mixer"}],pL={title:"Mock",currentItem:"",currentGroupName:"",possibleItems:to,batches:1,invalidState:!1},K_=gd({name:"recipe",initialState:pL,reducers:{resetRecipe:e=>{e.title="",e.currentItem="",e.currentGroupName="",e.possibleItems=to,e.batches=1,e.invalidState=!1},toggleInvalidState:e=>{e.invalidState=!e.invalidState},nameRecipe:(e,t)=>{e.title=t.payload},nameGroup:(e,t)=>{e.currentGroupName=t.payload},setItem:(e,t)=>{e.currentItem=t.payload},updatePossibleItems:(e,t)=>{e.possibleItems=to.filter(n=>n.toLowerCase().includes(t.payload.toLowerCase()))},setBatches:(e,t)=>{e.batches=t.payload}}}),{nameRecipe:hL,nameGroup:Y_,setItem:mL,updatePossibleItems:vL,setBatches:XF,resetRecipe:V_,toggleInvalidState:QF}=K_.actions,gL=K_.reducer,yL={ingredientsGroups:[]},q_=gd({name:"groups",initialState:yL,reducers:{resetIngredientsGroup:e=>{e.ingredientsGroups=[]},addItemToIngredientGroup:(e,t)=>{const{groupName:n,itemName:r,item:o}=t.payload,l=e.ingredientsGroups.find(s=>s.groupName===n);if(l)if(o)l.items.push(o);else{const s={itemName:r,amount:0,unit:ml};l.items.push(s)}else e.ingredientsGroups.push({groupName:n,items:[{itemName:r,amount:0,unit:ml}]})},removeItemFromIngredientGroup:(e,t)=>{const{groupName:n,itemName:r}=t.payload,o=e.ingredientsGroups.find(l=>l.groupName===n);if(o){const l=o.items.findIndex(s=>s.itemName===r);l!==-1&&o.items.splice(l,1),o.items.length===0&&(e.ingredientsGroups=e.ingredientsGroups.filter(s=>s.groupName!==n))}},updateAmount:(e,t)=>{const{groupName:n,itemName:r,amount:o}=t.payload,l=e.ingredientsGroups.find(c=>c.groupName===n),s=l==null?void 0:l.items.filter(c=>c.itemName===r);s&&(s[0].amount=o)},updateUnit:(e,t)=>{const{groupName:n,itemName:r,unit:o}=t.payload,l=e.ingredientsGroups.find(c=>c.groupName===n),s=l==null?void 0:l.items.filter(c=>c.itemName===r);s&&(s[0].unit=o)}}}),{addItemToIngredientGroup:Dm,removeItemFromIngredientGroup:X_,updateAmount:is,updateUnit:Q_,resetIngredientsGroup:Z_}=q_.actions,wL=q_.reducer;function J_(){const e=lg(),t=wn(),n=async()=>{t(V_()),t(Dr("")),t(Z_()),t(rL()),e("/")};return x.jsx("div",{"data-testid":"make_another",onKeyDown:Oi,onClick:n,children:x.jsx("button",{className:"go-to-button-arrow right-0 py-4 bg-green-500 hover:bg-green-400 hover:-translate-y-4",type:"button",children:"MAKE ANOTHER"})})}function xL(){return He(t=>t.groups.ingredientsGroups).map(t=>x.jsxs("div",{className:"flex flex-row items-center justify-between md:gap-x-1 lg:gap-x-2 sm:mb-1 md:mb-2 lg:mb-3 xl:mb-4",children:[x.jsx("p",{className:"group-chip-dead text-fluidPrintSubtitle leading-none px-1 mr-4 sm:max-w-6 md:max-w-8 lg:max-w-10 xl:max-w-12",children:t.groupName}),x.jsx("div",{className:"flex flex-row items-start sm:gap-1 md:gap-2 lg:gap-3",children:t.items.map(n=>x.jsxs("div",{className:"flex flex-col center print-rounded",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"card-shadow print-rounded print-image"}),x.jsxs("div",{className:"py-2 h-fit",children:[x.jsx("p",{className:"text-fluidPrintSubtitle leading-tight max-w-6",children:n.itemName}),x.jsx("p",{className:"text-fluidPrintSubtitle leading-tight ",children:x.jsxs("b",{children:[n.amount," ",n.unit]})})]})]},`${t.groupName}_${n.itemName}`))})]},t.groupName))}function bL(){return He(t=>t.actions.chefInstructions).map((t,n)=>x.jsxs("div",{className:"flex flex-col md:mb-2 lg:mb-6 xl:mb-10 sm:w-5/6 md:w-5/6 lg:w-4/5 xl:w-full center items-start",children:[x.jsxs("div",{className:"relative flex flex-row md:gap-1 lg:gap-1 xl:gap-4 pointer-events-none items-center justify-start",children:[x.jsxs("span",{className:"instruction-print-text min-w-12",children:["Step ",n+1]}),x.jsx("div",{className:"a4scale-smaller",children:x.jsxs("div",{className:"bg-white card-shadow print-rounded print-image mr-2",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.action.actionName.toLowerCase()}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img print-image"}),x.jsx("p",{className:"instruction-print-text py-0.5",children:t.action.actionName})]})}),x.jsx("span",{className:"instruction-print-text",children:"THE"}),t.customItem?x.jsx("b",{className:"instruction-print-text",children:t.customItem}):x.jsx("div",{className:"center justify-start sm:w-20 md:w-44 lg:w-52 xl:w-56 flex flex-row flex-wrap",children:t.items.map(r=>x.jsxs("div",{className:"flex center py-1 px-1",children:[x.jsx("img",{src:`../src/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow print-image print-rounded"})," "]},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&x.jsxs("span",{className:"flex instruction-print-text min-w-12",children:["FOR ",x.jsx("br",{}),t.action.time," ",t.action.unit]})]}),x.jsx("span",{className:"instruction-print-text pt-0.5 lg:pt-1",children:t.note})]},`${t.id}`))}function SL(){const e=He(r=>r.recipe.title);let t=0;const n=document.querySelector("#a4_1");return n&&(t=n.getBoundingClientRect().width/n.getBoundingClientRect().height),x.jsxs("div",{"data-testid":"doubleResultpage",className:"relative min-h-screen flex flex-col",children:[x.jsx(J_,{}),x.jsx("span",{className:`absolute top-1/3 left-0 ml-12 font-bold ${t>.709&&t<.7095?"text-green-600":"text-red-600"}`,children:t}),x.jsx(sa,{page:"/instructions",isNext:!1}),x.jsxs("div",{className:"flex flex-row center gap-x-8 mt-28 mb-16",children:[x.jsxs("div",{id:"a4_1",className:"relative flex flex-col a4ratio w-1/3 text-center input-border items-center",children:[x.jsx("h1",{className:"recipe-title",children:e}),x.jsx("h2",{className:"recipe-subtitle-text mb-1",children:"page 1"}),x.jsx("hr",{className:"w-1/2 border-gray-200 md:mb-2 lg:mb-4"}),x.jsx("h2",{className:"recipe-subtitle-text sm:mb-2 md:mb-4 lg:mb-8",children:"Ingredients:"}),x.jsx("div",{className:"flex flex-col justify-center",children:x.jsx(xL,{})})]}),x.jsxs("div",{id:"a4_2",className:"relative flex flex-col a4ratio w-1/3 text-center input-border items-center",children:[x.jsx("h1",{className:"recipe-title",children:e}),x.jsx("h2",{className:"recipe-subtitle-text mb-1",children:"page 2"}),x.jsx("hr",{className:"w-1/2 border-gray-200 mb-2"}),x.jsx("h2",{className:"recipe-subtitle-text lg:mb-1 xl:mb-4",children:"Steps:"}),x.jsx("div",{className:"flex flex-col justify-center",children:x.jsx("div",{className:"flex flex-col center",children:x.jsx(bL,{})})}),x.jsx("h2",{className:"recipe-subtitle-text mb-2",children:"Enjoy !"})]})]}),x.jsx("div",{className:"fixed bottom-0 right-0 go-to-button-arrow mb-0",children:x.jsx(G_,{})})]})}function hg(){const e=He(r=>r.warning.warning),t=wn();O.useEffect(()=>{const r=setTimeout(()=>{t(Dr(""))},4e3);return()=>clearTimeout(r)},[t]);const n=()=>{t(Dr(""))};return x.jsx("div",{className:"toast font-indie",onClick:n,onKeyDown:Oi,"data-testid":"snack",children:e})}function _L(){const e=wn(),t=He(p=>p.recipe.possibleItems),n=He(p=>p.recipe.currentGroupName),r=He(p=>p.recipe.currentItem),o=He(p=>p.recipe.title),l=He(p=>p.warning.warning),s=He(p=>p.groups.ingredientsGroups),c=(p,m,v)=>{if(p.preventDefault(),!m)e(Dr("Enter a group name!"));else if(!v)e(Dr("Search an ingredient!"));else if(t.length===0)e(Dr("No items found!"));else if(t.length===1){const S=s.filter(E=>E.groupName===m)[0];if(S)if(S.items.filter(N=>N.itemName===t[0])[0])e(Dr("Ingredient is already in the group!"));else{const N={groupName:m,itemName:t[0]};e(Dm(N))}else{const E={groupName:m,itemName:t[0]};e(Dm(E))}}else e(Dr("Too many ingredients at once!"))},f=p=>{const m=p.currentTarget.value;e(mL(m)),e(vL(m))},h=()=>{e(V_()),e(Z_())};return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex flex-col w-full h-1/4 center text-center",children:[x.jsx("h1",{className:"mt-4 text-fluidTitle font-shadowsLight",children:"Welcome to a4recipe"}),x.jsx("h3",{className:"pt-2 pb-2 text-fluidSubtitle",children:"Name your recipe and start adding ingredients!"}),x.jsx("input",{type:"text",required:!0,className:`w-inputs center input-border xl:w-96 ${o.length===0&&"required-element-border"}`,placeholder:"Give your recipe a name",value:o,onChange:p=>e(hL(p.target.value)),onKeyDown:p=>{p.key==="Enter"&&p.target.blur()},onFocus:Qc}),x.jsx("div",{className:"md:justify-between lg:justify-center gap-y-4",children:x.jsxs("form",{className:"pt-4 pb-2",children:[x.jsxs("div",{className:"flex flex-row center w-full mb-4 gap-4",children:[x.jsx("input",{type:"text",className:"input-border text-center w-96 lg:mr-8",placeholder:"Search ingredients",value:r,onInput:f,onFocus:Qc}),x.jsx("input",{type:"text",className:"input-border w-60",placeholder:"Give them a group name",value:n,onChange:p=>e(Y_(p.target.value)),onFocus:Qc})]}),x.jsxs("div",{className:"flex flex-row justify-between",children:[x.jsx("button",{type:"button",className:"sexy-button bg-slate-500 hover:bg-white hover:text-slate-500 focus:text-slate-500 focus:bg-gray-200 text-gray-50",onClick:h,children:"RESET"}),x.jsx("button",{form:"addIngredientsSelect",type:"submit",className:"sexy-button bg-blue-500 hover:bg-white hover:text-blue-500 focus:text-blue-500 focus:bg-gray-200 text-gray-50",onClick:p=>c(p,n,r),children:"ADD"})]})]})})]}),l&&x.jsx(hg,{})]})}const CL="modulepreload",EL=function(e){return"/"+e},Jw={},NL=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=EL(c),c in Jw)return;Jw[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":CL,f||(p.as="script",p.crossOrigin=""),p.href=c,s&&p.setAttribute("nonce",s),document.head.appendChild(p),f)return new Promise((m,v)=>{p.addEventListener("load",m),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})};var kL={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},RL={prefix:"fas",iconName:"angles-right",icon:[512,512,[187,"angle-double-right"],"f101","M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]},e2={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},t2={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},OL={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},yd=OL,PL={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},TL={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},IL={prefix:"fas",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]},ZF={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]};function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;o--){var l=n[o],s=(l.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=l)}return lt.head.insertBefore(t,r),e}}var iM="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Js(){for(var e=12,t="";e-- >0;)t+=iM[Math.random()*62|0];return t}function Cl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function xg(e){return e.classList?Cl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function p2(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function oM(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(p2(e[n]),'" ')},"").trim()}function wd(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function bg(e){return e.size!==Jr.size||e.x!==Jr.x||e.y!==Jr.y||e.rotate!==Jr.rotate||e.flipX||e.flipY}function aM(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},l="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(l," ").concat(s," ").concat(c)},h={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:f,path:h}}function lM(e){var t=e.transform,n=e.width,r=n===void 0?Mm:n,o=e.height,l=o===void 0?Mm:o,s=e.startCentered,c=s===void 0?!1:s,f="";return c&&a2?f+="translate(".concat(t.x/Vi-r/2,"em, ").concat(t.y/Vi-l/2,"em) "):c?f+="translate(calc(-50% + ".concat(t.x/Vi,"em), calc(-50% + ").concat(t.y/Vi,"em)) "):f+="translate(".concat(t.x/Vi,"em, ").concat(t.y/Vi,"em) "),f+="scale(".concat(t.size/Vi*(t.flipX?-1:1),", ").concat(t.size/Vi*(t.flipY?-1:1),") "),f+="rotate(".concat(t.rotate,"deg) "),f}var sM=`:root, :host {
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
+ --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
+ --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
+ --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
+}
+
+svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
+ overflow: visible;
+ box-sizing: content-box;
+}
+
+.svg-inline--fa {
+ display: var(--fa-display, inline-block);
+ height: 1em;
+ overflow: visible;
+ vertical-align: -0.125em;
+}
+.svg-inline--fa.fa-2xs {
+ vertical-align: 0.1em;
+}
+.svg-inline--fa.fa-xs {
+ vertical-align: 0em;
+}
+.svg-inline--fa.fa-sm {
+ vertical-align: -0.0714285705em;
+}
+.svg-inline--fa.fa-lg {
+ vertical-align: -0.2em;
+}
+.svg-inline--fa.fa-xl {
+ vertical-align: -0.25em;
+}
+.svg-inline--fa.fa-2xl {
+ vertical-align: -0.3125em;
+}
+.svg-inline--fa.fa-pull-left {
+ margin-right: var(--fa-pull-margin, 0.3em);
+ width: auto;
+}
+.svg-inline--fa.fa-pull-right {
+ margin-left: var(--fa-pull-margin, 0.3em);
+ width: auto;
+}
+.svg-inline--fa.fa-li {
+ width: var(--fa-li-width, 2em);
+ top: 0.25em;
+}
+.svg-inline--fa.fa-fw {
+ width: var(--fa-fw-width, 1.25em);
+}
+
+.fa-layers svg.svg-inline--fa {
+ bottom: 0;
+ left: 0;
+ margin: auto;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
+.fa-layers-counter, .fa-layers-text {
+ display: inline-block;
+ position: absolute;
+ text-align: center;
+}
+
+.fa-layers {
+ display: inline-block;
+ height: 1em;
+ position: relative;
+ text-align: center;
+ vertical-align: -0.125em;
+ width: 1em;
+}
+.fa-layers svg.svg-inline--fa {
+ -webkit-transform-origin: center center;
+ transform-origin: center center;
+}
+
+.fa-layers-text {
+ left: 50%;
+ top: 50%;
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);
+ -webkit-transform-origin: center center;
+ transform-origin: center center;
+}
+
+.fa-layers-counter {
+ background-color: var(--fa-counter-background-color, #ff253a);
+ border-radius: var(--fa-counter-border-radius, 1em);
+ box-sizing: border-box;
+ color: var(--fa-inverse, #fff);
+ line-height: var(--fa-counter-line-height, 1);
+ max-width: var(--fa-counter-max-width, 5em);
+ min-width: var(--fa-counter-min-width, 1.5em);
+ overflow: hidden;
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
+ right: var(--fa-right, 0);
+ text-overflow: ellipsis;
+ top: var(--fa-top, 0);
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
+ transform: scale(var(--fa-counter-scale, 0.25));
+ -webkit-transform-origin: top right;
+ transform-origin: top right;
+}
+
+.fa-layers-bottom-right {
+ bottom: var(--fa-bottom, 0);
+ right: var(--fa-right, 0);
+ top: auto;
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
+ transform: scale(var(--fa-layers-scale, 0.25));
+ -webkit-transform-origin: bottom right;
+ transform-origin: bottom right;
+}
+
+.fa-layers-bottom-left {
+ bottom: var(--fa-bottom, 0);
+ left: var(--fa-left, 0);
+ right: auto;
+ top: auto;
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
+ transform: scale(var(--fa-layers-scale, 0.25));
+ -webkit-transform-origin: bottom left;
+ transform-origin: bottom left;
+}
+
+.fa-layers-top-right {
+ top: var(--fa-top, 0);
+ right: var(--fa-right, 0);
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
+ transform: scale(var(--fa-layers-scale, 0.25));
+ -webkit-transform-origin: top right;
+ transform-origin: top right;
+}
+
+.fa-layers-top-left {
+ left: var(--fa-left, 0);
+ right: auto;
+ top: var(--fa-top, 0);
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
+ transform: scale(var(--fa-layers-scale, 0.25));
+ -webkit-transform-origin: top left;
+ transform-origin: top left;
+}
+
+.fa-1x {
+ font-size: 1em;
+}
+
+.fa-2x {
+ font-size: 2em;
+}
+
+.fa-3x {
+ font-size: 3em;
+}
+
+.fa-4x {
+ font-size: 4em;
+}
+
+.fa-5x {
+ font-size: 5em;
+}
+
+.fa-6x {
+ font-size: 6em;
+}
+
+.fa-7x {
+ font-size: 7em;
+}
+
+.fa-8x {
+ font-size: 8em;
+}
+
+.fa-9x {
+ font-size: 9em;
+}
+
+.fa-10x {
+ font-size: 10em;
+}
+
+.fa-2xs {
+ font-size: 0.625em;
+ line-height: 0.1em;
+ vertical-align: 0.225em;
+}
+
+.fa-xs {
+ font-size: 0.75em;
+ line-height: 0.0833333337em;
+ vertical-align: 0.125em;
+}
+
+.fa-sm {
+ font-size: 0.875em;
+ line-height: 0.0714285718em;
+ vertical-align: 0.0535714295em;
+}
+
+.fa-lg {
+ font-size: 1.25em;
+ line-height: 0.05em;
+ vertical-align: -0.075em;
+}
+
+.fa-xl {
+ font-size: 1.5em;
+ line-height: 0.0416666682em;
+ vertical-align: -0.125em;
+}
+
+.fa-2xl {
+ font-size: 2em;
+ line-height: 0.03125em;
+ vertical-align: -0.1875em;
+}
+
+.fa-fw {
+ text-align: center;
+ width: 1.25em;
+}
+
+.fa-ul {
+ list-style-type: none;
+ margin-left: var(--fa-li-margin, 2.5em);
+ padding-left: 0;
+}
+.fa-ul > li {
+ position: relative;
+}
+
+.fa-li {
+ left: calc(var(--fa-li-width, 2em) * -1);
+ position: absolute;
+ text-align: center;
+ width: var(--fa-li-width, 2em);
+ line-height: inherit;
+}
+
+.fa-border {
+ border-color: var(--fa-border-color, #eee);
+ border-radius: var(--fa-border-radius, 0.1em);
+ border-style: var(--fa-border-style, solid);
+ border-width: var(--fa-border-width, 0.08em);
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
+}
+
+.fa-pull-left {
+ float: left;
+ margin-right: var(--fa-pull-margin, 0.3em);
+}
+
+.fa-pull-right {
+ float: right;
+ margin-left: var(--fa-pull-margin, 0.3em);
+}
+
+.fa-beat {
+ -webkit-animation-name: fa-beat;
+ animation-name: fa-beat;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
+}
+
+.fa-bounce {
+ -webkit-animation-name: fa-bounce;
+ animation-name: fa-bounce;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
+}
+
+.fa-fade {
+ -webkit-animation-name: fa-fade;
+ animation-name: fa-fade;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
+}
+
+.fa-beat-fade {
+ -webkit-animation-name: fa-beat-fade;
+ animation-name: fa-beat-fade;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
+}
+
+.fa-flip {
+ -webkit-animation-name: fa-flip;
+ animation-name: fa-flip;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
+}
+
+.fa-shake {
+ -webkit-animation-name: fa-shake;
+ animation-name: fa-shake;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
+ animation-timing-function: var(--fa-animation-timing, linear);
+}
+
+.fa-spin {
+ -webkit-animation-name: fa-spin;
+ animation-name: fa-spin;
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
+ animation-delay: var(--fa-animation-delay, 0s);
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
+ animation-duration: var(--fa-animation-duration, 2s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
+ animation-timing-function: var(--fa-animation-timing, linear);
+}
+
+.fa-spin-reverse {
+ --fa-animation-direction: reverse;
+}
+
+.fa-pulse,
+.fa-spin-pulse {
+ -webkit-animation-name: fa-spin;
+ animation-name: fa-spin;
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
+ animation-direction: var(--fa-animation-direction, normal);
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
+ animation-duration: var(--fa-animation-duration, 1s);
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
+ animation-timing-function: var(--fa-animation-timing, steps(8));
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .fa-beat,
+.fa-bounce,
+.fa-fade,
+.fa-beat-fade,
+.fa-flip,
+.fa-pulse,
+.fa-shake,
+.fa-spin,
+.fa-spin-pulse {
+ -webkit-animation-delay: -1ms;
+ animation-delay: -1ms;
+ -webkit-animation-duration: 1ms;
+ animation-duration: 1ms;
+ -webkit-animation-iteration-count: 1;
+ animation-iteration-count: 1;
+ -webkit-transition-delay: 0s;
+ transition-delay: 0s;
+ -webkit-transition-duration: 0s;
+ transition-duration: 0s;
+ }
+}
+@-webkit-keyframes fa-beat {
+ 0%, 90% {
+ -webkit-transform: scale(1);
+ transform: scale(1);
+ }
+ 45% {
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
+ transform: scale(var(--fa-beat-scale, 1.25));
+ }
+}
+@keyframes fa-beat {
+ 0%, 90% {
+ -webkit-transform: scale(1);
+ transform: scale(1);
+ }
+ 45% {
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
+ transform: scale(var(--fa-beat-scale, 1.25));
+ }
+}
+@-webkit-keyframes fa-bounce {
+ 0% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+ 10% {
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
+ }
+ 30% {
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
+ }
+ 50% {
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
+ }
+ 57% {
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
+ }
+ 64% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+ 100% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+}
+@keyframes fa-bounce {
+ 0% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+ 10% {
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
+ }
+ 30% {
+ -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
+ transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
+ }
+ 50% {
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
+ }
+ 57% {
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
+ }
+ 64% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+ 100% {
+ -webkit-transform: scale(1, 1) translateY(0);
+ transform: scale(1, 1) translateY(0);
+ }
+}
+@-webkit-keyframes fa-fade {
+ 50% {
+ opacity: var(--fa-fade-opacity, 0.4);
+ }
+}
+@keyframes fa-fade {
+ 50% {
+ opacity: var(--fa-fade-opacity, 0.4);
+ }
+}
+@-webkit-keyframes fa-beat-fade {
+ 0%, 100% {
+ opacity: var(--fa-beat-fade-opacity, 0.4);
+ -webkit-transform: scale(1);
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 1;
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
+ }
+}
+@keyframes fa-beat-fade {
+ 0%, 100% {
+ opacity: var(--fa-beat-fade-opacity, 0.4);
+ -webkit-transform: scale(1);
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 1;
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
+ }
+}
+@-webkit-keyframes fa-flip {
+ 50% {
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
+ }
+}
+@keyframes fa-flip {
+ 50% {
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
+ }
+}
+@-webkit-keyframes fa-shake {
+ 0% {
+ -webkit-transform: rotate(-15deg);
+ transform: rotate(-15deg);
+ }
+ 4% {
+ -webkit-transform: rotate(15deg);
+ transform: rotate(15deg);
+ }
+ 8%, 24% {
+ -webkit-transform: rotate(-18deg);
+ transform: rotate(-18deg);
+ }
+ 12%, 28% {
+ -webkit-transform: rotate(18deg);
+ transform: rotate(18deg);
+ }
+ 16% {
+ -webkit-transform: rotate(-22deg);
+ transform: rotate(-22deg);
+ }
+ 20% {
+ -webkit-transform: rotate(22deg);
+ transform: rotate(22deg);
+ }
+ 32% {
+ -webkit-transform: rotate(-12deg);
+ transform: rotate(-12deg);
+ }
+ 36% {
+ -webkit-transform: rotate(12deg);
+ transform: rotate(12deg);
+ }
+ 40%, 100% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+}
+@keyframes fa-shake {
+ 0% {
+ -webkit-transform: rotate(-15deg);
+ transform: rotate(-15deg);
+ }
+ 4% {
+ -webkit-transform: rotate(15deg);
+ transform: rotate(15deg);
+ }
+ 8%, 24% {
+ -webkit-transform: rotate(-18deg);
+ transform: rotate(-18deg);
+ }
+ 12%, 28% {
+ -webkit-transform: rotate(18deg);
+ transform: rotate(18deg);
+ }
+ 16% {
+ -webkit-transform: rotate(-22deg);
+ transform: rotate(-22deg);
+ }
+ 20% {
+ -webkit-transform: rotate(22deg);
+ transform: rotate(22deg);
+ }
+ 32% {
+ -webkit-transform: rotate(-12deg);
+ transform: rotate(-12deg);
+ }
+ 36% {
+ -webkit-transform: rotate(12deg);
+ transform: rotate(12deg);
+ }
+ 40%, 100% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+}
+@-webkit-keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+@keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+.fa-rotate-90 {
+ -webkit-transform: rotate(90deg);
+ transform: rotate(90deg);
+}
+
+.fa-rotate-180 {
+ -webkit-transform: rotate(180deg);
+ transform: rotate(180deg);
+}
+
+.fa-rotate-270 {
+ -webkit-transform: rotate(270deg);
+ transform: rotate(270deg);
+}
+
+.fa-flip-horizontal {
+ -webkit-transform: scale(-1, 1);
+ transform: scale(-1, 1);
+}
+
+.fa-flip-vertical {
+ -webkit-transform: scale(1, -1);
+ transform: scale(1, -1);
+}
+
+.fa-flip-both,
+.fa-flip-horizontal.fa-flip-vertical {
+ -webkit-transform: scale(-1, -1);
+ transform: scale(-1, -1);
+}
+
+.fa-rotate-by {
+ -webkit-transform: rotate(var(--fa-rotate-angle, 0));
+ transform: rotate(var(--fa-rotate-angle, 0));
+}
+
+.fa-stack {
+ display: inline-block;
+ vertical-align: middle;
+ height: 2em;
+ position: relative;
+ width: 2.5em;
+}
+
+.fa-stack-1x,
+.fa-stack-2x {
+ bottom: 0;
+ left: 0;
+ margin: auto;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: var(--fa-stack-z-index, auto);
+}
+
+.svg-inline--fa.fa-stack-1x {
+ height: 1em;
+ width: 1.25em;
+}
+.svg-inline--fa.fa-stack-2x {
+ height: 2em;
+ width: 2.5em;
+}
+
+.fa-inverse {
+ color: var(--fa-inverse, #fff);
+}
+
+.sr-only,
+.fa-sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.sr-only-focusable:not(:focus),
+.fa-sr-only-focusable:not(:focus) {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.svg-inline--fa .fa-primary {
+ fill: var(--fa-primary-color, currentColor);
+ opacity: var(--fa-primary-opacity, 1);
+}
+
+.svg-inline--fa .fa-secondary {
+ fill: var(--fa-secondary-color, currentColor);
+ opacity: var(--fa-secondary-opacity, 0.4);
+}
+
+.svg-inline--fa.fa-swap-opacity .fa-primary {
+ opacity: var(--fa-secondary-opacity, 0.4);
+}
+
+.svg-inline--fa.fa-swap-opacity .fa-secondary {
+ opacity: var(--fa-primary-opacity, 1);
+}
+
+.svg-inline--fa mask .fa-primary,
+.svg-inline--fa mask .fa-secondary {
+ fill: black;
+}
+
+.fad.fa-inverse,
+.fa-duotone.fa-inverse {
+ color: var(--fa-inverse, #fff);
+}`;function h2(){var e=l2,t=s2,n=de.cssPrefix,r=de.replacementClass,o=sM;if(n!==e||r!==t){var l=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");o=o.replace(l,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(c,".".concat(r))}return o}var ax=!1;function xh(){de.autoAddCss&&!ax&&(rM(h2()),ax=!0)}var uM={mixout:function(){return{dom:{css:h2,insertCss:xh}}},hooks:function(){return{beforeDOMElementCreation:function(){xh()},beforeI2svg:function(){xh()}}}},Ei=yo||{};Ei[Ci]||(Ei[Ci]={});Ei[Ci].styles||(Ei[Ci].styles={});Ei[Ci].hooks||(Ei[Ci].hooks={});Ei[Ci].shims||(Ei[Ci].shims=[]);var Lr=Ei[Ci],m2=[],cM=function e(){lt.removeEventListener("DOMContentLoaded",e),Lf=1,m2.map(function(t){return t()})},Lf=!1;Pi&&(Lf=(lt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(lt.readyState),Lf||lt.addEventListener("DOMContentLoaded",cM));function fM(e){Pi&&(Lf?setTimeout(e,0):m2.push(e))}function pu(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,l=o===void 0?[]:o;return typeof e=="string"?p2(e):"<".concat(t," ").concat(oM(r),">").concat(l.map(pu).join(""),"").concat(t,">")}function lx(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var bh=function(t,n,r,o){var l=Object.keys(t),s=l.length,c=n,f,h,p;for(r===void 0?(f=1,p=t[l[0]]):(f=0,p=r);f=55296&&o<=56319&&n=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function sx(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function zm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,l=sx(t);typeof Lr.hooks.addPack=="function"&&!o?Lr.hooks.addPack(e,sx(t)):Lr.styles[e]=se(se({},Lr.styles[e]||{}),l),e==="fas"&&zm("fa",t)}var Dc,Lc,Mc,qa=Lr.styles,hM=Lr.shims,mM=(Dc={},Lt(Dc,ot,Object.values(Qs[ot])),Lt(Dc,xt,Object.values(Qs[xt])),Dc),Sg=null,v2={},g2={},y2={},w2={},x2={},vM=(Lc={},Lt(Lc,ot,Object.keys(qs[ot])),Lt(Lc,xt,Object.keys(qs[xt])),Lc);function gM(e){return~ZL.indexOf(e)}function yM(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!gM(o)?o:null}var b2=function(){var t=function(l){return bh(qa,function(s,c,f){return s[f]=bh(c,l,{}),s},{})};v2=t(function(o,l,s){if(l[3]&&(o[l[3]]=s),l[2]){var c=l[2].filter(function(f){return typeof f=="number"});c.forEach(function(f){o[f.toString(16)]=s})}return o}),g2=t(function(o,l,s){if(o[s]=s,l[2]){var c=l[2].filter(function(f){return typeof f=="string"});c.forEach(function(f){o[f]=s})}return o}),x2=t(function(o,l,s){var c=l[2];return o[s]=s,c.forEach(function(f){o[f]=s}),o});var n="far"in qa||de.autoFetchSvg,r=bh(hM,function(o,l){var s=l[0],c=l[1],f=l[2];return c==="far"&&!n&&(c="fas"),typeof s=="string"&&(o.names[s]={prefix:c,iconName:f}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:c,iconName:f}),o},{names:{},unicodes:{}});y2=r.names,w2=r.unicodes,Sg=xd(de.styleDefault,{family:de.familyDefault})};nM(function(e){Sg=xd(e.styleDefault,{family:de.familyDefault})});b2();function _g(e,t){return(v2[e]||{})[t]}function wM(e,t){return(g2[e]||{})[t]}function Qo(e,t){return(x2[e]||{})[t]}function S2(e){return y2[e]||{prefix:null,iconName:null}}function xM(e){var t=w2[e],n=_g("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function wo(){return Sg}var Cg=function(){return{prefix:null,iconName:null,rest:[]}};function xd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ot:n,o=qs[r][e],l=Xs[r][e]||Xs[r][o],s=e in Lr.styles?e:null;return l||s||null}var ux=(Mc={},Lt(Mc,ot,Object.keys(Qs[ot])),Lt(Mc,xt,Object.keys(Qs[xt])),Mc);function bd(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,l=(t={},Lt(t,ot,"".concat(de.cssPrefix,"-").concat(ot)),Lt(t,xt,"".concat(de.cssPrefix,"-").concat(xt)),t),s=null,c=ot;(e.includes(l[ot])||e.some(function(h){return ux[ot].includes(h)}))&&(c=ot),(e.includes(l[xt])||e.some(function(h){return ux[xt].includes(h)}))&&(c=xt);var f=e.reduce(function(h,p){var m=yM(de.cssPrefix,p);if(qa[p]?(p=mM[c].includes(p)?KL[c][p]:p,s=p,h.prefix=p):vM[c].indexOf(p)>-1?(s=p,h.prefix=xd(p,{family:c})):m?h.iconName=m:p!==de.replacementClass&&p!==l[ot]&&p!==l[xt]&&h.rest.push(p),!o&&h.prefix&&h.iconName){var v=s==="fa"?S2(h.iconName):{},S=Qo(h.prefix,h.iconName);v.prefix&&(s=null),h.iconName=v.iconName||S||h.iconName,h.prefix=v.prefix||h.prefix,h.prefix==="far"&&!qa.far&&qa.fas&&!de.autoFetchSvg&&(h.prefix="fas")}return h},Cg());return(e.includes("fa-brands")||e.includes("fab"))&&(f.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(f.prefix="fad"),!f.prefix&&c===xt&&(qa.fass||de.autoFetchSvg)&&(f.prefix="fass",f.iconName=Qo(f.prefix,f.iconName)||f.iconName),(f.prefix==="fa"||s==="fa")&&(f.prefix=wo()||"fas"),f}var bM=function(){function e(){AL(this,e),this.definitions={}}return LL(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),l=0;l0&&p.forEach(function(m){typeof m=="string"&&(n[c][m]=h)}),n[c][f]=h}),n}}]),e}(),cx=[],Xa={},ol={},SM=Object.keys(ol);function _M(e,t){var n=t.mixoutsTo;return cx=e,Xa={},Object.keys(ol).forEach(function(r){SM.indexOf(r)===-1&&delete ol[r]}),cx.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),Df(o[s])==="object"&&Object.keys(o[s]).forEach(function(c){n[s]||(n[s]={}),n[s][c]=o[s][c]})}),r.hooks){var l=r.hooks();Object.keys(l).forEach(function(s){Xa[s]||(Xa[s]=[]),Xa[s].push(l[s])})}r.provides&&r.provides(ol)}),n}function Um(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Pi?(ca("beforeI2svg",t),Ni("pseudoElements2svg",t),Ni("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;de.autoReplaceSvg===!1&&(de.autoReplaceSvg=!0),de.observeMutations=!0,fM(function(){kM({autoReplaceSvgRoot:n}),ca("watch",t)})}},NM={icon:function(t){if(t===null)return null;if(Df(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Qo(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=xd(t[0]);return{prefix:r,iconName:Qo(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(de.cssPrefix,"-"))>-1||t.match(YL))){var o=bd(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||wo(),iconName:Qo(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var l=wo();return{prefix:l,iconName:Qo(l,t)||t}}}},Zn={noAuto:CM,config:de,dom:EM,parse:NM,library:_2,findIconDefinition:$m,toHtml:pu},kM=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?lt:n;(Object.keys(Lr.styles).length>0||de.autoFetchSvg)&&Pi&&de.autoReplaceSvg&&Zn.dom.i2svg({node:r})};function Sd(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return pu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Pi){var r=lt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function RM(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,l=e.styles,s=e.transform;if(bg(s)&&n.found&&!r.found){var c=n.width,f=n.height,h={x:c/f/2,y:.5};o.style=wd(se(se({},l),{},{"transform-origin":"".concat(h.x+s.x/16,"em ").concat(h.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function OM(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,l=e.symbol,s=l===!0?"".concat(t,"-").concat(de.cssPrefix,"-").concat(n):l;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:se(se({},o),{},{id:s}),children:r}]}]}function Eg(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,l=e.iconName,s=e.transform,c=e.symbol,f=e.title,h=e.maskId,p=e.titleId,m=e.extra,v=e.watchable,S=v===void 0?!1:v,E=r.found?r:n,N=E.width,T=E.height,_=o==="fak",b=[de.replacementClass,l?"".concat(de.cssPrefix,"-").concat(l):""].filter(function(U){return m.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(m.classes).join(" "),C={children:[],attributes:se(se({},m.attributes),{},{"data-prefix":o,"data-icon":l,class:b,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(N," ").concat(T)})},I=_&&!~m.classes.indexOf("fa-fw")?{width:"".concat(N/T*16*.0625,"em")}:{};S&&(C.attributes[ua]=""),f&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(p||Js())},children:[f]}),delete C.attributes.title);var M=se(se({},C),{},{prefix:o,iconName:l,main:n,mask:r,maskId:h,transform:s,symbol:c,styles:se(se({},I),m.styles)}),G=r.found&&n.found?Ni("generateAbstractMask",M)||{children:[],attributes:{}}:Ni("generateAbstractIcon",M)||{children:[],attributes:{}},k=G.children,B=G.attributes;return M.children=k,M.attributes=B,c?OM(M):RM(M)}function fx(e){var t=e.content,n=e.width,r=e.height,o=e.transform,l=e.title,s=e.extra,c=e.watchable,f=c===void 0?!1:c,h=se(se(se({},s.attributes),l?{title:l}:{}),{},{class:s.classes.join(" ")});f&&(h[ua]="");var p=se({},s.styles);bg(o)&&(p.transform=lM({transform:o,startCentered:!0,width:n,height:r}),p["-webkit-transform"]=p.transform);var m=wd(p);m.length>0&&(h.style=m);var v=[];return v.push({tag:"span",attributes:h,children:[t]}),l&&v.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),v}function PM(e){var t=e.content,n=e.title,r=e.extra,o=se(se(se({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),l=wd(r.styles);l.length>0&&(o.style=l);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Sh=Lr.styles;function Bm(e){var t=e[0],n=e[1],r=e.slice(4),o=mg(r,1),l=o[0],s=null;return Array.isArray(l)?s={tag:"g",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.SECONDARY),fill:"currentColor",d:l[0]}},{tag:"path",attributes:{class:"".concat(de.cssPrefix,"-").concat(Xo.PRIMARY),fill:"currentColor",d:l[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:l}},{found:!0,width:t,height:n,icon:s}}var TM={found:!1,width:512,height:512};function IM(e,t){!u2&&!de.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Wm(e,t){var n=t;return t==="fa"&&de.styleDefault!==null&&(t=wo()),new Promise(function(r,o){if(Ni("missingIconAbstract"),n==="fa"){var l=S2(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&Sh[t]&&Sh[t][e]){var s=Sh[t][e];return r(Bm(s))}IM(e,t),r(se(se({},TM),{},{icon:de.showMissingIcons&&e?Ni("missingIconAbstract")||{}:{}}))})}var dx=function(){},Hm=de.measurePerformance&&Rc&&Rc.mark&&Rc.measure?Rc:{mark:dx,measure:dx},cs='FA "6.5.2"',AM=function(t){return Hm.mark("".concat(cs," ").concat(t," begins")),function(){return C2(t)}},C2=function(t){Hm.mark("".concat(cs," ").concat(t," ends")),Hm.measure("".concat(cs," ").concat(t),"".concat(cs," ").concat(t," begins"),"".concat(cs," ").concat(t," ends"))},Ng={begin:AM,end:C2},Zc=function(){};function px(e){var t=e.getAttribute?e.getAttribute(ua):null;return typeof t=="string"}function DM(e){var t=e.getAttribute?e.getAttribute(gg):null,n=e.getAttribute?e.getAttribute(yg):null;return t&&n}function LM(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(de.replacementClass)}function MM(){if(de.autoReplaceSvg===!0)return Jc.replace;var e=Jc[de.autoReplaceSvg];return e||Jc.replace}function jM(e){return lt.createElementNS("http://www.w3.org/2000/svg",e)}function FM(e){return lt.createElement(e)}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?jM:FM:n;if(typeof e=="string")return lt.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var l=e.children||[];return l.forEach(function(s){o.appendChild(E2(s,{ceFn:r}))}),o}function zM(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Jc={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(E2(o),n)}),n.getAttribute(ua)===null&&de.keepOriginalSource){var r=lt.createComment(zM(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~xg(n).indexOf(de.replacementClass))return Jc.replace(t);var o=new RegExp("".concat(de.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var l=r[0].attributes.class.split(" ").reduce(function(c,f){return f===de.replacementClass||f.match(o)?c.toSvg.push(f):c.toNode.push(f),c},{toNode:[],toSvg:[]});r[0].attributes.class=l.toSvg.join(" "),l.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",l.toNode.join(" "))}var s=r.map(function(c){return pu(c)}).join(`
+`);n.setAttribute(ua,""),n.innerHTML=s}};function hx(e){e()}function N2(e,t){var n=typeof t=="function"?t:Zc;if(e.length===0)n();else{var r=hx;de.mutateApproach===HL&&(r=yo.requestAnimationFrame||hx),r(function(){var o=MM(),l=Ng.begin("mutate");e.map(o),l(),n()})}}var kg=!1;function k2(){kg=!0}function Gm(){kg=!1}var Mf=null;function mx(e){if(ix&&de.observeMutations){var t=e.treeCallback,n=t===void 0?Zc:t,r=e.nodeCallback,o=r===void 0?Zc:r,l=e.pseudoElementsCallback,s=l===void 0?Zc:l,c=e.observeMutationsRoot,f=c===void 0?lt:c;Mf=new ix(function(h){if(!kg){var p=wo();Cl(h).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!px(m.addedNodes[0])&&(de.searchPseudoElements&&s(m.target),n(m.target)),m.type==="attributes"&&m.target.parentNode&&de.searchPseudoElements&&s(m.target.parentNode),m.type==="attributes"&&px(m.target)&&~QL.indexOf(m.attributeName))if(m.attributeName==="class"&&DM(m.target)){var v=bd(xg(m.target)),S=v.prefix,E=v.iconName;m.target.setAttribute(gg,S||p),E&&m.target.setAttribute(yg,E)}else LM(m.target)&&o(m.target)})}}),Pi&&Mf.observe(f,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function UM(){Mf&&Mf.disconnect()}function $M(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var l=o.split(":"),s=l[0],c=l.slice(1);return s&&c.length>0&&(r[s]=c.join(":").trim()),r},{})),n}function BM(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=bd(xg(e));return o.prefix||(o.prefix=wo()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=wM(o.prefix,e.innerText)||_g(o.prefix,Fm(e.innerText))),!o.iconName&&de.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function WM(e){var t=Cl(e.attributes).reduce(function(o,l){return o.name!=="class"&&o.name!=="style"&&(o[l.name]=l.value),o},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return de.autoA11y&&(n?t["aria-labelledby"]="".concat(de.replacementClass,"-title-").concat(r||Js()):(t["aria-hidden"]="true",t.focusable="false")),t}function HM(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Jr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=BM(e),r=n.iconName,o=n.prefix,l=n.rest,s=WM(e),c=Um("parseNodeAttributes",{},e),f=t.styleParser?$M(e):[];return se({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Jr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:l,styles:f,attributes:s}},c)}var GM=Lr.styles;function R2(e){var t=de.autoReplaceSvg==="nest"?vx(e,{styleParser:!1}):vx(e);return~t.extra.classes.indexOf(c2)?Ni("generateLayersText",e,t):Ni("generateSvgReplacementMutation",e,t)}var xo=new Set;wg.map(function(e){xo.add("fa-".concat(e))});Object.keys(qs[ot]).map(xo.add.bind(xo));Object.keys(qs[xt]).map(xo.add.bind(xo));xo=fu(xo);function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Pi)return Promise.resolve();var n=lt.documentElement.classList,r=function(m){return n.add("".concat(ox,"-").concat(m))},o=function(m){return n.remove("".concat(ox,"-").concat(m))},l=de.autoFetchSvg?xo:wg.map(function(p){return"fa-".concat(p)}).concat(Object.keys(GM));l.includes("fa")||l.push("fa");var s=[".".concat(c2,":not([").concat(ua,"])")].concat(l.map(function(p){return".".concat(p,":not([").concat(ua,"])")})).join(", ");if(s.length===0)return Promise.resolve();var c=[];try{c=Cl(e.querySelectorAll(s))}catch{}if(c.length>0)r("pending"),o("complete");else return Promise.resolve();var f=Ng.begin("onTree"),h=c.reduce(function(p,m){try{var v=R2(m);v&&p.push(v)}catch(S){u2||S.name==="MissingIcon"&&console.error(S)}return p},[]);return new Promise(function(p,m){Promise.all(h).then(function(v){N2(v,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),f(),p()})}).catch(function(v){f(),m(v)})})}function KM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;R2(e).then(function(n){n&&N2([n],t)})}function YM(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:$m(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:$m(o||{})),e(r,se(se({},n),{},{mask:o}))}}var VM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?Jr:r,l=n.symbol,s=l===void 0?!1:l,c=n.mask,f=c===void 0?null:c,h=n.maskId,p=h===void 0?null:h,m=n.title,v=m===void 0?null:m,S=n.titleId,E=S===void 0?null:S,N=n.classes,T=N===void 0?[]:N,_=n.attributes,b=_===void 0?{}:_,C=n.styles,I=C===void 0?{}:C;if(t){var M=t.prefix,G=t.iconName,k=t.icon;return Sd(se({type:"icon"},t),function(){return ca("beforeDOMElementCreation",{iconDefinition:t,params:n}),de.autoA11y&&(v?b["aria-labelledby"]="".concat(de.replacementClass,"-title-").concat(E||Js()):(b["aria-hidden"]="true",b.focusable="false")),Eg({icons:{main:Bm(k),mask:f?Bm(f.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:G,transform:se(se({},Jr),o),symbol:s,title:v,maskId:p,titleId:E,extra:{attributes:b,styles:I,classes:T}})})}},qM={mixout:function(){return{icon:YM(VM)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=gx,n.nodeCallback=KM,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?lt:r,l=n.callback,s=l===void 0?function(){}:l;return gx(o,s)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,l=r.title,s=r.titleId,c=r.prefix,f=r.transform,h=r.symbol,p=r.mask,m=r.maskId,v=r.extra;return new Promise(function(S,E){Promise.all([Wm(o,c),p.iconName?Wm(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(N){var T=mg(N,2),_=T[0],b=T[1];S([n,Eg({icons:{main:_,mask:b},prefix:c,iconName:o,transform:f,symbol:h,maskId:m,title:l,titleId:s,extra:v,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,l=n.main,s=n.transform,c=n.styles,f=wd(c);f.length>0&&(o.style=f);var h;return bg(s)&&(h=Ni("generateAbstractTransformGrouping",{main:l,transform:s,containerWidth:l.width,iconWidth:l.width})),r.push(h||l.icon),{children:r,attributes:o}}}},XM={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,l=o===void 0?[]:o;return Sd({type:"layer"},function(){ca("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(c){Array.isArray(c)?c.map(function(f){s=s.concat(f.abstract)}):s=s.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(de.cssPrefix,"-layers")].concat(fu(l)).join(" ")},children:s}]})}}}},QM={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.title,l=o===void 0?null:o,s=r.classes,c=s===void 0?[]:s,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return Sd({type:"counter",content:n},function(){return ca("beforeDOMElementCreation",{content:n,params:r}),PM({content:n.toString(),title:l,extra:{attributes:h,styles:m,classes:["".concat(de.cssPrefix,"-layers-counter")].concat(fu(c))}})})}}}},ZM={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,l=o===void 0?Jr:o,s=r.title,c=s===void 0?null:s,f=r.classes,h=f===void 0?[]:f,p=r.attributes,m=p===void 0?{}:p,v=r.styles,S=v===void 0?{}:v;return Sd({type:"text",content:n},function(){return ca("beforeDOMElementCreation",{content:n,params:r}),fx({content:n,transform:se(se({},Jr),l),title:c,extra:{attributes:m,styles:S,classes:["".concat(de.cssPrefix,"-layers-text")].concat(fu(h))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.title,l=r.transform,s=r.extra,c=null,f=null;if(a2){var h=parseInt(getComputedStyle(n).fontSize,10),p=n.getBoundingClientRect();c=p.width/h,f=p.height/h}return de.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,fx({content:n.innerHTML,width:c,height:f,transform:l,title:o,extra:s,watchable:!0})])}}},JM=new RegExp('"',"ug"),yx=[1105920,1112319];function e5(e){var t=e.replace(JM,""),n=pM(t,0),r=n>=yx[0]&&n<=yx[1],o=t.length===2?t[0]===t[1]:!1;return{value:Fm(o?t[0]:t),isSecondary:r||o}}function wx(e,t){var n="".concat(WL).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var l=Cl(e.children),s=l.filter(function(k){return k.getAttribute(jm)===t})[0],c=yo.getComputedStyle(e,t),f=c.getPropertyValue("font-family").match(VL),h=c.getPropertyValue("font-weight"),p=c.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&p!=="none"&&p!==""){var m=c.getPropertyValue("content"),v=~["Sharp"].indexOf(f[2])?xt:ot,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(f[2])?Xs[v][f[2].toLowerCase()]:qL[v][h],E=e5(m),N=E.value,T=E.isSecondary,_=f[0].startsWith("FontAwesome"),b=_g(S,N),C=b;if(_){var I=xM(N);I.iconName&&I.prefix&&(b=I.iconName,S=I.prefix)}if(b&&!T&&(!s||s.getAttribute(gg)!==S||s.getAttribute(yg)!==C)){e.setAttribute(n,C),s&&e.removeChild(s);var M=HM(),G=M.extra;G.attributes[jm]=t,Wm(b,S).then(function(k){var B=Eg(se(se({},M),{},{icons:{main:k,mask:Cg()},prefix:S,iconName:C,extra:G,watchable:!0})),U=lt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(U,e.firstChild):e.appendChild(U),U.outerHTML=B.map(function(K){return pu(K)}).join(`
+`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function t5(e){return Promise.all([wx(e,"::before"),wx(e,"::after")])}function n5(e){return e.parentNode!==document.head&&!~GL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(jm)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function xx(e){if(Pi)return new Promise(function(t,n){var r=Cl(e.querySelectorAll("*")).filter(n5).map(t5),o=Ng.begin("searchPseudoElements");k2(),Promise.all(r).then(function(){o(),Gm(),t()}).catch(function(){o(),Gm(),n()})})}var r5={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=xx,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?lt:r;de.searchPseudoElements&&xx(o)}}},bx=!1,i5={mixout:function(){return{dom:{unwatch:function(){k2(),bx=!0}}}},hooks:function(){return{bootstrap:function(){mx(Um("mutationObserverCallbacks",{}))},noAuto:function(){UM()},watch:function(n){var r=n.observeMutationsRoot;bx?Gm():mx(Um("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Sx=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var l=o.toLowerCase().split("-"),s=l[0],c=l.slice(1).join("-");if(s&&c==="h")return r.flipX=!0,r;if(s&&c==="v")return r.flipY=!0,r;if(c=parseFloat(c),isNaN(c))return r;switch(s){case"grow":r.size=r.size+c;break;case"shrink":r.size=r.size-c;break;case"left":r.x=r.x-c;break;case"right":r.x=r.x+c;break;case"up":r.y=r.y-c;break;case"down":r.y=r.y+c;break;case"rotate":r.rotate=r.rotate+c;break}return r},n)},o5={mixout:function(){return{parse:{transform:function(n){return Sx(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=Sx(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,l=n.containerWidth,s=n.iconWidth,c={transform:"translate(".concat(l/2," 256)")},f="translate(".concat(o.x*32,", ").concat(o.y*32,") "),h="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),p="rotate(".concat(o.rotate," 0 0)"),m={transform:"".concat(f," ").concat(h," ").concat(p)},v={transform:"translate(".concat(s/2*-1," -256)")},S={outer:c,inner:m,path:v};return{tag:"g",attributes:se({},S.outer),children:[{tag:"g",attributes:se({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:se(se({},r.icon.attributes),S.path)}]}]}}}},_h={x:0,y:0,width:"100%",height:"100%"};function _x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function a5(e){return e.tag==="g"?e.children:[e]}var l5={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),l=o?bd(o.split(" ").map(function(s){return s.trim()})):Cg();return l.prefix||(l.prefix=wo()),n.mask=l,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,l=n.main,s=n.mask,c=n.maskId,f=n.transform,h=l.width,p=l.icon,m=s.width,v=s.icon,S=aM({transform:f,containerWidth:m,iconWidth:h}),E={tag:"rect",attributes:se(se({},_h),{},{fill:"white"})},N=p.children?{children:p.children.map(_x)}:{},T={tag:"g",attributes:se({},S.inner),children:[_x(se({tag:p.tag,attributes:se(se({},p.attributes),S.path)},N))]},_={tag:"g",attributes:se({},S.outer),children:[T]},b="mask-".concat(c||Js()),C="clip-".concat(c||Js()),I={tag:"mask",attributes:se(se({},_h),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,_]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:a5(v)},I]};return r.push(M,{tag:"rect",attributes:se({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")")},_h)}),{children:r,attributes:o}}}},s5={provides:function(t){var n=!1;yo.matchMedia&&(n=yo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},l={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:se(se({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=se(se({},l),{},{attributeName:"opacity"}),c={tag:"circle",attributes:se(se({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||c.children.push({tag:"animate",attributes:se(se({},l),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:se(se({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(c),r.push({tag:"path",attributes:se(se({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:se(se({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:se(se({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:se(se({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},u5={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),l=o===null?!1:o===""?!0:o;return n.symbol=l,n}}}},c5=[uM,qM,XM,QM,ZM,r5,i5,o5,l5,s5,u5];_M(c5,{mixoutsTo:Zn});Zn.noAuto;Zn.config;Zn.library;Zn.dom;var Km=Zn.parse;Zn.findIconDefinition;Zn.toHtml;var f5=Zn.icon;Zn.layer;Zn.text;Zn.counter;var O2={exports:{}},d5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p5=d5,h5=p5;function P2(){}function T2(){}T2.resetWarningCache=P2;var m5=function(){function e(r,o,l,s,c,f){if(f!==h5){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:T2,resetWarningCache:P2};return n.PropTypes=n,n};O2.exports=m5();var Rg=O2.exports;const Ie=Vf(Rg);function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function g5(e,t){if(e==null)return{};var n=v5(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ym(e){return y5(e)||w5(e)||x5(e)||b5()}function y5(e){if(Array.isArray(e))return Vm(e)}function w5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x5(e,t){if(e){if(typeof e=="string")return Vm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vm(e,t)}}function Vm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(f){return A2(e,f)}),o=Object.keys(t.attributes||{}).reduce(function(f,h){var p=t.attributes[h];switch(h){case"class":f.attrs.className=p,delete t.attributes.class;break;case"style":f.attrs.style=N5(p);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?f.attrs[h.toLowerCase()]=p:f.attrs[I2(h)]=p}return f},{attrs:{}}),l=n.style,s=l===void 0?{}:l,c=g5(n,C5);return o.attrs.style=Xr(Xr({},o.attrs.style),s),e.apply(void 0,[t.tag,Xr(Xr({},o.attrs),c)].concat(Ym(r)))}var D2=!1;try{D2=!0}catch{}function k5(){if(!D2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ex(e){if(e&&jf(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Km.icon)return Km.icon(e);if(e===null)return null;if(e&&jf(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ch(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Qa({},e,t):{}}var Nx={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ln=Qe.forwardRef(function(e,t){var n=Xr(Xr({},Nx),e),r=n.icon,o=n.mask,l=n.symbol,s=n.className,c=n.title,f=n.titleId,h=n.maskId,p=Ex(r),m=Ch("classes",[].concat(Ym(S5(n)),Ym((s||"").split(" ")))),v=Ch("transform",typeof n.transform=="string"?Km.transform(n.transform):n.transform),S=Ch("mask",Ex(o)),E=f5(p,Xr(Xr(Xr(Xr({},m),v),S),{},{symbol:l,title:c,titleId:f,maskId:h}));if(!E)return k5("Could not find icon",p),null;var N=E.abstract,T={ref:t};return Object.keys(n).forEach(function(_){Nx.hasOwnProperty(_)||(T[_]=n[_])}),R5(N[0],T)});Ln.displayName="FontAwesomeIcon";Ln.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var R5=A2.bind(null,Qe.createElement),qm={exports:{}},fa={},Xm={exports:{}},Br={},Qm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;/*!
+ * Adapted from jQuery UI core
+ *
+ * http://jqueryui.com
+ *
+ * Copyright 2014 jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ *
+ * http://api.jqueryui.com/category/ui-core/
+ */var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function l(m,v){return v.getPropertyValue("overflow")!=="visible"||m.scrollWidth<=0&&m.scrollHeight<=0}function s(m){var v=m.offsetWidth<=0&&m.offsetHeight<=0;if(v&&!m.innerHTML)return!0;try{var S=window.getComputedStyle(m),E=S.getPropertyValue("display");return v?E!==r&&l(m,S):E===n}catch{return console.warn("Failed to inspect element style"),!1}}function c(m){for(var v=m,S=m.getRootNode&&m.getRootNode();v&&v!==document.body;){if(S&&v===S&&(v=S.host.parentNode),s(v))return!1;v=v.parentNode}return!0}function f(m,v){var S=m.nodeName.toLowerCase(),E=o.test(S)&&!m.disabled||S==="a"&&m.href||v;return E&&c(m)}function h(m){var v=m.getAttribute("tabindex");v===null&&(v=void 0);var S=isNaN(v);return(S||v>=0)&&f(m,!S)}function p(m){var v=[].slice.call(m.querySelectorAll("*"),0).reduce(function(S,E){return S.concat(E.shadowRoot?p(E.shadowRoot):[E])},[]);return v.filter(h)}e.exports=t.default})(Qm,Qm.exports);var L2=Qm.exports;Object.defineProperty(Br,"__esModule",{value:!0});Br.resetState=I5;Br.log=A5;Br.handleBlur=eu;Br.handleFocus=tu;Br.markForFocusLater=D5;Br.returnFocus=L5;Br.popWithoutFocus=M5;Br.setupScopedFocus=j5;Br.teardownScopedFocus=F5;var O5=L2,P5=T5(O5);function T5(e){return e&&e.__esModule?e:{default:e}}var wl=[],Za=null,Zm=!1;function I5(){wl=[]}function A5(){}function eu(){Zm=!0}function tu(){if(Zm){if(Zm=!1,!Za)return;setTimeout(function(){if(!Za.contains(document.activeElement)){var e=(0,P5.default)(Za)[0]||Za;e.focus()}},0)}}function D5(){wl.push(document.activeElement)}function L5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{wl.length!==0&&(t=wl.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function M5(){wl.length>0&&wl.pop()}function j5(e){Za=e,window.addEventListener?(window.addEventListener("blur",eu,!1),document.addEventListener("focus",tu,!0)):(window.attachEvent("onBlur",eu),document.attachEvent("onFocus",tu))}function F5(){Za=null,window.addEventListener?(window.removeEventListener("blur",eu),document.removeEventListener("focus",tu)):(window.detachEvent("onBlur",eu),document.detachEvent("onFocus",tu))}var Jm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=L2,r=o(n);function o(c){return c&&c.__esModule?c:{default:c}}function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return c.activeElement.shadowRoot?l(c.activeElement.shadowRoot):c.activeElement}function s(c,f){var h=(0,r.default)(c);if(!h.length){f.preventDefault();return}var p=void 0,m=f.shiftKey,v=h[0],S=h[h.length-1],E=l();if(c===E){if(!m)return;p=S}if(S===E&&!m&&(p=v),v===E&&m&&(p=S),p){f.preventDefault(),p.focus();return}var N=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),T=N!=null&&N[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(T){var _=h.indexOf(E);if(_>-1&&(_+=m?-1:1),p=h[_],typeof p>"u"){f.preventDefault(),p=m?S:v,p.focus();return}f.preventDefault(),p.focus()}}e.exports=t.default})(Jm,Jm.exports);var z5=Jm.exports,Wr={},U5=function(){},$5=U5,Fr={},M2={exports:{}};/*!
+ Copyright (c) 2015 Jed Watson.
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
+ All rights reserved.
+*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(M2);var B5=M2.exports;Object.defineProperty(Fr,"__esModule",{value:!0});Fr.canUseDOM=Fr.SafeNodeList=Fr.SafeHTMLCollection=void 0;var W5=B5,H5=G5(W5);function G5(e){return e&&e.__esModule?e:{default:e}}var _d=H5.default,K5=_d.canUseDOM?window.HTMLElement:{};Fr.SafeHTMLCollection=_d.canUseDOM?window.HTMLCollection:{};Fr.SafeNodeList=_d.canUseDOM?window.NodeList:{};Fr.canUseDOM=_d.canUseDOM;Fr.default=K5;Object.defineProperty(Wr,"__esModule",{value:!0});Wr.resetState=Q5;Wr.log=Z5;Wr.assertNodeList=j2;Wr.setElement=J5;Wr.validateElement=Og;Wr.hide=ej;Wr.show=tj;Wr.documentNotReadyOrSSRTesting=nj;var Y5=$5,V5=X5(Y5),q5=Fr;function X5(e){return e&&e.__esModule?e:{default:e}}var dr=null;function Q5(){dr&&(dr.removeAttribute?dr.removeAttribute("aria-hidden"):dr.length!=null?dr.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(dr).forEach(function(e){return e.removeAttribute("aria-hidden")})),dr=null}function Z5(){}function j2(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function J5(e){var t=e;if(typeof t=="string"&&q5.canUseDOM){var n=document.querySelectorAll(t);j2(n,t),t=n}return dr=t||dr,dr}function Og(e){var t=e||dr;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,V5.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function ej(e){var t=!0,n=!1,r=void 0;try{for(var o=Og(e)[Symbol.iterator](),l;!(t=(l=o.next()).done);t=!0){var s=l.value;s.setAttribute("aria-hidden","true")}}catch(c){n=!0,r=c}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function tj(e){var t=!0,n=!1,r=void 0;try{for(var o=Og(e)[Symbol.iterator](),l;!(t=(l=o.next()).done);t=!0){var s=l.value;s.removeAttribute("aria-hidden")}}catch(c){n=!0,r=c}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}function nj(){dr=null}var El={};Object.defineProperty(El,"__esModule",{value:!0});El.resetState=rj;El.log=ij;var _s={},Cs={};function kx(e,t){e.classList.remove(t)}function rj(){var e=document.getElementsByTagName("html")[0];for(var t in _s)kx(e,_s[t]);var n=document.body;for(var r in Cs)kx(n,Cs[r]);_s={},Cs={}}function ij(){}var oj=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},aj=function(t,n){return t[n]&&(t[n]-=1),n},lj=function(t,n,r){r.forEach(function(o){oj(n,o),t.add(o)})},sj=function(t,n,r){r.forEach(function(o){aj(n,o),n[o]===0&&t.remove(o)})};El.add=function(t,n){return lj(t.classList,t.nodeName.toLowerCase()=="html"?_s:Cs,n.split(" "))};El.remove=function(t,n){return sj(t.classList,t.nodeName.toLowerCase()=="html"?_s:Cs,n.split(" "))};var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.log=cj;Nl.resetState=fj;function uj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F2=function e(){var t=this;uj(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Ff=new F2;function cj(){console.log("portalOpenInstances ----------"),console.log(Ff.openInstances.length),Ff.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function fj(){Ff=new F2}Nl.default=Ff;var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.resetState=mj;Pg.log=vj;var dj=Nl,pj=hj(dj);function hj(e){return e&&e.__esModule?e:{default:e}}var un=void 0,Or=void 0,ea=[];function mj(){for(var e=[un,Or],t=0;t0?(document.body.firstChild!==un&&document.body.insertBefore(un,document.body.firstChild),document.body.lastChild!==Or&&document.body.appendChild(Or)):(un.parentElement&&un.parentElement.removeChild(un),Or.parentElement&&Or.parentElement.removeChild(Or))}pj.default.subscribe(gj);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(J){for(var oe=1;oe0&&(he-=1,he===0&&S.show(te)),F.props.shouldFocusAfterRender&&(F.props.shouldReturnFocusAfterClose?(h.returnFocus(F.props.preventScroll),h.teardownScopedFocus()):h.popWithoutFocus()),F.props.onAfterClose&&F.props.onAfterClose(),C.default.deregister(F)},F.open=function(){F.beforeOpen(),F.state.afterOpen&&F.state.beforeClose?(clearTimeout(F.closeTimer),F.setState({beforeClose:!1})):(F.props.shouldFocusAfterRender&&(h.setupScopedFocus(F.node),h.markForFocusLater()),F.setState({isOpen:!0},function(){F.openAnimationFrame=requestAnimationFrame(function(){F.setState({afterOpen:!0}),F.props.isOpen&&F.props.onAfterOpen&&F.props.onAfterOpen({overlayEl:F.overlay,contentEl:F.content})})}))},F.close=function(){F.props.closeTimeoutMS>0?F.closeWithTimeout():F.closeWithoutTimeout()},F.focusContent=function(){return F.content&&!F.contentHasFocus()&&F.content.focus({preventScroll:!0})},F.closeWithTimeout=function(){var z=Date.now()+F.props.closeTimeoutMS;F.setState({beforeClose:!0,closesAt:z},function(){F.closeTimer=setTimeout(F.closeWithoutTimeout,F.state.closesAt-Date.now())})},F.closeWithoutTimeout=function(){F.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},F.afterClose)},F.handleKeyDown=function(z){K(z)&&(0,m.default)(F.content,z),F.props.shouldCloseOnEsc&&Z(z)&&(z.stopPropagation(),F.requestClose(z))},F.handleOverlayOnClick=function(z){F.shouldClose===null&&(F.shouldClose=!0),F.shouldClose&&F.props.shouldCloseOnOverlayClick&&(F.ownerHandlesClose()?F.requestClose(z):F.focusContent()),F.shouldClose=null},F.handleContentOnMouseUp=function(){F.shouldClose=!1},F.handleOverlayOnMouseDown=function(z){!F.props.shouldCloseOnOverlayClick&&z.target==F.overlay&&z.preventDefault()},F.handleContentOnClick=function(){F.shouldClose=!1},F.handleContentOnMouseDown=function(){F.shouldClose=!1},F.requestClose=function(z){return F.ownerHandlesClose()&&F.props.onRequestClose(z)},F.ownerHandlesClose=function(){return F.props.onRequestClose},F.shouldBeClosed=function(){return!F.state.isOpen&&!F.state.beforeClose},F.contentHasFocus=function(){return document.activeElement===F.content||F.content.contains(document.activeElement)},F.buildClassName=function(z,te){var ne=(typeof te>"u"?"undefined":r(te))==="object"?te:{base:U[z],afterOpen:U[z]+"--after-open",beforeClose:U[z]+"--before-close"},ae=ne.base;return F.state.afterOpen&&(ae=ae+" "+ne.afterOpen),F.state.beforeClose&&(ae=ae+" "+ne.beforeClose),typeof te=="string"&&te?ae+" "+te:ae},F.attributesFromObject=function(z,te){return Object.keys(te).reduce(function(ne,ae){return ne[z+"-"+ae]=te[ae],ne},{})},F.state={afterOpen:!1,beforeClose:!1},F.shouldClose=null,F.moveFromContentToOverlay=null,F}return o(oe,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(F,z){this.props.isOpen&&!F.isOpen?this.open():!this.props.isOpen&&F.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!z.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var F=this.props,z=F.appElement,te=F.ariaHideApp,ne=F.htmlOpenClassName,ae=F.bodyOpenClassName,pe=F.parentSelector,Fe=pe&&pe().ownerDocument||document;ae&&N.add(Fe.body,ae),ne&&N.add(Fe.getElementsByTagName("html")[0],ne),te&&(he+=1,S.hide(z)),C.default.register(this)}},{key:"render",value:function(){var F=this.props,z=F.id,te=F.className,ne=F.overlayClassName,ae=F.defaultStyles,pe=F.children,Fe=te?{}:ae.content,Ve=ne?{}:ae.overlay;if(this.shouldBeClosed())return null;var qe={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:n({},Ve,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Me=n({id:z,ref:this.setContentRef,style:n({},Fe,this.props.style.content),className:this.buildClassName("content",te),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),bt=this.props.contentElement(Me,pe);return this.props.overlayElement(qe,bt)}}]),oe}(l.Component);be.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},be.propTypes={isOpen:c.default.bool.isRequired,defaultStyles:c.default.shape({content:c.default.object,overlay:c.default.object}),style:c.default.shape({content:c.default.object,overlay:c.default.object}),className:c.default.oneOfType([c.default.string,c.default.object]),overlayClassName:c.default.oneOfType([c.default.string,c.default.object]),parentSelector:c.default.func,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,ariaHideApp:c.default.bool,appElement:c.default.oneOfType([c.default.instanceOf(_.default),c.default.instanceOf(T.SafeHTMLCollection),c.default.instanceOf(T.SafeNodeList),c.default.arrayOf(c.default.instanceOf(_.default))]),onAfterOpen:c.default.func,onAfterClose:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,role:c.default.string,contentLabel:c.default.string,aria:c.default.object,data:c.default.object,children:c.default.node,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func,testId:c.default.string},t.default=be,e.exports=t.default})(Xm,Xm.exports);var yj=Xm.exports;function z2(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function U2(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function $2(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}z2.__suppressDeprecationWarning=!0;U2.__suppressDeprecationWarning=!0;$2.__suppressDeprecationWarning=!0;function wj(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var l=e.displayName||e.name,s=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
+
+`+l+" uses "+s+" but also contains the following legacy lifecycles:"+(n!==null?`
+ `+n:"")+(r!==null?`
+ `+r:"")+(o!==null?`
+ `+o:"")+`
+
+The above lifecycles should be removed. Learn more about this warning here:
+https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=z2,t.componentWillReceiveProps=U2),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=$2;var c=t.componentDidUpdate;t.componentDidUpdate=function(h,p,m){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;c.call(this,h,p,v)}}return e}const xj=Object.freeze(Object.defineProperty({__proto__:null,polyfill:wj},Symbol.toStringTag,{value:"Module"})),bj=CT(xj);Object.defineProperty(fa,"__esModule",{value:!0});fa.bodyOpenClassName=fa.portalClassName=void 0;var Ox=Object.assign||function(e){for(var t=1;t{r(c=>(c+1)%to.length)},[]),l=O.useCallback(()=>{r(c=>c===0?to.length-1:c-1)},[]),s=O.useCallback(c=>{c.key==="ArrowRight"?o():c.key==="ArrowLeft"&&l()},[o,l]);return O.useEffect(()=>(e?document.addEventListener("keydown",s):document.removeEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[e,s]),Lx.setAppElement(document.getElementById("root")),x.jsx(Lx,{isOpen:e,onRequestClose:()=>t(),className:"modal-container",overlayClassName:"modal-overlay",shouldCloseOnOverlayClick:!0,children:x.jsxs("div",{className:"modal-content",children:[x.jsx("button",{type:"button",className:"close-modal-button",onClick:()=>t(),children:x.jsx(Ln,{icon:yd,className:"nav-icon"})}),x.jsx("span",{className:"modal-image-title",children:to[n]}),x.jsx("img",{src:`../src/assets/ingredients/${to[n].toLowerCase()}.webp`,alt:`${to[n]}`,className:"modal-image"}),x.jsxs("div",{className:"modal-nav-buttons",children:[x.jsx("button",{type:"button",className:"nav-button prev",onClick:l,children:x.jsx(Ln,{icon:PL,className:"nav-icon"})}),x.jsx("button",{type:"button",className:"nav-button next",onClick:o,children:x.jsx(Ln,{icon:TL,className:"nav-icon"})})]})]})})}const Mj=O.lazy(()=>NL(()=>import("./IngredientGalleryItem-DBrSEriu.js"),[]));function jj(){const[e,t]=O.useState(!1),n=He(o=>o.recipe.possibleItems),r=n.length<5?"flex flex-row gap-x-8":"grid-autofill";return x.jsxs(x.Fragment,{children:[!e&&x.jsxs("div",{className:"modal-open-button",onClick:()=>t(!0),onKeyDown:Oi,children:["CLICK ME",x.jsx("br",{}),'to say "Wow"',x.jsx("br",{}),'and "Ooooh"']}),x.jsx(Lj,{isOpen:e,onClose:()=>t(!1)}),x.jsx("div",{className:"flex flex-row overflow-auto no-scrollbar justify-evenly",children:x.jsx("div",{className:`flex flex-row flex-wrap center gap-y-8 gap-x-4 ${r}`,children:n.map(o=>x.jsx(O.Suspense,{fallback:x.jsx("div",{className:"suspense-gallery-item","data-testid":`${o}_suspense`,children:""}),children:x.jsx(Mj,{item:{itemName:o,amount:0,unit:ml}})},`${o}_suspense`))})})]})}function Fj(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const Cd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kl(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Tg(e){return"nodeType"in e}function bn(e){var t,n;return e?kl(e)?e:Tg(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Ig(e){const{Document:t}=bn(e);return e instanceof t}function vu(e){return kl(e)?!1:e instanceof bn(e).HTMLElement}function W2(e){return e instanceof bn(e).SVGElement}function Rl(e){return e?kl(e)?e.document:Tg(e)?Ig(e)?e:vu(e)||W2(e)?e.ownerDocument:document:document:document}const Ur=Cd?O.useLayoutEffect:O.useEffect;function Ed(e){const t=O.useRef(e);return Ur(()=>{t.current=e}),O.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=O.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function nu(e,t){t===void 0&&(t=[e]);const n=O.useRef(e);return Ur(()=>{n.current!==e&&(n.current=e)},t),n}function gu(e,t){const n=O.useRef();return O.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function $f(e){const t=Ed(e),n=O.useRef(null),r=O.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Bf(e){const t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}let Eh={};function Nd(e,t){return O.useMemo(()=>{if(t)return t;const n=Eh[e]==null?0:Eh[e]+1;return Eh[e]=n,e+"-"+n},[e,t])}function H2(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const c=Object.entries(s);for(const[f,h]of c){const p=l[f];p!=null&&(l[f]=p+e*h)}return l},{...t})}}const al=H2(1),Wf=H2(-1);function Uj(e){return"clientX"in e&&"clientY"in e}function kd(e){if(!e)return!1;const{KeyboardEvent:t}=bn(e.target);return t&&e instanceof t}function $j(e){if(!e)return!1;const{TouchEvent:t}=bn(e.target);return t&&e instanceof t}function Hf(e){if($j(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Uj(e)?{x:e.clientX,y:e.clientY}:null}const ki=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ki.Translate.toString(e),ki.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Mx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Bj(e){return e.matches(Mx)?e:e.querySelector(Mx)}const Wj={display:"none"};function Hj(e){let{id:t,value:n}=e;return Qe.createElement("div",{id:t,style:Wj},n)}function Gj(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Qe.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Kj(){const[e,t]=O.useState("");return{announce:O.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const G2=O.createContext(null);function Yj(e){const t=O.useContext(G2);O.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Vj(){const[e]=O.useState(()=>new Set),t=O.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[O.useCallback(r=>{let{type:o,event:l}=r;e.forEach(s=>{var c;return(c=s[o])==null?void 0:c.call(s,l)})},[e]),t]}const qj={draggable:`
+ To pick up a draggable item, press the space bar.
+ While dragging, use the arrow keys to move the item.
+ Press space again to drop the item in its new position, or press escape to cancel.
+ `},Xj={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Qj(e){let{announcements:t=Xj,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=qj}=e;const{announce:l,announcement:s}=Kj(),c=Nd("DndLiveRegion"),[f,h]=O.useState(!1);if(O.useEffect(()=>{h(!0)},[]),Yj(O.useMemo(()=>({onDragStart(m){let{active:v}=m;l(t.onDragStart({active:v}))},onDragMove(m){let{active:v,over:S}=m;t.onDragMove&&l(t.onDragMove({active:v,over:S}))},onDragOver(m){let{active:v,over:S}=m;l(t.onDragOver({active:v,over:S}))},onDragEnd(m){let{active:v,over:S}=m;l(t.onDragEnd({active:v,over:S}))},onDragCancel(m){let{active:v,over:S}=m;l(t.onDragCancel({active:v,over:S}))}}),[l,t])),!f)return null;const p=Qe.createElement(Qe.Fragment,null,Qe.createElement(Hj,{id:r,value:o.draggable}),Qe.createElement(Gj,{id:c,announcement:s}));return n?Zr.createPortal(p,n):p}var At;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(At||(At={}));function Gf(){}function Kf(e,t){return O.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function K2(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const $r=Object.freeze({x:0,y:0});function Y2(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Zj(e,t){const n=Hf(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function V2(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Jj(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ev(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function e6(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const q2=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=ev(t),l=[];for(const s of r){const{id:c}=s,f=n.get(c);if(f){const h=ev(f),p=o.reduce((v,S,E)=>v+Y2(h[E],S),0),m=Number((p/4).toFixed(4));l.push({id:c,data:{droppableContainer:s,value:m}})}}return l.sort(V2)};function t6(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),s=o-r,c=l-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const l of r){const{id:s}=l,c=n.get(s);if(c){const f=t6(c,t);f>0&&o.push({id:s,data:{droppableContainer:l,value:f}})}}return o.sort(Jj)};function r6(e,t){const{top:n,left:r,bottom:o,right:l}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=l}const X2=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const o=[];for(const l of t){const{id:s}=l,c=n.get(s);if(c&&r6(r,c)){const h=ev(c).reduce((m,v)=>m+Y2(r,v),0),p=Number((h/4).toFixed(4));o.push({id:s,data:{droppableContainer:l,value:p}})}}return o.sort(V2)};function i6(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Q2(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$r}function o6(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l({...s,top:s.top+e*c.y,bottom:s.bottom+e*c.y,left:s.left+e*c.x,right:s.right+e*c.x}),{...n})}}const a6=o6(1);function Z2(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function l6(e,t,n){const r=Z2(t);if(!r)return e;const{scaleX:o,scaleY:l,x:s,y:c}=r,f=e.left-s-(1-o)*parseFloat(n),h=e.top-c-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),p=o?e.width/o:e.width,m=l?e.height/l:e.height;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f}}const s6={ignoreTransform:!1};function Ol(e,t){t===void 0&&(t=s6);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:p}=bn(e).getComputedStyle(e);h&&(n=l6(n,h,p))}const{top:r,left:o,width:l,height:s,bottom:c,right:f}=n;return{top:r,left:o,width:l,height:s,bottom:c,right:f}}function jx(e){return Ol(e,{ignoreTransform:!0})}function u6(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function c6(e,t){return t===void 0&&(t=bn(e).getComputedStyle(e)),t.position==="fixed"}function f6(e,t){t===void 0&&(t=bn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const l=t[o];return typeof l=="string"?n.test(l):!1})}function Ag(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Ig(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!vu(o)||W2(o)||n.includes(o))return n;const l=bn(e).getComputedStyle(o);return o!==e&&f6(o,l)&&n.push(o),c6(o,l)?n:r(o.parentNode)}return e?r(e):n}function J2(e){const[t]=Ag(e,1);return t??null}function Nh(e){return!Cd||!e?null:kl(e)?e:Tg(e)?Ig(e)||e===Rl(e).scrollingElement?window:vu(e)?e:null:null}function eC(e){return kl(e)?e.scrollX:e.scrollLeft}function tC(e){return kl(e)?e.scrollY:e.scrollTop}function tv(e){return{x:eC(e),y:tC(e)}}var Wt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Wt||(Wt={}));function nC(e){return!Cd||!e?!1:e===document.scrollingElement}function rC(e){const t={x:0,y:0},n=nC(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:o,isLeft:l,isBottom:s,isRight:c,maxScroll:r,minScroll:t}}const d6={x:.2,y:.2};function p6(e,t,n,r,o){let{top:l,left:s,right:c,bottom:f}=n;r===void 0&&(r=10),o===void 0&&(o=d6);const{isTop:h,isBottom:p,isLeft:m,isRight:v}=rC(e),S={x:0,y:0},E={x:0,y:0},N={height:t.height*o.y,width:t.width*o.x};return!h&&l<=t.top+N.height?(S.y=Wt.Backward,E.y=r*Math.abs((t.top+N.height-l)/N.height)):!p&&f>=t.bottom-N.height&&(S.y=Wt.Forward,E.y=r*Math.abs((t.bottom-N.height-f)/N.height)),!v&&c>=t.right-N.width?(S.x=Wt.Forward,E.x=r*Math.abs((t.right-N.width-c)/N.width)):!m&&s<=t.left+N.width&&(S.x=Wt.Backward,E.x=r*Math.abs((t.left+N.width-s)/N.width)),{direction:S,speed:E}}function h6(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:s}=window;return{top:0,left:0,right:l,bottom:s,width:l,height:s}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function iC(e){return e.reduce((t,n)=>al(t,tv(n)),$r)}function m6(e){return e.reduce((t,n)=>t+eC(n),0)}function v6(e){return e.reduce((t,n)=>t+tC(n),0)}function oC(e,t){if(t===void 0&&(t=Ol),!e)return;const{top:n,left:r,bottom:o,right:l}=t(e);J2(e)&&(o<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const g6=[["x",["left","right"],m6],["y",["top","bottom"],v6]];class Dg{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ag(n),o=iC(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,s,c]of g6)for(const f of s)Object.defineProperty(this,f,{get:()=>{const h=c(r),p=o[l]-h;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Es{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function y6(e){const{EventTarget:t}=bn(e);return e instanceof t?e:Rl(e)}function kh(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var pr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pr||(pr={}));function Fx(e){e.preventDefault()}function w6(e){e.stopPropagation()}var We;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(We||(We={}));const aC={start:[We.Space,We.Enter],cancel:[We.Esc],end:[We.Space,We.Enter]},x6=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case We.Right:return{...n,x:n.x+25};case We.Left:return{...n,x:n.x-25};case We.Down:return{...n,y:n.y+25};case We.Up:return{...n,y:n.y-25}}};class lC{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Es(Rl(n)),this.windowListeners=new Es(bn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(pr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&oC(r),n($r)}handleKeyDown(t){if(kd(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:l=aC,coordinateGetter:s=x6,scrollBehavior:c="smooth"}=o,{code:f}=t;if(l.end.includes(f)){this.handleEnd(t);return}if(l.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:h}=r.current,p=h?{x:h.left,y:h.top}:$r;this.referenceCoordinates||(this.referenceCoordinates=p);const m=s(t,{active:n,context:r.current,currentCoordinates:p});if(m){const v=Wf(m,p),S={x:0,y:0},{scrollableAncestors:E}=r.current;for(const N of E){const T=t.code,{isTop:_,isRight:b,isLeft:C,isBottom:I,maxScroll:M,minScroll:G}=rC(N),k=h6(N),B={x:Math.min(T===We.Right?k.right-k.width/2:k.right,Math.max(T===We.Right?k.left:k.left+k.width/2,m.x)),y:Math.min(T===We.Down?k.bottom-k.height/2:k.bottom,Math.max(T===We.Down?k.top:k.top+k.height/2,m.y))},U=T===We.Right&&!b||T===We.Left&&!C,K=T===We.Down&&!I||T===We.Up&&!_;if(U&&B.x!==m.x){const Z=N.scrollLeft+v.x,he=T===We.Right&&Z<=M.x||T===We.Left&&Z>=G.x;if(he&&!v.y){N.scrollTo({left:Z,behavior:c});return}he?S.x=N.scrollLeft-Z:S.x=T===We.Right?N.scrollLeft-M.x:N.scrollLeft-G.x,S.x&&N.scrollBy({left:-S.x,behavior:c});break}else if(K&&B.y!==m.y){const Z=N.scrollTop+v.y,he=T===We.Down&&Z<=M.y||T===We.Up&&Z>=G.y;if(he&&!v.x){N.scrollTo({top:Z,behavior:c});return}he?S.y=N.scrollTop-Z:S.y=T===We.Down?N.scrollTop-M.y:N.scrollTop-G.y,S.y&&N.scrollBy({top:-S.y,behavior:c});break}}this.handleMove(t,al(Wf(m,this.referenceCoordinates),S))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}lC.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=aC,onActivation:o}=t,{active:l}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const c=l.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function zx(e){return!!(e&&"distance"in e)}function Ux(e){return!!(e&&"delay"in e)}class Lg{constructor(t,n,r){var o;r===void 0&&(r=y6(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:s}=l;this.props=t,this.events=n,this.document=Rl(s),this.documentListeners=new Es(this.document),this.listeners=new Es(r),this.windowListeners=new Es(bn(s)),this.initialCoordinates=(o=Hf(l))!=null?o:$r,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(pr.Resize,this.handleCancel),this.windowListeners.add(pr.DragStart,Fx),this.windowListeners.add(pr.VisibilityChange,this.handleCancel),this.windowListeners.add(pr.ContextMenu,Fx),this.documentListeners.add(pr.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ux(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(zx(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(pr.Click,w6,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(pr.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:l}=this,{onMove:s,options:{activationConstraint:c}}=l;if(!o)return;const f=(n=Hf(t))!=null?n:$r,h=Wf(o,f);if(!r&&c){if(zx(c)){if(c.tolerance!=null&&kh(h,c.tolerance))return this.handleCancel();if(kh(h,c.distance))return this.handleStart()}return Ux(c)&&kh(h,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),s(f)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===We.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const b6={move:{name:"pointermove"},end:{name:"pointerup"}};class sC extends Lg{constructor(t){const{event:n}=t,r=Rl(n.target);super(t,b6,r)}}sC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const S6={move:{name:"mousemove"},end:{name:"mouseup"}};var nv;(function(e){e[e.RightClick=2]="RightClick"})(nv||(nv={}));class Mg extends Lg{constructor(t){super(t,S6,Rl(t.event.target))}}Mg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===nv.RightClick?!1:(r==null||r({event:n}),!0)}}];const Rh={move:{name:"touchmove"},end:{name:"touchend"}};class jg extends Lg{constructor(t){super(t,Rh)}static setup(){return window.addEventListener(Rh.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Rh.move.name,t)};function t(){}}}jg.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Ns;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ns||(Ns={}));var Yf;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Yf||(Yf={}));function _6(e){let{acceleration:t,activator:n=Ns.Pointer,canScroll:r,draggingRect:o,enabled:l,interval:s=5,order:c=Yf.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:p,delta:m,threshold:v}=e;const S=E6({delta:m,disabled:!l}),[E,N]=zj(),T=O.useRef({x:0,y:0}),_=O.useRef({x:0,y:0}),b=O.useMemo(()=>{switch(n){case Ns.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Ns.DraggableRect:return o}},[n,o,f]),C=O.useRef(null),I=O.useCallback(()=>{const G=C.current;if(!G)return;const k=T.current.x*_.current.x,B=T.current.y*_.current.y;G.scrollBy(k,B)},[]),M=O.useMemo(()=>c===Yf.TreeOrder?[...h].reverse():h,[c,h]);O.useEffect(()=>{if(!l||!h.length||!b){N();return}for(const G of M){if((r==null?void 0:r(G))===!1)continue;const k=h.indexOf(G),B=p[k];if(!B)continue;const{direction:U,speed:K}=p6(G,B,b,t,v);for(const Z of["x","y"])S[Z][U[Z]]||(K[Z]=0,U[Z]=0);if(K.x>0||K.y>0){N(),C.current=G,E(I,s),T.current=K,_.current=U;return}}T.current={x:0,y:0},_.current={x:0,y:0},N()},[t,I,r,N,l,s,JSON.stringify(b),JSON.stringify(S),E,h,M,p,JSON.stringify(v)])}const C6={x:{[Wt.Backward]:!1,[Wt.Forward]:!1},y:{[Wt.Backward]:!1,[Wt.Forward]:!1}};function E6(e){let{delta:t,disabled:n}=e;const r=Bf(t);return gu(o=>{if(n||!r||!o)return C6;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Wt.Backward]:o.x[Wt.Backward]||l.x===-1,[Wt.Forward]:o.x[Wt.Forward]||l.x===1},y:{[Wt.Backward]:o.y[Wt.Backward]||l.y===-1,[Wt.Forward]:o.y[Wt.Forward]||l.y===1}}},[n,t,r])}function N6(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return gu(o=>{var l;return t===null?null:(l=r??o)!=null?l:null},[r,t])}function k6(e,t){return O.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,l=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...l]},[]),[e,t])}var ru;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ru||(ru={}));var rv;(function(e){e.Optimized="optimized"})(rv||(rv={}));const $x=new Map;function R6(e,t){let{dragging:n,dependencies:r,config:o}=t;const[l,s]=O.useState(null),{frequency:c,measure:f,strategy:h}=o,p=O.useRef(e),m=T(),v=nu(m),S=O.useCallback(function(_){_===void 0&&(_=[]),!v.current&&s(b=>b===null?_:b.concat(_.filter(C=>!b.includes(C))))},[v]),E=O.useRef(null),N=gu(_=>{if(m&&!n)return $x;if(!_||_===$x||p.current!==e||l!=null){const b=new Map;for(let C of e){if(!C)continue;if(l&&l.length>0&&!l.includes(C.id)&&C.rect.current){b.set(C.id,C.rect.current);continue}const I=C.node.current,M=I?new Dg(f(I),I):null;C.rect.current=M,M&&b.set(C.id,M)}return b}return _},[e,l,n,m,f]);return O.useEffect(()=>{p.current=e},[e]),O.useEffect(()=>{m||S()},[n,m]),O.useEffect(()=>{l&&l.length>0&&s(null)},[JSON.stringify(l)]),O.useEffect(()=>{m||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{S(),E.current=null},c))},[c,m,S,...r]),{droppableRects:N,measureDroppableContainers:S,measuringScheduled:l!=null};function T(){switch(h){case ru.Always:return!1;case ru.BeforeDragging:return n;default:return!n}}}function Fg(e,t){return gu(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function O6(e,t){return Fg(e,t)}function P6(e){let{callback:t,disabled:n}=e;const r=Ed(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Rd(e){let{callback:t,disabled:n}=e;const r=Ed(t),o=O.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return O.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function T6(e){return new Dg(Ol(e),e)}function Bx(e,t,n){t===void 0&&(t=T6);const[r,o]=O.useReducer(c,null),l=P6({callback(f){if(e)for(const h of f){const{type:p,target:m}=h;if(p==="childList"&&m instanceof HTMLElement&&m.contains(e)){o();break}}}}),s=Rd({callback:o});return Ur(()=>{o(),e?(s==null||s.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),l==null||l.disconnect())},[e]),r;function c(f){if(!e)return null;if(e.isConnected===!1){var h;return(h=f??n)!=null?h:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p}}function I6(e){const t=Fg(e);return Q2(e,t)}const Wx=[];function A6(e){const t=O.useRef(e),n=gu(r=>e?r&&r!==Wx&&e&&t.current&&e.parentNode===t.current.parentNode?r:Ag(e):Wx,[e]);return O.useEffect(()=>{t.current=e},[e]),n}function D6(e){const[t,n]=O.useState(null),r=O.useRef(e),o=O.useCallback(l=>{const s=Nh(l.target);s&&n(c=>c?(c.set(s,tv(s)),new Map(c)):null)},[]);return O.useEffect(()=>{const l=r.current;if(e!==l){s(l);const c=e.map(f=>{const h=Nh(f);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,tv(h)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),r.current=e}return()=>{s(e),s(l)};function s(c){c.forEach(f=>{const h=Nh(f);h==null||h.removeEventListener("scroll",o)})}},[o,e]),O.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,s)=>al(l,s),$r):iC(e):$r,[e,t])}function Hx(e,t){t===void 0&&(t=[]);const n=O.useRef(null);return O.useEffect(()=>{n.current=null},t),O.useEffect(()=>{const r=e!==$r;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Wf(e,n.current):$r}function L6(e){O.useEffect(()=>{if(!Cd)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function M6(e,t){return O.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:l}=r;return n[o]=s=>{l(s,t)},n},{}),[e,t])}function uC(e){return O.useMemo(()=>e?u6(e):null,[e])}const Oh=[];function j6(e,t){t===void 0&&(t=Ol);const[n]=e,r=uC(n?bn(n):null),[o,l]=O.useReducer(c,Oh),s=Rd({callback:l});return e.length>0&&o===Oh&&l(),Ur(()=>{e.length?e.forEach(f=>s==null?void 0:s.observe(f)):(s==null||s.disconnect(),l())},[e]),o;function c(){return e.length?e.map(f=>nC(f)?r:new Dg(t(f),f)):Oh}}function cC(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return vu(t)?t:e}function F6(e){let{measure:t}=e;const[n,r]=O.useState(null),o=O.useCallback(h=>{for(const{target:p}of h)if(vu(p)){r(m=>{const v=t(p);return m?{...m,width:v.width,height:v.height}:v});break}},[t]),l=Rd({callback:o}),s=O.useCallback(h=>{const p=cC(h);l==null||l.disconnect(),p&&(l==null||l.observe(p)),r(p?t(p):null)},[t,l]),[c,f]=$f(s);return O.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const z6=[{sensor:sC,options:{}},{sensor:lC,options:{}}],U6={current:{}},ef={draggable:{measure:jx},droppable:{measure:jx,strategy:ru.WhileDragging,frequency:rv.Optimized},dragOverlay:{measure:Ol}};class ks extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const $6={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ks,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ef,measureDroppableContainers:Gf,windowRect:null,measuringScheduled:!1},fC={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gf,draggableNodes:new Map,over:null,measureDroppableContainers:Gf},yu=O.createContext(fC),dC=O.createContext($6);function B6(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ks}}}function W6(e,t){switch(t.type){case At.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case At.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case At.DragEnd:case At.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case At.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new ks(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case At.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;const s=new ks(e.droppable.containers);return s.set(n,{...l,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case At.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const l=new ks(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function H6(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=O.useContext(yu),l=Bf(r),s=Bf(n==null?void 0:n.id);return O.useEffect(()=>{if(!t&&!r&&l&&s!=null){if(!kd(l)||document.activeElement===l.target)return;const c=o.get(s);if(!c)return;const{activatorNode:f,node:h}=c;if(!f.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[f.current,h.current]){if(!p)continue;const m=Bj(p);if(m){m.focus();break}}})}},[r,t,o,s,l]),null}function pC(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,l)=>l({transform:o,...r}),n):n}function G6(e){return O.useMemo(()=>({draggable:{...ef.draggable,...e==null?void 0:e.draggable},droppable:{...ef.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ef.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function K6(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const l=O.useRef(!1),{x:s,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Ur(()=>{if(!s&&!c||!t){l.current=!1;return}if(l.current||!r)return;const h=t==null?void 0:t.node.current;if(!h||h.isConnected===!1)return;const p=n(h),m=Q2(p,r);if(s||(m.x=0),c||(m.y=0),l.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const v=J2(h);v&&v.scrollBy({top:m.y,left:m.x})}},[t,s,c,r,n])}const Od=O.createContext({...$r,scaleX:1,scaleY:1});var Zi;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Zi||(Zi={}));const hC=O.memo(function(t){var n,r,o,l;let{id:s,accessibility:c,autoScroll:f=!0,children:h,sensors:p=z6,collisionDetection:m=n6,measuring:v,modifiers:S,...E}=t;const N=O.useReducer(W6,void 0,B6),[T,_]=N,[b,C]=Vj(),[I,M]=O.useState(Zi.Uninitialized),G=I===Zi.Initialized,{draggable:{active:k,nodes:B,translate:U},droppable:{containers:K}}=T,Z=k?B.get(k):null,he=O.useRef({initial:null,translated:null}),be=O.useMemo(()=>{var dt;return k!=null?{id:k,data:(dt=Z==null?void 0:Z.data)!=null?dt:U6,rect:he}:null},[k,Z]),J=O.useRef(null),[oe,Ne]=O.useState(null),[F,z]=O.useState(null),te=nu(E,Object.values(E)),ne=Nd("DndDescribedBy",s),ae=O.useMemo(()=>K.getEnabled(),[K]),pe=G6(v),{droppableRects:Fe,measureDroppableContainers:Ve,measuringScheduled:qe}=R6(ae,{dragging:G,dependencies:[U.x,U.y],config:pe.droppable}),Me=N6(B,k),bt=O.useMemo(()=>F?Hf(F):null,[F]),Mt=Pl(),Gt=O6(Me,pe.draggable.measure);K6({activeNode:k?B.get(k):null,config:Mt.layoutShiftCompensation,initialRect:Gt,measure:pe.draggable.measure});const Ue=Bx(Me,pe.draggable.measure,Gt),Jn=Bx(Me?Me.parentElement:null),Ge=O.useRef({activatorEvent:null,active:null,activeNode:Me,collisionRect:null,collisions:null,droppableRects:Fe,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:K,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),dn=K.getNodeFor((n=Ge.current.over)==null?void 0:n.id),st=F6({measure:pe.dragOverlay.measure}),Sn=(r=st.nodeRef.current)!=null?r:Me,en=G?(o=st.rect)!=null?o:Ue:null,_n=!!(st.nodeRef.current&&st.rect),Eo=I6(_n?null:Ue),No=uC(Sn?bn(Sn):null),tn=A6(G?dn??Me:null),jt=j6(tn),nn=pC(S,{transform:{x:U.x-Eo.x,y:U.y-Eo.y,scaleX:1,scaleY:1},activatorEvent:F,active:be,activeNodeRect:Ue,containerNodeRect:Jn,draggingNodeRect:en,over:Ge.current.over,overlayNodeRect:st.rect,scrollableAncestors:tn,scrollableAncestorRects:jt,windowRect:No}),Mn=bt?al(bt,U):null,ko=D6(tn),br=Hx(ko),er=Hx(ko,[Ue]),Ft=al(nn,br),rn=en?a6(en,nn):null,Cn=be&&rn?m({active:be,collisionRect:rn,droppableRects:Fe,droppableContainers:ae,pointerCoordinates:Mn}):null,Ti=e6(Cn,"id"),[St,ni]=O.useState(null),Ii=_n?nn:al(nn,er),Ai=i6(Ii,(l=St==null?void 0:St.rect)!=null?l:null,Ue),Di=O.useCallback((dt,zt)=>{let{sensor:Ut,options:tr}=zt;if(J.current==null)return;const A=B.get(J.current);if(!A)return;const j=dt.nativeEvent,W=new Ut({active:J.current,activeNode:A,event:j,options:tr,context:Ge,onStart(ee){const ge=J.current;if(ge==null)return;const ce=B.get(ge);if(!ce)return;const{onDragStart:ie}=te.current,ye={active:{id:ge,data:ce.data,rect:he}};Zr.unstable_batchedUpdates(()=>{ie==null||ie(ye),M(Zi.Initializing),_({type:At.DragStart,initialCoordinates:ee,active:ge}),b({type:"onDragStart",event:ye})})},onMove(ee){_({type:At.DragMove,coordinates:ee})},onEnd:X(At.DragEnd),onCancel:X(At.DragCancel)});Zr.unstable_batchedUpdates(()=>{Ne(W),z(dt.nativeEvent)});function X(ee){return async function(){const{active:ce,collisions:ie,over:ye,scrollAdjustedTranslate:Se}=Ge.current;let tt=null;if(ce&&Se){const{cancelDrop:nt}=te.current;tt={activatorEvent:j,active:ce,collisions:ie,delta:Se,over:ye},ee===At.DragEnd&&typeof nt=="function"&&await Promise.resolve(nt(tt))&&(ee=At.DragCancel)}J.current=null,Zr.unstable_batchedUpdates(()=>{_({type:ee}),M(Zi.Uninitialized),ni(null),Ne(null),z(null);const nt=ee===At.DragEnd?"onDragEnd":"onDragCancel";if(tt){const me=te.current[nt];me==null||me(tt),b({type:nt,event:tt})}})}}},[B]),Li=O.useCallback((dt,zt)=>(Ut,tr)=>{const A=Ut.nativeEvent,j=B.get(tr);if(J.current!==null||!j||A.dndKit||A.defaultPrevented)return;const W={active:j};dt(Ut,zt.options,W)===!0&&(A.dndKit={capturedBy:zt.sensor},J.current=tr,Di(Ut,zt))},[B,Di]),Sr=k6(p,Li);L6(p),Ur(()=>{Ue&&I===Zi.Initializing&&M(Zi.Initialized)},[Ue,I]),O.useEffect(()=>{const{onDragMove:dt}=te.current,{active:zt,activatorEvent:Ut,collisions:tr,over:A}=Ge.current;if(!zt||!Ut)return;const j={active:zt,activatorEvent:Ut,collisions:tr,delta:{x:Ft.x,y:Ft.y},over:A};Zr.unstable_batchedUpdates(()=>{dt==null||dt(j),b({type:"onDragMove",event:j})})},[Ft.x,Ft.y]),O.useEffect(()=>{const{active:dt,activatorEvent:zt,collisions:Ut,droppableContainers:tr,scrollAdjustedTranslate:A}=Ge.current;if(!dt||J.current==null||!zt||!A)return;const{onDragOver:j}=te.current,W=tr.get(Ti),X=W&&W.rect.current?{id:W.id,rect:W.rect.current,data:W.data,disabled:W.disabled}:null,ee={active:dt,activatorEvent:zt,collisions:Ut,delta:{x:A.x,y:A.y},over:X};Zr.unstable_batchedUpdates(()=>{ni(X),j==null||j(ee),b({type:"onDragOver",event:ee})})},[Ti]),Ur(()=>{Ge.current={activatorEvent:F,active:be,activeNode:Me,collisionRect:rn,collisions:Cn,droppableRects:Fe,draggableNodes:B,draggingNode:Sn,draggingNodeRect:en,droppableContainers:K,over:St,scrollableAncestors:tn,scrollAdjustedTranslate:Ft},he.current={initial:en,translated:rn}},[be,Me,Cn,rn,B,Sn,en,Fe,K,St,tn,Ft]),_6({...Mt,delta:U,draggingRect:rn,pointerCoordinates:Mn,scrollableAncestors:tn,scrollableAncestorRects:jt});const va=O.useMemo(()=>({active:be,activeNode:Me,activeNodeRect:Ue,activatorEvent:F,collisions:Cn,containerNodeRect:Jn,dragOverlay:st,draggableNodes:B,droppableContainers:K,droppableRects:Fe,over:St,measureDroppableContainers:Ve,scrollableAncestors:tn,scrollableAncestorRects:jt,measuringConfiguration:pe,measuringScheduled:qe,windowRect:No}),[be,Me,Ue,F,Cn,Jn,st,B,K,Fe,St,Ve,tn,jt,pe,qe,No]),Ro=O.useMemo(()=>({activatorEvent:F,activators:Sr,active:be,activeNodeRect:Ue,ariaDescribedById:{draggable:ne},dispatch:_,draggableNodes:B,over:St,measureDroppableContainers:Ve}),[F,Sr,be,Ue,_,ne,B,St,Ve]);return Qe.createElement(G2.Provider,{value:C},Qe.createElement(yu.Provider,{value:Ro},Qe.createElement(dC.Provider,{value:va},Qe.createElement(Od.Provider,{value:Ai},h)),Qe.createElement(H6,{disabled:(c==null?void 0:c.restoreFocus)===!1})),Qe.createElement(Qj,{...c,hiddenTextDescribedById:ne}));function Pl(){const dt=(oe==null?void 0:oe.autoScrollEnabled)===!1,zt=typeof f=="object"?f.enabled===!1:f===!1,Ut=G&&!dt&&!zt;return typeof f=="object"?{...f,enabled:Ut}:{enabled:Ut}}}),Y6=O.createContext(null),Gx="button",V6="Droppable";function q6(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const l=Nd(V6),{activators:s,activatorEvent:c,active:f,activeNodeRect:h,ariaDescribedById:p,draggableNodes:m,over:v}=O.useContext(yu),{role:S=Gx,roleDescription:E="draggable",tabIndex:N=0}=o??{},T=(f==null?void 0:f.id)===t,_=O.useContext(T?Od:Y6),[b,C]=$f(),[I,M]=$f(),G=M6(s,t),k=nu(n);Ur(()=>(m.set(t,{id:t,key:l,node:b,activatorNode:I,data:k}),()=>{const U=m.get(t);U&&U.key===l&&m.delete(t)}),[m,t]);const B=O.useMemo(()=>({role:S,tabIndex:N,"aria-disabled":r,"aria-pressed":T&&S===Gx?!0:void 0,"aria-roledescription":E,"aria-describedby":p.draggable}),[r,S,N,T,E,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:h,attributes:B,isDragging:T,listeners:r?void 0:G,node:b,over:v,setNodeRef:C,setActivatorNodeRef:M,transform:_}}function X6(){return O.useContext(dC)}const Q6="Droppable",Z6={timeout:25};function Pd(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const l=Nd(Q6),{active:s,dispatch:c,over:f,measureDroppableContainers:h}=O.useContext(yu),p=O.useRef({disabled:n}),m=O.useRef(!1),v=O.useRef(null),S=O.useRef(null),{disabled:E,updateMeasurementsFor:N,timeout:T}={...Z6,...o},_=nu(N??r),b=O.useCallback(()=>{if(!m.current){m.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{h(Array.isArray(_.current)?_.current:[_.current]),S.current=null},T)},[T]),C=Rd({callback:b,disabled:E||!s}),I=O.useCallback((B,U)=>{C&&(U&&(C.unobserve(U),m.current=!1),B&&C.observe(B))},[C]),[M,G]=$f(I),k=nu(t);return O.useEffect(()=>{!C||!M.current||(C.disconnect(),m.current=!1,C.observe(M.current))},[M,C]),Ur(()=>(c({type:At.RegisterDroppable,element:{id:r,key:l,disabled:n,node:M,rect:v,data:k}}),()=>c({type:At.UnregisterDroppable,key:l,id:r})),[r]),O.useEffect(()=>{n!==p.current.disabled&&(c({type:At.SetDroppableDisabled,id:r,key:l,disabled:n}),p.current.disabled=n)},[r,l,n,c]),{active:s,rect:v,isOver:(f==null?void 0:f.id)===r,node:M,over:f,setNodeRef:G}}function J6(e){let{animation:t,children:n}=e;const[r,o]=O.useState(null),[l,s]=O.useState(null),c=Bf(n);return!n&&!r&&c&&o(c),Ur(()=>{if(!l)return;const f=r==null?void 0:r.key,h=r==null?void 0:r.props.id;if(f==null||h==null){o(null);return}Promise.resolve(t(h,l)).then(()=>{o(null)})},[t,r,l]),Qe.createElement(Qe.Fragment,null,n,r?O.cloneElement(r,{ref:s}):null)}const eF={x:0,y:0,scaleX:1,scaleY:1};function tF(e){let{children:t}=e;return Qe.createElement(yu.Provider,{value:fC},Qe.createElement(Od.Provider,{value:eF},t))}const nF={position:"fixed",touchAction:"none"},rF=e=>kd(e)?"transform 250ms ease":void 0,iF=O.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:l,className:s,rect:c,style:f,transform:h,transition:p=rF}=e;if(!c)return null;const m=o?h:{...h,scaleX:1,scaleY:1},v={...nF,width:c.width,height:c.height,top:c.top,left:c.left,transform:ki.Transform.toString(m),transformOrigin:o&&r?Zj(r,c):void 0,transition:typeof p=="function"?p(r):p,...f};return Qe.createElement(n,{className:s,style:v,ref:t},l)}),oF=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:l,className:s}=e;if(l!=null&&l.active)for(const[c,f]of Object.entries(l.active))f!==void 0&&(o[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,f));if(l!=null&&l.dragOverlay)for(const[c,f]of Object.entries(l.dragOverlay))f!==void 0&&r.node.style.setProperty(c,f);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[f,h]of Object.entries(o))n.node.style.setProperty(f,h);s!=null&&s.active&&n.node.classList.remove(s.active)}},aF=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ki.Transform.toString(t)},{transform:ki.Transform.toString(n)}]},lF={duration:250,easing:"ease",keyframes:aF,sideEffects:oF({styles:{active:{opacity:"0"}}})};function sF(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return Ed((l,s)=>{if(t===null)return;const c=n.get(l);if(!c)return;const f=c.node.current;if(!f)return;const h=cC(s);if(!h)return;const{transform:p}=bn(s).getComputedStyle(s),m=Z2(p);if(!m)return;const v=typeof t=="function"?t:uF(t);return oC(f,o.draggable.measure),v({active:{id:l,data:c.data,node:f,rect:o.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:s,rect:o.dragOverlay.measure(h)},droppableContainers:r,measuringConfiguration:o,transform:m})})}function uF(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...lF,...e};return l=>{let{active:s,dragOverlay:c,transform:f,...h}=l;if(!t)return;const p={x:c.rect.left-s.rect.left,y:c.rect.top-s.rect.top},m={scaleX:f.scaleX!==1?s.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?s.rect.height*f.scaleY/c.rect.height:1},v={x:f.x-p.x,y:f.y-p.y,...m},S=o({...h,active:s,dragOverlay:c,transform:{initial:f,final:v}}),[E]=S,N=S[S.length-1];if(JSON.stringify(E)===JSON.stringify(N))return;const T=r==null?void 0:r({active:s,dragOverlay:c,...h}),_=c.node.animate(S,{duration:t,easing:n,fill:"forwards"});return new Promise(b=>{_.onfinish=()=>{T==null||T(),b()}})}}let Kx=0;function cF(e){return O.useMemo(()=>{if(e!=null)return Kx++,Kx},[e])}const iv=Qe.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:f,zIndex:h=999}=e;const{activatorEvent:p,active:m,activeNodeRect:v,containerNodeRect:S,draggableNodes:E,droppableContainers:N,dragOverlay:T,over:_,measuringConfiguration:b,scrollableAncestors:C,scrollableAncestorRects:I,windowRect:M}=X6(),G=O.useContext(Od),k=cF(m==null?void 0:m.id),B=pC(s,{activatorEvent:p,active:m,activeNodeRect:v,containerNodeRect:S,draggingNodeRect:T.rect,over:_,overlayNodeRect:T.rect,scrollableAncestors:C,scrollableAncestorRects:I,transform:G,windowRect:M}),U=Fg(v),K=sF({config:r,draggableNodes:E,droppableContainers:N,measuringConfiguration:b}),Z=U?T.setRef:void 0;return Qe.createElement(tF,null,Qe.createElement(J6,{animation:K},m&&k?Qe.createElement(iF,{key:k,id:m.id,ref:Z,as:c,activatorEvent:p,adjustScale:t,className:f,transition:l,rect:U,style:{zIndex:h,...o},transform:B},n):null))});function mC(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const fF=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return!t||!o?n:mC(n,t,o)},dF=e=>{let{transform:t,draggingNodeRect:n,windowRect:r}=e;return!n||!r?t:mC(t,n,r)};function vC(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Fc(e){return e!==null&&e>=0}const pF=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const l=vC(t,r,n),s=t[o],c=l[o];return!c||!s?null:{x:c.left-s.left,y:c.top-s.top,scaleX:c.width/s.width,scaleY:c.height/s.height}},hF="Sortable",mF=Qe.createContext({activeIndex:-1,containerId:hF,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pF,disabled:{draggable:!1,droppable:!1}}),vF=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return vC(n,r,o).indexOf(t)},gF=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:l,newIndex:s,previousItems:c,previousContainerId:f,transition:h}=e;return!h||!r||c!==l&&o===s?!1:n?!0:s!==o&&t===f},yF={duration:200,easing:"ease"},gC="transform",wF=ki.Transition.toString({property:gC,duration:0,easing:"linear"}),xF={roleDescription:"sortable"};function bF(e){let{disabled:t,index:n,node:r,rect:o}=e;const[l,s]=O.useState(null),c=O.useRef(n);return Ur(()=>{if(!t&&n!==c.current&&r.current){const f=o.current;if(f){const h=Ol(r.current,{ignoreTransform:!0}),p={x:f.left-h.left,y:f.top-h.top,scaleX:f.width/h.width,scaleY:f.height/h.height};(p.x||p.y)&&s(p)}}n!==c.current&&(c.current=n)},[t,n,r,o]),O.useEffect(()=>{l&&s(null)},[l]),l}function yC(e){let{animateLayoutChanges:t=gF,attributes:n,disabled:r,data:o,getNewIndex:l=vF,id:s,strategy:c,resizeObserverConfig:f,transition:h=yF}=e;const{items:p,containerId:m,activeIndex:v,disabled:S,disableTransforms:E,sortedRects:N,overIndex:T,useDragOverlay:_,strategy:b}=O.useContext(mF),C=SF(r,S),I=p.indexOf(s),M=O.useMemo(()=>({sortable:{containerId:m,index:I,items:p},...o}),[m,o,I,p]),G=O.useMemo(()=>p.slice(p.indexOf(s)),[p,s]),{rect:k,node:B,isOver:U,setNodeRef:K}=Pd({id:s,data:M,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:G,...f}}),{active:Z,activatorEvent:he,activeNodeRect:be,attributes:J,setNodeRef:oe,listeners:Ne,isDragging:F,over:z,setActivatorNodeRef:te,transform:ne}=q6({id:s,data:M,attributes:{...xF,...n},disabled:C.draggable}),ae=Fj(K,oe),pe=!!Z,Fe=pe&&!E&&Fc(v)&&Fc(T),Ve=!_&&F,qe=Ve&&Fe?ne:null,bt=Fe?qe??(c??b)({rects:N,activeNodeRect:be,activeIndex:v,overIndex:T,index:I}):null,Mt=Fc(v)&&Fc(T)?l({id:s,items:p,activeIndex:v,overIndex:T}):I,Gt=Z==null?void 0:Z.id,Ue=O.useRef({activeId:Gt,items:p,newIndex:Mt,containerId:m}),Jn=p!==Ue.current.items,Ge=t({active:Z,containerId:m,isDragging:F,isSorting:pe,id:s,index:I,items:p,newIndex:Ue.current.newIndex,previousItems:Ue.current.items,previousContainerId:Ue.current.containerId,transition:h,wasDragging:Ue.current.activeId!=null}),dn=bF({disabled:!Ge,index:I,node:B,rect:k});return O.useEffect(()=>{pe&&Ue.current.newIndex!==Mt&&(Ue.current.newIndex=Mt),m!==Ue.current.containerId&&(Ue.current.containerId=m),p!==Ue.current.items&&(Ue.current.items=p)},[pe,Mt,m,p]),O.useEffect(()=>{if(Gt===Ue.current.activeId)return;if(Gt&&!Ue.current.activeId){Ue.current.activeId=Gt;return}const Sn=setTimeout(()=>{Ue.current.activeId=Gt},50);return()=>clearTimeout(Sn)},[Gt]),{active:Z,activeIndex:v,attributes:J,data:M,rect:k,index:I,newIndex:Mt,items:p,isOver:U,isSorting:pe,isDragging:F,listeners:Ne,node:B,overIndex:T,over:z,setNodeRef:ae,setActivatorNodeRef:te,setDroppableNodeRef:K,setDraggableNodeRef:oe,transform:dn??bt,transition:st()};function st(){if(dn||Jn&&Ue.current.newIndex===I)return wF;if(!(Ve&&!kd(he)||!h)&&(pe||Ge))return ki.Transition.toString({...h,property:gC})}}function SF(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}We.Down,We.Right,We.Up,We.Left;function Td({groupName:e,item:t,allowRemove:n,onRemove:r}){const{attributes:o,listeners:l,setNodeRef:s,transform:c,transition:f}=yC({id:`${e}_${t.itemName}`,data:{type:"Ingredient",item:t,parentGroup:e}}),h={transition:f,transform:ki.Translate.toString(c)};return x.jsxs("div",{ref:s,className:"relative print-rounded aspect-square w-clamp card-shadow center",style:h,...l,...o,children:[x.jsx("img",{src:`../src/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_selected`,className:"print-rounded"}),n&&x.jsx("div",{className:"flex center rounded-2xl",children:x.jsx(Ln,{icon:yd,size:"sm",onClick:()=>r==null?void 0:r(),className:"absolute pointer-events-auto top-0 right-0 -m-2 cursor-pointer text-white bg-black bg-opacity-80 rounded-full px-1 py-1"})})]},`${e}_${t.itemName}`)}function _F({group:e,item:t}){const n=wn(),r=(o,l)=>{n(X_({groupName:o,itemName:l}))};return x.jsx("div",{children:x.jsx("div",{className:"mx-2 hover:cursor-grabbing hover:scale-105",children:x.jsx(Td,{groupName:e.groupName,item:t,allowRemove:!0,onRemove:()=>r(e.groupName,t.itemName)})})})}function CF({group:e}){const{setNodeRef:t}=Pd({id:e.groupName,data:{type:"Group",group:e}});return x.jsx(x.Fragment,{children:x.jsx("div",{ref:t,className:"flex flex-wrap justify-center gap-y-4 mb-12 center",children:e.items.map((n,r)=>x.jsx("div",{children:x.jsx(_F,{group:e,item:n})},`${n}${r.toString()}`))})})}function EF(){const e=wn();return He(n=>n.groups.ingredientsGroups).map((n,r)=>x.jsxs("div",{className:"flex flex-col center",children:[x.jsx("p",{onKeyDown:Oi,"data-testid":"chosen_group",onClick:()=>e(Y_(n.groupName)),className:"group-chip text-fluidSubtitle",children:n.groupName}),x.jsx(CF,{group:n})]},`${n.groupName}_${r}`))}function NF(){const e=wn(),t=He(f=>f.groups.ingredientsGroups),[n,r]=O.useState(null),o=f=>{var h;r((h=f.active.data.current)==null?void 0:h.item)},l=f=>{var E,N,T,_;console.log("@ END");const{active:h,over:p}=f;if(!p)return;const m=((E=h.data.current)==null?void 0:E.type)==="Ingredient",v=((N=p.data.current)==null?void 0:N.type)==="Group",S=(T=h.data.current)==null?void 0:T.parentGroup;if(m&&v&&S!==p.id){const b=h.id.split("_")[1];if(t.filter(I=>I.groupName===p.id)[0].items.findIndex(I=>I.itemName===b)>-1)return;e(X_({groupName:S,itemName:b})),e(Dm({groupName:p.id,itemName:b,item:(_=h.data.current)==null?void 0:_.item}))}r(null)},s=f=>{const h=X2(f);return h.length>0?h.sort((m,v)=>{const S=f.droppableRects.get(m.id),E=f.droppableRects.get(v.id);if(S&&E){const N=S.width*S.height;return E.width*E.height-N}return 0}):q2(f)},c=K2(Kf(Mg,{activationConstraint:{distance:5}}),Kf(jg,{activationConstraint:{distance:4}}));return x.jsxs(hC,{collisionDetection:s,modifiers:[fF],sensors:c,onDragEnd:l,onDragStart:o,children:[x.jsxs("div",{className:"relative px-4 pb-4 overflow-auto center text-center no-scrollbar overflow-x-hidden",children:[x.jsx("h2",{className:"mb-8 text-fluidSubtitle",children:"Selected ingredient groups"}),x.jsx(EF,{})]}),n&&x.jsx(iv,{children:x.jsx(Td,{groupName:`${n.itemName}_${Math.random().toString()}`,item:n,allowRemove:!1})})]})}function kF(){const e=He(t=>t.groups.ingredientsGroups);return x.jsxs("div",{"data-testid":"homepage",className:"max-h-screen flex flex-col",children:[x.jsx(sa,{page:"/quantities",isNext:!0}),x.jsx(_L,{}),x.jsxs("div",{className:"flex flex-grow md:p-2 lg:p-2 sm:gap-4 md:gap-4 lg:gap-8 mx-4",children:[x.jsx("div",{className:"main-gallery sm:w-2/3 md:w-4/5 lg:w-3/5",children:x.jsx(jj,{})}),x.jsx("div",{className:`main-gallery sm:w-1/3 w-2/5 ${e.length===0&&"required-element-border"}`,children:x.jsx(NF,{})})]})]})}function RF(){const e=wn(),t=He(r=>r.actions.availableItems),n=r=>{e(pg(r))};return t.map((r,o)=>x.jsx("div",{"data-item-name":r.itemName,className:"mb-1 pb-2 lg:pb-4 print-rounded opacity-100 hover:scale-105",onKeyDown:Oi,children:x.jsx(Td,{groupName:o.toString(),item:r,allowRemove:!1,onRemove:()=>n(r)})},`${r.itemName}_shelf_${o}`))}function wC({action:e}){const{attributes:t,listeners:n,setNodeRef:r,transform:o,transition:l}=yC({id:e.actionName,data:{type:"Action",action:e}}),s={transition:l,transform:ki.Translate.toString(o)},{actionName:c}=e;return x.jsx("div",{ref:r,style:s,...n,...t,children:x.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${c.toLowerCase()}.webp`,alt:c,"data-testid":`${c}_action`,className:"print-rounded-img rounded-t-lg w-clamp"}),x.jsx("p",{className:"text-fluidPrint py-2",children:c})]},c)})}function OF(){return dL.map(e=>x.jsx("div",{className:"bg-white mx-2 aspect-videoThin hover:scale-105",children:x.jsx(wC,{action:e})},`${e.actionName}`))}function Yx({icon:e,onCaretClick:t}){return x.jsx("div",{className:"flex center max-h-short cursor-pointer hover:border-y-2 hover:border-black",onClick:()=>t(),onKeyDown:Oi,children:x.jsx(Ln,{icon:e,size:"lg"})})}function PF({instruction:e}){const t=O.useRef(null),n=wn(),[r,o]=O.useState(e.note),[l,s]=O.useState(null),c=v=>{r?n(Nc({id:e.id,note:v})):(s(null),n(Nc({id:e.id,note:""})))},f=()=>{s(null),o(""),n(Nc({id:e.id,note:""}))},h=v=>{o(v.target.value)},p=l===e.id;O.useEffect(()=>{p&&t.current&&t.current.focus()},[p]);const m=(v,S)=>{if(v.key==="Enter"){const{id:E,note:N}=S;n(Nc({id:E,note:N})),v.target.blur()}};return p||e.note?x.jsxs("div",{className:"flex justify-end items-center md:w-60 lg:w-96",children:[x.jsx("input",{type:"text",ref:t,className:"input-border w-full text-fluidSubtitle text-center md:-m-2 lg:-m-4 text-ellipsis whitespace-nowrap overflow-hidden sm:p-0 md:p-1",placeholder:"Add a note to this instruction",value:r,onChange:h,onBlur:v=>c(v.target.value),onKeyDown:v=>m(v,e)}),x.jsx(Ln,{icon:yd,size:"1x",className:"bg-white -ml-2 cursor-pointer",onClick:()=>f()})]}):x.jsx("button",{type:"button",className:"sexy-button md:px-1 lg:px-3 md:py-1 lg:py-2 -m-4 min-w-16 card-shadow border border-transparent bg-yellow-100 text-neutral-800 font-semibold rounded-lg text-xs hover:bg-white hover:border-2 hover:border-yellow-200",onClick:()=>s(e.id),children:x.jsx("span",{children:"Add Note"})})}function TF({instruction:e}){const t=wn(),[n,r]=O.useState(e.action.time),o=f=>{f.target.select()},l=f=>{Number.isNaN(f)?r(0):r(f)},s=()=>{n>0&&r(f=>f-1)},c=()=>{r(f=>f+1)};return O.useEffect(()=>{t(lL({instruction:e,time:n}))},[t,e,n]),x.jsxs("div",{className:"flex flex-row rounded-md mx-2",children:[x.jsx("button",{type:"button",onClick:s,children:x.jsx(Ln,{icon:e2,className:"num-input-icons"})}),x.jsx("input",{className:`sm:w-8 md:w-8 lg:w-16 p-0 md:mx-2 lg:mx-4 focus:outline-none text-center rounded-2xl sm:text-2xl md:text-3xl lg:text-4xl bg-transparent ${n===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:n,required:!0,onChange:f=>l(Number.parseFloat(f.target.value)),onFocus:o,onWheel:f=>f.target.blur()}),x.jsx("button",{type:"button",onClick:c,children:x.jsx(Ln,{icon:t2,className:"num-input-icons"})})]})}function IF({action:e}){const{actionName:t}=e;return x.jsxs("div",{className:"bg-white card-shadow print-rounded w-clamp",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.toLowerCase()}.webp`,alt:t,"data-testid":`${t}_action`,className:"print-rounded-img md:w-clampSmall lg:w-clamp"}),x.jsx("p",{className:"text-fluidCard py-2",children:t})]},t)}function AF({groupName:e,item:t,onRemoveItem:n}){const r=()=>{n(t)};return x.jsxs("div",{className:"relative print-rounded aspect-square print-image card-shadow center",children:[x.jsx("img",{draggable:"false",src:`../src/assets/ingredients/${t.itemName.toLowerCase()}.webp`,alt:t.itemName,"data-testid":`${e}_${t.itemName}_shelf`,className:"print-rounded print-image"}),x.jsx("div",{className:"flex center rounded-2xl",children:x.jsx(Ln,{icon:yd,size:"sm",onClick:r,className:"absolute pointer-events-auto top-0 right-0 -m-2 cursor-pointer text-white bg-black bg-opacity-80 rounded-full px-1 py-1"})})]},`${e}_${t.itemName}`)}function DF({instruction:e,refClick:t}){const[n,r]=O.useState(""),{setNodeRef:o}=Pd({id:e.id,data:{type:"Instruction",instruction:e}}),l=wn(),s=(E,N)=>{const T=N.items.filter(_=>!Ho.isEqual(_,E));l(H_({id:N.id,items:T})),l(pg(E))},c=E=>{l(aL(E)),l(cL(E.items))},f=(E,N)=>{l(iL({id:N.id,customItem:E.target.value})),E.target.blur()},h=E=>{r(E.target.value)},p=E=>{E.key===" "&&(E.preventDefault(),r(N=>`${N} `))},{id:m,action:v,items:S}=e;return x.jsxs("div",{ref:o,className:"z-50 flex flex-col mb-12 border-l-2 border-r-2 border-l-neutral-400 border-r-neutral-400 rounded-3xl lg:scale-90",children:[x.jsxs("div",{className:"flex items-center justify-between pl-6",children:[x.jsxs("div",{className:"flex justify-start w-full py-2",children:[x.jsxs("div",{draggable:"false",className:"flex center",onClick:()=>{t(e)},onKeyDown:Oi,children:[x.jsx(IF,{action:v}),x.jsx("span",{className:"md:text-xs text-fluidSubtitle ml-4",children:"THE"}),x.jsx("div",{className:"flex flex-row",children:x.jsx("div",{className:"center sm:w-36 md:w-44 lg:w-52 xl:w-56 flex flex-row flex-wrap",children:!n&&S.length>0?S.map(E=>x.jsx("div",{className:"px-2 py-2",children:x.jsx(AF,{groupName:m.toString(),item:E,onRemoveItem:N=>s(N,e)})},`${m}_${E.itemName}`)):x.jsxs("div",{className:"flex flex-col justify-between items-center sm:min-h-16 md:min-h-24",children:[x.jsx("span",{className:"text-fluidPrint",children:n?x.jsxs("b",{className:"text-neutral-400",children:["Drop Item ",x.jsx("br",{})," or"]}):x.jsxs("b",{children:["Drop Item ",x.jsx("br",{})," or"]})},m),x.jsx("input",{type:"text",className:"input-border sm:w-24 md:w-36 text-sm text-center text-ellipsis whitespace-nowrap overflow-hidden p-1",placeholder:"Custom text",value:n,onChange:E=>h(E),onKeyDown:p,onBlur:E=>f(E,e)})]})})})]}),v.time!==-1&&x.jsxs("div",{className:"flex center",children:[x.jsx("span",{className:"text-fluidSubtitle mx-2",children:"FOR"}),x.jsx(TF,{instruction:e}),x.jsx("span",{className:"text-fluidSubtitle md:ml-2 lg:ml-4",children:v.unit})]})]}),x.jsx("button",{type:"button",className:"px-4 md:ml-2 lg:ml-8 h-fit",onClick:()=>c(e),children:x.jsx(Ln,{icon:kL,size:"lg",color:"red",className:"cursor-pointer hover:text-black"})})]}),x.jsx("div",{className:"flex center sm:mt-4 md:mt-6",children:x.jsx(PF,{instruction:e})})]},`${m}_${v}`)}const LF=O.memo(({onRefClick:e})=>[...He(r=>r.actions.chefInstructions)].sort((r,o)=>r.id-o.id).map(r=>x.jsx("div",{"data-instruction":r.id,className:"pt-4",children:x.jsx(DF,{instruction:r,refClick:o=>e(o)})},r.id)));function MF({onInstructionClick:e}){const{setNodeRef:t}=Pd({id:"steps_container",data:{type:"Steps"}}),n=He(s=>s.actions.chefInstructions),r=O.useRef(null),o=O.useRef(n.length),l=O.useCallback(()=>{const s=r.current;if(n.length===0)return;const c=n[n.length-1],f=s==null?void 0:s.querySelector(`[data-instruction="${c.id}"]`);f&&f.scrollIntoView({behavior:"smooth",inline:"center"})},[n]);return O.useEffect(()=>{n.length!==o.current&&(l(),o.current=n.length)},[n,l]),x.jsxs("div",{ref:s=>{t(s),r.current=s},className:`flex flex-col bg-slate-50 w-full md:ml-4 lg:ml-8 mb-1 max-h-semi overflow-scroll no-scrollbar ${n.length===0?"justify-center items-center":"justify-start items-center pt-2"} lg:overflow-x-auto`,children:[n.length===0&&x.jsxs("h2",{className:"text-fluidSubtitle text-gray-600",children:["Drag an action ",x.jsx("b",{children:"[ top ]"})," to this area ",x.jsx("br",{}),"and start adding ingredients ",x.jsx("b",{children:"[left ]"})," to it!",x.jsx("br",{}),x.jsx("br",{}),"To add more steps just",x.jsx("br",{}),"drag another action.",x.jsx("br",{}),x.jsx("br",{}),x.jsx("b",{children:"Replace an action by dragging a new one over it!"})]}),x.jsx(LF,{onRefClick:s=>e(s)})]})}function jF(){const e=O.useRef(null),t=O.useRef(null),[n,r]=O.useState(!1),[o,l]=O.useState(0),[s,c]=O.useState(0),[f,h]=O.useState(null),[p,m]=O.useState(null),[v,S]=O.useState(null),E=wn(),N=He(U=>U.actions.chefInstructions);O.useEffect(()=>{if(v){const U=v.current,K=Z=>{U&&(Z.preventDefault(),Z.deltaY<0?U.scrollLeft-=20:U.scrollLeft+=20)};return U&&U.addEventListener("wheel",K,{passive:!1}),()=>{U&&U.removeEventListener("wheel",K)}}},[v]);const T=U=>{if(v!=null&&v.current){const Z=v.current.firstChild.offsetWidth*4;v.current.scrollBy({left:U==="left"?-Z:Z,behavior:"smooth"})}},_=(U,K)=>{U.current&&(S(U),U.current&&(r(!0),l(K.pageX-U.current.offsetLeft),c(U.current.scrollLeft)))},b=(U,K)=>{if(!(!n||!U.current)&&(S(U),K.preventDefault(),U.current)){const he=K.pageX-U.current.offsetLeft-o;U.current.scrollLeft=s-he}},C=U=>{const K=e.current;let Z=null;Z=K==null?void 0:K.querySelector(`[data-action-name="${U.action.actionName}"]`),Z&&Z.scrollIntoView({behavior:"smooth",inline:"center"})},I=U=>{E(oL({id:N.length>0?Math.max(...N.map(K=>K.id))+1:0,note:"",action:U,items:[]}))},M=U=>{var K,Z,he,be;((K=U.active.data.current)==null?void 0:K.type)==="Action"?h((Z=U.active.data.current)==null?void 0:Z.action):h(null),((he=U.active.data.current)==null?void 0:he.type)==="Ingredient"?m((be=U.active.data.current)==null?void 0:be.item):m(null)},G=U=>{var J,oe,Ne,F,z,te;const{active:K,over:Z}=U;if(!Z)return;const he=(J=K.data.current)==null?void 0:J.type,be=(oe=Z.data.current)==null?void 0:oe.type;if(he==="Action"&&be==="Steps")I((Ne=K.data.current)==null?void 0:Ne.action);else if(be==="Instruction"){const ne=(F=Z.data.current)==null?void 0:F.instruction;if(he==="Action"){const ae=(z=K.data.current)==null?void 0:z.action;E(sL({id:ne.id,action:ae}))}else if(he==="Ingredient"){const ae=(te=K.data.current)==null?void 0:te.item;ne.items.find(Fe=>Ho.isEqual(Fe,ae))||(E(H_({id:ne.id,items:[...ne.items,ae]})),E(pg(ae)))}}},k=U=>{const K=X2(U);return K.length>0?K.sort((he,be)=>{const J=U.droppableRects.get(he.id),oe=U.droppableRects.get(be.id);if(J&&oe){const Ne=J.width*J.height,F=oe.width*oe.height;return Ne-F}return 0}):q2(U)},B=K2(Kf(Mg,{activationConstraint:{distance:0}}),Kf(jg,{activationConstraint:{distance:10}}));return x.jsx(hC,{collisionDetection:k,modifiers:[dF],sensors:B,onDragEnd:G,onDragStart:M,children:x.jsxs("div",{className:"mt-16 max-h-5/6 w-11/12 input-gallery-border p-4",children:[x.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Plan the instructions and steps for this recipe!"}),x.jsxs("div",{className:"flex flex-row gap-2",children:[x.jsx(Yx,{icon:IL,onCaretClick:()=>T("left")}),x.jsx("div",{id:"actions-scrollbar",className:"flex w-full overflow-x-scroll py-4 pt-4 overflow-y-auto",ref:e,onMouseDown:U=>_(e,U),onMouseLeave:()=>r(!1),onMouseUp:()=>r(!1),onMouseMove:U=>b(e,U),children:x.jsx(OF,{})}),x.jsx(Yx,{icon:RL,onCaretClick:()=>T("right")}),f&&x.jsx(iv,{children:x.jsx(wC,{action:f})})]}),x.jsxs("div",{className:"flex w-full justify-between mt-8",children:[x.jsx("div",{ref:t,className:"flex flex-col min-w-fit sm:p-2 md:p-4 sm:mr-4 md:mr-2 max-h-half overflow-y-scroll scroll-normal",children:x.jsx("div",{className:"scroll-mirror",children:x.jsx(RF,{})})}),p&&x.jsx(iv,{children:x.jsx(Td,{groupName:Math.random().toString(),item:p,allowRemove:!1})}),x.jsx(MF,{onInstructionClick:U=>C(U)})]})]})})}function FF(){const e=He(l=>l.warning.warning),t=He(l=>l.groups.ingredientsGroups),n=He(l=>l.actions.chefInstructions);let r="/print";return(t.flatMap(l=>l.items).length>18||n.length>3)&&(r="/doublePrint"),x.jsxs("div",{"data-testid":"instructions",className:"min-h-screen flex flex-col",children:[x.jsx(sa,{page:r,isNext:!0}),x.jsx(sa,{page:"/quantities",isNext:!1}),x.jsx("div",{className:"flex h-screen justify-center text-center",children:x.jsx(jF,{})}),e&&x.jsx(hg,{})]})}function zF(){return He(t=>t.groups.ingredientsGroups).map(t=>x.jsxs("div",{className:"flex flex-row center md:gap-x-3 lg:gap-x-4 mb-2",children:[x.jsx("p",{className:"text-fluidSubtitle leading-none md:mr-2 lg:mr-4",children:t.groupName}),t.items.map(n=>x.jsxs("div",{className:"flex flex-col h-fit center md:rounded-md lg:rounded-lg",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.itemName.toLowerCase()}.webp`,alt:n.itemName,className:"card-shadow md:w-tinyImage lg:w-miniImage md:rounded-md lg:rounded-lg"}),x.jsxs("div",{className:"py-2 h-fit",children:[x.jsx("p",{className:"text-fluidPrintTitle leading-tight px-2",children:n.itemName}),x.jsx("p",{className:"text-fluidPrintTitle leading-tight",children:x.jsxs("b",{children:[n.amount," ",n.unit]})})]})]},`${t.groupName}_${n.itemName}`))]},t.groupName))}function UF(){return He(t=>t.actions.chefInstructions).map((t,n)=>x.jsxs("div",{className:"flex flex-col md:mb-2 lg:mb-6 md:w-5/6 lg:w-3/5 ",children:[x.jsxs("div",{className:"relative flex flex-row gap-4 pointer-events-none items-center justify-start ",children:[x.jsxs("span",{className:"md:text-xs lg:text-sm min-w-12",children:["Step ",n+1]}),x.jsx("div",{children:x.jsxs("div",{className:"bg-white card-shadow print-rounded w-tinyImage mr-2",children:[x.jsx("img",{draggable:"false",src:`../src/assets/chefActions/${t.action.actionName.toLowerCase()}.webp`,alt:t.action.actionName,"data-testid":`${t.action.actionName}_action`,className:"print-rounded-img w-tinyImage"}),x.jsx("p",{className:"md:text-xs lg:text-sm py-0.5",children:t.action.actionName})]})}),x.jsx("span",{className:" md:text-xs lg:text-sm",children:"THE"}),t.customItem?x.jsx("b",{className:"md:text-xs lg:text-sm",children:t.customItem}):x.jsx("div",{className:"center justify-start md:w-44 lg:min-w-48 flex flex-row flex-wrap",children:t.items.map(r=>x.jsxs("div",{className:"flex center py-1 px-2",children:[x.jsx("img",{src:`../src/assets/ingredients/${r.itemName.toLowerCase()}.webp`,alt:r.itemName,className:"card-shadow md:w-10 lg:w-12 print-rounded-img"})," "]},`${t.id}_${r.itemName}`))}),t.action.time!==-1&&x.jsxs("span",{className:"-bggreen-300 md:text-xs lg:text-sm min-w-12 md:-ml-4",children:["FOR ",x.jsx("br",{}),t.action.time," ",t.action.unit]})]}),x.jsx("div",{className:"flex w-full left-0",children:x.jsx("span",{className:"md:text-xs lg:text-sm md:pt-0.5 lg:pt-1",children:t.note})})]},`${t.id}`))}function $F(){const e=He(r=>r.recipe.title);let t=0;const n=document.querySelector("#a4");return n&&(t=n.getBoundingClientRect().width/n.getBoundingClientRect().height),x.jsxs("div",{"data-testid":"resultpage",className:"relative min-h-screen flex flex-col",children:[x.jsx(J_,{}),x.jsx("span",{className:`absolute top-1/3 left-0 ml-12 font-bold ${t>.709&&t<.7095?"text-green-600":"text-red-600"}`,children:t}),x.jsx(sa,{page:"/instructions",isNext:!1}),x.jsx("div",{className:"flex flex-col center mt-28 mb-16",children:x.jsxs("div",{id:"a4",className:"relative flex flex-col a4ratio w-2/3 text-center input-border justify-between",children:[x.jsxs("div",{className:"flex flex-col h-fit justify-between items-center",children:[x.jsx("h1",{className:"text-fluidTitle font-shadowsLight md:mt-2 lg:mt-4",children:e}),x.jsx("hr",{className:"w-1/2 border-gray-200 md:mb-2 lg:mb-4"}),x.jsx("h2",{className:"text-fluidSubtitle mb-2",children:"Ingredients:"})]}),x.jsx("div",{className:"grid grid-rows-3 h-2/5",children:x.jsx(zF,{})}),x.jsx("div",{className:"h-fit justify-between items-center",children:x.jsx("h2",{className:"text-fluidSubtitle md:mt-2 lg:mt-8",children:"Steps:"})}),x.jsx("div",{className:"flex flex-col items-center justify-start h-3/5 md:mt-1 lg:mt-2",children:x.jsx(UF,{})}),x.jsx("div",{className:"flex flex-col bg-yellow-200 h-fit justify-between items-center pb-2",children:x.jsx("h2",{className:"text-fluidSubtitle",children:"Enjoy !"})})]})}),x.jsx("div",{className:"fixed bottom-0 right-0 go-to-button-arrow mb-0",children:x.jsx(G_,{})})]})}function Vx({identifier:e,units:t}){var c;const n=He(f=>f.groups.ingredientsGroups),r=wn(),o=e.split("_")[0],l=e.split("_")[1],s=(c=n.find(f=>f.groupName===l))==null?void 0:c.items.filter(f=>f.itemName===o)[0];return s&&x.jsx("div",{className:"text-fluidCard",children:t.map(f=>x.jsx("button",{className:`unit-card my-1 md: text-xs lg:text-xl ${s.unit===f?"unit-card-chosen":null}`,type:"button",onClick:()=>r(Q_({groupName:l,itemName:o,unit:f})),children:f},`${e}_${f}`))})}function BF({item:e,groupName:t}){const n=wn(),[r,o]=O.useState(e.amount),l=p=>{p>=0&&o(p)},s=()=>{r>0&&(n(is({groupName:t,itemName:e.itemName,amount:r-1})),o(p=>p-1))},c=()=>{n(is({groupName:t,itemName:e.itemName,amount:r+1})),o(p=>p+1)},f=p=>{Number.isNaN(p)?o(0):p>=0&&o(p),n(is({groupName:t,itemName:e.itemName,amount:p}))},h=p=>{p.key==="Enter"?(f(r),n(is({groupName:t,itemName:e.itemName,amount:r}))):p.key==="Backspace"&&p.target.value.length===1&&(o(0),n(is({groupName:t,itemName:e.itemName,amount:0})))};return x.jsxs("div",{className:"flex flex-row rounded-md sm:mx-2 md:mx-4 lg:mx-6",children:[x.jsx("button",{type:"button",className:"lg:mx-2",onClick:s,children:x.jsx(Ln,{icon:e2,className:"num-input-icons"})}),x.jsx("input",{className:`sm:w-10 md:w-12 lg:w-16 p-0 py-1 focus:outline-none text-center font-roboto rounded-xl ${r===0&&"required-element-fill"}`,type:"number",id:"units-number-input",value:r,required:!0,onChange:p=>l(Number.parseFloat(p.target.value)),onFocus:Qc,onBlur:p=>f(Number.parseFloat(p.target.value)),onKeyDown:h,onWheel:p=>p.target.blur()}),x.jsx("button",{type:"button",className:"lg:mx-2",onClick:c,children:x.jsx(Ln,{icon:t2,className:"num-input-icons"})})]})}function WF({groupName:e,item:t}){const{itemName:n,unit:r}=t;return x.jsx("div",{"data-testid":"ingredientFullItem",className:"flex center",children:x.jsxs("div",{className:"aspect-videoWide flex flex-row h-clampSmall rounded-2xl card-shadow",children:[x.jsx("img",{src:`../src/assets/ingredients/${n.toLowerCase()}.webp`,alt:n,className:"rounded-l-2xl"}),x.jsxs("div",{className:"flex flex-col center w-1/2 p-2 m-auto lg:gap-1",children:[x.jsx("p",{className:"text-fluidSubtitle",children:n}),x.jsx("hr",{className:"w-full border-gray-400 lg:my-2"}),x.jsx(BF,{item:t,groupName:e}),x.jsx("p",{className:`text-fluidSubtitle rounded-xl px-3 ${r===ml&&"required-element-fill"}`,children:r})]})]},`${e}_${n}`)})}function HF({groupName:e,items:t}){const n=wn(),r=(o,l)=>{n(Q_({groupName:e,itemName:o.itemName,unit:l}))};return x.jsxs("div",{className:"flex flex-col items-start mx-8",children:[x.jsx("p",{className:"group-chip-dead",children:e}),t.map(o=>x.jsxs("div",{className:"flex flex-row center mb-8",children:[x.jsx(WF,{groupName:e,item:o},`${e}_${o.itemName}_${o.amount}_${o.unit}}`),x.jsxs("div",{"data-testid":"unitsButtonsArray",className:"flex flex-col justify-start md:gap-y-2 sm:mx-6 md:mx-12 lg:mx-8",children:[x.jsx(Vx,{identifier:`${o.itemName}_${e}_common1`,units:kc.slice(0,kc.length/2)}),x.jsx(Vx,{identifier:`${o.itemName}_${e}_common2`,units:kc.slice(kc.length/2)})]}),x.jsx("form",{children:x.jsx("select",{className:`text-base md:w-20 lg:w-28 input-border rounded-md px-2 py-1 ${Zw.includes(o.unit)?"border-blue-500 border-1 bg-blue-300":null}`,value:o.unit,onChange:l=>r(o,l.target.value),children:Zw.map(l=>x.jsx("option",{value:l,children:l},l))})})]},`${e}_${o.itemName}}`))]})}function GF(){const e=He(t=>t.groups.ingredientsGroups);return x.jsx("div",{className:"flex flex-col justify-center",children:x.jsxs("div",{className:"flex flex-col h-5/6 w-fit input-gallery-border overflow-auto p-4 items-center",children:[x.jsx("h2",{className:"text-fluidSubtitle mb-4",children:"Select the Units and Quantities for each ingredient"}),e.map(t=>x.jsx("div",{className:"sm:mb-2 md:mb-4",children:x.jsx(HF,{groupName:t.groupName,items:t.items},t.groupName)},t.groupName))]})})}function KF(){const e=He(t=>t.warning.warning);return x.jsxs("div",{"data-testid":"quantities",className:"max-h-screen flex flex-col",children:[x.jsx(sa,{page:"/instructions",isNext:!0}),x.jsx(sa,{page:"/",isNext:!1}),x.jsx("div",{className:"flex h-screen justify-center text-center mt-8",children:x.jsx(GF,{})}),e&&x.jsx(hg,{})]})}const YF=[{path:"/",element:x.jsx(kF,{}),errorElement:x.jsx(ZD,{})},{path:"/quantities",element:x.jsx(KF,{})},{path:"/instructions",element:x.jsx(FF,{})},{path:"/print",element:x.jsx($F,{})},{path:"/doublePrint",element:x.jsx(SL,{})}],VF=L4({reducer:{recipe:gL,groups:wL,actions:fL,warning:tL}}),qF=jD(YF);Th.createRoot(document.getElementById("root")).render(x.jsx(Qe.StrictMode,{children:x.jsx(dI,{store:VF,children:x.jsx(KD,{router:qF})})}));export{Ln as F,wn as a,Dm as b,ZF as f,Oi as h,x as j,Dr as s,He as u};
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..e943393
--- /dev/null
+++ b/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ Vite + React + TS
+
+
+
+
+
+
+