-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-2d15fb1fecc599282845.js
282 lines (233 loc) · 347 KB
/
app-2d15fb1fecc599282845.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/*! For license information please see app-2d15fb1fecc599282845.js.LICENSE.txt */
(self.webpackChunkgatsby_starter_blog=self.webpackChunkgatsby_starter_blog||[]).push([[524],{4300:function(e,t,r){"use strict";r.d(t,{A:function(){return oe}});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){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function h(e){return e.length}function p(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,x="";function w(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:m,column:g,length:a,return:""}}function S(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(x,--y):0,g--,10===b&&(g=1,m--),b}function C(){return b=y<v?u(x,y++):0,g++,10===b&&(g=1,m++),b}function _(){return u(x,y)}function E(){return y}function P(e,t){return d(x,e,t)}function T(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 A(e){return m=g=1,v=h(x=e),y=0,[]}function R(e){return x="",e}function j(e){return s(P(y-1,O(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(b=_())&&b<33;)C();return T(e)>2||T(b)>3?"":" "}function $(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return P(e,E()+(t<6&&32==_()&&32==C()))}function O(e){for(;C();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&O(b);break;case 40:41===e&&O(e);break;case 92:C()}return y}function D(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==_()););return"/*"+P(t,y-1)+"*"+i(47===e?e:C())}function z(e){for(;!T(_());)C();return P(e,y)}var B="-ms-",L="-moz-",I="-webkit-",F="comm",V="rule",H="decl",N="@keyframes";function W(e,t){for(var r="",n=p(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function U(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case F:return"";case N:return e.return=e.value+"{"+W(e.children,n)+"}";case V:e.value=e.props.join(",")}return h(r=W(e.children,n))?e.return=e.value+"{"+r+"}":""}function q(e){return R(Y("",null,null,null,[""],e=A(e),0,[0],e))}function Y(e,t,r,n,o,a,s,d,p){for(var m=0,g=0,v=s,y=0,b=0,x=0,w=1,S=1,P=1,T=0,A="",R=o,O=a,B=n,L=A;S;)switch(x=T,T=C()){case 40:if(108!=x&&58==u(L,v-1)){-1!=c(L+=l(j(T),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:L+=j(T);break;case 9:case 10:case 13:case 32:L+=M(x);break;case 92:L+=$(E()-1,7);continue;case 47:switch(_()){case 42:case 47:f(X(D(C(),E()),t,r),p);break;default:L+="/"}break;case 123*w:d[m++]=h(L)*P;case 125*w:case 59:case 0:switch(T){case 0:case 125:S=0;case 59+g:-1==P&&(L=l(L,/\f/g,"")),b>0&&h(L)-v&&f(b>32?K(L+";",n,r,v-1):K(l(L," ","")+";",n,r,v-2),p);break;case 59:L+=";";default:if(f(B=G(L,t,r,m,g,o,d,A,R=[],O=[],v),a),123===T)if(0===g)Y(L,t,B,B,R,a,v,d,O);else switch(99===y&&110===u(L,3)?100:y){case 100:case 108:case 109:case 115:Y(e,B,B,n&&f(G(e,B,B,0,0,o,d,A,o,R=[],v),O),o,O,v,d,n?R:O);break;default:Y(L,B,B,B,[""],O,0,d,O)}}m=g=b=0,w=P=1,A=L="",v=s;break;case 58:v=1+h(L),b=x;default:if(w<1)if(123==T)--w;else if(125==T&&0==w++&&125==k())continue;switch(L+=i(T),T*w){case 38:P=g>0?1:(L+="\f",-1);break;case 44:d[m++]=(h(L)-1)*P,P=1;break;case 64:45===_()&&(L+=j(C())),y=_(),g=v=h(A=L+=z(E())),T++;break;case 45:45===x&&2==h(L)&&(w=0)}}return a}function G(e,t,r,n,i,a,c,u,h,f,m){for(var g=i-1,v=0===i?a:[""],y=p(v),b=0,x=0,S=0;b<n;++b)for(var k=0,C=d(e,g+1,g=o(x=c[b])),_=e;k<y;++k)(_=s(x>0?v[k]+" "+C:l(C,/&\f/g,v[k])))&&(h[S++]=_);return w(e,t,r,0===i?V:u,h,f,m)}function X(e,t,r){return w(e,t,r,F,i(b),d(e,2,-2),0)}function K(e,t,r,n){return w(e,t,r,H,d(e,0,n),d(e,n+1,-1),n)}var J=function(e,t,r){for(var n=0,o=0;n=o,o=_(),38===n&&12===o&&(t[r]=1),!T(o);)C();return P(e,y)},Q=function(e,t){return R(function(e,t){var r=-1,n=44;do{switch(T(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=J(y-1,t,r);break;case 2:e[r]+=j(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=C());return e}(A(e),t))},Z=new WeakMap,ee=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)||Z.get(r))&&!n){Z.set(e,!0);for(var o=[],i=Q(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return I+"print-"+e+e;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 I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+L+e+B+e+e;case 6828:case 4268:return I+e+B+e+e;case 6165:return I+e+B+"flex-"+e+e;case 5187:return I+e+l(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return I+e+B+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return I+e+B+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+B+l(e,"shrink","negative")+e;case 5292:return I+e+B+l(e,"basis","preferred-size")+e;case 6060:return I+"box-"+l(e,"-grow","")+I+e+B+l(e,"grow","positive")+e;case 4554:return I+l(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,I+"$1$2")+e;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(h(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+L+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+I)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(45===u(e,14)?"inline-":"")+"box$3$1"+I+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return I+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+B+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+B+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=re(e.value,e.length);break;case N:return W([S(e,{value:l(e.value,"@","@"+I)})],n);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([S(e,{props:[l(t,/:(plac\w+)/,":"+I+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,B+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)}));var c,u,d,h,f=[U,(h=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&h(e)})],m=(u=[ee,te].concat(o,f),d=p(u),function(e,t,r,n){for(var o="",i=0;i<d;i++)o+=u[i](e,t,r,n)||"";return o});a=function(e,t,r,n){c=r,W(q(e?e+"{"+t.styles+"}":t.styles),m),n&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new n({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(l),g}},6289: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,{A:function(){return n}})},2977:function(e,t,r){"use strict";r.d(t,{T:function(){return u},a:function(){return h},i:function(){return s},w:function(){return c}});var n=r(6540),o=r(4300),i=r(8168),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},s=(r(2142),r(1287),!0),l=n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null);l.Provider;var c=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(l);return e(t,o,r)}))};s||(c=function(e){return function(t){var r=(0,n.useContext)(l);return null===r?(r=(0,o.A)({key:"css"}),n.createElement(l.Provider,{value:r},e(t,r))):e(t,r)}});var u=n.createContext({});var d=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,i.A)({},e,t)}(e,t)}))})),h=function(e){var t=n.useContext(u);return e.theme!==t&&(t=d(t)(e.theme)),n.createElement(u.Provider,{value:t},e.children)}},2142:function(e,t,r){"use strict";r.d(t,{J:function(){return f}});var n=r(3969),o=r(6289),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,r){return h={name:t,styles:r,next:h},t}))}return 1===n.A[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(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 h={name:r.name,styles:r.styles,next:h},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)h={name:n.name,styles:n.styles,next:h},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=d(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=i+"{"+t[a]+"}":l(a)&&(n+=c(i)+":"+u(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(i){case"animation":case"animationName":n+=c(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var h=0;h<a.length;h++)l(a[h])&&(n+=c(i)+":"+u(i,a[h])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=h,i=r(e);return h=o,d(e,t,i)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var h,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var f=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";h=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=d(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=d(r,t,e[a]),n&&(o+=i[a]);p.lastIndex=0;for(var s,l="";null!==(s=p.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:h}}},3969:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var n={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,msGridRow: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}},1287:function(e,t,r){"use strict";var n;r.d(t,{i:function(){return s},s:function(){return a}});var o=r(6540),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},41:function(e,t,r){"use strict";r.d(t,{Rk:function(){return n},SF:function(){return o},sk:function(){return i}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},6395:function(e,t){"use strict";t.T=void 0;const r=[".html",".json",".js",".map",".txt",".xml",".pdf"];t.T=(e,t="always")=>{if("/"===e)return e;const n=e.endsWith("/");return((e,t)=>{for(const r of e)if(t.endsWith(r))return!0;return!1})(r,e)?e:"always"===t?n?e:`${e}/`:"never"===t&&n?e.slice(0,-1):e}},7035:function(e,t,r){"use strict";t.RV=t.z_=void 0;var n=r(3215);t.z_=n.ScrollHandler;var o=r(3721);t.RV=o.useScrollRestoration},3215:function(e,t,r){"use strict";var n=r(4994);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=n(r(2475)),i=n(r(6221)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(6540)),s=n(r(5556)),l=r(4351);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var u=a.createContext(new l.SessionStorage);t.ScrollContext=u,u.displayName="GatsbyScrollContext";var d=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this)._stateStorage=new l.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,r){t.shouldUpdateScroll(r,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,r){var n=document.getElementById(e.substring(1));n&&t.shouldUpdateScroll(r,t.props)&&n.scrollIntoView()},t.shouldUpdateScroll=function(e,r){var n=t.props.shouldUpdateScroll;return!n||n.call((0,o.default)(t),e,r)},t}(0,i.default)(t,e);var r=t.prototype;return r._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},r.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,r=t.key,n=t.hash;r&&(e=this._stateStorage.read(this.props.location,r)),n?this.scrollToHash(decodeURI(n),void 0):e&&this.windowScroll(e,void 0)},r.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},r.componentDidUpdate=function(e){var t,r=this.props.location,n=r.hash,o=r.key;o&&(t=this._stateStorage.read(this.props.location,o)),n?this.scrollToHash(decodeURI(n),e):this.windowScroll(t,e)},r.render=function(){return a.createElement(u.Provider,{value:this._stateStorage},this.props.children)},t}(a.Component);t.ScrollHandler=d,d.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},4351:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var r="___GATSBY_REACT_ROUTER_SCROLL",n=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var n=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(n);return o?JSON.parse(o):0}catch(i){return window&&window[r]&&window[r][n]?window[r][n]:0}},t.save=function(e,t,n){var o=this.getStateKey(e,t),i=JSON.stringify(n);try{window.sessionStorage.setItem(o,i)}catch(a){window&&window[r]||(window[r]={}),window[r][o]=JSON.parse(i)}},t.getStateKey=function(e,t){var r="@@scroll|"+e.pathname;return null==t?r:r+"|"+t},e}();t.SessionStorage=n},3721:function(e,t,r){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,i.useLocation)(),r=(0,o.useContext)(n.ScrollContext),a=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(a.current){var n=r.read(t,e);a.current.scrollTo(0,n||0)}}),[t.key]),{ref:a,onScroll:function(){a.current&&r.save(t,e,a.current.scrollTop)}}};var n=r(3215),o=r(6540),i=r(6462)},8828:function(e){"use strict";e.exports=Object.assign},2311:function(e,t,r){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;r(5535),r(9300);t.onInitialClientRender=()=>{}},3309:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap((e=>(null==e?void 0:e.forward)||[]))}},9300:function(e,t,r){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),r=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();r&&r.remove();const i=(0,o.getForwards)(e),a=document.createElement("script");a.dataset.partytown="",a.innerHTML=(0,n.partytownSnippet)({forward:i}),document.head.appendChild(a)};var n=r(4656),o=r(3309)},6877:function(e,t,r){t.components={"component---src-pages-404-tsx":()=>Promise.all([r.e(246),r.e(453)]).then(r.bind(r,731)),"component---src-pages-head-tsx":()=>r.e(965).then(r.bind(r,153)),"component---src-pages-index-tsx":()=>Promise.all([r.e(246),r.e(245)]).then(r.bind(r,2934)),"component---src-templates-blog-post-tsx":()=>Promise.all([r.e(246),r.e(455)]).then(r.bind(r,9750)),"component---src-templates-gallery-post-tsx":()=>Promise.all([r.e(869),r.e(246),r.e(973)]).then(r.bind(r,5500))}},9377:function(e,t,r){e.exports=[{plugin:r(3634),options:{plugins:[],enableListener:!0,preconnect:["https://fonts.googleapis.com","https://fonts.gstatic.com"],web:[{name:"Merriweather",file:"https://fonts.googleapis.com/css2?family=Merriweather:wght@400;600;700&display=swap"}]}},{plugin:r(642),options:{plugins:[],resetCSS:!1}},{plugin:r(6774),options:{plugins:[],offsetY:0,className:"anchor"}},{plugin:r(5616),options:{plugins:[],maxWidth:630,linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,backgroundColor:"white",quality:50,withWebp:!1,withAvif:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1}},{plugin:r(7914),options:{plugins:[],name:"Dylan's personal blog",short_name:"Dylan's blog",start_url:"/",background_color:"#ffffff",display:"minimal-ui",icon:"src/images/gatsby-icon.png",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"4a9773549091c227cd2eb82ccd9c5e3a"}},{plugin:r(9046),options:{plugins:[]}},{plugin:r(2311),options:{plugins:[]}}]},20:function(e,t,r){const n=r(9377),{getResourceURLsForPathname:o,loadPage:i,loadPageSync:a}=r(6814).Zf;t.N=function(e,t,r,s){void 0===t&&(t={});let l=n.map((r=>{if(!r.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=i,t.loadPageSync=a;const n=r.plugin[e](t,r.options);return n&&s&&(t=s({args:t,result:n,plugin:r})),n}));return l=l.filter((e=>void 0!==e)),l.length>0?l:r?[r]:[]},t.v=(e,t,r)=>n.reduce(((r,n)=>n.plugin[e]?r.then((()=>n.plugin[e](t,n.options))):r),Promise.resolve())},700:function(e,t){t.U=()=>""},9369:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var n=function(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).slice().map((function(e){e(r)})),(e["*"]||[]).slice().map((function(e){e(t,r)}))}}}()},8990:function(e,t,r){"use strict";r.d(t,{Yl:function(){return h},Hh:function(){return f},UA:function(){return p},QX:function(){return d}});var n=r(6462),o=r(8797),i=e=>{if(void 0===e)return e;let[t,r=""]=e.split("?");return r&&(r="?"+r),"/"===t?"/"+r:"/"===t.charAt(t.length-1)?t.slice(0,-1)+r:t+r},a=r(6491);const s=new Map;let l=[];const c=e=>{let t=e;if(-1!==e.indexOf("?")){const[r,n]=e.split("?");t=`${r}?${encodeURIComponent(n)}`}const r=decodeURIComponent(t);return(0,o.A)(r,decodeURIComponent("")).split("#")[0]};function u(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const d=e=>{l=e},h=e=>{const t=m(e),r=l.map((e=>{let{path:t,matchPath:r}=e;return{path:r,originalPath:t}})),o=(0,n.pick)(r,t);return o?i(o.route.originalPath):null},p=e=>{const t=m(e),r=l.map((e=>{let{path:t,matchPath:r}=e;return{path:r,originalPath:t}})),o=(0,n.pick)(r,t);return o?o.params:{}},f=e=>{const t=c(u(e));if(s.has(t))return s.get(t);const r=(0,a.X)(e);if(r)return f(r.toPath);let n=h(t);return n||(n=m(e)),s.set(t,n),n},m=e=>{let t=c(u(e));return"/index.html"===t&&(t="/"),t=i(t),t}},4794:function(e,t,r){"use strict";r.r(t),r.d(t,{Link:function(){return s.N_},PageRenderer:function(){return i()},Script:function(){return k.Script},ScriptStrategy:function(){return k.ScriptStrategy},Slice:function(){return x},StaticQuery:function(){return l.de},StaticQueryContext:function(){return l.G},collectedScriptsByPage:function(){return k.collectedScriptsByPage},graphql:function(){return _},navigate:function(){return s.oo},parsePath:function(){return s.Rr},prefetchPathname:function(){return C},scriptCache:function(){return k.scriptCache},scriptCallbackCache:function(){return k.scriptCallbackCache},useScrollRestoration:function(){return a.RV},useStaticQuery:function(){return l.GR},withAssetPrefix:function(){return s.Zf},withPrefix:function(){return s.Fe}});var n=r(6814),o=r(2549),i=r.n(o),a=r(7035),s=r(7078),l=r(7231),c=r(7387);function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var d=r(3662);function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){var t="function"==typeof Map?new Map:void 0;return p=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(h())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&(0,d.A)(o,r.prototype),o}(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,d.A)(r,e)},p(e)}var f=r(6540),m=r(700),g=r(2024);const v=e=>{let{sliceId:t,children:r}=e;const n=[f.createElement("slice-start",{id:`${t}-1`}),f.createElement("slice-end",{id:`${t}-1`})];return r&&(n.push(r),n.push(f.createElement("slice-start",{id:`${t}-2`}),f.createElement("slice-end",{id:`${t}-2`}))),n},y=e=>{let{sliceName:t,allowEmpty:r,children:n,...o}=e;const i=(0,f.useContext)(g.Jr),a=(0,f.useContext)(g.hr),s=i[t];if(!s){if(r)return null;throw new Error(`Slice "${s}" for "${t}" slot not found`)}const l=((e,t)=>Object.keys(t).length?`${e}-${(0,m.U)(t)}`:e)(s,o);let c=a[l];return c?n&&(c.hasChildren=!0):a[l]=c={props:o,sliceName:s,hasChildren:!!n},f.createElement(v,{sliceId:l},n)},b=e=>{let{sliceName:t,allowEmpty:r,children:n,...o}=e;const i=(0,f.useContext)(g.Jr),a=(0,f.useContext)(g.dd),s=i[t],l=a.get(s);if(!l){if(r)return null;throw new Error(`Slice "${s}" for "${t}" slot not found`)}return f.createElement(l.component,Object.assign({sliceContext:l.sliceContext,data:l.data},o),n)};function x(e){{const t={...e,sliceName:e.alias};delete t.alias,delete t.__renderedByLocation;const r=(0,f.useContext)(g.j$),n=S(e);if(Object.keys(n).length)throw new w("browser"===r.renderEnvironment,t.sliceName,n,e.__renderedByLocation);if("server"===r.renderEnvironment)return f.createElement(y,t);if("browser"===r.renderEnvironment)return f.createElement(b,t);if("engines"===r.renderEnvironment||"dev-ssr"===r.renderEnvironment)return f.createElement(b,t);if("slices"===r.renderEnvironment){let t="";try{t=`\n\nSlice component "${r.sliceRoot.name}" (${r.sliceRoot.componentPath}) tried to render <Slice alias="${e.alias}"/>`}catch{}throw new Error(`Nested slices are not supported.${t}\n\nSee https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`)}throw new Error(`Slice context "${r.renderEnvironment}" is not supported.`)}}let w=function(e){function t(r,n,o,i){var a;const s=Object.entries(o).map((e=>{let[t,r]=e;return`not serializable "${r}" type passed to "${t}" prop`})).join(", "),l="SlicePropsError";let c="",u="";if(r){const e=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getCurrentStack().trim().split("\n").slice(1);e[0]=e[0].trim(),c="\n"+e.join("\n"),u=`Slice "${n}" was passed props that are not serializable (${s}).`}else{u=`${l}: Slice "${n}" was passed props that are not serializable (${s}).`;c=`${u}\n${(new Error).stack.trim().split("\n").slice(2).join("\n")}`}return(a=e.call(this,u)||this).name=l,c?a.stack=c:Error.captureStackTrace(a,t),i&&(a.forcedLocation={...i,functionName:"Slice"}),a}return(0,c.A)(t,e),t}(p(Error));const S=function(e,t,r,n){void 0===t&&(t={}),void 0===r&&(r=[]),void 0===n&&(n=null);for(const[o,i]of Object.entries(e)){if(null==i||!n&&"children"===o)continue;const e=n?`${n}.${o}`:o;"function"==typeof i?t[e]=typeof i:"object"==typeof i&&r.indexOf(i)<=0&&(r.push(i),S(i,t,r,e))}return t};var k=r(5535);const C=n.Ay.enqueue;function _(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}},6814:function(e,t,r){"use strict";r.d(t,{Wi:function(){return d},N5:function(){return w},Ay:function(){return C},Rh:function(){return E},LE:function(){return _},Zf:function(){return k},iC:function(){return S}});var n=r(7387),o=r(4506),i=r(8163);const a=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(r){return!1}return!1}("prefetch")?function(e,t){return new Promise(((r,n)=>{if("undefined"==typeof document)return void n();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),o.onload=r,o.onerror=n;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}))}:function(e){return new Promise(((t,r)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),n.onload=()=>{200===n.status?t():r()},n.send(null)}))},s={};var l=function(e,t){return new Promise((r=>{s[e]?r():a(e,t).then((()=>{r(),s[e]=!0})).catch((()=>{}))}))},c=r(9369),u=r(8990);const d={Error:"error",Success:"success"},h=e=>{const[t,r]=e.split("?");var n;return`/page-data/${"/"===t?"index":(n="/"===(n=t)[0]?n.slice(1):n).endsWith("/")?n.slice(0,-1):n}/page-data.json${r?`?${r}`:""}`},p=e=>e.startsWith("//");function f(e,t){return void 0===t&&(t="GET"),new Promise((r=>{const n=new XMLHttpRequest;n.open(t,e,!0),n.onreadystatechange=()=>{4==n.readyState&&r(n)},n.send(null)}))}const m=/bot|crawler|spider|crawling/i,g=function(e,t,r){var n;void 0===t&&(t=null);const o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(n=e.slicesMap)&&void 0!==n?n:{}};return{component:t,head:r,json:e.result,page:o}};function v(e){return new Promise((t=>{try{const r=e.readRoot();t(r)}catch(r){if(!Object.hasOwnProperty.call(r,"_response")||!Object.hasOwnProperty.call(r,"_status"))throw r;setTimeout((()=>{v(e).then(t)}),200)}}))}let y=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,u.QX)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=f(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then((t=>(this.inFlightNetworkRequests.delete(e),t))).catch((t=>{throw this.inFlightNetworkRequests.delete(e),t}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((e=>e))},t.fetchPageDataJson=function(e){const{pagePath:t,retries:r=0}=e,n=h(t);return this.memoizedGet(n).then((n=>{const{status:o,responseText:i}=n;if(200===o)try{const r=JSON.parse(i);if(void 0===r.path)throw new Error("not a valid pageData response");const n=t.split("?")[1];return n&&!r.path.includes(n)&&(r.path+=`?${n}`),Object.assign(e,{status:d.Success,payload:r})}catch(a){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):r<3?this.fetchPageDataJson(Object.assign(e,{retries:r+1})):Object.assign(e,{status:d.Error})}))},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:r=0}=e,n=h(t).replace(".json","-rsc.json");return this.memoizedGet(n).then((n=>{const{status:o,responseText:i}=n;if(200===o)try{return Object.assign(e,{status:d.Success,payload:i})}catch(a){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):r<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:r+1})):Object.assign(e,{status:d.Error})}))},t.loadPageDataJson=function(e){const t=(0,u.Hh)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then((e=>(this.pageDataDb.set(t,e),e)))},t.loadPartialHydrationJson=function(e){const t=(0,u.Hh)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then((e=>(this.partialHydrationDb.set(t,e),e)))},t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return f(`/slice-data/${e}.json`,"GET").then((t=>{const r=JSON.parse(t.responseText);return this.slicesDataDb.set(e,r),{sliceName:e,jsonPayload:r}}))},t.findMatchPath=function(e){return(0,u.Yl)(e)},t.loadPage=function(e){const t=(0,u.Hh)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const r=[this.loadAppData(),this.loadPageDataJson(t)];const n=Promise.all(r).then((e=>{const[r,n,a]=e;if(n.status===d.Error||(null==a?void 0:a.status)===d.Error)return{status:d.Error};let s=n.payload;const{componentChunkName:l,staticQueryHashes:u=[],slicesMap:h={}}=s,p={},f=Array.from(new Set(Object.values(h))),m=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then((t=>{return{component:(r=t,r&&r.default||r),sliceContext:e.result.sliceContext,data:e.result.data};var r}));return this.sliceInflightDb.set(e.name,t),t.then((t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)})),t};return Promise.all(f.map((e=>this.loadSliceDataJson(e)))).then((e=>{const h=[],f=(0,o.A)(u);for(const{jsonPayload:t,sliceName:r}of Object.values(e)){h.push({name:r,...t});for(const e of t.staticQueryHashes)f.includes(e)||f.push(e)}const y=[Promise.all(h.map(m)),this.loadComponent(l,"head")];y.push(this.loadComponent(l));const b=Promise.all(y).then((e=>{const[t,o,l]=e;p.createdAt=new Date;for(const r of t)(!r||r instanceof Error)&&(p.status=d.Error,p.error=r);let c;if((!l||l instanceof Error)&&(p.status=d.Error,p.error=l),p.status!==d.Error){if(p.status=d.Success,!0!==n.notFound&&!0!==(null==a?void 0:a.notFound)||(p.notFound=!0),s=Object.assign(s,{webpackCompilationHash:r?r.webpackCompilationHash:""}),"string"==typeof(null==a?void 0:a.payload)){c=g(s,null,o),c.partialHydration=a.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(a.payload))},pull(e){e.close()},cancel(){}});return v((0,i.createFromReadableStream)(e)).then((e=>(c.partialHydration=e,c)))}c=g(s,l,o)}return c})),x=Promise.all(f.map((e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet(`/page-data/sq/d/${e}.json`).then((t=>{const r=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:r}})).catch((()=>{throw new Error(`We couldn't load "/page-data/sq/d/${e}.json"`)}))}))).then((e=>{const t={};return e.forEach((e=>{let{staticQueryHash:r,jsonPayload:n}=e;t[r]=n,this.staticQueryDb[r]=n})),t}));return Promise.all([b,x]).then((e=>{let r,[n,o]=e;return n&&(r={...n,staticQueryResults:o},p.payload=r,c.A.emit("onPostLoadPageResources",{page:r,pageResources:r})),this.pageDb.set(t,p),p.error?{error:p.error,status:p.status}:r})).catch((e=>({error:e,status:d.Error})))}))}));return n.then((()=>{this.inFlightDb.delete(t)})).catch((e=>{throw this.inFlightDb.delete(t),e})),this.inFlightDb.set(t,n),n},t.loadPageSync=function(e,t){void 0===t&&(t={});const r=(0,u.Hh)(e);if(this.pageDb.has(r)){var n;const e=this.pageDb.get(r);if(e.payload)return e.payload;if(null!==(n=t)&&void 0!==n&&n.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&((!navigator.userAgent||!m.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise(((e,r)=>{t.resolve=e,t.reject=r})),this.prefetchQueued.push([e,t]);const r=new AbortController;return r.signal.addEventListener("abort",(()=>{const t=this.prefetchQueued.findIndex((t=>{let[r]=t;return r===e}));-1!==t&&this.prefetchQueued.splice(t,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(e,r)=>t.promise.then(e,r),abort:r.abort.bind(r)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))((()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map((e=>{let[t,r]=e;return this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled?r.resolve(!1):this.doPrefetch((0,u.Hh)(t)).then((()=>{this.prefetchCompleted.has(t)||(this.apiRunner("onPostPrefetchPathname",{pathname:t}),this.prefetchCompleted.add(t)),r.resolve(!0)}))})));this.prefetchQueued.length?t.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},t.doPrefetch=function(e){const t=h(e);return l(t,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(e)))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,u.Hh)(e),r=this.pageDataDb.get(t);if(r){const e=g(r.payload);return[].concat((0,o.A)(b(e.page.componentChunkName)),[h(t)])}return null},t.isPageNotFound=function(e){const t=(0,u.Hh)(e),r=this.pageDb.get(t);return!r||r.notFound},t.loadAppData=function(e){return void 0===e&&(e=0),this.memoizedGet("/page-data/app-data.json").then((t=>{const{status:r,responseText:n}=t;let o;if(200!==r&&e<3)return this.loadAppData(e+1);if(200===r)try{const e=JSON.parse(n);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");o=e}catch(i){}return o}))},e}();const b=e=>(window.___chunkMapping[e]||[]).map((e=>""+e));let x,w=function(e){function t(t,r,n){var o;return o=e.call(this,(function(e,r){if(void 0===r&&(r="components"),!t[r="components"][e])throw new Error(`We couldn't find the correct component chunk with the name "${e}"`);return t[r][e]().catch((e=>e))}),r)||this,n&&o.pageDataDb.set((0,u.Hh)(n.path),{pagePath:n.path,payload:n,status:"success"}),o}(0,n.A)(t,e);var r=t.prototype;return r.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((e=>{if(e.status!==d.Success)return Promise.resolve();const t=e.payload,r=t.componentChunkName,n=b(r);return Promise.all(n.map(l)).then((()=>t))}))},r.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((e=>e.notFound?p(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},r.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then((e=>e.notFound?p(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},t}(y);const S=e=>{x=e},k={enqueue:e=>x.prefetch(e),getResourceURLsForPathname:e=>x.getResourceURLsForPathname(e),loadPage:e=>x.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),x.loadPageSync(e,t)},prefetch:e=>x.prefetch(e),isPageNotFound:e=>x.isPageNotFound(e),hovering:e=>x.hovering(e),loadAppData:()=>x.loadAppData()};var C=k;function _(){return x?x.staticQueryDb:{}}function E(){return x?x.slicesDb:{}}},6017:function(e,t,r){"use strict";r.d(t,{A:function(){return C}});var n=r(6540),o=r(5556),i=r.n(o),a=r(20),s=r(8990),l=r(4506),c=r(4794),u=r(6462),d=r(9732);function h(e){let{children:t,callback:r}=e;return(0,n.useEffect)((()=>{r()})),t}const p=["link","meta","style","title","base","noscript","script","html","body"];function f(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){const n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function m(e,t){void 0===t&&(t={html:{},body:{}});const r=new Map,n=[];for(const c of e.childNodes){var o,i;const e=c.nodeName.toLowerCase(),u=null===(o=c.attributes)||void 0===o||null===(i=o.id)||void 0===i?void 0:i.value;if(y(c)){if(v(e))if("html"===e||"body"===e)for(const r of c.attributes){const n="style"===r.name;var a;if(t[e]={...t[e]},n||(t[e][r.name]=r.value),n)t[e].style=`${null!==(a=t[e])&&void 0!==a&&a.style?t[e].style:""}${r.value} `}else{let e=c.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),"script"===e.nodeName.toLowerCase()&&(e=g(e)),u)if(r.has(u)){var s;const t=r.get(u);null===(s=n[t].parentNode)||void 0===s||s.removeChild(n[t]),n[t]=e}else n.push(e),r.set(u,n.length-1);else n.push(e)}c.childNodes.length&&n.push.apply(n,(0,l.A)(m(c,t).validHeadNodes))}}return{validHeadNodes:n,htmlAndBodyAttributes:t}}function g(e){const t=document.createElement("script");for(const r of e.attributes)t.setAttribute(r.name,r.value);return t.innerHTML=e.innerHTML,t}function v(e){return p.includes(e)}function y(e){return 1===e.nodeType}const b=document.createElement("div"),x={html:[],body:[]},w=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:r}=m(b);x.html=Object.keys(r.html),x.body=Object.keys(r.body),function(e){if(!e)return;const{html:t,body:r}=e,n=document.querySelector("html");n&&Object.entries(t).forEach((e=>{let[t,r]=e;n.setAttribute(t,r)}));const o=document.querySelector("body");o&&Object.entries(r).forEach((e=>{let[t,r]=e;o.setAttribute(t,r)}))}(r);const n=document.querySelectorAll("[data-gatsby-head]");var o;if(0===n.length)return void(o=document.head).append.apply(o,(0,l.A)(t));const i=[];!function(e){let{oldNodes:t,newNodes:r,onStale:n,onNew:o}=e;for(const i of t){const e=r.findIndex((e=>f(e,i)));-1===e?n(i):r.splice(e,1)}for(const i of r)o(i)}({oldNodes:n,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>i.push(e)}),(e=document.head).append.apply(e,i)};function S(e){let{pageComponent:t,staticQueryResults:r,pageComponentProps:o}=e;(0,n.useEffect)((()=>{if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error(`Expected "Head" export to be a function got "${typeof e}".`)}(t.Head);const{render:i}=(0,d.n)(),s=n.createElement(t.Head,{location:{pathname:(e=o).location.pathname},params:e.params,data:e.data||{},serverData:e.serverData,pageContext:e.pageContext}),l=(0,a.N)("wrapRootElement",{element:s},s,(e=>{let{result:t}=e;return{element:t}})).pop();i(n.createElement(h,{callback:w},n.createElement(c.StaticQueryContext.Provider,{value:r},n.createElement(u.LocationProvider,null,l))),b)}var e;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:r}=e;if(t){const e=document.querySelector("html");t.forEach((t=>{e&&e.removeAttribute(t)}))}if(r){const e=document.querySelector("body");r.forEach((t=>{e&&e.removeAttribute(t)}))}}(x)}}))}function k(e){const t={...e,params:{...(0,s.UA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let r;var o;r=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,n.createElement)((o=e.pageResources.component)&&o.default||o,{...t,key:e.path||e.pageResources.page.path});S({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,a.N)("wrapPageElement",{element:r,props:t},r,(e=>{let{result:r}=e;return{element:r,props:t}})).pop()}k.propTypes={location:i().object.isRequired,pageResources:i().object.isRequired,data:i().object,pageContext:i().object.isRequired};var C=k},6498:function(e,t,r){"use strict";var n=r(7387),o=r(20),i=r(6540),a=r(6462),s=r(7035),l=r(7231),c=r(2024),u=r(6814),d=r(6491),h=r(9369);const p={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var f=r(7078);function m(e){const t=(0,d.X)(e),{hash:r,search:n}=window.location;return null!=t&&(window.___replace(t.toPath+n+r),!0)}let g="";window.addEventListener("unhandledrejection",(e=>{/loading chunk \d* failed./i.test(e.reason)&&g&&(window.location.pathname=g)}));const v=(e,t)=>{m(e.pathname)||(g=e.pathname,(0,o.N)("onPreRouteUpdate",{location:e,prevLocation:t}))},y=(e,t)=>{m(e.pathname)||(0,o.N)("onRouteUpdate",{location:e,prevLocation:t})},b=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void a.globalHistory.navigate(e);const{pathname:r,search:n,hash:i}=(0,f.Rr)(e),s=(0,d.X)(r);if(s&&(e=s.toPath+n+i),window.___swUpdated)return void(window.location=r+n+i);const l=setTimeout((()=>{h.A.emit("onDelayedLoadPageResources",{pathname:r}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.Ay.loadPage(r+n).then((o=>{if(!o||o.status===u.Wi.Error)return window.history.replaceState({},"",location.href),window.location=r,void clearTimeout(l);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=r+n+i),(0,a.navigate)(e,t),clearTimeout(l)}))};function x(e,t){let{location:r}=t;const{pathname:n,hash:i}=r,a=(0,o.N)("shouldUpdateScroll",{prevRouterProps:e,pathname:n,routerProps:{location:r},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(a.length>0)return a[a.length-1];if(e){const{location:{pathname:t}}=e;if(t===n)return i?decodeURI(i.slice(1)):[0,0]}return!0}let w=function(e){function t(t){var r;return(r=e.call(this,t)||this).announcementRef=i.createRef(),r}(0,n.A)(t,e);var r=t.prototype;return r.componentDidUpdate=function(e,t){requestAnimationFrame((()=>{let e=`new page at ${this.props.location.pathname}`;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const r=`Navigated to ${e}`;if(this.announcementRef.current){this.announcementRef.current.innerText!==r&&(this.announcementRef.current.innerText=r)}}))},r.render=function(){return i.createElement("div",Object.assign({},p,{ref:this.announcementRef}))},t}(i.Component);const S=(e,t)=>{var r,n;return e.href!==t.href||(null==e||null===(r=e.state)||void 0===r?void 0:r.key)!==(null==t||null===(n=t.state)||void 0===n?void 0:n.key)};let k=function(e){function t(t){var r;return r=e.call(this,t)||this,v(t.location,null),r}(0,n.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){y(this.props.location,null)},r.shouldComponentUpdate=function(e){return!!S(this.props.location,e.location)&&(v(e.location,this.props.location),!0)},r.componentDidUpdate=function(e){S(e.location,this.props.location)&&y(this.props.location,e.location)},r.render=function(){return i.createElement(i.Fragment,null,this.props.children,i.createElement(w,{location:location}))},t}(i.Component);var C=r(6017),_=r(6877);function E(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}var P=function(e){function t(t){var r;r=e.call(this)||this;const{location:n,pageResources:o}=t;return r.state={location:{...n},pageResources:o||u.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0})},r}(0,n.A)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:r}=e;if(t.location.href!==r.href){return{pageResources:u.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0}),location:{...r}}}return{location:{...r}}};var r=t.prototype;return r.loadResources=function(e){u.Ay.loadPage(e).then((t=>{t&&t.status!==u.Wi.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)}))},r.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,r){return E(e.props,t)||E(e.state,r)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},r.render=function(){return this.props.children(this.state)},t}(i.Component),T=r(8797),A=r(9732);const R=new u.N5(_,[],window.pageData);(0,u.iC)(R),R.setApiRunner(o.N);const{render:j,hydrate:M}=(0,A.n)();window.asyncRequires=_,window.___emitter=h.A,window.___loader=u.Zf,a.globalHistory.listen((e=>{e.location.action=e.action})),window.___push=e=>b(e,{replace:!1}),window.___replace=e=>b(e,{replace:!0}),window.___navigate=(e,t)=>b(e,t);const $="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then((()=>{(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&r(626);const e=e=>i.createElement(a.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},i.createElement(C.A,e)),t=i.createContext({}),d={renderEnvironment:"browser"};let h=function(e){function r(){return e.apply(this,arguments)||this}return(0,n.A)(r,e),r.prototype.render=function(){const{children:e}=this.props;return i.createElement(a.Location,null,(r=>{let{location:n}=r;return i.createElement(P,{location:n},(r=>{let{pageResources:n,location:o}=r;const a=(0,u.LE)(),s=(0,u.Rh)();return i.createElement(l.G.Provider,{value:a},i.createElement(c.j$.Provider,{value:d},i.createElement(c.dd.Provider,{value:s},i.createElement(c.Jr.Provider,{value:n.page.slicesMap},i.createElement(t.Provider,{value:{pageResources:n,location:o}},e)))))}))}))},r}(i.Component),p=function(r){function o(){return r.apply(this,arguments)||this}return(0,n.A)(o,r),o.prototype.render=function(){return i.createElement(t.Consumer,null,(t=>{let{pageResources:r,location:n}=t;return i.createElement(k,{location:n},i.createElement(s.z_,{location:n,shouldUpdateScroll:x},i.createElement(a.Router,{basepath:"",location:n,id:"gatsby-focus-wrapper"},i.createElement(e,Object.assign({path:"/404.html"===r.page.path||"/500.html"===r.page.path?(0,T.A)(n.pathname,""):encodeURI((r.page.matchPath||r.page.path).split("?")[0])},this.props,{location:n,pageResources:r},r.json)))))}))},o}(i.Component);const{pagePath:f,location:m}=window;f&&""+f!==m.pathname+(f.includes("?")?m.search:"")&&!(R.findMatchPath((0,T.A)(m.pathname,""))||f.match(/^\/(404|500)(\/?|.html)$/)||f.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,a.navigate)(""+f+(f.includes("?")?"":m.search)+m.hash,{replace:!0});const g=()=>{try{return sessionStorage}catch{return null}};u.Zf.loadPage(m.pathname+m.search).then((e=>{var t;const r=g();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),r)){if(!("1"===r.getItem($)))return r.setItem($,"1"),void window.location.reload(!0)}if(r&&r.removeItem($),!e||e.status===u.Wi.Error){const t=`page resources for ${m.pathname} not found. Not rendering React`;if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}const n=(0,o.N)("wrapRootElement",{element:i.createElement(p,null)},i.createElement(p,null),(e=>{let{result:t}=e;return{element:t}})).pop(),a=function(){const e=i.useRef(!1);return i.useEffect((()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))}),[]),i.createElement(h,null,n)},s=document.getElementById("gatsby-focus-wrapper");let l=j;s&&s.children.length&&(l=M);const c=(0,o.N)("replaceHydrateFunction",void 0,l)[0];function d(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;c(i.createElement(a,null),e)}const f=document;if("complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)setTimeout((function(){d()}),0);else{const e=function(){f.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),d()};f.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}}))}))},963:function(e,t,r){"use strict";r.r(t);var n=r(6540),o=r(6814),i=r(6017);t.default=e=>{let{location:t}=e;const r=o.Ay.loadPageSync(t.pathname);return r?n.createElement(i.A,{location:t,pageResources:r,...r.json}):null}},2549:function(e,t,r){var n;e.exports=(n=r(963))&&n.default||n},9732:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});const n=new WeakMap;function o(){const e=r(5338);return{render:(t,r)=>{let o=n.get(r);o||n.set(r,o=e.createRoot(r)),o.render(t)},hydrate:(t,r)=>e.hydrateRoot(r,t)}}},6491:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});const n=new Map,o=new Map;function i(e){let t=n.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach((e=>{e.ignoreCase?o.set(e.fromPath,e):n.set(e.fromPath,e)}))},626:function(e,t,r){"use strict";r.r(t);var n=r(20);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(e){e.addEventListener("updatefound",(()=>{(0,n.N)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,n.N)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,n.N)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,n.N)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,n.N)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},2024:function(e,t,r){"use strict";r.d(t,{Jr:function(){return a},dd:function(){return o},hr:function(){return s},j$:function(){return i}});var n=r(6540);const o=n.createContext({}),i=n.createContext({}),a=n.createContext({}),s=n.createContext({})},7231:function(e,t,r){"use strict";r.d(t,{de:function(){return l},G:function(){return o},GR:function(){return c}});var n=r(6540);const o=(i="StaticQuery",a={},n.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=n.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(i,a):n.createContext(a));var i,a;function s(e){let{staticQueryData:t,data:r,query:o,render:i}=e;const a=r?r.data:t[o]&&t[o].data;return n.createElement(n.Fragment,null,a&&i(a),!a&&n.createElement("div",null,"Loading (StaticQuery)"))}const l=e=>{const{data:t,query:r,render:i,children:a}=e;return n.createElement(o.Consumer,null,(e=>n.createElement(s,{data:t,query:r,render:i||a,staticQueryData:e})))},c=e=>{var t;n.useContext;const r=n.useContext(o);if(isNaN(Number(e)))throw new Error(`useStaticQuery was called with a string but expects to be called using \`graphql\`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql\`${e}\`);\n`);if(null!==(t=r[e])&&void 0!==t&&t.data)return r[e].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")}},8797:function(e,t,r){"use strict";function n(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e:e}r.d(t,{A:function(){return n}})},642:function(e,t,r){"use strict";r.r(t),r.d(t,{wrapRootElement:function(){return Rm}});var n=r(6540),o=r(2977),i=r(41),a=r(1287),s=r(2142),l=(r(4300),r(4634),r(4146),(0,o.w)((function(e,t){var r=e.styles,l=(0,s.J)([r],void 0,n.useContext(o.T));if(!o.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var p=!0===t.compat,f=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:n.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:f},c.nonce=t.sheet.nonce,c))}var m=n.useRef();return(0,a.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),m.current=[r,n],function(){r.flush()}}),[t]),(0,a.i)((function(){var e=m.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.J)(t)}var u=r(4848),d=String.raw,h=d`
:root,
:host {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root,
:host {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root,
:host {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root,
:host {
--chakra-vh: 100dvh;
}
}
`,p=()=>(0,u.jsx)(l,{styles:h}),f=({scope:e=""})=>(0,u.jsx)(l,{styles:d`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
margin: 0;
font-feature-settings: "kern";
}
${e} :where(*, *::before, *::after) {
border-width: 0;
border-style: solid;
box-sizing: border-box;
word-wrap: break-word;
}
main {
display: block;
}
${e} hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
${e} :where(pre, code, kbd,samp) {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
${e} a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
${e} abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
${e} :where(b, strong) {
font-weight: bold;
}
${e} small {
font-size: 80%;
}
${e} :where(sub,sup) {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
${e} sub {
bottom: -0.25em;
}
${e} sup {
top: -0.5em;
}
${e} img {
border-style: none;
}
${e} :where(button, input, optgroup, select, textarea) {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
${e} :where(button, input) {
overflow: visible;
}
${e} :where(button, select) {
text-transform: none;
}
${e} :where(
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner
) {
border-style: none;
padding: 0;
}
${e} fieldset {
padding: 0.35em 0.75em 0.625em;
}
${e} legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
${e} progress {
vertical-align: baseline;
}
${e} textarea {
overflow: auto;
}
${e} :where([type="checkbox"], [type="radio"]) {
box-sizing: border-box;
padding: 0;
}
${e} input[type="number"]::-webkit-inner-spin-button,
${e} input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
${e} input[type="number"] {
-moz-appearance: textfield;
}
${e} input[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
${e} input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
${e} ::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
${e} details {
display: block;
}
${e} summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
${e} :where(
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre
) {
margin: 0;
}
${e} button {
background: transparent;
padding: 0;
}
${e} fieldset {
margin: 0;
padding: 0;
}
${e} :where(ol, ul) {
margin: 0;
padding: 0;
}
${e} textarea {
resize: vertical;
}
${e} :where(button, [role="button"]) {
cursor: pointer;
}
${e} button::-moz-focus-inner {
border: 0 !important;
}
${e} table {
border-collapse: collapse;
}
${e} :where(h1, h2, h3, h4, h5, h6) {
font-size: inherit;
font-weight: inherit;
}
${e} :where(button, input, optgroup, select, textarea) {
padding: 0;
line-height: inherit;
color: inherit;
}
${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
display: block;
}
${e} :where(img, video) {
max-width: 100%;
height: auto;
}
[data-js-focus-visible]
:focus:not([data-focus-visible-added]):not(
[data-focus-visible-disabled]
) {
outline: none;
box-shadow: none;
}
${e} select::-ms-expand {
display: none;
}
${h}
`}),m=r(61),[g,v]=(0,m.q)({strict:!1,name:"PortalManagerContext"});function y(e){const{children:t,zIndex:r}=e;return(0,u.jsx)(g,{value:{zIndex:r},children:t})}y.displayName="PortalManager";var b=r(763);var x=r(4515),w=r(4159),S=r(7311);function k(e){const{cssVarsRoot:t,theme:r,children:i}=e,a=(0,n.useMemo)((()=>(0,x.gd)(r)),[r]);return(0,u.jsxs)(o.a,{theme:a,children:[(0,u.jsx)(C,{root:t}),i]})}function C({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,u.jsx)(l,{styles:e=>({[t]:e.__cssVars})})}var[_,E]=function(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,i=(0,n.createContext)(void 0);return i.displayName=o,[i.Provider,function e(){var o;const a=(0,n.useContext)(i);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,t,e),t}return a},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function P(){const{colorMode:e}=(0,b.G6)();return(0,u.jsx)(l,{styles:t=>{const r=(0,w.rY)(t,"styles.global"),n=(0,S.Jg)(r,{theme:t,colorMode:e});if(!n)return;return(0,x.AH)(n)(t)}})}var T={light:"chakra-ui-light",dark:"chakra-ui-dark"};var A="chakra-ui-color-mode";var R,j=(R=A,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(R)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(R,e)}catch(t){}}});function M(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function $(e,t){return{ssr:!!t,type:"cookie",get(r){return t?M(t,e):(null==globalThis?void 0:globalThis.document)&&M(document.cookie,e)||r},set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}$(A);var O=Boolean(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect,D=()=>{};function z(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function B(e){const{value:t,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=j}=e,l="dark"===i?"dark":"light",[c,d]=(0,n.useState)((()=>z(s,l))),[h,p]=(0,n.useState)((()=>z(s))),{getSystemTheme:f,setClassName:m,setDataset:g,addListener:v}=(0,n.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?T.dark:T.light),document.body.classList.remove(e?T.light:T.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:a})),[a]),y="system"!==i||c?c:h,x=(0,n.useCallback)((e=>{const t="system"===e?f():e;d(t),m("dark"===t),g(t),s.set(t)}),[s,f,m,g]);O((()=>{"system"===i&&p(f())}),[]),(0,n.useEffect)((()=>{const e=s.get();x(e||("system"!==i?l:"system"))}),[s,l,i,x]);const w=(0,n.useCallback)((()=>{x("dark"===y?"light":"dark")}),[y,x]);(0,n.useEffect)((()=>{if(o)return v(x)}),[o,v,x]);const S=(0,n.useMemo)((()=>({colorMode:null!=t?t:y,toggleColorMode:t?D:w,setColorMode:t?D:x,forced:void 0!==t})),[y,w,x,t]);return(0,u.jsx)(b.Ig.Provider,{value:S,children:r})}B.displayName="ColorModeProvider";var L=(0,n.createContext)({getDocument(){return document},getWindow(){return window}});function I(e){const{children:t,environment:r,disabled:o}=e,i=(0,n.useRef)(null),a=(0,n.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!o||!r;return(0,u.jsxs)(L.Provider,{value:a,children:[t,s&&(0,u.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}L.displayName="EnvironmentContext",I.displayName="EnvironmentProvider";var F=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,h=(0,u.jsx)(I,{environment:s,disabled:c,children:t});return(0,u.jsx)(k,{theme:a,cssVarsRoot:l,children:(0,u.jsxs)(B,{colorModeManager:r,options:a.config,children:[i?(0,u.jsx)(f,{scope:o}):(0,u.jsx)(p,{}),!d&&(0,u.jsx)(P,{}),n?(0,u.jsx)(y,{zIndex:n,children:h}):h]})})},V={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},H={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},N={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},W={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},U={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},q={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Y={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},G={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},X={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},K={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},J={...K,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Q={breakpoints:W,zIndices:H,radii:q,blur:G,colors:U,...X,sizes:J,shadows:Y,space:K,borders:N,transition:V},{defineMultiStyleConfig:Z,definePartsStyle:ee}=(0,x.YU)(["stepper","step","title","description","indicator","separator","icon","number"]),te=(0,x.Vg)("stepper-indicator-size"),re=(0,x.Vg)("stepper-icon-size"),ne=(0,x.Vg)("stepper-title-font-size"),oe=(0,x.Vg)("stepper-description-font-size"),ie=(0,x.Vg)("stepper-accent-color"),ae=Z({baseStyle:ee((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ie.variable]:`colors.${e}.500`,_dark:{[ie.variable]:`colors.${e}.200`}},title:{fontSize:ne.reference,fontWeight:"medium"},description:{fontSize:oe.reference,color:"chakra-subtle-text"},number:{fontSize:ne.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:re.reference,height:re.reference},indicator:{flexShrink:0,borderRadius:"full",width:te.reference,height:te.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ie.reference},"&[data-status=complete]":{bg:ie.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ie.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${te.reference} - 8px)`,top:`calc(${te.reference} + 4px)`,insetStart:`calc(${te.reference} / 2 - 1px)`}}}))),sizes:{xs:ee({stepper:{[te.variable]:"sizes.4",[re.variable]:"sizes.3",[ne.variable]:"fontSizes.xs",[oe.variable]:"fontSizes.xs"}}),sm:ee({stepper:{[te.variable]:"sizes.6",[re.variable]:"sizes.4",[ne.variable]:"fontSizes.sm",[oe.variable]:"fontSizes.xs"}}),md:ee({stepper:{[te.variable]:"sizes.8",[re.variable]:"sizes.5",[ne.variable]:"fontSizes.md",[oe.variable]:"fontSizes.sm"}}),lg:ee({stepper:{[te.variable]:"sizes.10",[re.variable]:"sizes.6",[ne.variable]:"fontSizes.lg",[oe.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function se(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of o)t[e]=n(e);return se(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return se(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var le=se("accordion").parts("root","container","button","panel").extend("icon"),ce=se("alert").parts("title","description","container").extend("icon","spinner"),ue=se("avatar").parts("label","badge","container").extend("excessLabel","group"),de=se("breadcrumb").parts("link","item","container").extend("separator"),he=(se("button").parts(),se("checkbox").parts("control","icon","container").extend("label")),pe=(se("progress").parts("track","filledTrack").extend("label"),se("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),fe=se("editable").parts("preview","input","textarea"),me=se("form").parts("container","requiredIndicator","helperText"),ge=se("formError").parts("text","icon"),ve=se("input").parts("addon","field","element","group"),ye=se("list").parts("container","item","icon"),be=se("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),xe=se("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),we=se("numberinput").parts("root","field","stepperGroup","stepper"),Se=(se("pininput").parts("field"),se("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),ke=se("progress").parts("label","filledTrack","track"),Ce=se("radio").parts("container","control","label"),_e=se("select").parts("field","icon"),Ee=se("slider").parts("container","track","thumb","filledTrack","mark"),Pe=se("stat").parts("container","label","helpText","number","icon"),Te=se("switch").parts("container","track","thumb","label"),Ae=se("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Re=se("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),je=se("tag").parts("container","label","closeButton"),Me=se("card").parts("container","header","body","footer");se("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function $e(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Oe(e,t){return`var(${$e(e)}${t?`, ${t}`:""})`}function De(e,t=""){return`--${function(e,t=""){return[t,$e(e)].filter(Boolean).join("-")}(e,t)}`}function ze(e,t){const r=De(e,null==t?void 0:t.prefix);return{variable:r,reference:Oe(r,Be(null==t?void 0:t.fallback))}}function Be(e){return"string"==typeof e?e:null==e?void 0:e.reference}var Le=r(9857);function Ie(e){return(0,Le.Gv)(e)&&e.reference?e.reference:String(e)}var Fe=(e,...t)=>t.map(Ie).join(` ${e} `).replace(/calc/g,""),Ve=(...e)=>`calc(${Fe("+",...e)})`,He=(...e)=>`calc(${Fe("-",...e)})`,Ne=(...e)=>`calc(${Fe("*",...e)})`,We=(...e)=>`calc(${Fe("/",...e)})`,Ue=e=>{const t=Ie(e);return null==t||Number.isNaN(parseFloat(t))?Ne(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},qe=Object.assign((e=>({add:(...t)=>qe(Ve(e,...t)),subtract:(...t)=>qe(He(e,...t)),multiply:(...t)=>qe(Ne(e,...t)),divide:(...t)=>qe(We(e,...t)),negate:()=>qe(Ue(e)),toString:()=>e.toString()})),{add:Ve,subtract:He,multiply:Ne,divide:We,negate:Ue}),{defineMultiStyleConfig:Ye,definePartsStyle:Ge}=(0,x.YU)(Te.keys),Xe=ze("switch-track-width"),Ke=ze("switch-track-height"),Je=ze("switch-track-diff"),Qe=qe.subtract(Xe,Ke),Ze=ze("switch-thumb-x"),et=ze("switch-bg"),tt=(0,x.H2)((e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xe.reference],height:[Ke.reference],transitionProperty:"common",transitionDuration:"fast",[et.variable]:"colors.gray.300",_dark:{[et.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[et.variable]:`colors.${t}.500`,_dark:{[et.variable]:`colors.${t}.200`}},bg:et.reference}})),rt=(0,x.H2)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ke.reference],height:[Ke.reference],_checked:{transform:`translateX(${Ze.reference})`}}),nt=Ye({baseStyle:Ge((e=>({container:{[Je.variable]:Qe,[Ze.variable]:Je.reference,_rtl:{[Ze.variable]:qe(Je).negate().toString()}},track:tt(e),thumb:rt}))),sizes:{sm:Ge({container:{[Xe.variable]:"1.375rem",[Ke.variable]:"sizes.3"}}),md:Ge({container:{[Xe.variable]:"1.875rem",[Ke.variable]:"sizes.4"}}),lg:Ge({container:{[Xe.variable]:"2.875rem",[Ke.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ot(e,t){return r=>"dark"===r.colorMode?t:e}function it(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:at,definePartsStyle:st}=(0,x.YU)(Ae.keys),lt=st({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),ct=(0,x.H2)({"&[data-is-numeric=true]":{textAlign:"end"}}),ut=at({baseStyle:lt,variants:{simple:st((e=>{const{colorScheme:t}=e;return{th:{color:ot("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ot(`${t}.100`,`${t}.700`)(e),...ct},td:{borderBottom:"1px",borderColor:ot(`${t}.100`,`${t}.700`)(e),...ct},caption:{color:ot("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),striped:st((e=>{const{colorScheme:t}=e;return{th:{color:ot("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ot(`${t}.100`,`${t}.700`)(e),...ct},td:{borderBottom:"1px",borderColor:ot(`${t}.100`,`${t}.700`)(e),...ct},caption:{color:ot("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ot(`${t}.100`,`${t}.700`)(e)},td:{background:ot(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),unstyled:(0,x.H2)({})},sizes:{sm:st({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:st({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:st({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function dt(e,t,r){return Math.min(Math.max(e,r),t)}class ht extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var pt=ht;function ft(e){if("string"!=typeof e)throw new pt(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=St.test(e)?function(e){const t=e.toLowerCase().trim(),r=gt[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new pt(e);return`#${r}`}(e):e;const r=yt.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(vt(e,2),16))),parseInt(vt(e[3]||"f",2),16)/255]}const n=bt.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=xt.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=wt.exec(t);if(i){const[t,r,n,o]=Array.from(i).slice(1).map(parseFloat);if(dt(0,100,r)!==r)throw new pt(e);if(dt(0,100,n)!==n)throw new pt(e);return[...Ct(t,r,n),Number.isNaN(o)?1:o]}throw new pt(e)}const mt=e=>parseInt(e.replace(/_/g,""),36),gt="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=mt(t.substring(0,3)),n=mt(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e}),{});const vt=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),yt=new RegExp(`^#${vt("([a-f0-9])",3)}([a-f0-9])?$`,"i"),bt=new RegExp(`^#${vt("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),xt=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${vt(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),wt=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,St=/^[a-z]+$/i,kt=e=>Math.round(255*e),Ct=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(kt);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2;return[s+u,l+u,c+u].map(kt)};function _t(e,t,r,n){return`rgba(${dt(0,255,e).toFixed()}, ${dt(0,255,t).toFixed()}, ${dt(0,255,r).toFixed()}, ${parseFloat(dt(0,1,n).toFixed(3))})`}function Et(e,t){const[r,n,o,i]=ft(e);return _t(r,n,o,i-t)}var Pt=(e,t,r)=>{const n=function(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}(e,`colors.${t}`,t);try{return function(e){const[t,r,n,o]=ft(e);let i=e=>{const t=dt(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(r),i(n),o<1&&i(Math.round(255*o))}(n),n}catch{return null!=r?r:"#000000"}},Tt=e=>t=>{const r=(e=>{const[t,r,n]=ft(e);return(299*t+587*r+114*n)/1e3})(Pt(t,e));return r<128?"dark":"light"},At=(e,t)=>r=>Et(Pt(r,e),1-t);function Rt(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function jt(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r|=0;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t|=0;let r="#";for(let n=0;n<3;n+=1){r+=`00${(t>>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(n=e.colors)[Math.floor(Math.random()*n.length)]:t:t;var r,n}var Mt=(0,x.Vg)("tabs-color"),$t=(0,x.Vg)("tabs-bg"),Ot=(0,x.Vg)("tabs-border-color"),{defineMultiStyleConfig:Dt,definePartsStyle:zt}=(0,x.YU)(Re.keys),Bt=(0,x.H2)((e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}})),Lt=(0,x.H2)((e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}})),It=(0,x.H2)((e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}})),Ft=(0,x.H2)({p:4}),Vt=zt((e=>({root:Bt(e),tab:Lt(e),tablist:It(e),tabpanel:Ft}))),Ht={sm:zt({tab:{py:1,px:4,fontSize:"sm"}}),md:zt({tab:{fontSize:"md",py:2,px:4}}),lg:zt({tab:{fontSize:"lg",py:3,px:4}})},Nt=zt((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Mt.variable]:`colors.${t}.600`,_dark:{[Mt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[$t.variable]:"colors.gray.200",_dark:{[$t.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Mt.reference,bg:$t.reference}}})),Wt=zt((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Ot.variable]:"transparent",_selected:{[Mt.variable]:`colors.${t}.600`,[Ot.variable]:"colors.white",_dark:{[Mt.variable]:`colors.${t}.300`,[Ot.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Ot.reference},color:Mt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Ut=zt((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[$t.variable]:"colors.gray.50",_dark:{[$t.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[$t.variable]:"colors.white",[Mt.variable]:`colors.${t}.600`,_dark:{[$t.variable]:"colors.gray.800",[Mt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Mt.reference,bg:$t.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),qt=zt((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Pt(r,`${t}.700`),bg:Pt(r,`${t}.100`)}}}})),Yt=Dt({baseStyle:Vt,sizes:Ht,variants:{line:Nt,enclosed:Wt,"enclosed-colored":Ut,"soft-rounded":qt,"solid-rounded":zt((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Mt.variable]:"colors.gray.600",_dark:{[Mt.variable]:"inherit"},_selected:{[Mt.variable]:"colors.white",[$t.variable]:`colors.${t}.600`,_dark:{[Mt.variable]:"colors.gray.800",[$t.variable]:`colors.${t}.300`}},color:Mt.reference,bg:$t.reference}}})),unstyled:zt({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Gt=(0,x.lL)("badge",["bg","color","shadow"]),Xt=(0,x.H2)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Gt.bg.reference,color:Gt.color.reference,boxShadow:Gt.shadow.reference}),Kt=(0,x.H2)((e=>{const{colorScheme:t,theme:r}=e,n=At(`${t}.500`,.6)(r);return{[Gt.bg.variable]:`colors.${t}.500`,[Gt.color.variable]:"colors.white",_dark:{[Gt.bg.variable]:n,[Gt.color.variable]:"colors.whiteAlpha.800"}}})),Jt=(0,x.H2)((e=>{const{colorScheme:t,theme:r}=e,n=At(`${t}.200`,.16)(r);return{[Gt.bg.variable]:`colors.${t}.100`,[Gt.color.variable]:`colors.${t}.800`,_dark:{[Gt.bg.variable]:n,[Gt.color.variable]:`colors.${t}.200`}}})),Qt=(0,x.H2)((e=>{const{colorScheme:t,theme:r}=e,n=At(`${t}.200`,.8)(r);return{[Gt.color.variable]:`colors.${t}.500`,_dark:{[Gt.color.variable]:n},[Gt.shadow.variable]:`inset 0 0 0px 1px ${Gt.color.reference}`}})),Zt={solid:Kt,subtle:Jt,outline:Qt},er=(0,x.Dt)({baseStyle:Xt,variants:Zt,defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:tr,definePartsStyle:rr}=(0,x.YU)(je.keys),nr=(0,x.Vg)("tag-bg"),or=(0,x.Vg)("tag-color"),ir=(0,x.Vg)("tag-shadow"),ar=(0,x.Vg)("tag-min-height"),sr=(0,x.Vg)("tag-min-width"),lr=(0,x.Vg)("tag-font-size"),cr=(0,x.Vg)("tag-padding-inline"),ur=rr({container:(0,x.H2)({fontWeight:"medium",lineHeight:1.2,outline:0,[or.variable]:Gt.color.reference,[nr.variable]:Gt.bg.reference,[ir.variable]:Gt.shadow.reference,color:or.reference,bg:nr.reference,boxShadow:ir.reference,borderRadius:"md",minH:ar.reference,minW:sr.reference,fontSize:lr.reference,px:cr.reference,_focusVisible:{[ir.variable]:"shadows.outline"}}),label:(0,x.H2)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,x.H2)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),dr={sm:rr({container:{[ar.variable]:"sizes.5",[sr.variable]:"sizes.5",[lr.variable]:"fontSizes.xs",[cr.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:rr({container:{[ar.variable]:"sizes.6",[sr.variable]:"sizes.6",[lr.variable]:"fontSizes.sm",[cr.variable]:"space.2"}}),lg:rr({container:{[ar.variable]:"sizes.8",[sr.variable]:"sizes.8",[lr.variable]:"fontSizes.md",[cr.variable]:"space.3"}})},hr={subtle:rr((e=>{var t;return{container:null==(t=er.variants)?void 0:t.subtle(e)}})),solid:rr((e=>{var t;return{container:null==(t=er.variants)?void 0:t.solid(e)}})),outline:rr((e=>{var t;return{container:null==(t=er.variants)?void 0:t.outline(e)}}))},pr=tr({variants:hr,baseStyle:ur,sizes:dr,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:fr,defineMultiStyleConfig:mr}=(0,x.YU)(ve.keys),gr=(0,x.Vg)("input-height"),vr=(0,x.Vg)("input-font-size"),yr=(0,x.Vg)("input-padding"),br=(0,x.Vg)("input-border-radius"),xr=fr({addon:{height:gr.reference,fontSize:vr.reference,px:yr.reference,borderRadius:br.reference},field:{width:"100%",height:gr.reference,fontSize:vr.reference,px:yr.reference,borderRadius:br.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),wr={lg:(0,x.H2)({[vr.variable]:"fontSizes.lg",[yr.variable]:"space.4",[br.variable]:"radii.md",[gr.variable]:"sizes.12"}),md:(0,x.H2)({[vr.variable]:"fontSizes.md",[yr.variable]:"space.4",[br.variable]:"radii.md",[gr.variable]:"sizes.10"}),sm:(0,x.H2)({[vr.variable]:"fontSizes.sm",[yr.variable]:"space.3",[br.variable]:"radii.sm",[gr.variable]:"sizes.8"}),xs:(0,x.H2)({[vr.variable]:"fontSizes.xs",[yr.variable]:"space.2",[br.variable]:"radii.sm",[gr.variable]:"sizes.6"})},Sr={lg:fr({field:wr.lg,group:wr.lg}),md:fr({field:wr.md,group:wr.md}),sm:fr({field:wr.sm,group:wr.sm}),xs:fr({field:wr.xs,group:wr.xs})};function kr(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ot("blue.500","blue.300")(e),errorBorderColor:r||ot("red.500","red.300")(e)}}var Cr,_r,Er,Pr,Tr,Ar,Rr,jr,Mr,$r,Or,Dr=fr((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=kr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ot("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pt(t,n),boxShadow:`0 0 0 1px ${Pt(t,n)}`},_focusVisible:{zIndex:1,borderColor:Pt(t,r),boxShadow:`0 0 0 1px ${Pt(t,r)}`}},addon:{border:"1px solid",borderColor:ot("inherit","whiteAlpha.50")(e),bg:ot("gray.100","whiteAlpha.300")(e)}}})),zr=fr((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=kr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ot("gray.100","whiteAlpha.50")(e),_hover:{bg:ot("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pt(t,n)},_focusVisible:{bg:"transparent",borderColor:Pt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ot("gray.100","whiteAlpha.50")(e)}}})),Br=fr((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=kr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Pt(t,n),boxShadow:`0px 1px 0px 0px ${Pt(t,n)}`},_focusVisible:{borderColor:Pt(t,r),boxShadow:`0px 1px 0px 0px ${Pt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Lr=mr({baseStyle:xr,sizes:Sr,variants:{outline:Dr,filled:zr,flushed:Br,unstyled:fr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Ir=(0,x.H2)({...null==(Cr=Lr.baseStyle)?void 0:Cr.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),Fr={outline:(0,x.H2)((e=>{var t,r;return null!=(r=null==(t=Lr.variants)?void 0:t.outline(e).field)?r:{}})),flushed:(0,x.H2)((e=>{var t,r;return null!=(r=null==(t=Lr.variants)?void 0:t.flushed(e).field)?r:{}})),filled:(0,x.H2)((e=>{var t,r;return null!=(r=null==(t=Lr.variants)?void 0:t.filled(e).field)?r:{}})),unstyled:null!=(Er=null==(_r=Lr.variants)?void 0:_r.unstyled.field)?Er:{}},Vr={xs:null!=(Tr=null==(Pr=Lr.sizes)?void 0:Pr.xs.field)?Tr:{},sm:null!=(Rr=null==(Ar=Lr.sizes)?void 0:Ar.sm.field)?Rr:{},md:null!=(Mr=null==(jr=Lr.sizes)?void 0:jr.md.field)?Mr:{},lg:null!=(Or=null==($r=Lr.sizes)?void 0:$r.lg.field)?Or:{}},Hr=(0,x.Dt)({baseStyle:Ir,sizes:Vr,variants:Fr,defaultProps:{size:"md",variant:"outline"}}),Nr=ze("tooltip-bg"),Wr=ze("tooltip-fg"),Ur=ze("popper-arrow-bg"),qr=(0,x.H2)({bg:Nr.reference,color:Wr.reference,[Nr.variable]:"colors.gray.700",[Wr.variable]:"colors.whiteAlpha.900",_dark:{[Nr.variable]:"colors.gray.300",[Wr.variable]:"colors.gray.900"},[Ur.variable]:Nr.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),Yr=(0,x.Dt)({baseStyle:qr}),{defineMultiStyleConfig:Gr,definePartsStyle:Xr}=(0,x.YU)(ke.keys),Kr=(0,x.H2)((e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=ot(Rt(),Rt("1rem","rgba(0,0,0,0.1)"))(e),a=ot(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${Pt(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}})),Jr=(0,x.H2)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),Qr=(0,x.H2)((e=>({bg:ot("gray.100","whiteAlpha.300")(e)}))),Zr=(0,x.H2)((e=>({transitionProperty:"common",transitionDuration:"slow",...Kr(e)}))),en=Xr((e=>({label:Jr,filledTrack:Zr(e),track:Qr(e)}))),tn=Gr({sizes:{xs:Xr({track:{h:"1"}}),sm:Xr({track:{h:"2"}}),md:Xr({track:{h:"3"}}),lg:Xr({track:{h:"4"}})},baseStyle:en,defaultProps:{size:"md",colorScheme:"blue"}});function rn(e,...t){return"function"==typeof e?e(...t):e}var nn,on,an,sn,ln,cn,un,dn,hn,{definePartsStyle:pn,defineMultiStyleConfig:fn}=(0,x.YU)(he.keys),mn=(0,x.Vg)("checkbox-size"),gn=(0,x.H2)((e=>{const{colorScheme:t}=e;return{w:mn.reference,h:mn.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ot(`${t}.500`,`${t}.200`)(e),borderColor:ot(`${t}.500`,`${t}.200`)(e),color:ot("white","gray.900")(e),_hover:{bg:ot(`${t}.600`,`${t}.300`)(e),borderColor:ot(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ot("gray.200","transparent")(e),bg:ot("gray.200","whiteAlpha.300")(e),color:ot("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ot(`${t}.500`,`${t}.200`)(e),borderColor:ot(`${t}.500`,`${t}.200`)(e),color:ot("white","gray.900")(e)},_disabled:{bg:ot("gray.100","whiteAlpha.100")(e),borderColor:ot("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ot("red.500","red.300")(e)}}})),vn=(0,x.H2)({_disabled:{cursor:"not-allowed"}}),yn=(0,x.H2)({userSelect:"none",_disabled:{opacity:.4}}),bn=(0,x.H2)({transitionProperty:"transform",transitionDuration:"normal"}),xn=fn({baseStyle:pn((e=>({icon:bn,container:vn,control:rn(gn,e),label:yn}))),sizes:{sm:pn({control:{[mn.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:pn({control:{[mn.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:pn({control:{[mn.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:wn,definePartsStyle:Sn}=(0,x.YU)(Ce.keys),kn=(0,x.H2)((e=>{var t;const r=null==(t=rn(xn.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}})),Cn=Sn((e=>{var t,r,n,o;return{label:null==(r=(t=xn).baseStyle)?void 0:r.call(t,e).label,container:null==(o=(n=xn).baseStyle)?void 0:o.call(n,e).container,control:kn(e)}})),_n=wn({baseStyle:Cn,sizes:{md:Sn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Sn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Sn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:En,definePartsStyle:Pn}=(0,x.YU)(_e.keys),Tn=(0,x.Vg)("select-bg"),An=Pn({field:(0,x.H2)({...null==(nn=Lr.baseStyle)?void 0:nn.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Tn.reference,[Tn.variable]:"colors.white",_dark:{[Tn.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Tn.reference}}),icon:(0,x.H2)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),Rn=(0,x.H2)({paddingInlineEnd:"8"}),jn=En({baseStyle:An,sizes:{lg:{...null==(on=Lr.sizes)?void 0:on.lg,field:{...null==(an=Lr.sizes)?void 0:an.lg.field,...Rn}},md:{...null==(sn=Lr.sizes)?void 0:sn.md,field:{...null==(ln=Lr.sizes)?void 0:ln.md.field,...Rn}},sm:{...null==(cn=Lr.sizes)?void 0:cn.sm,field:{...null==(un=Lr.sizes)?void 0:un.sm.field,...Rn}},xs:{...null==(dn=Lr.sizes)?void 0:dn.xs,field:{...null==(hn=Lr.sizes)?void 0:hn.xs.field,...Rn},icon:{insetEnd:"1"}}},variants:Lr.variants,defaultProps:Lr.defaultProps}),Mn=(0,x.Vg)("skeleton-start-color"),$n=(0,x.Vg)("skeleton-end-color"),On=(0,x.H2)({[Mn.variable]:"colors.gray.100",[$n.variable]:"colors.gray.400",_dark:{[Mn.variable]:"colors.gray.800",[$n.variable]:"colors.gray.600"},background:Mn.reference,borderColor:$n.reference,opacity:.7,borderRadius:"sm"}),Dn=(0,x.Dt)({baseStyle:On}),zn=(0,x.Vg)("skip-link-bg"),Bn=(0,x.H2)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[zn.variable]:"colors.white",_dark:{[zn.variable]:"colors.gray.700"},bg:zn.reference}}),Ln=(0,x.Dt)({baseStyle:Bn}),{defineMultiStyleConfig:In,definePartsStyle:Fn}=(0,x.YU)(Ee.keys),Vn=(0,x.Vg)("slider-thumb-size"),Hn=(0,x.Vg)("slider-track-size"),Nn=(0,x.Vg)("slider-bg"),Wn=(0,x.H2)((e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...it({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}})),Un=(0,x.H2)((e=>({...it({orientation:e.orientation,horizontal:{h:Hn.reference},vertical:{w:Hn.reference}}),overflow:"hidden",borderRadius:"sm",[Nn.variable]:"colors.gray.200",_dark:{[Nn.variable]:"colors.whiteAlpha.200"},_disabled:{[Nn.variable]:"colors.gray.300",_dark:{[Nn.variable]:"colors.whiteAlpha.300"}},bg:Nn.reference}))),qn=(0,x.H2)((e=>{const{orientation:t}=e;return{...it({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Vn.reference,h:Vn.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}})),Yn=(0,x.H2)((e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Nn.variable]:`colors.${t}.500`,_dark:{[Nn.variable]:`colors.${t}.200`},bg:Nn.reference}})),Gn=In({baseStyle:Fn((e=>({container:Wn(e),track:Un(e),thumb:qn(e),filledTrack:Yn(e)}))),sizes:{lg:Fn({container:{[Vn.variable]:"sizes.4",[Hn.variable]:"sizes.1"}}),md:Fn({container:{[Vn.variable]:"sizes.3.5",[Hn.variable]:"sizes.1"}}),sm:Fn({container:{[Vn.variable]:"sizes.2.5",[Hn.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Xn=ze("spinner-size"),Kn=(0,x.H2)({width:[Xn.reference],height:[Xn.reference]}),Jn={xs:(0,x.H2)({[Xn.variable]:"sizes.3"}),sm:(0,x.H2)({[Xn.variable]:"sizes.4"}),md:(0,x.H2)({[Xn.variable]:"sizes.6"}),lg:(0,x.H2)({[Xn.variable]:"sizes.8"}),xl:(0,x.H2)({[Xn.variable]:"sizes.12"})},Qn=(0,x.Dt)({baseStyle:Kn,sizes:Jn,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Zn,definePartsStyle:eo}=(0,x.YU)(Pe.keys),to=Zn({baseStyle:eo({container:{},label:(0,x.H2)({fontWeight:"medium"}),helpText:(0,x.H2)({opacity:.8,marginBottom:"2"}),number:(0,x.H2)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,x.H2)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:eo({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),ro=(0,x.Vg)("kbd-bg"),no=(0,x.H2)({[ro.variable]:"colors.gray.100",_dark:{[ro.variable]:"colors.whiteAlpha.100"},bg:ro.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),oo=(0,x.Dt)({baseStyle:no}),io=(0,x.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),ao=(0,x.Dt)({baseStyle:io}),{defineMultiStyleConfig:so,definePartsStyle:lo}=(0,x.YU)(ye.keys),co=so({baseStyle:lo({icon:(0,x.H2)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:uo,definePartsStyle:ho}=(0,x.YU)(be.keys),po=(0,x.Vg)("menu-bg"),fo=(0,x.Vg)("menu-shadow"),mo=(0,x.H2)({[po.variable]:"#fff",[fo.variable]:"shadows.sm",_dark:{[po.variable]:"colors.gray.700",[fo.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:po.reference,boxShadow:fo.reference}),go=(0,x.H2)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[po.variable]:"colors.gray.100",_dark:{[po.variable]:"colors.whiteAlpha.100"}},_active:{[po.variable]:"colors.gray.200",_dark:{[po.variable]:"colors.whiteAlpha.200"}},_expanded:{[po.variable]:"colors.gray.100",_dark:{[po.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:po.reference}),vo=(0,x.H2)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),yo=(0,x.H2)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),bo=(0,x.H2)({opacity:.6}),xo=(0,x.H2)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),wo=uo({baseStyle:ho({button:(0,x.H2)({transitionProperty:"common",transitionDuration:"normal"}),list:mo,item:go,groupTitle:vo,icon:yo,command:bo,divider:xo})}),{defineMultiStyleConfig:So,definePartsStyle:ko}=(0,x.YU)(xe.keys),Co=(0,x.Vg)("modal-bg"),_o=(0,x.Vg)("modal-shadow"),Eo=(0,x.H2)({bg:"blackAlpha.600",zIndex:"modal"}),Po=(0,x.H2)((e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}})),To=(0,x.H2)((e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[Co.variable]:"colors.white",[_o.variable]:"shadows.lg",_dark:{[Co.variable]:"colors.gray.700",[_o.variable]:"shadows.dark-lg"},bg:Co.reference,boxShadow:_o.reference}})),Ao=(0,x.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),Ro=(0,x.H2)({position:"absolute",top:"2",insetEnd:"3"}),jo=(0,x.H2)((e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}})),Mo=(0,x.H2)({px:"6",py:"4"});function $o(e){return ko("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Oo=So({baseStyle:ko((e=>({overlay:Eo,dialogContainer:rn(Po,e),dialog:rn(To,e),header:Ao,closeButton:Ro,body:rn(jo,e),footer:Mo}))),sizes:{xs:$o("xs"),sm:$o("sm"),md:$o("md"),lg:$o("lg"),xl:$o("xl"),"2xl":$o("2xl"),"3xl":$o("3xl"),"4xl":$o("4xl"),"5xl":$o("5xl"),"6xl":$o("6xl"),full:$o("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Do,definePartsStyle:zo}=(0,x.YU)(we.keys),Bo=ze("number-input-stepper-width"),Lo=ze("number-input-input-padding"),Io=qe(Bo).add("0.5rem").toString(),Fo=ze("number-input-bg"),Vo=ze("number-input-color"),Ho=ze("number-input-border-color"),No=(0,x.H2)({[Bo.variable]:"sizes.6",[Lo.variable]:Io}),Wo=(0,x.H2)((e=>{var t,r;return null!=(r=null==(t=rn(Lr.baseStyle,e))?void 0:t.field)?r:{}})),Uo=(0,x.H2)({width:Bo.reference}),qo=(0,x.H2)({borderStart:"1px solid",borderStartColor:Ho.reference,color:Vo.reference,bg:Fo.reference,[Vo.variable]:"colors.chakra-body-text",[Ho.variable]:"colors.chakra-border-color",_dark:{[Vo.variable]:"colors.whiteAlpha.800",[Ho.variable]:"colors.whiteAlpha.300"},_active:{[Fo.variable]:"colors.gray.200",_dark:{[Fo.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}}),Yo=zo((e=>{var t;return{root:No,field:null!=(t=rn(Wo,e))?t:{},stepperGroup:Uo,stepper:qo}}));function Go(e){var t,r,n;const o=null==(t=Lr.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=o.field)?void 0:r.fontSize)?n:"md",s=X.fontSizes[a];return zo({field:{...o.field,paddingInlineEnd:Lo.reference,verticalAlign:"top"},stepper:{fontSize:qe(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var Xo,Ko,Jo,Qo=Do({baseStyle:Yo,sizes:{xs:Go("xs"),sm:Go("sm"),md:Go("md"),lg:Go("lg")},variants:Lr.variants,defaultProps:Lr.defaultProps}),Zo=(0,x.H2)({...null==(Xo=Lr.baseStyle)?void 0:Xo.field,textAlign:"center"}),ei={lg:(0,x.H2)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,x.H2)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,x.H2)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,x.H2)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},ti={outline:(0,x.H2)((e=>{var t,r,n;return null!=(n=null==(r=rn(null==(t=Lr.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}})),flushed:(0,x.H2)((e=>{var t,r,n;return null!=(n=null==(r=rn(null==(t=Lr.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}})),filled:(0,x.H2)((e=>{var t,r,n;return null!=(n=null==(r=rn(null==(t=Lr.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}})),unstyled:null!=(Jo=null==(Ko=Lr.variants)?void 0:Ko.unstyled.field)?Jo:{}},ri=(0,x.Dt)({baseStyle:Zo,sizes:ei,variants:ti,defaultProps:Lr.defaultProps}),{defineMultiStyleConfig:ni,definePartsStyle:oi}=(0,x.YU)(Se.keys),ii=ze("popper-bg"),ai=ze("popper-arrow-bg"),si=ze("popper-arrow-shadow-color"),li=ni({baseStyle:oi({popper:(0,x.H2)({zIndex:10}),content:(0,x.H2)({[ii.variable]:"colors.white",bg:ii.reference,[ai.variable]:ii.reference,[si.variable]:"colors.gray.200",_dark:{[ii.variable]:"colors.gray.700",[si.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,x.H2)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,x.H2)({px:3,py:2}),footer:(0,x.H2)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,x.H2)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:ci,defineMultiStyleConfig:ui}=(0,x.YU)(pe.keys),di=(0,x.Vg)("drawer-bg"),hi=(0,x.Vg)("drawer-box-shadow");function pi(e){return ci("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var fi=(0,x.H2)({bg:"blackAlpha.600",zIndex:"modal"}),mi=(0,x.H2)({display:"flex",zIndex:"modal",justifyContent:"center"}),gi=(0,x.H2)((e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[di.variable]:"colors.white",[hi.variable]:"shadows.lg",_dark:{[di.variable]:"colors.gray.700",[hi.variable]:"shadows.dark-lg"},bg:di.reference,boxShadow:hi.reference}})),vi=(0,x.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),yi=(0,x.H2)({position:"absolute",top:"2",insetEnd:"3"}),bi=(0,x.H2)({px:"6",py:"2",flex:"1",overflow:"auto"}),xi=(0,x.H2)({px:"6",py:"4"}),wi=ui({baseStyle:ci((e=>({overlay:fi,dialogContainer:mi,dialog:rn(gi,e),header:vi,closeButton:yi,body:bi,footer:xi}))),sizes:{xs:pi("xs"),sm:pi("md"),md:pi("lg"),lg:pi("2xl"),xl:pi("4xl"),full:pi("full")},defaultProps:{size:"xs"}}),{definePartsStyle:Si,defineMultiStyleConfig:ki}=(0,x.YU)(fe.keys),Ci=ki({baseStyle:Si({preview:(0,x.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,x.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,x.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:_i,defineMultiStyleConfig:Ei}=(0,x.YU)(me.keys),Pi=(0,x.Vg)("form-control-color"),Ti=Ei({baseStyle:_i({container:{width:"100%",position:"relative"},requiredIndicator:(0,x.H2)({marginStart:"1",[Pi.variable]:"colors.red.500",_dark:{[Pi.variable]:"colors.red.300"},color:Pi.reference}),helperText:(0,x.H2)({mt:"2",[Pi.variable]:"colors.gray.600",_dark:{[Pi.variable]:"colors.whiteAlpha.600"},color:Pi.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:Ai,defineMultiStyleConfig:Ri}=(0,x.YU)(ge.keys),ji=(0,x.Vg)("form-error-color"),Mi=Ri({baseStyle:Ai({text:(0,x.H2)({[ji.variable]:"colors.red.500",_dark:{[ji.variable]:"colors.red.300"},color:ji.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,x.H2)({marginEnd:"0.5em",[ji.variable]:"colors.red.500",_dark:{[ji.variable]:"colors.red.300"},color:ji.reference})})}),$i=(0,x.H2)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),Oi=(0,x.Dt)({baseStyle:$i}),Di=(0,x.H2)({fontFamily:"heading",fontWeight:"bold"}),zi={"4xl":(0,x.H2)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,x.H2)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,x.H2)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,x.H2)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,x.H2)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,x.H2)({fontSize:"xl",lineHeight:1.2}),sm:(0,x.H2)({fontSize:"md",lineHeight:1.2}),xs:(0,x.H2)({fontSize:"sm",lineHeight:1.2})},Bi=(0,x.Dt)({baseStyle:Di,sizes:zi,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:Li,definePartsStyle:Ii}=(0,x.YU)(de.keys),Fi=(0,x.Vg)("breadcrumb-link-decor"),Vi=Li({baseStyle:Ii({link:(0,x.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Fi.reference,[Fi.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Fi.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),Hi=(0,x.H2)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),Ni=(0,x.H2)((e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:ot("gray.800","whiteAlpha.900")(e),_hover:{bg:ot("gray.100","whiteAlpha.200")(e)},_active:{bg:ot("gray.200","whiteAlpha.300")(e)}};const n=At(`${t}.200`,.12)(r),o=At(`${t}.200`,.24)(r);return{color:ot(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ot(`${t}.50`,n)(e)},_active:{bg:ot(`${t}.100`,o)(e)}}})),Wi=(0,x.H2)((e=>{const{colorScheme:t}=e,r=ot("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...rn(Ni,e)}})),Ui={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qi=(0,x.H2)((e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=ot("gray.100","whiteAlpha.200")(e);return{bg:t,color:ot("gray.800","whiteAlpha.900")(e),_hover:{bg:ot("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:ot("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=Ui[r])?t:{},s=ot(n,`${r}.200`)(e);return{bg:s,color:ot(o,"gray.800")(e),_hover:{bg:ot(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:ot(a,`${r}.400`)(e)}}})),Yi=(0,x.H2)((e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ot(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ot(`${t}.700`,`${t}.500`)(e)}}})),Gi=(0,x.H2)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),Xi={ghost:Ni,outline:Wi,solid:qi,link:Yi,unstyled:Gi},Ki={lg:(0,x.H2)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,x.H2)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,x.H2)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,x.H2)({h:"6",minW:"6",fontSize:"xs",px:"2"})},Ji=(0,x.Dt)({baseStyle:Hi,variants:Xi,sizes:Ki,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:Qi,defineMultiStyleConfig:Zi}=(0,x.YU)(Me.keys),ea=(0,x.Vg)("card-bg"),ta=(0,x.Vg)("card-padding"),ra=(0,x.Vg)("card-shadow"),na=(0,x.Vg)("card-radius"),oa=(0,x.Vg)("card-border-width","0"),ia=(0,x.Vg)("card-border-color"),aa=Qi({container:{[ea.variable]:"colors.chakra-body-bg",backgroundColor:ea.reference,boxShadow:ra.reference,borderRadius:na.reference,color:"chakra-body-text",borderWidth:oa.reference,borderColor:ia.reference},body:{padding:ta.reference,flex:"1 1 0%"},header:{padding:ta.reference},footer:{padding:ta.reference}}),sa={sm:Qi({container:{[na.variable]:"radii.base",[ta.variable]:"space.3"}}),md:Qi({container:{[na.variable]:"radii.md",[ta.variable]:"space.5"}}),lg:Qi({container:{[na.variable]:"radii.xl",[ta.variable]:"space.7"}})},la=Zi({baseStyle:aa,variants:{elevated:Qi({container:{[ra.variable]:"shadows.base",_dark:{[ea.variable]:"colors.gray.700"}}}),outline:Qi({container:{[oa.variable]:"1px",[ia.variable]:"colors.chakra-border-color"}}),filled:Qi({container:{[ea.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ta.variable]:0},header:{[ta.variable]:0},footer:{[ta.variable]:0}}},sizes:sa,defaultProps:{variant:"elevated",size:"md"}}),ca=ze("close-button-size"),ua=ze("close-button-bg"),da=(0,x.H2)({w:[ca.reference],h:[ca.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ua.variable]:"colors.blackAlpha.100",_dark:{[ua.variable]:"colors.whiteAlpha.100"}},_active:{[ua.variable]:"colors.blackAlpha.200",_dark:{[ua.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ua.reference}),ha={lg:(0,x.H2)({[ca.variable]:"sizes.10",fontSize:"md"}),md:(0,x.H2)({[ca.variable]:"sizes.8",fontSize:"xs"}),sm:(0,x.H2)({[ca.variable]:"sizes.6",fontSize:"2xs"})},pa=(0,x.Dt)({baseStyle:da,sizes:ha,defaultProps:{size:"md"}}),{variants:fa,defaultProps:ma}=er,ga=(0,x.H2)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Gt.bg.reference,color:Gt.color.reference,boxShadow:Gt.shadow.reference}),va=(0,x.Dt)({baseStyle:ga,variants:fa,defaultProps:ma}),ya=(0,x.H2)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),ba=(0,x.Dt)({baseStyle:ya}),xa=(0,x.H2)({opacity:.6,borderColor:"inherit"}),wa={solid:(0,x.H2)({borderStyle:"solid"}),dashed:(0,x.H2)({borderStyle:"dashed"})},Sa=(0,x.Dt)({baseStyle:xa,variants:wa,defaultProps:{variant:"solid"}}),{definePartsStyle:ka,defineMultiStyleConfig:Ca}=(0,x.YU)(le.keys),_a=Ca({baseStyle:ka({container:(0,x.H2)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,x.H2)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,x.H2)({pt:"2",px:"4",pb:"5"}),icon:(0,x.H2)({fontSize:"1.25em"})})}),{definePartsStyle:Ea,defineMultiStyleConfig:Pa}=(0,x.YU)(ce.keys),Ta=(0,x.Vg)("alert-fg"),Aa=(0,x.Vg)("alert-bg");function Ra(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:At(`${r}.200`,.16)(t)}}var ja=Pa({baseStyle:Ea({container:{bg:Aa.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:Ea((e=>{const{colorScheme:t}=e,r=Ra(e);return{container:{[Ta.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Aa.variable]:r.dark}}}})),"left-accent":Ea((e=>{const{colorScheme:t}=e,r=Ra(e);return{container:{[Ta.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Aa.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ta.reference}}})),"top-accent":Ea((e=>{const{colorScheme:t}=e,r=Ra(e);return{container:{[Ta.variable]:`colors.${t}.600`,[Aa.variable]:r.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Aa.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ta.reference}}})),solid:Ea((e=>{const{colorScheme:t}=e;return{container:{[Ta.variable]:"colors.white",[Aa.variable]:`colors.${t}.600`,_dark:{[Ta.variable]:"colors.gray.900",[Aa.variable]:`colors.${t}.200`},color:Ta.reference}}}))},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Ma,defineMultiStyleConfig:$a}=(0,x.YU)(ue.keys),Oa=(0,x.Vg)("avatar-border-color"),Da=(0,x.Vg)("avatar-bg"),za=(0,x.Vg)("avatar-font-size"),Ba=(0,x.Vg)("avatar-size"),La=(0,x.H2)({borderRadius:"full",border:"0.2em solid",borderColor:Oa.reference,[Oa.variable]:"white",_dark:{[Oa.variable]:"colors.gray.800"}}),Ia=(0,x.H2)({bg:Da.reference,fontSize:za.reference,width:Ba.reference,height:Ba.reference,lineHeight:"1",[Da.variable]:"colors.gray.200",_dark:{[Da.variable]:"colors.whiteAlpha.400"}}),Fa=(0,x.H2)((e=>{const{name:t,theme:r}=e,n=t?jt({string:t}):"colors.gray.400",o=(e=>t=>"dark"===Tt(e)(t))(n)(r);let i="white";return o||(i="gray.800"),{bg:Da.reference,fontSize:za.reference,color:i,borderColor:Oa.reference,verticalAlign:"top",width:Ba.reference,height:Ba.reference,"&:not([data-loaded])":{[Da.variable]:n},[Oa.variable]:"colors.white",_dark:{[Oa.variable]:"colors.gray.800"}}})),Va=(0,x.H2)({fontSize:za.reference,lineHeight:"1"});function Ha(e){const t="100%"!==e?J[e]:void 0;return Ma({container:{[Ba.variable]:null!=t?t:e,[za.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Ba.variable]:null!=t?t:e,[za.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var Na={Accordion:_a,Alert:ja,Avatar:$a({baseStyle:Ma((e=>({badge:rn(La,e),excessLabel:rn(Ia,e),container:rn(Fa,e),label:Va}))),sizes:{"2xs":Ha(4),xs:Ha(6),sm:Ha(8),md:Ha(12),lg:Ha(16),xl:Ha(24),"2xl":Ha(32),full:Ha("100%")},defaultProps:{size:"md"}}),Badge:er,Breadcrumb:Vi,Button:Ji,Checkbox:xn,CloseButton:pa,Code:va,Container:ba,Divider:Sa,Drawer:wi,Editable:Ci,Form:Ti,FormError:Mi,FormLabel:Oi,Heading:Bi,Input:Lr,Kbd:oo,Link:ao,List:co,Menu:wo,Modal:Oo,NumberInput:Qo,PinInput:ri,Popover:li,Progress:tn,Radio:_n,Select:jn,Skeleton:Dn,SkipLink:Ln,Slider:Gn,Spinner:Qn,Stat:to,Switch:nt,Table:ut,Tabs:Yt,Tag:pr,Textarea:Hr,Tooltip:Yr,Card:la,Stepper:ae},Wa={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Ua={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},qa={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Ya={semanticTokens:Wa,direction:"ltr",...Q,components:Na,styles:Ua,config:qa},Ga={semanticTokens:Wa,direction:"ltr",components:{},...Q,styles:Ua,config:qa},Xa=(e,t)=>e.find((e=>e.id===t));function Ka(e,t){const r=Ja(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function Ja(e,t){for(const[r,n]of Object.entries(e))if(Xa(n,t))return r}function Qa(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}var Za=r(1295);function es(e,t){const r=(0,n.useRef)(!1),o=(0,n.useRef)(!1);(0,n.useEffect)((()=>{if(r.current&&o.current)return e();o.current=!0}),t),(0,n.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const ts=(0,n.createContext)(null);function rs(){return null===(e=(0,n.useContext)(ts))||e.isPresent;var e}const ns=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),os=(0,n.createContext)({}),is="undefined"!=typeof document,as=is?n.useLayoutEffect:n.useEffect,ss=(0,n.createContext)({strict:!1}),ls=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cs="data-"+ls("framerAppearId"),us=!1,ds=!1;class hs{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const ps=["read","resolveKeyframes","update","preRender","render","postRender"];function fs(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ps.reduce(((e,t)=>(e[t]=function(e){let t=new hs,r=new hs,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:r;return i&&a.add(e),c.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;r<n;r++){const n=t.order[r];a.has(n)&&(s.schedule(n),e()),n(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>r=!0)),e)),{}),a=e=>{i[e].process(o)},s=()=>{const i=ds?o.timestamp:performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,ps.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=ps.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{});return{schedule:l,cancel:e=>ps.forEach((t=>i[t].cancel(e))),state:o,steps:i}}const{schedule:ms,cancel:gs}=fs(queueMicrotask,!1);function vs(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const ys=(0,n.createContext)({});let bs=!1;function xs(e,t,r,o,i){const{visualElement:a}=(0,n.useContext)(os),s=(0,n.useContext)(ss),l=(0,n.useContext)(ts),c=(0,n.useContext)(ns).reducedMotion,u=(0,n.useRef)();o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=u.current,h=(0,n.useContext)(ys);!d||d.projection||!i||"html"!==d.type&&"svg"!==d.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Ss(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&vs(s),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}(u.current,r,i,h),(0,n.useInsertionEffect)((()=>{d&&d.update(r,l)}));const p=(0,n.useRef)(Boolean(r[cs]&&!window.HandoffComplete));return as((()=>{d&&(d.updateFeatures(),ms.render(d.render),p.current&&d.animationState&&d.animationState.animateChanges())})),(0,n.useEffect)((()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(p.current=!1,bs||(bs=!0,queueMicrotask(ws))))})),d}function ws(){window.HandoffComplete=!0}function Ss(e){if(e)return!1!==e.options.allowProjection?e.projection:Ss(e.parent)}function ks(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):vs(r)&&(r.current=n))}),[t])}function Cs(e){return"string"==typeof e||Array.isArray(e)}function _s(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Es=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ps=["initial",...Es];function Ts(e){return _s(e.animate)||Ps.some((t=>Cs(e[t])))}function As(e){return Boolean(Ts(e)||e.variants)}function Rs(e){const{initial:t,animate:r}=function(e,t){if(Ts(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Cs(t)?t:void 0,animate:Cs(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(os));return(0,n.useMemo)((()=>({initial:t,animate:r})),[js(t),js(r)])}function js(e){return Array.isArray(e)?e.join(" "):e}const Ms={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$s={};for(const jm in Ms)$s[jm]={isEnabled:e=>Ms[jm].some((t=>!!e[t]))};const Os=(0,n.createContext)({}),Ds=Symbol.for("motionComponentSymbol");function zs({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:i}){e&&function(e){for(const t in e)$s[t]={...$s[t],...e[t]}}(e);const a=(0,n.forwardRef)((function(e,a){let s;const l={...(0,n.useContext)(ns),...e,layoutId:Bs(e)},{isStatic:c}=l,d=Rs(e),h=o(e,c);if(!c&&is){!function(e,t){(0,n.useContext)(ss).strict;0}();const e=function(e){const{drag:t,layout:r}=$s;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);s=e.MeasureLayout,d.visualElement=xs(i,h,l,t,e.ProjectionNode)}return(0,u.jsxs)(os.Provider,{value:d,children:[s&&d.visualElement?(0,u.jsx)(s,{visualElement:d.visualElement,...l}):null,r(i,e,ks(h,d.visualElement,a),h,c,d.visualElement)]})}));return a[Ds]=i,a}function Bs({layoutId:e}){const t=(0,n.useContext)(Os).id;return t&&void 0!==e?t+"-"+e:e}function Ls(e){function t(t,r={}){return zs(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const Is=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fs(e){return"string"==typeof e&&!e.includes("-")&&!!(Is.indexOf(e)>-1||/[A-Z]/u.test(e))}const Vs={};const Hs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ns=new Set(Hs);function Ws(e,{layout:t,layoutId:r}){return Ns.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Vs[e]||"opacity"===e)}const Us=e=>Boolean(e&&e.getVelocity),qs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ys=Hs.length;const Gs=e=>t=>"string"==typeof t&&t.startsWith(e),Xs=Gs("--"),Ks=Gs("var(--"),Js=e=>!!Ks(e)&&Qs.test(e.split("/*")[0].trim()),Qs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs=(e,t)=>t&&"number"==typeof e?t.transform(e):e,el=(e,t,r)=>r>t?t:r<e?e:r,tl={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},rl={...tl,transform:e=>el(0,1,e)},nl={...tl,default:1},ol=e=>Math.round(1e5*e)/1e5,il=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,al=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,sl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ll(e){return"string"==typeof e}const cl=e=>({test:t=>ll(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ul=cl("deg"),dl=cl("%"),hl=cl("px"),pl=cl("vh"),fl=cl("vw"),ml={...dl,parse:e=>dl.parse(e)/100,transform:e=>dl.transform(100*e)},gl={...tl,transform:Math.round},vl={borderWidth:hl,borderTopWidth:hl,borderRightWidth:hl,borderBottomWidth:hl,borderLeftWidth:hl,borderRadius:hl,radius:hl,borderTopLeftRadius:hl,borderTopRightRadius:hl,borderBottomRightRadius:hl,borderBottomLeftRadius:hl,width:hl,maxWidth:hl,height:hl,maxHeight:hl,size:hl,top:hl,right:hl,bottom:hl,left:hl,padding:hl,paddingTop:hl,paddingRight:hl,paddingBottom:hl,paddingLeft:hl,margin:hl,marginTop:hl,marginRight:hl,marginBottom:hl,marginLeft:hl,rotate:ul,rotateX:ul,rotateY:ul,rotateZ:ul,scale:nl,scaleX:nl,scaleY:nl,scaleZ:nl,skew:ul,skewX:ul,skewY:ul,distance:hl,translateX:hl,translateY:hl,translateZ:hl,x:hl,y:hl,z:hl,perspective:hl,transformPerspective:hl,opacity:rl,originX:ml,originY:ml,originZ:hl,zIndex:gl,backgroundPositionX:hl,backgroundPositionY:hl,fillOpacity:rl,strokeOpacity:rl,numOctaves:gl};function yl(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const e=t[d];if(Xs(d)){i[d]=e;continue}const r=vl[d],n=Zs(e,r);if(Ns.has(d)){if(l=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=n):o[d]=n}if(t.transform||(l||n?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;a<Ys;a++){const t=Hs[a];void 0!==e[t]&&(i+=`${qs[t]||t}(${e[t]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,n?"":i):r&&n&&(i="none"),i}(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;o.transformOrigin=`${e} ${t} ${r}`}}const bl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xl(e,t,r){for(const n in t)Us(t[n])||Ws(n,r)||(e[n]=t[n])}function wl(e,t,r){const o={};return xl(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=bl();return yl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),o}function Sl(e,t,r){const n={},o=wl(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const kl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Cl(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kl.has(e)}let _l=e=>!Cl(e);try{(El=require("@emotion/is-prop-valid").default)&&(_l=e=>e.startsWith("on")?!Cl(e):El(e))}catch(Cr){}var El;function Pl(e,t,r){return"string"==typeof e?e:hl.transform(t+r*e)}const Tl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Al={offset:"strokeDashoffset",array:"strokeDasharray"};function Rl(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,h){if(yl(e,c,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){return`${Pl(t,e.x,e.width)} ${Pl(r,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?Tl:Al;e[i.offset]=hl.transform(-n);const a=hl.transform(t),s=hl.transform(r);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const jl=()=>({...bl(),attrs:{}}),Ml=e=>"string"==typeof e&&"svg"===e.toLowerCase();function $l(e,t,r,o){const i=(0,n.useMemo)((()=>{const r=jl();return Rl(r,t,{enableHardwareAcceleration:!1},Ml(o),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};xl(t,e.style,e),i.style={...t,...i.style}}return i}function Ol(e=!1){return(t,r,o,{latestValues:i},a)=>{const s=(Fs(t)?$l:Sl)(r,i,a,t),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(_l(o)||!0===r&&Cl(o)||!t&&!Cl(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),c=t!==n.Fragment?{...l,...s,ref:o}:{},{children:u}=r,d=(0,n.useMemo)((()=>Us(u)?u.get():u),[u]);return(0,n.createElement)(t,{...c,children:d})}}function Dl(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const zl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bl(e,t,r,n){Dl(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(zl.has(o)?o:ls(o),t.attrs[o])}function Ll(e,t,r){var n;const{style:o}=e,i={};for(const a in o)(Us(o[a])||t.style&&Us(t.style[a])||Ws(a,e)||void 0!==(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle))&&(i[a]=o[a]);return i}function Il(e,t,r){const n=Ll(e,t,r);for(const o in e)if(Us(e[o])||Us(t[o])){n[-1!==Hs.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]}return n}function Fl(e){const t=[{},{}];return null==e||e.values.forEach(((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()})),t}function Vl(e,t,r,n){if("function"==typeof t){const[o,i]=Fl(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Fl(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function Hl(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Nl=e=>Array.isArray(e),Wl=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Ul=e=>Nl(e)?e[e.length-1]||0:e;function ql(e){const t=Us(e)?e.get():e;return Wl(t)?t.toValue():t}const Yl=e=>(t,r)=>{const o=(0,n.useContext)(os),i=(0,n.useContext)(ts),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:Gl(n,o,i,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,o,i);return r?a():Hl(a)};function Gl(e,t,r,n){const o={},i=n(e,{});for(const h in i)o[h]=ql(i[h]);let{initial:a,animate:s}=e;const l=Ts(e),c=As(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!_s(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=Vl(e,t);if(!r)return;const{transitionEnd:n,transition:i,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in n)o[e]=n[e]}))}return o}const Xl=e=>e,{schedule:Kl,cancel:Jl,state:Ql,steps:Zl}=fs("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Xl,!0),ec={useVisualState:Yl({scrapeMotionValuesFromProps:Il,createRenderState:jl,onMount:(e,t,{renderState:r,latestValues:n})=>{Kl.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),Kl.render((()=>{Rl(r,n,{enableHardwareAcceleration:!1},Ml(t.tagName),e.transformTemplate),Bl(t,r)}))}})},tc={useVisualState:Yl({scrapeMotionValuesFromProps:Ll,createRenderState:bl})};function rc(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const nc=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function oc(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const ic=e=>t=>nc(t)&&e(t,oc(t));function ac(e,t,r,n){return rc(e,t,ic(r),n)}const sc=(e,t)=>r=>t(e(r)),lc=(...e)=>e.reduce(sc);function cc(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const uc=cc("dragHorizontal"),dc=cc("dragVertical");function hc(e){let t=!1;if("y"===e)t=dc();else if("x"===e)t=uc();else{const e=uc(),r=dc();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function pc(){const e=hc(!0);return!e||(e(),!1)}class fc{constructor(e){this.isMounted=!1,this.node=e}update(){}}function mc(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd";return ac(e.current,r,((r,o)=>{if("touch"===r.pointerType||pc())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[n];a&&Kl.postRender((()=>a(r,o)))}),{passive:!e.getProps()[n]})}const gc=(e,t)=>!!t&&(e===t||gc(e,t.parentElement));function vc(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,oc(r))}const yc=new WeakMap,bc=new WeakMap,xc=e=>{const t=yc.get(e.target);t&&t(e)},wc=e=>{e.forEach(xc)};function Sc(e,t,r){const n=function({root:e,...t}){const r=e||document;bc.has(r)||bc.set(r,{});const n=bc.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(wc,{root:e,...t})),n[o]}(t);return yc.set(e,r),n.observe(e),()=>{yc.delete(e),n.unobserve(e)}}const kc={some:0,all:1};const Cc={inView:{Feature:class extends fc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:kc[n]};return Sc(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends fc{constructor(){super(...arguments),this.removeStartListeners=Xl,this.removeEndListeners=Xl,this.removeAccessibleListeners=Xl,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=ac(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:o}=this.node.getProps(),i=o||gc(this.node.current,e.target)?r:n;i&&Kl.update((()=>i(e,t)))}),{passive:!(r.onTap||r.onPointerUp)}),o=ac(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=lc(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=rc(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=rc(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&vc("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&Kl.postRender((()=>r(e,t)))}))})),vc("down",((e,t)=>{this.startPress(e,t)}))})),t=rc(this.node.current,"blur",(()=>{this.isPressing&&vc("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=lc(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Kl.postRender((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pc()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Kl.postRender((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=ac(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=rc(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=lc(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends fc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=lc(rc(this.node.current,"focus",(()=>this.onFocus())),rc(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends fc{mount(){this.unmount=lc(mc(this.node,!0),mc(this.node,!1))}unmount(){}}}};function _c(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ec(e,t,r){const n=e.getProps();return Vl(n,t,void 0!==r?r:n.custom,e)}const Pc=e=>1e3*e,Tc=e=>e/1e3,Ac={type:"spring",stiffness:500,damping:25,restSpeed:10},Rc={type:"keyframes",duration:.8},jc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mc=(e,{keyframes:t})=>t.length>2?Rc:Ns.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ac:jc;function $c(e,t){return e[t]||e.default||e}const Oc=!1,Dc=e=>null!==e;function zc(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(Dc),i=t&&"loop"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}let Bc;function Lc(){Bc=void 0}const Ic={now:()=>(void 0===Bc&&Ic.set(Ql.isProcessing||ds?Ql.timestamp:performance.now()),Bc),set:e=>{Bc=e,queueMicrotask(Lc)}},Fc=e=>/^0[^.\s]+$/u.test(e);let Vc=Xl,Hc=Xl;const Nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Wc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Uc(e,t,r=1){Hc(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=Wc.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return Nc(e)?parseFloat(e):e}return Js(o)?Uc(o,t,r+1):o}const qc=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yc=e=>e===tl||e===hl,Gc=(e,t)=>parseFloat(e.split(", ")[t]),Xc=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return Gc(o[1],t);{const t=n.match(/^matrix\((.+)\)$/u);return t?Gc(t[1],e):0}},Kc=new Set(["x","y","z"]),Jc=Hs.filter((e=>!Kc.has(e)));const Qc={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xc(4,13),y:Xc(5,14)};Qc.translateX=Qc.x,Qc.translateY=Qc.y;const Zc=e=>t=>t.test(e),eu=[tl,hl,dl,ul,fl,pl,{test:e=>"auto"===e,parse:e=>e}],tu=e=>eu.find(Zc(e)),ru=new Set;let nu=!1,ou=!1;function iu(){if(ou){const e=Array.from(ru).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),r=new Map;t.forEach((e=>{const t=function(e){const t=[];return Jc.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t}(e);t.length&&(r.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=r.get(e);t&&t.forEach((([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}ou=!1,nu=!1,ru.forEach((e=>e.complete())),ru.clear()}function au(){ru.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(ou=!0)}))}class su{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ru.add(this),nu||(nu=!0,Kl.read(au),Kl.resolveKeyframes(iu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==n?void 0:n.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){const n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ru.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ru.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const lu=(e,t)=>r=>Boolean(ll(r)&&sl.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),cu=(e,t,r)=>n=>{if(!ll(n))return n;const[o,i,a,s]=n.match(il);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},uu={...tl,transform:e=>Math.round((e=>el(0,255,e))(e))},du={test:lu("rgb","red"),parse:cu("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+uu.transform(e)+", "+uu.transform(t)+", "+uu.transform(r)+", "+ol(rl.transform(n))+")"};const hu={test:lu("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:du.transform},pu={test:lu("hsl","hue"),parse:cu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+dl.transform(ol(t))+", "+dl.transform(ol(r))+", "+ol(rl.transform(n))+")"},fu={test:e=>du.test(e)||hu.test(e)||pu.test(e),parse:e=>du.test(e)?du.parse(e):pu.test(e)?pu.parse(e):hu.parse(e),transform:e=>ll(e)?e:e.hasOwnProperty("red")?du.transform(e):pu.transform(e)};const mu="number",gu="color",vu="var",yu="var(",bu="${}",xu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wu(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(xu,(e=>(fu.test(e)?(n.color.push(i),o.push(gu),r.push(fu.parse(e))):e.startsWith(yu)?(n.var.push(i),o.push(vu),r.push(e)):(n.number.push(i),o.push(mu),r.push(parseFloat(e))),++i,bu))).split(bu);return{values:r,split:a,indexes:n,types:o}}function Su(e){return wu(e).values}function ku(e){const{split:t,types:r}=wu(e),n=t.length;return e=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],void 0!==e[i]){const t=r[i];o+=t===mu?ol(e[i]):t===gu?fu.transform(e[i]):e[i]}return o}}const Cu=e=>"number"==typeof e?0:e;const _u={test:function(e){var t,r;return isNaN(e)&&ll(e)&&((null===(t=e.match(il))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(al))||void 0===r?void 0:r.length)||0)>0},parse:Su,createTransformer:ku,getAnimatableNone:function(e){const t=Su(e);return ku(e)(t.map(Cu))}},Eu=new Set(["brightness","contrast","saturate","opacity"]);function Pu(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(il)||[];if(!n)return e;const o=r.replace(n,"");let i=Eu.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Tu=/\b([a-z-]*)\(.*?\)/gu,Au={..._u,getAnimatableNone:e=>{const t=e.match(Tu);return t?t.map(Pu).join(" "):e}},Ru={...vl,color:fu,backgroundColor:fu,outlineColor:fu,fill:fu,stroke:fu,borderColor:fu,borderTopColor:fu,borderRightColor:fu,borderBottomColor:fu,borderLeftColor:fu,filter:Au,WebkitFilter:Au},ju=e=>Ru[e];function Mu(e,t){let r=ju(e);return r!==Au&&(r=_u),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const $u=new Set(["auto","none","0"]);class Ou extends su{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let r=e[s];if("string"==typeof r&&(r=r.trim(),Js(r))){const n=Uc(r,t.current);void 0!==n&&(e[s]=n),s===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!qc.has(r)||2!==e.length)return;const[n,o]=e,i=tu(n),a=tu(o);if(i!==a)if(Yc(i)&&Yc(a))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let o=0;o<e.length;o++)("number"==typeof(n=e[o])?0===n:null===n||"none"===n||"0"===n||Fc(n))&&r.push(o);var n;r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){const t=e[o];"string"==typeof t&&!$u.has(t)&&wu(t).values.length&&(n=e[o]),o++}if(n&&r)for(const i of t)e[i]=Mu(r,n)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qc[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=Qc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,r])=>{t.getValue(e).set(r)})),this.resolveNoneKeyframes()}}function Du(e){let t;return()=>(void 0===t&&(t=e()),t)}const zu=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!_u.test(e)&&"0"!==e||e.startsWith("url(")));class Bu{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(au(),iu()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=zu(o,t),s=zu(i,t);return Vc(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||"spring"===r&&n)}(e,r,n,o)){if(Oc||!i)return null==s||s(zc(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Lu(e,t){return t?e*(1e3/t):0}const Iu=5;function Fu(e,t,r){const n=Math.max(t-Iu,0);return Lu(r-e(n),t-n)}const Vu=.001,Hu=.01,Nu=10,Wu=.05,Uu=1;function qu({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vc(e<=Pc(Nu),"Spring duration must be 10 seconds or less");let a=1-t;a=el(Wu,Uu,a),e=el(Hu,Nu,Tc(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=Gu(t,a),l=Math.exp(-o);return Vu-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=Gu(Math.pow(t,2),a);return(-o(t)+Vu>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-Vu,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let o=1;o<Yu;o++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=Pc(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const Yu=12;function Gu(e,t){return e*Math.sqrt(1-t*t)}const Xu=["duration","bounce"],Ku=["stiffness","damping","mass"];function Ju(e,t){return t.some((t=>void 0!==e[t]))}function Qu({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ju(e,Ku)&&Ju(e,Xu)){const r=qu(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Tc(n.velocity||0)}),p=d||0,f=l/(2*Math.sqrt(s*c)),m=i-o,g=Tc(Math.sqrt(s/c)),v=Math.abs(m)<5;let y;if(r||(r=v?.01:2),t||(t=v?.005:.5),f<1){const e=Gu(g,f);y=t=>{const r=Math.exp(-f*g*t);return i-r*((p+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)y=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(f*f-1);y=t=>{const r=Math.exp(-f*g*t),n=Math.min(e*t,300);return i-r*((p+f*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=y(e);if(h)a.done=e>=u;else{let o=p;0!==e&&(o=f<1?Fu(y,e,n):0);const s=Math.abs(o)<=r,l=Math.abs(i-n)<=t;a.done=s&&l}return a.value=a.done?i:n,a}}}function Zu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=r*t;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const v=e=>-f*Math.exp(-e/n),y=e=>g+v(e),b=e=>{const t=v(e),r=y(e);h.done=Math.abs(t)<=c,h.value=h.done?g:r};let x,w;const S=e=>{var t;(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=Qu({keyframes:[h.value,p(h.value)],velocity:Fu(y,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),S(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),h)}}}const ed=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,td=1e-7,rd=12;function nd(e,t,r,n){if(e===t&&r===n)return Xl;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=ed(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>td&&++s<rd);return a}(t,0,1,e,r);return e=>0===e||1===e?e:ed(o(e),t,n)}const od=nd(.42,0,1,1),id=nd(0,0,.58,1),ad=nd(.42,0,.58,1),sd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ld=e=>t=>1-e(1-t),cd=e=>1-Math.sin(Math.acos(e)),ud=ld(cd),dd=sd(cd),hd=nd(.33,1.53,.69,.99),pd=ld(hd),fd=sd(pd),md={linear:Xl,easeIn:od,easeInOut:ad,easeOut:id,circIn:cd,circInOut:dd,circOut:ud,backIn:pd,backInOut:fd,backOut:hd,anticipate:e=>(e*=2)<1?.5*pd(e):.5*(2-Math.pow(2,-10*(e-1)))},gd=e=>{if(Array.isArray(e)){Hc(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return nd(t,r,n,o)}return"string"==typeof e?(Hc(void 0!==md[e],`Invalid easing type '${e}'`),md[e]):e},vd=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},yd=(e,t,r)=>e+(t-e)*r;function bd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function xd(e,t){return r=>r>0?t:e}const wd=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Sd=[hu,du,pu];function kd(e){const t=(r=e,Sd.find((e=>e.test(r))));var r;if(Vc(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===pu&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=bd(s,n,e+1/3),i=bd(s,n,e),a=bd(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const Cd=(e,t)=>{const r=kd(e),n=kd(t);if(!r||!n)return xd(e,t);const o={...r};return e=>(o.red=wd(r.red,n.red,e),o.green=wd(r.green,n.green,e),o.blue=wd(r.blue,n.blue,e),o.alpha=yd(r.alpha,n.alpha,e),du.transform(o))},_d=new Set(["none","hidden"]);function Ed(e,t){return r=>yd(e,t,r)}function Pd(e){return"number"==typeof e?Ed:"string"==typeof e?Js(e)?xd:fu.test(e)?Cd:Rd:Array.isArray(e)?Td:"object"==typeof e?fu.test(e)?Cd:Ad:xd}function Td(e,t){const r=[...e],n=r.length,o=e.map(((e,r)=>Pd(e)(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function Ad(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=Pd(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const Rd=(e,t)=>{const r=_u.createTransformer(t),n=wu(e),o=wu(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?_d.has(e)&&!o.values.length||_d.has(t)&&!n.values.length?function(e,t){return _d.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):lc(Td(function(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[i]=l,o[a]++}return n}(n,o),o.values),r):(Vc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xd(e,t))};function jd(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return yd(e,t,r);return Pd(e)(e,t)}function Md(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(Hc(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,r){const n=[],o=r||jd,i=e.length-1;for(let a=0;a<i;a++){let r=o(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||Xl:t;r=lc(e,r)}n.push(r)}return n}(t,n,o),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=vd(e[r],e[r+1],t);return a[r](n)};return r?t=>l(el(e[0],e[i-1],t)):l}function $d(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=vd(0,t,n);e.push(yd(r,1,o))}}(t,e.length-1),t}function Od({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(gd):gd(n),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:$d(t),e),s=Md(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||ad)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Dd=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Kl.update(t,!0),stop:()=>Jl(t),now:()=>Ql.isProcessing?Ql.timestamp:Ic.now()}},zd={decay:Zu,inertia:Zu,tween:Od,keyframes:Od,spring:Qu},Bd=e=>e/100;class Ld extends Bu{constructor({KeyframeResolver:e=su,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:r,motionValue:n,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(o,i,r,n):this.resolver=new e(o,i,r,n),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=this.options,a=zd[t]||Od;let s,l;a!==Od&&"number"!=typeof e[0]&&(s=lc(Bd,jd(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+n;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:r}=this;if(!r){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=r;if(null===this.startTime)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(h){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,h+1);Boolean(t%2)&&("reverse"===p?(r=1-r,f&&(r-=f/u)):"mirror"===p&&(b=i)),y=el(0,1,r)*u}const x=v?{done:!1,value:s[0]}:b.next(y);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==n&&(x.value=zc(s,this.options,n)),m&&m(x.value),S&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Tc(e.calculatedDuration):0}get time(){return Tc(this.currentTime)}set time(e){e=Pc(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Tc(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Dd,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Id=e=>Array.isArray(e)&&"number"==typeof e[0];function Fd(e){return Boolean(!e||"string"==typeof e&&e in Hd||Id(e)||Array.isArray(e)&&e.every(Fd))}const Vd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Hd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vd([0,.65,.55,1]),circOut:Vd([.55,0,1,.45]),backIn:Vd([.31,.01,.66,-.59]),backOut:Vd([.33,1.53,.69,.99])};function Nd(e){return Wd(e)||Hd.easeOut}function Wd(e){return e?Id(e)?Vd(e):Array.isArray(e)?e.map(Nd):Hd[e]:void 0}const Ud=Du((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),qd=new Set(["opacity","clipPath","filter","transform"]);class Yd extends Bu{constructor(e){super(e);const{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new Ou(n,((e,t)=>this.onKeyframesResolved(e,t)),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:n=300,times:o,ease:i,type:a,motionValue:s,name:l}=this.options;if(!(null===(r=s.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(c=this.options).type||"backgroundColor"===c.name||!Fd(c.ease)){const{onComplete:t,onUpdate:r,motionValue:s,...l}=this.options,c=function(e,t){const r=new Ld({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<2e4;)n=r.sample(i),o.push(n.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,o=c.times,i=c.ease,a="keyframes"}var c;const u=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Wd(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:n,times:o,ease:i});return u.startTime=Ic.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:r}=this.options;s.set(zc(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:o,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Tc(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Tc(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.currentTime=Pc(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Xl;const{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return Xl}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,c=new Ld({...l,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),u=Pc(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;return Ud()&&r&&qd.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}}const Gd=Du((()=>void 0!==window.ScrollTimeline));class Xd{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!Gd()||!t.attachTimeline)return t.pause(),function(e,t){let r;const n=()=>{const{currentTime:n}=t,o=(null===n?0:n.value)/100;r!==o&&e(o),r=o};return Kl.update(n,!0),()=>Jl(n)}((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Kd=(e,t,r,n={},o,i)=>a=>{const s=$c(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c-=Pc(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...Mc(e,u)}),u.duration&&(u.duration=Pc(u.duration)),u.repeatDelay&&(u.repeatDelay=Pc(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(Oc||us)&&(d=!0,u.duration=0,u.delay=0),d&&!i&&void 0!==t.get()){const e=zc(u.keyframes,s);if(void 0!==e)return Kl.update((()=>{u.onUpdate(e),u.onComplete()})),new Xd([])}return!i&&Yd.supports(u)?new Yd(u):new Ld(u)};function Jd(e){return Boolean(Us(e)&&e.add)}function Qd(e,t){-1===e.indexOf(t)&&e.push(t)}function Zd(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class eh{constructor(){this.subscriptions=[]}add(e){return Qd(this.subscriptions,e),()=>Zd(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const th={current:void 0};class rh{constructor(e,t={}){this.version="11.2.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const r=Ic.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Ic.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eh);const r=this.events[e].add(t);return"change"===e?()=>{r(),Kl.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return th.current&&th.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ic.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Lu(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nh(e,t){return new rh(e,t)}function oh(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,nh(r))}function ih(e){return e.getProps()[cs]}function ah({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function sh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const c=e.getValue("willChange");n&&(a=n);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const h in l){const t=e.getValue(h,null!==(i=e.latestValues[h])&&void 0!==i?i:null),n=l[h];if(void 0===n||d&&ah(d,h))continue;const o={delay:r,elapsed:0,...$c(a||{},h)};let s=!1;if(window.HandoffAppearAnimations){const r=ih(e);if(r){const e=window.HandoffAppearAnimations(r,h,t,Kl);null!==e&&(o.elapsed=e,s=!0)}}t.start(Kd(h,t,n,e.shouldReduceMotion&&Ns.has(h)?{type:!1}:o,e,s));const p=t.animation;p&&(Jd(c)&&(c.add(h),p.then((()=>c.remove(h)))),u.push(p))}return s&&Promise.all(u).then((()=>{Kl.update((()=>{s&&function(e,t){const r=Ec(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const a in i)oh(e,a,Ul(i[a]))}(e,s)}))})),u}function lh(e,t,r={}){var n;const o=Ec(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const a=o?()=>Promise.all(sh(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(ch).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(lh(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(r.delay)])}function ch(e,t){return e.sortNodePosition(t)}const uh=[...Es].reverse(),dh=Es.length;function hh(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>lh(e,t,r)));n=Promise.all(o)}else if("string"==typeof t)n=lh(e,t,r);else{const o="function"==typeof t?Ec(e,t,r.custom):t;n=Promise.all(sh(e,o,r))}return n.then((()=>{Kl.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,t,r))))}function ph(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_c(t,e)}function fh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mh(){return{animate:fh(!0),whileInView:fh(),whileHover:fh(),whileTap:fh(),whileDrag:fh(),whileFocus:fh(),exit:fh()}}let gh=0;const vh={animation:{Feature:class extends fc{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=hh(e),r=mh(),n=!0;const o=t=>(r,n)=>{var o;const i=Ec(e,n,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<dh;t++){const h=uh[t],p=r[h],f=void 0!==a[h]?a[h]:s[h],m=Cs(f),g=h===i?p.isActive:null;!1===g&&(d=t);let v=f===s[h]&&f!==a[h]&&m;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!f&&!p.prevProp||_s(f)||"boolean"==typeof f)continue;let y=ph(p.prevProp,f)||h===i&&p.isActive&&!v&&m||t>d&&m,b=!1;const x=Array.isArray(f)?f:[f];let w=x.reduce(o(h),{});!1===g&&(w={});const{prevResolvedValues:S={}}=p,k={...S,...w},C=t=>{y=!0,c.has(t)&&(b=!0,c.delete(t)),p.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in k){const t=w[e],r=S[e];if(u.hasOwnProperty(e))continue;let n=!1;n=Nl(t)&&Nl(r)?!_c(t,r):t!==r,n?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):p.protectedKeys[e]=!0}p.prevProp=f,p.prevResolvedValues=w,p.isActive&&(u={...u,...w}),n&&e.blockInitialAnimation&&(y=!1),!y||v&&!b||l.push(...x.map((e=>({animation:e,options:{type:h}}))))}if(c.size){const t={};c.forEach((r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null})),l.push({animation:t})}let h=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(h=!1),n=!1,h?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const a=i(t);for(const e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=mh(),n=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_s(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends fc{constructor(){super(...arguments),this.id=gh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},yh=(e,t)=>Math.abs(e-t);class bh{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Sh(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=yh(e.x,t.x),n=yh(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=Ql;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=xh(t,this.transformPagePoint),Kl.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Sh("pointercancel"===e.type?this.lastMoveEventInfo:xh(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!nc(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const i=xh(oc(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Ql;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Sh(i,this.history)),this.removeListeners=lc(ac(this.contextWindow,"pointermove",this.handlePointerMove),ac(this.contextWindow,"pointerup",this.handlePointerUp),ac(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Jl(this.updatePoint)}}function xh(e,t){return t?{point:t(e.point)}:e}function wh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sh({point:e},t){return{point:e,delta:wh(e,Ch(t)),offset:wh(e,kh(t)),velocity:_h(t,.1)}}function kh(e){return e[0]}function Ch(e){return e[e.length-1]}function _h(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Ch(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Pc(t)));)r--;if(!n)return{x:0,y:0};const i=Tc(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Eh(e){return e.max-e.min}function Ph(e,t=0,r=.01){return Math.abs(e-t)<=r}function Th(e,t,r,n=.5){e.origin=n,e.originPoint=yd(t.min,t.max,e.origin),e.scale=Eh(r)/Eh(t),(Ph(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=yd(r.min,r.max,e.origin)-e.originPoint,(Ph(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ah(e,t,r,n){Th(e.x,t.x,r.x,n?n.originX:void 0),Th(e.y,t.y,r.y,n?n.originY:void 0)}function Rh(e,t,r){e.min=r.min+t.min,e.max=e.min+Eh(t)}function jh(e,t,r){e.min=t.min-r.min,e.max=e.min+Eh(t)}function Mh(e,t,r){jh(e.x,t.x,r.x),jh(e.y,t.y,r.y)}function $h(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Oh(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const Dh=.35;function zh(e,t,r){return{min:Bh(e,t),max:Bh(e,r)}}function Bh(e,t){return"number"==typeof e?e:e[t]||0}const Lh=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Ih=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Fh(e){return[e("x"),e("y")]}function Vh({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Hh(e){return void 0===e||1===e}function Nh({scale:e,scaleX:t,scaleY:r}){return!Hh(e)||!Hh(t)||!Hh(r)}function Wh(e){return Nh(e)||Uh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Uh(e){return qh(e.x)||qh(e.y)}function qh(e){return e&&"0%"!==e}function Yh(e,t,r){return r+t*(e-r)}function Gh(e,t,r,n,o){return void 0!==o&&(e=Yh(e,o,n)),Yh(e,r,n)+t}function Xh(e,t=0,r=1,n,o){e.min=Gh(e.min,t,r,n,o),e.max=Gh(e.max,t,r,n,o)}function Kh(e,{x:t,y:r}){Xh(e.x,t.translate,t.scale,t.originPoint),Xh(e.y,r.translate,r.scale,r.originPoint)}function Jh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Qh(e,t){e.min=e.min+t,e.max=e.max+t}function Zh(e,t,[r,n,o]){const i=void 0!==t[o]?t[o]:.5,a=yd(e.min,e.max,i);Xh(e,t[r],t[n],a,t.scale)}const ep=["x","scaleX","originX"],tp=["y","scaleY","originY"];function rp(e,t){Zh(e.x,t,ep),Zh(e.y,t,tp)}function np(e,t){return Vh(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const op=({current:e})=>e?e.ownerDocument.defaultView:null,ip=new WeakMap;class ap{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ih(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new bh(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(oc(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hc(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fh((e=>{let t=this.getAxisMotionValue(e).get()||0;if(dl.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=Eh(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Kl.postRender((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Fh((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:op(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&Kl.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!sp(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?yd(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?yd(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&vs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:$h(e.x,r,o),y:$h(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Dh){return!1===e?e=0:!0===e&&(e=Dh),{x:zh(e,"left","right"),y:zh(e,"top","bottom")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Fh((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!vs(e))return!1;const r=e.current;Hc(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=np(e,r),{scroll:o}=t;return o&&(Qh(n.x,o.offset.x),Qh(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Oh(e.x,t.x),y:Oh(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Vh(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Fh((a=>{if(!sp(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(Kd(e,r,0,t,this.visualElement))}stopAnimation(){Fh((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Fh((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Fh((t=>{const{drag:r}=this.getProps();if(!sp(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-yd(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!vs(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Fh((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=Eh(e),o=Eh(t);return o>n?r=vd(t.min,t.max-n,e.min):n>o&&(r=vd(e.min,e.max-o,t.min)),el(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fh((t=>{if(!sp(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(yd(o,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;ip.set(this.visualElement,this);const e=ac(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();vs(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Kl.read(t);const o=rc(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Fh((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=Dh,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function sp(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const lp=e=>(t,r)=>{e&&Kl.postRender((()=>e(t,r)))};const cp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function up(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dp={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!hl.test(e))return e;e=parseFloat(e)}return`${up(e,t.target.x)}% ${up(e,t.target.y)}%`}},hp={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=_u.parse(e);if(o.length>5)return n;const i=_u.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=yd(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class pp extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=mp,Object.assign(Vs,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Kl.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ms.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fp(e){const[t,r]=function(){const e=(0,n.useContext)(ts);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:o}=e,i=(0,n.useId)();return(0,n.useEffect)((()=>o(i)),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),o=(0,n.useContext)(Os);return(0,u.jsx)(pp,{...e,layoutGroup:o,switchLayoutGroup:(0,n.useContext)(ys),isPresent:t,safeToRemove:r})}const mp={borderRadius:{...dp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dp,borderTopRightRadius:dp,borderBottomLeftRadius:dp,borderBottomRightRadius:dp,boxShadow:hp},gp=["TopLeft","TopRight","BottomLeft","BottomRight"],vp=gp.length,yp=e=>"string"==typeof e?parseFloat(e):e,bp=e=>"number"==typeof e||hl.test(e);function xp(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wp=kp(0,.5,ud),Sp=kp(.5,.95,Xl);function kp(e,t,r){return n=>n<e?0:n>t?1:r(vd(e,t,n))}function Cp(e,t){e.min=t.min,e.max=t.max}function _p(e,t){Cp(e.x,t.x),Cp(e.y,t.y)}function Ep(e,t,r,n,o){return e=Yh(e-=t,1/r,n),void 0!==o&&(e=Yh(e,1/o,n)),e}function Pp(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){dl.test(t)&&(t=parseFloat(t),t=yd(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=yd(i.min,i.max,n);e===i&&(s-=t),e.min=Ep(e.min,t,r,s,o),e.max=Ep(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const Tp=["x","scaleX","originX"],Ap=["y","scaleY","originY"];function Rp(e,t,r,n){Pp(e.x,t,Tp,r?r.x:void 0,n?n.x:void 0),Pp(e.y,t,Ap,r?r.y:void 0,n?n.y:void 0)}function jp(e){return 0===e.translate&&1===e.scale}function Mp(e){return jp(e.x)&&jp(e.y)}function $p(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Op(e){return Eh(e.x)/Eh(e.y)}class Dp{constructor(){this.members=[]}add(e){Qd(this.members,e),e.scheduleRender()}remove(e){if(Zd(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zp(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(n+=`scale(${s}, ${l})`),n||"none"}const Bp=(e,t)=>e.depth-t.depth;class Lp{constructor(){this.children=[],this.isDirty=!1}add(e){Qd(this.children,e),this.isDirty=!0}remove(e){Zd(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bp),this.isDirty=!1,this.children.forEach(e)}}const Ip=["","X","Y","Z"],Fp={visibility:"hidden"};let Vp=0;const Hp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Np(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Wp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return!!t&&(!!ih(t)||!(!e.parent||e.parent.hasCheckedOptimisedAppear)&&Wp(e.parent))}function Up({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Vp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,Hp.totalNodes=Hp.resolvedTargetDeltas=Hp.recalculatedProjection=0,this.nodes.forEach(Gp),this.nodes.forEach(tf),this.nodes.forEach(rf),this.nodes.forEach(Xp),e=Hp,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eh),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var n;this.isSVG=(n=t)instanceof SVGElement&&"svg"!==n.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||o)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=Ic.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Jl(n),e(i-t))};return Kl.read(n,!0),()=>Jl(n)}(n,250),cp.hasAnimatedSinceResize&&(cp.hasAnimatedSinceResize=!1,this.nodes.forEach(ef))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||cf,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!$p(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...$c(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ef(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Jl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nf),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&Wp(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Jp);this.isUpdating||this.nodes.forEach(Qp),this.isUpdating=!1,this.nodes.forEach(Zp),this.nodes.forEach(qp),this.nodes.forEach(Yp),this.clearAllSnapshots();const e=Ic.now();Ql.delta=el(0,1e3/60,e-Ql.timestamp),Ql.timestamp=e,Ql.isProcessing=!0,Zl.update.process(Ql),Zl.preRender.process(Ql),Zl.render.process(Ql),Ql.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ms.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kp),this.sharedNodes.forEach(of)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kl.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r<this.path.length;r++){this.path[r].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ih(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Mp(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||Wh(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),hf((n=r).x),hf(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Ih();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(Qh(t.x,r.offset.x),Qh(t.y,r.offset.y)),t}removeElementScroll(e){const t=Ih();_p(t,e);for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:o,options:i}=n;if(n!==this.root&&o&&i.layoutScroll){if(o.isRoot){_p(t,e);const{scroll:r}=this.root;r&&(Qh(t.x,-r.offset.x),Qh(t.y,-r.offset.y))}Qh(t.x,o.offset.x),Qh(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const r=Ih();_p(r,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&rp(r,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Wh(e.latestValues)&&rp(r,e.latestValues)}return Wh(this.latestValues)&&rp(r,this.latestValues),r}removeTransform(e){const t=Ih();_p(t,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];if(!e.instance)continue;if(!Wh(e.latestValues))continue;Nh(e.latestValues)&&e.updateSnapshot();const n=Ih();_p(n,e.measurePageBox()),Rp(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,n)}return Wh(this.latestValues)&&Rp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ql.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Ql.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ih(),this.relativeTargetOrigin=Ih(),Mh(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),_p(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Ih(),this.targetWithTransforms=Ih()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Rh(a.x,s.x,l.x),Rh(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):_p(this.target,this.layout.layoutBox),Kh(this.target,this.targetDelta)):_p(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ih(),this.relativeTargetOrigin=Ih(),Mh(this.relativeTargetOrigin,this.target,e.target),_p(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Nh(this.parent.latestValues)&&!Uh(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Ql.timestamp&&(n=!1),n)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;_p(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rp(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Kh(e,a)),n&&Wh(i.latestValues)&&rp(e,i.latestValues))}t.x=Jh(t.x),t.y=Jh(t.y)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Ih());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Lh(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Lh(),this.projectionDeltaWithTransform=Lh());const c=this.projectionTransform;Ah(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=zp(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Hp.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i=Lh();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Ih(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(lf));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,h;af(i.x,e.x,r),af(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mh(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){sf(e.x,t.x,r.x,n),sf(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&(l=this.relativeTarget,h=d,l.x.min===h.x.min&&l.x.max===h.x.max&&l.y.min===h.y.min&&l.y.max===h.y.max)&&(this.isProjectionDirty=!1),d||(d=Ih()),_p(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=yd(0,void 0!==r.opacity?r.opacity:1,wp(n)),e.opacityExit=yd(void 0!==t.opacity?t.opacity:1,0,Sp(n))):i&&(e.opacity=yd(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a<vp;a++){const o=`border${gp[a]}Radius`;let i=xp(t,o),s=xp(r,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||bp(i)===bp(s)?(e[o]=Math.max(yd(yp(i),yp(s),n),0),(dl.test(s)||dl.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=yd(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Jl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kl.update((()=>{cp.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=Us(e)?e:nh(e);return n.start(Kd("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&pf(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Ih();const t=Eh(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=Eh(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}_p(t,r),rp(t,o),Ah(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dp);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&Np("z",e,n,this.animationValues);for(let o=0;o<Ip.length;o++)Np(`rotate${Ip[o]}`,e,n,this.animationValues),Np(`skew${Ip[o]}`,e,n,this.animationValues);e.render();for(const o in n)e.setStaticValue(o,n[o]),this.animationValues&&(this.animationValues[o]=n[o]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fp;const n={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ql(null==e?void 0:e.pointerEvents)||"",n.transform=o?o(this.latestValues,""):"none",n;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ql(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Wh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=zp(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in Vs){if(void 0===a[c])continue;const{correct:e,applyTo:t}=Vs[c],r="none"===n.transform?a[c]:e(a[c],i);if(t){const e=t.length;for(let o=0;o<e;o++)n[t[o]]=r}else n[c]=r}return this.options.layoutId&&(n.pointerEvents=i===this?ql(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Jp),this.root.sharedNodes.clear()}}}function qp(e){e.updateLayout()}function Yp(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?Fh((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=Eh(n);n.min=t[e].min,n.max=n.min+o})):pf(o,r.layoutBox,t)&&Fh((n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=Eh(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Lh();Ah(a,t,r.layoutBox);const s=Lh();i?Ah(s,e.applyTransform(n,!0),r.measuredBox):Ah(s,t,r.layoutBox);const l=!Mp(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a=Ih();Mh(a,r.layoutBox,o.layoutBox);const s=Ih();Mh(s,t,i.layoutBox),$p(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Gp(e){Hp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Xp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Kp(e){e.clearSnapshot()}function Jp(e){e.clearMeasurements()}function Qp(e){e.isLayoutDirty=!1}function Zp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ef(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tf(e){e.resolveTargetDelta()}function rf(e){e.calcProjection()}function nf(e){e.resetSkewAndRotation()}function of(e){e.removeLeadSnapshot()}function af(e,t,r){e.translate=yd(t.translate,0,r),e.scale=yd(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function sf(e,t,r,n){e.min=yd(t.min,r.min,n),e.max=yd(t.max,r.max,n)}function lf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const cf={duration:.45,ease:[.4,0,.1,1]},uf=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),df=uf("applewebkit/")&&!uf("chrome/")?Math.round:Xl;function hf(e){e.min=df(e.min),e.max=df(e.max)}function pf(e,t,r){return"position"===e||"preserve-aspect"===e&&!Ph(Op(t),Op(r),.2)}const ff=Up({attachResizeListener:(e,t)=>rc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mf={current:void 0},gf=Up({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mf.current){const e=new ff({});e.mount(window),e.setOptions({layoutScroll:!0}),mf.current=e}return mf.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),vf={pan:{Feature:class extends fc{constructor(){super(...arguments),this.removePointerDownListener=Xl}onPointerDown(e){this.session=new bh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:op(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:lp(e),onStart:lp(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&Kl.postRender((()=>n(e,t)))}}}mount(){this.removePointerDownListener=ac(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends fc{constructor(e){super(e),this.removeGroupControls=Xl,this.removeListeners=Xl,this.controls=new ap(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xl}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:gf,MeasureLayout:fp}},yf={current:null},bf={current:!1};const xf=new WeakMap,wf=[...eu,fu,_u],Sf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kf=Ps.length;class Cf{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=su,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Kl.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ts(t),this.isVariantNode=As(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in u){const e=u[d];void 0!==s[d]&&Us(e)&&(e.set(s[d],!1),Jd(c)&&c.add(d))}}mount(e){this.current=e,xf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),bf.current||function(){if(bf.current=!0,is)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yf.current=e.matches;e.addListener(t),t()}else yf.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||yf.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xf.delete(this.current),this.projection&&this.projection.unmount(),Jl(this.notifyUpdate),Jl(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const r=Ns.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Kl.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in $s){const t=$s[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ih()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;r<Sf.length;r++){const t=Sf[r];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const n=e["on"+t];n&&(this.propEventSubscriptions[t]=this.on(t,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(Us(i))e.addValue(o,i),Jd(n)&&n.add(o);else if(Us(a))e.addValue(o,nh(i,{owner:e})),Jd(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,nh(void 0!==t?t:i,{owner:e}))}}for(const o in r)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let r=0;r<kf;r++){const e=Ps[r],n=this.props[e];(Cs(n)||!1===n)&&(t[e]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=nh(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=n&&("string"==typeof n&&(Nc(n)||Fc(n))?n=parseFloat(n):(o=n,!wf.find(Zc(o))&&_u.test(t)&&(n=Mu(e,t))),this.setBaseTarget(e,Us(n)?n.get():n)),Us(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props;let n;if("string"==typeof r||"object"==typeof r){const o=Vl(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Us(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new eh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _f extends Cf{constructor(){super(...arguments),this.KeyframeResolver=Ou}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class Ef extends _f{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(Ns.has(t)){const e=ju(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=(Xs(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return np(e,t)}build(e,t,r,n){yl(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return Ll(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Us(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){Dl(e,t,r,n)}}class Pf extends _f{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ns.has(t)){const e=ju(t);return e&&e.default||0}return t=zl.has(t)?t:ls(t),e.getAttribute(t)}measureInstanceViewportBox(){return Ih()}scrapeMotionValuesFromProps(e,t,r){return Il(e,t,r)}build(e,t,r,n){Rl(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){Bl(e,t,0,n)}mount(e){this.isSVGTag=Ml(e.tagName),super.mount(e)}}const Tf=(e,t)=>Fs(e)?new Pf(t,{enableHardwareAcceleration:!1}):new Ef(t,{allowProjection:e!==n.Fragment,enableHardwareAcceleration:!0}),Af={...vh,...Cc,...vf,...{layout:{ProjectionNode:gf,MeasureLayout:fp}}},Rf=Ls(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...Fs(e)?ec:tc,preloadedFeatures:r,useRender:Ol(t),createVisualElement:n,Component:e}}(e,t,Af,Tf)));var jf=r(3720),Mf={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},$f=(0,n.memo)((e=>{const{id:t,message:r,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:d=Mf,toastSpacing:h="0.5rem"}=e,[p,f]=(0,n.useState)(l),m=rs();es((()=>{m||null==o||o()}),[m]),es((()=>{f(l)}),[l]);const g=()=>{m&&i()};(0,n.useEffect)((()=>{m&&a&&i()}),[m,a,i]),function(e,t){const r=(0,Za.c)(e);(0,n.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}(g,p);const v=(0,n.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...c})),[c,h]),y=(0,n.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,u.jsx)(Rf.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(l),custom:{position:s},style:y,children:(0,u.jsx)(jf.B.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:(0,Le.Jg)(r,{id:t,onClose:g})})})}));$f.displayName="ToastComponent";var Of=r(8855),Df=r(7484),zf={path:(0,u.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,u.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,u.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,u.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Bf=(0,Of.R)(((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,d={ref:t,focusable:i,className:(0,Le.cx)("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...(0,Df.Vl)("Icon",e)}},h=null!=n?n:zf.viewBox;if(r&&"string"!=typeof r)return(0,u.jsx)(jf.B.svg,{as:r,...d,...c});const p=null!=a?a:zf.path;return(0,u.jsx)(jf.B.svg,{verticalAlign:"middle",viewBox:h,...d,...c,children:p})}));Bf.displayName="Icon";function Lf(e){return(0,u.jsx)(Bf,{viewBox:"0 0 24 24",...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var If=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ff=(0,Of.R)(((e,t)=>{const r=(0,Df.Vl)("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=(0,x.MN)(e),c=(0,Le.cx)("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${If} ${i} linear infinite`,...r};return(0,u.jsx)(jf.B.div,{ref:t,__css:d,className:c,...l,children:n&&(0,u.jsx)(jf.B.span,{srOnly:!0,children:n})})}));Ff.displayName="Spinner";var[Vf,Hf]=(0,m.q)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Nf,Wf]=(0,m.q)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Uf={info:{icon:function(e){return(0,u.jsx)(Bf,{viewBox:"0 0 24 24",...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Lf,colorScheme:"orange"},success:{icon:function(e){return(0,u.jsx)(Bf,{viewBox:"0 0 24 24",...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Lf,colorScheme:"red"},loading:{icon:Ff,colorScheme:"blue"}};var qf=(0,Of.R)((function(e,t){var r;const{status:n="info",addRole:o=!0,...i}=(0,x.MN)(e),a=null!=(r=e.colorScheme)?r:function(e){return Uf[e].colorScheme}(n),s=(0,Df.o5)("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,u.jsx)(Vf,{value:{status:n},children:(0,u.jsx)(Nf,{value:s,children:(0,u.jsx)(jf.B.div,{"data-status":n,role:o?"alert":void 0,ref:t,...i,className:(0,Le.cx)("chakra-alert",e.className),__css:l})})})}));function Yf(e){const{status:t}=Hf(),r=function(e){return Uf[e].icon}(t),n=Wf(),o="loading"===t?n.spinner:n.icon;return(0,u.jsx)(jf.B.span,{display:"inherit","data-status":t,...e,className:(0,Le.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,u.jsx)(r,{h:"100%",w:"100%"})})}qf.displayName="Alert",Yf.displayName="AlertIcon";var Gf=(0,Of.R)((function(e,t){const r=Wf(),{status:n}=Hf();return(0,u.jsx)(jf.B.div,{ref:t,"data-status":n,...e,className:(0,Le.cx)("chakra-alert__title",e.className),__css:r.title})}));Gf.displayName="AlertTitle";var Xf=(0,Of.R)((function(e,t){const r=Wf(),{status:n}=Hf(),o={display:"inline",...r.description};return(0,u.jsx)(jf.B.div,{ref:t,"data-status":n,...e,className:(0,Le.cx)("chakra-alert__desc",e.className),__css:o})}));function Kf(e){return(0,u.jsx)(Bf,{focusable:"false","aria-hidden":!0,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}Xf.displayName="AlertDescription";var Jf=(0,Of.R)((function(e,t){const r=(0,Df.Vl)("CloseButton",e),{children:n,isDisabled:o,__css:i,...a}=(0,x.MN)(e);return(0,u.jsx)(jf.B.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...i},...a,children:n||(0,u.jsx)(Kf,{width:"1em",height:"1em"})})}));Jf.displayName="CloseButton";var Qf=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;Zf+=1;const o=null!=(r=t.id)?r:Zf,i=null!=(n=t.position)?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Qf.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=r;return n((e=>{var t,n;const i=o.includes("top")?[r,...null!=(t=e[o])?t:[]]:[...null!=(n=e[o])?n:[],r];return{...e,[o]:i}})),i},update:(e,t)=>{e&&n((r=>{const n={...r},{position:o,index:i}=Ka(n,e);return o&&-1!==i&&(n[o][i]={...n[o][i],...t,message:tm(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=Ja(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(Ka(Qf.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var Zf=0;var em=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,u.jsxs)(qf,{addRole:!1,status:t,variant:r,id:null==d?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,u.jsx)(Yf,{children:c}),(0,u.jsxs)(jf.B.div,{flex:"1",maxWidth:"100%",children:[o&&(0,u.jsx)(Gf,{id:null==d?void 0:d.title,children:o}),s&&(0,u.jsx)(Xf,{id:null==d?void 0:d.description,display:"block",children:s})]}),i&&(0,u.jsx)(Jf,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function tm(e={}){const{render:t,toastComponent:r=em}=e;return n=>"function"==typeof t?t({...n,...e}):(0,u.jsx)(r,{...n,...e})}function rm(){const e=(0,n.useRef)(!1);return as((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class nm extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function om({children:e,isPresent:t}){const r=(0,n.useId)(),o=(0,n.useRef)(null),i=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,n.useContext)(ns);return(0,n.useInsertionEffect)((()=>{const{width:e,height:n,top:s,left:l}=i.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;const c=document.createElement("style");return a&&(c.nonce=a),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,u.jsx)(nm,{isPresent:t,childRef:o,sizeRef:i,children:n.cloneElement(e,{ref:o})})}const im=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Hl(am),c=(0,n.useId)(),d=(0,n.useMemo)((()=>({id:c,initial:t,isPresent:r,custom:i,onExitComplete:e=>{l.set(e,!0);for(const t of l.values())if(!t)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))})),a?[Math.random()]:[r]);return(0,n.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),n.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===s&&(e=(0,u.jsx)(om,{isPresent:r,children:e})),(0,u.jsx)(ts.Provider,{value:d,children:e})};function am(){return new Map}const sm=e=>e.key||"";const lm=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Hc(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,n.useContext)(Os).forceRender||function(){const e=rm(),[t,r]=(0,n.useState)(0),o=(0,n.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,n.useCallback)((()=>Kl.postRender(o)),[o]),t]}()[0],c=rm(),d=function(e){const t=[];return n.Children.forEach(e,(e=>{(0,n.isValidElement)(e)&&t.push(e)})),t}(e);let h=d;const p=(0,n.useRef)(new Map).current,f=(0,n.useRef)(h),m=(0,n.useRef)(new Map).current,g=(0,n.useRef)(!0);var v;if(as((()=>{g.current=!1,function(e,t){e.forEach((e=>{const r=sm(e);t.set(r,e)}))}(d,m),f.current=h})),v=()=>{g.current=!0,m.clear(),p.clear()},(0,n.useEffect)((()=>()=>v()),[]),g.current)return(0,u.jsx)(u.Fragment,{children:h.map((e=>(0,u.jsx)(im,{isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s,children:e},sm(e))))});h=[...h];const y=f.current.map(sm),b=d.map(sm),x=y.length;for(let n=0;n<x;n++){const e=y[n];-1!==b.indexOf(e)||p.has(e)||p.set(e,void 0)}return"wait"===s&&p.size&&(h=[]),p.forEach(((e,r)=>{if(-1!==b.indexOf(r))return;const n=m.get(r);if(!n)return;const i=y.indexOf(r);let g=e;if(!g){const e=()=>{p.delete(r);const e=Array.from(m.keys()).filter((e=>!b.includes(e)));if(e.forEach((e=>m.delete(e))),f.current=d.filter((t=>{const n=sm(t);return n===r||e.includes(n)})),!p.size){if(!1===c.current)return;l(),o&&o()}};g=(0,u.jsx)(im,{isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s,children:n},sm(n)),p.set(r,g)}h.splice(i,0,g)})),h=h.map((e=>{const t=e.key;return p.has(t)?e:(0,u.jsx)(im,{isPresent:!0,presenceAffectsLayout:a,mode:s,children:e},sm(e))})),(0,u.jsx)(u.Fragment,{children:p.size?h:h.map((e=>(0,n.cloneElement)(e)))})};var cm=r(961),[um,dm]=(0,m.q)({strict:!1,name:"PortalContext"}),hm="chakra-portal",pm=e=>(0,u.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),fm=e=>{const{appendToParentPortal:t,children:r}=e,[o,i]=(0,n.useState)(null),a=(0,n.useRef)(null),[,s]=(0,n.useState)({});(0,n.useEffect)((()=>s({})),[]);const l=dm(),c=v();O((()=>{if(!o)return;const e=o.ownerDocument,r=t&&null!=l?l:e.body;if(!r)return;a.current=e.createElement("div"),a.current.className=hm,r.appendChild(a.current),s({});const n=a.current;return()=>{r.contains(n)&&r.removeChild(n)}}),[o]);const d=(null==c?void 0:c.zIndex)?(0,u.jsx)(pm,{zIndex:null==c?void 0:c.zIndex,children:r}):r;return a.current?(0,cm.createPortal)((0,u.jsx)(um,{value:a.current,children:d}),a.current):(0,u.jsx)("span",{ref:e=>{e&&i(e)}})},mm=e=>{const{children:t,containerRef:r,appendToParentPortal:o}=e,i=r.current,a=null!=i?i:"undefined"!=typeof window?document.body:void 0,s=(0,n.useMemo)((()=>{const e=null==i?void 0:i.ownerDocument.createElement("div");return e&&(e.className=hm),e}),[i]),[,l]=(0,n.useState)({});return O((()=>l({})),[]),O((()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}}),[s,a]),a&&s?(0,cm.createPortal)((0,u.jsx)(um,{value:o?s:null,children:t}),s):null};function gm(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,u.jsx)(mm,{containerRef:r,...n}):(0,u.jsx)(fm,{...n})}gm.className=hm,gm.selector=".chakra-portal",gm.displayName="Portal";var[vm,ym]=(0,m.q)({name:"ToastOptionsContext",strict:!1}),bm=e=>{const t=(0,n.useSyncExternalStore)(Qf.subscribe,Qf.getState,Qf.getState),{motionVariants:r,component:o=$f,portalProps:i}=e,a=Object.keys(t).map((e=>{const n=t[e];return(0,u.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Qa(e),children:(0,u.jsx)(lm,{initial:!1,children:n.map((e=>(0,u.jsx)(o,{motionVariants:r,...e},e.id)))})},e)}));return(0,u.jsx)(gm,{...i,children:a})},xm=e=>function({children:t,theme:r=e,toastOptions:n,...o}){return(0,u.jsxs)(F,{theme:r,...o,children:[(0,u.jsx)(vm,{value:null==n?void 0:n.defaultOptions,children:t}),(0,u.jsx)(bm,{...n})]})},wm=xm(Ya),Sm=(xm(Ga),["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"]);var km=r(8394);function Cm(e){return"function"==typeof e}var _m=e=>function(...t){let r=[...t],n=t[t.length-1];var o;return o=n,(0,Le.Gv)(o)&&Sm.every((e=>Object.prototype.hasOwnProperty.call(o,e)))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce(((e,t)=>t(e)),t)}(...r.map((e=>t=>Cm(e)?e(t):function(...e){return km({},...e,Pm)}(t,e))))(n)},Em=_m(Ya);_m(Ga);function Pm(e,t,r,n){if((Cm(e)||Cm(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=Cm(e)?e(...r):e,o=Cm(t)?t(...r):t;return km({},n,o,Pm)}}var Tm=Em({fonts:{body:"Merriweather, Georgia, Cambria, Times New Roman"}});const Am=e=>{let{element:t,resetCSS:r=!0,portalZIndex:o}=e;return n.createElement(wm,{theme:Tm,resetCSS:r,portalZIndex:o},t)},Rm=(e,t)=>{let{element:r}=e;return n.createElement(Am,Object.assign({element:r},t))}},3634:function(e,t,r){"use strict";r.r(t),r.d(t,{onClientEntry:function(){return d},wrapRootElement:function(){return h}});var n=r(4506),o=r(6540),i=r(8154);const a=e=>{let{hrefs:t}=e;const r=[];return t.forEach((e=>{const t=o.createElement("noscript",{key:`noscript-${e}`},`<link rel="stylesheet" href="${e}" />`),n=o.createElement("link",{key:`stylesheet-${e}`,rel:"stylesheet",media:"all",href:e});r.push([t,n])})),o.createElement(i.m,null,r)},s="async",l="body",c=e=>{const t=[];return e.forEach((e=>{let{name:r}=e;return Array.isArray(r)?t.push.apply(t,(0,n.A)(r)):t.push(r)})),t},u=e=>{let{fontNames:t,scope:r}=e;const n=t&&Boolean(t.length),o="html"===r?"documentElement":"body",i="fonts"in document;function a(){u("all")}function s(e){e.forEach((e=>{u(e.family)}))}function l(e){return document.fonts.load(`1rem ${e}`).then(s).catch(c)}function c(){t.forEach(u)}function u(e){var t;document[o].classList.add(`wf-${t=e,t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g).filter(Boolean).map((e=>e.toLowerCase())).join("-")}`)}if(!i)return d="Font loading API not available",console.info(`document.fonts API error: ${d}`),console.info("Replacing fonts instantly. FOUT handling failed."),void c();var d;n&&i&&function(){const e=t.map(l);Promise.all(e).then(a).catch(c)}()},d=(e,t)=>{let{custom:r=[],web:o=[],enableListener:i=!1,scope:a=l}=t;if(!i)return;const s=[].concat((0,n.A)(r),(0,n.A)(o)),d=c(s);u({fontNames:d,scope:a})},h=(e,t)=>{let{element:r}=e,{custom:i=[],web:l=[],mode:u=s}=t;if("async"!==u)return r;const d=[].concat((0,n.A)(i),(0,n.A)(l)),h=(e=>e.map((e=>{let{file:t}=e;return t})))(d),p=c(d),f=Boolean(p.length);return o.createElement(o.Fragment,null,f&&o.createElement(a,{hrefs:h}),r)}},7914:function(e,t,r){"use strict";r.r(t),r.d(t,{onRouteUpdate:function(){return n}});r(4794),r(4598);const n=function(e,t){let{location:r}=e}},4598:function(e,t,r){"use strict";var n=r(4794)},6774:function(e,t){"use strict";var r=0,n=function(e){var t=window.decodeURI(e.replace("#",""));if(""!==t){var n=document.getElementById(t);if(n){var o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,i=document.documentElement.clientTop||document.body.clientTop||0,a=window.getComputedStyle(n),s=a.getPropertyValue("scroll-margin-top")||a.getPropertyValue("scroll-snap-margin-top")||"0px";return n.getBoundingClientRect().top+o-parseInt(s,10)-i-r}}return null};t.onInitialClientRender=function(e,t){t.offsetY&&(r=t.offsetY),requestAnimationFrame((function(){var e=n(window.location.hash);null!==e&&window.scrollTo(0,e)}))},t.shouldUpdateScroll=function(e){var t=e.routerProps.location,r=n(t.hash);return null===r||[0,r]}},7688:function(e,t){"use strict";t.DEFAULT_OPTIONS={maxWidth:650,wrapperStyle:"",backgroundColor:"white",linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,withWebp:!1,withAvif:!1,tracedSVG:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1},t.EMPTY_ALT="GATSBY_EMPTY_ALT",t.imageClass="gatsby-resp-image-image",t.imageWrapperClass="gatsby-resp-image-wrapper",t.imageBackgroundClass="gatsby-resp-image-background-image"},5616:function(e,t,r){"use strict";var n=r(7688),o=n.DEFAULT_OPTIONS,i=n.imageClass,a=n.imageBackgroundClass,s=n.imageWrapperClass;t.onRouteUpdate=function(e,t){for(var r=Object.assign({},o,t),n=document.querySelectorAll("."+s),l=function(){var e=n[c],t=e.querySelector("."+a),o=e.querySelector("."+i),s=function(){t.style.transition="opacity 0.5s 0.5s",o.style.transition="opacity 0.5s",l()},l=function e(){t.style.opacity=0,o.style.opacity=1,o.style.color="inherit",o.style.boxShadow="inset 0px 0px 0px 400px "+r.backgroundColor,o.removeEventListener("load",s),o.removeEventListener("error",e)};o.style.opacity=0,o.addEventListener("load",s),o.addEventListener("error",l),o.complete&&l()},c=0;c<n.length;c++)l()}},9046:function(e,t,r){"use strict";r.r(t)},4146:function(e,t,r){"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var o=p(r);o&&o!==f&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var y=h(r,v);try{c(t,v,y)}catch(b){}}}}return t}},311:function(e){"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},8394:function(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",c="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[i]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,x=b&&e&&!e.nodeType&&e,w=x&&x.exports===b,S=w&&g.process,k=function(){try{var e=x&&x.require&&x.require("util").types;return e||S&&S.binding&&S.binding("util")}catch(t){}}(),C=k&&k.isTypedArray;var _,E,P,T=Array.prototype,A=Function.prototype,R=Object.prototype,j=y["__core-js_shared__"],M=A.toString,$=R.hasOwnProperty,O=(_=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",D=R.toString,z=M.call(Object),B=RegExp("^"+M.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=w?y.Buffer:void 0,I=y.Symbol,F=y.Uint8Array,V=L?L.allocUnsafe:void 0,H=(E=Object.getPrototypeOf,P=Object,function(e){return E(P(e))}),N=Object.create,W=R.propertyIsEnumerable,U=T.splice,q=I?I.toStringTag:void 0,Y=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),G=L?L.isBuffer:void 0,X=Math.max,K=Date.now,J=be(y,"Map"),Q=be(Object,"create"),Z=function(){function e(){}return function(t){if(!je(t))return{};if(N)return N(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e){var t=this.__data__=new te(e);this.size=t.size}function oe(e,t){var r=Ee(e),n=!r&&_e(e),o=!r&&!n&&Te(e),i=!r&&!n&&!o&&$e(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!$.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,l))||s.push(c);return s}function ie(e,t,r){(void 0!==r&&!Ce(e[t],r)||void 0===r&&!(t in e))&&le(e,t,r)}function ae(e,t,r){var n=e[t];$.call(e,t)&&Ce(n,r)&&(void 0!==r||t in e)||le(e,t,r)}function se(e,t){for(var r=e.length;r--;)if(Ce(e[r][0],t))return r;return-1}function le(e,t,r){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}ee.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:$.call(t,e)},ee.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?n:t,this},te.prototype.clear=function(){this.__data__=[],this.size=0},te.prototype.delete=function(e){var t=this.__data__,r=se(t,e);return!(r<0)&&(r==t.length-1?t.pop():U.call(t,r,1),--this.size,!0)},te.prototype.get=function(e){var t=this.__data__,r=se(t,e);return r<0?void 0:t[r][1]},te.prototype.has=function(e){return se(this.__data__,e)>-1},te.prototype.set=function(e,t){var r=this.__data__,n=se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(J||te),string:new ee}},re.prototype.delete=function(e){var t=ye(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return ye(this,e).get(e)},re.prototype.has=function(e){return ye(this,e).has(e)},re.prototype.set=function(e,t){var r=ye(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ne.prototype.clear=function(){this.__data__=new te,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof te){var n=r.__data__;if(!J||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new re(n)}return r.set(e,t),this.size=r.size,this};var ce,ue=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[ce?a:++n];if(!1===t(o[s],s,o))break}return e};function de(e){return null==e?void 0===e?h:c:q&&q in Object(e)?function(e){var t=$.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(i){}var o=D.call(e);n&&(t?e[q]=r:delete e[q]);return o}(e):function(e){return D.call(e)}(e)}function he(e){return Me(e)&&de(e)==i}function pe(e){return!(!je(e)||function(e){return!!O&&O in e}(e))&&(Ae(e)?B:p).test(function(e){if(null!=e){try{return M.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&$.call(e,n))&&r.push(n);return r}function me(e,t,r,n,o){e!==t&&ue(t,(function(i,a){if(o||(o=new ne),je(i))!function(e,t,r,n,o,i,a){var s=Se(e,r),l=Se(t,r),c=a.get(l);if(c)return void ie(e,r,c);var d=i?i(s,l,r+"",e,t,a):void 0,h=void 0===d;if(h){var p=Ee(l),f=!p&&Te(l),m=!p&&!f&&$e(l);d=l,p||f||m?Ee(s)?d=s:Me(x=s)&&Pe(x)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(s):f?(h=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=V?V(r):new e.constructor(r);return e.copy(n),n}(l,!0)):m?(h=!1,g=l,v=!0?(y=g.buffer,b=new y.constructor(y.byteLength),new F(b).set(new F(y)),b):g.buffer,d=new g.constructor(v,g.byteOffset,g.length)):d=[]:function(e){if(!Me(e)||de(e)!=u)return!1;var t=H(e);if(null===t)return!0;var r=$.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&M.call(r)==z}(l)||_e(l)?(d=s,_e(s)?d=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?le(r,s,l):ae(r,s,l)}return r}(e,Oe(e))}(s):je(s)&&!Ae(s)||(d=function(e){return"function"!=typeof e.constructor||we(e)?{}:Z(H(e))}(l))):h=!1}var g,v,y,b;var x;h&&(a.set(l,d),o(d,l,n,i,a),a.delete(l));ie(e,r,d)}(e,t,a,r,me,n,o);else{var s=n?n(Se(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),ie(e,a,s)}}),Oe)}function ge(e,t){return ke(function(e,t,r){return t=X(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=X(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Be),e+"")}var ve=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be;function ye(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return pe(r)?r:void 0}function xe(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&f.test(e))&&e>-1&&e%1==0&&e<t}function we(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function Se(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ke=function(e){var t=0,r=0;return function(){var n=K(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function Ce(e,t){return e===t||e!=e&&t!=t}var _e=he(function(){return arguments}())?he:function(e){return Me(e)&&$.call(e,"callee")&&!W.call(e,"callee")},Ee=Array.isArray;function Pe(e){return null!=e&&Re(e.length)&&!Ae(e)}var Te=G||function(){return!1};function Ae(e){if(!je(e))return!1;var t=de(e);return t==s||t==l||t==a||t==d}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var $e=C?function(e){return function(t){return e(t)}}(C):function(e){return Me(e)&&Re(e.length)&&!!m[de(e)]};function Oe(e){return Pe(e)?oe(e,!0):fe(e)}var De,ze=(De=function(e,t,r,n){me(e,t,r,n)},ge((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=De.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!je(r))return!1;var n=typeof t;return!!("number"==n?Pe(r)&&xe(t,r.length):"string"==n&&t in r)&&Ce(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&De(e,a,r,o)}return e})));function Be(e){return e}e.exports=ze},115:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},8154:function(e,t,r){"use strict";r.d(t,{m:function(){return pe}});var n,o,i,a,s=r(5556),l=r.n(s),c=r(2098),u=r.n(c),d=r(115),h=r.n(d),p=r(6540),f=r(8828),m=r.n(f),g="bodyAttributes",v="htmlAttributes",y="titleAttributes",b={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},x=(Object.keys(b).map((function(e){return b[e]})),"charset"),w="cssText",S="href",k="http-equiv",C="innerHTML",_="itemprop",E="name",P="property",T="rel",A="src",R="target",j={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M="defaultTitle",$="defer",O="encodeSpecialCharacters",D="onChangeClientState",z="titleTemplate",B=Object.keys(j).reduce((function(e,t){return e[j[t]]=t,e}),{}),L=[b.NOSCRIPT,b.SCRIPT,b.STYLE],I="data-react-helmet",F="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},V=function(){function e(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)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),H=Object.assign||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},N=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},W=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},U=function(e){var t=K(e,b.TITLE),r=K(e,z);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,M);return t||n||void 0},q=function(e){return K(e,D)||function(){}},Y=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return H({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[b.BASE]})).map((function(e){return e[b.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},X=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+F(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||r===T&&"canonical"===e[r].toLowerCase()||l===T&&"stylesheet"===e[l].toLowerCase()||(r=l),-1===t.indexOf(s)||s!==C&&s!==w&&s!==_||(r=s)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][c]&&(o[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=m()({},n[s],o[s]);n[s]=l}return e}),[]).reverse()},K=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},J=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout((function(){J(e)}),0)}),Q=function(e){return clearTimeout(e)},Z="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||J:r.g.requestAnimationFrame||J,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:r.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},re=null,ne=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,h=e.titleAttributes;ae(b.BODY,n),ae(b.HTML,o),ie(d,h);var p={baseTag:se(b.BASE,r),linkTags:se(b.LINK,i),metaTags:se(b.META,a),noscriptTags:se(b.NOSCRIPT,s),scriptTags:se(b.SCRIPT,c),styleTags:se(b.STYLE,u)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(f[e]=r),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,f,m)},oe=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){void 0!==e&&document.title!==e&&(document.title=oe(e)),ae(b.TITLE,t)},ae=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute(I),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)r.removeAttribute(i[d]);o.length===i.length?r.removeAttribute(I):r.getAttribute(I)!==a.join(",")&&r.setAttribute(I,a.join(","))}},se=function(e,t){var r=document.head||document.querySelector(b.HEAD),n=r.querySelectorAll(e+"["+I+"]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===C)r.innerHTML=t.innerHTML;else if(n===w)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute(I,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},le=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[j[r]||r]=e[r],t}),t)},ue=function(e,t,r){switch(e){case b.TITLE:return{toComponent:function(){return e=t.title,r=t.titleAttributes,(n={key:e})[I]=!0,o=ce(r,n),[p.createElement(b.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=le(r),i=oe(t);return o?"<"+e+" "+I+'="true" '+o+">"+W(i,n)+"</"+e+">":"<"+e+" "+I+'="true">'+W(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case g:case v:return{toComponent:function(){return ce(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})[I]=!0,n);return Object.keys(t).forEach((function(e){var r=j[e]||e;if(r===C||r===w){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),p.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===C||e===w)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+W(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===L.indexOf(e);return t+"<"+e+" "+I+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},de=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,h=e.titleAttributes;return{base:ue(b.BASE,t,n),bodyAttributes:ue(g,r,n),htmlAttributes:ue(v,o,n),link:ue(b.LINK,i,n),meta:ue(b.META,a,n),noscript:ue(b.NOSCRIPT,s,n),script:ue(b.SCRIPT,l,n),style:ue(b.STYLE,c,n),title:ue(b.TITLE,{title:d,titleAttributes:h},n)}},he=u()((function(e){return{baseTag:G([S,R],e),bodyAttributes:Y(g,e),defer:K(e,$),encode:K(e,O),htmlAttributes:Y(v,e),linkTags:X(b.LINK,[T,S],e),metaTags:X(b.META,[E,x,k,P,_],e),noscriptTags:X(b.NOSCRIPT,[C],e),onChangeClientState:q(e),scriptTags:X(b.SCRIPT,[A,C],e),styleTags:X(b.STYLE,[w],e),title:U(e),titleAttributes:Y(y,e)}}),(function(e){re&&ee(re),e.defer?re=Z((function(){ne(e,(function(){re=null}))})):(ne(e),re=null)}),de)((function(){return null})),pe=(o=he,a=i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!h()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case b.SCRIPT:case b.NOSCRIPT:return{innerHTML:t};case b.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return H({},n,((t={})[r.type]=[].concat(n[r.type]||[],[H({},o,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case b.TITLE:return H({},o,((t={})[n.type]=a,t.titleAttributes=H({},i),t));case b.BODY:return H({},o,{bodyAttributes:H({},i)});case b.HTML:return H({},o,{htmlAttributes:H({},i)})}return H({},o,((r={})[n.type]=H({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=H({},t);return Object.keys(e).forEach((function(t){var n;r=H({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return p.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[B[r]||r]=e[r],t}),t)}(N(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case b.LINK:case b.META:case b.NOSCRIPT:case b.SCRIPT:case b.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=N(e,["children"]),n=H({},r);return t&&(n=this.mapChildrenToProps(t,n)),p.createElement(o,n)},V(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(p.Component),i.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);pe.renderStatic=pe.rewind},2799:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=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 u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},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)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},4363:function(e,t,r){"use strict";e.exports=r(2799)},207:function(e,t,r){"use strict";var n=r(6540),o={stream:!0},i=new Map,a=Symbol.for("react.element"),s=Symbol.for("react.lazy"),l=Symbol.for("react.default_value"),c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function u(e,t,r){this._status=e,this._value=t,this._response=r}function d(e){switch(e._status){case 3:return e._value;case 1:var t=JSON.parse(e._value,e._response._fromJSON);return e._status=3,e._value=t;case 2:for(var n=(t=e._value).chunks,o=0;o<n.length;o++){var a=i.get(n[o]);if(null!==a)throw a}return n=r(t.id),t="*"===t.name?n:""===t.name?n.__esModule?n.default:n:n[t.name],e._status=3,e._value=t;case 0:throw e;default:throw e._value}}function h(){return d(v(this,0))}function p(e,t){return new u(3,t,e)}function f(e){if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}function m(e,t){if(0===e._status){var r=e._value;e._status=4,e._value=t,f(r)}}function g(e,t){e._chunks.forEach((function(e){m(e,t)}))}function v(e,t){var r=e._chunks,n=r.get(t);return n||(n=new u(0,null,e),r.set(t,n)),n}function y(e){g(e,Error("Connection closed."))}function b(e,t){if(""!==t){var o=t[0],a=t.indexOf(":",1),s=parseInt(t.substring(1,a),16);switch(a=t.substring(a+1),o){case"J":(o=(t=e._chunks).get(s))?0===o._status&&(e=o._value,o._status=1,o._value=a,f(e)):t.set(s,new u(1,a,e));break;case"M":o=(t=e._chunks).get(s),a=JSON.parse(a,e._fromJSON);var d=e._bundlerConfig;d=(a=d?d[a.id][a.name]:a).chunks;for(var h=0;h<d.length;h++){var g=d[h];if(void 0===i.get(g)){var v=r.e(g),y=i.set.bind(i,g,null),b=i.set.bind(i,g);v.then(y,b),i.set(g,v)}}o?0===o._status&&(e=o._value,o._status=2,o._value=a,f(e)):t.set(s,new u(2,a,e));break;case"P":e._chunks.set(s,p(e,function(e){return c[e]||(c[e]=n.createServerContext(e,l)),c[e]}(a).Provider));break;case"S":o=JSON.parse(a),e._chunks.set(s,p(e,Symbol.for(o)));break;case"E":t=JSON.parse(a),(o=Error(t.message)).stack=t.stack,(a=(t=e._chunks).get(s))?m(a,o):t.set(s,new u(4,o,e));break;default:throw Error("Error parsing the data. It's probably an error code or network corruption.")}}}function x(e){return function(t,r){return"string"==typeof r?function(e,t,r){switch(r[0]){case"$":return"$"===r?a:"$"===r[1]||"@"===r[1]?r.substring(1):d(e=v(e,parseInt(r.substring(1),16)));case"@":return e=v(e,parseInt(r.substring(1),16)),{$$typeof:s,_payload:e,_init:d}}return r}(e,0,r):"object"==typeof r&&null!==r?r[0]===a?{$$typeof:a,type:r[1],key:r[2],ref:null,props:r[3],_owner:null}:r:r}}function w(e){var t=new TextDecoder;return(e={_bundlerConfig:e,_chunks:new Map,readRoot:h,_partialRow:"",_stringDecoder:t})._fromJSON=x(e),e}function S(e,t){function r(t){g(e,t)}var n=t.getReader();n.read().then((function t(i){var a=i.value;if(!i.done){i=a,a=e._stringDecoder;for(var s=i.indexOf(10);-1<s;){var l=e._partialRow,c=i.subarray(0,s);c=a.decode(c),b(e,l+c),e._partialRow="",s=(i=i.subarray(s+1)).indexOf(10)}return e._partialRow+=a.decode(i,o),n.read().then(t,r)}y(e)}),r)}u.prototype.then=function(e){0===this._status?(null===this._value&&(this._value=[]),this._value.push(e)):e()},t.createFromReadableStream=function(e,t){return S(t=w(t&&t.moduleMap?t.moduleMap:null),e),t}},8163:function(e,t,r){"use strict";e.exports=r(207)},2098:function(e,t,r){"use strict";var n,o=r(6540),i=(n=o)&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,r){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==r&&"function"!=typeof r)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):r&&(l=r(l))}var d=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return i.createElement(n,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a(d,"canUseDOM",s),d}}},2475:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},4634:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6221:function(e,t,r){var n=r(5636);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5636:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:r=[],...n}=e||{},o=JSON.stringify(n,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t)));return["!(function(w,p,f,c){",Object.keys(n).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",r.length>0?`.concat(${JSON.stringify(r)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener("pt0",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},8168: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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:function(){return n}})},7387:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},3662: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},n(e,t)}r.d(t,{A:function(){return n}})},4506:function(e,t,r){"use strict";function n(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 o(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.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)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,{A:function(){return o}})},763:function(e,t,r){"use strict";r.d(t,{G6:function(){return i},Ig:function(){return o}});var n=r(6540),o=(0,n.createContext)({});function i(){const e=(0,n.useContext)(o);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}o.displayName="ColorModeContext"},61:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(6540);function o(e={}){const{name:t,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;const s=(0,n.useContext)(l);if(!s&&r){const r=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},l]}},1295:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(6540);function o(e,t=[]){const r=(0,n.useRef)(e);return(0,n.useEffect)((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}},9857:function(e,t,r){"use strict";r.d(t,{Gv:function(){return o},Hj:function(){return l},Jg:function(){return i},cx:function(){return n},sE:function(){return s}});var n=(...e)=>e.filter(Boolean).join(" ");function o(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function i(e,...t){return a(e)?e(...t):e}var a=e=>"function"==typeof e,s=e=>e?"":void 0;function l(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}},4515:function(e,t,r){"use strict";r.d(t,{AH:function(){return Fe},Dt:function(){return He},H2:function(){return Ve},HU:function(){return ze},MN:function(){return Ye},Vg:function(){return ne},YU:function(){return Ne},gd:function(){return je},lL:function(){return oe},q8:function(){return Oe},uB:function(){return qe}});var n=r(9857),o=r(8394),i=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,a=(e,t)=>r=>{const o=String(t),a=(e=>/!(important)?$/.test(e))(o),s=i(o),l=e?`${e}.${s}`:s;let c=(0,n.Gv)(r.__cssMap)&&l in r.__cssMap?r.__cssMap[l].varRef:t;return c=i(c),a?`${c} !important`:c};function s(e){const{scale:t,transform:r,compose:n}=e;return(e,o)=>{var i;const s=a(t,e)(o);let l=null!=(i=null==r?void 0:r(s,o))?i:s;return n&&(l=n(l,o)),l}}var l=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function c(e,t){return r=>{const n={property:r,scale:e};return n.transform=s({scale:e,transform:t}),n}}var u=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t;var d=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var h={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},p={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var f={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},g=new Set(Object.values(m)),v=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),y=e=>e.trim();var b=e=>"string"==typeof e&&e.includes("(")&&e.includes(")");var x=e=>t=>`${e}(${t})`,w={filter(e){return"auto"!==e?e:h},backdropFilter(e){return"auto"!==e?e:p},ring(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(w.px(e))},bgClip(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...d].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...d].join(" "):e},vh(e){return"$100vh"===e?"var(--chakra-vh)":e},px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"==typeof e?`${e}px`:e},fraction(e){return"number"!=typeof e||e>1?e:100*e+"%"},float(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||v.has(e))return e;if(!b(e)&&!v.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],o=null==r?void 0:r[2];if(!n||!o)return e;const i=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=o.split(",").map(y).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in m?m[a]:a;return s.unshift(l),`${i}(${s.map((e=>{if(g.has(e))return e;const r=e.indexOf(" "),[n,o]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],i=b(o)?o:o&&o.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:e=>x("hue-rotate")(w.degree(e)),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage(e){if(null==e)return e;return b(e)||v.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=null!=(t=f[e])?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},S={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",w.gradient),radii:c("radii",w.px),space:c("space",l(w.vh,w.px)),spaceT:c("space",l(w.vh,w.px)),degreeT(e){return{property:e,transform:w.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:s({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:c("sizes",l(w.vh,w.px)),sizesT:c("sizes",l(w.vh,w.fraction)),shadows:c("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:u(t),transform:r?s({scale:r,compose:n}):n}},blur:c("blur",w.blur)},k={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:w.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:w.bgClip}};Object.assign(k,{bgImage:k.backgroundImage,bgImg:k.backgroundImage});var C={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(C,{rounded:C.borderRadius,roundedTop:C.borderTopRadius,roundedTopLeft:C.borderTopLeftRadius,roundedTopRight:C.borderTopRightRadius,roundedTopStart:C.borderStartStartRadius,roundedTopEnd:C.borderStartEndRadius,roundedBottom:C.borderBottomRadius,roundedBottomLeft:C.borderBottomLeftRadius,roundedBottomRight:C.borderBottomRightRadius,roundedBottomStart:C.borderEndStartRadius,roundedBottomEnd:C.borderEndEndRadius,roundedLeft:C.borderLeftRadius,roundedRight:C.borderRightRadius,roundedStart:C.borderInlineStartRadius,roundedEnd:C.borderInlineEndRadius,borderStart:C.borderInlineStart,borderEnd:C.borderInlineEnd,borderTopStartRadius:C.borderStartStartRadius,borderTopEndRadius:C.borderStartEndRadius,borderBottomStartRadius:C.borderEndStartRadius,borderBottomEndRadius:C.borderEndEndRadius,borderStartRadius:C.borderInlineStartRadius,borderEndRadius:C.borderInlineEndRadius,borderStartWidth:C.borderInlineStartWidth,borderEndWidth:C.borderInlineEndWidth,borderStartColor:C.borderInlineStartColor,borderEndColor:C.borderInlineEndColor,borderStartStyle:C.borderInlineStartStyle,borderEndStyle:C.borderInlineEndStyle});var _={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},E={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(E,{shadow:E.boxShadow});var P={filter:{transform:w.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",w.brightness),contrast:S.propT("--chakra-contrast",w.contrast),hueRotate:S.propT("--chakra-hue-rotate",w.hueRotate),invert:S.propT("--chakra-invert",w.invert),saturate:S.propT("--chakra-saturate",w.saturate),dropShadow:S.propT("--chakra-drop-shadow",w.dropShadow),backdropFilter:{transform:w.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",w.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",w.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",w.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",w.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",w.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:w.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(T,{flexDir:T.flexDirection});var A={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},R={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:w.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},j={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;const i=`@media screen and (min-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;const i=`@media screen and (max-width: ${null!=(o=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",w.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(j,{w:j.width,h:j.height,minW:j.minWidth,maxW:j.maxWidth,minH:j.minHeight,maxH:j.maxHeight,overscroll:j.overscrollBehavior,overscrollX:j.overscrollBehaviorX,overscrollY:j.overscrollBehaviorY});var M={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")};var $=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})((function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e})),O={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},D={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},z=(e,t,r)=>{const n={},o=$(e,t,{});for(const i in o){i in r&&null!=r[i]||(n[i]=o[i])}return n},B={srOnly:{transform(e){return!0===e?O:"focusable"===e?D:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>z(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>z(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>z(t,e,r)}},L={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(L,{insetStart:L.insetInlineStart,insetEnd:L.insetInlineEnd});var I={ring:{transform:w.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},F={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(F,{m:F.margin,mt:F.marginTop,mr:F.marginRight,me:F.marginInlineEnd,marginEnd:F.marginInlineEnd,mb:F.marginBottom,ml:F.marginLeft,ms:F.marginInlineStart,marginStart:F.marginInlineStart,mx:F.marginX,my:F.marginY,p:F.padding,pt:F.paddingTop,py:F.paddingY,px:F.paddingX,pb:F.paddingBottom,pl:F.paddingLeft,ps:F.paddingInlineStart,paddingStart:F.paddingInlineStart,pr:F.paddingRight,pe:F.paddingInlineEnd,paddingEnd:F.paddingInlineEnd});var V={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},H={clipPath:!0,transform:S.propT("transform",w.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},N={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},W={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",w.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},U={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function q(e){return(0,n.Gv)(e)&&e.reference?e.reference:String(e)}var Y=(e,...t)=>t.map(q).join(` ${e} `).replace(/calc/g,""),G=(...e)=>`calc(${Y("+",...e)})`,X=(...e)=>`calc(${Y("-",...e)})`,K=(...e)=>`calc(${Y("*",...e)})`,J=(...e)=>`calc(${Y("/",...e)})`,Q=e=>{const t=q(e);return null==t||Number.isNaN(parseFloat(t))?K(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Z=Object.assign((e=>({add:(...t)=>Z(G(e,...t)),subtract:(...t)=>Z(X(e,...t)),multiply:(...t)=>Z(K(e,...t)),divide:(...t)=>Z(J(e,...t)),negate:()=>Z(Q(e)),toString:()=>e.toString()})),{add:G,subtract:X,multiply:K,divide:J,negate:Q});function ee(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function te(e,t){return`var(${e}${t?`, ${t}`:""})`}function re(e,t=""){return ee(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function ne(e,t,r){const n=re(e,r);return{variable:n,reference:te(n,t)}}function oe(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,o]=n;r[t]=ne(`${e}-${t}`,o)}else r[n]=ne(`${e}-${n}`);return r}function ie(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function ae(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var se=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,le=e=>Object.fromEntries(Object.entries(e).sort(se));function ce(e){const t=le(e);return Object.assign(Object.values(t),t)}function ue(e){var t;if(!e)return e;e=null!=(t=ae(e))?t:e;return"number"==typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`))}function de(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ae(e)})`),t&&r.push("and",`(max-width: ${ae(t)})`),r.join(" ")}function he(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=ce(e),o=Object.entries(e).sort(se).map((([e,t],r,n)=>{var o;let[,i]=null!=(o=n[r+1])?o:[];return i=parseFloat(i)>0?ue(i):void 0,{_minW:ue(t),breakpoint:e,minW:t,maxW:i,maxWQuery:de(null,i),minWQuery:de(t),minMaxQuery:de(t,i)}})),i=function(e){const t=Object.keys(le(e));return new Set(t)}(e),a=Array.from(i.values());return{keys:i,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>i.has(e)))},asObject:le(e),asArray:ce(e),details:o,get(e){return o.find((t=>t.breakpoint===e))},media:[null,...r.map((e=>de(e))).slice(1)],toArrayValue(e){if(!(0,n.Gv)(e))throw new Error("toArrayValue: value must be an object");const t=a.map((t=>{var r;return null!=(r=e[t])?r:null}));for(;null===ie(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,r)=>{const n=a[r];return null!=n&&null!=t&&(e[n]=t),e}),{})}}}var pe=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,fe=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,me=(e,t)=>`${e}:focus-visible ${t}`,ge=(e,t)=>`${e}:focus-within ${t}`,ve=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ye=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,be=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,xe=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,we=(e,t)=>`${e}:placeholder-shown ${t}`,Se=e=>Ce((t=>e(t,"&")),"[role=group]","[data-group]",".group"),ke=e=>Ce((t=>e(t,"~ &")),"[data-peer]",".peer"),Ce=(e,...t)=>t.map(e).join(", "),_e={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Se(pe),_peerHover:ke(pe),_groupFocus:Se(fe),_peerFocus:ke(fe),_groupFocusVisible:Se(me),_peerFocusVisible:ke(me),_groupActive:Se(ve),_peerActive:ke(ve),_groupDisabled:Se(ye),_peerDisabled:ke(ye),_groupInvalid:Se(be),_peerInvalid:ke(be),_groupChecked:Se(xe),_peerChecked:ke(xe),_groupFocusWithin:Se(ge),_peerFocusWithin:ke(ge),_peerPlaceholderShown:ke(we),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Ee=Object.keys(_e);function Pe(e,t){return ne(String(e).replace(/\./g,"-"),void 0,t)}function Te(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[l,c]of Object.entries(r)){const u=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,u];if(null==n?void 0:n(r,d))return t(r,i);s[u]=e(c,d)}return s}return t(r,i)}(e)}var Ae=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];var Re=e=>Ee.includes(e)||"default"===e;function je(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}(e),i=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,Ae)}(r),a=function(e){return e.semanticTokens}(r),s=function({tokens:e,semanticTokens:t}){const r={};return Te(e,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})})),Te(t,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(Re)}),r}({tokens:i,semanticTokens:a}),l=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:c,cssVars:u}=function(e,t){let r={};const i={};for(const[a,s]of Object.entries(e)){const{isSemantic:l,value:c}=s,{variable:u,reference:d}=Pe(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){const e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,o=Z.negate(c),s=Z.negate(d);i[n]={value:o,var:u,varRef:s}}r[u]=c,i[a]={value:c,var:u,varRef:d};continue}const h=r=>{const n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;const{reference:o}=Pe(n,null==t?void 0:t.cssVarPrefix);return o},p=(0,n.Gv)(c)?c:{default:c};r=o(r,Object.entries(p).reduce(((e,[t,r])=>{var n,o;if(!r)return e;const i=h(`${r}`);return"default"===t?(e[u]=i,e):(e[null!=(o=null==(n=_e)?void 0:n[t])?o:t]={[u]:i},e)}),{})),i[a]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:i}}(s,{cssVarPrefix:l});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...u},__cssMap:c,__breakpoints:he(r.breakpoints)}),r}var Me=o({},k,C,_,T,j,P,I,R,A,B,L,E,F,U,W,V,H,M,N),$e=Object.assign({},F,j,T,A,L),Oe=(Object.keys($e),[...Object.keys(Me),...Ee]),De={...Me,..._e},ze=e=>e in De;var Be=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Le=(e,t)=>{var r,n;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(n=!0,r+=i):")"===i?(n=!1,r+=i):","!==i||n?r+=i:(t.push(r),r="")}return r=r.trim(),r&&t.push(r),t}(t);return t=null!=(n=null!=(r=o(a))?r:i(s))?n:i(t)};function Ie(e){const{configs:t={},pseudos:r={},theme:i}=e,a=(e,s=!1)=>{var l,c,u;const d=(0,n.Jg)(e,i),h=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:o,media:i}=t.__breakpoints,a={};for(const s in e){let l=(0,n.Jg)(e[s],t);if(null==l)continue;if(l=(0,n.Gv)(l)&&r(l)?o(l):l,!Array.isArray(l)){a[s]=l;continue}const c=l.slice(0,i.length).length;for(let e=0;e<c;e+=1){const t=null==i?void 0:i[e];t?(a[t]=a[t]||{},null!=l[e]&&(a[t][s]=l[e])):a[s]=l[e]}}return a})(d)(i);let p={};for(let f in h){const e=h[f];let m=(0,n.Jg)(e,i);f in r&&(f=r[f]),Be(f,m)&&(m=Le(i,m));let g=t[f];if(!0===g&&(g={property:f}),(0,n.Gv)(m)){p[f]=null!=(l=p[f])?l:{},p[f]=o({},p[f],a(m,!0));continue}let v=null!=(u=null==(c=null==g?void 0:g.transform)?void 0:c.call(g,m,i,d))?u:m;v=(null==g?void 0:g.processResult)?a(v,!0):v;const y=(0,n.Jg)(null==g?void 0:g.property,i);if(!s&&(null==g?void 0:g.static)){const e=(0,n.Jg)(g.static,i);p=o({},p,e)}if(y&&Array.isArray(y))for(const t of y)p[t]=v;else y?"&"===y&&(0,n.Gv)(v)?p=o({},p,v):p[y]=v:(0,n.Gv)(v)?p=o({},p,v):p[f]=v}return p};return a}var Fe=e=>t=>Ie({theme:t,pseudos:_e,configs:Me})(e);function Ve(e){return e}function He(e){return e}function Ne(e){return{definePartsStyle(e){return e},defineMultiStyleConfig(t){return{parts:e,...t}}}}function We(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}function Ue(e){const t=e.__breakpoints;return function(e,r,i,a){var s,l;if(!t)return;const c={},u=function(e,t){return Array.isArray(e)?e:(0,n.Gv)(e)?t(e):null!=e?[e]:void 0}(i,t.toArrayValue);if(!u)return c;const d=u.length,h=1===d,p=!!e.parts;for(let f=0;f<d;f++){const i=t.details[f],d=t.details[We(u,f)],m=de(i.minW,null==d?void 0:d._minW),g=(0,n.Jg)(null==(s=e[r])?void 0:s[u[f]],a);g&&(p?null==(l=e.parts)||l.forEach((e=>{o(c,{[e]:h?g[e]:{[m]:g[e]}})})):p?c[m]=g:h?o(c,g):c[m]=g)}return c}}function qe(e){return t=>{var r;const{variant:i,size:a,theme:s}=t,l=Ue(s);return o({},(0,n.Jg)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",i,t))}}function Ye(e){return function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(e,["styleConfig","size","variant","colorScheme"])}},7484:function(e,t,r){"use strict";r.d(t,{o5:function(){return p},Vl:function(){return h}});var n=r(2977),o=r(6540);var i=r(763);function a(){return{...(0,i.G6)(),theme:function(){const e=(0,o.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()}}var s=r(4515),l=r(4159),c=r(8394),u=r(115);function d(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:d,colorMode:h}=a(),p=e?(0,l.rY)(d,`components.${e}`):void 0,f=n||p,m=c({theme:d,colorMode:h},null!=(r=null==f?void 0:f.defaultProps)?r:{},(0,l.TB)((0,l.cJ)(i,["children"]))),g=(0,o.useRef)({});if(f){const e=(0,s.uB)(f)(m);u(g.current,e)||(g.current=e)}return g.current}function h(e,t={}){return d(e,t)}function p(e,t={}){return d(e,t)}},3720:function(e,t,r){"use strict";r.d(t,{B:function(){return A}});var n=r(4515),o=new Set([...n.q8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function a(e){return i.has(e)||!o.has(e)}var s=r(763),l=r(4159),c=r(7311);var u,d=r(8168),h=r(6540),p=r(6289),f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,p.A)((function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),g=r(2977),v=r(41),y=r(2142),b=r(1287),x=m,w=function(e){return"theme"!==e},S=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?x:w},k=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},C=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,v.SF)(t,r,n),(0,b.s)((function(){return(0,v.sk)(t,r,n)})),null},_=(r(4634),function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var s=k(t,r,i),l=s||S(a),c=!l("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&p.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{0,p.push(u[0][0]);for(var f=u.length,m=1;m<f;m++)p.push(u[m],u[0][m])}var b=(0,g.w)((function(e,t,r){var n=c&&e.as||a,i="",u=[],d=e;if(null==e.theme){for(var f in d={},e)d[f]=e[f];d.theme=h.useContext(g.T)}"string"==typeof e.className?i=(0,v.Rk)(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=(0,y.J)(p.concat(u),t.registered,d);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var b=c&&void 0===s?S(n):l,x={};for(var w in e)c&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=i,x.ref=r,h.createElement(h.Fragment,null,h.createElement(C,{cache:t,serialized:m,isStringTag:"string"==typeof n}),h.createElement(n,x))}));return b.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=p,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(t,n){return e(t,(0,d.A)({},r,n,{shouldForwardProp:k(b,n,!0)})).apply(void 0,p)},b}}.bind());["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){_[e]=_(e)}));var E=null!=(u=_.default)?u:_,P=({baseStyle:e})=>t=>{const{theme:r,css:o,__css:i,sx:a,...s}=t,u=(0,l.I$)(s,((e,t)=>(0,n.HU)(t))),d=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(e in r&&delete r[e],r[e]=n[e]);return r}({},i,(0,c.Jg)(e,t),(0,l.TB)(u),a),h=(0,n.AH)(d)(t.theme);return o?[h,o]:h};function T(e,t){const{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=a);const o=P({baseStyle:r}),i=E(e,n)(o);return h.forwardRef((function(e,t){const{colorMode:r,forced:n}=(0,s.G6)();return h.createElement(i,{ref:t,"data-theme":n?r:void 0,...e})}))}var A=function(){const e=new Map;return new Proxy(T,{apply(e,t,r){return T(...r)},get(t,r){return e.has(r)||e.set(r,T(r)),e.get(r)}})}()},8855:function(e,t,r){"use strict";r.d(t,{R:function(){return o}});var n=r(6540);function o(e){return(0,n.forwardRef)(e)}},7311:function(e,t,r){"use strict";r.d(t,{Jg:function(){return n}});function n(e,...t){return"function"==typeof e?e(...t):e}},4159:function(e,t,r){"use strict";r.d(t,{I$:function(){return i},TB:function(){return a},cJ:function(){return n},rY:function(){return o}});r(8394);function n(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}var o=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})((function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e}));function i(e,t){const r={};return Object.keys(e).forEach((n=>{const o=e[n];t(o,n,e)&&(r[n]=o)})),r}var a=e=>i(e,(e=>null!=e))},6462:function(e,t,r){"use strict";var n;r.r(t),r.d(t,{BaseContext:function(){return g},Link:function(){return Y},Location:function(){return Q},LocationContext:function(){return v},LocationProvider:function(){return J},Match:function(){return ee},Redirect:function(){return C},Router:function(){return se},ServerLocation:function(){return Z},createHistory:function(){return u},createMemorySource:function(){return d},globalHistory:function(){return p},insertParams:function(){return A},isRedirect:function(){return w},match:function(){return P},navigate:function(){return f},pick:function(){return E},redirectTo:function(){return S},resolve:function(){return T},shallowCompare:function(){return I},startsWith:function(){return _},useBaseContext:function(){return y},useLocation:function(){return ce},useLocationContext:function(){return b},useMatch:function(){return he},useNavigate:function(){return ue},useParams:function(){return de},validateRedirect:function(){return R}});var o=r(6540),i=r(5556),a=r(311);function s(){return s=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},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}const c=e=>{const{search:t,hash:r,href:n,origin:o,protocol:i,host:a,hostname:s,port:l}=e.location;let{pathname:c}=e.location;return!c&&n&&h&&(c=new URL(n).pathname),{pathname:encodeURI(decodeURI(c)),search:t,hash:r,href:n,origin:o,protocol:i,host:a,hostname:s,port:l,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},u=(e,t)=>{let r=[],n=c(e),o=!1,i=()=>{};return{get location(){return n},get transitioning(){return o},_onTransitionComplete(){o=!1,i()},listen(t){r.push(t);const o=()=>{n=c(e),t({location:n,action:"POP"})};return e.addEventListener("popstate",o),()=>{e.removeEventListener("popstate",o),r=r.filter((e=>e!==t))}},navigate(t,{state:a,replace:l=!1}={}){if("number"==typeof t)e.history.go(t);else{a=s({},a,{key:Date.now()+""});try{o||l?e.history.replaceState(a,null,t):e.history.pushState(a,null,t)}catch(r){e.location[l?"replace":"assign"](t)}}n=c(e),o=!0;const u=new Promise((e=>i=e));return r.forEach((e=>e({location:n,action:"PUSH"}))),u}}},d=(e="/")=>{const t=e.indexOf("?"),r={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let n=0;const o=[r],i=[null];return{get location(){return o[n]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return o},get index(){return n},get state(){return i[n]},pushState(e,t,r){const[a,s=""]=r.split("?");n++,o.push({pathname:a,search:s.length?`?${s}`:s}),i.push(e)},replaceState(e,t,r){const[a,s=""]=r.split("?");o[n]={pathname:a,search:s},i[n]=e},go(e){const t=n+e;t<0||t>i.length-1||(n=t)}}}},h=!("undefined"==typeof window||!window.document||!window.document.createElement),p=u(h?window:d()),{navigate:f}=p;function m(e,t){return o.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=o.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):o.createContext(t)}const g=m("Base",{baseuri:"/",basepath:"/"}),v=m("Location"),y=()=>o.useContext(g),b=()=>o.useContext(v);function x(e){this.uri=e}const w=e=>e instanceof x,S=e=>{throw new x(e)};function k(e){const{to:t,replace:r=!0,state:n,noThrow:i,baseuri:a}=e;o.useEffect((()=>{Promise.resolve().then((()=>{const o=T(t,a);f(A(o,e),{replace:r,state:n})}))}),[]);const s=T(t,a);return i||S(A(s,e)),null}const C=e=>{const t=b(),{baseuri:r}=y();return o.createElement(k,s({},t,{baseuri:r},e))};C.propTypes={from:i.string,to:i.string.isRequired};const _=(e,t)=>e.substr(0,t.length)===t,E=(e,t)=>{let r,n;const[o]=t.split("?"),i=z(o),s=""===i[0],l=D(e);for(let c=0,u=l.length;c<u;c++){let e=!1;const o=l[c].route;if(o.default){n={route:o,params:{},uri:t};continue}const u=z(o.path),d={},h=Math.max(i.length,u.length);let p=0;for(;p<h;p++){const t=u[p],r=i[p];if($(t)){d[t.slice(1)||"*"]=i.slice(p).map(decodeURIComponent).join("/");break}if(void 0===r){e=!0;break}const n=j.exec(t);if(n&&!s){const e=-1===L.indexOf(n[1]);a(e,`<Router> dynamic segment "${n[1]}" is a reserved name. Please use a different name in path "${o.path}".`);const t=decodeURIComponent(r);d[n[1]]=t}else if(t!==r){e=!0;break}}if(!e){r={route:o,params:d,uri:"/"+i.slice(0,p).join("/")};break}}return r||n||null},P=(e,t)=>E([{path:e}],t),T=(e,t)=>{if(_(e,"/"))return e;const[r,n]=e.split("?"),[o]=t.split("?"),i=z(r),a=z(o);if(""===i[0])return B(o,n);if(!_(i[0],".")){const e=a.concat(i).join("/");return B(("/"===o?"":"/")+e,n)}const s=a.concat(i),l=[];for(let c=0,u=s.length;c<u;c++){const e=s[c];".."===e?l.pop():"."!==e&&l.push(e)}return B("/"+l.join("/"),n)},A=(e,t)=>{const[r,n=""]=e.split("?");let o="/"+z(r).map((e=>{const r=j.exec(e);return r?t[r[1]]:e})).join("/");const{location:{search:i=""}={}}=t,a=i.split("?")[1]||"";return o=B(o,n,a),o},R=(e,t)=>{const r=e=>M(e);return z(e).filter(r).sort().join("/")===z(t).filter(r).sort().join("/")},j=/^:(.+)/,M=e=>j.test(e),$=e=>e&&"*"===e[0],O=(e,t)=>({route:e,score:e.default?0:z(e.path).reduce(((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:M(t)?e+=2:$(t)?e-=5:e+=3,e)),0),index:t}),D=e=>e.map(O).sort(((e,t)=>e.score<t.score?1:e.score>t.score?-1:e.index-t.index)),z=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),B=(e,...t)=>e+((t=t.filter((e=>e&&e.length>0)))&&t.length>0?`?${t.join("&")}`:""),L=["uri","path"],I=(e,t)=>{const r=Object.keys(e);return r.length===Object.keys(t).length&&r.every((r=>t.hasOwnProperty(r)&&e[r]===t[r]))},F=e=>e.replace(/(^\/+|\/+$)/g,""),V=e=>t=>{if(!t)return null;if(t.type===o.Fragment&&t.props.children)return o.Children.map(t.props.children,V(e));if(a(t.props.path||t.props.default||t.type===C,`<Router>: Children of <Router> must have a \`path\` or \`default\` prop, or be a \`<Redirect>\`. None found on element type \`${t.type}\``),a(!!(t.type!==C||t.props.from&&t.props.to),`<Redirect from="${t.props.from}" to="${t.props.to}"/> requires both "from" and "to" props when inside a <Router>.`),a(!(t.type===C&&!R(t.props.from,t.props.to)),`<Redirect from="${t.props.from} to="${t.props.to}"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const r=t.type===C?t.props.from:t.props.path,n="/"===r?e:`${F(e)}/${F(r)}`;return{value:t,default:t.props.default,path:t.props.children?`${F(n)}/*`:n}},H=["innerRef"],N=["to","state","replace","getProps"],W=["key"];let{forwardRef:U}=n||(n=r.t(o,2));void 0===U&&(U=e=>e);const q=()=>{},Y=U(((e,t)=>{let{innerRef:r}=e,n=l(e,H);const{baseuri:i}=y(),{location:a}=b(),{to:c,state:u,replace:d,getProps:h=q}=n,p=l(n,N),m=T(c,i),g=encodeURI(m),v=a.pathname===g,x=_(a.pathname,g);return o.createElement("a",s({ref:t||r,"aria-current":v?"page":void 0},p,h({isCurrent:v,isPartiallyCurrent:x,href:m,location:a}),{href:m,onClick:e=>{if(p.onClick&&p.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=d;if("boolean"!=typeof d&&v){const e=l(s({},a.state),W);t=I(s({},u),e)}f(m,{state:u,replace:t})}}}))}));Y.displayName="Link",Y.propTypes={to:i.string.isRequired};class G extends o.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const X=o.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function K({children:e}){const[t,r]=o.useState(),n=o.useRef(),i=o.useMemo((()=>({componentDidCatch:n,error:t,setError:r})),[t]);return o.createElement(X.Provider,{value:i},o.createElement(G,{error:t,onError:(e,t)=>{r(e),null==n.current||n.current(e,t)}},e))}K.displayName="ReactUseErrorBoundaryContext";const J=function(e){var t,r;function n(t){return o.createElement(K,null,o.createElement(e,s({key:"WrappedComponent"},t)))}return n.displayName=`WithErrorBoundary(${null!=(t=null!=(r=e.displayName)?r:e.name)?t:"Component"})`,n}((({history:e=p,children:t})=>{const{location:r}=e,[n,i]=o.useState({location:r}),[a]=function(e){const t=o.useContext(X);t.componentDidCatch.current=void 0;const r=o.useCallback((()=>{t.setError(void 0)}),[]);return[t.error,r]}();if(o.useEffect((()=>{e._onTransitionComplete()}),[n.location]),o.useEffect((()=>{let t=!1;const r=e.listen((({location:e})=>{Promise.resolve().then((()=>{requestAnimationFrame((()=>{t||i({location:e})}))}))}));return()=>{t=!0,r()}}),[]),a){if(!w(a))throw a;f(a.uri,{replace:!0})}return o.createElement(v.Provider,{value:n},"function"==typeof t?t(n):t||null)})),Q=({children:e})=>{const t=b();return t?e(t):o.createElement(J,null,e)},Z=({url:e,children:t})=>{const r=e.indexOf("?");let n,i="";return r>-1?(n=e.substring(0,r),i=e.substring(r)):n=e,o.createElement(v.Provider,{value:{location:{pathname:n,search:i,hash:""}}},t)},ee=({path:e,children:t})=>{const{baseuri:r}=y(),{location:n}=b(),o=T(e,r),i=P(o,n.pathname);return t({location:n,match:i?s({},i.params,{uri:i.uri,path:e}):null})},te=["uri","location","component"],re=["children","style","component","uri","location"],ne=e=>{let{uri:t,location:r,component:n}=e,i=l(e,te);return o.createElement(ie,s({},i,{component:n,uri:t,location:r}))};let oe=0;const ie=e=>{let{children:t,style:r,component:n="div",uri:i,location:a}=e,c=l(e,re);const u=o.useRef(),d=o.useRef(!0),h=o.useRef(i),p=o.useRef(a.pathname),f=o.useRef(!1);o.useEffect((()=>(oe++,m(),()=>{oe--,0===oe&&(d.current=!0)})),[]),o.useEffect((()=>{let e=!1,t=!1;i!==h.current&&(h.current=i,e=!0),a.pathname!==p.current&&(p.current=a.pathname,t=!0),f.current=e||t&&a.pathname===i,f.current&&m()}),[i,a]);const m=o.useCallback((()=>{var e;d.current?d.current=!1:(e=u.current,f.current&&e&&e.focus())}),[]);return o.createElement(n,s({style:s({outline:"none"},r),tabIndex:"-1",ref:u},c),t)},ae=["location","primary","children","basepath","baseuri","component"],se=e=>{const t=y(),r=b();return o.createElement(le,s({},t,r,e))};function le(e){const{location:t,primary:r=!0,children:n,basepath:i,component:a="div"}=e,c=l(e,ae),u=o.Children.toArray(n).reduce(((e,t)=>{const r=V(i)(t);return e.concat(r)}),[]),{pathname:d}=t,h=E(u,d);if(h){const{params:e,uri:n,route:l,route:{value:u}}=h,d=l.default?i:l.path.replace(/\*$/,""),p=s({},e,{uri:n,location:t}),f=o.cloneElement(u,p,u.props.children?o.createElement(se,{location:t,primary:r},u.props.children):void 0),m=r?ne:a,v=r?s({uri:n,location:t,component:a},c):c;return o.createElement(g.Provider,{value:{baseuri:n,basepath:d}},o.createElement(m,v,f))}return null}const ce=()=>{const e=b();if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},ue=()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},de=()=>{const e=y();if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const t=ce(),r=P(e.basepath,t.pathname);return r?r.params:null},he=e=>{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=y();if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const r=ce(),n=T(e,t.baseuri),o=P(n,r.pathname);return o?s({},o.params,{uri:o.uri,path:e}):null}},7078:function(e,t,r){"use strict";r.d(t,{Fe:function(){return p},N_:function(){return S},Rr:function(){return l},Zf:function(){return y},oo:function(){return k}});var n=r(5556),o=r(6540),i=r(6462),a=r(6395);function s(){return s=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},s.apply(this,arguments)}function l(e){let t=e||"/",r="",n="";const o=t.indexOf("#");-1!==o&&(n=t.slice(o),t=t.slice(0,o));const i=t.indexOf("?");return-1!==i&&(r=t.slice(i),t=t.slice(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}const c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{if("string"==typeof e)return!(e=>c.test(e))(e)},d=()=>"",h=()=>"";function p(e,t=d()){var r;if(!u(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const n=null!=(r=null!=t?t:h())?r:"/";return`${null!=n&&n.endsWith("/")?n.slice(0,-1):n}${e.startsWith("/")?e:`/${e}`}`}const f=e=>null==e?void 0:e.startsWith("/");function m(e,t){const{pathname:r,search:n,hash:o}=l(e);return`${(0,a.T)(r,t)}${n}${o}`}const g=(e,t)=>"number"==typeof e?e:u(e)?f(e)?function(e){const t=p(e),r="always";return m(t,r)}(e):function(e,t){if(f(e))return e;const r="always",n=(0,i.resolve)(e,t);return m(n,r)}(e,t):e,v=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function y(e){return p(e,h())}const b={activeClassName:n.string,activeStyle:n.object,partiallyActive:n.bool};function x(e){return o.createElement(i.Location,null,(({location:t})=>o.createElement(w,s({},e,{_location:t}))))}class w extends o.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:s({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=l(g(this.props.to,e)),r=t.pathname+t.search;if(e!==r)return ___loader.enqueue(r)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const r=new window.IntersectionObserver((r=>{r.forEach((r=>{e===r.target&&t(r.isIntersecting||r.intersectionRatio>0)}))}));return r.observe(e),{instance:r,el:e}})(e,(e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const e=this.props,{to:t,getProps:r=this.defaultGetProps,onClick:n,onMouseEnter:a,state:c,replace:d,_location:h}=e,p=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(e,v),f=g(t,h.pathname);return u(f)?o.createElement(i.Link,s({to:f,state:c,getProps:r,innerRef:this.handleRef,onMouseEnter:e=>{a&&a(e);const t=l(f);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(n&&n(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=d;const r=encodeURI(f)===h.pathname;"boolean"!=typeof d&&r&&(t=!0),window.___navigate(f,{state:c,replace:t})}return!0}},p)):o.createElement("a",s({href:f},p))}}w.propTypes=s({},b,{onClick:n.func,to:n.string.isRequired,replace:n.bool,state:n.object});const S=o.forwardRef(((e,t)=>o.createElement(x,s({innerRef:t},e)))),k=(e,t)=>{window.___navigate(g(e,window.location.pathname),t)}},5535:function(e,t,r){"use strict";r.r(t),r.d(t,{Script:function(){return f},ScriptStrategy:function(){return c},collectedScriptsByPage:function(){return s},scriptCache:function(){return h},scriptCallbackCache:function(){return p}});var n=r(6540),o=r(6462);function i(){return i=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},i.apply(this,arguments)}const a=new Map,s={get:e=>a.get(e)||[],set(e,t){const r=a.get(e)||[];r.push(t),a.set(e,r)},delete(e){a.delete(e)}},l="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var c,u;(u=c||(c={})).postHydrate="post-hydrate",u.idle="idle",u.offMainThread="off-main-thread";const d=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),h=new Set,p=new Map;function f(e){return n.createElement(o.Location,null,(()=>n.createElement(m,e)))}function m(e){const{src:t,strategy:r=c.postHydrate}=e||{},{pathname:a}=(0,o.useLocation)();if((0,n.useEffect)((()=>{let t;switch(r){case c.postHydrate:t=g(e);break;case c.idle:l((()=>{t=g(e)}));break;case c.offMainThread:{const t=y(e);s.set(a,t)}}return()=>{const{script:e,loadCallback:r,errorCallback:n}=t||{};r&&(null==e||e.removeEventListener("load",r)),n&&(null==e||e.removeEventListener("error",n)),null==e||e.remove()}}),[]),r===c.offMainThread){const o=v(e),l=y(e);return"undefined"==typeof window&&s.set(a,l),n.createElement("script",o?i({type:"text/partytown","data-strategy":r,crossOrigin:"anonymous"},l,{dangerouslySetInnerHTML:{__html:v(e)}}):i({type:"text/partytown",src:b(t),"data-strategy":r,crossOrigin:"anonymous"},l))}return null}function g(e){const{id:t,src:r,strategy:n=c.postHydrate,onLoad:o,onError:a}=e||{},s=t||r,l=["load","error"],u={load:o,error:a};if(s){for(const e of l)if(null!=u&&u[e]){var d;const t=p.get(s)||{},{callbacks:r=[]}=(null==t?void 0:t[e])||{};var f,m;r.push(null==u?void 0:u[e]),null!=t&&null!=(d=t[e])&&d.event?null==u||null==(f=u[e])||f.call(u,null==t||null==(m=t[e])?void 0:m.event):p.set(s,i({},t,{[e]:{callbacks:r}}))}if(h.has(s))return null}const g=v(e),b=y(e),w=document.createElement("script");t&&(w.id=t),w.dataset.strategy=n;for(const[i,c]of Object.entries(b))w.setAttribute(i,c);g&&(w.textContent=g),r&&(w.src=r);const S={};if(s){for(const e of l){const t=t=>x(t,s,e);w.addEventListener(e,t),S[`${e}Callback`]=t}h.add(s)}return document.body.appendChild(w),{script:w,loadCallback:S.loadCallback,errorCallback:S.errorCallback}}function v(e){const{dangerouslySetInnerHTML:t,children:r=""}=e||{},{__html:n=""}=t||{};return n||r}function y(e){const t={};for(const[r,n]of Object.entries(e))d.has(r)||(t[r]=n);return t}function b(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function x(e,t,r){const n=p.get(t)||{};for(const i of(null==n||null==(o=n[r])?void 0:o.callbacks)||[]){var o;i(e)}p.set(t,{[r]:{event:e}})}}},function(e){e.O(0,[869,593],(function(){return t=6498,e(e.s=t);var t}));e.O()}]);
//# sourceMappingURL=app-2d15fb1fecc599282845.js.map