1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return V}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,532 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function h(e,t){return t.push(e),e}var f=1,p=1,g=0,v=0,m=0,y="";function b(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:f,column:p,length:s,return:""}}function _(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return m=v<g?u(y,v++):0,p++,10===m&&(p=1,f++),m}function k(){return u(y,v)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function S(e){return f=p=1,g=d(y=e),v=0,[]}function E(e){var t,r;return(t=v-1,r=function e(t){for(;w();)switch(m){case t:return v;case 34:case 39:34!==t&&39!==t&&e(m);break;case 40:41===t&&e(t);break;case 92:w()}return v}(91===e?e+2:40===e?e+1:e),c(y,t,r)).trim()}var O="-ms-",C="-moz-",P="-webkit-",T="comm",I="rule",j="decl",R="@keyframes";function A(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function L(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case T:return"";case R:return e.return=e.value+"{"+A(e.children,n)+"}";case I:e.value=e.props.join(",")}return d(r=A(e.children,n))?e.return=e.value+"{"+r+"}":""}function $(e,t,r,n,o,s,l,u,d,h,f){for(var p=o-1,g=0===o?s:[""],v=g.length,m=0,y=0,_=0;m<n;++m)for(var w=0,k=c(e,p+1,p=i(y=l[m])),x=e;w<v;++w)(x=(y>0?g[w]+" "+k:a(k,/&\f/g,g[w])).trim())&&(d[_++]=x);return b(e,t,r,0===o?I:u,d,h,f)}function M(e,t,r,n){return b(e,t,r,j,c(e,0,n),c(e,n+1,-1),n)}var N=function(e,t,r){for(var n=0,i=0;n=i,i=k(),38===n&&12===i&&(t[r]=1),!x(i);)w();return c(y,e,v)},F=function(e,t){var r=-1,n=44;do switch(x(n)){case 0:38===n&&12===k()&&(t[r]=1),e[r]+=N(v-1,t,r);break;case 2:e[r]+=E(n);break;case 4:if(44===n){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=w());return e},B=function(e,t){var r;return r=F(S(e),t),y="",r},D=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||D.get(r))&&!n){D.set(e,!0);for(var i=[],o=B(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},U=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return P+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return P+t+C+t+O+t+t;case 6828:case 4268:return P+t+O+t+t;case 6165:return P+t+O+"flex-"+t+t;case 5187:return P+t+a(t,/(\w+).+(:[^]+)/,P+"box-$1$2"+O+"flex-$1$2")+t;case 5443:return P+t+O+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return P+t+O+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return P+t+O+a(t,"shrink","negative")+t;case 5292:return P+t+O+a(t,"basis","preferred-size")+t;case 6060:return P+"box-"+a(t,"-grow","")+P+t+O+a(t,"grow","positive")+t;case 4554:return P+a(t,/([^-])(transform)/g,"$1"+P+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return a(a(t,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+t+t;case 4095:case 3583:case 4068:case 2532:return a(t,/(.+)-inline(.+)/,P+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return a(t,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+C+(108==u(t,r+3)?"$3":"$2-$3"))+t;
1case 115:return~l(t,"stretch")?e(a(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return a(t,":",":"+P)+t;case 101:return a(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(45===u(t,14)?"inline-":"")+"box$3$1"+P+"$2$3$1"+O+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return P+t+O+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return P+t+O+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return P+t+O+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return P+t+O+t+t}return t}(e.value,e.length);break;case R:return A([_(e,{value:a(e.value,"@","@"+P)})],n);case I:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return A([_(e,{props:[a(t,/:(read-\w+)/,":"+C+"$1")]})],n);case"::placeholder":return A([_(e,{props:[a(t,/:(plac\w+)/,":"+P+"input-$1")]}),_(e,{props:[a(t,/:(plac\w+)/,":"+C+"$1")]}),_(e,{props:[a(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""}).join("")}}],V=function(e){var t,r,i,s,g,_=e.key;if("css"===_){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||H,P={},I=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)P[t[r]]=!0;I.push(e)});var j=(r=(t=[z,U].concat(C,[L,(i=function(e){g.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var s="",a=0;a<r;a++)s+=t[a](e,n,i,o)||"";return s}),R=function(e){var t,r;return A((r=function e(t,r,n,i,s,g,_,S,O){for(var C,P=0,I=0,j=_,R=0,A=0,L=0,N=1,F=1,B=1,D=0,z="",U=s,H=g,V=i,q=z;F;)switch(L=D,D=w()){case 40:if(108!=L&&58==u(q,j-1)){-1!=l(q+=a(E(D),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:q+=E(D);break;case 9:case 10:case 13:case 32:q+=function(e){for(;m=k();)if(m<33)w();else break;return x(e)>2||x(m)>3?"":" "}(L);break;case 92:q+=function(e,t){for(var r;--t&&w()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return r=v+(t<6&&32==k()&&32==w()),c(y,e,r)}(v-1,7);continue;case 47:switch(k()){case 42:case 47:h(b(C=function(e,t){for(;w();)if(e+m===57)break;else if(e+m===84&&47===k())break;return"/*"+c(y,t,v-1)+"*"+o(47===e?e:w())}(w(),v),r,n,T,o(m),c(C,2,-2),0),O);break;default:q+="/"}break;case 123*N:S[P++]=d(q)*B;case 125*N:case 59:case 0:switch(D){case 0:case 125:F=0;case 59+I:-1==B&&(q=a(q,/\f/g,"")),A>0&&d(q)-j&&h(A>32?M(q+";",i,n,j-1):M(a(q," ","")+";",i,n,j-2),O);break;case 59:q+=";";default:if(h(V=$(q,r,n,P,I,s,S,z,U=[],H=[],j),g),123===D){if(0===I)e(q,r,V,V,U,g,j,S,H);else switch(99===R&&110===u(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,V,V,i&&h($(t,V,V,0,0,s,S,z,s,U=[],j),H),s,H,j,S,i?U:H);break;default:e(q,V,V,V,[""],H,0,S,H)}}}P=I=A=0,N=B=1,z=q="",j=_;break;case 58:j=1+d(q),A=L;default:if(N<1){if(123==D)--N;else if(125==D&&0==N++&&125==(m=v>0?u(y,--v):0,p--,10===m&&(p=1,f--),m))continue}switch(q+=o(D),D*N){case 38:B=I>0?1:(q+="\f",-1);break;case 44:S[P++]=(d(q)-1)*B,B=1;break;case 64:45===k()&&(q+=E(w())),R=k(),I=j=d(z=q+=function(e){for(;!x(k());)w();return c(y,e,v)}(v)),D++;break;case 45:45===L&&2==d(q)&&(N=0)}}return g}("",null,null,null,[""],t=S(t=e),0,[0],t),y="",r),j)},N={key:_,sheet:new n({key:_,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:function(e,t,r,n){g=r,R(e?e+"{"+t.styles+"}":t.styles),n&&(N.inserted[t.name]=!0)}};return N.sheet.hydrate(I),N}},45042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},75260:function(e,t,r){"use strict";r.d(t,{T:function(){return l},i:function(){return o},w:function(){return a}});var n=r(67294),i=r(8417);r(48137),r(27278);var o=!0,s=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);s.Provider;var a=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(s),r)})};o||(a=function(e){return function(t){var r=(0,n.useContext)(s);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(s.Provider,{value:r},e(t,r))):e(t,r)}});var l=n.createContext({})},48137:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(45042),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=h(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":u(s)&&(n+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(n+=c(o)+":"+d(o,s[a])+";");else{var l=h(e,t,s);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,s=r(e);return n=o,h(e,t,s)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,s="";n=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=h(r,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=h(r,t,e[l]),o&&(s+=a[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(s));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(s)+u,styles:s,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return s},j:function(){return a}});var n,i=r(67294),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},46663:function(e,t,r){"use strict";r.d(t,{L7:function(){return a},VO:function(){return n},W8:function(){return s},k9:function(){return o}});let n={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${n[e]}px)`};function o(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let e=o.breakpoints||i;return t.reduce((n,i,o)=>(n[e.up(e.keys[o])]=r(t[o]),n),{})}if("object"==typeof t){let e=o.breakpoints||i;return Object.keys(t).reduce((i,o)=>
1{if(-1!==Object.keys(e.values||n).indexOf(o)){let n=e.up(o);i[n]=r(t[o],o)}else i[o]=t[o];return i},{})}let s=r(t);return s}function s(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function a(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}},94581:function(e,t,r){"use strict";r.d(t,{$n:function(){return d},Fq:function(){return u},_j:function(){return c},mi:function(){return l}});var n=r(71387);function i(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function o(e){let t;if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),i=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,n.Z)(9,e));let s=e.substring(r+1,e.length-1);if("color"===i){if(t=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.Z)(10,t))}else s=s.split(",");return{type:i,values:s=s.map(e=>parseFloat(e)),colorSpace:t}}function s(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function a(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);let{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),l=(e,t=(e+r/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){let r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){return e=o(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function c(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}},46567:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(87462),i=r(63366),o=r(59766);let s=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,n.Z)({},e,{[t.key]:t.val}),{})};var l={borderRadius:4},u=r(60976),c=r(18784),d=r(13780);let h=["breakpoints","palette","spacing","shape"];var f=function(e={},...t){let{breakpoints:r={},palette:f={},spacing:p,shape:g={}}=e,v=(0,i.Z)(e,h),m=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,l=(0,i.Z)(e,s),u=a(t),c=Object.keys(u);function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function h(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-o/100}${r})`}function f(e,n){let i=c.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:n)-o/100}${r})`}return(0,n.Z)({keys:c,values:u,up:d,down:h,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):d(e)},not:function(e){let t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?h(c[t]):f(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}(r),y=function(e=8){if(e.mui)return e;let t=(0,u.hB)({spacing:e}),r=(...e)=>{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}(p),b=(0,o.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},f),spacing:y,shape:(0,n.Z)({},l,g)},v);return(b=t.reduce((e,t)=>
1(0,o.Z)(e,t),b)).unstable_sxConfig=(0,n.Z)({},d.Z,null==v?void 0:v.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},b}},4155:function(e,t,r){"use strict";var n=r(59766);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},60976:function(e,t,r){"use strict";r.d(t,{hB:function(){return p},eI:function(){return f},NA:function(){return g},e6:function(){return m},o3:function(){return y}});var n=r(46663),i=r(34439),o=r(4155);let s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,r]=e.split(""),n=s[t],i=a[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...c,...d];function f(e,t,r,n){var o;let s=null!=(o=(0,i.DW)(e,t,!1))?o:r;return"number"==typeof s?e=>"string"==typeof e?e:s*e:Array.isArray(s)?e=>"string"==typeof e?e:s[e]:"function"==typeof s?s:()=>void 0}function p(e){return f(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=Math.abs(t),n=e(r);return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t){let r=p(e.theme);return Object.keys(e).map(i=>(function(e,t,r,i){if(-1===t.indexOf(r))return null;let o=u(r),s=e[r];return(0,n.k9)(e,s,e=>o.reduce((t,r)=>(t[r]=g(i,e),t),{}))})(e,t,i,r)).reduce(o.Z,{})}function m(e){return v(e,c)}function y(e){return v(e,d)}function b(e){return v(e,h)}m.propTypes={},m.filterProps=c,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=h},34439:function(e,t,r){"use strict";r.d(t,{DW:function(){return o},Jq:function(){return s}});var n=r(14142),i=r(46663);function o(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function s(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:o(e,r)||n,t&&(i=t(i,n,e)),i}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:a,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=e.theme,d=o(c,a)||{};return(0,i.k9)(e,u,e=>{let i=s(d,l,e);return(e===i&&"string"==typeof e&&(i=s(d,l,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}},13780:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n=r(60976),i=r(34439),o=r(4155),s=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,o.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},a=r(46663);function l(e){return"number"!=typeof e?e:`${e}px solid`}let u=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),c=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,a.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],s(u,c,d,h,f,p,g,v,m,y,b);let _=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,a.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};_.propTypes={},_.filterProps=["gap"];let w=e=>
1{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,a.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,a.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};k.propTypes={},k.filterProps=["rowGap"];let x=(0,i.ZP)({prop:"gridColumn"}),S=(0,i.ZP)({prop:"gridRow"}),E=(0,i.ZP)({prop:"gridAutoFlow"}),O=(0,i.ZP)({prop:"gridAutoColumns"}),C=(0,i.ZP)({prop:"gridAutoRows"}),P=(0,i.ZP)({prop:"gridTemplateColumns"}),T=(0,i.ZP)({prop:"gridTemplateRows"}),I=(0,i.ZP)({prop:"gridTemplateAreas"}),j=(0,i.ZP)({prop:"gridArea"});function R(e,t){return"grey"===t?t:e}s(_,w,k,x,S,E,O,C,P,T,I,j);let A=(0,i.ZP)({prop:"color",themeKey:"palette",transform:R}),L=(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:R}),$=(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:R});function M(e){return e<=1&&0!==e?`${100*e}%`:e}s(A,L,$);let N=(0,i.ZP)({prop:"width",transform:M}),F=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,a.k9)(e,e.maxWidth,t=>{var r,n,i;let o=(null==(r=e.theme)?void 0:null==(n=r.breakpoints)?void 0:null==(i=n.values)?void 0:i[t])||a.VO[t];return{maxWidth:o||M(t)}}):null;F.filterProps=["maxWidth"];let B=(0,i.ZP)({prop:"minWidth",transform:M}),D=(0,i.ZP)({prop:"height",transform:M}),z=(0,i.ZP)({prop:"maxHeight",transform:M}),U=(0,i.ZP)({prop:"minHeight",transform:M});(0,i.ZP)({prop:"size",cssProperty:"width",transform:M}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:M});let H=(0,i.ZP)({prop:"boxSizing"});s(N,F,B,D,z,U,H);let V={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:R},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:R},backgroundColor:{themeKey:"palette",transform:R},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:k},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:F},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var q=V},18784:function(e,t,r){"use strict";var n=r(14142),i=r(4155),o=r(34439),s=r(46663),a=r(13780);
1let l=function(){function e(e,t,r,i){let a={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:h}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,o.DW)(r,c)||{};return h?h(a):(0,s.k9)(a,t,t=>{let r=(0,o.Jq)(f,d,t);return(t===r&&"string"==typeof t&&(r=(0,o.Jq)(f,d,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){var n;let{sx:o,theme:l={}}=r||{};if(!o)return null;let u=null!=(n=l.unstable_sxConfig)?n:a.Z;function c(r){let n=r;if("function"==typeof r)n=r(l);else if("object"!=typeof r)return r;if(!n)return null;let o=(0,s.W8)(l.breakpoints),a=Object.keys(o),c=o;return Object.keys(n).forEach(r=>{var o;let a="function"==typeof(o=n[r])?o(l):o;if(null!=a){if("object"==typeof a){if(u[r])c=(0,i.Z)(c,e(r,a,l,u));else{let e=(0,s.k9)({theme:l},a,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,a)?c[r]=t({sx:a,theme:l}):c=(0,i.Z)(c,e)}}else c=(0,i.Z)(c,e(r,a,l,u))}}),(0,s.L7)(a,c)}return Array.isArray(o)?o.map(c):c(o)}}();l.filterProps=["sx"],t.Z=l},2952:function(e,t,r){"use strict";var n=r(67294),i=r(75260);t.Z=function(e=null){let t=n.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}},21265:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(87462),i=r(63366),o=r(71387),s=r(59766),a=r(46567),l=r(13780),u=r(18784),c=r(94581),d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let b=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,r,n){let i=n.light||n,o=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,c.$n)(e.main,i):"dark"===t&&(e.dark=(0,c._j)(e.main,o)))}let x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],S={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function O(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let C=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6
1),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)],P=["duration","easing","delay"],T={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},I={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function j(e){return`${Math.round(e)}ms`}function R(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}var A={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var $=function(e={},...t){var r;let{mixins:O={},palette:$={},transitions:M={},typography:N={}}=e,F=(0,i.Z)(e,L);if(e.vars)throw Error((0,o.Z)(18));let B=function(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2}=e,l=(0,i.Z)(e,b),u=e.primary||function(e="light"){return"dark"===e?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(t),x=e.secondary||function(e="light"){return"dark"===e?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),S=e.error||function(e="light"){return"dark"===e?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),O=e.success||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),C=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function P(e){let t=(0,c.mi)(e,w.text.primary)>=r?w.text.primary:_.text.primary;return t}let T=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:s=700})=>{if(!(e=(0,n.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,o.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,o.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return k(e,"light",i,a),k(e,"dark",s,a),e.contrastText||(e.contrastText=P(e.main)),e},I=(0,s.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:T({color:u,name:"primary"}),secondary:T({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:S,name:"error"}),warning:T({color:C,name:"warning"}),info:T({color:E,name:"info"}),success:T({color:O,name:"success"}),grey:h,contrastThreshold:r,getContrastText:P,augmentColor:T,tonalOffset:a},{dark:w,light:_}[t]),l);return I}($),D=(0,a.Z)(e),z=(0,s.Z)(D,{mixins:(r=D.breakpoints,(0,n.Z)({toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}}},O)),palette:B,shadows:C.slice(),typography:function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:o=E,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:f,pxToRem:p}=r,g=(0,i.Z)(r,x),v=a/14,m=p||(e=>`${e/h*v}rem`),y=(e,t,r,i,s)=>(0,n.Z)({fontFamily:o,fontWeight:e,fontSize:m(t),lineHeight:r},o===E?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},s,f),b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(u,48,1.167,0),h4:y(u,34,1.235,.25),h5:y(u,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(u,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(u,16,1.5,.15),body2:y(u,14,1.43,.15),button:y(c,14,1.75,.4,S),caption:y(u,12,1.66,.4),overline:y(u,12,2.66,1,S),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.Z)((0,n.Z)({htmlFontSize:h,pxToRem:m,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:d},b),g,{clone:!1})}(B,N),transitions:function(e){let t=(0,n.Z)({},T,e.easing),r=(0,n.Z)({},I,e.duration);return(0,n.Z)({getAutoHeightDuration:R,create:(e=["all"],n={})=>{let{duration:o=r.standard,easing:s=t.easeInOut,delay:a=0}=n;return(0,i.Z)(n,P),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:j(o)} ${s} ${"string"==typeof a?a:j(a)}`).join(",")}},e,{easing:t,duration:r})}(M),zIndex:(0,n.Z)({},A)});return z=(0,s.Z)(z,F),(z=t.reduce((e,t)=>
1(0,s.Z)(e,t),z)).unstable_sxConfig=(0,n.Z)({},l.Z,null==F?void 0:F.unstable_sxConfig),z.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},z}},10606:function(e,t){"use strict";t.Z="$$material"},14142:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(71387);function i(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return function e(t,r,o={clone:!0}){let s=o.clone?(0,n.Z)({},t):t;return i(t)&&i(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(i(r[n])&&n in t&&i(t[n])?s[n]=e(t[n],r[n],o):o.clone?s[n]=i(r[n])?function e(t){if(!i(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:s[n]=r[n])}),s}}});var n=r(87462);function i(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{Z:function(){return n}})},57542:function(e,t,r){"use strict";var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{createBrowserSupabaseClient:()=>C,createClientComponentClient:()=>c,createMiddlewareClient:()=>b,createMiddlewareSupabaseClient:()=>T,createPagesBrowserClient:()=>d,createPagesServerClient:()=>g,createRouteHandlerClient:()=>E,createServerActionClient:()=>O,createServerComponentClient:()=>k,createServerSupabaseClient:()=>P}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))a.call(e,r)||void 0===r||i(e,r,{get:()=>t[r],enumerable:!(n=o(t,r))||n.enumerable});return e})(i({},"__esModule",{value:!0}),l);var u=r(68947);function c({supabaseUrl:e="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:t="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:r,cookieOptions:i,isSingleton:o=!0}={}){if(!e||!t)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");let s=()=>{var n;return(0,u.createSupabaseClient)(e,t,{...r,global:{...null==r?void 0:r.global,headers:{...null==(n=null==r?void 0:r.global)?void 0:n.headers,"X-Client-Info":"@supabase/[email protected]"}},auth:{storageKey:null==i?void 0:i.name,storage:new u.BrowserCookieAuthStorageAdapter(i)}})};if(o){let e=n??s();return"undefined"==typeof window?e:(n||(n=e),n)}return s()}var d=c,h=r(68947),f=r(69328),p=class extends h.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let r=(0,f.splitCookiesString)((null==(t=this.context.res.getHeader("set-cookie"))?void 0:t.toString())??"").map(t=>(0,h.parseCookies)(t)[e]).find(e=>!!e),n=r??this.context.req.cookies[e];return n}setCookie(e,t){this._setCookie(e,t)}deleteCookie(e){this._setCookie(e,"",{maxAge:0})}_setCookie(e,t,r){var n;let i=(0,f.splitCookiesString)((null==(n=this.context.res.getHeader("set-cookie"))?void 0:n.toString())??"").filter(t=>!(e in(0,h.parseCookies)(t))),o=(0,h.serializeCookie)(e,t,{...this.cookieOptions,...r,httpOnly:!1});this.context.res.setHeader("set-cookie",[...i,o])}};function g(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){var o;if(!t||!r)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,h.createSupabaseClient)(t,r,{...n,global:{...null==n?void 0:n.global,headers:{...null==(o=null==n?void 0:n.global)?void 0:o.headers,"X-Client-Info":"@supabase/[email protected]"}},auth:{storageKey:null==i?void 0:i.name,storage:new p(e,i)}})}
1var v=r(68947),m=r(69328),y=class extends v.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let r=(0,m.splitCookiesString)((null==(t=this.context.res.headers.get("set-cookie"))?void 0:t.toString())??"").map(t=>(0,v.parseCookies)(t)[e]).find(e=>!!e);return r||(0,v.parseCookies)(this.context.req.headers.get("cookie")??"")[e]}setCookie(e,t){this._setCookie(e,t)}deleteCookie(e){this._setCookie(e,"",{maxAge:0})}_setCookie(e,t,r){let n=(0,v.serializeCookie)(e,t,{...this.cookieOptions,...r,httpOnly:!1});this.context.res.headers&&(this.context.res.headers.append("set-cookie",n),this.context.res.headers.append("cookie",n))}};function b(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){var o;if(!t||!r)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,v.createSupabaseClient)(t,r,{...n,global:{...null==n?void 0:n.global,headers:{...null==(o=null==n?void 0:n.global)?void 0:o.headers,"X-Client-Info":"@supabase/[email protected]"}},auth:{storageKey:null==i?void 0:i.name,storage:new y(e,i)}})}var _=r(68947),w=class extends _.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let r=this.context.cookies();return null==(t=r.get(e))?void 0:t.value}setCookie(e,t){}deleteCookie(e){}};function k(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){var o;if(!t||!r)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,_.createSupabaseClient)(t,r,{...n,global:{...null==n?void 0:n.global,headers:{...null==(o=null==n?void 0:n.global)?void 0:o.headers,"X-Client-Info":"@supabase/[email protected]"}},auth:{storageKey:null==i?void 0:i.name,storage:new w(e,i)}})}var x=r(68947),S=class extends x.CookieAuthStorageAdapter{constructor(e,t){super(t),this.context=e}getCookie(e){var t;let r=this.context.cookies();return null==(t=r.get(e))?void 0:t.value}setCookie(e,t){let r=this.context.cookies();r.set(e,t,this.cookieOptions)}deleteCookie(e){let t=this.context.cookies();t.set(e,"",{maxAge:0})}};function E(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){var o;if(!t||!r)throw Error("either NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY env variables or supabaseUrl and supabaseKey are required!");return(0,x.createSupabaseClient)(t,r,{...n,global:{...null==n?void 0:n.global,headers:{...null==(o=null==n?void 0:n.global)?void 0:o.headers,"X-Client-Info":"@supabase/[email protected]"}},auth:{storageKey:null==i?void 0:i.name,storage:new S(e,i)}})}var O=E;function C({supabaseUrl:e="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:t="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:r,cookieOptions:n}={}){return console.warn("Please utilize the `createPagesBrowserClient` function instead of the deprecated `createBrowserSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages"),d({supabaseUrl:e,supabaseKey:t,options:r,cookieOptions:n})}function P(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){return console.warn("Please utilize the `createPagesServerClient` function instead of the deprecated `createServerSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs-pages"),g(e,{supabaseUrl:t,supabaseKey:r,options:n,cookieOptions:i})}function T(e,{supabaseUrl:t="https://tsjkuusjwifjgegheudo.supabase.co",supabaseKey:r="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRzamt1dXNqd2lmamdlZ2hldWRvIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTAzODUzNTQsImV4cCI6MjAwNTk2MTM1NH0.YB53YWAcET4gZYPfCm07_XatOGGRyfaJOipWXznc75A",options:n,cookieOptions:i}={}){return console.warn("Please utilize the `createMiddlewareClient` function instead of the deprecated `createMiddlewareSupabaseClient` function. Learn more: https://supabase.com/docs/guides/auth/auth-helpers/nextjs#middleware"),b(e,{supabaseUrl:t,supabaseKey:r,options:n,cookieOptions:i})}},84053:function(e,t,r){var n,i,o=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},h={};((e,t)=>
1{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(h,{SessionContextProvider:()=>g,useSession:()=>y,useSessionContext:()=>v,useSupabaseClient:()=>m,useUser:()=>b}),e.exports=d(s({},"__esModule",{value:!0}),h);var f=(i=null!=(n=r(67294))?o(u(n)):{},d(n&&n.__esModule?i:s(i,"default",{value:n,enumerable:!0}),n)),p=(0,f.createContext)({isLoading:!0,session:null,error:null,supabaseClient:{}}),g=({supabaseClient:e,initialSession:t=null,children:r})=>{let[n,i]=(0,f.useState)(t),[o,s]=(0,f.useState)(!t),[a,l]=(0,f.useState)();(0,f.useEffect)(()=>{(async function(){let{data:{session:t},error:r}=await e.auth.getSession();if(r){l(r),s(!1);return}i(t),s(!1)})()},[]),(0,f.useEffect)(()=>{let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{t&&("SIGNED_IN"===e||"TOKEN_REFRESHED"===e)&&i(t),"SIGNED_OUT"===e&&i(null)});return()=>{t.unsubscribe()}},[]);let u=(0,f.useMemo)(()=>o?{isLoading:!0,session:null,error:null,supabaseClient:e}:a?{isLoading:!1,session:null,error:a,supabaseClient:e}:{isLoading:!1,session:n,error:null,supabaseClient:e},[o,n,a]);return f.default.createElement(p.Provider,{value:u},r)},v=()=>{let e=(0,f.useContext)(p);if(void 0===e)throw Error("useSessionContext must be used within a SessionContextProvider.");return e};function m(){let e=(0,f.useContext)(p);if(void 0===e)throw Error("useSupabaseClient must be used within a SessionContextProvider.");return e.supabaseClient}var y=()=>{let e=(0,f.useContext)(p);if(void 0===e)throw Error("useSession must be used within a SessionContextProvider.");return e.session},b=()=>{var e,t;let r=(0,f.useContext)(p);if(void 0===r)throw Error("useUser must be used within a SessionContextProvider.");return null!=(t=null==(e=r.session)?void 0:e.user)?t:null}},52752:function(e,t){"use strict";/*! 2 * content-type 3 * Copyright(c) 2015 Douglas Christopher Wilson 4 * MIT Licensed 5 */var r=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function o(e){this.parameters=Object.create(null),this.type=e}t.Q=function(e){if(!e)throw TypeError("argument string is required");var t,s,a,l="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof l)throw TypeError("argument string is required to be a string");var u=l.indexOf(";"),c=-1!==u?l.slice(0,u).trim():l.trim();if(!i.test(c))throw TypeError("invalid media type");var d=new o(c.toLowerCase());if(-1!==u){for(r.lastIndex=u;s=r.exec(l);){if(s.index!==u)throw TypeError("invalid parameter format");u+=s[0].length,t=s[1].toLowerCase(),34===(a=s[2]).charCodeAt(0)&&-1!==(a=a.slice(1,-1)).indexOf("\\")&&(a=a.replace(n,"$1")),d.parameters[t]=a}if(u!==l.length)throw TypeError("invalid parameter format")}return d}},86010:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},54098:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}
5function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=u(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=c(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=s(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];m.redirect=function(e,t){if(-1===y.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(r,n){return new Promise(function(i,o){var s=new g(r,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
5h(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;i(new m(n,r))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}b.polyfill=!0,n.fetch||(n.fetch=b,n.Headers=l,n.Request=g,n.Response=m),e.Headers=l,e.Request=g,e.Response=m,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},13882:function(e,t,r){"use strict";function n(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},71381:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(13882);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(0,n.Z)(1,arguments),e instanceof Date||"object"===i(e)&&"[object Date]"===Object.prototype.toString.call(e)}},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{if(!__global__)return t();return __global__}finally{delete Object.prototype.__global__}}()},8679:function(e,t,r){"use strict";var n=r(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),g=l(r),v=0;v<s.length;++v){var m=s[v];if(!o[m]&&!(n&&n[m])&&!(g&&g[m])&&!(a&&a[m])){var y=h(r,m);try{u(t,m,y)}catch(e){}}}}return t}},96103:function(e,t){"use strict";/** @license React v16.13.1 6 * react-is.production.min.js 7 * 8 * Copyright (c) Facebook, Inc. and its affiliates. 9 * 10 * This source code is licensed under the MIT license found in the 11 * LICENSE file in the root directory of this source tree. 12 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case v:case g:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===m)},t.typeOf=w},21296:function(e,t,r){"use strict";e.exports=r(96103)},82254:function(e,t,r){"use strict";var n=r(83454),i=this&&this.__importDefault||function(e){return e&&e.__esMo
12dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isNetlify=t.isVercel=t.Version=void 0;var o=i(r(48271)),s=i(r(74243)),a=i(r(23679));t.Version=r(19122).version,t.isVercel=n.env.AXIOM_INGEST_ENDPOINT||"https://vercel-vitals.axiom.co/api/v1/send?configurationId=icfg_Mm9jUt409U3V9gAboipn5wje&projectId=764036e9-900e-4e55-8de0-eb2b34888b57&type=web-vitals",t.isNetlify="true"==n.env.NETLIFY;var l=new o.default;t.isVercel?l=new s.default:t.isNetlify&&(l=new a.default),t.default=l},42029:function(e,t,r){"use strict";t.U9=void 0;var n=r(20921);Object.defineProperty(t,"U9",{enumerable:!0,get:function(){return n.reportWebVitals}}),r(55709),r(42726)},55709:function(e,t,r){"use strict";var n,i,o=r(83454),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},c=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},d=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},h=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.prettyPrint=t.log=t.Logger=t.LogLevel=void 0;var f=u(r(82254)),p=r(19690),g=f.default.getLogsEndpoint(),v=o.env.AXIOM_LOG_LEVEL||"debug";(n=i=t.LogLevel||(t.LogLevel={}))[n.debug=0]="debug",n[n.info=1]="info",n[n.warn=2]="warn",n[n.error=3]="error",n[n.off=100]="off";var m=function(){function e(t,r,n,o,a){void 0===t&&(t={}),void 0===r&&(r=null),void 0===n&&(n=!0),void 0===o&&(o="frontend");var l=this;this.args=t,this.req=r,this.autoFlush=n,this.source=o,this.logEvents=[],this.throttledSendLogs=(0,p.throttle)(this.sendLogs,1e3),this.children=[],this.debug=function(e,t){void 0===t&&(t={}),l._log("debug",e,t)},this.info=function(e,t){void 0===t&&(t={}),l._log("info",e,t)},this.warn=function(e,t){void 0===t&&(t={}),l._log("warn",e,t)},this.error=function(e,t){void 0===t&&(t={}),l._log("error",e,t)},this.with=function(t){var r=new e(s(s({},l.args),t),l.req,l.autoFlush,l.source);return l.children.push(r),r},this.withRequest=function(t){return new e(s({},l.args),t,l.autoFlush,l.source)},this._log=function(e,t,r){if(void 0===r&&(r={}),!(i[e]<i[l.logLevel])){var n={level:e,message:t,_time:new Date(Date.now()).toISOString(),fields:l.args||{}};if(r instanceof Error)n.fields=s(s({},n.fields),{message:r.message,stack:r.stack,name:r.name});else if("object"==typeof r&&null!==r&&Object.keys(r).length>0){var o=JSON.parse(JSON.stringify(r,_));n.fields=s(s({},n.fields),o)}else r&&r.length&&(n.fields=s(s({},n.fields),{args:r}));f.default.injectPlatformMetadata(n,l.source),null!=l.req&&(n.request=l.req,n.platform?n.platform.route=l.req.path:n.vercel&&(n.vercel.route=l.req.path)),l.logEvents.push(n),l.autoFlush&&l.throttledSendLogs()}},this.attachResponseStatus=function(e){l.logEvents=l.logEvents.map(function(t){return t.request&&(t.request.statusCode=e),t})},this.flush=function(){return c(l,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,Promise.all(h([this.sendLogs()],this.children.map(function(e){return e.flush()}),!0))];case 1:return e.sent(),[2]}})})},this.logLevel=a||v||"debug"}return e.prototype.sendLogs=function(){return c(this,void 0,void 0,function(){var e,t,n,i;return d(this,function(o){switch(o.label){case 0:if(!this.logEvents.length)return[2];
12if(!f.default.isEnvVarsSet())return this.logEvents.forEach(function(e){return b(e)}),this.logEvents=[],[2];e=JSON.stringify(this.logEvents),this.logEvents=[],t={"Content-Type":"application/json","User-Agent":"next-axiom/v"+f.Version},f.default.token&&(t.Authorization="Bearer ".concat(f.default.token)),n={body:e,method:"POST",keepalive:!0,headers:t},o.label=1;case 1:if(o.trys.push([1,5,,6]),"undefined"!=typeof fetch)return[3,3];return[4,r(66477)];case 2:return o.sent()(g,n).catch(console.error),[3,4];case 3:f.default.isBrowser&&f.isVercel&&navigator.sendBeacon&&navigator.sendBeacon(g,e)||fetch(g,n).catch(console.error),o.label=4;case 4:return[3,6];case 5:return i=o.sent(),console.error("Failed to send logs to Axiom: ".concat(i)),[3,6];case 6:return[2]}})})},e}();t.Logger=m,t.log=new m;var y={info:{terminal:"32",browser:"lightgreen"},debug:{terminal:"36",browser:"lightblue"},warn:{terminal:"33",browser:"yellow"},error:{terminal:"31",browser:"red"}};function b(e){var t=Object.keys(e.fields).length>0;if(p.isNoPrettyPrint){var r="".concat(e.level," - ").concat(e.message);t&&(r+=" "+JSON.stringify(e.fields)),console.log(r);return}var n="",i=[e.level,e.message];f.default.isBrowser?(n="%c%s - %s",i=h(["color: ".concat(y[e.level].browser,";")],i,!0)):n="\x1b[".concat(y[e.level].terminal,"m%s\x1b[0m - %s"),t&&(n+=" %o",
12i.push(e.fields)),e.request&&(n+=" %o",i.push(e.request)),console.log.apply(console,h([n],i,!0))}function _(e,t){return t instanceof Error?s(s({},t),{name:t.name,message:t.message,stack:t.stack}):t}t.prettyPrint=b},48271:function(e,t,r){"use strict";var n=r(83454);Object.defineProperty(t,"__esModule",{value:!0});var i=r(19690),o=function(){function e(){this.proxyPath="/_axiom",this.isBrowser="undefined"!=typeof window,this.shoudSendEdgeReport=!1,this.token=n.env.AXIOM_TOKEN,this.dataset=n.env.AXIOM_DATASET,this.environment="production",this.axiomUrl=n.env.AXIOM_URL||"https://cloud.axiom.co",this.region=n.env.REGION||void 0}return e.prototype.isEnvVarsSet=function(){return!!(this.axiomUrl&&n.env.AXIOM_DATASET&&n.env.AXIOM_TOKEN)},e.prototype.getIngestURL=function(e){return"".concat(this.axiomUrl,"/api/v1/datasets/").concat(this.dataset,"/ingest")},e.prototype.getLogsEndpoint=function(){return this.isBrowser?"".concat(this.proxyPath,"/logs"):this.getIngestURL(i.EndpointType.logs)},e.prototype.getWebVitalsEndpoint=function(){return this.isBrowser?"".concat(this.proxyPath,"/logs"):this.getIngestURL(i.EndpointType.webVitals)},e.prototype.wrapWebVitalsObject=function(e){var t=this;return e.map(function(e){return{webVital:e,_time:new Date().getTime(),platform:{environment:t.environment,source:"web-vital"}}})},e.prototype.injectPlatformMetadata=function(e,t){e.platform={environment:this.environment,region:this.region,source:t+"-log"}},e.prototype.generateRequestMeta=function(e){return{startTime:new Date().getTime(),path:e.url,method:e.method,host:this.getHeaderOrDefault(e,"host",""),userAgent:this.getHeaderOrDefault(e,"user-agent",""),scheme:"https",ip:this.getHeaderOrDefault(e,"x-forwarded-for",""),region:this.region}},e.prototype.getHeaderOrDefault=function(e,t,r){return e.headers[t]?e.headers[t]:r},e}();t.default=o},23679:function(e,t,r){"use strict";var n,i=r(83454),o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=s(r(48271)),l=i.env.SITE_ID,u=i.env.BUILD_ID,c=i.env.CONTEXT,d=i.env.DEPLOYMENT_URL,h=i.env.DEPLOYMENT_ID,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.wrapWebVitalsObject=function(e){var t=this;return e.map(function(e){return{webVital:e,_time:new Date().getTime(),netlify:{environment:t.environment,source:"web-vital",siteId:l,buildId:u,context:c,deploymentUrl:d,deploymentId:h}}})},t.prototype.injectPlatformMetadata=function(e,t){e.netlify={environment:this.environment,region:"edge"===t?i.env.DENO_REGION:i.env.AWS_REGION,source:t+"-log",siteId:l,buildId:u,context:c,deploymentUrl:d,deploymentId:"edge"===t?i.env.DENO_DEPLOYMENT_ID:h}},t}(a.default);t.default=f},74243:function(e,t,r){"use strict";var n,i=r(83454),o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=s(r(48271)),l="https://vercel-vitals.axiom.co/api/v1/send?configurationId=icfg_Mm9jUt409U3V9gAboipn5wje&projectId=764036e9-900e-4e55-8de0-eb2b34888b57&type=web-vitals",u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.provider="vercel",t.shoudSendEdgeReport=!0,t.region=i.env.VERCEL_REGION||void 0,t.environment=i.env.VERCEL_ENV||"production",t.token=void 0,t.axiomUrl=l,t}return o(t,e),t.prototype.isEnvVarsSet=function(){return void 0!=l}
12,t.prototype.getIngestURL=function(e){var t=new URL(this.axiomUrl);return t.searchParams.set("type",e.toString()),t.toString()},t.prototype.getWebVitalsEndpoint=function(){return"".concat(this.proxyPath,"/web-vitals")},t.prototype.wrapWebVitalsObject=function(e){return{webVitals:e,environment:this.environment}},t.prototype.injectPlatformMetadata=function(e,t){e.vercel={environment:this.environment,region:this.region,source:t}},t}(a.default);t.default=u},19690:function(e,t,r){"use strict";var n,i=r(83454);Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.EndpointType=t.isNoPrettyPrint=void 0,t.isNoPrettyPrint="true"==i.env.AXIOM_NO_PRETTY_PRINT,(n=t.EndpointType||(t.EndpointType={})).webVitals="web-vitals",n.logs="logs",t.throttle=function(e,t){var r,n;return function(){var i=this,o=arguments;null==n&&(n=Date.now()),clearTimeout(r),r=setTimeout(function(){Date.now()-n>=t&&(e.apply(i,o),n=Date.now())},Math.max(t-(Date.now()-n),0))}}},20921:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.reportWebVitalsWithPath=t.reportWebVitals=void 0;var a=r(19690),l=s(r(82254)),u=l.default.getWebVitalsEndpoint(),c=(0,a.throttle)(function(){var e=JSON.stringify(l.default.wrapWebVitalsObject(d)),t={"Content-Type":"application/json","User-Agent":"next-axiom/v"+l.Version};l.default.token&&(t.Authorization="Bearer ".concat(l.default.token));var r={body:e,method:"POST",keepalive:!0,headers:t};function n(){fetch(u,r).catch(console.error)}if(l.default.isBrowser&&l.isVercel&&navigator.sendBeacon)try{navigator.sendBeacon.bind(navigator)(u,e)}catch(e){n()}else n();d=[]},1e3),d=[];function h(e,t){var r,i=t||(null===(r=window.__NEXT_DATA__)||void 0===r?void 0:r.page);d.push(n({route:i},e)),l.default.isEnvVarsSet()&&c()}t.reportWebVitals=function(e){h(e)},t.reportWebVitalsWithPath=h},42726:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}
12,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withAxiomGetServerSideProps=t.withAxiom=t.withAxiomNextEdgeFunction=t.withAxiomNextServerSidePropsHandler=t.withAxiomNextApiHandler=t.withAxiomNextConfig=void 0;var a=r(55709),l=r(19690),u=s(r(82254));function c(e){var t=this;return n(n({},e),{rewrites:function(){return i(t,void 0,void 0,function(){var t,r,n,i,s,c;return o(this,function(o){switch(o.label){case 0:return[4,null===(c=e.rewrites)||void 0===c?void 0:c.call(e)];case 1:if(t=o.sent(),r=u.default.getIngestURL(l.EndpointType.webVitals),n=u.default.getIngestURL(l.EndpointType.logs),!r&&!n)return(i=new a.Logger).warn("axiom: Envvars not detected. If this is production please see https://github.com/axiomhq/next-axiom for help"),i.warn("axiom: Sending Web Vitals to /dev/null"),i.warn("axiom: Sending logs to console"),[2,t||[]];if(s=[{source:"".concat(u.default.proxyPath,"/web-vitals"),destination:r,basePath:!1},{source:"".concat(u.default.proxyPath,"/logs"),destination:n,basePath:!1}],!t)return[2,s];if(Array.isArray(t))return[2,t.concat(s)];return t.afterFiles=(t.afterFiles||[]).concat(s),[2,t]}})})}})}function d(e){var t=this;return function(r,n){return i(t,void 0,void 0,function(){var t,s,l,c,d,h,f;return o(this,function(p){switch(p.label){case 0:t=u.default.generateRequestMeta(r),s=new a.Logger({},t,!1,"lambda"),(l=r).log=s,d=(c=function(e,t){var r=this,n=[],s=t.send;t.send=function(a){n.push(i(r,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return e.log.attachResponseStatus(t.statusCode),[4,e.log.flush()];case 1:return r.sent(),s(a),[2]}})}))};var a=t.json;t.json=function(s){n.push(i(r,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return e.log.attachResponseStatus(t.statusCode),[4,e.log.flush()];case 1:return r.sent(),a(s),[2]}})}))};var l=t.end;return t.end=function(s){return n.push(i(r,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return e.log.attachResponseStatus(t.statusCode),[4,e.log.flush()];case 1:return r.sent(),l(s),[2]}})})),t},[t,n]}(l,n))[0],h=c[1],p.label=1;case 1:return p.trys.push([1,5,,8]),[4,e(l,d)];case 2:return p.sent(),[4,s.flush()];case 3:case 6:return p.sent(),[4,Promise.all(h)];case 4:return p.sent(),[3,8];case 5:return f=p.sent(),s.error("Error in API handler",{error:f}),s.attachResponseStatus(500),[4,s.flush()];case 7:throw p.sent(),f;case 8:return[2]}})})}}function h(e){var t=this;return function(r){return i(t,void 0,void 0,function(){var t,n,i,s,l;return o(this,function(o){switch(o.label){case 0:t=u.default.generateRequestMeta(r.req),n=new a.Logger({},t,!1,"lambda"),(i=r).log=n,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,e(i)];case 2:return s=o.sent(),[4,n.flush()];case 3:return o.sent(),[2,s];case 4:return l=o.sent(),n.error("Error in getServerSideProps handler",{error:l}),n.attachResponseStatus(500),[4,n.flush()];case 5:throw o.sent(),l;
12case 6:return[2]}})})}}function f(e){var t=this;return function(r,n){return i(t,void 0,void 0,function(){var t,i,s,l,u,c;return o(this,function(o){switch(o.label){case 0:t={startTime:new Date().getTime(),ip:r.ip,region:null===(c=r.geo)||void 0===c?void 0:c.region,host:r.nextUrl.host,method:r.method,path:r.nextUrl.pathname,scheme:r.nextUrl.protocol.replace(":",""),userAgent:r.headers.get("user-agent")},i=new a.Logger({},t,!1,"edge"),(s=r).log=i,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e(s,n)];case 2:return(l=o.sent())&&i.attachResponseStatus(l.status),n.waitUntil(i.flush()),p(t),[2,l];case 3:throw u=o.sent(),i.error("Error in edge function",{error:u}),i.attachResponseStatus(500),n.waitUntil(i.flush()),p(t),u;case 4:return[2]}})})}}function p(e){u.default.shoudSendEdgeReport&&console.log("AXIOM_EDGE_REPORT::".concat(JSON.stringify(e)))}t.withAxiomNextConfig=c,t.withAxiomNextApiHandler=d,t.withAxiomNextServerSidePropsHandler=h,t.withAxiomNextEdgeFunction=f,t.withAxiom=function(e){return"object"==typeof e?c(e):"function"==typeof e&&void 0===globalThis.EdgeRuntime?d(e):f(e)},t.withAxiomGetServerSideProps=h},53756:function(e,t,r){"use strict";let n;r.d(t,{Jc:function(){return ek},$G:function(){return m}});var i=r(67294);r(71739),Object.create(null);let o={};function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}let a=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function l(e,t,r){e.loadNamespaces(t,a(e,r))}function u(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,a(e,n))}let c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},h=e=>d[e],f={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,h)},p=(0,i.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let v=(e,t)=>{let r=(0,i.useRef)();return(0,i.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current};function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:r}=t,{i18n:o,defaultNS:a}=(0,i.useContext)(p)||{},c=r||o||n;if(c&&!c.reportNamespaces&&(c.reportNamespaces=new g),!c){s("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}c.options.react&&void 0!==c.options.react.wait&&s("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let d={...f,...c.options.react,...t},{useSuspense:h,keyPrefix:m}=d,y=e||a||c.options&&c.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(y);let b=(c.isInitialized||c.initializedStoreOnce)&&y.every(e=>(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return s("i18n.languages were undefined or empty",t.languages),!0;let n=void 0!==t.options.ignoreJSONStructure;return n?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
12isLanguageChangingTo,e))return!1}}):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;let s=(e,r)=>{let n=t.services.backendConnector.state[`${e}|${r}`];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!s(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(n,e)&&(!i||s(o,e)))}(e,t,r)})(e,c,d));function _(){return c.getFixedT(t.lng||null,"fallback"===d.nsMode?y:y[0],m)}let[w,k]=(0,i.useState)(_),x=y.join();t.lng&&(x=`${t.lng}${x}`);let S=v(x),E=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=d;function n(){E.current&&k(_)}return E.current=!0,b||h||(t.lng?u(c,t.lng,y,()=>{E.current&&k(_)}):l(c,y,()=>{E.current&&k(_)})),b&&S&&S!==x&&E.current&&k(_),e&&c&&c.on(e,n),r&&c&&c.store.on(r,n),()=>{E.current=!1,e&&c&&e.split(" ").forEach(e=>c.off(e,n)),r&&c&&r.split(" ").forEach(e=>c.store.off(e,n))}},[c,x]);let O=(0,i.useRef)(!0);(0,i.useEffect)(()=>{E.current&&!O.current&&k(_),O.current=!1},[c,m]);let C=[w,c,b];if(C.t=w,C.i18n=c,C.ready=b,b||!b&&!h)return C;throw new Promise(e=>{t.lng?u(c,t.lng,y,()=>e()):l(c,y,()=>e())})}function y(e){let{i18n:t,defaultNS:r,children:n}=e,o=(0,i.useMemo)(()=>({i18n:t,defaultNS:r}),[t,r]);return(0,i.createElement)(p.Provider,{value:o},n)}function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t,r){var n;return n=function(e,t){if("object"!==_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===_(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=r(8679),x=r.n(k);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||E(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var P={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},T=["i18n"],I=["i18n"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
12t%2?j(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var A=["backend","detection"],L=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,r,n,i=e.i18n,o=C(e,T),s=P.i18n,a=R(R(R(R({},C(P,I)),o),s),i),l=a.defaultNS,u=a.lng,c=a.localeExtension,d=a.localePath,h=a.nonExplicitSupportedLngs,f=a.locales.filter(function(e){return"default"!==e});if("cimode"===u)return a;if(void 0===a.fallbackLng&&(a.fallbackLng=a.defaultLocale,"default"===a.fallbackLng)){var p=O(f,1);a.fallbackLng=p[0]}var g=null==e?void 0:null===(t=e.interpolation)||void 0===t?void 0:t.prefix,v=null==e?void 0:null===(r=e.interpolation)||void 0===r?void 0:r.suffix,m=null!=g?g:"{{",y=null!=v?v:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(g||v)&&(a.localeStructure="".concat(m,"lng").concat(y,"/").concat(m,"ns").concat(y));var b=a.fallbackLng,w=a.localeStructure;if(h){var k=function(e,t){var r=O(t.split("-"),1)[0];return e[t]=[r],e};if("string"==typeof b)a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(k,{default:[b]});else if(Array.isArray(b))a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(k,{default:b});else if("object"===_(b))a.fallbackLng=Object.entries(a.fallbackLng).reduce(function(e,t){var r,n=O(t,2),i=n[0],o=n[1];return e[i]=i.includes("-")?(r=[i.split("-")[0]].concat(function(e){if(Array.isArray(e))return S(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||E(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Array.from(new Set(r))):o,e},b);else if("function"==typeof b)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e?void 0:null===(n=e.use)||void 0===n?void 0:n.some(function(e){return"backend"===e.type}))||("string"==typeof d?a.backend={addPath:"".concat(d,"/").concat(w,".missing.").concat(c),loadPath:"".concat(d,"/").concat(w,".").concat(c)}:"function"!=typeof d||(a.backend={addPath:function(e,t){return d(e,t,!0)},loadPath:function(e,t){return d(e,t,!1)}})),"string"==typeof a.ns||Array.isArray(a.ns)||(a.ns=[l]),A.forEach(function(t){e[t]&&(a[t]=R(R({},a[t]),e[t]))}),a};let $={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class M{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||$,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new M(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new M(this.logger,e)}}var N=new M;class F{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.observers[e]){let t=[].concat(this.observers[e]);
12t.forEach(e=>{e(...r)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...r])})}}}function B(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function D(e){return null==e?"":""+e}function z(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}let o="string"!=typeof t?[].concat(t):t.split(".");for(;o.length>1;){if(i())return{};let t=n(o.shift());!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function U(e,t,r){let{obj:n,k:i}=z(e,t,Object);n[i]=r}function H(e,t){let{obj:r,k:n}=z(e,t);if(r)return r[n]}function V(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var q={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function W(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>q[e]):e}let Z=[" ",",","?","!",";"];function G(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),i=e;for(let e=0;e<n.length;++e){if(!i||"string"==typeof i[n[e]]&&e+1<n.length)return;if(void 0===i[n[e]]){let o=2,s=n.slice(e,e+o).join(r),a=i[s];for(;void 0===a&&n.length>e+o;)o++,a=i[s=n.slice(e,e+o).join(r)];if(void 0===a)return;if(null===a)return null;if(t.endsWith(s)){if("string"==typeof a)return a;if(s&&"string"==typeof a[s])return a[s]}let l=n.slice(e+o).join(r);if(l)return G(a,l,r);return}i=i[n[e]]}return i}function J(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class K extends F{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."));let a=H(this.data,s);return a||!o||"string"!=typeof r?a:G(this.data&&this.data[e]&&this.data[e][t],r,i)}addResource(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),U(this.data,s,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||"[object Array]"===Object.prototype.toString.apply(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let a=H(this.data,s)||{};n?function e(t,r,n){for(let i in r)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof r[i]||r[i]instanceof String?n&&(t[i]=r[i]):e(t[i],r[i],n):t[i]=r[i]);return t}(a,r,i):a={...a,...r},U(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),r=t&&Object.keys(t)||[];return!!r.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Q={processors:{},addPostProcessor(e){this.processors[e.name]=e}
12,handle(e,t,r,n,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,i))}),t}};let X={};class Y extends F{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=N.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let n=Z.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=RegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,r,n);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(n)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:`${a}${e}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:o}let c=this.resolve(e,t),d=c&&c.res,h=c&&c.usedKey||o,f=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,m="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(v&&d&&m&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(p)&&!("string"==typeof g&&"[object Array]"===p)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c):e}if(i){let e="[object Array]"===p,r=e?[]:{},n=e?f:h;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let o=`${n}${i}${e}`;r[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),r[e]===o&&(r[e]=d[e])}d=r}}else if(v&&"string"==typeof g&&"[object Array]"===p)(d=d.join(g))&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,s=!1,u=void 0!==t.count&&"string"!=typeof t.count,h=Y.hasDefaultValue(t),f=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(n=!0,d=g),this.isValidLookup(d)||(s=!0,d=o);let v=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,m=v&&s?void 0:d,y=h&&g!==d&&this.options.updateMissing;if(s||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?g:d),i){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,r,n)=>{let i=h&&n!==d?n:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,r,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,r,i,y,t),this.emit
12("missingKey",e,a,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(r=>{n([e],o+r,t[`defaultValue${r}`]||g)})}):n(e,o,g))}d=this.extendTranslation(d,e,t,c,r),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(c.res=d,c):d}extendTranslation(e,t,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language,r),a){let t=e.match(this.interpolator.nestingRegexp),n=t&&t.length;s<n&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];return i&&i[0]===n[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):o.translate(...n,t)},r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=e&&a&&a.length&&!1!==r.applyPostProcessor&&(e=Q.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:n,...r}:r,this)),e}resolve(e){let t,r,n,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,s),l=a.key;r=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==s.count&&"string"!=typeof s.count,d=c&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!X[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(X[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let o;if(this.isValidLookup(t))return;i=r;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,s);else{let e;c&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),s.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),d&&a.push(l+t)),h){let r=`${l}${this.options.contextSeparator}
12${s.context}`;a.push(r),c&&(a.push(r+e),s.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),d&&a.push(r+t))}}for(;o=a.pop();)this.isValidLookup(t)||(n=o,t=this.getResource(r,e,o,s))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}class et{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N.create("languageUtils")}getScriptPartFromCode(e){if(!(e=J(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=J(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ee(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ee(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=ee(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let er=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],en={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)}
12,17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ei=["v1","v2","v3"],eo=["v4"],es={zero:0,one:1,two:2,few:3,many:4,other:5};class ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=N.create("pluralResolver"),(!this.options.compatibilityJSON||eo.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return er.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:en[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(J(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>es[e]-es[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
12shouldUseIntlApi(){return!ei.includes(this.options.compatibilityJSON)}}function el(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(e,t,r){let n=H(e,r);return void 0!==n?n:H(t,r)}(e,t,r);return!o&&i&&"string"==typeof r&&void 0===(o=G(e,r,n))&&(o=G(t,r,n)),o}class eu{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=N.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:W,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?V(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?V(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?V(t.nestingPrefix):t.nestingPrefixEscaped||V("$t("),this.nestingSuffix=t.nestingSuffix?V(t.nestingSuffix):t.nestingSuffixEscaped||V(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(r,"g")}interpolate(e,t,r,n){let i,o,s;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let i=el(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(el(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:o})};this.resetRegExp();let c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,h=[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}];return h.forEach(t=>{for(s=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(o=u(r))){if("function"==typeof c){let t=c(e,i,n);o="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=D(o));let a=t.safeValue(o);if(e=e.replace(i[0],a),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),o=`{${n[1]}`;e=n[0],o=this.interpolate(o,i);let s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let a=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),a=e,l=!0}if((n=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=D(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=a.reduce((e,t)=>
12this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function ec(e){let t={};return function(r,n,i){let o=n+JSON.stringify(i),s=t[o];return s||(s=e(J(n),i),t[o]=s),s(r)}}class ed{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=N.create("formatter"),this.options=e,this.formats={number:ec((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:ec((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:ec((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:ec((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:ec((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ec(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator),o=i.reduce((e,t)=>{let{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);if("currency"===t&&0>i.indexOf(":"))r.currency||(r.currency=i.trim());else if("relativetime"===t&&0>i.indexOf(":"))r.range||(r.range=i.trim());else{let e=i.split(";");e.forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,"");r[t.trim()]||(r[t.trim()]=i),"false"===i&&(r[t.trim()]=!1),"true"===i&&(r[t.trim()]=!0),isNaN(i)||(r[t.trim()]=parseInt(i,10))})}}return{formatName:t,formatOptions:r}}(t);if(this.formats[i]){let t=e;try{let s=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...o,...n,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class eh extends F{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=N.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let i={},o={},s={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r),this.state[e]=t?-1:2;let s={};this.queue.forEach(r=>{(function(e,t,r,n){let{obj:i,k:o}=z(e,t,Object);i[o]=i[o]||[],n&&(i[o]=i[o].concat(r)),n||i[o].push(r)})(r.loaded,[i],o),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});return}this.readingCalls++;let s=(s,a)=>
12{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,o)},i);return}o(s,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>s(null,e)).catch(s):s(null,i)}catch(e){s(e)}else l(e,t,r,n,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function ef(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,r,n)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ep(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eg(){}class ev extends F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ep(e),this.services={},this.logger=N,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=ef();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...ep(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?N.init(i(this.modules.logger),this.options):N.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ed);let r=new et(this.options);this.store=new K(this.options.resources,this.options);let o=this.services;o.logger=N,o.resourceStore=this.store,o.languageUtils=r,o.pluralResolver=new ea(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new eu(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new eh(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Y(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit(t,...n)}
12),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=eg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=B(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eg,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();let e=[],t=t=>{if(!t)return;let r=this.services.languageUtils.toResolveHierarchy(t);r.forEach(t=>{0>e.indexOf(t)&&e.push(t)})};if(n)t(n);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=B();return e||(e=this.languages),t||(t=this.options.ns),r||(r=eg),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Q.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=B();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let i=function(e,t){let o,s;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];o=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||r||i.keyPrefix;let c=n.options.keySeparator||".";return s=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,n.t(s,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
12if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(i,e)))}loadNamespaces(e,t){let r=B();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=B();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>0>n.indexOf(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new et(ef());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ev(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eg,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new ev(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new K(this.store.data,n),i.services.resourceStore=i.store),i.translator=new Y(i.services,n),i.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit(e,...r)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let em=ev.createInstance();em.createInstance=ev.createInstance,em.createInstance,em.dir,em.init,em.loadResources,em.reloadResources,em.use,em.changeLanguage,em.getFixedT,em.t,em.exists,em.setDefaultNamespace,em.hasLoadedNamespace,em.loadNamespaces,em.loadLanguages;var ey=function(e){void 0===e.ns&&(e.ns=[]);var t,r,n=em.createInstance(e);return n.isInitialized?t=Promise.resolve(em.t):(null==e||null===(r=e.use)||void 0===r||r.forEach(function(e){return n.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(n),t=n.init(e)),{i18n:n,initPromise:t}},eb=i.createElement;function e_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ew(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e_(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ek=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return x()(function(r){var n,o,s=(r.pageProps||{})._nextI18Next,a=null!==(n=null==s?void 0:s.initialLocale)&&void 0!==n?n:null==r?void 0:null===(o=r.router)||void 0===o?void 0:o.locale,l=null==s?void 0:s.ns,u=(0,i.useMemo)(function(){if(!s&&!t)return null;var e,r=null!=t?t:null==s?void 0:s.userConfig;if(!r)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=r&&r.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=r&&null!==(e=r.i18n)&&void 0!==e&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var n=(s||{}).initialI18nStore,i=null!=t&&t.resources?t.resources:n;return a||(a=r.i18n.defaultLocale),ey(ew(ew({},L(ew(ew({},r),{},{lng:a}))),{},{lng:a,ns:l,resources:i})).i18n},[s,a,t,l]);return null!==u?eb(y,{i18n:u},eb(e,r)):eb(e,b({key:a},r))},e)}},66477:function(e,t){"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(99647)}])},61163:function(e,t,r){"use strict";var n=r(85893);r(67294),t.Z=e=>{let{vertical:t,color:r="gray-300",thickness:i="1px",...o}=e;return(0,n.jsx)("div",{...o,children:t?(0,n.jsx)("div",{style:{width:i},className:"h-full bg-".concat(r)}):(0,n.jsx)("div",{style:{height:i},className:"w-full bg-".concat(r)})})}},23171:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(85893),i=r(96656),o=r(48888),s=r(25675),a=r.n(s),l=r(67294),u=r(84053);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
12for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var f=r(52752),p=new Map,g=function(e){return e.cloneNode(!0)},v=function(){return"file:"===window.location.protocol},m=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===n.readyState){var t=n.getResponseHeader("Content-Type");if(!t)throw Error("Content type not found");var i=(0,f.Q)(t).type;if(!("image/svg+xml"===i||"text/plain"===i))throw Error("Invalid content type: ".concat(i))}if(4===n.readyState){if(404===n.status||null===n.responseXML)throw Error(v()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(200===n.status||v()&&0===n.status)r(null,n);else throw Error("There was a problem injecting the SVG: "+n.status+" "+n.statusText)}}catch(e){if(n.abort(),e instanceof Error)r(e,n);else throw e}},n.open("GET",e),n.withCredentials=t,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.send()},y={},b=function(e,t){y[e]=y[e]||[],y[e].push(t)},_=function(e){for(var t=function(t,r){setTimeout(function(){if(Array.isArray(y[e])){var r=p.get(e),n=y[e][t];r instanceof SVGSVGElement&&n(null,g(r)),r instanceof Error&&n(r),t===y[e].length-1&&delete y[e]}},0)},r=0,n=y[e].length;r<n;r++)t(r)},w=function(e,t,r){if(p.has(e)){var n=p.get(e);if(void 0===n){b(e,r);return}if(n instanceof SVGSVGElement){r(null,g(n));return}}p.set(e,void 0),b(e,r),m(e,t,function(t,r){var n;t?p.set(e,t):(null===(n=r.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&p.set(e,r.responseXML.documentElement),_(e)})},k=function(e,t,r){m(e,t,function(e,t){var n;e?r(e):(null===(n=t.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&r(null,t.responseXML.documentElement)})},x=0,S=[],E={},O="http://www.w3.org/1999/xlink",C=function(e,t,r,n,i,o,s){var a=e.getAttribute("data-src")||e.getAttribute("src");if(!a){s(Error("Invalid data-src or src attribute"));return}if(-1!==S.indexOf(e)){S.splice(S.indexOf(e),1),e=null;return}S.push(e),e.setAttribute("src",""),(n?w:k)(a,i,function(n,i){if(!i){S.splice(S.indexOf(e),1),e=null,s(n);return}var l,u,c=e.getAttribute("id");c&&i.setAttribute("id",c);var d=e.getAttribute("title");d&&i.setAttribute("title",d);var f=e.getAttribute("width");f&&i.setAttribute("width",f);var p=e.getAttribute("height");p&&i.setAttribute("height",p);var g=Array.from(new Set(h(h(h([],(i.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();i.setAttribute("class",g);var v=e.getAttribute("style");v&&i.setAttribute("style",v),i.setAttribute("data-src",a);var m=[].filter.call(e.attributes,function(e){return/^data-\w[\w-]*$/.test(e.name)});if(Array.prototype.forEach.call(m,function(e){e.name&&e.value&&i.setAttribute(e.name,e.value)}),r){var y,b,_,w,k,C={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(C).forEach(function(e){y=e,_=C[e],b=i.querySelectorAll(y+"[id]");for(var t=0,r=b.length;t<r;t++)!function(e,t){k=(w=b[e].id)+"-"+ ++x,Array.prototype.forEach.call(_,function(e){r=i.querySelectorAll("["+e+'*="'+w+'"]');for(var t=0,n=r.length;t<n;t++){var o=r[t].getAttribute(e);(!o||o.match(RegExp('url\\("?#'+w+'"?\\)')))&&r[t].setAttribute(e,"url(#"+k+")")}});for(var r,n=i.querySelectorAll("[*|href]"),o=[],s=0,a=n.length;s<a;s++){var l=n[s].getAttributeNS(O,"href");l&&l.toString()==="#"+b[e].id&&o.push(n[s])}for(var u=0,c=o.length;u<c;u++)o[u].setAttributeNS(O,"href","#"+k);b[e].id=k}(t)})}i.removeAttribute("xmlns:a");for(var P=i.querySelectorAll("script"),T=[],I=0,j=P.length;I<j;I++)(u=P[I].getAttribute("type"))&&"application/ecmascript"!==u&&"application/javascript"!==u&&"text/javascript"!==u||((l
12=P[I].innerText||P[I].textContent)&&T.push(l),i.removeChild(P[I]));if(T.length>0&&("always"===t||"once"===t&&!E[a])){for(var R=0,A=T.length;R<A;R++)Function(T[R])(window);E[a]=!0}var L=i.querySelectorAll("style");if(Array.prototype.forEach.call(L,function(e){e.textContent+=""}),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink",O),o(i),!e.parentNode){S.splice(S.indexOf(e),1),e=null,s(Error("Parent node is null"));return}e.parentNode.replaceChild(i,e),S.splice(S.indexOf(e),1),e=null,s(null,i)})},P=function(e,t){var r=void 0===t?{}:t,n=r.afterAll,i=void 0===n?function(){}:n,o=r.afterEach,s=void 0===o?function(){}:o,a=r.beforeEach,l=void 0===a?function(){}:a,u=r.cacheRequests,c=void 0===u||u,d=r.evalScripts,h=void 0===d?"never":d,f=r.httpRequestWithCredentials,p=void 0!==f&&f,g=r.renumerateIRIElements,v=void 0===g||g;if(e&&"length"in e)for(var m=0,y=0,b=e.length;y<b;y++)C(e[y],h,v,c,p,l,function(t,r){s(t,r),e&&"length"in e&&e.length===++m&&i(m)});else e?C(e,h,v,c,p,l,function(t,r){s(t,r),i(1),e=null}):i(0)},T=r(45697),I=function(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1},j=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],R="http://www.w3.org/2000/svg",A="http://www.w3.org/1999/xlink",L=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e);var r=t.prototype;return r.renderSVG=function(){var e=this;if(this.reactWrapper instanceof(((null==(t=this.reactWrapper)?void 0:t.ownerDocument)||document).defaultView||window).Node){var t,r,n,i=this.props,o=i.desc,s=i.evalScripts,a=i.httpRequestWithCredentials,l=i.renumerateIRIElements,u=i.src,c=i.title,d=i.useRequestCache,h=this.props.onError,f=this.props.beforeInjection,p=this.props.afterInjection,g=this.props.wrapper;"svg"===g?((r=document.createElementNS(R,g)).setAttribute("xmlns",R),r.setAttribute("xmlns:xlink",A),n=document.createElementNS(R,g)):(r=document.createElement(g),n=document.createElement(g)),r.appendChild(n),n.dataset.src=u,this.nonReactWrapper=this.reactWrapper.appendChild(r);var v=function(t){if(e.removeSVG(),!e._isMounted){h(t);return}e.setState(function(){return{hasError:!0,isLoading:!1}},function(){h(t)})};P(n,{afterEach:function(t,r){if(t){v(t);return}e._isMounted&&e.setState(function(){return{isLoading:!1}},function(){try{p(r)}catch(e){v(e)}})},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var r=document.createElement("desc");r.innerHTML=o,e.prepend(r)}if(c){var n=e.querySelector(":scope > title");n&&e.removeChild(n);var i=document.createElement("title");i.innerHTML=c,e.prepend(i)}try{f(e)}catch(e){v(e)}},cacheRequests:d,evalScripts:s,httpRequestWithCredentials:a,renumerateIRIElements:l})}},r.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(e){var t=this;I(c({},e),this.props)&&this.setState(function(){return t.initialState},function(){t.removeSVG(),t.renderSVG()})},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var r=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var n=e.wrapper,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,j);return l.createElement(n,c({},i,{ref:this.refCallback},"svg"===n?{xmlns:R,xmlnsXlink:A}:{}
12),this.state.isLoading&&r&&l.createElement(r,null),this.state.hasError&&t&&l.createElement(t,null))},t}(l.Component);L.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},L.propTypes={afterInjection:T.func,beforeInjection:T.func,desc:T.string,evalScripts:T.oneOf(["always","once","never"]),fallback:T.oneOfType([T.func,T.object,T.string]),httpRequestWithCredentials:T.bool,loading:T.oneOfType([T.func,T.object,T.string]),onError:T.func,renumerateIRIElements:T.bool,src:T.string.isRequired,title:T.string,useRequestCache:T.bool,wrapper:T.oneOf(["div","span","svg"])};var $=e=>{let{path:t,strokeWidth:r="1",strokeColor:i="currentColor",fillColor:o="none",viewBox:s="0 0 32 32",className:a=""}=e,c=(0,l.useRef)(null),[d,h]=(0,l.useState)(null),f=(0,u.useSupabaseClient)(),[p,g]=(0,l.useState)(r);return((0,l.useEffect)(()=>{let e=async()=>{let{data:e,error:r}=await f.storage.from("images").download(t);if(r)console.error("Error fetching SVG:",r);else if(e){let t=await e.arrayBuffer(),r=new TextDecoder("utf-8").decode(t);h("data:image/svg+xml,".concat(encodeURIComponent(r)))}};e()},[t]),(0,l.useEffect)(()=>{c.current},[d,r,i,o,s]),null===d)?null:(0,n.jsx)("div",{className:"".concat(a," flex items-center justify-center"),children:(0,n.jsx)(L,{src:d,beforeInjection:e=>{c.current=e,a.split(" ").forEach(t=>{e.classList.add(t)});let t=e.querySelectorAll("*");t.forEach(e=>{e instanceof SVGElement&&(e.style.setProperty("vector-effect","non-scaling-stroke","important"),e.style.strokeWidth=r,e.style.stroke=i,e.style.fill=o)})}})})},M=e=>{let{src:t,isSvg:r,fromSupabase:s,...u}=e,[c,d]=(0,l.useState)(t);if(r&&c)return(0,n.jsx)($,{path:c,strokeWidth:"0.2",strokeColor:"#000000",fillColor:"#000000",className:"h-8 w-8 overflow-visible"});{let e=c===o.g_;return(0,n.jsx)(a(),{src:e?c:u.unoptimized?(0,i.Z)({src:c}):c,loader:e?void 0:s?i.Z:void 0,...u,alt:u.alt||"Image",className:"".concat(u.className," ").concat(c===o.g_&&"bg-gray-200"),onError:()=>{d(o.g_)}})}}},31054:function(e,t,r){"use strict";r.d(t,{Z:function(){return d},a:function(){return c}});var n=r(85893),i=r(67294),o=r(59871),s=r(60155),a=r(23171),l=e=>{let{error:t,duration:r,onCancel:l,isFriendly:u}=e,[c,d]=(0,i.useState)(!1),[h,f]=(0,i.useState)(0),p=(0,i.useRef)(Date.now());(0,i.useEffect)(()=>{if(setTimeout(()=>{d(!0)},300),r){let e=setInterval(()=>{let t=Date.now()-p.current,n=Math.min(t/r*100,100);f(n),100===n&&(clearInterval(e),g())},50);return()=>clearInterval(e)}},[r]);let g=e=>{null==e||e.stopPropagation(),d(!1),setTimeout(()=>{null==l||l()},300)};return(0,n.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-25 transition-opacity duration-300 ease-in-out ".concat(c?"opacity-100":"pointer-events-none opacity-0"),style:{zIndex:9999999,backdropFilter:"blur(2px)"},onClick:g,children:(0,n.jsxs)("div",{className:"relative h-[250px] w-[350px] overflow-clip rounded-xl bg-white shadow-lg transition-transform duration-300 ease-in-out ".concat(c?"scale-100":"scale-75"),children:[u&&(0,n.jsx)("div",{className:"absolute left-0 right-0 top-4 h-20 w-full",children:(0,n.jsx)(a.Z,{src:"/svg/friendly_error.svg",alt:"friendly error",sizes:o.Q7,fill:!0})}),(0,n.jsxs)("div",{style:{paddingTop:u?"3rem":"0"},className:"flex h-full transform flex-col items-center justify-center gap-2 p-4 text-center text-sm text-gray-500",onClick:e=>e.stopPropagation(),children:[!u&&(0,n.jsx)(s.OvZ,{size:30,className:"text-primary"}),(0,n.jsx)("p",{className:"text-xl font-bold text-primary",children:u?"Oops!":"".concat(t.name," occurred")}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,n.jsx)("p",{className:"text-md font-semibold text-gray-600",children:t.message}),t.hint&&(0,n.jsx)("p",{className:"text-md text-gray-500",children:t.hint}),!t.hint&&t.status&&t.status>500&&(0,n.jsxs)("p",{className:"text-gray-400",children:["An automatic report of this issue has been generated and forwarded to our development team for review.",(0,n.jsx)("br",{}),"We apologize for any inconvenience caused and appreciate your understanding as we work diligently to resolve this issue."]})]}),(0,n.jsx)("button",{className:"text-md absolute bottom-2 my-4 roun
12ded-xl bg-primary px-6 py-2 text-white transition-colors hover:bg-secondary",onClick:g,children:"Close"})]}),r&&(0,n.jsx)("div",{className:"flex h-2 w-full",children:(0,n.jsx)("div",{className:"h-2 rounded bg-primary transition-all",style:{width:"".concat(100-h,"%")}})})]})})};let u=(0,i.createContext)(null),c=()=>{let e=(0,i.useContext)(u);if(null===e)throw Error("usePopupError must be used within PopupErrorProvider");let t=(0,i.useCallback)(()=>{e(null)},[e]);return[e,t]};var d=e=>{var t,r;let{children:o}=e,[s,a]=(0,i.useState)(null),c=(0,i.useCallback)((e,t)=>{a({error:e,options:t})},[]),d=(0,i.useCallback)(()=>{var e;(null==s?void 0:null===(e=s.options)||void 0===e?void 0:e.onCanceled)&&s.options.onCanceled(),a(null)},[s]);return(0,n.jsxs)(u.Provider,{value:c,children:[o,s&&(0,n.jsx)(l,{error:s.error,duration:null===(t=s.options)||void 0===t?void 0:t.duration,onCancel:d,isFriendly:null===(r=s.options)||void 0===r?void 0:r.isFriendly})]})}},64390:function(e,t,r){"use strict";r.d(t,{Y6:function(){return h},ZP:function(){return c},SO:function(){return f}});var n=r(85893),i=r(67294),o=r(60155),s=r(73935),a=r(61163),l=e=>{let{onClose:t,leading:r,trailing:l,children:u,title:c,disablePadding:d,disableScroll:h,className:f,backdropClassName:p,isIndismissable:g}=e,[v,m]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!0),_=i.useRef(null),w=(0,i.useCallback)(()=>{b(!1),setTimeout(()=>{t()},280)},[t]);(0,i.useEffect)(()=>{let e=document.body.style.overflow;y&&(document.body.style.overflow="hidden");let t=e=>{g||!_.current||_.current.contains(e.target)||w()};return m(!0),window.addEventListener("mousedown",t),()=>{window.removeEventListener("mousedown",t),document.body.style.overflow=e}},[w,g,y]);let k=(0,n.jsx)("div",{style:{zIndex:9999},className:"fixed bottom-0 left-0 right-0 top-0 flex h-full w-full animate-fade-in items-center justify-center bg-gray-900/50 backdrop-blur-sm ".concat(!y&&"animate-fade-out"," ").concat(p," transition-all"),children:(0,n.jsxs)("div",{ref:_,className:"max-w-2xl rounded-lg bg-white shadow-xl ".concat(f," transition-all"),children:[(0,n.jsxs)("div",{className:"relative flex items-center gap-5 p-5",children:[r&&r,!r&&(0,n.jsx)(o.bjh,{size:25,onClick:()=>w(),className:"absolute bottom-5 left-5 top-5 cursor-pointer opacity-70 hover:scale-105"}),(0,n.jsx)("p",{className:"grow text-center font-bold",children:c}),l&&l]}),(0,n.jsx)(a.Z,{className:"opacity-50"}),(0,n.jsx)("div",{className:"relative max-h-[80vh] rounded-lg ".concat(!d&&"p-6"," ").concat(h?"overflow-hidden":"overflow-auto"),children:u})]})});return v?s.createPortal(k,document.getElementById("modal-root")):null};let u=(0,i.forwardRef)((e,t)=>{var r,s;let{pages:a,onClose:u}=e,{actions:c}=(0,i.useContext)(d),[h,f]=(0,i.useState)(new p([])),[g,v]=(0,i.useState)(!0);if((0,i.useImperativeHandle)(t,()=>({push(e){var t;(null===(t=h.peek())||void 0===t?void 0:t.id)!==e.id&&f(h.add(e))},back(){f(h.remove())},clear(){v(!1),setTimeout(()=>{f(h.clear()),v(!0)},300)}})),h.isEmpty())return(0,n.jsx)(n.Fragment,{});let m=h.peek();return(0,n.jsx)(l,{className:"".concat(!g&&"scale-75"),backdropClassName:"".concat(!g&&"opacity-0"),isIndismissable:m.indismissable,onClose:()=>{null==u||u.call(null),f(h.clear())},leading:h.size()>1?(0,n.jsx)(o.dUf,{size:25,onClick:e=>{e.stopPropagation(),f(h.remove())},className:"absolute bottom-5 left-5 top-5 cursor-pointer opacity-70 hover:scale-105"}):void 0,title:null!==(s=m.title)&&void 0!==s?s:m.id,trailing:m.actions&&(0,n.jsx)("div",{className:"absolute bottom-5 right-5 top-5 flex items-center space-x-2",children:Object.entries(m.actions||{}).map((e,t)=>{let[r,i]=e;return(0,n.jsx)("div",{onClick:()=>{c[r]?c[r]():console.warn('Action "'.concat(r,"\" does not have a callback defined. \n Use useModalAction('").concat(r,"', [yourCallback]) to define a callback for this action."))},children:i},t)})}),disablePadding:m.disablePadding,disableScroll:m.disableScroll,children:null===(r=a[m.id])||void 0===r?void 0:r.call(a,m.props)})});u.displayName="RoutedModal";var c=(0,i.memo)(u);let d=(0,i.createContext)({registerAction:()=>{},unregisterAction:()=>{},actions:{}}),h=e=>{let{children:t}=e,[r,o]=(0,i.useState)({}),s=(0,i.useCallback)((e,t)=>{o(r=>({...r,[e]:t}))},[]),a=(0,i.useCallback)(e=>{o(t=>{let r={...t};return delete r[e],r})},[]);return(0,n.jsx)(d.Provider,{value:{registerAction:s,unregisterAction:a,actions:r},children:t})},f=(e,t)=>{let{registerAction:r,unregisterAction:n}=(0,i.useContext)(d);(0,i.useEffect)(()=>(r(e,t),()=>{n(e)}),[e,t,r,n])};class p{add(e){return this.items.push(e),new p(this.items)}remove(){return this.items.length>0&&this.items.pop(),new p(this.items)}peek(){return this.items[this.items.length-1]}isEmpty(){return 0==this.items.length}size(){return this.items.length}clear(){return this.items=[],new p(this.items)}constructor(e){this.items=e}}},96656:function(e,t,r){"use strict";function n(e){let{src:t,width:r,quality:n}=e;return"".concat("https://tsjkuusjwifjgegheudo.supabase.co","/storage/v1/object/public/images/").concat(t)}r.d(t,{Z:function(){return n}})},59871:function(e,t,r){"use strict";r.d(t,{Iy:function(){return s},Q7:function(){return a},Wx:function(){return n},bH:function(){return i},q0:function(){return o}});let n="block text-sm font-medium mb-2 text-gray-700",i="block w-full rounded-xl h-[45px] p-3 shadow focus:border-primary focus:ring-primary sm:text-sm",o="mt-2 w-full rounded-xl bg-gradient-to-r flex items-center justify-center from-cyan-500 to-blue-500 py-3 font-semibold text-white transition-shadow hover:shadow-lg",s="mt-1 text-sm text-red-400 error",a="(min-width: 60em) 24vw, (min-width: 28em) 45vw, 100vw"},48888:function(e,t,r){"use strict";r.d(t,{$w:function(){return n},TK:function(){return i},g_:function(){return o},yo:function(){return s}});let n="N/A",i=-1,o="/images/util/broken-image.png",s="/avatars/default.png"},25120:function(e,t,r){"use strict";r.d(t,{CX:function(){return a},F1:function(){return s},dj:function(){return o}});var n=r(71381),i=r(83454);function o(){var e,t,r,n;let o=null!==(n=null!==(r=null==i?void 0:null===(e=i.env)||void 0===e?void 0:"https://app.campin.si/")&&void 0!==r?r:null==i?void 0:null===(t=i.env)||void 0===t?void 0:"campin-frontend-lj93-779xxwfp5-tjazsilovsek.vercel.app")&&void 0!==n?n:"http://localhost:3000/";return"/"===(o=o.includes("http")?o:"https://".concat(o)).charAt(o.length-1)?o:"".concat(o,"/")}function s(e){let t=new URLSearchParams(window.location.search);return t.has(e)}function a(e){let t=function e(t){if((0,n.Z)(t))return t.toLocaleDateString("en-CA");if("object"==typeof t&&null!==t)for(let r in t)t[r]=e(t[r]);return t}({...e});return JSON.stringify(t)}},777:function(e,t,r){"use strict";r.d(t,{V:function(){return s},d:function(){return o}});var n=r(85893),i=r(67294);let o=(0,i.createContext)(void 0),s=e=>{let{supabaseClient:t,children:r}=e,[s,a]=(0,i.useState)([]),l=async()=>{let{data:e,error:r}=await t.from("amenities").select("*").returns();if(r)throw r;a(e||[])};return(0,i.useEffect)(()=>{0===s.length&&l()},[]),(0,n.jsx)(o.Provider,{value:{amenities:s,refreshAmenities:l},children:r})}},90710:function(e,t,r){"use strict";r.d(t,{DY:function(){return a},dd:function(){return l}});var n=r(85893),i=r(67294),o=r(64390);let s=(0,i.createContext)(null),a=e=>{let{children:t,pages:r}=e,[a,l]=(0,i.useState)(r),u=(0,i.useRef)(null);return(0,n.jsx)(s.Provider,{value:{modalRouter:u,pages:a,push:e=>{var t;null===(t=u.current)||void 0===t||t.push(e)},clear:()=>{var e;null===(e=u.current)||void 0===e||e.clear()},setPages:e=>{l(t=>({...t,...e}))}},children:(0,n.jsxs)(o.Y6,{children:[t,(0,n.jsx)(o.ZP,{ref:u,pages:a})]})})},l=e=>{let t=(0,i.useContext)(s);if(!t)throw Error("useModal must be used within a ModalProvider");return(0,i.useEffect)(()=>{e&&t.setPages(e)},[]),t}},68872:function(e,t,r){"use strict";
12Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let n=r(38754),i=r(61757),o=i._(r(67294)),s=r(73935),a=n._(r(42636)),l=r(55471),u=r(3735),c=r(83341);r(34210);let d=r(69955),h=n._(r(57746)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function p(e,t,r,n,i,o){let s=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===s)return;e["data-loaded-src"]=s;let a="decode"in e?e.decode():Promise.resolve();a.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function g(e){let[t,r]=o.version.split("."),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:a,decoding:l,className:u,style:c,fetchPriority:d,placeholder:h,loading:f,unoptimized:v,fill:m,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:_,setShowAltText:w,onLoad:k,onError:x,...S}=e;return o.default.createElement("img",{...S,...g(d),loading:f,width:a,height:s,decoding:l,"data-nimg":m?"fill":"1",className:u,style:c,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(x&&(e.src=e.src),e.complete&&p(e,h,y,b,_,v))},[r,h,y,b,_,x,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,h,y,b,_,v)},onError:e=>{w(!0),"empty"!==h&&_(!0),x&&x(e)}})});function m(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return t&&s.preload?((0,s.preload)(r.src,n),null):o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let y=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=f||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:a}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let g=(0,o.useRef)(a);(0,o.useEffect)(()=>{g.current=a},[a]);let[y,b]=(0,o.useState)(!1),[_,w]=(0,o.useState)(!1),{props:k,meta:x}=(0,l.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:y,showAltText:_});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...k,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:w,ref:t}),x.priority?o.default.createElement(m,{isAppRouter:!r,imgAttributes:k}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(34210);let n=r(97757),i=r(3735);function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,l,u,{src:c,sizes:d,unoptimized:h=!1,priority:f=!1,loading:p,className:g,quality:v,width:m,height:y,fill:b=!1,style:_,onLoad:w,onLoadingComplete:k,placeholder:x="empty",blurDataURL:S,fetchPriority:E,layout:O,objectFit:C,objectPosition:P,lazyBoundary:T,lazyRoot:I,...j}=e,{imgConf:R,showAltText:A,blurComplete:L,defaultLoader:$}=t,M=R||i.imageConfigDefault;if("allSizes"in M)a=M;else{let e=[...M.deviceSizes,...M.imageSizes].sort((e,t)=>
12e-t),t=M.deviceSizes.sort((e,t)=>e-t);a={...M,allSizes:e,deviceSizes:t}}let N=j.loader||$;delete j.loader,delete j.srcSet;let F="__next_img_default"in N;if(F){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=N;N=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let B="",D=s(m),z=s(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,S=S||e.blurDataURL,B=e.src,!b){if(D||z){if(D&&!z){let t=D/e.width;z=Math.round(e.height*t)}else if(!D&&z){let t=z/e.height;D=Math.round(e.width*t)}}else D=e.width,z=e.height}}let U=!f&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:B)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,U=!1),a.unoptimized&&(h=!0),F&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(h=!0),f&&(E="high");let H=s(v),V=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:P}:{},A?{}:{color:"transparent"},_),q=L||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:D,heightInt:z,blurWidth:l,blurHeight:u,blurDataURL:S||"",objectFit:V.objectFit})+'")':'url("'+x+'")',W=q?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:s,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:o,width:l[c]})}}({config:a,src:c,unoptimized:h,width:D,quality:H,sizes:d,loader:N}),G={...j,loading:U?"lazy":p,fetchPriority:E,width:D,height:z,decoding:"async",className:g,style:{...V,...W},sizes:Z.sizes,srcSet:Z.srcSet,src:Z.src},J={unoptimized:h,priority:f,placeholder:x,fill:b};return{props:G,meta:J}}},97757:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=n?40*n:t,l=i?40*i:r,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},32555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let n=r(38754),i=r(55471),o=r(34210),s=r(68872),a=n._(r(57746)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},u=s.Image},57746:function(e,t){"use strict";
12function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},99647:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return te},reportWebVitals:function(){return e7.U9}});var n,i=r(85893),o=r(31054),s=r(25120),a=r(777),l=r(90710),u=r(87462),c=r(63366),d=r(67294);let h=d.createContext(null);function f(){let e=d.useContext(h);return e}let p="function"==typeof Symbol&&Symbol.for;var g=p?Symbol.for("mui.nested"):"__THEME_NESTED__",v=function(e){let{children:t,theme:r}=e,n=f(),o=d.useMemo(()=>{let e=null===n?r:function(e,t){if("function"==typeof t){let r=t(e);return r}return(0,u.Z)({},e,t)}(n,r);return null!=e&&(e[g]=null!==n),e},[r,n]);return(0,i.jsx)(h.Provider,{value:o,children:t})},m=r(75260),y=r(2952);let b={};function _(e,t,r,n=!1){return d.useMemo(()=>{let i=e&&t[e]||t;if("function"==typeof r){let o=r(i),s=e?(0,u.Z)({},t,{[e]:o}):o;return n?()=>s:s}return e?(0,u.Z)({},t,{[e]:r}):(0,u.Z)({},t,r)},[e,t,r,n])}var w=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,y.Z)(b),s=f()||b,a=_(n,o,r),l=_(n,s,r,!0);return(0,i.jsx)(v,{theme:l,children:(0,i.jsx)(m.T.Provider,{value:a,children:t})})},k=r(10606);let x=["theme"];function S(e){let{theme:t}=e,r=(0,c.Z)(e,x),n=t[k.Z];return(0,i.jsx)(w,(0,u.Z)({},r,{themeId:n?k.Z:void 0,theme:n||t}))}var E,O=r(21265),C=r(57542),P=r(84053),T="colors",I="sizes",j="space",R={gap:j,gridGap:j,columnGap:j,gridColumnGap:j,rowGap:j,gridRowGap:j,inset:j,insetBlock:j,insetBlockEnd:j,insetBlockStart:j,insetInline:j,insetInlineEnd:j,insetInlineStart:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,marginBlock:j,marginBlockEnd:j,marginBlockStart:j,marginInline:j,marginInlineEnd:j,marginInlineStart:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,paddingBlock:j,paddingBlockEnd:j,paddingBlockStart:j,paddingInline:j,paddingInlineEnd:j,paddingInlineStart:j,top:j,right:j,bottom:j,left:j,scrollMargin:j,scrollMarginTop:j,scrollMarginRight:j,scrollMarginBottom:j,scrollMarginLeft:j,scrollMarginX:j,scrollMarginY:j,scrollMarginBlock:j,scrollMarginBlockEnd:j,scrollMarginBlockStart:j,scrollMarginInline:j,scrollMarginInlineEnd:j,scrollMarginInlineStart:j,scrollPadding:j,scrollPaddingTop:j,scrollPaddingRight:j,scrollPaddingBottom:j,scrollPaddingLeft:j,scrollPaddingX:j,scrollPaddingY:j,scrollPaddingBlock:j,scrollPaddingBlockEnd:j,scrollPaddingBlockStart:j,scrollPaddingInline:j,scrollPaddingInlineEnd:j,scrollPaddingInlineStart:j,fontSize:"fontSizes",background:T,backgroundColor:T,backgroundImage:T,borderImage:T,border:T,borderBlock:T,borderBlockEnd:T,borderBlockStart:T,borderBottom:T,borderBottomColor:T,borderColor:T,borderInline:T,borderInlineEnd:T,borderInlineStart:T,borderLeft:T,borderLeftColor:T,borderRight:T,borderRightColor:T,borderTop:T,borderTopColor:T,caretColor:T,color:T,columnRuleColor:T,fill:T,outline:T,outlineColor:T,stroke:T,textDecorationColor:T,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:I,minBlockSize:I,maxBlockSize:I,inlineSize:I,minInlineSize:I,maxInlineSize:I,width:I,minWidth:I,maxWidth:I,height:I,minHeight:I,maxHeight:I,flexBasis:I,gridTemplateColumns:I,gridTemplateRows:I,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},A=(e,t)=>
12"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,L=()=>{let e=Object.create(null);return(t,r,...n)=>{let i=JSON.stringify(t,A);return i in e?e[i]:e[i]=r(t,...n)}},$=Symbol.for("sxs.internal"),M=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),N=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:F}=Object.prototype,B=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),D=/\s+(?![^()]*\))/,z=e=>t=>e(..."string"==typeof t?String(t).split(D):[t]),U={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:z((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:z((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:z((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:z((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:z((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:z((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},H=/([\d.]+)([^]*)/,V=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,q=(e,t)=>e in W&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${B(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${B(e)}:${r}fit-content`)+i):String(t),W={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Z=e=>e?e+"-":"",G=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,n,i,o,s)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?Z(t)+(s.includes("$")?"":Z(r))+s.replace(/\$/g,"-"):s)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":"")),J=/\s*,\s*(?![^()]*\))/,K=Object.prototype.toString,Q=(e,t,r,n,i)=>{let o,s,a;let l=(e,t,r)=>{let u,c;let d=e=>{var h;for(u in e){let f=64===u.charCodeAt(0),p=f&&Array.isArray(e[u])?e[u]:[e[u]];for(c of p){let e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,e=>e[1].toUpperCase()),p="object"==typeof c&&c&&c.toString===K&&(!n.utils[e]||!t.length);if(e in n.utils&&!p){let t=n.utils[e];if(t!==s){s=t,d(t(c)),s=null;continue}}else if(e in U){let t=U[e];if(t!==a){a=t,d(t(c)),a=null;continue}}if(f&&(u=(u.slice(1) in n.media?"@media "+n.media[u.slice(1)]:u).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,n,i,o)=>{let s=H.test(t),a=.0625*(s?-1:1),[l,u]=s?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===s?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?u.replace(H,(e,t,n)=>Number(t)+a*(">"===r?1:-1)+n):u)+(i?") and ("+(">"===i[0]?"min-":"max-")+l+":"+(1===i.length?o.replace(H,(e,t,r)=>Number(t)+a*(">"===i?-1:1)+r):o):"")+")"})),p){let e=f?r.concat(u):[...r],n=f?[...t]:V(t,u.split(J));void 0!==o&&i(X(...o)),o=void 0,l(c,n,e)}else void 0===o&&(o=[[],t,r]),u=f||36!==u.charCodeAt(0)?u:`--${Z(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=p?c:"number"==typeof c?c&&e in Y?String(c)+"px":String(c):G(q(e,null==c?"":c),n.prefix,n.themeMap[e]),o[0].push(`${f?`${u} `:`${B(u)}:`}${c}`)}}};d(e),void 0!==o&&i(X(...o)),o=void 0};l(e,t,r)},X=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,Y={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},ee=e=>String.fromCharCode(e+(e>25?39:97)),et=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ee(t%52)+r;return ee(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),er=["themed","global","styled","onevar","resonevar","allvar","inline"],en=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},ei=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,n)=>{let{cssText:i}=r,o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i}).join("")},n=()=>
12{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}let i=Object(e).styleSheets||[];for(let e of i)if(en(e)){for(let i=0,o=e.cssRules;o[i];++i){let s=Object(o[i]);if(1!==s.type)continue;let a=Object(o[i+1]);if(4!==a.type)continue;++i;let{cssText:l}=s;if(!l.startsWith("--sxs"))continue;let u=l.slice(14,-3).trim().split(/\s+/),c=er[u[0]];c&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[c]={group:a,index:i,cache:new Set(u)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}let{sheet:o,rules:s}=t;for(let e=er.length-1;e>=0;--e){let t=er[e];if(!s[t]){let r=er[e+1],n=s[r]?s[r].index:o.cssRules.length;o.insertRule("@media{}",n),o.insertRule(`--sxs{--sxs:${e}}`,n),s[t]={group:o.cssRules[n+1],index:n,cache:new Set([e])}}eo(s[t])}};return n(),t},eo=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},es=Symbol(),ea=L(),el=(e,t)=>ea(e,()=>(...r)=>{let n={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[$])for(let e of(null==n.type&&(n.type=t[$].type),t[$].composers))n.composers.add(e);else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(eu(t,e))}return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),ec(e,n,t)}),eu=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{let o=`${Z(i.prefix)}c-${et(n)}`,s=[],a=[],l=Object.create(null),u=[];for(let e in r)l[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){F.call(l,t)||(l[t]="undefined");let r=e[t];for(let e in r){let n={[t]:String(e)};"undefined"===String(e)&&u.push(t);let i=r[e],o=[n,i,!N(i)];s.push(o)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let n=[r,t,!N(t)];a.push(n)}return[o,n,s,a,l,u]},ec=(e,t,r)=>
12{let[n,i,o,s]=ed(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[es].length;r++){let[n,i]=t[es][r];e.rules[n].apply(i)}return t[es]=[],null}return t[es]=[],t.rules={},er.forEach(e=>t.rules[e]={apply:r=>t[es].push([e,r])}),t})(r):null,l=(a||r).rules,u=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||ef;let{css:d,...h}=c,f={};for(let e in o)if(delete h[e],e in c){let t=c[e];"object"==typeof t&&t?f[e]={"@initial":o[e],...t}:(t=String(t),f[e]="undefined"!==t||s.has(e)?t:o[e])}else f[e]=o[e];let p=new Set([...i]);for(let[n,i,o,s]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),Q(i,[`.${n}`],[],e,e=>{l.styled.apply(e)}));let t=eh(o,f,e.media),a=eh(s,f,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,o,s]of i){let i=`${n}-${et(o)}-${t}`;p.add(i);let a=(s?r.rules.resonevar:r.rules.onevar).cache,u=s?l.resonevar:l.onevar;a.has(i)||(a.add(i),Q(o,[`.${i}`],[],e,e=>{u.apply(e)}))}for(let t of a)if(void 0!==t)for(let[i,o]of t){let t=`${n}-${et(o)}-${i}`;p.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),Q(o,[`.${t}`],[],e,e=>{l.allvar.apply(e)}))}}if("object"==typeof d&&d){let t=`${n}-i${et(d)}-css`;p.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),Q(d,[`.${t}`],[],e,e=>{l.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&p.add(e);let g=h.className=[...p].join(" ");return{type:t.type,className:g,selector:u,props:h,toString:()=>g,deferredInjector:a}};return M(c,{className:n,selector:u,[$]:t,toString:()=>(r.rules.styled.cache.has(n)||c(),n)})},ed=e=>{let t="",r=[],n={},i=[];for(let[o,,,,s,a]of e)for(let e in""===t&&(t=o),r.push(o),i.push(...a),s){let t=s[e];(void 0===n[e]||"undefined"!==t||a.includes(t))&&(n[e]=t)}return[t,r,n,new Set(i)]},eh=(e,t,r,n)=>{let i=[];e:for(let[o,s,a]of e){if(a)continue;let e,l=0,u=!1;for(e in o){let n=o[e],i=t[e];if(i!==n){if("object"!=typeof i||!i)continue e;{let e,t,o=0;for(let s in i){if(n===String(i[s])){if("@initial"!==s){let e=s.slice(1);(t=t||[]).push(e in r?r[e]:s.replace(/^@media ?/,"")),u=!0}l+=o,e=!0}++o}if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(i[l]=i[l]||[]).push([n?"cv":`${e}-${o[e]}`,s,u])}return i},ef={},ep=L(),eg=(e,t)=>ep(e,()=>(...r)=>{let n=()=>{for(let n of r){let r=et(n="object"==typeof n&&n||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}
12Q(n,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return M(n,{toString:n})}),ev=L(),em=(e,t)=>ev(e,()=>r=>{let n=`${Z(e.prefix)}k-${et(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);let i=[];Q(r,[],[],e,e=>i.push(e));let o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return M(i,{get name(){return i()},toString:i})}),ey=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Z(this.prefix)+Z(this.scale)+this.token}toString(){return this.computedValue}},eb=L(),e_=(e,t)=>eb(e,()=>(r,n)=>{n="object"==typeof r&&r||Object(n);let i=`.${r=(r="string"==typeof r?r:"")||`${Z(e.prefix)}t-${et(n)}`}`,o={},s=[];for(let t in n)for(let r in o[t]={},n[t]){let i=`--${Z(e.prefix)}${t}-${r}`,a=G(String(n[t][r]),e.prefix,t);o[t][r]=new ey(r,a,t,e.prefix),s.push(`${i}:${a}`)}let a=()=>{if(s.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${n===e.theme?":root,":""}.${r}{${s.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return a()},selector:i,toString:a}}),ew=L(),ek=e=>{let t=!1,r=ew(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},s={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...R},utils:"object"==typeof e.utils&&e.utils||{}},a=ei(i),l={css:el(s,a),globalCss:eg(s,a),keyframes:em(s,a),createTheme:e_(s,a),reset(){a.reset(),l.theme.toString()},theme:{},sheet:a,config:s,prefix:r,getCssText:a.toString,toString:a.toString};return String(l.theme=l.createTheme(o)),l});return t||r.reset(),r},ex=()=>E||(E=ek()),eS=(...e)=>ex().createTheme(...e),eE=(...e)=>ex().css(...e),eO={default:{colors:{brand:"hsl(153 60.0% 53.0%)",brandAccent:"hsl(154 54.8% 45.1%)",brandButtonText:"white",defaultButtonBackground:"white",defaultButtonBackgroundHover:"#eaeaea",defaultButtonBorder:"lightgray",defaultButtonText:"gray",dividerBackground:"#eaeaea",inputBackground:"transparent",inputBorder:"lightgray",inputBorderHover:"gray",inputBorderFocus:"gray",inputText:"black",inputLabelText:"gray",inputPlaceholder:"darkgray",messageText:"gray",messageTextDanger:"red",anchorTextColor:"gray",anchorTextHoverColor:"darkgray"},space:{spaceSmall:"4px",spaceMedium:"8px",spaceLarge:"16px",labelBottomMargin:"8px",anchorBottomMargin:"4px",emailInputSpacing:"4px",socialAuthSpacing:"4px",buttonPadding:"10px 15px",inputPadding:"10px 15px"},fontSizes:{baseBodySize:"13px",baseInputSize:"14px",baseLabelSize:"14px",baseButtonSize:"14px"},fonts:{bodyFontFamily:"ui-sans-serif, sans-serif",buttonFontFamily:"ui-sans-serif, sans-serif",inputFontFamily:"ui-sans-serif, sans-serif",labelFontFamily:"ui-sans-serif, sans-serif"},borderWidths:{buttonBorderWidth:"1px",inputBorderWidth:"1px"},radii:{borderRadiusButton:"4px",buttonBorderRadius:"4px",inputBorderRadius:"4px"}},dark:{colors:{brandButtonText:"white",defaultButtonBackground:"#2e2e2e",defaultButtonBackgroundHover:"#3e3e3e",defaultButtonBorder:"#3e3e3e",defaultButtonText:"white",dividerBackground:"#2e2e2e",inputBackground:"#1e1e1e",inputBorder:"#3e3e3e",inputBorderHover:"gray",inputBorderFocus:"gray",inputText:"white",inputPlaceholder:"darkgray"}}},eC={SIGN_IN:"sign_in",SIGN_UP:"sign_up",FORGOTTEN_PASSWORD:"forgotten_password",MAGIC_LINK:"magic_link",UPDATE_PASSWORD:"update_password"},eP={ROOT:"root",SIGN_IN:eC.SIGN_IN,SIGN_UP:eC.SIGN_UP,FORGOTTEN_PASSWORD:eC.FORGOTTEN_PASSWORD,MAGIC_LINK:eC.MAGIC_LINK,UPDATE_PASSWORD:eC.UPDATE_PASSWORD,anchor:"ui-anchor",button:"ui-button",container:"ui-container",divider:"ui-divider",input:"ui-input",label:"ui-label",loader:"ui-loader",message:"ui-message"};function eT(e,t,r){var n,i;let o=[],s=eP[e];return o.push((null==r?void 0:r.prependedClassName)?(null==r?void 0:r.prependedClassName)+"_"+s:"supabase-auth-ui_"+s),(null==(n=null==r?void 0:r.className)?void 0:n[e])&&o.push(null==(i=null==r?void 0:r.className)?void 0:i[e]),((null==r?void 0:r.extend)===void 0||(null==r?void 0:r.extend)===!0)&&o.push(t),o}var eI=((n=eI||{})[n.horizontal=0]="horizontal",n[n.vertical=1]="vertical",n);function ej(e,...t){let r=t.length;for(let n=0;n<r;n++)e=function e(t,r){let n;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(Array.isArray(r))for(n=0;n<r.length;n++)t[n]=e(t[n],r[n]);else for(n in r)t[n]=e(t[n],r[n]);return t}return r}(e,t[n]);return e}var eR={sign_up:{email_label:"Email address",password_label:"Create a Password",email_input_placeholder:"Your email address",password_input_placeholder:"Your password",button_label:"Sign up",loading_button_label:"Signing up ...",social_provider_text:"Sign in with {{provider}}",link_text:"Don't have an account? Sign up",confirmation_text:"Check your email for the confirmation link"},sign_in:{email_label:"Email address",password_label:"Your Password",email_input_placeholder:"Your email address",password_input_placeholder:"Your password",button_label:"Sign in",loading_button_label:"Signing in ...",social_provider_text:"Sign in with {{provider}}",link_text:"Already have an account? Sign in"},magic_link:{email_input_label:"Email address",email_input_placeholder:"Your email address",button_label:"Send Magic Link",loading_button_label:"Sending Magic Link ...",link_text:"Send a magic link email",confirmation_text:"Check your email for the magic link"},forgotten_password:{email_label:"Email address",password_label:"Your Password",email_input_placeholder:"Your email address",button_label:"Send reset password instructions",loading_button_label:"Sending reset instructions ...",link_text:"Forgot your password?",confirmation_text:"Check your email for the password reset link"},update_password:{password_label:"New password",password_input_placeholder:"Your new password",button_label:"Update password",loading_button_label:"Updating password ...",confirmation_text:"Your password has been updated"}};let eA=eE({fontFamily:"$bodyFontFamily",fontSize:"$baseBodySize",marginBottom:"$anchorBottomMargin",color:"$anchorTextColor",display:"block",textAlign:"center",textDecoration:"underline","&:hover":{color:"$anchorTextHoverColor"}}),eL=({children:e,appearance:t,...r})=>{var n;let i=eT("anchor",eA(),t);return d.createElement("a",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.anchor,className:i.join(" ")},e)},e$=eE({fontFamily:"$buttonFontFamily",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",borderRadius:"$borderRadiusButton",fontSize:"$baseButtonSize",padding:"$buttonPadding",cursor:"pointer",borderWidth:"$buttonBorderWidth",borderStyle:"solid",width:"100%",transitionPproperty:"background-color",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms","&:disabled":{opacity:.7,cursor:"unset"},variants:{color:{default:{backgroundColor:"$defaultButtonBackgroun
12d",color:"$defaultButtonText",borderColor:"$defaultButtonBorder","&:hover:not(:disabled)":{backgroundColor:"$defaultButtonBackgroundHover"}},primary:{backgroundColor:"$brand",color:"$brandButtonText",borderColor:"$brandAccent","&:hover:not(:disabled)":{backgroundColor:"$brandAccent"}}}}}),eM=({children:e,color:t="default",appearance:r,icon:n,loading:i=!1,...o})=>{var s;let a=eT("button",e$({color:t}),r);return d.createElement("button",{...o,style:null==(s=null==r?void 0:r.style)?void 0:s.button,className:a.join(" "),disabled:i},n,e)},eN=eE({display:"flex",gap:"4px",variants:{direction:{horizontal:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(48px, 1fr))"},vertical:{flexDirection:"column",margin:"8px 0"}},gap:{small:{gap:"4px"},medium:{gap:"8px"},large:{gap:"16px"}}}}),eF=({children:e,appearance:t,...r})=>{var n;let i=eT("container",eN({direction:r.direction,gap:r.gap}),t);return d.createElement("div",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.container,className:i.join(" ")},e)},eB=eE({background:"$dividerBackground",display:"block",margin:"16px 0",height:"1px",width:"100%"}),eD=({children:e,appearance:t,...r})=>{var n;let i=eT("divider",eB(),t);return d.createElement("div",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.divider,className:i.join(" ")})},ez=eE({fontFamily:"$inputFontFamily",background:"$inputBackground",borderRadius:"$inputBorderRadius",padding:"$inputPadding",cursor:"text",borderWidth:"$inputBorderWidth",borderColor:"$inputBorder",borderStyle:"solid",fontSize:"$baseInputSize",width:"100%",color:"$inputText",boxSizing:"border-box","&:hover":{borderColor:"$inputBorderHover",outline:"none"},"&:focus":{borderColor:"$inputBorderFocus",outline:"none"},"&::placeholder":{color:"$inputPlaceholder",letterSpacing:"initial"},transitionPproperty:"background-color, border",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms",variants:{type:{default:{letterSpacing:"0px"},password:{letterSpacing:"6px"}}}}),eU=({children:e,appearance:t,...r})=>{var n;let i=eT("input",ez({type:"password"===r.type?"password":"default"}),t);return d.createElement("input",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.input,className:i.join(" ")},e)},eH=eE({fontFamily:"$labelFontFamily",fontSize:"$baseLabelSize",marginBottom:"$labelBottomMargin",color:"$inputLabelText",display:"block"}),eV=({children:e,appearance:t,...r})=>{var n;let i=eT("label",eH(),t);return d.createElement("label",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.label,className:i.join(" ")},e)},eq=eE({fontFamily:"$bodyFontFamily",fontSize:"$baseBodySize",marginBottom:"$labelBottomMargin",display:"block",textAlign:"center",variants:{color:{default:{color:"$messageText"},danger:{color:"$messageTextDanger"}}}}),eW=({children:e,appearance:t,...r})=>{var n;let i=eT("message",eq({color:r.color}),t);return d.createElement("span",{...r,style:null==(n=null==t?void 0:t.style)?void 0:n.message,className:i.join(" ")},e)};function eZ({setAuthView:e=()=>{},supabaseClient:t,redirectTo:r,i18n:n,appearance:i,showLinks:o=!1}){var s;let[a,l]=(0,d.useState)(""),[u,c]=(0,d.useState)(""),[h,f]=(0,d.useState)(""),[p,g]=(0,d.useState)(!1),v=async e=>{var i;e.preventDefault(),c(""),f(""),g(!0);let{error:o}=await t.auth.signInWithOtp({email:a,options:{emailRedirectTo:r}});o?c(o.message):f(null==(i=null==n?void 0:n.magic_link)?void 0:i.confirmation_text),g(!1)},m=null==n?void 0:n.magic_link;return d.createElement("form",{id:"auth-magic-link",onSubmit:v},d.createElement(eF,{gap:"large",direction:"vertical",appearance:i},d.createElement(eF,{gap:"large",direction:"vertical",appearance:i},d.createElement("div",null,d.createElement(eV,{htmlFor:"email",appearance:i},null==m?void 0:m.email_input_label),d.createElement(eU,{id:"email",name:"email",type:"email",autoFocus:!0,placeholder:null==m?void 0:m.email_input_placeholder,onChange:e=>l(e.target.value),appearance:i})),d.createElement(eM,{color:"primary",type:"submit",loading:p,appearance:i},p?null==m?void 0:m.loading_button_label:null==m?void 0:m.button_label)),o&&d.createElement(eL,{href:"#auth-sign-in",onClick:t=>{t.preventDefault(),e(eC.SIGN_IN)},appearance:i},null==(s=null==n?void 0:n.sign_in)?void 0:s.link_text),h&&d.createElement(eW,{appearance:i},h),u&&d.createElement(eW,{color:"danger",appearance:i},u)))}let eG=eE({width:"21px",height:"21px"}),eJ=Object.freeze(Object.defineProperty({__proto__:null,apple:()=>d.createElement("svg",{className:eG(),fill:"gray",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"21px",height:"21px"}," ",d.createElement("path",{d:"M 15.904297 1.078125 C 15.843359 1.06875 15.774219 1.0746094 15.699219 1.0996094 C 14.699219 1.2996094
1213.600391 1.8996094 12.900391 2.5996094 C 12.300391 3.1996094 11.800781 4.1996094 11.800781 5.0996094 C 11.800781 5.2996094 11.999219 5.5 12.199219 5.5 C 13.299219 5.4 14.399609 4.7996094 15.099609 4.0996094 C 15.699609 3.2996094 16.199219 2.4 16.199219 1.5 C 16.199219 1.275 16.087109 1.10625 15.904297 1.078125 z M 16.199219 5.4003906 C 14.399219 5.4003906 13.600391 6.5 12.400391 6.5 C 11.100391 6.5 9.9003906 5.5 8.4003906 5.5 C 6.3003906 5.5 3.0996094 7.4996094 3.0996094 12.099609 C 2.9996094 16.299609 6.8 21 9 21 C 10.3 21 10.600391 20.199219 12.400391 20.199219 C 14.200391 20.199219 14.600391 21 15.900391 21 C 17.400391 21 18.500391 19.399609 19.400391 18.099609 C 19.800391 17.399609 20.100391 17.000391 20.400391 16.400391 C 20.600391 16.000391 20.4 15.600391 20 15.400391 C 17.4 14.100391 16.900781 9.9003906 19.800781 8.4003906 C 20.300781 8.1003906 20.4 7.4992188 20 7.1992188 C 18.9 6.1992187 17.299219 5.4003906 16.199219 5.4003906 z"})),azure:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("linearGradient",{id:"k8yl7~hDat~FaoWq8WjN6a",x1:"-1254.397",x2:"-1261.911",y1:"877.268",y2:"899.466",gradientTransform:"translate(1981.75 -1362.063) scale(1.5625)",gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:"0",stopColor:"#114a8b"}),d.createElement("stop",{offset:"1",stopColor:"#0669bc"})),d.createElement("path",{fill:"url(#k8yl7~hDat~FaoWq8WjN6a)",d:"M17.634,6h11.305L17.203,40.773c-0.247,0.733-0.934,1.226-1.708,1.226H6.697 c-0.994,0-1.8-0.806-1.8-1.8c0-0.196,0.032-0.39,0.094-0.576L15.926,7.227C16.173,6.494,16.86,6,17.634,6L17.634,6z"}),d.createElement("path",{fill:"#0078d4",d:"M34.062,29.324H16.135c-0.458-0.001-0.83,0.371-0.831,0.829c0,0.231,0.095,0.451,0.264,0.608 l11.52,10.752C27.423,41.826,27.865,42,28.324,42h10.151L34.062,29.324z"}),d.createElement("linearGradient",{id:"k8yl7~hDat~FaoWq8WjN6b",x1:"-1252.05",x2:"-1253.788",y1:"887.612",y2:"888.2",gradientTransform:"translate(1981.75 -1362.063) scale(1.5625)",gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:"0",stopOpacity:".3"}),d.createElement("stop",{offset:".071",stopOpacity:".2"}),d.createElement("stop",{offset:".321",stopOpacity:".1"}),d.createElement("stop",{offset:".623",stopOpacity:".05"}),d.createElement("stop",{offset:"1",stopOpacity:"0"})),d.createElement("path",{fill:"url(#k8yl7~hDat~FaoWq8WjN6b)",d:"M17.634,6c-0.783-0.003-1.476,0.504-1.712,1.25L5.005,39.595 c-0.335,0.934,0.151,1.964,1.085,2.299C6.286,41.964,6.493,42,6.702,42h9.026c0.684-0.122,1.25-0.603,1.481-1.259l2.177-6.416 l7.776,7.253c0.326,0.27,0.735,0.419,1.158,0.422h10.114l-4.436-12.676l-12.931,0.003L28.98,6H17.634z"}),d.createElement("linearGradient",{id:"k8yl7~hDat~FaoWq8WjN6c",x1:"-1252.952",x2:"-1244.704",y1:"876.6",y2:"898.575",gradientTransform:"translate(1981.75 -1362.063) scale(1.5625)",gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:"0",stopColor:"#3ccbf4"}),d.createElement("stop",{offset:"1",stopColor:"#2892df"})),d.createElement("path",{fill:"url(#k8yl7~hDat~FaoWq8WjN6c)",d:"M32.074,7.225C31.827,6.493,31.141,6,30.368,6h-12.6c0.772,0,1.459,0.493,1.705,1.224 l10.935,32.399c0.318,0.942-0.188,1.963-1.13,2.281C29.093,41.968,28.899,42,28.703,42h12.6c0.994,0,1.8-0.806,1.8-1.801 c0-0.196-0.032-0.39-0.095-0.575L32.074,7.225z"})),bitbucket:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",viewBox:"0 0 62.42 62.42"},d.createElement("defs",null,d.createElement("linearGradient",{id:"New_Gradient_Swatch_1",x1:"64.01",y1:"30.27",x2:"32.99",y2:"54.48",gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:"0.18",stopColor:"#0052cc"}),d.createElement("stop",{offset:"1",stopColor:"#2684ff"}))),d.createElement("title",null,"Bitbucket-blue"),d.createElement("g",{id:"Layer_2","data-name":"Layer 2"},d.createElement("g",{id:"Blue",transform:"translate(0 -3.13)"},d.createElement("path",{d:"M2,6.26A2,2,0,0,0,0,8.58L8.49,60.12a2.72,2.72,0,0,0,2.66,2.27H51.88a2,2,0,0,0,2-1.68L62.37,8.59a2,2,0,0,0-2-2.32ZM37.75,43.51h-13L21.23,25.12H40.9Z",fill:"#2684ff"}),d.createElement("path",{d:"M59.67,25.12H40.9L37.75,43.51h-13L9.4,61.73a2.71,2.71,0,0,0,1.75.66H51.89a2,2,0,0,0,2-1.68Z",fill:"url(#New_Gradient_Swatch_1)"})))),discord:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#536dfe",d:"M39.248,10.177c-2.804-1.287-5.812-2.235-8.956-2.778c-0.057-0.01-0.114,0.016-0.144,0.068 c-0.387,0.688-0.815,1.585-1.115,2.291c-3.382-0.506-6.747-0.506-10.059,0c-0.3-0.721-0.744-1.603-1.133-2.291 c-0.03-0.051-0.087-0.077-0.144-0.
12068c-3.143,0.541-6.15,1.489-8.956,2.778c-0.024,0.01-0.045,0.028-0.059,0.051 c-5.704,8.522-7.267,16.835-6.5,25.044c0.003,0.04,0.026,0.079,0.057,0.103c3.763,2.764,7.409,4.442,10.987,5.554 c0.057,0.017,0.118-0.003,0.154-0.051c0.846-1.156,1.601-2.374,2.248-3.656c0.038-0.075,0.002-0.164-0.076-0.194 c-1.197-0.454-2.336-1.007-3.432-1.636c-0.087-0.051-0.094-0.175-0.014-0.234c0.231-0.173,0.461-0.353,0.682-0.534 c0.04-0.033,0.095-0.04,0.142-0.019c7.201,3.288,14.997,3.288,22.113,0c0.047-0.023,0.102-0.016,0.144,0.017 c0.22,0.182,0.451,0.363,0.683,0.536c0.08,0.059,0.075,0.183-0.012,0.234c-1.096,0.641-2.236,1.182-3.434,1.634 c-0.078,0.03-0.113,0.12-0.075,0.196c0.661,1.28,1.415,2.498,2.246,3.654c0.035,0.049,0.097,0.07,0.154,0.052 c3.595-1.112,7.241-2.79,11.004-5.554c0.033-0.024,0.054-0.061,0.057-0.101c0.917-9.491-1.537-17.735-6.505-25.044 C39.293,10.205,39.272,10.187,39.248,10.177z M16.703,30.273c-2.168,0-3.954-1.99-3.954-4.435s1.752-4.435,3.954-4.435 c2.22,0,3.989,2.008,3.954,4.435C20.658,28.282,18.906,30.273,16.703,30.273z M31.324,30.273c-2.168,0-3.954-1.99-3.954-4.435 s1.752-4.435,3.954-4.435c2.22,0,3.989,2.008,3.954,4.435C35.278,28.282,33.544,30.273,31.324,30.273z"})),facebook:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#039be5",d:"M24 5A19 19 0 1 0 24 43A19 19 0 1 0 24 5Z"}),d.createElement("path",{fill:"#fff",d:"M26.572,29.036h4.917l0.772-4.995h-5.69v-2.73c0-2.075,0.678-3.915,2.619-3.915h3.119v-4.359c-0.548-0.074-1.707-0.236-3.897-0.236c-4.573,0-7.254,2.415-7.254,7.917v3.323h-4.701v4.995h4.701v13.729C22.089,42.905,23.032,43,24,43c0.875,0,1.729-0.08,2.572-0.194V29.036z"})),github:()=>d.createElement("svg",{className:eG(),fill:"gray",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",width:"21px",height:"21px"}," ",d.createElement("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})),gitlab:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#e53935",d:"M24 43L16 20 32 20z"}),d.createElement("path",{fill:"#ff7043",d:"M24 43L42 20 32 20z"}),d.createElement("path",{fill:"#e53935",d:"M37 5L42 20 32 20z"}),d.createElement("path",{fill:"#ffa726",d:"M24 43L42 20 45 28z"}),d.createElement("path",{fill:"#ff7043",d:"M24 43L6 20 16 20z"}),d.createElement("path",{fill:"#e53935",d:"M11 5L6 20 16 20z"}),d.createElement("path",{fill:"#ffa726",d:"M24 43L6 20 3 28z"})),google:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),d.createElement("path",{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),d.createElement("path",{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),d.createElement("path",{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.5
1271c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"})),keycloak:()=>d.createElement("svg",{className:eG(),width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M472.136 163.959H408.584C407.401 163.959 406.218 163.327 405.666 162.3L354.651 73.6591C354.02 72.632 352.916 72 351.654 72H143.492C142.309 72 141.126 72.632 140.574 73.6591L87.5084 165.618L36.414 254.259C35.862 255.286 35.862 256.55 36.414 257.656L87.5084 346.297L140.495 438.335C141.047 439.362 142.23 440.073 143.413 439.994H351.654C352.837 439.994 354.02 439.362 354.651 438.335L405.745 349.694C406.297 348.667 407.48 347.956 408.663 348.035H472.215C474.344 348.035 476 346.297 476 344.243V167.83C475.921 165.697 474.186 163.959 472.136 163.959ZM228.728 349.694L212.721 377.345C212.485 377.74 212.091 378.135 211.696 378.372C211.223 378.609 210.75 378.767 210.198 378.767H178.422C177.318 378.767 176.293 378.214 175.82 377.187L128.431 294.787L123.779 286.65L106.748 257.498C106.511 257.103 106.353 256.629 106.432 256.076C106.432 255.602 106.59 255.049 106.827 254.654L123.937 224.949L175.899 134.886C176.451 133.938 177.476 133.306 178.501 133.306H210.198C210.75 133.306 211.302 133.464 211.854 133.701C212.248 133.938 212.643 134.254 212.879 134.728L228.886 162.537C229.359 163.485 229.28 164.67 228.728 165.539L177.397 254.654C177.16 255.049 177.081 255.523 177.081 255.918C177.081 256.392 177.239 256.787 177.397 257.182L228.728 346.218C229.438 347.403 229.359 348.667 228.728 349.694V349.694ZM388.083 257.498L371.051 286.65L366.399 294.787L319.011 377.187C318.459 378.135 317.512 378.767 316.409 378.767H284.632C284.08 378.767 283.607 378.609 283.134 378.372C282.74 378.135 282.346 377.819 282.109 377.345L266.103 349.694C265.393 348.667 265.393 347.403 266.024 346.376L317.355 257.34C317.591 256.945 317.67 256.471 317.67 256.076C317.67 255.602 317.513 255.207 317.355 254.812L266.024 165.697C265.472 164.749 265.393 163.643 265.866 162.695L281.873 134.886C282.109 134.491 282.503 134.096 282.898 133.859C283.371 133.543 283.923 133.464 284.553 133.464H316.409C317.512 133.464 318.538 134.017 319.011 135.044L370.972 225.107L388.083 254.812C388.319 255.286 388.477 255.76 388.477 256.234C388.477 256.55 388.319 257.024 388.083 257.498V257.498Z",fill:"#008AAA"})),linkedin:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#0288D1",d:"M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z"}),d.createElement("path",{fill:"#FFF",d:"M12 19H17V36H12zM14.485 17h-.028C12.965 17 12 15.888 12 14.499 12 13.08 12.995 12 14.514 12c1.521 0 2.458 1.08 2.486 2.499C17 15.887 16.035 17 14.485 17zM36 36h-5v-9.099c0-2.198-1.225-3.698-3.192-3.698-1.501 0-2.313 1.012-2.707 1.99C24.957 25.543 25 26.511 25 27v9h-5V19h5v2.616C25.721 20.5 26.85 19 29.738 19c3.578 0 6.261 2.25 6.261 7.274L36 36 36 36z"})),notion:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px",fillRule:"evenodd",clipRule:"evenodd"},d.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M11.553,11.099c1.232,1.001,1.694,0.925,4.008,0.77 l21.812-1.31c0.463,0,0.078-0.461-0.076-0.538l-3.622-2.619c-0.694-0.539-1.619-1.156-3.391-1.002l-21.12,1.54 c-0.77,0.076-0.924,0.461-0.617,0.77L11.553,11.099z",clipRule:"evenodd"}),d.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M12.862,16.182v22.95c0,1.233,0.616,1.695,2.004,1.619 l23.971-1.387c1.388-0.076,1.543-0.925,1.543-1.927V14.641c0-1-0.385-1.54-1.234-1.463l-25.05,1.463 C13.171,14.718,12.862,15.181,12.862,16.182L12.862,16.182z",clipRule:"evenodd"}),d.createElement("path",{fill:"#424242",fillRule:"evenodd",d:"M11.553,11.099c1.232,1.001,1.694,0.925,4.008,0.77 l21.812-1.31c0.463,0,0.078-0.461-0.076-0.538l-3.622-2.619c-0.694-0.539-1.619-1.156-3.391-1.002l-21.12,1.54 c-0.77,0.076-0.924,0.461-0.617,0.77L11.553,11.099z M12.862,16.182v22.95c0,1.233,0.616,1.695,2.004,1.619l23.971-1.387 c1.388-0.076,1.543-0.925,1.543-1.927V14.641c0-1-0.385-1.54-1.234-1.463l-25.05,1.463C13.171,14.718,12.862,15.181,12.862,16.182 L12.862,16.182z M36.526,17.413c0.154,0.694,0,1.387-0.695,1.465l-1.155,0.23v16.943c-1.003,0.539-1.928,0.847-2.698,0.847 c-1.234,0-1.543-0.385-2.467-1.54l-7.555-11.86v11.475l2.391,0.539c0,0,0,1.386-1.929,1.386l-5.317,0.308 c-0.154-0.308,0-1.078,0.539-1.232l1.388-0.385V20.418l-1.927-0.154c-0.155-0.694,0.23-1.694,1.31-1.772l5.704-0.385l7.862,12.015 V19.493l-2.005-0.23c-0.154-0.848,0.462-1.464,1.233-1.54L36.526,17.413z M7.389,5.862l21.968-1.618 c2.698-0.231,3.392-0.076,5.087,1.155l7.013,4.929C42.614,11.176,43,11.407,43,12.33v27.032c0,1.694-0.617,2.696-2.775,2.849 l-25.512,1.541c-1.62,0.077-2.391-0.154-3.239-1.232l-5.164-6.7C5.385,34.587,5,33.664,5,32.585V8.556 C5,7.171,5.617,6.015,7.389,5.862z",clipRule:"evenodd"})),slack:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#33d375",d:"M33,8c0-2.209-1.791-4-4-4s-4,1.791-4,4c0,1.254,0,9.741,0,11c0,2.209,1.791,4,4,4s4-1.791,4-4 C33,17.741,33,9.254,33,8z"}),d.createElement("path",{fill:"#33d375",d:"M43,19c0,2.209-1.791,4-4,4c-1.195,0-4,0-4,0s0-2.986,0-4c0-2.209,1.791-4,4-4S43,16.791,43,19z"}),d.createElement("path",{fill:"#40c4ff",d:"M8,14c-2.209,0-4,1.791-4,4s1.791,4,4,4c1.254,0,9.741,0,11,0c2.209,0,4-1.791,4-4s-1.791-4-4-4 C17.741,14,9.254,14,8,14z"}),d.createElement("path",{fill:"#40c4ff",d:"M19,4c2.209,0,4,1.791,4,4c0,1.195,0,4,0,4s-2.986,0-4,0c-2.209,0-4-1.791-4-4S16.791,4,19,4z"}),d.createElement("path",{fill:"#e91e63",d:"M14,39.006C14,41.212,15.791,43,18,43s4-1.788,4-3.994c0-1.252,0-9.727,0-10.984 c0-2.206-1.791-3.994-4-3.994s-4,1.788-4,3.994C14,29.279,14,37.754,14,39.006z"}),d.createElement("path",{fill:"#e91e63",d:"M4,28.022c0-2.206,1.791-3.994,4-3.994c1.195,0,4,0,4,0s0,2.981,0,3.994c0,2.206-1.791,3.994-4,3.994 S4,30.228,4,28.022z"}),d.createElement("path",{fill:"#ffc107",d:"M39,33c2.209,0,4-1.791,4-4s-1.791-4-4-4c-1.254,0-9.741,0-11,0c-2.209,0-4,1.791-4,4s1.791,4,4,4 C29.258,33,37.746,33,39,33z"}),d.createElement("path",{fill:"#ffc107",d:"M28,43c-2.209,0-4-1.791-4-4c0-1.195,0-4,0-4s2.986,0,4,0c2.209,0,4,1.791,4,4S30.209,43,28,43z"})),spotify:()=>d.createElement("svg",{className:eG(),width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M255.498 31.0034C131.513 31.0034 31 131.515 31 255.502C31 379.492 131.513 480 255.498 480C379.497 480 480 379.495 480 255.502C480 131.522 379.497 31.0135 255.495 31.0135L255.498 31V31.0034ZM358.453 354.798C354.432 361.391 345.801 363.486 339.204 359.435C286.496 327.237 220.139 319.947 141.993 337.801C134.463 339.516 126.957 334.798 125.24 327.264C123.516 319.731 128.217 312.225 135.767 310.511C221.284 290.972 294.639 299.384 353.816 335.549C360.413 339.596 362.504 348.2 358.453 354.798ZM385.932 293.67C380.864 301.903 370.088 304.503 361.858 299.438C301.512 262.345 209.528 251.602 138.151 273.272C128.893 276.067 119.118 270.851 116.309 261.61C113.521 252.353 118.74 242.597 127.981 239.782C209.512 215.044 310.87 227.026 380.17 269.612C388.4 274.68 391 285.456 385.935 293.676V293.673L385.932 293.67ZM388.293 230.016C315.935 187.039 196.56 183.089 127.479 204.055C116.387 207.42 104.654 201.159 101.293 190.063C97.9326 178.964 104.189 167.241 115.289 163.87C194.59 139.796 326.418 144.446 409.723 193.902C419.722 199.826 422.995 212.71 417.068 222.675C411.168 232.653 398.247 235.943 388.303 23
120.016H388.293V230.016Z",fill:"#1ED760"})),twitch:()=>d.createElement("svg",{className:eG(),width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M416 240L352 304H288L232 360V304H160V64H416V240Z",fill:"white"}),d.createElement("path",{d:"M144 32L64 112V400H160V480L240 400H304L448 256V32H144ZM416 240L352 304H288L232 360V304H160V64H416V240Z",fill:"#9146FF"}),d.createElement("path",{d:"M368 120H336V216H368V120Z",fill:"#9146FF"}),d.createElement("path",{d:"M280 120H248V216H280V120Z",fill:"#9146FF"})),twitter:()=>d.createElement("svg",{className:eG(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"21px",height:"21px"},d.createElement("path",{fill:"#03A9F4",d:"M42,12.429c-1.323,0.586-2.746,0.977-4.247,1.162c1.526-0.906,2.7-2.351,3.251-4.058c-1.428,0.837-3.01,1.452-4.693,1.776C34.967,9.884,33.05,9,30.926,9c-4.08,0-7.387,3.278-7.387,7.32c0,0.572,0.067,1.129,0.193,1.67c-6.138-0.308-11.582-3.226-15.224-7.654c-0.64,1.082-1,2.349-1,3.686c0,2.541,1.301,4.778,3.285,6.096c-1.211-0.037-2.351-0.374-3.349-0.914c0,0.022,0,0.055,0,0.086c0,3.551,2.547,6.508,5.923,7.181c-0.617,0.169-1.269,0.263-1.941,0.263c-0.477,0-0.942-0.054-1.392-0.135c0.94,2.902,3.667,5.023,6.898,5.086c-2.528,1.96-5.712,3.134-9.174,3.134c-0.598,0-1.183-0.034-1.761-0.104C9.268,36.786,13.152,38,17.321,38c13.585,0,21.017-11.156,21.017-20.834c0-0.317-0.01-0.633-0.025-0.945C39.763,15.197,41.013,13.905,42,12.429"})),workos:()=>d.createElement("svg",{className:eG(),width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M33 256.043C33 264.556 35.3159 273.069 39.4845 280.202L117.993 415.493C126.098 429.298 138.373 440.572 153.657 445.634C183.764 455.528 214.797 442.873 229.618 417.333L248.609 384.661L173.806 256.043L252.777 119.831L271.768 87.1591C277.557 77.2654 284.968 69.4424 294 63H285.894H172.185C150.878 63 131.193 74.2742 120.54 92.6812L39.7161 231.884C35.3159 239.016 33 247.53 33 256.043Z",fill:"#6363F1"}),d.createElement("path",{d:"M480 256.058C480 247.539 477.684 239.021 473.516 231.883L393.849 94.6596C379.028 69.3331 347.995 56.4396 317.888 66.34C302.603 71.4053 290.329 82.6871 282.224 96.5015L264.391 127.354L339.194 256.058L260.223 392.131L241.232 424.825C235.443 434.495 228.032 442.553 219 449H227.106H340.815C362.122 449 381.807 437.718 392.46 419.299L473.284 280.003C477.684 272.866 480 264.577 480 256.058Z",fill:"#6363F1"}))},Symbol.toStringTag,{value:"Module"}));function eK({supabaseClient:e,socialLayout:t="vertical",providers:r=["github","google","azure"],redirectTo:n,onlyThirdPartyProviders:i=!0,view:o="sign_in",i18n:s,appearance:a}){let[l,u]=(0,d.useState)(!1),[c,h]=(0,d.useState)(""),f="vertical"===t,p=async t=>{u(!0);let{error:r}=await e.auth.signInWithOAuth({provider:t,options:{redirectTo:n}});r&&h(r.message),u(!1)};return d.createElement(d.Fragment,null,r&&r.length>0&&d.createElement(d.Fragment,null,d.createElement(eF,{gap:"large",direction:"vertical",appearance:a},d.createElement(eF,{direction:f?"vertical":"horizontal",gap:f?"small":"medium",appearance:a},r.map(e=>{var t,r,n;let i=eJ[e];return d.createElement(eM,{key:e,color:"default",icon:i?d.createElement(i,null):"",loading:l,onClick:()=>p(e),appearance:a},f&&(r=null==(t=null==s?void 0:s[o])?void 0:t.social_provider_text,n={provider:function(e){let t=e.toLowerCase();return e.charAt(0).toUpperCase()+t.slice(1)}(e)},r.replace(/{{(\w+)}}/g,(e,t)=>n.hasOwnProperty(t)?n[t]:e)))}))),!i&&d.createElement(eD,{appearance:a})))}function eQ({authView:e="sign_in",defaultEmail:t="",defaultPassword:r="",setAuthView:n=()=>{},setDefaultEmail:i=e=>{},setDefaultPassword:o=e=>{},supabaseClient:s,showLinks:a=!1,redirectTo:l,magicLink:u,i18n:c,appearance:h}){var f,p,g,v;let m=(0,d.useRef)(!0),[y,b]=(0,d.useState)(t),[_,w]=(0,d.useState)(r),[k,x]=(0,d.useState)(""),[S,E]=(0,d.useState)(!1),[O,C]=(0,d.useState)("");(0,d.useEffect)(()=>(m.current=!0,b(t),w(r),()=>{m.current=!1}),[e]);let P=async t=>{var r;switch(t.preventDefault(),x(""),E(!0),e){case"sign_in":let{error:n}=await s.auth.signInWithPassword({email:y,password:_});n&&x(n.message);break;case"sign_up":let{data:{user:i,session:o},error:a}=await s.auth.signUp({email:y,password:_,options:{emailRedirectTo:l}});a?x(a.message):i&&!o&&C(null==(r=null==c?void 0:c.sign_up)?void 0:r.confirmation_text)}m.current&&E(!1)},T=e=>{i(y),o(_),n(e)},I=null==c?void 0:c[e];return d.createElement("form",{id:"sign_in"===e?"auth-sign-in":"auth-sign-up",onSubmit:P,autoComplete:"on",style:{width:"100%"}}
12,d.createElement(eF,{direction:"vertical",gap:"large",appearance:h},d.createElement(eF,{direction:"vertical",gap:"large",appearance:h},d.createElement("div",null,d.createElement(eV,{htmlFor:"email",appearance:h},null==I?void 0:I.email_label),d.createElement(eU,{id:"email",type:"email",name:"email",autoFocus:!0,placeholder:null==I?void 0:I.email_input_placeholder,defaultValue:y,onChange:e=>b(e.target.value),autoComplete:"email",appearance:h})),d.createElement("div",null,d.createElement(eV,{htmlFor:"password",appearance:h},null==I?void 0:I.password_label),d.createElement(eU,{id:"password",type:"password",name:"password",placeholder:null==I?void 0:I.password_input_placeholder,defaultValue:_,onChange:e=>w(e.target.value),autoComplete:"sign_in"===e?"current-password":"new-password",appearance:h}))),d.createElement(eM,{type:"submit",color:"primary",loading:S,appearance:h},S?null==I?void 0:I.loading_button_label:null==I?void 0:I.button_label),a&&d.createElement(eF,{direction:"vertical",gap:"small",appearance:h},e===eC.SIGN_IN&&u&&d.createElement(eL,{href:"#auth-magic-link",onClick:e=>{e.preventDefault(),n(eC.MAGIC_LINK)},appearance:h},null==(f=null==c?void 0:c.magic_link)?void 0:f.link_text),e===eC.SIGN_IN&&d.createElement(eL,{href:"#auth-forgot-password",onClick:e=>{e.preventDefault(),n(eC.FORGOTTEN_PASSWORD)},appearance:h},null==(p=null==c?void 0:c.forgotten_password)?void 0:p.link_text),e===eC.SIGN_IN?d.createElement(eL,{href:"#auth-sign-up",onClick:e=>{e.preventDefault(),T(eC.SIGN_UP)},appearance:h},null==(g=null==c?void 0:c.sign_up)?void 0:g.link_text):d.createElement(eL,{href:"#auth-sign-in",onClick:e=>{e.preventDefault(),T(eC.SIGN_IN)},appearance:h},null==(v=null==c?void 0:c.sign_in)?void 0:v.link_text))),O&&d.createElement(eW,{appearance:h},O),k&&d.createElement(eW,{color:"danger",appearance:h},k))}function eX({setAuthView:e=()=>{},supabaseClient:t,redirectTo:r,i18n:n,appearance:i,showLinks:o=!1}){var s;let[a,l]=(0,d.useState)(""),[u,c]=(0,d.useState)(""),[h,f]=(0,d.useState)(""),[p,g]=(0,d.useState)(!1),v=async e=>{var i;e.preventDefault(),c(""),f(""),g(!0);let{error:o}=await t.auth.resetPasswordForEmail(a,{redirectTo:r});o?c(o.message):f(null==(i=null==n?void 0:n.forgotten_password)?void 0:i.confirmation_text),g(!1)},m=null==n?void 0:n.forgotten_password;return d.createElement("form",{id:"auth-forgot-password",onSubmit:v},d.createElement(eF,{gap:"large",direction:"vertical",appearance:i},d.createElement(eF,{gap:"large",direction:"vertical",appearance:i},d.createElement("div",null,d.createElement(eV,{htmlFor:"email",appearance:i},null==m?void 0:m.email_label),d.createElement(eU,{id:"email",name:"email",type:"email",autoFocus:!0,placeholder:null==m?void 0:m.email_input_placeholder,onChange:e=>l(e.target.value),appearance:i})),d.createElement(eM,{type:"submit",color:"primary",loading:p,appearance:i},p?null==m?void 0:m.loading_button_label:null==m?void 0:m.button_label)),o&&d.createElement(eL,{href:"#auth-sign-in",onClick:t=>{t.preventDefault(),e(eC.SIGN_IN)},appearance:i},null==(s=null==n?void 0:n.sign_in)?void 0:s.link_text),h&&d.createElement(eW,{appearance:i},h),u&&d.createElement(eW,{color:"danger",appearance:i},u)))}function eY({supabaseClient:e,i18n:t,appearance:r}){let[n,i]=(0,d.useState)(""),[o,s]=(0,d.useState)(""),[a,l]=(0,d.useState)(""),[u,c]=(0,d.useState)(!1),h=async r=>{var i;r.preventDefault(),s(""),l(""),c(!0);let{error:o}=await e.auth.updateUser({password:n});o?s(o.message):l(null==(i=null==t?void 0:t.update_password)?void 0:i.confirmation_text),c(!1)},f=null==t?void 0:t.update_password;return d.createElement("form",{id:"auth-update-password",onSubmit:h},d.createElement(eF,{gap:"large",direction:"vertical",appearance:r},d.createElement(eF,{gap:"large",direction:"vertical",appearance:r},d.createElement("div",null,d.createElement(eV,{htmlFor:"password",appearance:r},null==f?void 0:f.password_label),d.createElement(eU,{id:"password",name:"password",placeholder:null==f?void 0:f.password_label,type:"password",autoFocus:!0,onChange:e=>i(e.target.value),appearance:r})),d.createElement(eM,{type:"submit",color:"primary",loading:u,appearance:r},u?null==f?void 0:f.loading_button_label:null==f?void 0:f.button_label)),a&&d.createElement(eW,{appearance:r},a),o&&d.createElement(eW,{color:"danger",appearance:r},o)))}let e0=(0,d.createContext)({user:null,session:null});function e1({supabaseClient:e,socialLayout:t="vertical",providers:r,view:n="sign_in",redirectTo:i,onlyThirdPartyProviders:o=!1,magicLink:s=!1,showLinks:a=!0,appearance:l,theme:u="default",localization:c={variables:{}}}){let h=ej(eR,c.variables??{}),[f,p]=(0,d.useState)(n),[g,v]=(0,d.useState)(""),[m,y]=(0,d.useState)(""),b="sign_in"===f||"sign_up"===f;(0,d.useEffect)(()=>{var e,t;ek({theme:ej((null==(e=null==l?void 0:l.theme)?void 0:e.default)??{},(null==(t=null==l?void 0:l.variables)?void 0:t.default)??{})})},[l]);let _=({children:n})=>{var s;return d.createElement("div",{className:"default"!==u?eS(ej(null==l?void 0:l.theme[u],(null==(s=null==l?void 0:l.variables)?void 0:s[u])??{})):""},b&&d.createElement(eK,{appearance:l,supabaseClient:e,providers:r,socialLayout:t,redirectTo:i,onlyThirdPartyProviders:o,i18n:h,view:f}
12),!o&&n)};switch((0,d.useEffect)(()=>{let{data:t}=e.auth.onAuthStateChange(e=>{"PASSWORD_RECOVERY"===e?p("update_password"):"USER_UPDATED"===e&&p("sign_in")});return p(n),()=>t.subscription.unsubscribe()},[n]),f){case eC.SIGN_IN:return d.createElement(_,null,d.createElement(eQ,{supabaseClient:e,setAuthView:p,defaultEmail:g,defaultPassword:m,setDefaultEmail:v,setDefaultPassword:y,redirectTo:i,magicLink:s,showLinks:a,i18n:h,appearance:l,authView:"sign_in"}));case eC.SIGN_UP:return d.createElement(_,null,d.createElement(eQ,{appearance:l,supabaseClient:e,authView:"sign_up",setAuthView:p,defaultEmail:g,defaultPassword:m,setDefaultEmail:v,setDefaultPassword:y,redirectTo:i,magicLink:s,showLinks:a,i18n:h}));case eC.FORGOTTEN_PASSWORD:return d.createElement(_,null,d.createElement(eX,{appearance:l,supabaseClient:e,setAuthView:p,redirectTo:i,showLinks:a,i18n:h}));case eC.MAGIC_LINK:return d.createElement(_,null,d.createElement(eZ,{appearance:l,supabaseClient:e,setAuthView:p,redirectTo:i,showLinks:a,i18n:h}));case eC.UPDATE_PASSWORD:return d.createElement(_,null,d.createElement(eY,{appearance:l,supabaseClient:e,i18n:h}));default:return null}}e1.ForgottenPassword=eX,e1.UpdatePassword=eY,e1.MagicLink=eZ,e1.UserContextProvider=e=>{let{supabaseClient:t}=e,[r,n]=(0,d.useState)(null),[i,o]=(0,d.useState)((null==r?void 0:r.user)??null);return(0,d.useEffect)(()=>{(async()=>{var e;let{data:r}=await t.auth.getSession();n(r.session),o((null==(e=r.session)?void 0:e.user)??null)})();let{data:e}=t.auth.onAuthStateChange(async(e,t)=>{n(t),o((null==t?void 0:t.user)??null)});return()=>{null==e||e.subscription.unsubscribe()}},[]),d.createElement(e0.Provider,{value:{session:r,user:i},...e})},e1.useUser=()=>{let e=(0,d.useContext)(e0);if(void 0===e)throw Error("useUser must be used within a UserContextProvider.");return e};var e2=r(53756),e4=r(11163),e3=r(99893),e6=r(58192),e5=r(88767),e8=r(55678);r(71399),r(73753);var e7=r(42029);e3.ZP.init("phc_mgfgM9UVXy1iMWcwHzMPort6SdllTKsl6Uhh5HjHJHS",{api_host:"".concat(window.location.protocol,"//").concat(window.location.host,"/ingest"),disable_session_recording:!1,advanced_disable_toolbar_metrics:!0,persistence:"localStorage",loaded:e=>{}});let e9=(0,O.Z)({zIndex:{tooltip:999999999}});var te=(0,e2.Jc)(e=>{let{Component:t,pageProps:r}=e,n=t.getLayout||(e=>e),u=(0,e4.useRouter)(),c=new e5.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1}}});(0,d.useEffect)(()=>{let e=()=>{var e;null===(e=e3.ZP)||void 0===e||e.capture("$pageview")};return u.events.on("routeChangeComplete",e),()=>{u.events.off("routeChangeComplete",e)}},[u.events]);let[h]=(0,d.useState)(()=>(0,C.createPagesBrowserClient)());return(0,d.useEffect)(()=>{let{data:e}=h.auth.onAuthStateChange((e,t)=>{var r,n,i;(null==t?void 0:null===(r=t.user)||void 0===r?void 0:r.id)?null===(n=e3.ZP)||void 0===n||n.identify(t.user.id,{email:t.user.email}):null===(i=e3.ZP)||void 0===i||i.reset()});return()=>{e.subscription.unsubscribe()}},[h]),(0,i.jsx)(e6.zf,{client:e3.ZP,children:(0,i.jsx)(S,{theme:e9,children:(0,i.jsx)(o.Z,{children:(0,i.jsx)(P.SessionContextProvider,{supabaseClient:h,initialSession:r.initialSession,children:(0,i.jsx)(e5.QueryClientProvider,{client:c,children:(0,i.jsx)(l.DY,{pages:{auth:e=>{let{view:t,redirectTo:r}=e;return(0,i.jsx)("div",{className:"w-96",children:(0,i.jsx)(e1,{view:t,redirectTo:r&&(0,s.dj)()+r,supabaseClient:h,providers:["google"],socialLayout:"horizontal",appearance:{theme:eO,variables:{default:{colors:{brand:"#40AAF5",brandAccent:"#65CBFF"}}}}})})}},children:(0,i.jsxs)(a.V,{supabaseClient:h,children:[n((0,i.jsx)(t,{...r})),(0,i.jsx)(e8.Ix,{position:"bottom-right"})]})})})})})})})})},71399:function(){},73753:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
12catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},25675:function(e,t,r){e.exports=r(32555)},11163:function(e,t,r){e.exports=r(96885)},99893:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||v(e,t)||function(){throw TypeError("Invalid attempt to de
12structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}r.d(t,{ZP:function(){return rF}});var b,_={DEBUG:!1,LIB_VERSION:"1.77.1"},w=Array.prototype,k=Object.prototype,x=k.toString,S=k.hasOwnProperty,E="undefined"!=typeof window?window:{},O=E.navigator||{userAgent:""},C=E.document||{},P=O.userAgent,T=["localhost","127.0.0.1"],I=w.forEach,j=w.indexOf,R={},A={log:function(){if(_.DEBUG&&!U(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{e.apply(window.console,r)}catch(t){$(r,function(t){e(t)})}}},error:function(){if(_.DEBUG&&!U(window.console)&&window.console){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=["PostHog error:"].concat(t),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,n)}catch(e){$(n,function(e){i(e)})}}},critical:function(){if(!U(window.console)&&window.console){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=["PostHog error:"].concat(t),i="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{i.apply(window.console,n)}catch(e){$(n,function(e){i(e)})}}}},L=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function $(e,t,r){if(Array.isArray(e)){if(I&&e.forEach===I)e.forEach(t,r);else if("length"in e&&e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===R)return}}}function M(e,t,r){if(null!=e){if(Array.isArray(e))return $(e,t,r);for(var n in e)if(S.call(e,n)&&t.call(r,e[n],n)===R)return}}var N=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return $(r,function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},F=Array.isArray||function(e){return"[object Array]"===x.call(e)},B=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}};function D(e,t){return -1!==e.indexOf(t)}var z=function(e){return e===Object(e)&&!F(e)},U=function(e){return void 0===e},H=function(e){return"[object String]"==x.call(e)},V=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},q=function(e){return function(){try{for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){A.critical("Implementation error. Please turn on debug and contact [email protected]."),A.critical(e)}}},W=function(e){var t={};return M(e,function(e,r){H(e)&&e.length>0&&(t[r]=e)}),t},Z=["$performance_raw"];function G(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
12+/=",a=0,l=0,u="",c=[];if(!e)return e;e=J(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,c[l++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i);while(a<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}var J=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},K=function(e,t){var r=RegExp("[\\?&]"+t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){A.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},Q=function(e,t){var r=e.match(RegExp(t+"=([^&]*)"));return r?r[1]:null},X=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t){if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(r){if(r=r||e(window.event)){var i,o=!0;B(a)&&(i=a(r));var s=n.call(t,r);return!1!==i&&!1!==s||(o=!1),o}}}}else A.error("No valid element provided to register_event")}}();function Y(e,t){var r=function(){var r=C.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(e){return t(void 0,e)},r.onerror=function(e){return t(e)};var n,i=C.querySelectorAll("body > script");i.length>0?null===(n=i[0].parentNode)||void 0===n||n.insertBefore(r,i[0]):C.body.appendChild(r)};C.body?r():C.addEventListener("DOMContentLoaded",r)}var ee={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),r={};return M(t,function(e){var t=K(C.URL,e);t.length&&(r[e]=t)}),r},searchEngine:function(){var e=C.referrer;return e?0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null:null},searchInfo:function(){var e=ee.searchEngine(),t="yahoo"!=e?"q":"p",r={};if(null!==e){r.$search_engine=e;var n=K(C.referrer,t);n.length&&(r.ph_keyword=n)}return r},browser:function(e,t,r){return t=t||"",r||D(e," OPR/")?D(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":D(e,"IEMobile")||D(e,"WPDesktop")?"Internet Explorer Mobile":D(e,"SamsungBrowser/")?"Samsung Internet":D(e,"Edge")||D(e,"Edg/")?"Microsoft Edge":D(e,"FBIOS")?"Facebook Mobile":D(e,"Chrome")?"Chrome":D(e,"CriOS")?"Chrome iOS":D(e,"UCWEB")||D(e,"UCBrowser")?"UC Browser":D(e,"FxiOS")?"Firefox iOS":D(t,"Apple")?D(e,"Mobile")?"Mobile Safari":"Safari":D(e,"Android")?"Android Mobile":D(e,"Konqueror")?"Konqueror":D(e,"Firefox")?"Firefox":D(e,"MSIE")||D(e,"Trident/")?"Internet Explorer":D(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[ee.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return O.language||O.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}
12if(/(iPhone|iPad|iPod)/.test(e)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var n=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"Android",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return"iPad"===t||"Android Tablet"===t?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return C.referrer||"$direct"},referringDomain:function(){if(!C.referrer)return"$direct";var e=C.createElement("a");return e.href=C.referrer,e.host},properties:function(){var e=ee.os(P);return N(W({$os:e.os_name,$os_version:e.os_version,$browser:ee.browser(P,O.vendor,E.opera),$device:ee.device(P),$device_type:ee.deviceType(P)}),{$current_url:null==E?void 0:E.location.href,$host:null==E?void 0:E.location.host,$pathname:null==E?void 0:E.location.pathname,$browser_version:ee.browserVersion(P,O.vendor,E.opera),$browser_language:ee.browserLanguage(),$screen_height:null==E?void 0:E.screen.height,$screen_width:null==E?void 0:E.screen.width,$viewport_height:null==E?void 0:E.innerHeight,$viewport_width:null==E?void 0:E.innerWidth,$lib:"web",$lib_version:_.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:V()/1e3})},people_properties:function(){var e=ee.os(P);return N(W({$os:e.os_name,$os_version:e.os_version,$browser:ee.browser(P,O.vendor,E.opera)}),{$browser_version:ee.browserVersion(P,O.vendor,E.opera)})}};function et(e){switch(o(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function er(e){var t="";return el(e)&&!eu(e)&&e.childNodes&&e.childNodes.length&&M(e.childNodes,function(e){eo(e)&&e.textContent&&(t+=L(e.textContent).split(/(\s+)/).filter(ec).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),L(t)}function en(e){return!!e&&1===e.nodeType}function ei(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function eo(e){return!!e&&3===e.nodeType}function es(e){return!!e&&11===e.nodeType}var ea=["a","button","form","input","select","textarea","label"];function el(e){for(var t=e;t.parentNode&&!ei(t,"body");t=t.parentNode){var r=et(t).split(" ");if(D(r,"ph-sensitive")||D(r,"ph-no-capture"))return!1}if(D(et(e).split(" "),"ph-include"))return!0;var n=e.type||"";if("string"==typeof n)switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!("string"==typeof i&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function eu(e){return!!(ei(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ei(e,"select")||ei(e,"textarea")||"true"===e.getAttribute("contenteditable"))}function ec(e){return!(null===e||U(e)||"string"==typeof e&&(e=L(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function ed(e){var t=er(e);return ec(t="".concat(t," ").concat(function e(t){var r="";return t&&t.childNodes&&t.childNodes.length&&M(t.childNodes,function(t){var n;if(t&&"span"===(null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase()))try{var i=er(t);r="".concat(r," ").concat(i).trim(),t.childNodes&&t.childNodes.length&&(r="".concat(r," ").concat(e(t)).trim())}catch(e){console.error(e)}}),r}(e)).trim())?t:""}var eh=function(){function e(t){s(this,e),this.clicks=[],this.enabled=t}return l(e,[{key:"isRageClick",value:function(e,t,r){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<30&&r-n.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:r}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}]),e}(),ef="$people_distinct_id",ep="__alias",eg="__timers",ev="$autocapture_disabled_server_side",em="$session_recording_enabled_server_side",ey="$console_log_recording_enabled_server_side",eb="$session_recording_recorder_version_server_side",e_="$sesid",ew="$enabled_feature_flags",ek="$early_access_features",ex="$stored_person_properties",eS="$stored_group_properties",eE="$surveys",eO="$flag_call_reported",eC="$user_state",eP="$posthog_quota_limited",eT=[ef,ep,"__cmpns",eg,em,e_,ew,eC,eP,ek,eS,ex,eE,eO],eI={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(e){var t,r=null===this._isDisabledServerSide?!(null===(t=e.persistence)||void 0===t||!t.props[ev]):this._isDisabledServerSide,n=!!e.get_config("autocapture");this._isAutocaptureEnabled=n&&!r},_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!en(t));return t},_getAugmentPropertiesFromElement:function(e){if(!el(e))return{};var t={};return M(e.attributes,function(e){if(0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&ec(n)&&(t[r]=n)}}),t},_getPropertiesFromElement:function(e,t,r){var n=e.tagName.toLowerCase(),i={tag_name:n};ea.indexOf(n)>-1&&!r&&("a"===n.toLowerCase()||"button"===n.toLowerCase()?i.$el_text=ed(e):i.$el_text=er(e));var o=et(e);o.length>0&&(i.classes=o.split(" ").filter(function(e){return""!==e})),M(e.attributes,function(r){var n;eu(e)&&-1===["name","id","class"].indexOf(r.name)||!t&&ec(r.value)&&("string"!=typeof(n=r.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))&&(i["attr__"+r.name]=r.value)});for(var s=1,a=1,l=e;l=this._previousElementSibling(l);)s++,l.tagName===e.tagName&&a++;return i.nth_child=s,i.nth_of_type=a,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return M(document.querySelectorAll(e.css_selector),function(e){var r;["input","select"].indexOf(e.tagName.toLowerCase())>-1?r=e.value:e.textContent&&(r=e.textContent),ec(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,r={};return M(this._customProperties,function(n){M(n.event_selectors,function(i){M(document.querySelectorAll(i),function(i){D(e,i)&&el(i)&&(r[n.name]=t._extractCustomPropertyValue(n))})})}),r},_getEventTarget:function(e){var t;return void 0===e.target?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null},_captureEvent:function(e,t){var r,n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$autocapture",o=this._getEventTarget(e);if(eo(o)&&(o=o.parentNode||null),"$autocapture"===i&&"click"===e.type&&e instanceof MouseEvent&&null!==(r=this.rageclicks)&&void 0!==r&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,t,"$rageclick"),o&&function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!e||ei(e,"html")||!en(e))return!1;if(null!=r&&r.url_allowlist){var n=window.location.href,i=r.url_allowlist;if(i&&!i.some(function(e){return n.match(e)}))return!1}if(null!=r&&r.dom_event_allowlist){var o=r.dom_event_allowlist;if(o&&!o.some(function(e){return t.type===e}))return!1}if(null!=r&&r.element_allowlist){var s=r.element_allowlist;if(s&&!s.some(function(t){return e.tagName.toLowerCase()===t}))return!1}if(null!=r&&r.css_selector_allowlist){var a=r.css_selector_allowlist;if(a&&!a.some(function(t){return e.matches(t)}))return!1}for(var l=!1,u=[e],c=!0,d=e;d.parentNode&&!ei(d,"body");)if(es(d.parentNode))u.push(d.parentNode.host),d=d.parentNode.host;else{if(!(c=d.parentNode||!1))break;if(ea.indexOf(c.tagName.toLowerCase())>-1)l=!0;else{var h=window.getComputedStyle(c);h&&"pointer"===h.getPropertyValue("cursor")&&(l=!0)}u.push(c),d=c}var f=window.getComputedStyle(e);
12if(f&&"pointer"===f.getPropertyValue("cursor")&&"click"===t.type)return!0;var p=e.tagName.toLowerCase();switch(p){case"html":return!1;case"form":return"submit"===t.type;case"input":case"select":case"textarea":return"change"===t.type||"click"===t.type;default:return l?"click"===t.type:"click"===t.type&&(ea.indexOf(p)>-1||"true"===e.getAttribute("contenteditable"))}}(o,e,this.config)){for(var s=[o],a=o;a.parentNode&&!ei(a,"body");)es(a.parentNode)?(s.push(a.parentNode.host),a=a.parentNode.host):(s.push(a.parentNode),a=a.parentNode);var l,u=[],c={},d=!1;if(M(s,function(e){var r=el(e);"a"===e.tagName.toLowerCase()&&(l=e.getAttribute("href"),l=r&&ec(l)&&l),D(et(e).split(" "),"ph-no-capture")&&(d=!0),u.push(n._getPropertiesFromElement(e,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text"))),N(c,n._getAugmentPropertiesFromElement(e))}),t.get_config("mask_all_text")||("a"===o.tagName.toLowerCase()||"button"===o.tagName.toLowerCase()?u[0].$el_text=ed(o):u[0].$el_text=er(o)),l&&(u[0].attr__href=l),d)return!1;var h=N(this._getDefaultProperties(e.type),{$elements:u},this._getCustomProperties(s),c);return t.capture(i,h),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,r=function(r){r=r||window.event,t._captureEvent(r,e)};X(document,"submit",r,!1,!0),X(document,"change",r,!1,!0),X(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;"boolean"!=typeof e.__autocapture&&(this.config=e.__autocapture),null!==(t=this.config)&&void 0!==t&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(e){return new RegExp(e)})),this.rageclicks=new eh(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var r=t.get_config("token");this._initializedTokens.indexOf(r)>-1?A.log('autocapture already initialized for token "'+r+'"'):(t.persistence&&t.persistence.register(u({},ev,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(r),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,r){if(!e)return!0;t=U(t)?10:t,r=U(r)?10:r;for(var n=0,i=0;i<e.length;i++)n+=e.charCodeAt(i);return n%t<r},isBrowserSupported:function(){return B(document.querySelectorAll)}};!function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=e[t].bind(e))}(eI),function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=q(e[t]))}(eI);var ej,eR="$active_feature_flags",eA="$override_feature_flags",eL="$feature_flag_payloads",e$=function(e){var t,r={},n=y(function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}(e||{}));try{for(n.s();!(t=n.n()).done;){var i=p(t.value,2),o=i[0],s=i[1];s&&(r[o]=s)}}catch(e){n.e(e)}finally{n.f()}return r},eM=function(){function e(t){s(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return l(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(ew),t=this.instance.get_property(eA);if(!t)return e||{};for(var r=N({},e),n=Object.keys(t),i=0;i<n.length;i++)!1===t[n[i]]?delete r[n[i]]:r[n[i]]=t[n[i]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this._override_warning=!0),r}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(eL)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var t=this.instance.get_config("token"),r=this.instance.get_property(ex),n=this.instance.get_property(eS),i=G(JSON.stringify({token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:r,group_properties:n,disable_flags:this.instance.get_config("advanced_disable_feature_flags")||void 0}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:i},{method:"POST"},this.instance._prepare_callback(function(t){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(t),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[e],n="".concat(r),i=this.instance.get_property(eO)||{};return!t.send_event&&"send_event"in t||e in i&&i[e].includes(n)||(Array.isArray(i[e])?i[e].push(n):i[e]=[n],this.instance.persistence.register(u({},eO,i)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);console.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(t){return t!==e})}},{key:"receivedFeatureFlags",value:function(e){this.instance.decideEndpointWasHit=!0;var t=this.getFlagVariants(),r=this.getFlagPayloads();(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.featureFlags,s=e.featureFlagPayloads;if(o){if(Array.isArray(o)){var a,l={};if(o)for(var c=0;c<o.length;c++)l[o[c]]=!0;t&&t.register((u(a={},eR,o),u(a,ew,l),a))}else{var d,h=o,f=s;e.errorsWhileComputingFlags&&(h=i(i({},r),h),f=i(i({},n),f)),t&&t.register((u(d={},eR,Object.keys(e$(h))),u(d,ew,h||{}),u(d,eL,f||{}),d))}}})(e,this.instance.persistence,t,r),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(e){if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(eA);else if(Array.isArray(e)){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;this.instance.persistence.register(u({},eA,t))}else this.instance.persistence.register(u({},eA,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var r=this._prepareFeatureFlagsForCallbacks();e(r.flags,r.flagVariants)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var r,n=u({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:n}),this.setPersonPropertiesForFlags(n,!1);var o=i(i({},this.getFlagVariants()),{},u({},e,t));this.instance.persistence.register((u(r={},eR,Object.keys(e$(o))),u(r,ew,o),r)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.get_property(ek);if(n&&!r)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(r){var n=r.earlyAccessFeatures;return t.instance.persistence.register(u({},ek,n)),e(n)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(function(e){return t[e]}),flagVariants:Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,r){return e[r]=t[r],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),t=e.flags,r=e.flagVariants;
12this.featureFlagEventHandlers.forEach(function(e){return e(t,r)})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.instance.get_property(ex)||{};this.instance.register(u({},ex,i(i({},r),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(ex)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.instance.get_property(eS)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(function(t){r[t]=i(i({},r[t]),e[t]),delete e[t]}),this.instance.register(u({},eS,i(i({},r),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(eS)||{};this.instance.register(u({},eS,i(i({},t),{},u({},e,{}))))}else this.instance.unregister(eS)}}]),e}(),eN=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,eF={is_supported:function(){return!0},error:function(e){A.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",r=document.cookie.split(";").filter(function(e){return e.length}),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null},parse:function(e){var t;try{t=JSON.parse(eF.get(e))||{}}catch(e){}return t},set:function(e,t,r,n,i){try{var o="",s="",a="";if(n){var l=document.location.hostname.match(eN),u=l?l[0]:"";o=u?"; domain=."+u:""}if(r){var c=new Date;c.setTime(c.getTime()+24*r*36e5),s="; expires="+c.toUTCString()}i&&(a="; secure");var d=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+o+a;return document.cookie=d,d}catch(e){return}},remove:function(e,t){try{eF.set(e,"",-1,t)}catch(e){return}}},eB=null,eD={is_supported:function(){if(null!==eB)return eB;var e=!0;if("undefined"!=typeof window)try{var t="__mplssupport__";eD.set(t,"xyz"),'"xyz"'!==eD.get(t)&&(e=!1),eD.remove(t)}catch(t){e=!1}else e=!1;return e||A.error("localStorage unsupported; falling back to cookie store"),eB=e,e},error:function(e){A.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){eD.error(e)}return null},parse:function(e){try{return JSON.parse(eD.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){eD.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){eD.error(e)}}},ez=["distinct_id",e_],eU=i(i({},eD),{},{parse:function(e){try{var t={};try{t=eF.parse(e)||{}}catch(e){}var r=N(t,JSON.parse(eD.get(e)||"{}"));return eD.set(e,r),r}catch(e){}return null},set:function(e,t,r,n,i){try{eD.set(e,t);var o={};ez.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&eF.set(e,o,r,n,i)}catch(e){eD.error(e)}},remove:function(e,t){try{window.localStorage.removeItem(e),eF.remove(e,t)}catch(e){eD.error(e)}}}),eH={},eV={is_supported:function(){return!0},error:function(e){A.error("memoryStorage error: "+e)},get:function(e){return eH[e]||null},parse:function(e){return eH[e]||null},set:function(e,t){eH[e]=t},remove:function(e){delete eH[e]}},eq=null,eW={is_supported:function(){if(null!==eq)return eq;if(eq=!0,"undefined"!=typeof window)try{var e="__support__";eW.set(e,"xyz"),'"xyz"'!==eW.get(e)&&(eq=!1),eW.remove(e)}catch(e){eq=!1}else eq=!1;return eq},error:function(e){_.DEBUG&&A.error("sessionStorage error: ",e)},get:function(e){try{return window.sessionStorage.getItem(e)}catch(e){eW.error(e)}return null},parse:function(e){try{return JSON.parse(eW.get(e))||null}catch(e){}return null},set:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){eW.error(e)}},remove:function(e){try{window.sessionStorage.removeItem(e)}catch(e){eW.error(e)}}},eZ=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],eG=function(){function e(t){s(this,e);var r="";t.token&&(r=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=t.custom_campaign_params||[],t.persistence_name?this.name="ph_"+t.persistence_name:this.name="ph_"+r+"_posthog",-1===eZ.indexOf(t.persistence.toLowerCase())&&(A.critical("Unknown persistence type "+t.persistence+"; falling back to cookie"),t.persistence="cookie");var n=t.persistence.toLowerCase();"localstorage"===n&&eD.is_supported()?this.storage=eD:"localstorage+cookie"===n&&eU.is_supported()?this.storage=eU:"sessionstorage"===n&&eW.is_supported()?this.storage=eW:this.storage="memory"===n?eV:eF,this.user_state="anonymous",this.load(),this.update_config(t),this.save()}return l(e,[{key:"properties",value:function(){var e={};return M(this.props,function(t,r){if(r===ew&&"object"===o(t))for(var n,i=Object.keys(t),s=0;s<i.length;s++)e["$feature/".concat(i[s])]=t[i[s]];else n=!1,(null===eT?n:j&&eT.indexOf===j?-1!=eT.indexOf(r):(M(eT,function(e){if(n||(n=e===r))return R}),n))||(e[r]=t)}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=N({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}
12},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,r){var n=this;if(z(e)){void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r;var i=!1;if(M(e,function(e,r){n.props.hasOwnProperty(r)&&n.props[r]!==t||(n.props[r]=e,i=!0)}),i)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var r=this;if(z(e)){this.expire_days=void 0===t?this.default_expiry:t;var n=!1;if(M(e,function(t,i){e.hasOwnProperty(i)&&r.props[i]!==t&&(r.props[i]=t,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(ee.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(ee.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||ee.referrer(),$referring_domain:this.props.$referring_domain||ee.referringDomain()})}},{key:"get_referrer_info",value:function(){return W({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return M(this.props,function(t,r){r in e||(e[r]=t)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var r=this.props[eg]||{};r[e]=t,this.props[eg]=r,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[eg]||{})[e];return U(t)||(delete this.props[eg][e],this.save()),t}},{key:"get_user_state",value:function(){return this.props[eC]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[eC]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[eP]||{}}},{key:"set_quota_limits",value:function(e){this.props[eP]=e,this.save()}}]),e}(),eJ=l(function e(t){var r,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),u(this,"bucketSize",100),u(this,"refillRate",10),u(this,"mutationBuckets",{}),u(this,"loggedTracker",{}),u(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(e){i.mutationBuckets[e]=i.mutationBuckets[e]+i.refillRate,i.mutationBuckets[e]>=i.bucketSize&&delete i.mutationBuckets[e]})}),u(this,"getNodeOrRelevantParent",function(e){var t=i.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var r=t.closest("svg");if(r)return[i.rrweb.mirror.getId(r),r]}return[e,t]}),u(this,"numberOfChanges",function(e){var t,r,n,i,o,s,a,l;return(null!==(t=null===(r=e.removes)||void 0===r?void 0:r.length)&&void 0!==t?t:0)+(null!==(n=null===(i=e.attributes)||void 0===i?void 0:i.length)&&void 0!==n?n:0)+(null!==(o=null===(s=e.texts)||void 0===s?void 0:s.length)&&void 0!==o?o:0)+(null!==(a=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==a?a:0)}),u(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,r=i.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,r,n,o=p(i.getNodeOrRelevantParent(e.id),2),s=o[0],a=o[1];return 0!==i.mutationBuckets[s]&&(i.mutationBuckets[s]=null!==(t=i.mutationBuckets[s])&&void 0!==t?t:i.bucketSize,i.mutationBuckets[s]=Math.max(i.mutationBuckets[s]-1,0),0===i.mutationBuckets[s]&&(i.loggedTracker[s]||(i.loggedTracker[s]=!0,null===(r=(n=i.options).onBlockedNode)||void 0===r||r.call(n,s,a))),e)}));var n=i.numberOfChanges(t);return 0!==n||r===n?e:void 0}),this.rrweb=t,this.options=o,this.refillRate=null!==(r=this.options.refillRate)&&void 0!==r?r:this.refillRate,this.bucketSize=null!==(n=this.options.bucketSize)&&void 0!==n?n:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),eK="sessionRecording";(tO=ej||(ej={}))[tO.Mutation=0]="Mutation",tO[tO.MouseMove=1]="MouseMove",tO[tO.MouseInteraction=2]="MouseInteraction",tO[tO.Scroll=3]="Scroll",tO[tO.ViewportResize=4]="ViewportResize",tO[tO.Input=5]="Input",tO[tO.TouchMove=6]="TouchMove",tO[tO.MediaInteraction=7]="MediaInteraction",tO[tO.StyleSheetRule=8]="StyleSheetRule",tO[tO.CanvasMutation=9]="CanvasMutation",tO[tO.Font=10]="Font",tO[tO.Log=11]="Log",tO[tO.Drag=12]="Drag",tO[tO.StyleDeclaration=13]="StyleDeclaration",tO[tO.Selection=14]="Selection",tO[tO.AdoptedStyleSheet=15]="AdoptedStyleSheet";var eQ=[ej.MouseMove,ej.MouseInteraction,ej.Scroll,ej.ViewportResize,ej.Input,ej.TouchMove,ej.MediaInteraction,ej.Drag],eX=function(){function e(t){var r=this;s(this,e),u(this,"lastActivityTimestamp",Date.now()),u(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint="/s/",this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){r._flushBuffer()})}return l(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(em),t=!this.instance.get_config("disable_session_recording");return e&&t}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(ey),t=this.instance.get_config("enable_recording_console_log");return null!=t?t:e}},{key:"getRecordingVersion",value:function(){var e,t=this.instance.get_property(eb);return(null===(e=this.instance.get_config("session_recording"))||void 0===e?void 0:e.recorderVersion)||t||"v1"}},{key:"afterDecideResponse",value:function(e){var t,r,n,i,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((u(o={},em,!!e.sessionRecording),u(o,ey,null===(n=e.sessionRecording)||void 0===n?void 0:n.consoleLogRecordingEnabled),u(o,eb,null===(i=e.sessionRecording)||void 0===i?void 0:i.recorderVersion),o)),null!==(t=e.sessionRecording)&&void 0!==t&&t.endpoint&&(this.endpoint=null===(s=e.sessionRecording)||void 0===s?void 0:s.endpoint),null!==(r=e.sessionRecording)&&void 0!==r&&r.recorderVersion&&(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(e)]}},timestamp:V()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;
12this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(t){return e._captureSnapshotBuffered(t)})),this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(void 0!==Object.assign&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var t="v2"===this.getRecordingVersion()?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?Y(this.instance.get_config("api_host")+"/static/".concat(t,"?v=").concat(_.LIB_VERSION),function(r){if(r)return A.error("Could not load ".concat(t),r);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==eQ.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this._isInteractiveEvent(e);if(t||this.isIdle||e.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),t&&(this.lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),n=r.windowId,i=r.sessionId;-1!==[2,4].indexOf(e.type)||this.windowId===n&&this.sessionId===i||this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=i}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return null===(e=this.rrwebRecord)||void 0===e||e.takeFullSnapshot(),!0}catch(e){return A.error("Error taking full snapshot.",e),!1}}},{key:"_onScriptLoaded",value:function(){var e,t=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var n=this.instance.get_config("session_recording"),o=0,s=Object.entries(n||{});o<s.length;o++){var a=p(s[o],2),l=a[0],u=a[1];l in r&&(r[l]=u)}this.rrwebRecord?(this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new eJ(this.rrwebRecord,{onBlockedNode:function(e,r){var n="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");A.log(n,{node:r}),t.log("[PostHog Recorder] "+n,"warn")}}),this.stopRrweb=this.rrwebRecord(i({emit:function(e){t.onRRwebEmit(e)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(e){try{var r;"$pageview"===e&&(null===(r=t.rrwebRecord)||void 0===r||r.addCustomEvent("$pageview",{href:window.location.href}))}catch(e){A.error("Could not add $pageview to rrweb session",e)}}),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):A.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e&&"object"===o(e)){var t=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(t){var r=function(e){var t=JSON.stringify(e);if(t.length>5e6){var r,n=y(t.matchAll(/data:([\w/\-.]+);(\w+),([^)"]*)/gim));try{for(n.s();!(r=n.n()).done;){var i=r.value;t="image/"===i[1].toLocaleLowerCase().slice(0,6)?t.replace(i[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):t.replace(i[0],"")}}catch(e){n.e(e)}finally{n.f()}}return{event:JSON.parse(t),size:t.length}}(function(e){if(e&&"object"===o(e)&&6===e.type&&"object"===o(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var t=[],r=0;r<e.data.payload.payload.length;r++)e.data.payload.payload[r]&&e.data.payload.payload[r].length>2e3?t.push(e.data.payload.payload[r].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[r]);return e.data.payload.payload=t,e}return e}(t)),n=r.event,i=r.size;if(this._updateWindowAndSessionIds(n),!this.isIdle){var s={$snapshot_bytes:i,$snapshot_data:n,$session_id:this.sessionId,$window_id:this.windowId};this.emit?this._captureSnapshotBuffered(s):this.snapshots.push(s)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&0!==this.buffer.data.length&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(e){var t,r=this,n=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+n>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$
12snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:eK,_metrics:{rrweb_full_snapshot:2===e.$snapshot_data.type}})}}]),e}(),eY={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},e0=["first-input","navigation","paint","resource"],e1=["/s/","/e/"],e2=function(){function e(t){s(this,e),u(this,"_forceAllowLocalhost",!1),this.instance=t}return l(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e,t,r=this;if(!this.observer){if(void 0!==(null===(e=window)||void 0===e||null===(t=e.PerformanceObserver)||void 0===t?void 0:t.supportedEntryTypes)){if(!T.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(e){e.getEntries().forEach(function(e){r._capturePerformanceEvent(e)})}),PerformanceObserver.supportedEntryTypes.filter(function(e){return e0.includes(e)}).forEach(function(e){var t;null===(t=r.observer)||void 0===t||t.observe({type:e,buffered:!0})})}catch(e){console.error("PostHog failed to start performance observer",e),this.stopObserving()}else A.log("PostHog Peformance observer not started because we are on localhost.")}else A.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,t;return null!==(e=null!==(t=this.instance.get_config("capture_performance"))&&void 0!==t?t:this.remoteEnabled)&&void 0!==e&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(0===e.name.indexOf(this.instance.get_config("api_host"))){var t=e.name.replace(this.instance.get_config("api_host"),"");if(e1.find(function(e){return 0===t.indexOf(e)}))return}var r={url:e.name},n=this.instance.get_config("session_recording");if(n.maskNetworkRequestFn&&(r=n.maskNetworkRequestFn(r)),r){var i=e.toJSON();i.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var a in o[eY.timeOrigin]=s,o[eY.timestamp]=Math.floor(s+e.startTime),eY)void 0!==i[a]&&(o[eY[a]]=i[a]);if(this.capturePerformanceEvent(o),e4(e)){var l,c=y(e.serverTiming||[]);try{for(c.s();!(l=c.n()).done;){var d,h=l.value;this.capturePerformanceEvent((u(d={},eY.timeOrigin,s),u(d,eY.timestamp,Math.floor(s+e.startTime)),u(d,eY.name,h.name),u(d,eY.duration,h.duration),u(d,eY.entryType,"serverTiming"),d))}}catch(e){c.e(e)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var t,r=e[eY.timestamp];null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:r})}}]),e}(),e4=function(e){return"navigation"===e.entryType||"resource"===e.entryType},e3=function(){function e(t){s(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return l(e,[{key:"call",value:function(){var e=this,t=G(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(ex),group_properties:this.instance.get_property(eS),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:t,verbose:!0},{method:"POST"},function(t){return e.parseDecideResponse(t)})}},{key:"parseDecideResponse",value:function(e){var t,r,n,i=this;if(0!==(null==e?void 0:e.status)){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){i.parseDecideResponse(e)},500);if(this.instance.toolbar.afterDecideResponse(e),null===(t=this.instance.sessionRecording)||void 0===t||t.afterDecideResponse(e),eI.afterDecideResponse(e,this.instance),null===(r=this.instance.webPerformance)||void 0===r||r.afterDecideResponse(e),null===(n=this.instance.exceptionAutocapture)||void 0===n||n.afterDecideResponse(e),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},a=y(e.supportedCompression);try{for(a.s();!(o=a.n()).done;)s[o.value]=!0}catch(e){a.e(e)}finally{a.f()}this.instance.compression=s}if(e.siteApps){if(this.instance.get_config("opt_in_site_apps")){var l,u=this.instance.get_config("api_host"),c=y(e.siteApps);try{for(c.s();!(l=c.n()).done;)(function(){var e=l.value,t=e.id,r=e.url,n=[u,"/"===u[u.length-1]&&"/"===r[0]?r.substring(1):r].join("");window["__$$ph_site_app_".concat(t)]=i.instance,Y(n,function(e){e&&console.error("Error while initializing PostHog app with config id ".concat(t),e)})})()}catch(e){c.e(e)}finally{c.f()}}else e.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),e6=["https://app.posthog.com","https://eu.posthog.com"],e5=["source"],e8=function(){function e(t){s(this,e),this.instance=t}return l(e,[{key:"afterDecideResponse",value:function(e){var t=e.toolbarParam
12s||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&t.toolbarVersion&&0===t.toolbarVersion.indexOf("toolbar")&&this.loadToolbar(i({},t))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.history;try{if(!t){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch(e){return!1}t=window.localStorage}var n,i=Q(e.hash,"__posthog")||Q(e.hash,"state"),o=i?JSON.parse(decodeURIComponent(i)):null;return o&&"ph_authorize"===o.action?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:r?r.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.get_config("token")!==n.token)&&(this.loadToolbar(n),!0)}catch(e){return!1}}},{key:"loadToolbar",value:function(e){var t=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),n=3e4*Math.floor(Date.now()/3e4),o="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(n),s=!e6.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=i(i({token:this.instance.get_config("token")},e),{},{apiURL:r},s?{instrument:!1}:{});a.source;var l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(a,e5);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(l)),Y(o,function(e){e?A.error("Failed to load toolbar",e):(window.ph_load_toolbar||window.ph_load_editor)(a,t.instance)}),X(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,t.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.history;return this.maybeLoadToolbar(e,t,r)}}]),e}();function e7(e,t){ts(!0,e,t)}function e9(e,t){ts(!1,e,t)}function te(e,t){return"1"===to(e,t)}function tt(e,t){return!!function(e){if(e&&e.respectDnt){var t=e&&e.window||E,r=t.navigator||{},n=!1;return M([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){D([!0,1,"1","yes"],e)&&(n=!0)}),n}return!1}(t)||"0"===to(e,t)}function tr(e,t){tn(t=t||{}).remove(ti(e,t),!!t.crossSubdomainCookie)}function tn(e){return"localStorage"===(e=e||{}).persistenceType?eD:"localStorage+cookie"===e.persistenceType?eU:eF}function ti(e,t){return((t=t||{}).persistencePrefix||"__ph_opt_in_out_")+e}function to(e,t){return tn(t).get(ti(e,t))}function ts(e,t,r){var n;H(t)&&t.length?(tn(r=r||{}).set(ti(t,r),e?1:0,(n=r.cookieExpiration,"[object Number]"==x.call(n))?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&e&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var ta=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;s(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return l(e,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return(new Date).getTime()}}]),e}(),tl=function(e){c(r,ta);var t=f(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;return s(this,r),(n=t.call(this,i)).handlePollRequest=e,n}return l(r,[{key:"enqueue",value:function(e,t,r){this._event_queue.push({url:e,data:t,options:r}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(e._event_queue.length>0){var t=e.formatQueue();for(var r in t)(function(r){var n=t[r],i=n.url,o=n.data,s=n.options;M(o,function(t,r){o[r].offset=Math.abs(o[r].timestamp-e.getTime()),delete o[r].timestamp}),e.handlePollRequest(i,o,s)})(r);e._event_queue.length=0,e._empty_queue_count=0}else e._empty_queue_count++;e._empty_queue_count>4&&(e.isPolling=!1,e._empty_queue_count=0),e.isPolling&&e.poll()},this._pollInterval)}},{key:"unload",value:function(){var e=this;clearTimeout(this._poller);var t=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var r=Object.values(t);[].concat(g(r.filter(function(e){return 0===e.url.indexOf("/e")})),g(r.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){var r=t.url,n=t.data,o=t.options;
12e.handlePollRequest(r,n,i(i({},o),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var e={};return M(this._event_queue,function(t){var r=t.url,n=t.data,i=t.options,o=(i?i._batchKey:null)||r;void 0===e[o]&&(e[o]={data:[],url:r,options:i}),i&&e[o].options&&e[o].options._metrics&&!e[o].options._metrics.rrweb_full_snapshot&&(e[o].options._metrics.rrweb_full_snapshot=i._metrics.rrweb_full_snapshot),e[o].data.push(n)}),e}}]),r}(),tu=Uint8Array,tc=Uint16Array,td=Uint32Array,th=new tu([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tf=new tu([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tp=new tu([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tg=function(e,t){for(var r=new tc(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new td(r[30]);for(n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},tv=tg(th,2),tm=tv[0],ty=tv[1];tm[28]=258,ty[258]=28;for(var tb=tg(tf,0)[1],t_=new tc(32768),tw=0;tw<32768;++tw){var tk=(43690&tw)>>>1|(21845&tw)<<1;tk=(61680&(tk=(52428&tk)>>>2|(13107&tk)<<2))>>>4|(3855&tk)<<4,t_[tw]=((65280&tk)>>>8|(255&tk)<<8)>>>1}var tx=function(e,t,r){for(var n=e.length,i=0,o=new tc(t);i<n;++i)++o[e[i]-1];var s,a=new tc(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(r){s=new tc(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=a[e[i]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)s[t_[d]>>>l]=u}else for(s=new tc(n),i=0;i<n;++i)s[i]=t_[a[e[i]-1]++]>>>15-e[i];return s},tS=new tu(288);for(tw=0;tw<144;++tw)tS[tw]=8;for(tw=144;tw<256;++tw)tS[tw]=9;for(tw=256;tw<280;++tw)tS[tw]=7;for(tw=280;tw<288;++tw)tS[tw]=8;var tE=new tu(32);for(tw=0;tw<32;++tw)tE[tw]=5;var tO,tC,tP=tx(tS,9,0),tT=tx(tE,5,0),tI=function(e){return(e/8>>0)+(7&e&&1)},tj=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof tc?tc:e instanceof td?td:tu)(r-t);return n.set(e.subarray(t,r)),n},tR=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},tA=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},tL=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new tu(0),0];if(1==i){var s=new tu(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var h=o[0].s;for(n=1;n<i;++n)o[n].s>h&&(h=o[n].s);var f=new tc(h+1),p=t$(r[c-1],f,0);if(p>t){n=0;var g=0,v=p-t,m=1<<v;for(o.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});n<i;++n){var y=o[n].s;if(!(f[y]>t))break;g+=m-(1<<p-f[y]),f[y]=t}for(g>>>=v;g>0;){var b=o[n].s;f[b]<t?g-=1<<t-f[b]++-1:++n}for(;n>=0&&g;--n){var _=o[n].s;f[_]==t&&(--f[_],++g)}p=t}return[new tu(f),p]},t$=function e(t,r,n){return -1==t.s?Math.max(e(t.l,r,n+1),e(t.r,r,n+1)):r[t.s]=n},tM=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new tc(++t),n=0,i=e[0],o=1,s=function(e){r[n++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},tN=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},tF=function(e,t,r){var n=r.length,i=tI(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<n;++o)e[i+o+4]=r[o];return 8*(i+4+n)},tB=function(e,t,r,n,i,o,s,a,l,u,c){tR(t,c++,r),++i[256];for(var d=tL(i,15),h=d[0],f=d[1],p=tL(o,15),g=p[0],v=p[1],m=tM(h),y=m[0],b=m[1],_=tM(g),w=_[0],k=_[1],x=new tc(19),S=0;S<y.length;++S)x[31&y[S]]++;for(S=0;S<w.length;++S)x[31&w[S]]++;for(var E=tL(x,7),O=E[0],C=E[1],P=19;P>4&&!O[tp[P-1]];--P);var T,I,j,R,A=u+5<<3,L=tN(i,tS)+tN(o,tE)+s,$=tN(i,h)+tN(o,g)+s+14+3*P+tN(x,O)+(2*x[16]+3*x[17]+7*x[18]);if(A<=L&&A<=$)return tF(t,c,e.subarray(l,l+u));if(tR(t,c,1+($<L)),c+=2,$<L){T=tx(h,f,0),I=h,j=tx(g,v,0),R=g;var M=tx(O,C,0);for(tR(t,c,b-257),tR(t,c+5,k-1),tR(t,c+10,P-4),c+=14,S=0;S<P;++S)tR(t,c+3*S,O[tp[S]]);c+=3*P;for(var N=[y,w],F=0;F<2;
12++F){var B=N[F];for(S=0;S<B.length;++S){var D=31&B[S];tR(t,c,M[D]),c+=O[D],D>15&&(tR(t,c,B[S]>>>5&127),c+=B[S]>>>12)}}}else T=tP,I=tS,j=tT,R=tE;for(S=0;S<a;++S)if(n[S]>255){tA(t,c,T[(D=n[S]>>>18&31)+257]),c+=I[D+257],D>7&&(tR(t,c,n[S]>>>23&31),c+=th[D]);var z=31&n[S];tA(t,c,j[z]),c+=R[z],z>3&&(tA(t,c,n[S]>>>5&8191),c+=tf[z])}else tA(t,c,T[n[S]]),c+=I[n[S]];return tA(t,c,T[256]),c+I[256]},tD=new td([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tz=new tu(0),tU=function(){for(var e=new td(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),tH=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=tU[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}},tV=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},tq=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&tV(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}};(t0=tC||(tC={})).GZipJS="gzip-js",t0.Base64="base64";var tW=function(e,t,r){var n=t||{};n.ip=r.ip?1:0,n._=(new Date).getTime().toString(),n.ver=_.LIB_VERSION;var i=e.split("?");if(i.length>1){var o,s=y(i[1].split("&"));try{for(s.s();!(o=s.n()).done;){var a=o.value.split("=")[0];n[a]&&delete n[a]}}catch(e){s.e(e)}finally{s.f()}}var l=e.indexOf("?")>-1?"&":"?";return e+l+function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",i=[];return M(e,function(e,n){t=encodeURIComponent(e.toString()),r=encodeURIComponent(n),i[i.length]=r+"="+t}),i.join(n)}(n)},tZ=function e(t,r){if(r.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var n,i=e(t,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}return"POST"!==r.method?null:(n=Array.isArray(t)||"[object Uint8Array]"===Object.prototype.toString.call(t)?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(n+="&compression="+t.compression),n)},tG=function(e){var t=e.url,r=e.data,n=e.headers,i=e.options,o=e.callback,s=e.retriesPerformedSoFar,a=e.retryQueue,l=e.onXHRError,u=e.timeout,c=e.onRateLimited,d=new XMLHttpRequest;d.open(i.method||"GET",t,!0);var h=tZ(r,i);M(n,function(e,t){d.setRequestHeader(t,e)}),"POST"!==i.method||i.blob||d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.timeout=void 0===u?1e4:u,d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState){if(200===d.status){if(o){var e;try{e=JSON.parse(d.responseText)}catch(e){return void A.error(e)}o(e)}}else"function"==typeof l&&l(d),0>[401,403,404,500].indexOf(d.status)&&a.enqueue({url:t,data:r,options:i,headers:n,retriesPerformedSoFar:(s||0)+1,callback:o}),429===d.status&&(null==c||c(d)),o&&o({status:0})}},d.send(h)},tJ=function(e){c(r,ta);var t=f(r);function r(e,n){var i;return s(this,r),(i=t.call(this)).isPolling=!1,i.queue=[],i.areWeOnline=!0,i.onXHRError=e,i.rateLimiter=n,"undefined"!=typeof window&&"onLine"in window.navigator&&(i.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){i._handleWeAreNowOnline()}),window.addEventListener("offline",function(){i.areWeOnline=!1})),i}return l(r,[{key:"enqueue",value:function(e){var t=e.retriesPerformedSoFar||0;if(!(t>=10)){var r,n,i,o=(i=(Math.random()-.5)*((n=Math.min(18e5,r=3e3*Math.pow(2,t)))-r/2),Math.ceil(n+i)),s=new Date(Date.now()+o);this.queue.push({retryAt:s,requestData:e}),console.warn("Enqueued failed request for retry in ".concat(o)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var e=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()},this._pollInterval)}},{key:"flush",value:function(){var e=new Date(Date.now()),t=this.queue.filter(function(t){return t.retryAt<e});if(t.length>0){this.queue=this.queue.filter(function(t){return t.retryAt>=e});var r,n=y(t);try{for(n.s();!(r=n.n()).done;){var i=r.value.requestData;this._executeXhrRequest(i)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var e,t=y(this.queue);try{for(t.s();!(e=t.n()).done;){var r=e.value.requestData,n=r.url,o=r.data,s=r.options;if(this.rateLimiter.isRateLimited(s._batchKey))_.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(n,tZ(o,i(i({},s),{},{sendBeacon:!0})))}catch(e){_.DEBUG&&console.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(e){var t=e.url,r=e.data,n=e.options,i=e.headers,o=e.callback,s=e.retriesPerformedSoFar;this.rateLimiter.isRateLimited(n._batchKey)?_.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):tG({url:t,data:r||{},options:n||{},headers:i||{},retriesPerformedSoFar:s||0,callback:o,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}();/** 13 * uuidv7: An experimental implementation of the proposed UUID Version 7 14 * 15 * @license Apache-2.0 16 * @copyright 2021-2023 LiosK 17 * @packageDocumentation 18 * 19 * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts 20 */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var tK="0123456789abcdef",tQ=function(){function e(t){if(s(this,e),this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}return l(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+tK.charAt(this.bytes[t]>>>4)+tK.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,r,n,i){if(!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(i)||t<0||r<0||n<0||i<0||t>0xffffffffffff||r>4095||n>1073741823||i>4294967295)throw RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/1099511627776,o[1]=t/4294967296,o[2]=t/16777216,o[3]=t/65536,o[4]=t/256,o[5]=t,o[6]=112|r>>>8,o[7]=r,o[8]=128|n>>>24,o[9]=n>
20>>16,o[10]=n>>>8,o[11]=n,o[12]=i>>>24,o[13]=i>>>16,o[14]=i>>>8,o[15]=i,new e(o)}}]),e}(),tX=function(){function e(){s(this,e),u(this,"timestamp",0),u(this,"counter",0),u(this,"random",new t2)}return l(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(void 0!==e)return e;this.timestamp=0;var t=this.generateOrAbort();if(void 0===t)throw Error("Could not generate UUID after timestamp reset");return t}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return tQ.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),1073741823&this.counter,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),tY=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};"undefined"!=typeof crypto&&crypto.getRandomValues&&(tY=function(e){return crypto.getRandomValues(e)});var t0,t1,t2=function(){function e(){s(this,e),u(this,"buffer",new Uint32Array(8)),u(this,"cursor",1/0)}return l(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(tY(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),t4=function(){return t3().toString()},t3=function(){return(t1||(t1=new tX)).generate()},t6=function(){function e(t,r){s(this,e),u(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var n=t.persistence_name||t.token,i=t.session_idle_timeout_seconds||1800;if("number"!=typeof i?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),i=1800):i>1800?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):i<60&&console.warn("[PostHog] session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."),this._sessionTimeoutMs=1e3*Math.min(Math.max(i,60),1800),this._window_id_storage_key="ph_"+n+"_window_id",this._primary_window_exists_storage_key="ph_"+n+"_primary_window_exists",this._canUseSessionStorage()){var o=eW.parse(this._window_id_storage_key),a=eW.parse(this._primary_window_exists_storage_key);o&&!a?this._windowId=o:eW.remove(this._window_id_storage_key),eW.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return l(e,[{key:"onSessionId",value:function(e){var t=this;return void 0===this._sessionIdChangedHandlers&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter(function(t){return t!==e})}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&eW.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&eW.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?eW.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,r){e===this._sessionId&&t===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(u({},e_,[t,e,r])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[e_];return Array.isArray(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&eW.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),r=p(this._getSessionId(),3),n=r[0],i=r[1],o=r[2],s=this._getWindowId(),a=o&&o>0&&Math.abs(t-o)>864e5,l=!1;!i||!e&&Math.abs(t-n)>this._sessionTimeoutMs||a?(i=t4(),s=t4(),o=t,l=!0):s||(s=t4(),l=!0);var u=0===n||!e||a?t:n,c=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(i,u,c),l&&this._sessionIdChangedH
20andlers.forEach(function(e){return e(i,s)}),{sessionId:i,windowId:s,sessionStartTimestamp:c}}}]),e}(),t5=l(function e(t,r,n,i){s(this,e),this.name="posthog-js",this.setupOnce=function(e){e(function(e){if("error"!==e.level||!t.__loaded)return e;e.tags||(e.tags={});var o,s,a,l,u,c=t.config.ui_host||t.config.api_host;e.tags["PostHog Person URL"]=c+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(e.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var d=(null===(o=e.exception)||void 0===o?void 0:o.values)||[],h={$exception_message:null===(s=d[0])||void 0===s?void 0:s.value,$exception_type:null===(a=d[0])||void 0===a?void 0:a.type,$exception_personURL:c+"/person/"+t.get_distinct_id(),$sentry_event_id:e.event_id,$sentry_exception:e.exception,$sentry_exception_message:null===(l=d[0])||void 0===l?void 0:l.value,$sentry_exception_type:null===(u=d[0])||void 0===u?void 0:u.type,$sentry_tags:e.tags};return r&&n&&(h.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+e.event_id),t.capture("$exception",h),e})}}),t8=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(t,r){t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var n=e._calculate_event_properties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return t(e,e.event.event)},page:function(e){return t(e,"$pageview")},identify:function(e){return t(e,"$identify")},screen:function(e){return t(e,"$screen")}}},t7=function(){function e(){var t=this;s(this,e),u(this,"_hasSeenPageView",!1),u(this,"_updateScrollData",function(){t._pageViewData||(t._pageViewData=t._createPageViewData());var e,r,n,i,o=t._pageViewData,s=t._scrollY(),a=t._scrollHeight(),l=t._contentY(),u=t._contentHeight();o.lastScrollY=s,o.maxScrollY=Math.max(s,null!==(e=o.maxScrollY)&&void 0!==e?e:0),o.maxScrollHeight=Math.max(a,null!==(r=o.maxScrollHeight)&&void 0!==r?r:0),o.lastContentY=l,o.maxContentY=Math.max(l,null!==(n=o.maxContentY)&&void 0!==n?n:0),o.maxContentHeight=Math.max(u,null!==(i=o.maxContentHeight)&&void 0!==i?i:0)})}return l(e,[{key:"_createPageViewData",value:function(){return{pathname:E.location.pathname}}},{key:"doPageView",value:function(){var e,t;return this._hasSeenPageView?(t=this._pageViewData,this._pageViewData=this._createPageViewData()):(this._hasSeenPageView=!0,t=void 0,this._pageViewData||(this._pageViewData=this._createPageViewData())),setTimeout(this._updateScrollData,0),i({$prev_pageview_pathname:null===(e=t)||void 0===e?void 0:e.pathname},this._calculatePrevPageScrollProperties(t))}},{key:"doPageLeave",value:function(){var e=this._pageViewData;return i({$prev_pageview_pathname:null==e?void 0:e.pathname},this._calculatePrevPageScrollProperties(e))}},{key:"_calculatePrevPageScrollProperties",value:function(e){if(!e||null==e.maxScrollHeight||null==e.lastScrollY||null==e.maxScrollY||null==e.maxContentHeight||null==e.lastContentY||null==e.maxContentY)return{};var t=e.maxScrollHeight,r=e.lastScrollY,n=e.maxScrollY,i=e.maxContentHeight,o=e.lastContentY,s=e.maxContentY;return t=Math.ceil(t),r=Math.ceil(r),n=Math.ceil(n),i=Math.ceil(i),o=Math.ceil(o),s=Math.ceil(s),{$prev_pageview_last_scroll:r,$prev_pageview_last_scroll_percentage:t<=1?1:t9(r/t,0,1),$prev_pageview_max_scroll:n,$prev_pageview_max_scroll_percentage:t<=1?1:t9(n/t,0,1),$prev_pageview_last_content:o,$prev_pageview_last_content_percentage:i<=1?1:t9(o/i,0,1),$prev_pageview_max_content:s,$prev_pageview_max_content_percentage:i<=1?1:t9(s/i,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){E.addEventListener("scroll",this._updateScrollData),E.addEventListener("scrollend",this._updateScrollData),E.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){E.removeEventListener("scroll",this._updateScrollData),E.removeEventListener("scrollend",this._updateScrollData),E.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollHeight",value:function(){return Math.max(0,E.document.documentElement.scrollHeight-E.document.documentElement.clientHeight)}},{key:"_scrollY",value:function(){return E.scrollY||E.pageYOffset||E.document.documentElement.scrollTop||0}},{key:"_contentHeight",value:function(){return E.document.documentElement.scrollHeight||0}},{key:"_contentY",value:function(){var e=E.document.documentElement.clientHeight||0;return this._scrollY()+e}}]),e}();function t9(e,t,r){return Math.max(t,Math.min(e,r))}function re(e){return"undefined"!=typeof Event&&rt(e,Event)}function rt(e,t){try{return e instanceof t}catch(e){return!1}}function rr(e){return null===e||"object"!==o(e)&&"function"!=typeof e}function rn(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function ri(e){return rn(e,"DOMError")}var ro=/\(error: (.*)\)/;
20function rs(e,t,r,n){var i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}var ra=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rl=/\((\S*)(?::(\d+))(?::(\d+))\)/,ru=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,rh=(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.sort(function(e,t){return e[0]-t[0]}).map(function(e){return e[1]});return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],o=e.split("\n"),s=t;s<o.length;s++){var a=o[s];if(!(a.length>1024)){var l=ro.test(a)?a.replace(ro,"$1"):a;if(!l.match(/\S*Error: /)){var u,c=y(n);try{for(c.s();!(u=c.n()).done;){var d=(0,u.value)(l);if(d){r.push(d);break}}}catch(e){c.e(e)}finally{c.f()}if(r.length>=50)break}}}return function(e){if(!e.length)return[];var t=e.slice(0,50);return t.reverse(),t.map(function(e){return i(i({},e),{},{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})})}(r)}}).apply(void 0,[[30,function(e){var t=ra.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var r=rl.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var n=p(rf(t[1]||"?",t[2]),2),i=n[0];return rs(n[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=ru.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r=rc.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var n=t[3],i=t[1]||"?",o=p(rf(i,n),2);return i=o[0],rs(n=o[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=rd.exec(e);return t?rs(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]]),rf=function(e,t){var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},rp=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,rg=/Minified React error #\d+;/i;function rv(e){var t=function(e){var t=e.stacktrace||e.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(rg.test(e.message))return 1}return 0}(e);try{return rh(t,r)}catch(e){}return[]}(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function rm(e){var t=p(e,5),r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l={};if(void 0===a&&"string"==typeof r){var u="Error",c=r,d=r.match(rp);d&&(u=d[1],c=d[2]),l={$exception_type:u,$exception_message:c}}var h=a||r;if(ri(h)||rn(h,"DOMException")){if("stack"in h)l=rv(h);else{var f=h.name||(ri(h)?"DOMError":"DOMException"),g=h.message?"".concat(f,": ").concat(h.message):f;(l={$exception_type:"Error",$exception_message:g}).$exception_type=ri(h)?"DOMError":"DOMException",l.$exception_message=l.$exception_message||g}"code"in h&&(l.$exception_DOMException_code="".concat(h.code))}else rn(h,"ErrorEvent")&&h.error?l=rv(h.error):function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return rt(e,Error)}}(h)?l=rv(h):rn(h,"Object")||re(h)?(l={$exception_type:re(h)?h.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}(h))}).$exception_is_synthetic=!0:(l.$exception_type=l.$exception_type||"Error",l.$exception_message=l.$exception_message||h,l.$exception_is_synthetic=!0);return i(i(i(i({},l),{},{$exception_type:l.$exception_type||"UnknownErrorType",$exception_message:l.$exception_message||""},n?{$exception_source:n}:{}),o?{$exception_lineno:o}:{}),s?{$exception_colno:s}:{})}var ry,rb,r_=function(){function e(t){s(this,e),u(this,"originalOnErrorHandler",void 0),u(this,"originalOnUnhandledRejectionHandler",void 0),u(this,"errorsToIgnore",[]),this.instance=t}return l(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];
20(e=console).log.apply(e,["PostHog.js [PostHog.ExceptionObserver]"].concat(r))}}},{key:"startCapturing",value:function(){var e;if(this.isEnabled()&&(null===(e=E.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__))try{this.originalOnErrorHandler=E.onerror,E.onerror=(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.captureException(t),!!this.originalOnErrorHandler&&this.originalOnErrorHandler.apply(this,t)}).bind(this),E.onerror.__POSTHOG_INSTRUMENTED__=!0,this.originalOnUnhandledRejectionHandler=E.onunhandledrejection,E.onunhandledrejection=(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){var t=p(e,1)[0],r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch(e){}var n={};return(n=rr(r)?{$exception_message:"Non-Error promise rejection captured with value: ".concat(String(r))}:rm([r])).$exception_handled=!1,i(i({},n),{},{$exception_type:n.$exception_type="UnhandledRejection",$exception_message:n.$exception_message=n.$exception_message||t.reason||String(r)})}(t);return this.sendExceptionEvent(n),!this.originalOnUnhandledRejectionHandler||this.originalOnUnhandledRejectionHandler.apply(E,t)}).bind(this),E.onunhandledrejection.__POSTHOG_INSTRUMENTED__=!0}catch(e){console.error("PostHog failed to start exception autocapture",e),this.stopCapturing()}}},{key:"stopCapturing",value:function(){var e,t;void 0!==this.originalOnErrorHandler&&(E.onerror=this.originalOnErrorHandler,this.originalOnErrorHandler=null),null===(e=E.onerror)||void 0===e||delete e.__POSTHOG_INSTRUMENTED__,void 0!==this.originalOnUnhandledRejectionHandler&&(E.onunhandledrejection=this.originalOnUnhandledRejectionHandler,this.originalOnUnhandledRejectionHandler=null),null===(t=E.onunhandledrejection)||void 0===t||delete t.__POSTHOG_INSTRUMENTED__}},{key:"isCapturing",value:function(){var e;return!(null===(e=E.onerror)||void 0===e||!e.__POSTHOG_INSTRUMENTED__)}},{key:"isEnabled",value:function(){var e;return null!==(e=this.remoteEnabled)&&void 0!==e&&e}},{key:"afterDecideResponse",value:function(e){var t=e.autocaptureExceptions;if(this.remoteEnabled=!!t,!rr(t)&&"errors_to_ignore"in t&&Array.isArray(t.errors_to_ignore)){var r=t.errors_to_ignore;this.errorsToIgnore=r.map(function(e){return new RegExp(e)})}this.isEnabled()?(this.startCapturing(),this.debugLog("Remote config for exception autocapture is enabled, starting",t)):this.debugLog("Remote config for exception autocapture is disabled, not starting",t)}},{key:"captureException",value:function(e,t){var r=rm(e);if(this.errorsToIgnore.some(function(e){return e.test(r.$exception_message||"")}))this.debugLog("Ignoring exception based on remote config",r);else{var n=i(i({},t),r),o=this.instance.get_config("ui_host")||this.instance.get_config("api_host");r.$exception_personURL=o+"/person/"+this.instance.get_distinct_id(),this.sendExceptionEvent(n)}}},{key:"sendExceptionEvent",value:function(e){this.instance.capture("$exception",e,{transport:"XHR",method:"POST",endpoint:"/e/",_noTruncate:!0,_batchKey:"exceptionEvent"})}}]),e}();(rw=ry||(ry={})).Popover="Popover",rw.Button="Button",rw.Email="Email",rw.FullScreen="Fullscreen",(rk=rb||(rb={})).Open="open",rk.MultipleChoiceSingle="multiple_single",rk.MultipleChoiceMulti="multiple_multi",rk.NPS="nps",rk.Rating="rating",rk.Link="link";var rw,rk,rx,rS,rE,rO=function(){function e(t){s(this,e),this.instance=t}return l(e,[{key:"getSurveys",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.get_property(eE);if(n&&!r)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(r){var n=r.surveys;return t.instance.persistence.register(u({},eE,n)),e(n)})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys(function(r){return e(r.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){if(!e.conditions)return!0;var t,r,n=null===(t=e.conditions)||void 0===t||!t.url||window.location.href.indexOf(e.conditions.url)>-1,i=null===(r=e.conditions)||void 0===r||!r.selector||document.querySelector(e.conditions.selector);return n&&i}).filter(function(e){if(!e.linked_flag_key&&!e.targeting_flag_key)return!0;var r=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),n=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key);return r&&n}))},r)}}]),e}(),rC={"X-PostHog-Retry-After-Recordings":eK,"X-PostHog-Retry-After-Events":"events"},rP=function(){function e(){s(this,e),u(this,"limits",{})}return l(e,[{key:"isRateLimited",value:function(e){var t=this.limits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}},{key:"on429Response",value:function(e){var t=this;
20429===e.status&&Object.entries(rC).forEach(function(r){var n=p(r,2),i=n[0],o=n[1],s=e.getResponseHeader(i);if(s){var a=parseInt(s,10);if(isNaN(a)&&(a=60),a){var l=1e3*a;t.limits[o]=(new Date).getTime()+l}}})}}]),e}();(b=rx||(rx={}))[b.INIT_MODULE=0]="INIT_MODULE",b[b.INIT_SNIPPET=1]="INIT_SNIPPET";var rT=function(){},rI={},rj="posthog",rR=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,rA=!rR&&-1===P.indexOf("MSIE")&&-1===P.indexOf("Mozilla"),rL=function(){var e,t,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:-1===(null==C||null===(e=C.location)||void 0===e||null===(t=e.hostname)||void 0===t?void 0:t.indexOf("herokuapp.com")),persistence:"cookie",persistence_name:"",cookie_name:"",loaded:rT,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==E||null===(r=E.location)||void 0===r?void 0:r.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(e){console.error("Bad HTTP status: "+e.status+" "+e.statusText)},get_device_id:function(e){return e},_onCapture:rT,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},r$=function(e,t,r,n){var i,o=r!==rj&&rE?r?rE[r]:void 0:rE,s={initComplete:!1,syncCode:!1},a=function(e){return function(t){s[e]||(s[e]=!0,s.initComplete&&s.syncCode&&(null==n||n(t)))}};if(o&&rS===rx.INIT_MODULE)i=o;else{if(o&&!F(o))return void console.error("You have already initialized "+r);i=new rM}return i._init(e,t,r,a("initComplete")),i.toolbar.maybeLoadToolbar(),i.sessionRecording=new eX(i),i.sessionRecording.startRecordingIfEnabled(),i.webPerformance=new e2(i),i.webPerformance.startObservingIfEnabled(),i.get_config("__preview_measure_pageview_stats")&&i.pageViewManager.startMeasuringScrollPosition(),i.exceptionAutocapture=new r_(i),i.__autocapture=i.get_config("autocapture"),eI._setIsAutocaptureEnabled(i),eI._isAutocaptureEnabled&&(i.__autocapture=i.get_config("autocapture"),eI.enabledForProject(i.get_config("token"),100,100)?eI.isBrowserSupported()?eI.init(i):(i.__autocapture=!1,A.log("Disabling Automatic Event Collection because this browser is not supported")):(i.__autocapture=!1,A.log("Not in active bucket: disabling Automatic Event Collection."))),_.DEBUG=_.DEBUG||i.get_config("debug"),void 0!==o&&F(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),a("syncCode")(i),i},rM=function(){function e(){var t=this;s(this,e),this.config=rL(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=t5,this.segmentIntegration=function(){return t8(t)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.featureFlags=new eM(this),this.toolbar=new e8(this),this.pageViewManager=new t7,this.surveys=new rO(this),this.rateLimiter=new rP,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0,this.people={set:function(e,r,n){var i="string"==typeof e?u({},e,r):e;t.setPersonProperties(i),null==n||n({})},set_once:function(e,r,n){var i="string"==typeof e?u({},e,r):e;t.setPersonProperties(void 0,i),null==n||n({})}}}return l(e,[{key:"init",value:function(e,t,r){if(U(r))console.error("You must name your new library: init(token, config, name)");else{if(r!==rj){var n=r$(e,t,r,function(e){rE[r]=e,e._loaded()});return rE[r]=n,n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var t,r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var l,u={segmentRegister:!1,syncCode:!1},c=function(e){return function(){u[e]||(u[e]=!0,u.segmentRegister&&u.syncCode&&(null==a||a(n)))}};if(this.set_config(N({},rL(),o,{name:s,token:e,callback_fn:(s===rj?s:rj+"."+s)+"._jsc"})),this._jsc=function(){},(null!=E&&null!==(t=E.rrweb)&&void 0!==t&&t.record||null!=E&&E.rrwebRecord)&&(this.__loaded_re
20corder_version=null==E||null===(l=E.rrweb)||void 0===l?void 0:l.version),this.persistence=new eG(this.config),this._requestQueue=new tl(this._handle_queued_event.bind(this)),this._retryQueue=new tJ(this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new t6(this.config,this.persistence),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new eG(i(i({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),o.segment?(this.config.get_device_id=function(){return o.segment.user().anonymousId()},o.segment.user().id()&&(this.register({distinct_id:o.segment.user().id()}),this.persistence.set_user_state("identified")),o.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),void 0!==(null===(r=o.bootstrap)||void 0===r?void 0:r.distinctID)){var d,h,f=this.get_config("get_device_id")(t4()),p=null!==(d=o.bootstrap)&&void 0!==d&&d.isIdentifiedID?f:o.bootstrap.distinctID;this.persistence.set_user_state(null!==(h=o.bootstrap)&&void 0!==h&&h.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:p})}if(this._hasBootstrappedFeatureFlags()){var g,v,m=Object.keys((null===(g=o.bootstrap)||void 0===g?void 0:g.featureFlags)||{}).filter(function(e){var t,r;return!(null===(t=o.bootstrap)||void 0===t||null===(r=t.featureFlags)||void 0===r||!r[e])}).reduce(function(e,t){var r,n;return e[t]=(null===(r=o.bootstrap)||void 0===r||null===(n=r.featureFlags)||void 0===n?void 0:n[t])||!1,e},{}),y=Object.keys((null===(v=o.bootstrap)||void 0===v?void 0:v.featureFlagPayloads)||{}).filter(function(e){return m[e]}).reduce(function(e,t){var r,n,i,s;return null!==(r=o.bootstrap)&&void 0!==r&&null!==(n=r.featureFlagPayloads)&&void 0!==n&&n[t]&&(e[t]=null===(i=o.bootstrap)||void 0===i||null===(s=i.featureFlagPayloads)||void 0===s?void 0:s[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:m,featureFlagPayloads:y})}if(!this.get_distinct_id()){var b=this.get_config("get_device_id")(t4());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_user_state("anonymous")}E.addEventListener&&E.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:C.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new e3(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||$(this.__request_queue,function(t){e._send_request.apply(e,g(t))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,t){if(U(e))return null;if(rR)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,t,r){var n=JSON.stringify(t);this.__compress_and_send_json_request(e,n,r||rI,rT)}},{key:"__compress_and_send_json_request",value:function(e,t,r,n){var o,s,a,l,u,c,d,h=p((this.compression[tC.GZipJS]?tC.GZipJS:tC.Base64)===tC.GZipJS?[(o=function(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new tu(e.length+(e.length>>>1)),i=0,o=function(e){n[i++]=e},s=0;s<r;++s){if(i+5>n.length){var a=new tu(i+8+(r-s<<1));a.set(n),n=a}var l=e.charCodeAt(s);l<128||t?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return tj(n,0,i)}(t),s={mtime:0},a=tH(),l=o.length,a.p(o),d=(u=10+(s.filename&&s.filename.length+1||0),c=function(e,t,r,n,i,o){var s=e.length,a=new tu(n+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(n,a.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;
20d<s?u=tF(l,u,e.subarray(c,d)):(l[c]=o,u=tF(l,u,e.subarray(c,s)))}else{for(var h=tD[t-1],f=h>>>13,p=8191&h,g=(1<<r)-1,v=new tc(32768),m=new tc(g+1),y=Math.ceil(r/3),b=2*y,_=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},w=new td(25e3),k=new tc(288),x=new tc(32),S=0,E=0,O=(c=0,0),C=0,P=0;c<s;++c){var T=_(c),I=32767&c,j=m[T];if(v[I]=j,m[T]=I,C<=c){var R=s-c;if((S>7e3||O>24576)&&R>423){u=tB(e,l,0,w,k,x,E,O,P,c-P,u),O=S=E=0,P=c;for(var A=0;A<286;++A)k[A]=0;for(A=0;A<30;++A)x[A]=0}var L=2,$=0,M=p,N=I-j&32767;if(R>2&&T==_(c-N))for(var F=Math.min(f,R)-1,B=Math.min(32767,c),D=Math.min(258,R);N<=B&&--M&&I!=j;){if(e[c+L]==e[c+L-N]){for(var z=0;z<D&&e[c+z]==e[c+z-N];++z);if(z>L){if(L=z,$=N,z>F)break;var U=Math.min(N,z-2),H=0;for(A=0;A<U;++A){var V=c-N+A+32768&32767,q=V-v[V]+32768&32767;q>H&&(H=q,j=V)}}}N+=(I=j)-(j=v[I])+32768&32767}if($){w[O++]=268435456|ty[L]<<18|tb[$];var W=31&ty[L],Z=31&tb[$];E+=th[W]+tf[Z],++k[257+W],++x[Z],C=c+L,++S}else w[O++]=e[c],++k[e[c]]}}u=tB(e,l,o,w,k,x,E,O,P,c-P,u),o||(u=tF(l,u,tz))}return tj(a,0,n+tI(u)+i)}(o,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(o.length)))):12+s.mem,u,8,!0)).length,tq(c,s),tV(c,d-8,a.d()),tV(c,d-4,l),c),i(i({},r),{},{blob:!0,urlQueryArgs:{compression:tC.GZipJS}})]:[{data:G(t)},r],2),f=h[0],g=h[1];this._send_request(e,f,g,n)}},{key:"_send_request",value:function(e,t,r,n){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(rA)this.__request_queue.push([e,t,r,n]);else{r=N({method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},r||{}),rR||(r.method="GET");var o="sendBeacon"in E.navigator&&"sendBeacon"===r.transport;if(e=tW(e,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{E.navigator.sendBeacon(e,tZ(t,i(i({},r),{},{sendBeacon:!0})))}catch(e){}else if(rR)try{tG({url:e,data:t,headers:this.get_config("xhr_headers"),options:r,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(e){console.error(e)}else{var s,a=C.createElement("script");a.type="text/javascript",a.async=!0,a.defer=!0,a.src=e;var l=C.getElementsByTagName("script")[0];null===(s=l.parentNode)||void 0===s||s.insertBefore(a,l)}}}},{key:"_execute_array",value:function(e){var t,r=this,n=[],i=[],o=[];$(e,function(e){e&&(F(t=e[0])?o.push(e):"function"==typeof e?e.call(r):F(e)&&"alias"===t?n.push(e):F(e)&&-1!==t.indexOf("capture")&&"function"==typeof r[t]?o.push(e):i.push(e))});var s=function(e,t){$(e,function(e){if(F(e[0])){var r=t;M(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(n,this),s(i,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"captureException",value:function(e,t){var r;null===(r=this.exceptionAutocapture)||void 0===r||r.captureException([e.name,void 0,void 0,void 0,e],t)}},{key:"capture",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rI;if(this.__loaded&&!function(e,t){var r=!1;try{var n=e.get_config("token"),i=e.get_config("respect_dnt"),o=e.get_config("opt_out_capturing_persistence_type"),s=e.get_config("opt_out_capturing_cookie_prefix")||void 0,a=e.get_config("window");n&&(r=tt(n,{respectDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){t||console.error("Unexpected error when checking capturing opt-out status: "+e)}return r}(this,!1)){var n=(r=r||rI).transport;if(n&&(r.transport=n),U(e)||"string"!=typeof e)console.error("No event name provided to posthog.capture");else if(!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender|gptbot)/i.test(P)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var i,o,s,a,l={uuid:t4(),event:e,properties:this._calculate_event_properties(e,t||{})};
20"$identify"===e&&(l.$set=r.$set,l.$set_once=r.$set_once),(i=l,o=r._noTruncate?null:this.get_config("properties_string_max_length"),s=function(e,t){return t&&Z.indexOf(t)>-1?e:"string"==typeof e&&null!==o?e.slice(0,o):e},a=new Set,l=function e(t,r){var n;return t!==Object(t)?s?s(t,r):t:a.has(t)?void 0:(a.add(t),F(t)?(n=[],$(t,function(t){n.push(e(t))})):(n={},M(t,function(t,r){a.has(t)||(n[r]=e(t,r))})),n)}(i)).timestamp=r.timestamp||new Date,this.get_config("debug")&&A.log("PostHog.js send",l);var u=JSON.stringify(l),c=this.get_config("api_host")+(r.endpoint||"/e/"),d=r!==rI;return!this.get_config("request_batching")||d&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(c,u,r):this._requestQueue.enqueue(c,l,r),this._invokeCaptureHooks(e,l),l}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,t){this.config._onCapture(e,t),M(this.__captureHooks,function(t){return t(e)})}},{key:"_calculate_event_properties",value:function(e,t){var r=this.persistence.remove_event_timer(e),n=i({},t);if(n.token=this.get_config("token"),"$snapshot"===e){var o=i(i({},this.persistence.properties()),this.sessionPersistence.properties());return n.distinct_id=o.distinct_id,n}var s=ee.properties();if(this.sessionManager){var a=this.sessionManager.checkAndGetSessionAndWindowId(),l=a.sessionId,u=a.windowId;n.$session_id=l,n.$window_id=u}if(this.get_config("__preview_measure_pageview_stats")){var c={};"$pageview"===e?c=this.pageViewManager.doPageView():"$pageleave"===e&&(c=this.pageViewManager.doPageLeave()),n=N(n,c)}if("$pageview"===e&&(n.title=C.title),"$performance_event"===e){var d=this.persistence.properties();return n.distinct_id=d.distinct_id,n.$current_url=s.$current_url,n}if(void 0!==r){var h=(new Date).getTime()-r;n.$duration=parseFloat((h/1e3).toFixed(3))}n=N({},ee.properties(),this.persistence.properties(),this.sessionPersistence.properties(),n);var f=this.get_config("property_blacklist");F(f)?M(f,function(e){delete n[e]}):console.error("Invalid value for property_blacklist config: "+f);var p=this.get_config("sanitize_properties");return p&&(n=p(n,e)),n}},{key:"register",value:function(e,t){this.persistence.register(e,t)}},{key:"register_once",value:function(e,t,r){this.persistence.register_once(e,t,r)}},{key:"register_for_session",value:function(e){this.sessionPersistence.register(e)}},{key:"unregister",value:function(e){this.persistence.unregister(e)}},{key:"unregister_for_session",value:function(e){this.sessionPersistence.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(u({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){return this.sessionManager.onSessionId(e)}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"identify",value:function(e,t,r){if(e){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(ep)&&(this.unregister(ep),this.register({distinct_id:e}));var i="anonymous"===this.persistence.get_user_state();e!==n&&i?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(eO))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,r){if(e&&t){var n=this.getGroups();n[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:i(i({},n),{},u({},e,t))}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:r}),this.setGroupPropertiesForFlags(u({},e,r))),n[e]===t||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var t=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(t4());this.register_once({distinct_id:r,$device_id:e?r:t},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(e){var t=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=r.sessionId,i=r.sessionStartTimestamp,o=t+"/replay/"+n;if(null!=e&&e.withTimestamp&&i){var s,a=null!==(s=e.timestampLookBack)&&void 0!==s?s:10;if(!i)return o;
20var l=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-a,0);o+="?t=".concat(l)}return o}},{key:"alias",value:function(e,t){return e===this.get_property(ef)?(A.critical("Attempting to create alias for existing People user - aborting."),-2):(U(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ep,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var t=i({},this.config);z(e)&&(N(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),eD.is_supported()&&"true"===eD.get("ph_debug")&&(this.config.debug=!0),this.get_config("debug")&&(_.DEBUG=!0),this.sessionRecording&&void 0!==e.disable_session_recording&&t.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var t;return null===(t=this.config)||void 0===t?void 0:t[e]}},{key:"get_property",value:function(e){return this.persistence.props[e]}},{key:"getSessionProperty",value:function(e){return this.sessionPersistence.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.get_config("name"))&&void 0!==e?e:rj;return t!==rj&&(t=rj+"."+t),t}},{key:"_gdpr_init",value:function(){"localStorage"===this.get_config("opt_out_capturing_persistence_type")&&eD.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_capturing()&&(this.get_config("opt_out_capturing_by_default")||eF.get("ph_optout"))&&(eF.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),this.get_config("disable_persistence")||this.sessionPersistence.disabled===t||this.sessionPersistence.set_disabled(t)}},{key:"_gdpr_call_func",value:function(e,t){return t=N({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},t||{}),eD.is_supported()||"localStorage"!==t.persistence_type||(t.persistence_type="cookie"),e(this.get_config("token"),{capture:t.capture,captureEventName:t.capture_event_name,captureProperties:t.capture_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=N({enable_persistence:!0},e||{}),this._gdpr_call_func(e7,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var t=N({clear_persistence:!0},e||{});this._gdpr_call_func(e9,t),this._gdpr_update_persistence(t)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(te,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(tt,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var t=N({enable_persistence:!0},null!=e?e:{});this._gdpr_call_func(tr,t),this._gdpr_update_persistence(t)}}
20,{key:"debug",value:function(e){!1===e?(E.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(E.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=q(e.prototype[t[r]])}(rM,["identify"]);var rN={},rF=(rS=rx.INIT_MODULE,(rE=new rM).init=function(e,t,r){if(r)return rE[r]||(rE[r]=rN[r]=r$(e||"",t||{},r,function(e){rE[r]=rN[r]=e,e._loaded()})),rE[r];var n=rE;return rN[rj]?n=rN[rj]:e&&(n=r$(e,t||{},rj,function(e){rN[rj]=e,e._loaded()}),rN[rj]=n),rE=n,rS===rx.INIT_SNIPPET&&(E[rj]=rE),M(rN,function(e,t){t!==rj&&(rE[t]=e)}),n},rE.init(),function(){function e(){e.done||(e.done=!0,rA=!1,M(rN,function(e){e._dom_loaded()}))}C.addEventListener&&("complete"===C.readyState?e():C.addEventListener("DOMContentLoaded",e,!1)),X(E,"load",e,!0)}(),rE)},58192:function(e,t,r){"use strict";r.d(t,{U0:function(){return a},zf:function(){return s}});var n=r(99893),i=r(67294),o=(0,i.createContext)({client:n.ZP});function s(e){var t=e.children,r=e.client,s=e.apiKey,a=e.options,l=(0,i.useMemo)(function(){return(r&&s&&console.warn("You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."),r&&a&&console.warn("You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."),r)?r:(s&&(n.ZP.__loaded&&console.warn("posthog was already loaded elsewhere. This may cause issues."),n.ZP.init(s,a)),n.ZP)},[r,s]);return i.createElement(o.Provider,{value:{client:l}},t)}var a=function(){return(0,i.useContext)(o).client}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={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:o,resetWarningCache:i}
20;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},60155:function(e,t,r){"use strict";r.d(t,{AFK:function(){return p},AZg:function(){return S},CDT:function(){return Q},CgR:function(){return w},DOt:function(){return ex},DUQ:function(){return X},DUg:function(){return $},E6h:function(){return F},EuD:function(){return e_},Fhy:function(){return N},GW7:function(){return ec},H8y:function(){return W},HUw:function(){return eS},Hs8:function(){return eg},IOM:function(){return E},J4e:function(){return ea},Jek:function(){return R},JfB:function(){return D},Jwp:function(){return en},LH9:function(){return v},MOO:function(){return m},O7s:function(){return d},O8Q:function(){return o},ORF:function(){return g},Oag:function(){return U},OvZ:function(){return eE},Pmx:function(){return ev},Q6l:function(){return q},Rfe:function(){return f},SLS:function(){return eu},T1V:function(){return el},WNJ:function(){return K},YAS:function(){return Y},YFK:function(){return ew},ZAz:function(){return C},Zwb:function(){return M},_7d:function(){return ek},_kz:function(){return eh},adg:function(){return L},bjh:function(){return O},dUf:function(){return _},dzk:function(){return eb},eXJ:function(){return ed},eaK:function(){return ep},egd:function(){return Z},fv3:function(){return h},g7D:function(){return H},gXb:function(){return J},gmZ:function(){return l},jI1:function(){return y},jyt:function(){return I},kEG:function(){return c},kXE:function(){return V},mzm:function(){return x},nOT:function(){return b},naV:function(){return em},nfT:function(){return ei},oVe:function(){return G},onJ:function(){return k},pLT:function(){return ee},qEA:function(){return er},qvS:function(){return a},rEp:function(){return s},sAO:function(){return P},tpt:function(){return A},uFR:function(){return ef},uWg:function(){return j},umg:function(){return eo},wB6:function(){return B},xID:function(){return ey},xXr:function(){return et},xcL:function(){return i},y1N:function(){return T},zI7:function(){return z},zZ9:function(){return es},z_A:function(){return u}});var n=r(88357);function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"}}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400L100 256l144-144M120 256h292"}}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"}}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M268 112l144 144-144 144m124-144H100"}}]})(e)}function l(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M240 424v-96c116.4 0 159.39 33.76 208 96 0-119.23-39.57-240-208-240V88L64 256z"}}]})(e)}function u(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"}}]})(e)}function c(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M480 496H48a32 32 0 01-32-32V32a16 16 0 0132 0v432h432a16 16 0 010 32z"}},{tag:"path",attr:{d:"M156 432h-40a36 36 0 01-36-36V244a36 36 0 0136-36h40a36 36 0 0136 36v152a36 36 0 01-36 36zm144 0h-40a36 36 0 01-36-36V196a36 36 0 0136-36h40a36 36 0 0136 36v200a36 36 0 01-36 36zm143.64 0h-40a36 36 0 01-36-36V132a36 36 0 0136-36h40a36 36 0 0136 36v264a36 36 0 01-36 36z"}}]})(e)}function d(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M273.38 368.37c-.81-9.23-8.86-16.44-18.55-16.44a18.63 18.63 0 00-18.2 14.07l-18.2 88.36a35.59 35.59 0 00-.93 7.87c0 19.93 16.68 33.77 37.33 33.77s37.34-13.84 37.34-33.77a36.16 36.16 0 00-1.29-9.45zm137.67 39.52a42.66 42.66 0 00-5.95-4.36L335.57 355c-6.77-4.24-14-4.13-19.25 1a13.52 13.52 0 00-2 17.19l52.5 69a38 38 0 004 4.69c9.1 10.16 29.28 10.72 40.37 0 10.94-10.96 10.81-30.39-.14-38.99zm52.25-71.96h-70.42c-4.55 0-8.88 3.35-8.88 8.15s2.95 7.85 6.92 9.16l66.43 20.55C467 376 480 367.44 480 356.71c0-13.63-7.6-20.78-16.7-20.78zm-335.08 8.15c0-4.95-4.55-8.15-9.45-8.15H48.35c-8.87 0-16.35 9.58-16.35 20.31S44.62 376 54.3 373.79l67.43-20.55c4.39-1.31 6.49-4.24 6.49-9.16zm48.33 10.97L107 403.41a32.29 32.29 0 00-6 4.34 26.33 26.33 0 000 38.56 29.41 29.41 0 0040.36 0 30.75 30.75 0 004-4.68L197.9 373c3.5-5.57 2.92-12.48-2-17a15 15 0 00-19.35-.95zm116.91-112.66c10-5.42 19.45-10.54 28.31-16.16 42.46-26.92 62.23-59 62.23-101 0-64.66-56.07-104.4-108.82-109-6.49-.57-15-.42-19.91 3.88s-5.88 12.56-6.15 19.1c-1.38 33.61-28.38 59-57 85.86-28 26.3-56.93 53.49-62.71 91-8.41 54.68 21.74 86.71 40.46 100.93a31.88 31.88 0 0019.3 6.51 32.32 32.32 0 007.41-.87 31.75 31.75 0 0021.27-16.95c14.91-30.39 45.77-47.12 75.61-63.3z"}},{tag:"path",attr:{d:"M139.82 156.57c12.22-15.76 27-29.68 41.37-43.15 19.92-18.72 37.81-35.58 46.5-53.86-12.24-7.37-27.36-11.36-46.51-11.36-17.79 0-20.39 5.18-20.39 19.06 0 12.56-6.53 20.54-14.34 30.65C137.8 109.1 128 121.77 128 140.84c0 10.23 1.29 18.77 4.2 26.37q3.5-5.32 7.62-10.64zm190.52 83.17c-9.33 5.92-19 11.16-29.25 16.71-28.91 15.68-56.21 30.48-68.88 56.28a62.6 62.6 0 01-1.88 3.61 8 8 0 003.89 11.3c12.31 5.1 25.13 8.27 38.91 8.27a111.42 111.42 0 0078.24-31.37A107.45 107.45 0 00384 226.85a86.56 86.56 0 00-1.33-15 8 8 0 00-13.8-4c-10.18 11.47-22.93 22-38.53 31.89z"}}]})(e)}function h(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 32H112a48 48 0 00-48 48v320a47.91 47.91 0 0016 35.74V454a26 26 0 0026 26h28a26 26 0 0026-26v
20-6h192v6a26 26 0 0026 26h28a26 26 0 0026-26v-18.26A47.91 47.91 0 00448 400V80a48 48 0 00-48-48zM147.47 399.82a32 32 0 1128.35-28.35 32 32 0 01-28.35 28.35zM236 288H112a16 16 0 01-16-16V144a16 16 0 0116-16h124a4 4 0 014 4v152a4 4 0 01-4 4zm20-192H112.46c-8.6 0-16-6.6-16.44-15.19A16 16 0 01112 64h287.54c8.6 0 16 6.6 16.44 15.19A16 16 0 01400 96H256zm20 32h124a16 16 0 0116 16v128a16 16 0 01-16 16H276a4 4 0 01-4-4V132a4 4 0 014-4zm60.18 243.47a32 32 0 1128.35 28.35 32 32 0 01-28.35-28.35z"}}]})(e)}function f(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"384",x:"48",y:"80",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M128 48v32m256-32v32m80 80H48"}}]})(e)}function p(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 64h-16V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00368 48v16H144V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00112 48v16H96a64 64 0 00-64 64v12a4 4 0 004 4h440a4 4 0 004-4v-12a64 64 0 00-64-64zm60 112H36a4 4 0 00-4 4v236a64 64 0 0064 64h320a64 64 0 0064-64V180a4 4 0 00-4-4zM239.58 401.1c-12.17 9.61-28.75 14.9-46.7 14.9-27.87 0-48.48-18.16-57.66-33.7a16 16 0 0127.56-16.3c1.08 1.84 11.15 18 30.1 18 16.66 0 36.12-7.29 36.12-27.82 0-6.25-1.22-14.95-7-20.88-8.54-8.74-22.75-12.67-30.11-12.67a16 16 0 010-32c4.85 0 17.41-2.6 25.28-10.65a22 22 0 006.57-16.08c0-23.23-28.63-23.9-31.89-23.9-17.34 0-23.8 10.61-24.07 11.06a16 16 0 11-27.55-16.26c7.64-13 25.22-26.8 51.62-26.8 16.44 0 31.76 4.77 43.13 13.42 13.39 10.2 20.76 25.28 20.76 42.48A54 54 0 01240 302.35c-1.15 1.18-2.36 2.28-3.59 3.35a66.18 66.18 0 018.42 7.23c10.56 10.8 16.14 25.75 16.14 43.25.03 18.06-7.58 34.01-21.39 44.92zM368 396a16 16 0 01-32 0V256.29l-22.51 16.59a16 16 0 11-19-25.76l43.42-32a16 16 0 019.49-3.12h4.6a16 16 0 0116 16z"}}]})(e)}function g(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"384",x:"48",y:"80",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48"}},{tag:"circle",attr:{cx:"296",cy:"232",r:"24"}},{tag:"circle",attr:{cx:"376",cy:"232",r:"24"}},{tag:"circle",attr:{cx:"296",cy:"312",r:"24"}},{tag:"circle",attr:{cx:"376",cy:"312",r:"24"}},{tag:"circle",attr:{cx:"136",cy:"312",r:"24"}},{tag:"circle",attr:{cx:"216",cy:"312",r:"24"}},{tag:"circle",attr:{cx:"136",cy:"392",r:"24"}},{tag:"circle",attr:{cx:"216",cy:"392",r:"24"}},{tag:"circle",attr:{cx:"296",cy:"392",r:"24"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M128 48v32m256-32v32"}},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M464 160H48"}}]})(e)}function v(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M480 128a64 64 0 00-64-64h-16V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00368 48v16H144V48.45c0-8.61-6.62-16-15.23-16.43A16 16 0 00112 48v16H96a64 64 0 00-64 64v12a4 4 0 004 4h440a4 4 0 004-4zM32 416a64 64 0 0064 64h320a64 64 0 0064-64V179a3 3 0 00-3-3H35a3 3 0 00-3 3zm344-208a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24zm-80-80a24 24 0 11-24 24 24 24 0 0124-24zm0 80a24 24 0 11-24 24 24 24 0 0124-24z"}}]})(e)}function m(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 464a16 16 0 01-16-16v-64h-24a72.08 72.08 0 01-72-72V120a72.08 72.08 0 0172-72h304a72.08 72.08 0 0172 72v192a72.08 72.08 0 01-72 72H245.74l-91.49 76.29A16.05 16.05 0 01144 464z"}}]})(e)}function y(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128L192 384l-96-96"}}]})(e)}function b(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112L184 256l144 144"}}]})(e)}function _(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112L184 256l144 144"}}]})(e)}function w(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"}}]})(e)}function k(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M184 112l144 144-144 144"}}]})(e)}function x(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"}}]})(e)}function S(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 328l144-144 144 144"}}]})(e)}function E(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144m224 0L144 368"}}]})(e)}function O(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}}]})(e)}function C(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M473.66 210c-14-10.38-31.2-18-49.36-22.11a16.11 16.11 0 01-12.19-12.22c-7.8-34.75-24.59-64.55-49.27-87.13C334.15 62.25 296.21 47.79 256 47.79c-35.35 0-68 11.08-94.37 32.05a150.07 150.07 0 00-42.06 53 16 16 0 01-11.31 8.87c-26.75 5.4-50.9 16.87-69.34 33.12C13.46 197.33 0 227.24 0 261.39c0 34.52 14.49 66 40.79 88.76 25.12 21.69 58.94 33.64 95.21 33.64h104V230.42l-36.69 36.69a16 16 0 01-23.16-.56c-5.8-6.37-5.24-16.3.85-22.39l63.69-63.68a16 16 0 0122.62 0L331 244.14c6.28 6.29 6.64 16.6.39 22.91a16 16 0 01-22.68.06L272 230.42v153.37h124c31.34 0 59.91-8.8 80.45-24.77 23.26-18.1 35.55-44 35.55-74.83 0-29.94-13.26-55.61-38.34-74.19zM240 448.21a16 16 0 1032 0v-64.42h-32z"}}]})(e)}function P(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112m-101.8 10.23L432 432M208 96v112H96m101.8-10.23L80 80m336 128H304V96m10.23 101.8L432 80M96 304h112v112m-10.23-101.8L80 432"}}]})(e)}function T(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M35.42 188.21l207.75 269.46a16.17 16.17 0 0025.66 0l207.75-269.46a16.52 16.52 0 00.95-18.75L407.06 55.71A16.22 16.22 0 00393.27 48H118.73a16.22 16.22 0 00-13.79 7.71L34.47 169.46a16.52 16.52 0 00.95 18.75zM48 176h416"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 64l-48 112-96-128M112 64l48 112 96-128m0 400l-96-272m96 272l96-272"}}]})(e)}function I(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 01-48 48H144a48 48 0 01-48-48V96a48 48 0 0148-48h98.75a32 32 0 0122.62 9.37l141.26 141.26a32 32 0 019.37 22.62z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0032 32h120m-232 80h160m-160 80h160"}}]})(e)}function j(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M414.39 97.74A224 224 0 1097.61 414.52 224 224 0 10414.39 97.74zM64 256.13a191.63 191.63 0 016.7-50.31c7.34 15.8 18 29.45 25.25 45.66 9.37 20.84 34.53 15.06 45.64 33.32 9.86 16.21-.67 36.71 6.71 53.67 5.36 12.31 18 15 26.72 24 8.91 9.08 8.72 21.52 10.08 33.36a305.36 305.36 0 007.45 41.27c0 .1 0 .21.08.31C117.8 411.13 64 339.8 64 256.13zm192 192a193.12 193.12 0 01-32-2.68c.11-2.71.16-5.24.43-7 2.43-15.9 10.39-31.45 21.13-43.35 10.61-11.74 25.15-19.68 34.11-33 8.78-13 11.41-30.5 7.79-45.69-5.33-22.44-35.82-29.93-52.26-42.1-9.45-7-17.86-17.82-30.27-18.7-5.72-.4-10.51.83-16.18-.63-5.2-1.35-9.28-4.15-14.82-3.42-10.35 1.36-16.88 12.42-28 10.92-10.55-1.41-21.42-13.76-23.82-23.81-3.08-12.92 7.14-17.11 18.09-18.26 4.57-.48 9.7-1 14.09.68 5.78 2.14 8.51 7.8 13.7 10.66 9.73 5.34 11.7-3.19 10.21-11.83-2.23-12.94-4.83-18.21 6.71-27.12 8-6.14 14.84-10.58 13.56-21.61-.76-6.48-4.31-9.41-1-15.86 2.51-4.91 9.4-9.34 13.89-12.27 11.59-7.56 49.65-7 34.1-28.16-4.57-6.21-13-17.31-21-18.83-10-1.89-14.44 9.27-21.41 14.19-7.2 5.09-21.22 10.87-28.43 3-9.7-10.59 6.43-14.06 10-21.46 1.65-3.45 0-8.24-2.78-12.75q5.41-2.28 11-4.23a15.6 15.6 0 008 3c6.69.44 13-3.18 18.84 1.38 6.48 5 11.15 11.32 19.75 12.88 8.32 1.51 17.13-3.34 19.19-11.86 1.25-5.18 0-10.65-1.2-16a190.83 190.83 0 01105 32.21c-2-.76-4.39-.67-7.34.7-6.07 2.82-14.67 10-15.38 17.12-.81 8.08 11.11 9.22 16.77 9.22 8.5 0 17.11-3.8 14.37-13.62-1.19-4.26-2.81-8.69-5.42-11.37a193.27 193.27 0 0118 14.14c-.09.09-.18.17-.27.27-5.76 6-12.45 10.75-16.39 18.05-2.78 5.14-5.91 7.58-11.54 8.91-3.1.73-6.64 1-9.24 3.08-7.24 5.7-3.12 19.4 3.74 23.51 8.67 5.19 21.53 2.75 28.07-4.66 5.11-5.8 8.12-15.87 17.31-15.86a15.4 15.4 0 0110.82 4.41c3.8 3.94 3.05 7.62 3.86 12.54 1.43 8.74 9.14 4 13.83-.41a192.12 192.12 0 019.24 18.77c-5.16 7.43-9.26 15.53-21.67 6.87-7.43-5.19-12-12.72-21.33-15.06-8.15-2-16.5.08-24.55 1.47-9.15 1.59-20 2.29-26.94 9.22-6.71 6.68-10.26 15.62-17.4 22.33-13.81 13-19.64 27.19-10.7 45.57 8.6 17.67 26.59 27.26 46 26 19.07-1.27 38.88-12.33 38.33 15.38-.2 9.81 1.85 16.6 4.86 25.71 2.79 8.4 2.6 16.54 3.24 25.21a158 158 0 004.74 30.07A191.75 191.75 0 01256 448.13z"}}]})(e)}function R(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320m101.8-10.23L304 304M80 192V80h112M90.2 90.23L208 208M320 80h112v112M421.77 90.2L304 208M192 432H80V320m10.23 101.8L208 304"}}]})(e)}function A(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M479.66 268.7l-32-151.81C441.48 83.77 417.68 64 384 64H128c-16.8 0-31 4.69-42.1 13.94s-18.37 22.31-21.58 38.89l-32 151.87A16.65 16.65 0 0032 272v112a64 64 0 0064 64h320a64 64 0 0064-64V272a16.65 16.65 0 00-.34-3.3zm-384-145.4v-.28c3.55-18.43 13.81-27 32.29-27H384c18.61 0 28.87 8.55 32.27 26.91 0 .13.05.26.07.39l26.93 127.88a4 4 0 01-3.92 4.82H320a15.92 15.92 0 00-16 15.82 48 48 0 11-96 0A15.92 15.92 0 00192 256H72.65a4 4 0 01-3.92-4.82z"}},{tag:"path",attr:{d:"M368 160H144a16 16 0 010-32h224a16 16 0 010 32zm16 64H128a16 16 0 010-32h256a16 16 0 010 32z"}}]})(e)}function L(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M479.66 268.7l-32-151.81C441.48 83.77 417.68 64 384 64H128c-16.8 0-31 4.69-42.1 13.94s-18.37 22.31-21.58 38.89l-32 151.87A16.65 16.65 0 0032 272v112a64 64 0 0064 64h320a64 64 0 0064-64V272a16.65 16.65 0 00-.34-3.3zm-384-145.4v-.28c3.55-18.43 13.81-27 32.29-27H384c18.61 0 28.87 8.55 32.27 26.91 0 .13.05.26.07.39l26.93 127.88a4 4 0 01-3.92 4.82H320a15.92 15.92 0 00-16 15.82 48 48 0 11-96 0A15.92 15.92 0 00192 256H72.65a4 4 0 01-3.92-4.82z"}}]})(e)}function $(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.92 64c-48.11 0-80.1 28-96.92 48.21C239.18 92 207.19 64 159.08 64 98.46 64 48.63 114.54 48 176.65c-.56 55.68 19.71 107 62 157 40.12 47.46 94.25 79.75 137 108.32l9 6 9-6c42.78-28.57 96.91-60.86 137-108.32 42.25-50 62.52-101.35 62-157C463.37 114.54 413.54 64 352.92 64zm24.67 249c-31.78 37.6-74.68 65.75-112.52 90.59l-9.07 6V162.23l24.59-29.54C294.53 116 318.38 96 352.92 96c43.15 0 78.62 36.32 79.07 81a178.63 178.63 0 01-12.69 68.59c-9.03 22.84-22.67 44.91-41.71 67.41z"}}]})(e)}function M(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352.92 80C288 80 256 144 256 144s-32-64-96.92-64
20c-52.76 0-94.54 44.14-95.08 96.81-1.1 109.33 86.73 187.08 183 252.42a16 16 0 0018 0c96.26-65.34 184.09-143.09 183-252.42-.54-52.67-42.32-96.81-95.08-96.81z"}}]})(e)}function N(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 448a32 32 0 01-18-5.57c-78.59-53.35-112.62-89.93-131.39-112.8-40-48.75-59.15-98.8-58.61-153C48.63 114.52 98.46 64 159.08 64c44.08 0 74.61 24.83 92.39 45.51a6 6 0 009.06 0C278.31 88.81 308.84 64 352.92 64c60.62 0 110.45 50.52 111.08 112.64.54 54.21-18.63 104.26-58.61 153-18.77 22.87-52.8 59.45-131.39 112.8a32 32 0 01-18 5.56z"}}]})(e)}function F(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"40",d:"M160 164s1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 298.36 248 324"}},{tag:"circle",attr:{cx:"248",cy:"399.99",r:"32"}}]})(e)}function B(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M261.56 101.28a8 8 0 00-11.06 0L66.4 277.15a8 8 0 00-2.47 5.79L63.9 448a32 32 0 0032 32H192a16 16 0 0016-16V328a8 8 0 018-8h80a8 8 0 018 8v136a16 16 0 0016 16h96.06a32 32 0 0032-32V282.94a8 8 0 00-2.47-5.79z"}},{tag:"path",attr:{d:"M490.91 244.15l-74.8-71.56V64a16 16 0 00-16-16h-48a16 16 0 00-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0043 267.56L250.5 69.28a8 8 0 0111.06 0l207.52 198.28a16 16 0 0022.59-.44c6.14-6.36 5.63-16.86-.76-22.97z"}}]})(e)}function D(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M183 352c-21.84-.52-39-18.9-39-40.74v-34.07a8 8 0 00-6-7.74c-33.75-8.85-58-39.71-58-77.45a80.14 80.14 0 0166.27-78.82 8 8 0 006.62-6.83 104 104 0 01206.22 0 8 8 0 006.62 6.83A80 80 0 01352 272a74.33 74.33 0 01-47.45-17.41 7.93 7.93 0 00-9.92-.14A62.89 62.89 0 01256 268a80.47 80.47 0 01-21.8-3.18 8 8 0 00-10.2 7.69V312a40 40 0 01-41 40z"}},{tag:"path",attr:{d:"M263.39 299.7a8 8 0 00-7.39 7.91V312a72.11 72.11 0 01-50.69 68.76 8 8 0 00-4.91 10.78l40.91 94.8A16 16 0 00256 496a16 16 0 0014.69-9.7l73.78-172.15a8 8 0 00-6.2-11.07 106.31 106.31 0 01-35.9-11.59 8 8 0 00-7.13-.2 95 95 0 01-31.85 8.41z"}}]})(e)}function z(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 64H96a64.07 64.07 0 00-64 64v256a64.07 64.07 0 0064 64h320a64.07 64.07 0 0064-64V128a64.07 64.07 0 00-64-64zm-80 64a48 48 0 11-48 48 48.05 48.05 0 0148-48zM96 416a32 32 0 01-32-32v-67.63l94.84-84.3a48.06 48.06 0 0165.8 1.9l64.95 64.81L172.37 416zm352-32a32 32 0 01-32 32H217.63l121.42-121.42a47.72 47.72 0 0161.64-.16L448 333.84z"}}]})(e)}function U(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"40",d:"M196 220h64v172"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"40",d:"M187 396h138"}},{tag:"path",attr:{d:"M256 160a32 32 0 1132-32 32 32 0 01-32 32z"}}]})(e)}function H(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M160 144h288M160 256h288M160 368h288"}},{tag:"circle",attr:{cx:"80",cy:"144",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"80",cy:"256",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}},{tag:"circle",attr:{cx:"80",cy:"368",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}}]})(e)}function V(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 48c-79.5 0-144 61.39-144 137 0 87 96 224.87 131.25 272.49a15.77 15.77 0 0025.5 0C304 409.89 400 272.07 400 185c0-75.61-64.5-137-144-137z"}},{tag:"circle",attr:{cx:"256",cy:"192",r:"48",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}}]})(e)}function q(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192h-16v-80a96 96 0 10-192 0v80h-16a64.07 64.07 0 00-64 64v176a64.07 64.07 0 0064 64h224a64.07 64.07 0 0064-64V256a64.07 64.07 0 00-64-64zm-48 0H192v-80a64 64 0 11128 0z"}}]})(e)}function W(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192H192v-80a64 64 0 11128 0 16 16 0 0032 0 96 96 0 10-192 0v80h-16a64.07 64.07 0 00-64 64v176a64.07 64.07 0 0064 64h224a64.07 64.07 0 0064-64V256a64.07 64.07 0 00-64-64z"}}]})(e)}function Z(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M480 257.35c0-123.7-100.3-224-224-224s-224 100.3-224 224c0 111.8 81.9 204.47 189 221.29V322.12h-56.89v-64.77H221V208c0-56.13 33.45-87.16 84.61-87.16 24.51 0 50.15 4.38 50.15 4.38v55.13H327.5c-27.81 0-36.51 17.26-36.51 35v42h62.12l-9.92 64.77H291v156.54c107.1-16.81 189-109.48 189-221.31z"}}]})(e)}function G(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.33 69.33a93.62 93.62 0 0193.34 93.34v186.66a93.62 93.62 0 01-93.34 93.34H162.67a93.62 93.62 0 01-93.34-93.34V162.67a93.62 93.62 0 0193.34-93.34h186.66m0-37.33H162.67C90.8 32 32 90.8 32 162.67v186.66C32 421.2 90.8 480 162.67 480h186.66C421.2 480 480 421.2 480 349.33V162.67C480 90.8 421.2 32 349.33 32z"}},{tag:"path",attr:{d:"M377.33 162.67a28 28 0 1128-28 27.94 27.94 0 01-28 28zM256 181.33A74.67 74.67 0 11181.33 256 74.75 74.75 0 01256 181.33m0-37.33a112 112 0 10112 112 112 112 0 00-112-112z"}}]})(e)}function J(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M444.17 32H70.28C49.85 32 32 46.7 32 66.89v374.72C32 461.91 49.85 480 70.28 480h373.78c20.54 0 35.94-18.21 35.94-38.39V66.89C480.12 46.7 464.6 32 444.17 32zm-273.3 373.43h-64.18V205.88h64.18zM141 175.54h-.46c-20.54 0-33.84-15.29-33.84-34.43 0-19.49 13.65-34.42 34.65-34.42s33.85 14.82 34.31 34.42c-.01 19.14-13.31 34.43-34.66 34.43zm264.43 229.89h-64.18V296.32c0-26.14-9.34-44-32.56-44-17.74 0-28.24 12-32.91 23.69-1.75 4.2-2.22 9.92-2.22 15.76v113.66h-64.18V205.88h64.18v27.77c9.34-13.3 23.93-32.44 57.88-32.44 42.13 0 74 27.77 74 87.64z"}}]})(e)}function K(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"320",x:"48",y:"96",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"40",ry:"40"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M112 160l144 112 144-112"}}]})(e)}function Q(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M313.27 124.64L198.73 51.36
20a32 32 0 00-29.28.35L56.51 127.49A16 16 0 0048 141.63v295.8a16 16 0 0023.49 14.14l97.82-63.79a32 32 0 0129.5-.24l111.86 73a32 32 0 0029.27-.11l115.43-75.94a16 16 0 008.63-14.2V74.57a16 16 0 00-23.49-14.14l-98 63.86a32 32 0 01-29.24.35zM328 128v336M184 48v336"}}]})(e)}function X(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48.17 113.34A32 32 0 0032 141.24V438a32 32 0 0047 28.37c.43-.23.85-.47 1.26-.74l84.14-55.05a8 8 0 003.63-6.72V46.45a8 8 0 00-12.51-6.63zm164.19-74.03A8 8 0 00200 46v357.56a8 8 0 003.63 6.72l96 62.42A8 8 0 00312 466V108.67a8 8 0 00-3.64-6.73zm252.17 7.16a31.64 31.64 0 00-31.5-.88 12.07 12.07 0 00-1.25.74l-84.15 55a8 8 0 00-3.63 6.72v357.46a8 8 0 0012.52 6.63l107.07-73.46a32 32 0 0016.41-28v-296a32.76 32.76 0 00-15.47-28.21z"}}]})(e)}function Y(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z"}}]})(e)}function ee(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"48",d:"M88 152h336M88 256h336M88 360h336"}}]})(e)}function et(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72"}}]})(e)}function er(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28L86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44l-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 000-23.34l-.75-.75a16.51 16.51 0 00-23.35 0z"}}]})(e)}function en(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M402 168c-2.93 40.67-33.1 72-66 72s-63.12-31.32-66-72c-3-42.31 26.37-72 66-72s69 30.46 66 72z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M336 304c-65.17 0-127.84 32.37-143.54 95.41-2.08 8.34 3.15 16.59 11.72 16.59h263.65c8.57 0 13.77-8.25 11.72-16.59C463.85 335.36 401.18 304 336 304z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M200 185.94c-2.34 32.48-26.72 58.06-53 58.06s-50.7-25.57-53-58.06C91.61 152.15 115.34 128 147 128s55.39 24.77 53 57.94z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M206 306c-18.05-8.27-37.93-11.45-59-11.45-52 0-102.1 25.85-114.65 76.2-1.65 6.66 2.53 13.25 9.37 13.25H154"}}]})(e)}function ei(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 256c-20.56 0-40.44-9.18-56-25.84-15.13-16.25-24.37-37.92-26-61-1.74-24.62 5.77-47.26 21.14-63.76S312 80 336 80c23.83 0 45.38 9.06 60.7 25.52 15.47 16.62 23 39.22 21.26 63.63-1.67 23.11-10.9 44.77-26 61C376.44 246.82 356.57 256 336 256zm66-88zm65.83 264H204.18a27.71 27.71 0 01-22-10.67 30.22 30.22 0 01-5.26-25.79c8.42-33.81 29.28-61.85 60.32-81.08C264.79 297.4 299.86 288 336 288c36.85 0 71 9 98.71 26.05 31.11 19.13 52 47.33 60.38 81.55a30.27 30.27 0 01-5.32 25.78A27.68 27.68 0 01467.83 432zM147 260c-35.19 0-66.13-32.72-69-72.93-1.42-20.6 5-39.65 18-53.62 12.86-13.83 31-21.45 51-21.45s38 7.66 50.93 21.57c13.1 14.08 19.5 33.09 18 53.52-2.87 40.2-33.8 72.91-68.93 72.91zm65.66 31.45c-17.59-8.6-40.42-12.9-65.65-12.9-29.46 0-58.07 7.68-80.57 21.62-25.51 15.83-42.67 38.88-49.6 66.71a27.39 27.39 0 004.79 23.36A25.32 25.32 0 0041.72 400h111a8 8 0 007.87-6.57c.11-.63.25-1.26.41-1.88 8.48-34.06 28.35-62.84 57.71-83.82a8 8 0 00-.63-13.39c-1.57-.92-3.37-1.89-5.42-2.89z"}}]})(e)}function eo(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm2 96a72 72 0 11-72 72 72 72 0 0172-72zm-2 288a175.55 175.55 0 01-129.18-56.6C135.66 329.62 215.06 320 256 320s120.34 9.62 129.18 55.39A175.52 175.52 0 01256 432z"}}]})(e)}function es(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-2
2008S370.69 48 256 48zm-50.22 116.82C218.45 151.39 236.28 144 256 144s37.39 7.44 50.11 20.94c12.89 13.68 19.16 32.06 17.68 51.82C320.83 256 290.43 288 256 288s-64.89-32-67.79-71.25c-1.47-19.92 4.79-38.36 17.57-51.93zM256 432a175.49 175.49 0 01-126-53.22 122.91 122.91 0 0135.14-33.44C190.63 329 222.89 320 256 320s65.37 9 90.83 25.34A122.87 122.87 0 01382 378.78 175.45 175.45 0 01256 432z"}}]})(e)}function ea(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6zM432 480H80a31 31 0 01-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75 1.94 10.73-.68 21.34-7.18 29.11A31 31 0 01432 480z"}}]})(e)}function el(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"256",height:"480",x:"128",y:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 16h24a8 8 0 018 8h0a16 16 0 0016 16h64a16 16 0 0016-16h0a8 8 0 018-8h24"}}]})(e)}function eu(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M66.1 357a16 16 0 01-14.61-9.46A224 224 0 01256 32a16 16 0 0116 16v208a16 16 0 01-9.47 14.61l-189.9 84.95A15.93 15.93 0 0166.1 357z"}},{tag:"path",attr:{d:"M313.59 68.18A8 8 0 00304 76v180a48.07 48.07 0 01-28.4 43.82L103.13 377a8 8 0 00-3.35 11.81 208.42 208.42 0 0048.46 50.41A206.32 206.32 0 00272 480c114.69 0 208-93.31 208-208 0-100.45-71.58-184.5-166.41-203.82z"}}]})(e)}function ec(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 183.8v-123A44.66 44.66 0 00403.29 16H280.36a30.62 30.62 0 00-21.51 8.89L13.09 270.58a44.86 44.86 0 000 63.34l117 117a44.84 44.84 0 0063.33 0l245.69-245.61A30.6 30.6 0 00448 183.8zM352 144a32 32 0 1132-32 32 32 0 01-32 32z"}},{tag:"path",attr:{d:"M496 64a16 16 0 00-16 16v127.37L218.69 468.69a16 16 0 1022.62 22.62l262-262A29.84 29.84 0 00512 208V80a16 16 0 00-16-16z"}}]})(e)}function ed(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"80",height:"80",x:"336",y:"336",rx:"8",ry:"8"}},{tag:"rect",attr:{width:"64",height:"64",x:"272",y:"272",rx:"8",ry:"8"}},{tag:"rect",attr:{width:"64",height:"64",x:"416",y:"416",rx:"8",ry:"8"}},{tag:"rect",attr:{width:"48",height:"48",x:"432",y:"272",rx:"8",ry:"8"}},{tag:"rect",attr:{width:"48",height:"48",x:"272",y:"432",rx:"8",ry:"8"}},{tag:"path",attr:{d:"M448 32H304a32 32 0 00-32 32v144a32 32 0 0032 32h144a32 32 0 0032-32V64a32 32 0 00-32-32zm-32 136a8 8 0 01-8 8h-64a8 8 0 01-8-8v-64a8 8 0 018-8h64a8 8 0 018 8zM208 32H64a32 32 0 00-32 32v144a32 32 0 0032 32h144a32 32 0 0032-32V64a32 32 0 00-32-32zm-32 136a8 8 0 01-8 8h-64a8 8 0 01-8-8v-64a8 8 0 018-8h64a8 8 0 018 8zm32 104H64a32 32 0 00-32 32v144a32 32 0 0032 32h144a32 32 0 0032-32V304a32 32 0 00-32-32zm-32 136a8 8 0 01-8 8h-64a8 8 0 01-8-8v-64a8 8 0 018-8h64a8 8 0 018 8z"}}]})(e)}function eh(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 256H112"}}]})(e)}function ef(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29L448 448"}}]})(e)}function ep(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0034.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 00327.3 362.6l94.09 94.09a25 25 0 0035.3-35.3zM97.92 222.72a124.8 124.8 0 11124.8 124.8 124.95 124.95 0 01-124.8-124.8z"}}]})(e)}function eg(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 192h40a40 40 0 0140 40v192a40 40 0 01-40 40H136a40 40 0 01-40-40V232a4
200 40 0 0140-40h40m160-64l-80-80-80 80m80 193V48"}}]})(e)}function ev(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M425.7 118.25A240 240 0 0076.32 447l.18.2c.33.35.64.71 1 1.05.74.84 1.58 1.79 2.57 2.78a41.17 41.17 0 0060.36-.42 157.13 157.13 0 01231.26 0 41.18 41.18 0 0060.65.06l3.21-3.5.18-.2a239.93 239.93 0 00-10-328.76zM240 128a16 16 0 0132 0v32a16 16 0 01-32 0zM128 304H96a16 16 0 010-32h32a16 16 0 010 32zm48.8-95.2a16 16 0 01-22.62 0l-22.63-22.62a16 16 0 0122.63-22.63l22.62 22.63a16 16 0 010 22.62zm149.3 23.1l-47.5 75.5a31 31 0 01-7 7 30.11 30.11 0 01-35-49l75.5-47.5a10.23 10.23 0 0111.7 0 10.06 10.06 0 012.3 14zm31.72-23.1a16 16 0 01-22.62-22.62l22.62-22.63a16 16 0 0122.63 22.63zm65.88 227.6zM416 304h-32a16 16 0 010-32h32a16 16 0 010 32z"}}]})(e)}function em(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"}}]})(e)}function ey(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 496H72a24 24 0 01-24-24V328a24 24 0 0124-24h32a24 24 0 0124 24v144a24 24 0 01-24 24zm224 0h-32a24 24 0 01-24-24V232a24 24 0 0124-24h32a24 24 0 0124 24v240a24 24 0 01-24 24zm112 0h-32a24 24 0 01-24-24V120a24 24 0 0124-24h32a24 24 0 0124 24v352a24 24 0 01-24 24zm-224 0h-32a24 24 0 01-24-24V40a24 24 0 0124-24h32a24 24 0 0124 24v432a24 24 0 01-24 24z"}}]})(e)}function eb(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 128v144h96"}}]})(e)}function e_(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 01-16-16V128a16 16 0 0132 0v128h80a16 16 0 010 32z"}}]})(e)}function ew(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 144l-28.67 275.74A32 32 0 01371.55 448H140.46a32 32 0 01-31.78-28.26L80 144"}},{tag:"rect",attr:{width:"448",height:"80",x:"32",y:"64",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"16",ry:"16"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M312 240L200 352m112 0L200 240"}}]})(e)}function ek(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"80",x:"32",y:"48",rx:"32",ry:"32"}},{tag:"path",attr:{d:"M74.45 160a8 8 0 00-8 8.83l26.31 252.56a1.5 1.5 0 000 .22A48 48 0 00140.45 464h231.09a48 48 0 0047.67-42.39v-.21l26.27-252.57a8 8 0 00-8-8.83zm248.86 180.69a16 16 0 11-22.63 22.62L256 318.63l-44.69 44.68a16 16 0 01-22.63-22.62L233.37 296l-44.69-44.69a16 16 0 0122.63-22.62L256 273.37l44.68-44.68a16 16 0 0122.63 22.62L278.62 296z"}}]})(e)}function ex(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352 144h112v112"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M48 368l121.37-121.37a32 32 0 0145.26 0l50.74 50.74a32 32 0 0045.26 0L448 160"}}]})(e)}function eS(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M264 416.19a23.92 23.92 0 01-14.21-4.69l-.66-.51-91.46-75H88a24 24 0 01-24-24V200a24 24 0 0124-24h69.65l91.46-75 .66-.51A24 24 0 01288 119.83v272.34a24 24 0 01-24 24zM352 336a16 16 0 01-14.29-23.18c9.49-18.9 14.3-38 14.3-56.82 0-19.36-4.66-37.92-14.25-56.73a16 16 0 0128.5-14.54C378.2 208.16 384 231.47 384 256c0 23.83-6 47.78-17.7 71.18A16 16 0 01352 336z"}},{tag:"path",attr:{d:"M400 384a16 16 0 01-13.87-24C405 327.05 416 299.45 416 256c0-44.12-10.94-71.52-29.83-103.95A16 16 0 01413.83 136C434.92 172.16 448 204.88 448 256c0 50.36-13.06 83.24-34.12 120a16 16 0 01-13.88 8z"}}]})(e)}function eE(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(e)}},88357:function(e,t,r){"use strict";r.d(t,{w_:function(){return l}});var n=r(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function l(e){return function(t){return n.createElement(u,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,s({key:r},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var r,i=e.attr,o=e.size,l=e.title,u=a(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"
20currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:s(s({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},59852:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(72784),i=r(52943),o=r(52288),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setFocused(e):r.onFocus()})},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(e){e()})},r.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},46747:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S}});var n=r(89043),i=r(86755);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},41909:function(e,t,r){"use strict";r.d(t,{E:function(){return o},j:function(){return i}});var n=console;function i(){return n}function o(e){n=e}},81262:function(e,t,r){"use strict";r.d(t,{R:function(){return u},m:function(){return l}});var n=r(64312),i=r(41909),o=r(101),s=r(21216),a=r(52288),l=function(){function e(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||u(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(a.ZT).catch(a.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),n.then(function(){return t.executeMutation()}).then(function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new s.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}
20(this.state,e),o.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}();function u(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},101:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(52288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];t.schedule(function(){e.apply(void 0,n)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n.A4)(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},40068:function(e,t,r){"use strict";r.d(t,{N:function(){return s}});var n=r(72784),i=r(52943),o=r(52288),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?r.setOnline(e):r.onOnline()})},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(e){e()})},r.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},89043:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});
20var n=r(64312),i=r(52288),o=r(72784),s=r(101),a=r(41909),l=r(21216),u=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,o=this.state.data,s=(0,i.SE)(e,o);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,o,s))?s=o:!1!==this.options.structuralSharing&&(s=(0,i.Q$)(o,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,o,s,u,c,d=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(r=this.retryer)||r.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var h=this.observers.find(function(e){return e.options.queryFn});h&&this.setOptions(h.options)}var f=(0,i.mc)(this.queryKey),p=(0,i.G9)(),g={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(p)return d.abortSignalConsumed=!0,p.signal}});var v={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return d.options.queryFn?(d.abortSignalConsumed=!1,d.options.queryFn(g)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(s=this.options.behavior)?void 0:s.onFetch)&&(null==(n=this.options.behavior)||n.onFetch(v)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(u=v.fetchOptions)?void 0:u.meta)||this.dispatch({type:"fetch",meta:null==(o=v.fetchOptions)?void 0:o.meta}),this.retryer=new l.m4({fn:v.fetchFn,abort:null==p?void 0:null==(c=p.abort)?void 0:c.bind(p),onSuccess:function(e){d.setData(e),null==d.cache.config.onSuccess||d.cache.config.onSuccess(e,d),0===d.cacheTime&&d.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||d.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==d.cache.config.onError||d.cache.config.onError(e,d),(0,a.j)().error(e)),0===d.cacheTime&&d.optionalRemove()},onFail:function(){d.dispatch({type:"failed"})},onPause:function(){d.dispatch({type:"pause"})},onContinue:function(){d.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),s.V.batch(function(){t.observers.forEac
20h(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,i;switch(t.type){case"failed":return(0,n.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"fetch":return(0,n.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;if((0,l.DV)(o)&&o.revert&&this.revertState)return(0,n.Z)({},this.revertState);return(0,n.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.Z)({},e,{isInvalidated:!0});case"setState":return(0,n.Z)({},e,t.state);default:return e}},e}(),c=r(52943),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,o.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,o=t.queryKey,s=null!=(n=t.queryHash)?n:(0,i.Rm)(o,t),a=this.get(s);return a||(a=new u({cache:this,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(a)),a},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,i.I6)(e,t)[0];return void 0===r.exact&&(r.exact=!0),this.queries.find(function(e){return(0,i._x)(r,e)})},r.findAll=function(e,t){var r=(0,i.I6)(e,t)[0];return Object.keys(r).length>0?this.queries.filter(function(e){return(0,i._x)(r,e)}):this.queries},r.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},r.onFocus=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},r.onOnline=function(){var e=this;s.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(c.l),h=r(81262),f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,o.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new h.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},r.clear=function(){var e=this;s.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},r.getAll=function(){return this.mutations},r.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,i.X7)(e,t)})},r.findAll=function(e){return this.mutations.filter(function(t){return(0,i.X7)(e,t)})},r.notify=function(e){var t=this;s.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPau
20sed});return s.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(i.ZT)})},Promise.resolve())})},t}(c.l),p=r(59852),g=r(40068);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var m=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe(function(){p.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=g.N.subscribe(function(){p.j.isFocused()&&g.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,i.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,r){var n=(0,i._v)(e),o=this.defaultQueryOptions(n);return this.queryCache.build(this,o).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return s.V.batch(function(){return n.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,n.setQueryData(i,t,r)]})})},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,i.I6)(e,t)[0],n=this.queryCache;s.V.batch(function(){n.findAll(r).forEach(function(e){n.remove(e)})})},t.resetQueries=function(e,t,r){var o=this,a=(0,i.I6)(e,t,r),l=a[0],u=a[1],c=this.queryCache,d=(0,n.Z)({},l,{active:!0});return s.V.batch(function(){return c.findAll(l).forEach(function(e){e.reset()}),o.refetchQueries(d,u)})},t.cancelQueries=function(e,t,r){var n=this,o=(0,i.I6)(e,t,r),a=o[0],l=o[1],u=void 0===l?{}:l;return void 0===u.revert&&(u.revert=!0),Promise.all(s.V.batch(function(){return n.queryCache.findAll(a).map(function(e){return e.cancel(u)})})).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,r){var o,a,l,u=this,c=(0,i.I6)(e,t,r),d=c[0],h=c[1],f=(0,n.Z)({},d,{active:null==(o=null!=(a=d.refetchActive)?a:d.active)||o,inactive:null!=(l=d.refetchInactive)&&l});return s.V.batch(function(){return u.queryCache.findAll(d).forEach(function(e){e.invalidate()}),u.refetchQueries(f,h)})},t.refetchQueries=function(e,t,r){var o=this,a=(0,i.I6)(e,t,r),l=a[0],u=a[1],c=Promise.all(s.V.batch(function(){return o.queryCache.findAll(l).map(function(e){return e.fetch(void 0,(0,n.Z)({},u,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))})})).then(i.ZT);return(null==u?void 0:u.throwOnError)||(c=c.catch(i.ZT)),c},t.fetchQuery=function(e,t,r){var n=(0,i._v)(e,t,r),o=this.defaultQueryOptions(n);void 0===o.retry&&(o.retry=!1);var s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,i._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,o,s,a,u,c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)?void 0:null==(o=n.meta)?void 0:o.fetchMore,h=null==d?void 0:d.pageParam,f=(null==d?void 0:d.direction)==="forward",p=(null==d?void 0:d.direction)==="backward",g=(null==(s=e.state.data)?void 0:s.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],y=(0,i.G9)(),b=null==y?void 0:y.signal,_=m,w=!1,k=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(e,t,r,n){return _=n?[t].concat(_):[].concat(_,[t]),n?[r].concat(e):[].concat(e,[r])},S=function(t,r,n,i){if(w)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);var o=k({queryKey:e.queryKey,signal:b,pageParam:n,meta:e.meta}),s=Promise.resolve(o).then(function(e){return x(t,n,e,i)});return(0,l.LE)(o)&&(s.cancel=o.cancel),s};if(g.length){if(f){var E=void 0!==h,O=E?h:v(e.options,g);u=S(g,E,O)}else if(p){var C,P=void 0!==h,T=P?h:null==(C=e.options).getPreviousPageParam?void 0:C.getPreviousPageParam(g[0],g);u=S(g,P,T,!0)}else!function(){_=[];var t=void 0===e.options.getNextPageParam;u=!c||!g[0]||c(g[0],0,g)?S([],t,m[0]):Promise.resolve(x([],m[0],g[0]));for(var r=function(r){u=u.then(function(n){if(!c||!g[r]||c(g[r],r,g)){var i=t?m[r]:v(e.options,n);return S(n,t,i)}return Promise.resolve(x(n,m[r],g[r]))})},n=1;n<g.length;n++)r(n)}()}else u=S([]);var I=u.then(function(e){return{pages:e,pageParams:_}});return I.cancel=function(){w=!0,null==y||y.abort(),(0,l.LE)(u)&&u.cancel()},I}}},this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this;
20return Promise.all(s.V.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)});r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,i.to)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)});r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,i.to)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},21216:function(e,t,r){"use strict";r.d(t,{DV:function(){return u},LE:function(){return a},m4:function(){return c}});var n=r(59852),i=r(40068),o=r(52288);function s(e){return Math.min(1e3*Math.pow(2,e),3e4)}function a(e){return"function"==typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function u(e){return e instanceof l}var c=function(e){var t,r,u,c,d=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){u=e,c=t});var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),u(t))},p=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),c(t))};!function u(){var c;if(!d.isResolved){try{c=e.fn()}catch(e){c=Promise.reject(e)}t=function(e){if(!d.isResolved&&(p(new l(e)),null==d.abort||d.abort(),a(c)))try{c.cancel()}catch(e){}},d.isTransportCancelable=a(c),Promise.resolve(c).then(f).catch(function(t){if(!d.isResolved){var a,l,c=null!=(a=e.retry)?a:3,f=null!=(l=e.retryDelay)?l:s,g="function"==typeof f?f(d.failureCount,t):f,v=!0===c||"number"==typeof c&&d.failureCount<c||"function"==typeof c&&c(d.failureCount,t);if(h||!v){p(t);return}d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(g).then(function(){if(!n.j.isFocused()||!i.N.isOnline())return new Promise(function(t){r=t,d.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){r=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){h?p(t):u()})}})}}()}},52943:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==r}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},86755:function(){},52288:function(e,t,r){"use strict";r.d(t,{A4:function(){return x},G9:function(){return S},Gh:function(){return k},I6:function(){return h},Kp:function(){return u},PN:function(){return a},Q$:function(){return function e(t,r){if(t===r)return t;var n=Array.isArray(t)&&Array.isArray(r);if(n||b(t)&&b(r)){for(var i=n?t.length:Object.keys(t).length,o=n?r:Object.keys(r),s=o.length,a=n?[]:{},l=0,u=0;u<s;u++){var c=n?u:o[u];a[c]=e(t[c],r[c]),a[c]===t[c]&&l++}return i===s&&l===i?t:a}return r}},Rm:function(){return g},SE:function(){return s},VS:function(){return y},X7:function(){return p},ZT:function(){return o},_v:function(){return c},_x:function(){return f},lV:function(){return d},mc:function(){return l},sk:function(){return i},to:function(){return m},yF:function(){return v}});var n=r(64312),i="undefined"==typeof window;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,r){return w(e)?"function"==typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function d(e,t,r){return w(e)?"function"==typeof t?(0,n.Z)({},r,{mutationKey:e,mutationFn:t}):(0,n.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,n.Z)({},t,{mutationFn:e}):(0,n.Z)({},e)}function h(e,t,r){return w(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function f(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,l=e.stale;if(w(a)){if(n){if(t.queryHash!==g(a,t.options))return!1}else if(!m(t.queryKey,a))return!1}var u=!0===r&&!0===o||null==r&&null==o?"all":!1===r&&!1===o?"none":(null!=r?r:!o)?"active":"inactive";if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c||"inactive"===u&&c)return!1}return("boolean"!=typeof l||t.isStale()===l)&&("boolean"!=typeof i||t.isFetching()===i)&&(!s||!!s(t))}function p(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(r){if(v(t.options.mutationKey)!==v(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function g(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){return JSON.stringify(l(e),function(e,t){return b(t)?Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{}):t})}function m(e,t){return function e(t,r){return t===r||typeof t==typeof r&&!!t&&!!r&&"object"==typeof t&&"object"==typeof r&&!Object.keys(r).some(function(n){return!e(t[n],r[n])})}(l(e),l(t))}function y(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function b(e){if(!_(e))return!1;var t=e.constructor;if(void 0===t)return!0;var r=t.prototype;return!!(_(r)&&r.hasOwnProperty("isPrototypeOf"))}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function k(e){return new Promise(function(t){setTimeout(t,e)})}function x(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function S(){if("function"==typeof AbortController)return new AbortController}},88767:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQuery:function(){return i.useQuery},useQueryClient:function(){return i.useQueryClient}});var n=r(46747);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var i=r(48073)},48073:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return f},useMutation:function(){return w},useQuery:function(){return I},useQueryClient:function(){return h}});var n,i=r(101),o=r(73935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var s=r(41909),a=console;(0,s.E)(a);var l=r(67294),u=l.createContext(void 0),c=l.createContext(!1);function d(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=u),window.ReactQueryClientContext):u}var h=function(){var e=l.useContext(d(l.useContext(c)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e}
20,f=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,i=e.children;l.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=d(n);return l.createElement(c.Provider,{value:n},l.createElement(o.Provider,{value:t},i))},p=r(64312),g=r(52288),v=r(72784),m=r(81262),y=r(52943),b=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,v.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},r.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},r.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,p.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,m.R)(),t=(0,p.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},r.notify=function(e){var t=this;i.V.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(y.l);function _(e,t,r){return"function"==typeof t?t.apply(void 0,r):"boolean"==typeof t?t:!!e}function w(e,t,r){var n=l.useRef(!1),o=l.useState(0)[1],s=(0,g.lV)(e,t,r),a=h(),u=l.useRef();u.current?u.current.setOptions(s):u.current=new b(a,s);var c=u.current.getCurrentResult();l.useEffect(function(){n.current=!0;var e=u.current.subscribe(i.V.batchCalls(function(){n.current&&o(function(e){return e+1})}));return function(){n.current=!1,e()}},[]);var d=l.useCallback(function(e,t){u.current.mutate(e,t).catch(g.ZT)},[]);if(c.error&&_(void 0,u.current.options.useErrorBoundary,[c.error]))throw c.error;return(0,p.Z)({},c,{mutate:d,mutateAsync:c.mutate})}var k=r(59852),x=r(21216),S=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,v.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),E(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return O(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return O(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&C(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},i=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i("error"),n},r.getNextResult=function(e){var t=this;return new Promise(function(r,n){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,p.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then(function(){return t.createResult(n,r)})},r.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},r.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackgroun
20d||k.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n,i=this.currentQuery,o=this.options,a=this.currentResult,l=this.currentResultState,u=this.currentResultOptions,c=e!==i,d=c?e.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,f=e.state,p=f.dataUpdatedAt,v=f.error,m=f.errorUpdatedAt,y=f.isFetching,b=f.status,_=!1,w=!1;if(t.optimisticResults){var k=this.hasListeners(),x=!k&&E(e,t),S=k&&C(e,i,t,o);(x||S)&&(y=!0,p||(b="loading"))}if(t.keepPreviousData&&!f.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==b)r=h.data,p=h.dataUpdatedAt,b=h.status,_=!0;else if(t.select&&void 0!==f.data){if(a&&f.data===(null==l?void 0:l.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(f.data),!1!==t.structuralSharing&&(r=(0,g.Q$)(null==a?void 0:a.data,r)),this.selectResult=r,this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}}else r=f.data;if(void 0!==t.placeholderData&&void 0===r&&("loading"===b||"idle"===b)){if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))n=a.data;else if(n="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==n)try{n=t.select(n),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==a?void 0:a.data,n)),this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}void 0!==n&&(b="success",r=n,w=!0)}return this.selectError&&(v=this.selectError,r=this.selectResult,m=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:r,dataUpdatedAt:p,error:v,errorUpdatedAt:m,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==b,isLoadingError:"error"===b&&0===f.dataUpdatedAt,isPlaceholderData:w,isPreviousData:_,isRefetchError:"error"===b&&0!==f.dataUpdatedAt,isStale:P(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,i=r.notifyOnChangePropsExclusions;if(!n&&!i||"tracked"===n&&!this.trackedProps.length)return!0;var o="tracked"===n?this.trackedProps:n;return Object.keys(e).some(function(r){var n=e[r]!==t[r],s=null==o?void 0:o.some(function(e){return e===r}),a=null==i?void 0:i.some(function(e){return e===r});return n&&!a&&(!o||s)})},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var r={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,p.Z)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,x.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;i.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
20h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(y.l);function E(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&O(e,t,t.refetchOnMount)}function O(e,t,r){if(!1!==t.enabled){var n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&P(e,t)}return!1}function C(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&P(e,r)}function P(e,t){return e.isStaleByTime(t.staleTime)}var T=l.createContext((n=!1,{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}));function I(e,t,r){return function(e,t){var r=l.useRef(!1),n=l.useState(0)[1],o=h(),s=l.useContext(T),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=i.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=i.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=i.V.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&!s.isReset()&&(a.retryOnMount=!1);var u=l.useState(function(){return new t(o,a)})[0],c=u.getOptimisticResult(a);if(l.useEffect(function(){r.current=!0,s.clearReset();var e=u.subscribe(i.V.batchCalls(function(){r.current&&n(function(e){return e+1})}));return u.updateResult(),function(){r.current=!1,e()}},[s,u]),l.useEffect(function(){u.setOptions(a,{listeners:!1})},[a,u]),a.suspense&&c.isLoading)throw u.fetchOptimistic(a).then(function(e){var t=e.data;null==a.onSuccess||a.onSuccess(t),null==a.onSettled||a.onSettled(t,null)}).catch(function(e){s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if(c.isError&&!s.isReset()&&!c.isFetching&&_(a.suspense,a.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return"tracked"===a.notifyOnChangeProps&&(c=u.trackResult(c,a)),c}((0,g._v)(e,t,r),S)}},69328:function(e){"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,n){var i,o,s,a,l=e.split(";").filter(r),u=(i=l.shift(),o="",s="",(a=i.split("=")).length>1?(o=a.shift(),s=a.join("=")):s=i,{name:o,value:s}),c=u.name,d=u.value;n=n?Object.assign({},t,n):t;try{d=n.decodeValues?decodeURIComponent(d):d}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+d+"'. Set options.decodeValues to false to disable this feature.",e)}var h={name:c,value:d};return l.forEach(function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?h.expires=new Date(n):"max-age"===r?h.maxAge=parseInt(n,10):"secure"===r?h.secure=!0:"httponly"===r?h.httpOnly=!0:"samesite"===r?h.sameSite=n:h[r]=n}),h}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)return i.map?{}:[];if(e.headers){if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var o=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}}return(Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map)?e.filter(r).reduce(function(e,t){var r=n(t,i);return e[r.name]=r,e},{}):e.filter(r).map(function(e){return n(e,i)})}e.exports=i,e.exports.parse=i,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,s=[],a=0;function l(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,o=!1;l();)if(","===(r=e.charAt(a))){for(n=a,a+=1,l(),i=a;a<e.length&&"="!==(r=e.charAt(a))&&";"!==r&&","!==r;)a+=1;a<e.length&&"="===e.charAt(a)?(o=!0,a=i,s.push(e.substring(t,n)),t=a):a=n+1}else a+=1;(!o||a>=e.length)&&s.push(e.substring(t,e.length))}return s}},71739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},45840:function(e,t,r){if("object"==typeof globalThis)n=globalThis;else try{n=r(284)}catch(e){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw Error("Could not determine global this")}var n,i=n.WebSocket||n.MozWebSocket,o=r(79387);function s(e,t){return t?new i(e,t):new i(e)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(s,e,{get:function(){return i[e]}})}),e.exports={w3cwebsocket:i?s:null,version:o}},79387:function(e,t,r){e.exports=r(19794).version},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
20for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},63366:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r.d(t,{Z:function(){return n}})},68947:function(e,t,r){"use strict";r.r(t),r.d(t,{BrowserCookieAuthStorageAdapter:function(){return tz},CookieAuthStorageAdapter:function(){return tD},DEFAULT_COOKIE_OPTIONS:function(){return tB},createSupabaseClient:function(){return tU},isBrowser:function(){return tF},parseCookies:function(){return tH},parseSupabaseCookie:function(){return tM},serializeCookie:function(){return tV},stringifySupabaseSession:function(){return tN}}),new TextEncoder;let n=new TextDecoder,i=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r};var o,s,a,l,u,c,d,h,f,p,g,v,m,y,b,_,w,k,x,S,E,O=crypto;O.getRandomValues.bind(O),Symbol();let C=e=>{let t=e;t instanceof Uint8Array&&(t=n.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return i(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}},P=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>{var t,n,i,o;return t=void 0,n=void 0,i=void 0,o=function*(){return yield(yield Promise.resolve().then(r.t.bind(r,54098,23))).fetch(...e)},new(i||(i=Promise))(function(e,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,a)}l((o=o.apply(t,n||[])).next())})}:fetch),(...e)=>t(...e)};class T extends Error{constructor(e,t="FunctionsError",r){super(e),this.name=t,this.context=r}}class I extends T{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class j extends T{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class R extends T{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}class A{constructor(e,{headers:t={},customFetch:r}={}){this.url=e,this.headers=t,this.fetch=P(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t={}){var r,n,i,o,s;return n=this,i=void 0,o=void 0,s=function*(){try{let n;let{headers:i,method:o,body:s}=t,a={};s&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&("undefined"!=typeof Blob&&s instanceof Blob||s instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",n=s):"string"==typeof s?(a["Content-Type"]="text/plain",n=s):"undefined"!=typeof FormData&&s instanceof FormData?n=s:(a["Content-Type"]="application/json",n=JSON.stringify(s)));let l=yield this.fetch(`${this.url}/${e}`,{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),i),body:n}).catch(e=>{throw new I(e)}),u=l.headers.get("x-relay-error");if(u&&"true"===u)throw new j(l);if(!l.ok)throw new R(l);let c=(null!==(r=l.headers.get("Content-Type"))&&void 0!==r?r:"text/plain").split(";")[0].trim();return{data:"application/json"===c?yield l.json():"application/octet-stream"===c?yield l.blob():"multipart/form-data"===c?yield l.formData():yield l.text(),error:null}}catch(e){return{data:null,error:e}}},new(o||(o=Promise))(function(e,t){function r(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(r,a)}l((s=s.apply(n,i||[])).next())})}}var L=r(54098),$=r.n(L);class M{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:"undefined"==typeof fetch?this.fetch=$():this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let r=this.fetch,n=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,r,n;let i=null,o=null,s=null,a=e.status,l=e.statusText;if(e.ok){if("HEAD"!==this.method){let t=await e.text();""===t||(o="text/csv"===this.headers.Accept?t:this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?t:JSON.parse(t))}let n=null===(t=this.headers.Prefer)||void 0===t?void 0:t.match(/count=(exact|planned|estimated)/),u=null===(r=e.headers.get("content-range"))||void 0===r?void 0:r.split("/");n&&u&&u.length>1&&(s=parseInt(u[1])),this.isMaybeSingle&&"GET"===this.method&&Array.isArray(o)&&(o.length>1?(i={code:"PGRST116",details:`Results contain ${o.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},o=null,s=null,a=406,l="Not Acceptable"):o=1===o.length?o[0]:null)}else{let t=await e.text();try{i=JSON.parse(t),Array.isArray(i)&&404===e.status&&(o=[],i=null,a=200,l="OK")}catch(r){404===e.status&&""===t?(a=204,l="No Content"):i={message:t}}if(i&&this.isMaybeSingle&&(null===(n=null==i?void 0:i.details)||void 0===n?void 0:n.includes("Results contain 0 rows"))&&(i=null,a=200,l="OK"),i&&this.shouldThrowOnError)throw i}let u={error:i,data:o,count:s,status:a,statusText:l};return u});return this.shouldThrowOnError||(n=n.catch(e=>{var t,r,n;return{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:`${null!==(r=null==e?void 0:e.stack)&&void 0!==r?r:""}`,hint:"",code:`${null!==(n=null==e?void 0:e.code)&&void 0!==n?n:""}`},data:null,count:null,status:0,statusText:""}}
20)),n.then(e,t)}}class N extends M{select(e){let t=!1,r=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n}={}){let i=n?`${n}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${void 0===r?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t}={}){let r=void 0===t?"limit":`${t}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:r}={}){let n=void 0===r?"offset":`${r}.offset`,i=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return"GET"===this.method?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:o="text"}={}){let s=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),a=this.headers.Accept;return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${a}"; options=${s};`,this}rollback(){var e;return(null!==(e=this.headers.Prefer)&&void 0!==e?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class F extends N{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}in(e,t){let r=t.map(e=>"string"==typeof e&&RegExp("[,()]").test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";"plain"===n?i="pl":"phrase"===n?i="ph":"websearch"===n&&(i="w");let o=void 0===r?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t}={}){let r=t?`${t}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}}class B{constructor(e,{headers:t={},schema:r,fetch:n}){this.url=e,this.headers=t,this.schema=r,this.fetch=n}
20select(e,{head:t=!1,count:r}={}){let n=!1,i=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!n?"":('"'===e&&(n=!n),e)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new F({method:t?"HEAD":"GET",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:t,defaultToNull:r=!0}={}){let n=[];if(this.headers.Prefer&&n.push(this.headers.Prefer),t&&n.push(`count=${t}`),r||n.push("missing=default"),this.headers.Prefer=n.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new F({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){let o=[`resolution=${r?"ignore":"merge"}-duplicates`];if(void 0!==t&&this.url.searchParams.set("on_conflict",t),this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),i||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new F({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:t}={}){let r=[];return this.headers.Prefer&&r.push(this.headers.Prefer),t&&r.push(`count=${t}`),this.headers.Prefer=r.join(","),new F({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){let t=[];return e&&t.push(`count=${e}`),this.headers.Prefer&&t.unshift(this.headers.Prefer),this.headers.Prefer=t.join(","),new F({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}let D={"X-Client-Info":"postgrest-js/1.8.0"};class z{constructor(e,{headers:t={},schema:r,fetch:n}={}){this.url=e,this.headers=Object.assign(Object.assign({},D),t),this.schemaName=r,this.fetch=n}from(e){let t=new URL(`${this.url}/${e}`);return new B(t,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new z(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,t={},{head:r=!1,count:n}={}){let i,o;let s=new URL(`${this.url}/rpc/${e}`);r?(i="HEAD",Object.entries(t).forEach(([e,t])=>{s.searchParams.append(e,`${t}`)})):(i="POST",o=t);let a=Object.assign({},this.headers);return n&&(a.Prefer=`count=${n}`),new F({method:i,url:s,headers:a,schema:this.schemaName,body:o,fetch:this.fetch,allowEmpty:!1})}}var U=r(45840);let H={"X-Client-Info":"realtime-js/2.7.3"};(o=v||(v={}))[o.connecting=0]="connecting",o[o.open=1]="open",o[o.closing=2]="closing",o[o.closed=3]="closed",(s=m||(m={})).closed="closed",s.errored="errored",s.joined="joined",s.joining="joining",s.leaving="leaving",(a=y||(y={})).close="phx_close",a.error="phx_error",a.join="phx_join",a.reply="phx_reply",a.leave="phx_leave",a.access_token="access_token",(b||(b={})).websocket="websocket",(l=_||(_={})).Connecting="connecting",l.Open="open",l.Closing="closing",l.Closed="closed";class V{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class q{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):"string"==typeof e?t(JSON.parse(e)):t({})}_binaryDecode(e){let t=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,t,r)}_decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,s=r.decode(e.slice(o,o+n));o+=n;let a=r.decode(e.slice(o,o+i));o+=i;let l=JSON.parse(r.decode(e.slice(o,e.byteLength)));return{ref:null,topic:s,event:a,payload:l}}}class W{constructor(e,t,r={},n=1e4){this.channel=e,this.event=t,this.payload=r,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
20oks=[],this.refEvent=null,this.rateLimited=!1}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){if(this._hasReceived("timeout"))return;this.startTimeout(),this.sent=!0;let e=this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()});"rate limited"===e&&(this.rateLimited=!0)}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var r;return this._hasReceived(e)&&t(null===(r=this.receivedResp)||void 0===r?void 0:r.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){this.timeoutTimer||(this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref),this.channel._on(this.refEvent,{},e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout))}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}(u=w||(w={})).SYNC="sync",u.JOIN="join",u.LEAVE="leave";class Z{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};let r=(null==t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},e=>{let{onJoin:t,onLeave:r,onSync:n}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Z.syncState(this.state,e,t,r),this.pendingDiffs.forEach(e=>{this.state=Z.syncDiff(this.state,e,t,r)}),this.pendingDiffs=[],n()}),this.channel._on(r.diff,{},e=>{let{onJoin:t,onLeave:r,onSync:n}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=Z.syncDiff(this.state,e,t,r),n())}),this.onJoin((e,t,r)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:r})}),this.onLeave((e,t,r)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:r})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,r,n){let i=this.cloneDeep(e),o=this.transformState(t),s={},a={};return this.map(i,(e,t)=>{o[e]||(a[e]=t)}),this.map(o,(e,t)=>{let r=i[e];if(r){let n=t.map(e=>e.presence_ref),i=r.map(e=>e.presence_ref),o=t.filter(e=>0>i.indexOf(e.presence_ref)),l=r.filter(e=>0>n.indexOf(e.presence_ref));o.length>0&&(s[e]=o),l.length>0&&(a[e]=l)}else s[e]=t}),this.syncDiff(i,{joins:s,leaves:a},r,n)}static syncDiff(e,t,r,n){let{joins:i,leaves:o}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return r||(r=()=>{}),n||(n=()=>{}),this.map(i,(t,n)=>{var i;let o=null!==(i=e[t])&&void 0!==i?i:[];if(e[t]=this.cloneDeep(n),o.length>0){let r=e[t].map(e=>e.presence_ref),n=o.filter(e=>0>r.indexOf(e.presence_ref));e[t].unshift(...n)}r(t,o,n)}),this.map(o,(t,r)=>{let i=e[t];if(!i)return;let o=r.map(e=>e.presence_ref);i=i.filter(e=>0>o.indexOf(e.presence_ref)),e[t]=i,n(t,i,r),0===i.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(r=>t(r,e[r]))}static transformState(e){return Object.getOwnPropertyNames(e=this.cloneDeep(e)).reduce((t,r)=>{let n=e[r];return"metas"in n?t[r]=n.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):t[r]=n,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}(c=k||(k={})).abstime="abstime",c.bool="bool",c.date="date",c.daterange="daterange",c.float4="float4",c.float8="float8",c.int2="int2",c.int4="int4",c.int4range="int4range",c.int8="int8",c.int8range="int8range",c.json="json",c.jsonb="jsonb",c.money="money",c.numeric="numeric",c.oid="oid",c.reltime="reltime",c.text="text",c.time="time",c.timestamp="timestamp",c.timestamptz="timestamptz",c.timetz="timetz",c.tsrange="tsrange",c.tstzrange="tstzrange";let G=(e,t,r={})=>{var n;let i=null!==(n=r.skipTypes)&&void 0!==n?n:[];return Object.keys(t).reduce((r,n)=>(r[n]=J(n,e,t,i),r),{})},J=(e,t,r,n)=>{let i=t.find(t=>t.name===e),o=null==i?void 0:i.type,s=r[e];return o&&!n.includes(o)?K(o,s):Q(s)},K=(e,t)=>{if("_"===e.charAt(0)){let r=e.slice(1,e.length);return et(t,r)}switch(e){case k.bool:return X(t);case k.float4:case k.float8:case k.int2:case k.int4:case k.int8:case k.numeric:case k.oid:return Y(t);case k.json:case k.jsonb:return ee(t);case k.timestamp:return er(t);case k.abstime:case k.date:case k.daterange:case k.int4range:case k.int8range:case k.money:case k.reltime:case k.text:case k.time:case k.timestamptz:case k.timetz:case k.tsrange:case k.tstzrange:default:return Q(t)}},Q=e=>e,X=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Y=e=>{if("string"==typeof e){let t=parseFloat(e);
20if(!Number.isNaN(t))return t}return e},ee=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){console.log(`JSON parse error: ${e}`)}return e},et=(e,t)=>{if("string"!=typeof e)return e;let r=e.length-1,n=e[r],i=e[0];if("{"===i&&"}"===n){let n;let i=e.slice(1,r);try{n=JSON.parse("["+i+"]")}catch(e){n=i?i.split(","):[]}return n.map(e=>K(t,e))}return e},er=e=>"string"==typeof e?e.replace(" ","T"):e;var en=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};(d=x||(x={})).ALL="*",d.INSERT="INSERT",d.UPDATE="UPDATE",d.DELETE="DELETE",(h=S||(S={})).BROADCAST="broadcast",h.PRESENCE="presence",h.POSTGRES_CHANGES="postgres_changes",(f=E||(E={})).SUBSCRIBED="SUBSCRIBED",f.TIMED_OUT="TIMED_OUT",f.CLOSED="CLOSED",f.CHANNEL_ERROR="CHANNEL_ERROR";class ei{constructor(e,t={config:{}},r){this.topic=e,this.params=t,this.socket=r,this.bindings={},this.state=m.closed,this.joinedOnce=!1,this.pushBuffer=[],this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},t.config),this.timeout=this.socket.timeout,this.joinPush=new W(this,y.join,this.params,this.timeout),this.rejoinTimer=new V(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=m.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=m.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=m.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=m.errored,this.rejoinTimer.scheduleTimeout())}),this._on(y.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new Z(this)}subscribe(e,t=this.timeout){var r,n;if(this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{let{config:{broadcast:i,presence:o}}=this.params;this._onError(t=>e&&e("CHANNEL_ERROR",t)),this._onClose(()=>e&&e("CLOSED"));let s={},a={broadcast:i,presence:o,postgres_changes:null!==(n=null===(r=this.bindings.postgres_changes)||void 0===r?void 0:r.map(e=>e.filter))&&void 0!==n?n:[]};this.socket.accessToken&&(s.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:a},s)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",({postgres_changes:t})=>{var r;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),void 0===t){e&&e("SUBSCRIBED");return}{let n=this.bindings.postgres_changes,i=null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0,o=[];for(let r=0;r<i;r++){let i=n[r],{filter:{event:s,schema:a,table:l,filter:u}}=i,c=t&&t[r];if(c&&c.event===s&&c.schema===a&&c.table===l&&c.filter===u)o.push(Object.assign(Object.assign({},i),{id:c.id}));else{this.unsubscribe(),e&&e("CHANNEL_ERROR",Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,e&&e("SUBSCRIBED");return}}).receive("error",t=>{e&&e("CHANNEL_ERROR",Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{e&&e("TIMED_OUT")})}return this}presenceState(){return this.presence.state}track(e,t={}){return en(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)})}untrack(e={}){return en(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"untrack"},e)})}on(e,t,r){return this._on(e,t,r)}send(e,t={}){return new Promise(r=>{var n,i,o;let s=this._push(e.type,e,t.timeout||this.timeout);s.rateLimited&&r("rate limited"),"broadcast"!==e.type||(null===(o=null===(i=null===(n=this.params)||void 0===n?void 0:n.config)||void 0===i?void 0:i.broadcast)||void 0===o?void 0:o.ack)||r("ok"),s.receive("ok",()=>r("ok")),s.receive("timeout",()=>r("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=m.leaving;let t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(y.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{let n=new W(this,y.leave,{},e);n.receive("ok",()=>{t(),r("ok")}).receive("timeout",()=>{t(),r("timed out")}).receive("error",()=>{r("error")}),n.send(),this._canPush()||n.trigger("ok",{})})}_push(e,t,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new W(this,e,t,r);return this._canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}_onMessage(e,t,r){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,r){var n,i;let o=e.toLocaleLowerCase(),{close:s,error:a,leave:l,join:u}=y;
20if(r&&[s,a,l,u].indexOf(o)>=0&&r!==this._joinRef())return;let c=this._onMessage(o,t,r);if(t&&!c)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?null===(n=this.bindings.postgres_changes)||void 0===n||n.filter(e=>{var t,r,n;return(null===(t=e.filter)||void 0===t?void 0:t.event)==="*"||(null===(n=null===(r=e.filter)||void 0===r?void 0:r.event)||void 0===n?void 0:n.toLocaleLowerCase())===o}).map(e=>e.callback(c,r)):null===(i=this.bindings[o])||void 0===i||i.filter(e=>{var r,n,i,s,a,l;if(!["broadcast","presence","postgres_changes"].includes(o))return e.type.toLocaleLowerCase()===o;if("id"in e){let o=e.id,s=null===(r=e.filter)||void 0===r?void 0:r.event;return o&&(null===(n=t.ids)||void 0===n?void 0:n.includes(o))&&("*"===s||(null==s?void 0:s.toLocaleLowerCase())===(null===(i=t.data)||void 0===i?void 0:i.type.toLocaleLowerCase()))}{let r=null===(a=null===(s=null==e?void 0:e.filter)||void 0===s?void 0:s.event)||void 0===a?void 0:a.toLocaleLowerCase();return"*"===r||r===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}).map(e=>{if("object"==typeof c&&"ids"in c){let e=c.data,{schema:t,table:r,commit_timestamp:n,type:i,errors:o}=e;c=Object.assign(Object.assign({},{schema:t,table:r,commit_timestamp:n,eventType:i,new:{},old:{},errors:o}),this._getPayloadRecords(e))}e.callback(c,r)})}_isClosed(){return this.state===m.closed}_isJoined(){return this.state===m.joined}_isJoining(){return this.state===m.joining}_isLeaving(){return this.state===m.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,r){let n=e.toLocaleLowerCase(),i={type:n,filter:t,callback:r};return this.bindings[n]?this.bindings[n].push(i):this.bindings[n]=[i],this}_off(e,t){let r=e.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(e=>{var n;return!((null===(n=e.type)||void 0===n?void 0:n.toLocaleLowerCase())===r&&ei.isEqual(e.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(y.close,{},e)}_onError(e){this._on(y.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=m.joining,this.joinPush.resend(e))}_getPayloadRecords(e){let t={new:{},old:{}};return("INSERT"===e.type||"UPDATE"===e.type)&&(t.new=G(e.columns,e.record)),("UPDATE"===e.type||"DELETE"===e.type)&&(t.old=G(e.columns,e.old_record)),t}}var eo=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let es=()=>{};class ea{constructor(e,t){var r;this.accessToken=null,this.channels=[],this.endPoint="",this.headers=H,this.params={},this.timeout=1e4,this.transport=U.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=es,this.conn=null,this.sendBuffer=[],this.serializer=new q,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.eventsPerSecondLimitMs=100,this.inThrottle=!1,this.endPoint=`${e}/${b.websocket}`,(null==t?void 0:t.params)&&(this.params=t.params),(null==t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null==t?void 0:t.timeout)&&(this.timeout=t.timeout),(null==t?void 0:t.logger)&&(this.logger=t.logger),(null==t?void 0:t.transport)&&(this.transport=t.transport),(null==t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);let n=null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.eventsPerSecond;n&&(this.eventsPerSecondLimitMs=Math.floor(1e3/n)),this.reconnectAfterMs=(null==t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null==t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null==t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new V(()=>eo(this,void 0,void 0,function*(){this.disconnect(),this.connect()}),this.reconnectAfterMs)}connect(){!this.conn&&(this.conn=new this.transport(this._endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>
20this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e)))}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,null!=t?t:""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}removeChannel(e){return eo(this,void 0,void 0,function*(){let t=yield e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t})}removeAllChannels(){return eo(this,void 0,void 0,function*(){let e=yield Promise.all(this.channels.map(e=>e.unsubscribe()));return this.disconnect(),e})}log(e,t,r){this.logger(e,t,r)}connectionState(){switch(this.conn&&this.conn.readyState){case v.connecting:return _.Connecting;case v.open:return _.Open;case v.closing:return _.Closing;default:return _.Closed}}isConnected(){return this.connectionState()===_.Open}channel(e,t={config:{}}){this.isConnected()||this.connect();let r=new ei(`realtime:${e}`,t,this);return this.channels.push(r),r}push(e){let{topic:t,event:r,payload:n,ref:i}=e,o=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};if(this.log("push",`${t} ${r} (${i})`,n),this.isConnected()){if(["broadcast","presence","postgres_changes"].includes(r)){let e=this._throttle(o)();if(e)return"rate limited"}else o()}else this.sendBuffer.push(o)}setAuth(e){this.accessToken=e,this.channels.forEach(t=>{e&&t.updateJoinPayload({access_token:e}),t.joinedOnce&&t._isJoined()&&t._push(y.access_token,{access_token:e})})}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t._joinRef()!==e._joinRef())}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}_onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:r,payload:n,ref:i}=e;(i&&i===this.pendingHeartbeatRef||r===(null==n?void 0:n.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${n.status||""} ${t} ${r} ${i&&"("+i+")"||""}`,n),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(r,n,i)),this.stateChangeCallbacks.message.forEach(t=>t(e))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(y.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;let r=e.match(/\?/)?"&":"?",n=new URLSearchParams(t);return`${e}${r}${n}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_throttle(e,t=this.eventsPerSecondLimitMs){return()=>!!this.inThrottle||(e(),t>0&&(this.inThrottle=!0,setTimeout(()=>{this.inThrottle=!1},t)),!1)}}class el extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function eu(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}class ec extends el{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ed extends el{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}var eh=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let ef=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>eh(void 0,void 0,void 0,function*(){return yield(yield Promise.resolve().then(r.t.bind(r,54098,23))).fetch(...e)}):fetch),(...e)=>t(...e)},ep=()=>eh(void 0,void 0,void 0,function*(){return"undefined"==typeof Response?(yield Promise.resolve().then(r.t.bind(r,54098,23))).Response:Response});var eg=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let ev=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),em=(e,t)=>
20eg(void 0,void 0,void 0,function*(){let r=yield ep();e instanceof r?e.json().then(r=>{t(new ec(ev(r),e.status||500))}).catch(e=>{t(new ed(ev(e),e))}):t(new ed(ev(e),e))}),ey=(e,t,r,n)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json"},null==t?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};function eb(e,t,r,n,i,o){return eg(this,void 0,void 0,function*(){return new Promise((s,a)=>{e(r,ey(t,n,i,o)).then(e=>{if(!e.ok)throw e;return(null==n?void 0:n.noResolveJson)?e:e.json()}).then(e=>s(e)).catch(e=>em(e,a))})})}function e_(e,t,r,n){return eg(this,void 0,void 0,function*(){return eb(e,"GET",t,r,n)})}function ew(e,t,r,n,i){return eg(this,void 0,void 0,function*(){return eb(e,"POST",t,n,i,r)})}function ek(e,t,r,n,i){return eg(this,void 0,void 0,function*(){return eb(e,"DELETE",t,n,i,r)})}var ex=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let eS={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},eE={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class eO{constructor(e,t={},r,n){this.url=e,this.headers=t,this.bucketId=r,this.fetch=ef(n)}uploadOrUpdate(e,t,r,n){return ex(this,void 0,void 0,function*(){try{let i;let o=Object.assign(Object.assign({},eE),n),s=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(o.upsert)});"undefined"!=typeof Blob&&r instanceof Blob?((i=new FormData).append("cacheControl",o.cacheControl),i.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(i=r).append("cacheControl",o.cacheControl):(i=r,s["cache-control"]=`max-age=${o.cacheControl}`,s["content-type"]=o.contentType);let a=this._removeEmptyFolders(t),l=this._getFinalPath(a),u=yield this.fetch(`${this.url}/object/${l}`,Object.assign({method:e,body:i,headers:s},(null==o?void 0:o.duplex)?{duplex:o.duplex}:{}));if(u.ok)return{data:{path:a},error:null};{let e=yield u.json();return{data:null,error:e}}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}upload(e,t,r){return ex(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,r)})}uploadToSignedUrl(e,t,r,n){return ex(this,void 0,void 0,function*(){let i=this._removeEmptyFolders(e),o=this._getFinalPath(i),s=new URL(this.url+`/object/upload/sign/${o}`);s.searchParams.set("token",t);try{let e;let t=Object.assign({upsert:eE.upsert},n),o=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!=typeof Blob&&r instanceof Blob?((e=new FormData).append("cacheControl",t.cacheControl),e.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(e=r).append("cacheControl",t.cacheControl):(e=r,o["cache-control"]=`max-age=${t.cacheControl}`,o["content-type"]=t.contentType);let a=yield this.fetch(s.toString(),{method:"PUT",body:e,headers:o});if(a.ok)return{data:{path:i},error:null};{let e=yield a.json();return{data:null,error:e}}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}createSignedUploadUrl(e){return ex(this,void 0,void 0,function*(){try{let t=this._getFinalPath(e),r=yield ew(this.fetch,`${this.url}/object/upload/sign/${t}`,{},{headers:this.headers}),n=new URL(this.url+r.url),i=n.searchParams.get("token");if(!i)throw new el("No token returned by API");return{data:{signedUrl:n.toString(),path:e,token:i},error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}update(e,t,r){return ex(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,r)})}move(e,t){return ex(this,void 0,void 0,function*(){try{let r=yield ew(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers});return{data:r,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}copy(e,t){return ex(this,void 0,void 0,function*(){try{let r=yield ew(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers});return{data:{path:r.Key},error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}createSignedUrl(e,t,r){return ex(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),i=yield ew(this.fetch,`${this.url}/object/sign/${n}
20`,Object.assign({expiresIn:t},(null==r?void 0:r.transform)?{transform:r.transform}:{}),{headers:this.headers}),o=(null==r?void 0:r.download)?`&download=${!0===r.download?"":r.download}`:"",s=encodeURI(`${this.url}${i.signedURL}${o}`);return{data:i={signedUrl:s},error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}createSignedUrls(e,t,r){return ex(this,void 0,void 0,function*(){try{let n=yield ew(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),i=(null==r?void 0:r.download)?`&download=${!0===r.download?"":r.download}`:"";return{data:n.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI(`${this.url}${e.signedURL}${i}`):null})),error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}download(e,t){return ex(this,void 0,void 0,function*(){let r=void 0!==(null==t?void 0:t.transform),n=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),i=n?`?${n}`:"";try{let t=this._getFinalPath(e),n=yield e_(this.fetch,`${this.url}/${r?"render/image/authenticated":"object"}/${t}${i}`,{headers:this.headers,noResolveJson:!0}),o=yield n.blob();return{data:o,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}getPublicUrl(e,t){let r=this._getFinalPath(e),n=[],i=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==i&&n.push(i);let o=void 0!==(null==t?void 0:t.transform),s=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==s&&n.push(s);let a=n.join("&");return""!==a&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o?"render/image":"object"}/public/${r}${a}`)}}}remove(e){return ex(this,void 0,void 0,function*(){try{let t=yield ek(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers});return{data:t,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}list(e,t,r){return ex(this,void 0,void 0,function*(){try{let n=Object.assign(Object.assign(Object.assign({},eS),t),{prefix:e||""}),i=yield ew(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},r);return{data:i,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){let t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}let eC={"X-Client-Info":"storage-js/2.5.1"};var eP=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class eT{constructor(e,t={},r){this.url=e,this.headers=Object.assign(Object.assign({},eC),t),this.fetch=ef(r)}listBuckets(){return eP(this,void 0,void 0,function*(){try{let e=yield e_(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:e,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}getBucket(e){return eP(this,void 0,void 0,function*(){try{let t=yield e_(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}createBucket(e,t={public:!1}){return eP(this,void 0,void 0,function*(){try{let r=yield ew(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:r,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}updateBucket(e,t){return eP(this,void 0,void 0,function*(){try{let r=yield function(e,t,r,n,i){return eg(this,void 0,void 0,function*(){return eb(e,"PUT",t,n,void 0,r)})}(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:r,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}emptyBucket(e){return eP(this,void 0,void 0,function*(){try{let t=yield ew(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}deleteBucket(e){return eP(this,void 0,void 0,function*(){try{let t=yield ek(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(eu(e))return{data:null,error:e};throw e}})}}class eI extends eT{constructor(e,t={},r){super(e,t,r)}from(e){return new eO(this.url,this.headers,e,this.fetch)}}let ej=e=>{let t;return t=e||("undefined"==typeof fetch?$():fetch),(...e)=>t(...e)},eR=()=>"undefined"==typeof Headers?L.Headers:Headers,eA=(e,t,r)=>{let n=ej(r),i=eR();return(r,o)=>{var s,a,l,u;return s=void 0,a=void 0,l=void 0,u=function*(){var s;let a=null!==(s=yield t())&&void 0!==s?s:e,l=new i(null==o?void 0:o.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${a}`),n(r,Object.assign(Object.assign({},o),{headers:l}))},new(l||(l=Promise))(function(e,t){function r(e){try{i(u.next(e))}catch(e){t(e)}}function n(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(r,n)}i((u=u.apply(s,a||[])).next())})}},eL=()=>"undefined"!=typeof document,e$={tested:!1,writable:!1},eM=()=>
20{if(!eL())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(e$.tested)return e$.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),e$.tested=!0,e$.writable=!0}catch(e){e$.tested=!0,e$.writable=!1}return e$.writable};function eN(e){let t={},r=new URL(e);if(r.hash&&"#"===r.hash[0])try{let e=new URLSearchParams(r.hash.substring(1));e.forEach((e,r)=>{t[r]=e})}catch(e){}return r.searchParams.forEach((e,r)=>{t[r]=e}),t}let eF=e=>{let t;return t=e||("undefined"==typeof fetch?async(...e)=>await (await Promise.resolve().then(r.t.bind(r,54098,23))).fetch(...e):fetch),(...e)=>t(...e)},eB=e=>"object"==typeof e&&null!==e&&"status"in e&&"ok"in e&&"json"in e&&"function"==typeof e.json,eD=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},ez=async(e,t)=>{let r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return r}},eU=async(e,t)=>{await e.removeItem(t)};class eH{constructor(){this.promise=new eH.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function eV(e){let t=e.split(".");if(3!==t.length)throw Error("JWT is not valid: not a JWT structure");if(!/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i.test(t[1]))throw Error("JWT is not valid: payload is not in base64url format");let r=t[1];return JSON.parse(function(e){let t,r,n,i,o,s,a;let l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)i=l.indexOf(e.charAt(c++)),o=l.indexOf(e.charAt(c++)),s=l.indexOf(e.charAt(c++)),a=l.indexOf(e.charAt(c++)),t=i<<2|o>>4,r=(15&o)<<4|s>>2,n=(3&s)<<6|a,u+=String.fromCharCode(t),64!=s&&0!=r&&(u+=String.fromCharCode(r)),64!=a&&0!=n&&(u+=String.fromCharCode(n));return u}(r))}async function eq(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function eW(e){return("0"+e.toString(16)).substr(-2)}function eZ(){let e=new Uint32Array(56);if("undefined"==typeof crypto){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length,r="";for(let n=0;n<56;n++)r+=e.charAt(Math.floor(Math.random()*t));return r}return crypto.getRandomValues(e),Array.from(e,eW).join("")}async function eG(e){let t=new TextEncoder,r=t.encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(e=>String.fromCharCode(e)).join("")}async function eJ(e){if("undefined"==typeof crypto)return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;let t=await eG(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}eH.promiseConstructor=Promise;class eK extends Error{constructor(e,t){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t}}function eQ(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class eX extends eK{constructor(e,t){super(e,t),this.name="AuthApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class eY extends eK{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class e0 extends eK{constructor(e,t,r){super(e),this.name=t,this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class e1 extends e0{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class e2 extends e0{constructor(){super("Auth session or user missing","AuthInvalidToken
20ResponseError",500)}}class e4 extends e0{constructor(e){super(e,"AuthInvalidCredentialsError",400)}}class e3 extends e0{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class e6 extends e0{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class e5 extends e0{constructor(e,t){super(e,"AuthRetryableFetchError",t)}}function e8(e){return eQ(e)&&"AuthRetryableFetchError"===e.name}var e7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let e9=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),te=[502,503,504];async function tt(e){let t;if(!eB(e))throw new e5(e9(e),0);if(te.includes(e.status))throw new e5(e9(e),e.status);try{t=await e.json()}catch(e){throw new eY(e9(e),e)}throw new eX(e9(t),e.status||500)}let tr=(e,t,r,n)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function tn(e,t,r,n){var i;let o=Object.assign({},null==n?void 0:n.headers);(null==n?void 0:n.jwt)&&(o.Authorization=`Bearer ${n.jwt}`);let s=null!==(i=null==n?void 0:n.query)&&void 0!==i?i:{};(null==n?void 0:n.redirectTo)&&(s.redirect_to=n.redirectTo);let a=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await ti(e,t,r+a,{headers:o,noResolveJson:null==n?void 0:n.noResolveJson},{},null==n?void 0:n.body);return(null==n?void 0:n.xform)?null==n?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function ti(e,t,r,n,i,o){let s;let a=tr(t,n,i,o);try{s=await e(r,a)}catch(e){throw console.error(e),new e5(e9(e),0)}if(s.ok||await tt(s),null==n?void 0:n.noResolveJson)return s;try{return await s.json()}catch(e){await tt(e)}}function to(e){var t;let r=null;e.access_token&&e.refresh_token&&e.expires_in&&((r=Object.assign({},e)).expires_at=function(e){let t=Math.round(Date.now()/1e3);return t+e}(e.expires_in));let n=null!==(t=e.user)&&void 0!==t?t:e;return{data:{session:r,user:n},error:null}}function ts(e){var t;let r=null!==(t=e.user)&&void 0!==t?t:e;return{data:{user:r},error:null}}function ta(e){return{data:e,error:null}}function tl(e){let{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:o}=e,s=e7(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a=Object.assign({},s);return{data:{properties:{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:o},user:a},error:null}}function tu(e){return e}var tc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class td{constructor({url:e="",headers:t={},fetch:r}){this.url=e,this.headers=t,this.fetch=eF(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,t="global"){try{return await tn(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await tn(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:ts})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{let{options:t}=e,r=tc(e,["options"]),n=Object.assign(Object.assign({},r),t);return"newEmail"in r&&(n.new_email=null==r?void 0:r.newEmail,delete n.newEmail),await tn(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:n,headers:this.headers,xform:tl,redirectTo:null==t?void 0:t.redirectTo})}catch(e){if(eQ(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await tn(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:ts})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async listUsers(e){var t,r,n,i,o,s,a;try{let l={nextPage:null,lastPage:0,total:0},u=await tn(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(r=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==r?r:"",per_page:null!==(i=null===(n=null==e?void 0:e.perPage)||void 0===n?void 0:n.toString())&&void 0!==i?i:""},xform:tu});if(u.error)throw u.error;let c=await u.json(),d=null!==(o=u.headers.get("x-total-count"))&&void 0!==o?o:0,h=null!==(a=null===(s=u.headers.get("link"))||void 0===s?void 0:s.split(","))&&void 0!==a?a:[];return h.length>
200&&(h.forEach(e=>{let t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),r=JSON.parse(e.split(";")[1].split("=")[1]);l[`${r}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(e){if(eQ(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){try{return await tn(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:ts})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){try{return await tn(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:ts})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){try{return await tn(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:ts})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){try{let{data:t,error:r}=await tn(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:r}}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _deleteFactor(e){try{let t=await tn(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(eQ(e))return{data:null,error:e};throw e}}}let th="2.47.0",tf={"X-Client-Info":`gotrue-js/${th}`};var tp={getItem:e=>eM()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{eM()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{eM()&&globalThis.localStorage.removeItem(e)}};!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();let tg={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:tf,flowType:"implicit",debug:!1};async function tv(e,t,r){return await r()}class tm{constructor(e){var t;this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.instanceID=tm.nextInstanceID,tm.nextInstanceID+=1,this.instanceID>0&&eL()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");let r=Object.assign(Object.assign({},tg),e);if(this.logDebugMessages=r.debug,this.inMemorySession=null,this.storageKey=r.storageKey,this.autoRefreshToken=r.autoRefreshToken,this.persistSession=r.persistSession,this.storage=r.storage||tp,this.admin=new td({url:r.url,headers:r.headers,fetch:r.fetch}),this.url=r.url,this.headers=r.headers,this.fetch=eF(r.fetch),this.lock=r.lock||tv,this.detectSessionInUrl=r.detectSessionInUrl,this.flowType=r.flowType,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession&&this.storage===tp&&!eM()&&console.warn(`No storage option exists to persist the session, which may result in unexpected behavior when using auth. 21 If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.`),eL()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",e)}null===(t=this.broadcastChannel)||void 0===t||t.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e),await this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&console.log(`GoTrueClient@${this.instanceID} (${th}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){try{let e=!!eL()&&await this._isPKCEFlow();if(this._debug("#_initialize()","begin","is PKCE flow",e),e||this.detectSessionInUrl&&this._isImplicitGrantFlow()){let{data:t,error:r}=await this._getSessionFromURL(e);if(r)return this._debug("#_initialize()","error detecting session from URL",r),await this._removeSession(),{error:r};let{session:n,redirectType:i}=t;return this._debug("#_initialize()","detected session in URL",n,"redirect type",i),await this._saveSession(n),setTimeout(async()=>{"recovery"===i?await this._notifyAllSubscribers("PASSWORD_RECOVERY",n):await this._notifyAllSubscribers("SIGNED_IN",n)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){if(eQ(e))return{error:e};return{error:new eY("Unexpected error during initialization",e)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signUp(e){var t,r,n;try{let i;if(await this._removeSession(),"email"in e){let{email:r,password:n,options:o}=e,s=null,a=null;if("pkce"===this.flowType){let e=eZ();await eD(this.storage,`${this.storageKey}-code-verifier`,e),s=await eJ(e),a=e===s?"plain":"s256"}i=await tn(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==o?void 0:o.emailRedirectTo,body:{email:r,password:n,data:null!==(t=null==o?void 0:o.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==o?void 0:o.captchaToken},code_challenge:s,code_challenge_method:a},xform:to})}else if("phone"in e){let{phone:t,password:o,options:s}=e;i=await tn(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:o,data:null!==(r=null==s?void 0:s.data)&&void 0!==r?r:{},channel:null!==(n=null==s?void 0:s.channel)&&void 0!==n?n:"sms",gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken}},xform:to})}else throw new e4("You must provide either an email or phone number and a password");let{data:o,error:s}=i;if(s||!o)return{data:{user:null,session:null},error:s};let a=o.session,l=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:l,session:a},error:null}}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithPassword(e){try{let t;if(await this._removeSession(),"email"in e){let{email:r,password:n,options:i}=e;t=await tn(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:to})}else if("phone"in e){let{phone:r,password:n,options:i}=e;t=await tn(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:to})}else throw new e4("You must provide either an email or phone number and a password");let{data:r,error:n}=t;if(n)return{data:{user:null,session:null},error:n};if(!r||!r.session||!r.user)return{data:{user:null,session:null},error:new e2};return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:{user:r.user,session:r.session},error:n}}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOAuth(e){var t,r,n,i;return await this._removeSession(),await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(n=e.options)||void 0===n?void 0:n.queryParams,skipBrowserRedirect:null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async _exchangeCodeForSession(e){let t=await ez(this.storage,`${this.storageKey}-code-verifier`),{data:r,error:n}=await tn(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:t},xform:to});return(await eU(this.storage,`${this.storageKey}-code-verifier`),n)?{data:{user:null,session:null},error:n}:r&&r.session&&r.user?(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:r,error:n}):{data:{user:null,session:null},error:new e2}}async signInWithIdToken(e){await this._removeSession();try{let{options:t,provider:r,token:n,access_token:i,nonce:o}=e,s=await tn(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:n,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:to}),{data:a,error:l}=s;if(l)return{data:{user:null,session:null},error:l};if(!a||!a.session||!a.user)return{data:{user:null,session:null},error:new e2};return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:a,error:l}}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithOtp(e){var t,r,n,i,o;try{if(await this._removeSession(),"email"in e){let{email:n,options:i}=e,o=null,s=null;if("pkce"===this.flowType){let e=eZ();await eD(this.storage,`${this.storageKey}-code-verifier`,e),o=await eJ(e),s=e===o?"plain":"s256"}let{error:a}=await tn(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:n,data:null!==(t=null==i?void 0:i.data)&&void 0!==t?t:{}
21,create_user:null===(r=null==i?void 0:i.shouldCreateUser)||void 0===r||r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken},code_challenge:o,code_challenge_method:s},redirectTo:null==i?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:a}}if("phone"in e){let{phone:t,options:r}=e,{data:s,error:a}=await tn(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(n=null==r?void 0:r.data)&&void 0!==n?n:{},create_user:null===(i=null==r?void 0:r.shouldCreateUser)||void 0===i||i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken},channel:null!==(o=null==r?void 0:r.channel)&&void 0!==o?o:"sms"}});return{data:{user:null,session:null,messageId:null==s?void 0:s.message_id},error:a}}throw new e4("You must provide either an email or phone number.")}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async verifyOtp(e){var t,r;try{let n,i;"email_change"!==e.type&&"phone_change"!==e.type&&await this._removeSession(),"options"in e&&(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo,i=null===(r=e.options)||void 0===r?void 0:r.captchaToken);let{data:o,error:s}=await tn(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:n,xform:to});if(s)throw s;if(!o)throw Error("An error occurred on token verification.");let a=o.session,l=o.user;return(null==a?void 0:a.access_token)&&(await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:l,session:a},error:null}}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async signInWithSSO(e){var t,r,n;try{return await this._removeSession(),await tn(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==r?r:void 0}),(null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0}),headers:this.headers,xform:ta})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{let{data:{session:t},error:r}=e;if(r)throw r;if(!t)throw new e1;let{error:n}=await tn(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:n}})}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{"email_change"!=e.type&&"phone_change"!=e.type&&await this._removeSession();let t=`${this.url}/resend`;if("email"in e){let{email:r,type:n,options:i}=e,{error:o}=await tn(this.fetch,"POST",t,{headers:this.headers,body:{email:r,type:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},redirectTo:null==i?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}if("phone"in e){let{phone:r,type:n,options:i}=e,{data:o,error:s}=await tn(this.fetch,"POST",t,{headers:this.headers,body:{phone:r,type:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:null==o?void 0:o.message_id},error:s}}throw new e4("You must provide either an email or phone number and a type")}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async getSession(){return await this.initializePromise,this._acquireLock(-1,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){let e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),r=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await r}catch(e){}})()),r}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;let e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(e){}})()),await e;this.pendingInLock.length;){let e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{let t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",Error().stack);try{let e=null;if(this.persistSession){let t=await ez(this.storage,this.storageKey);this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not val
21id"),await this._removeSession()))}else e=this.inMemorySession,this._debug("#getSession()","session from memory",e);if(!e)return{data:{session:null},error:null};let t=!!e.expires_at&&e.expires_at<=Date.now()/1e3;if(this._debug("#__loadSession()",`session has${t?"":" not"} expired`,"expires_at",e.expires_at),!t)return{data:{session:e},error:null};let{session:r,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return{data:{session:null},error:n};return{data:{session:r},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{if(e)return await tn(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:ts});return await this._useSession(async e=>{var t,r;let{data:n,error:i}=e;if(i)throw i;return await tn(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(r=null===(t=n.session)||void 0===t?void 0:t.access_token)&&void 0!==r?r:void 0,xform:ts})})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async r=>{let{data:n,error:i}=r;if(i)throw i;if(!n.session)throw new e1;let o=n.session,{data:s,error:a}=await tn(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:e,jwt:o.access_token,xform:ts});if(a)throw a;return o.user=s.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(e){if(eQ(e))return{data:{user:null},error:e};throw e}}_decodeJWT(e){return eV(e)}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new e1;let t=Date.now()/1e3,r=t,n=!0,i=null,o=eV(e.access_token);if(o.exp&&(n=(r=o.exp)<=t),n){let{session:t,error:r}=await this._callRefreshToken(e.refresh_token);if(r)return{data:{user:null,session:null},error:r};if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:n,error:o}=await this._getUser(e.access_token);if(o)throw o;i={access_token:e.access_token,refresh_token:e.refresh_token,user:n.user,token_type:"bearer",expires_in:r-t,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(e){if(eQ(e))return{data:{session:null,user:null},error:e};throw e}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var r;if(!e){let{data:n,error:i}=t;if(i)throw i;e=null!==(r=n.session)&&void 0!==r?r:void 0}if(!(null==e?void 0:e.refresh_token))throw new e1;let{session:n,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}})}catch(e){if(eQ(e))return{data:{user:null,session:null},error:e};throw e}}async _getSessionFromURL(e){try{if(!eL())throw new e3("No browser detected.");if("implicit"!==this.flowType||this._isImplicitGrantFlow()){if("pkce"==this.flowType&&!e)throw new e6("Not a valid PKCE flow url.")}else throw new e3("Not a valid implicit grant flow url.");let t=eN(window.location.href);if(e){if(!t.code)throw new e6("No code detected.");let{data:e,error:r}=await this._exchangeCodeForSession(t.code);if(r)throw r;let n=new URL(window.location.href);return n.searchParams.delete("code"),window.history.replaceState(window.history.state,"",n.toString()),{data:{session:e.session,redirectType:null},error:null}}if(t.error||t.error_description||t.error_code)throw new e3(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});let{provider_token:r,provider_refresh_token:n,access_token:i,refresh_token:o,expires_in:s,token_type:a}=t;if(!i||!s||!o||!a)throw new e3("No session defined in URL");let l=Math.round(Date.now()/1e3),u=parseInt(s),{data:c,error:d}=await this._getUser(i);if(d)throw d;let h={provider_token:r,provider_refresh_token:n,access_token:i,expires_in:u,expires_at:l+u,refresh_token:o,token_type:a,user:c.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:h,redirectType:t.type},error:null}}catch(e){if(eQ(e))return{data:{session:null,redirectType:null},error:e};throw e}}_isImplicitGrantFlow(){let e=eN(window.location.href);return!!(eL()&&(e.access_token||e.error_description))}async _isPKCEFlow(){let e=eN(window.location.href),t=await ez(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var r;let{data:n,error:i}=t;if(i)return{error:i};let o=null===(r=n.session)||void 0===r?void 0:r.access_token;if(o){let{error:t}=await this.admin.signOut(o,e);
21if(t&&!(eQ(t)&&"AuthApiError"===t.name&&(404===t.status||401===t.status)))return{error:t}}return"others"!==e&&(await this._removeSession(),await eU(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(e){let t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),r={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,r),(async()=>{await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async t=>{var r,n;try{let{data:{session:n},error:i}=t;if(i)throw i;await (null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",n)),this._debug("INITIAL_SESSION","callback id",e,"session",n)}catch(t){await (null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",t),console.error(t)}})}async resetPasswordForEmail(e,t={}){let r=null,n=null;if("pkce"===this.flowType){let e=eZ();await eD(this.storage,`${this.storageKey}-code-verifier`,e),r=await eJ(e),n=e===r?"plain":"s256"}try{return await tn(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:n,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _refreshAccessToken(e){let t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{let r=Date.now();return await function(e,t){let r=new Promise((r,n)=>{(async()=>{for(let i=0;i<1/0;i++)try{let n=await e(i);if(!t(i,null,n)){r(n);return}}catch(e){if(!t(i,e)){n(e);return}}})()});return r}(async r=>(await eq(200*r),this._debug(t,"refreshing attempt",r),await tn(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:to})),(e,t,n)=>n&&n.error&&e8(n.error)&&Date.now()+(e+1)*200-r<3e4)}catch(e){if(this._debug(t,"error",e),eQ(e))return{data:{session:null,user:null},error:e};throw e}finally{this._debug(t,"end")}}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){let r=await this._getUrlForProvider(e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",r),eL()&&!t.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e;let t="#_recoverAndRefresh()";this._debug(t,"begin");try{let r=await ez(this.storage,this.storageKey);if(this._debug(t,"session from storage",r),!this._isValidSession(r)){this._debug(t,"session is not valid"),null!==r&&await this._removeSession();return}let n=Math.round(Date.now()/1e3),i=(null!==(e=r.expires_at)&&void 0!==e?e:1/0)<n+10;if(this._debug(t,`session has${i?"":" not"} expired with margin of 10s`),i){if(this.autoRefreshToken&&r.refresh_token){let{error:e}=await this._callRefreshToken(r.refresh_token);e&&(console.error(e),e8(e)||(this._debug(t,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(e){this._debug(t,"error",e),console.error(e);return}finally{this._debug(t,"end")}}async _callRefreshToken(e){var t,r;if(!e)throw new e1;if(this.refreshingDeferred)return this.refreshingDeferred.promise;let n=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{this.refreshingDeferred=new eH;let{data:t,error:r}=await this._refreshAccessToken(e);if(r)throw r;if(!t.session)throw new e1;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);let n={session:t.session,error:null};return this.refreshingDeferred.resolve(n),n}catch(e){if(this._debug(n,"error",e),eQ(e)){let r={session:null,error:e};return null===(t=this.refreshingDeferred)||void 0===t||t.resolve(r),r}throw null===(r=this.refreshingDeferred)||void 0===r||r.reject(e),e}finally{this.refreshingDeferred=null,this._debug(n,"end")}}async _notifyAllSubscribers(e,t,r=!0){let n=`#_notifyAllSubscribers(${e})`;this._debug(n,"begin",t,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:t});let n=[],i=Array.from(this.stateChangeEmitters.values()).map(async r=>{try{await r.callback(e,t)}catch(e){n.push(e)}});if(await Promise.all(i),n.length>0){for(let e=0;e<n.length;e+=1)console.error(n[e]);throw n[0]}}finally{this._debug(n,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.persistSession||(this.inMemorySession=e),this.persistSession&&e.expires_at&&await this._persistSession(e)}_persistSession(e){return this._debug("#_persistSession()",e),eD(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),this.persistSession?await eU(this.storage,this.storageKey):this.inMemorySession=null}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&eL()&&(null==window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
21catch(e){console.error("removing visibilitychange callback failed",e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");let e=setInterval(()=>this._autoRefreshTokenTick(),3e4);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{let e=Date.now();try{return await this._useSession(async t=>{let{data:{session:r}}=t;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}let n=Math.floor((1e3*r.expires_at-e)/3e4);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),n<=3&&await this._callRefreshToken(r.refresh_token)})}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!eL()||!(null==window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),null==window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){this._debug(`#_onVisibilityChanged(${e})`,"visibilityState",document.visibilityState),"visible"===document.visibilityState?setTimeout(async()=>{e||(await this.initializePromise,await this._recoverAndRefresh(),this._debug("#_onVisibilityChanged()","finished waiting for initialize, _recoverAndRefresh")),this.autoRefreshToken&&this._startAutoRefresh()},0):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t){let r=[`provider=${encodeURIComponent(e)}`];if((null==t?void 0:t.redirectTo)&&r.push(`redirect_to=${encodeURIComponent(t.redirectTo)}`),(null==t?void 0:t.scopes)&&r.push(`scopes=${encodeURIComponent(t.scopes)}`),"pkce"===this.flowType){let e=eZ();await eD(this.storage,`${this.storageKey}-code-verifier`,e);let t=await eJ(e),n=e===t?"plain":"s256";this._debug("PKCE","code verifier",`${e.substring(0,5)}...`,"code challenge",t,"method",n);let i=new URLSearchParams({code_challenge:`${encodeURIComponent(t)}`,code_challenge_method:`${encodeURIComponent(n)}`});r.push(i.toString())}if(null==t?void 0:t.queryParams){let e=new URLSearchParams(t.queryParams);r.push(e.toString())}return`${this.url}/authorize?${r.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var r;let{data:n,error:i}=t;return i?{data:null,error:i}:await tn(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token})})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _enroll(e){try{return await this._useSession(async t=>{var r,n;let{data:i,error:o}=t;if(o)return{data:null,error:o};let{data:s,error:a}=await tn(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:e.friendlyName,factor_type:e.factorType,issuer:e.issuer},headers:this.headers,jwt:null===(r=null==i?void 0:i.session)||void 0===r?void 0:r.access_token});return a?{data:null,error:a}:((null===(n=null==s?void 0:s.totp)||void 0===n?void 0:n.qr_code)&&(s.totp.qr_code=`data:image/svg+xml;utf-8,${s.totp.qr_code}`),{data:s,error:null})})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _verify(e){try{return await this._useSession(async t=>{var r;let{data:n,error:i}=t;if(i)return{data:null,error:i};let{data:o,error:s}=await tn(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token});return s?{data:null,error:s}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:s})})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _challenge(e){try{return await this._useSession(async t=>{var r;let{data:n,error:i}=t;return i?{data:null,error:i}:await tn(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token})})}catch(e){if(eQ(e))return{data:null,error:e};throw e}}async _challengeAndVerify(e){let{data:t,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){let{data:{user:e},error:t}=await this._getUser();if(t)return{data:null,error:t};let r=(null==e?void 0:e.factors)||[],n=r.filter(e=>"totp"===e.factor_type&&"verified"===e.status);return{data:{all:r,totp:n},error:null}}async _getAuthenticatorAssuranceLevel(){return await this._useSession(async e=>{var t,r;let{data:{session:n},error:i}=e;if(i)return{data:null,error:i};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let o=this._decodeJWT(n.access_token),s=null;o.aal&&(s=o.aal);let a=s,l=null!==(r=null===(t=n.user.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==r?r:[];l.length>0&&(a="aal2");let u=o.amr||[];return{data:{currentLevel:s,nextLevel:a,currentAuthenticationMethods:u},error:null}})}}tm.nextInstanceID=0,globalThis&&eM()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class ty extends tm{constructor(e){super(e)}}let tb={headers:{"X-Client-Info":"supabase-js/2.32.0"}},t_={schema:"public"},tw={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},tk={};class tx{constructor(e,t,r){var n,i,o,s,a,l,u,c;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw Error("supabaseUrl is required.");
21if(!t)throw Error("supabaseKey is required.");let d=e.replace(/\/$/,"");this.realtimeUrl=`${d}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${d}/auth/v1`,this.storageUrl=`${d}/storage/v1`,this.functionsUrl=`${d}/functions/v1`;let h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,f={db:t_,realtime:tk,auth:Object.assign(Object.assign({},tw),{storageKey:h}),global:tb},p=function(e,t){let{db:r,auth:n,realtime:i,global:o}=e,{db:s,auth:a,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},s),r),auth:Object.assign(Object.assign({},a),n),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},u),o)}}(null!=r?r:{},f);this.storageKey=null!==(i=null===(n=p.auth)||void 0===n?void 0:n.storageKey)&&void 0!==i?i:"",this.headers=null!==(s=null===(o=p.global)||void 0===o?void 0:o.headers)&&void 0!==s?s:{},this.auth=this._initSupabaseAuthClient(null!==(a=p.auth)&&void 0!==a?a:{},this.headers,null===(l=p.global)||void 0===l?void 0:l.fetch),this.fetch=eA(t,this._getAccessToken.bind(this),null===(u=p.global)||void 0===u?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},p.realtime)),this.rest=new z(`${d}/rest/v1`,{headers:this.headers,schema:null===(c=p.db)||void 0===c?void 0:c.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new A(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new eI(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r){return this.rest.rpc(e,t,r)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t,r,n,i,o;return r=this,n=void 0,i=void 0,o=function*(){let{data:r}=yield this.auth.getSession();return null!==(t=null===(e=r.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:null},new(i||(i=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,a)}l((o=o.apply(r,n||[])).next())})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,storageKey:i,flowType:o,debug:s},a,l){let u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ty({url:this.authUrl,headers:Object.assign(Object.assign({},u),a),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,flowType:o,debug:s,fetch:l})}_initRealtimeClient(e){return new ea(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,r){("TOKEN_REFRESHED"===e||"SIGNED_IN"===e)&&this.changedAccessToken!==r?(this.realtime.setAuth(null!=r?r:null),this.changedAccessToken=r):"SIGNED_OUT"===e&&(this.realtime.setAuth(this.supabaseKey),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0)}}let tS=(e,t,r)=>new tx(e,t,r);var tE=Object.create,tO=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,tP=Object.getOwnPropertyNames,tT=Object.getPrototypeOf,tI=Object.prototype.hasOwnProperty,tj=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of tP(t))tI.call(e,i)||i===r||tO(e,i,{get:()=>t[i],enumerable:!(n=tC(t,i))||n.enumerable});return e},tR=(e,t,r)=>(r=null!=e?tE(tT(e)):{},tj(!t&&e&&e.__esModule?r:tO(r,"default",{value:e,enumerable:!0}),e)),tA=(p={"../../node_modules/.pnpm/[email protected]/node_modules/cookie/index.js"(e){e.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=(t||{}).decode||n,o=0;o<e.length;){var s=e.indexOf("=",o);if(-1===s)break;var a=e.indexOf(";",o);if(-1===a)a=e.length;else if(a<s){o=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(o,s).trim();if(void 0===r[l]){var u=e.slice(s+1,a).trim();
2134===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=function(e,t){try{return t(e)}catch(t){return e}}(u,i)}o=a+1}return r},e.serialize=function(e,n,o){var s=o||{},a=s.encode||i;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!r.test(e))throw TypeError("argument name is invalid");var l=a(n);if(l&&!r.test(l))throw TypeError("argument val is invalid");var u=e+"="+l;if(null!=s.maxAge){var c=s.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(s.domain){if(!r.test(s.domain))throw TypeError("option domain is invalid");u+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw TypeError("option path is invalid");u+="; Path="+s.path}if(s.expires){var d=s.expires;if("[object Date]"!==t.call(d)&&!(d instanceof Date)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");u+="; Expires="+d.toUTCString()}if(s.httpOnly&&(u+="; HttpOnly"),s.secure&&(u+="; Secure"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;
21default:throw TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var t=Object.prototype.toString,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}}},function(){return g||(0,p[tP(p)[0]])((g={exports:{}}).exports,g),g.exports}),tL=tR(tA()),t$=tR(tA());function tM(e){if(!e)return null;try{let t=JSON.parse(e);if(!t)return null;if("Object"===t.constructor.name)return t;if("Array"!==t.constructor.name)throw Error(`Unexpected format: ${t.constructor.name}`);let[r,n,i]=t[0].split("."),o=C(n),s=new TextDecoder,{exp:a,sub:l,...u}=JSON.parse(s.decode(o));return{expires_at:a,expires_in:a-Math.round(Date.now()/1e3),token_type:"bearer",access_token:t[0],refresh_token:t[1],provider_token:t[2],provider_refresh_token:t[3],user:{id:l,factors:t[4],...u}}}catch(e){return console.warn("Failed to parse cookie string:",e),null}}function tN(e){var t;return JSON.stringify([e.access_token,e.refresh_token,e.provider_token,e.provider_refresh_token,(null==(t=e.user)?void 0:t.factors)??null])}function tF(){return"undefined"!=typeof window&&void 0!==window.document}var tB={path:"/",maxAge:31536e6},tD=class{constructor(e){this.cookieOptions={...tB,...e}}getItem(e){let t=this.getCookie(e);return t?e.endsWith("-code-verifier")?t:JSON.stringify(tM(t)):null}setItem(e,t){if(e.endsWith("-code-verifier")){this.setCookie(e,t);return}let r=JSON.parse(t),n=tN(r);this.setCookie(e,n)}removeItem(e){this.deleteCookie(e)}},tz=class extends tD{constructor(e){super(e)}getCookie(e){if(!tF())return null;let t=(0,tL.parse)(document.cookie);return t[e]}setCookie(e,t){if(!tF())return null;document.cookie=(0,tL.serialize)(e,t,{...this.cookieOptions,httpOnly:!1})}deleteCookie(e){if(!tF())return null;document.cookie=(0,tL.serialize)(e,"",{...this.cookieOptions,maxAge:0,httpOnly:!1})}};function tU(e,t,r){var n;let i=tF();return tS(e,t,{...r,auth:{flowType:"pkce",autoRefreshToken:i,detectSessionInUrl:i,persistSession:!0,storage:r.auth.storage,...(null==(n=r.auth)?void 0:n.storageKey)?{storageKey:r.auth.storageKey}:{}}})}var tH=t$.parse,tV=t$.serialize;/*! 22 * cookie 23 * Copyright(c) 2012-2014 Roman Shtylman 24 * Copyright(c) 2015 Douglas Christopher Wilson 25 * MIT Licensed 26 */},64312:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},72784:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{Z:function(){return i}})},55678:function(e,t,r){"use strict";r.d(t,{Am:function(){return I},Ix:function(){return k}});var n=r(67294),i=r(86010);let o=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,a=e=>"function"==typeof e,l=e=>s(e)||a(e)?e:null,u=e=>(0,n.isValidElement)(e)||s(e)||a(e)||o(e);function c(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(e){let{children:a,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:h}=e,f=i?`${t}--${l}`:t,p=i?`${r}--${l}`:r,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=d.current,t=f.split(" "),r=n=>{n.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,c,s):c()};h||(u?t():(g.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[h]),n.createElement(n.Fragment,null,a)}}function d(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}let h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let r=this.list.get(e).filter(e=>e!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let r=setTimeout(()=>
26{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},f=e=>{let{theme:t,type:r,...i}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...i})},p={info:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function m(e){let{closeToast:t,theme:r,ariaLabel:i="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":i},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function y(e){let{delay:t,isRunning:r,closeToast:o,type:s="default",hide:l,className:u,style:c,controlledProgress:d,progress:h,rtl:f,isIn:p,theme:g}=e,v=l||d&&0===h,m={...c,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:v?0:1};d&&(m.transform=`scaleX(${h})`);let y=(0,i.Z)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":f}),b=a(u)?u({rtl:f,type:s,defaultClassName:y}):(0,i.Z)(y,u);return n.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:b,style:m,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{p&&o()}})}let b=e=>{let{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:s}=function(e){let[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),s=(0,n.useRef)(null),l=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=(0,n.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:h,onClick:f,closeOnClick:p}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",k),document.addEventListener("touchmove",w),document.addEventListener("touchend",k);let r=s.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=r.getBoundingClientRect(),r.style.transition="",l.x=g(t.nativeEvent),l.y=v(t.
26nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function y(t){if(l.boundingRect){let{top:r,bottom:n,left:i,right:o}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=i&&l.x<=o&&l.y>=r&&l.y<=n?_():b()}}function b(){r(!0)}function _(){r(!1)}function w(r){let n=s.current;l.canDrag&&n&&(l.didMove=!0,t&&_(),l.x=g(r),l.y=v(r),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,n.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function k(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",k);let t=s.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)(()=>{u.current=e}),(0,n.useEffect)(()=>(s.current&&s.current.addEventListener("d",b,{once:!0}),a(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{let e=u.current;a(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)}),[]),(0,n.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",b),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))}),[e.pauseOnFocusLoss]);let x={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return c&&d&&(x.onMouseEnter=_,x.onMouseLeave=b),p&&(x.onClick=e=>{f&&f(e),l.canCloseOnClick&&h()}),{playToast:b,pauseToast:_,isRunning:t,preventExitTransition:i,toastRef:s,eventHandlers:x}}(e),{closeButton:l,children:u,autoClose:c,onClick:d,type:h,hideProgressBar:f,closeToast:p,transition:b,position:_,className:w,style:k,bodyClassName:x,bodyStyle:S,progressClassName:E,progressStyle:O,updateId:C,role:P,progress:T,rtl:I,toastId:j,deleteToast:R,isIn:A,isLoading:L,iconOut:$,closeOnClick:M,theme:N}=e,F=(0,i.Z)("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":M}),B=a(w)?w({rtl:I,position:_,type:h,defaultClassName:F}):(0,i.Z)(F,w),D=!!T||!c,z={closeToast:p,type:h,theme:N},U=null;return!1===l||(U=a(l)?l(z):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,z):m(z)),n.createElement(b,{isIn:A,done:R,position:_,preventExitTransition:r,nodeRef:o},n.createElement("div",{id:j,onClick:d,className:B,...s,style:k,ref:o},n.createElement("div",{...A&&{role:P},className:a(x)?x({type:h}):(0,i.Z)("Toastify__toast-body",x),style:S},null!=$&&n.createElement("div",{className:(0,i.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!L})},$),n.createElement("div",null,u)),U,n.createElement(y,{...C&&!D?{key:`pb-${C}`}:{},rtl:I,theme:N,delay:c,isRunning:t,isIn:A,closeToast:p,hide:f,type:h,style:O,className:E,controlledProgress:D,progress:T||0})))}
26,_=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},w=c(_("bounce",!0)),k=(c(_("slide",!0)),c(_("zoom")),c(_("flip")),(0,n.forwardRef)((e,t)=>{let{getToastToRender:r,containerRef:c,isToastActive:f}=function(e){let[,t]=(0,n.useReducer)(e=>e+1,0),[r,i]=(0,n.useState)([]),c=(0,n.useRef)(null),f=(0,n.useRef)(new Map).current,g=e=>-1!==r.indexOf(e),v=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:g,getToast:e=>f.get(e)}).current;function m(e){let{containerId:t}=e,{limit:r}=v.props;!r||t&&v.containerId!==t||(v.count-=v.queue.length,v.queue=[])}function y(e){i(t=>null==e?[]:t.filter(t=>t!==e))}function b(){let{toastContent:e,toastProps:t,staleId:r}=v.queue.shift();w(e,t,r)}function _(e,r){var i,g;let{delay:m,staleId:_,...k}=r;if(!u(e)||!c.current||v.props.enableMultiContainer&&k.containerId!==v.props.containerId||f.has(k.toastId)&&null==k.updateId)return;let{toastId:x,updateId:S,data:E}=k,{props:O}=v,C=()=>y(x),P=null==S;P&&v.count++;let T={...O,style:O.toastStyle,key:v.toastKey++,...k,toastId:x,updateId:S,data:E,closeToast:C,isIn:!1,className:l(k.className||O.toastClassName),bodyClassName:l(k.bodyClassName||O.bodyClassName),progressClassName:l(k.progressClassName||O.progressClassName),autoClose:!k.isLoading&&(i=k.autoClose,g=O.autoClose,!1===i||o(i)&&i>0?i:g),deleteToast(){let e=d(f.get(x),"removed");f.delete(x),h.emit(4,e);let r=v.queue.length;if(v.count=null==x?v.count-v.displayedToast:v.count-1,v.count<0&&(v.count=0),r>0){let e=null==x?v.props.limit:1;if(1===r||1===e)v.displayedToast++,b();else{let t=e>r?r:e;v.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};T.iconOut=function(e){let{theme:t,type:r,isLoading:i,icon:l}=e,u=null,c={theme:t,type:r};return!1===l||(a(l)?u=l(c):(0,n.isValidElement)(l)?u=(0,n.cloneElement)(l,c):s(l)||o(l)?u=l:i?u=p.spinner():r in p&&(u=p[r](c))),u}(T),a(k.onOpen)&&(T.onOpen=k.onOpen),a(k.onClose)&&(T.onClose=k.onClose),T.closeButton=O.closeButton,!1===k.closeButton||u(k.closeButton)?T.closeButton=k.closeButton:!0===k.closeButton&&(T.closeButton=!u(O.closeButton)||O.closeButton);let I=e;(0,n.isValidElement)(e)&&!s(e.type)?I=(0,n.cloneElement)(e,{closeToast:C,toastProps:T,data:E}):a(e)&&(I=e({closeToast:C,toastProps:T,data:E})),O.limit&&O.limit>0&&v.count>O.limit&&P?v.queue.push({toastContent:I,toastProps:T,staleId:_}):o(m)?setTimeout(()=>{w(I,T,_)},m):w(I,T,_)}function w(e,t,r){let{toastId:n}=t;r&&f.delete(r);let o={content:e,props:t};f.set(n,o),i(e=>[...e,n].filter(e=>e!==r)),h.emit(4,d(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)(()=>(v.containerId=e.containerId,h.cancelEmit(3).on(0,_).on(1,e=>c.current&&y(e)).on(5,m).emit(2,v),()=>{f.clear(),h.emit(3,v)}),[]),(0,n.useEffect)(()=>{v.props=e,v.isToastActive=g,v.displayedToast=r.length}),{getToastToRender:function(t){let r=new Map,n=Array.from(f.values());return e.newestOnTop&&n.reverse(),n.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},containerRef:c,isToastActive:g}}(e),{className:g,style:v,rtl:m,containerId:y}=e;return(0,n.useEffect)(()=>{t&&(t.current=c.current)},[]),n.createElement("div",{ref:c,className:"Toastify",id:y},r((e,t)=>{let r=t.length?{...v}:{...v,pointerEvents:"none"};return n.createElement("div",{className:function(e){let t=(0,i.Z)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":m});return a(g)?g({position:e,rtl:m,defaultClassName:t}):(0,i.Z)(t,l(g))}(e),style:r,key:`container-${e}`},t.map((e,r)=>{let{content:i,props:o}=e;return n.createElement(b,{...o,isIn:f(o.toastId),style:{...o.style,"--nth":r+1,"--len":t.length},key:`toast-${o.key}`},i)}))}))}));k.displayName="ToastContainer",k.defaultProps={position:"top-right",transition:w,autoClose:5e3,closeButton:m,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,S=new Map,E=[],O=1;function C(e,t){return S.size>0?h.emit(0,e,t):E.push({content:e,options:t}),t.toastId}function P(e,t){return{...t,type:t&&t.type||e,toastId:t&&(s(t.toastId)||o(t.toastId))?t.toastId:""+O++}}function T(e){return(t,r)=>C(t,P(e,r))}function I(e,t){return C(e,P("default",t))}I.loading=(e,t)=>
26C(e,P("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),I.promise=function(e,t,r){let n,{pending:i,error:o,success:l}=t;i&&(n=s(i)?I.loading(i,r):I.loading(i.render,{...r,...i}));let u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},c=(e,t,i)=>{if(null==t)return void I.dismiss(n);let o={type:e,...u,...r,data:i},a=s(t)?{render:t}:t;return n?I.update(n,{...o,...a}):I(a.render,{...o,...a}),i},d=a(e)?e():e;return d.then(e=>c("success",l,e)).catch(e=>c("error",o,e)),d},I.success=T("success"),I.info=T("info"),I.error=T("error"),I.warning=T("warning"),I.warn=I.warning,I.dark=(e,t)=>C(e,P("default",{theme:"dark",...t})),I.dismiss=e=>{S.size>0?h.emit(1,e):E=E.filter(t=>null!=e&&t.options.toastId!==e)},I.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},I.isActive=e=>{let t=!1;return S.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},I.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let r=function(e,t){let{containerId:r}=t,n=S.get(r||x);return n&&n.getToast(e)}(e,t);if(r){let{props:n,content:i}=r,o={...n,...t,toastId:t.toastId||e,updateId:""+O++};o.toastId!==e&&(o.staleId=e);let s=o.render||i;delete o.render,C(s,o)}},0)},I.done=e=>{I.update(e,{progress:1})},I.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),I.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},I.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,e=>{x=e.containerId||e,S.set(x,e),E.forEach(e=>{h.emit(0,e.content,e.options)}),E=[]}).on(3,e=>{S.delete(e.containerId||e),0===S.size&&h.off(0).off(1).off(5)})},19122:function(e){"use strict";e.exports={version:"0.18.0"}},19794:function(e){"use strict";e.exports={version:"1.0.34"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(96885)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.