(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{23564:function(e,t,r){"use strict";r.d(t,{Jh:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return u},mG:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function u(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}},8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function h(e,t){return t.push(e),e}var f=1,p=1,m=0,v=0,y=0,g="";function b(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:f,column:p,length:a,return:""}}function _(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return y=v<m?u(g,v++):0,p++,10===y&&(p=1,f++),y}function S(){return u(g,v)}function w(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 k(e){return f=p=1,m=d(g=e),v=0,[]}function E(e){var t,r;return(t=v-1,r=function e(t){for(;x();)switch(y){case t:return v;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:x()}return v}(91===e?e+2:40===e?e+1:e),c(g,t,r)).trim()}var T="-ms-",O="-moz-",A="-webkit-",C="comm",P="rule",I="decl",R="@keyframes";function D(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function j(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case C:return"";case R:return e.return=e.value+"{"+D(e.children,n)+"}";case P:e.value=e.props.join(",")}return d(r=D(e.children,n))?e.return=e.value+"{"+r+"}":""}function N(e,t,r,n,o,a,l,u,d,h,f){for(var p=o-1,m=0===o?a:[""],v=m.length,y=0,g=0,_=0;y<n;++y)for(var x=0,S=c(e,p+1,p=i(g=l[y])),w=e;x<v;++x)(w=(g>0?m[x]+" "+S:s(S,/&\f/g,m[x])).trim())&&(d[_++]=w);return b(e,t,r,0===o?P:u,d,h,f)}function F(e,t,r,n){return b(e,t,r,I,c(e,0,n),c(e,n+1,-1),n)}var L=function(e,t,r){for(var n=0,i=0;n=i,i=S(),38===n&&12===i&&(t[r]=1),!w(i);)x();return c(g,e,v)},M=function(e,t){var r=-1,n=44;do switch(w(n)){case 0:38===n&&12===S()&&(t[r]=1),e[r]+=L(v-1,t,r);break;case 2:e[r]+=E(n);break;case 4:if(44===n){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=x());return e},B=function(e,t){var r;return r=M(k(e),t),g="",r},z=new WeakMap,V=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 i=[],o=B(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},$=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},U=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return A+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return A+t+O+t+T+t+t;case 6828:case 4268:return A+t+T+t+t;case 6165:return A+t+T+"flex-"+t+t;case 5187:return A+t+s(t,/(\w+).+(:[^]+)/,A+"box-$1$2"+T+"flex-$1$2")+t;case 5443:return A+t+T+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return A+t+T+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return A+t+T+s(t,"shrink","negative")+t;case 5292:return A+t+T+s(t,"basis","preferred-size")+t;case 6060:return A+"box-"+s(t,"-grow","")+A+t+T+s(t,"grow","positive")+t;case 4554:return A+s(t,/([^-])(transform)/g,"$1"+A+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,A+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+O+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+A)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(45===u(t,14)?"inline-":"")+"box$3$1"+A+"$2$3$1"+T+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return A+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return A+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return A+t+T+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return A+t+T+t+t}return t}(e.value,e.length);break;case R:return D([_(e,{value:s(e.value,"@","@"+A)})],n);case P:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return D([_(e,{props:[s(t,/:(read-\w+)/,":"+O+"$1")]})],n);case"::placeholder":return D([_(e,{props:[s(t,/:(plac\w+)/,":"+A+"input-$1")]}),_(e,{props:[s(t,/:(plac\w+)/,":"+O+"$1")]}),_(e,{props:[s(t,/:(plac\w+)/,T+"input-$1")]})],n)}return""}).join("")}}],q=function(e){var t,r,i,a,m,_=e.key;if("css"===_){var T=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(T,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var O=e.stylisPlugins||U,A={},P=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)A[t[r]]=!0;P.push(e)});var I=(r=(t=[V,$].concat(O,[j,(i=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),R=function(e){var t,r;return D((r=function e(t,r,n,i,a,m,_,k,T){for(var O,A=0,P=0,I=_,R=0,D=0,j=0,L=1,M=1,B=1,z=0,V="",$=a,U=m,q=i,G=V;M;)switch(j=z,z=x()){case 40:if(108!=j&&58==u(G,I-1)){-1!=l(G+=s(E(z),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:G+=E(z);break;case 9:case 10:case 13:case 32:G+=function(e){for(;y=S();)if(y<33)x();else break;return w(e)>2||w(y)>3?"":" "}(j);break;case 92:G+=function(e,t){for(var r;--t&&x()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return r=v+(t<6&&32==S()&&32==x()),c(g,e,r)}(v-1,7);continue;case 47:switch(S()){case 42:case 47:h(b(O=function(e,t){for(;x();)if(e+y===57)break;else if(e+y===84&&47===S())break;return"/*"+c(g,t,v-1)+"*"+o(47===e?e:x())}(x(),v),r,n,C,o(y),c(O,2,-2),0),T);break;default:G+="/"}break;case 123*L:k[A++]=d(G)*B;case 125*L:case 59:case 0:switch(z){case 0:case 125:M=0;case 59+P:-1==B&&(G=s(G,/\f/g,"")),D>0&&d(G)-I&&h(D>32?F(G+";",i,n,I-1):F(s(G," ","")+";",i,n,I-2),T);break;case 59:G+=";";default:if(h(q=N(G,r,n,A,P,a,k,V,$=[],U=[],I),m),123===z){if(0===P)e(G,r,q,q,$,m,I,k,U);else switch(99===R&&110===u(G,3)?100:R){case 100:case 108:case 109:case 115:e(t,q,q,i&&h(N(t,q,q,0,0,a,k,V,a,$=[],I),U),a,U,I,k,i?$:U);break;default:e(G,q,q,q,[""],U,0,k,U)}}}A=P=D=0,L=B=1,V=G="",I=_;break;case 58:I=1+d(G),D=j;default:if(L<1){if(123==z)--L;else if(125==z&&0==L++&&125==(y=v>0?u(g,--v):0,p--,10===y&&(p=1,f--),y))continue}switch(G+=o(z),z*L){case 38:B=P>0?1:(G+="\f",-1);break;case 44:k[A++]=(d(G)-1)*B,B=1;break;case 64:45===S()&&(G+=E(x())),R=S(),P=I=d(V=G+=function(e){for(;!w(S());)x();return c(g,e,v)}(v)),z++;break;case 45:45===j&&2==d(G)&&(L=0)}}return m}("",null,null,null,[""],t=k(t=e),0,[0],t),g="",r),I)},L={key:_,sheet:new n({key:_,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:A,registered:{},insert:function(e,t,r,n){m=r,R(e?e+"{"+t.styles+"}":t.styles),n&&(L.inserted[t.name]=!0)}};return L.sheet.hydrate(P),L}},45042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},76330:function(e,t,r){"use strict";r.d(t,{T:function(){return c},a:function(){return h},i:function(){return s},w:function(){return u}});var n=r(67294),i=r(8417),o=r(87462),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}};r(48137),r(27278);var s=!0,l=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);l.Provider;var u=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(l),r)})};s||(u=function(e){return function(t){var r=(0,n.useContext)(l);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(l.Provider,{value:r},e(t,r))):e(t,r)}});var c=n.createContext({}),d=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),h=function(e){var t=n.useContext(c);return e.theme!==t&&(t=d(t)(e.theme)),n.createElement(c.Provider,{value:t},e.children)}},70917:function(e,t,r){"use strict";r.d(t,{F4:function(){return c},xB:function(){return l}});var n=r(76330),i=r(67294),o=r(70444),a=r(27278),s=r(48137);r(8417),r(8679);var l=(0,n.w)(function(e,t){var r=e.styles,l=(0,s.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,c=l.name,d=l.styles,h=l.next;void 0!==h;)c+=" "+h.name,d+=h.styles,h=h.next;var f=!0===t.compat,p=t.insert("",{name:c,styles:d},t.sheet,f);return f?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:p},u.nonce=t.sheet.nonce,u))}var m=i.useRef();return(0,a.j)(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,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),m.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=m.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(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 u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var c=function(){var e=u.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_"}}}},48137:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,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},o=r(45042),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=h(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":u(a)&&(n+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(n+=c(o)+":"+d(o,a[s])+";");else{var l=h(e,t,a);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,h(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=h(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=h(r,t,e[l]),o&&(a+=s[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+u,styles:a,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,i=r(67294),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},70444:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return o},fp:function(){return n},hC:function(){return i}});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},82152:function(e,t,r){"use strict";r.d(t,{D:function(){return l}});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function l(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t);if(n!==i.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":if(h(t,r))return!0;var s=u(t),l=u(r),c=s.length;if(c!==l.length)break;for(var f=0;f<c;++f)if(!o.call(r,s[f]))return!1;for(var f=0;f<c;++f){var p=s[f];if(!e(t[p],r[p]))return!1}return!0;case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==""+r;case"[object Map]":case"[object Set]":if(t.size!==r.size)break;if(h(t,r))return!0;for(var m=t.entries(),v="[object Map]"===n;;){var y=m.next();if(y.done)break;var g=y.value,b=g[0],_=g[1];if(!r.has(b)||v&&!e(_,r.get(b)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":var x=t.byteLength;if(x===r.byteLength)for(;x--&&t[x]===r[x];);return -1===x;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var S,w=a.call(t);if(w!==a.call(r))break;return!((S=w.length-d.length)>=0)||w.indexOf(d,S)!==S}return!1}(e,t)}finally{s.clear()}}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}var d="{ [native code] }";function h(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},657:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}()},94184:function(e,t){var r;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},2350:function(){},31905:function(){var e;e="undefined"!=typeof self?self:this,function(t){var r="undefined"!=typeof globalThis&&globalThis||void 0!==e&&e||void 0!==r&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(h)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=d(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=s(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},p.call(v.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];g.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,i){return new Promise(function(o,a){var l=new v(e,i);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){o(new g(n,r))},0)},c.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof u?l.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){c.setRequestHeader(e,s(i.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}_.polyfill=!0,r.fetch||(r.fetch=_,r.Headers=u,r.Request=v,r.Response=g),t.Headers=u,t.Request=v,t.Response=g,t.fetch=_}({})},81621:function(e,t,r){"use strict";r.d(t,{Ps:function(){return B}});var n,i,o,a,s,l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let u=/\r\n|[\n\r]/g;function c(e,t){let r=0,n=1;for(let i of e.body.matchAll(u)){if("number"==typeof i.index||function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function d(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,u=`${e.name}:${a}:${l}
`,c=n.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){let e=Math.floor(l/80),t=l%80,r=[];for(let e=0;e<d.length;e+=80)r.push(d.slice(e,e+80));return u+h([[`${a} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return u+h([[`${a-1} |`,c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function h(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class f extends Error{constructor(e,...t){var r,n,i,o;let{nodes:a,source:s,positions:l,path:u,originalError:d,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=d?d:void 0,this.nodes=p(Array.isArray(a)?a:a?[a]:void 0);let m=p(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==m?void 0:null===(n=m[0])||void 0===n?void 0:n.source,this.positions=null!=l?l:null==m?void 0:m.map(e=>e.start),this.locations=l&&s?l.map(e=>c(s,e)):null==m?void 0:m.map(e=>c(e.source,e.start));let v="object"==typeof(o=null==d?void 0:d.extensions)&&null!==o?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=h?h:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,f):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let r of this.nodes)if(r.loc){var t;e+="\n\n"+d((t=r.loc).source,c(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function p(e){return void 0===e||0===e.length?void 0:e}function m(e,t,r){return new f(`Syntax Error: ${r}`,{source:e,positions:[t]})}var v=r(72380);(n=a||(a={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var y=r(97359),g=r(87392),b=r(68297);(i=s||(s={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class _{constructor(e){let t=new v.WU(s.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==s.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(x(e))++i;else if(S(r,i))i+=2;else break}return T(e,s.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return T(e,s.BANG,i,i+1);case 36:return T(e,s.DOLLAR,i,i+1);case 38:return T(e,s.AMP,i,i+1);case 40:return T(e,s.PAREN_L,i,i+1);case 41:return T(e,s.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return T(e,s.SPREAD,i,i+3);break;case 58:return T(e,s.COLON,i,i+1);case 61:return T(e,s.EQUALS,i,i+1);case 64:return T(e,s.AT,i,i+1);case 91:return T(e,s.BRACKET_L,i,i+1);case 93:return T(e,s.BRACKET_R,i,i+1);case 123:return T(e,s.BRACE_L,i,i+1);case 124:return T(e,s.PIPE,i,i+1);case 125:return T(e,s.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,a=o,l="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){l+=r.slice(a,o),u.push(l);let n=T(e,s.BLOCK_STRING,t,o+3,(0,g.wv)(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){l+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){l+=r.slice(a,o),u.push(l),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,l="",a=o,i=o;continue}if(x(n))++o;else if(S(r,o))o+=2;else throw m(e.source,o,`Invalid character within String: ${E(e,o)}.`)}throw m(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,a="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),T(e,s.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!x(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|C(e))<0)break}throw m(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=A(r,t+2);if(x(n))return{value:String.fromCodePoint(n),size:6};if(w(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=A(r,t+8);if(k(e))return{value:String.fromCodePoint(n,e),size:12}}throw m(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body,n=r.charCodeAt(t+1);switch(n){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw m(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(x(n))++i;else if(S(r,i))i+=2;else throw m(e.source,i,`Invalid character within String: ${E(e,i)}.`)}throw m(e.source,i,"Unterminated string.")}(e,i)}if((0,b.X1)(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,b.X1)(o))throw m(e.source,i,`Invalid number, unexpected digit after 0: ${E(e,i)}.`)}else i=O(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=O(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=O(e,i,o),o=n.charCodeAt(i)),46===o||(0,b.LQ)(o))throw m(e.source,i,`Invalid number, expected digit but got: ${E(e,i)}.`);return T(e,a?s.FLOAT:s.INT,t,i,n.slice(t,i))}(e,i,t);if((0,b.LQ)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,b.HQ)(e))++i;else break}return T(e,s.NAME,t,i,r.slice(t,i))}(e,i);throw m(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":x(t)||S(r,i)?`Unexpected character: ${E(e,i)}.`:`Invalid character: ${E(e,i)}.`)}return T(e,s.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.COMMENT);return e}}function x(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return w(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function E(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return s.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function T(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new v.WU(t,r,n,o,a,i)}function O(e,t,r){if(!(0,b.X1)(r))throw m(e.source,t,`Invalid number, expected digit but got: ${E(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,b.X1)(n.charCodeAt(i));)++i;return i}function A(e,t){return C(e.charCodeAt(t))<<12|C(e.charCodeAt(t+1))<<8|C(e.charCodeAt(t+2))<<4|C(e.charCodeAt(t+3))}function C(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var P=r(51270);class I{constructor(e,t={}){let r=(0,P.T)(e)?e:new P.H(e);this._lexer=new _(r),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(s.NAME);return this.node(e,{kind:y.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.h.DOCUMENT,definitions:this.many(s.SOF,this.parseDefinition,s.EOF)})}parseDefinition(){if(this.peek(s.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===s.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw m(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(s.BRACE_L))return this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:v.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(s.NAME)&&(e=this.parseName()),this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(s.NAME);switch(e.value){case"query":return v.ku.QUERY;case"mutation":return v.ku.MUTATION;case"subscription":return v.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.PAREN_L,this.parseVariableDefinition,s.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(s.DOLLAR),this.node(e,{kind:y.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.h.SELECTION_SET,selections:this.many(s.BRACE_L,this.parseSelection,s.BRACE_R)})}parseSelection(){return this.peek(s.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(s.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:y.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(s.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.PAREN_L,t,s.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:y.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(s.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(s.NAME)?this.node(e,{kind:y.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case s.BRACKET_L:return this.parseList(e);case s.BRACE_L:return this.parseObject(e);case s.INT:return this.advanceLexer(),this.node(t,{kind:y.h.INT,value:t.value});case s.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.h.FLOAT,value:t.value});case s.STRING:case s.BLOCK_STRING:return this.parseStringLiteral();case s.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.h.NULL});default:return this.node(t,{kind:y.h.ENUM,value:t.value})}case s.DOLLAR:if(e){if(this.expectToken(s.DOLLAR),this._lexer.token.kind===s.NAME){let e=this._lexer.token.value;throw m(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.h.STRING,value:e.value,block:e.kind===s.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:y.h.LIST,values:this.any(s.BRACKET_L,()=>this.parseValueLiteral(e),s.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:y.h.OBJECT,fields:this.any(s.BRACE_L,()=>this.parseObjectField(e),s.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:y.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(s.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(s.AT),this.node(t,{kind:y.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(s.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(s.BRACKET_R),e=this.node(t,{kind:y.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(s.BANG)?this.node(t,{kind:y.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.STRING)||this.peek(s.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);return this.node(e,{kind:y.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(s.COLON);let r=this.parseNamedType();return this.node(e,{kind:y.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:y.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseFieldDefinition,s.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(s.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:y.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(s.PAREN_L,this.parseInputValueDef,s.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(s.COLON);let i=this.parseTypeReference();this.expectOptionalToken(s.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:y.h.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:y.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(s.EQUALS)?this.delimitedMany(s.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:y.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(s.BRACE_L,this.parseEnumValueDefinition,s.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:y.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw m(this._lexer.source,this._lexer.token.start,`${R(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseInputValueDef,s.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===s.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(s.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:y.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(s.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new v.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw m(this._lexer.source,t.start,`Expected ${D(e)}, found ${R(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===s.NAME&&t.value===e)this.advanceLexer();else throw m(this._lexer.source,t.start,`Expected "${e}", found ${R(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===s.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return m(this._lexer.source,t.start,`Unexpected ${R(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==s.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw m(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function R(e){let t=e.value;return D(e.kind)+(null!=t?` "${t}"`:"")}function D(e){return e===s.BANG||e===s.DOLLAR||e===s.AMP||e===s.PAREN_L||e===s.PAREN_R||e===s.SPREAD||e===s.COLON||e===s.EQUALS||e===s.AT||e===s.BRACKET_L||e===s.BRACKET_R||e===s.BRACE_L||e===s.PIPE||e===s.BRACE_R?`"${e}"`:e}var j=new Map,N=new Map,F=!0,L=!1;function M(e){return e.replace(/[\s,]+/g," ").trim()}function B(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=M(e);if(!j.has(t)){var r,n,i,o,a,s=function(e,t){let r=new I(e,t);return r.parseDocument()}(e,{experimentalFragmentVariables:L,allowLegacyFragmentVariables:L});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");j.set(t,(r=new Set,n=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=M((t=e.loc).source.body.substring(t.start,t.end)),a=N.get(i);a&&!a.has(o)?F&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||N.set(i,a=new Set),a.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),i=l(l({},s),{definitions:n}),(o=new Set(i.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return j.get(t)}(n)}var z={gql:B,resetCaches:function(){j.clear(),N.clear()},disableFragmentWarnings:function(){F=!1},enableExperimentalFragmentVariables:function(){L=!0},disableExperimentalFragmentVariables:function(){L=!1}};(o=B||(B={})).gql=z.gql,o.resetCaches=z.resetCaches,o.disableFragmentWarnings=z.disableFragmentWarnings,o.enableExperimentalFragmentVariables=z.enableExperimentalFragmentVariables,o.disableExperimentalFragmentVariables=z.disableExperimentalFragmentVariables,B.default=B},8679:function(e,t,r){"use strict";var n=r(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},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]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v<a.length;++v){var y=a[v];if(!o[y]&&!(n&&n[y])&&!(m&&m[y])&&!(s&&s[y])){var g=h(r,y);try{u(t,y,g)}catch(e){}}}}return t}},38554:function(e,t,r){e=r.nmd(e);var n,i,o,a,s,l,u,c,d,h,f="__lodash_hash_undefined__",p="[object Arguments]",m="[object Function]",v="[object Object]",y=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[p]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[m]=b["[object Map]"]=b["[object Number]"]=b[v]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var _="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,S=_||x||Function("return this")(),w=t&&!t.nodeType&&t,k=w&&e&&!e.nodeType&&e,E=k&&k.exports===w,T=E&&_.process,O=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return T&&T.binding&&T.binding("util")}catch(e){}}(),A=O&&O.isTypedArray,C=Array.prototype,P=Function.prototype,I=Object.prototype,R=S["__core-js_shared__"],D=P.toString,j=I.hasOwnProperty,N=(l=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",F=I.toString,L=D.call(Object),M=RegExp("^"+D.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=E?S.Buffer:void 0,z=S.Symbol,V=S.Uint8Array,$=B?B.allocUnsafe:void 0,U=(u=Object.getPrototypeOf,c=Object,function(e){return u(c(e))}),q=Object.create,G=I.propertyIsEnumerable,W=C.splice,H=z?z.toStringTag:void 0,Q=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=B?B.isBuffer:void 0,K=Math.max,J=Date.now,Z=eh(S,"Map"),X=eh(Object,"create"),ee=function(){function e(){}return function(t){if(!ek(t))return{};if(q)return q(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function et(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 er(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 en(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 ei(e){var t=this.__data__=new er(e);this.size=t.size}function eo(e,t,r){(void 0===r||ey(e[t],r))&&(void 0!==r||t in e)||es(e,t,r)}function ea(e,t){for(var r=e.length;r--;)if(ey(e[r][0],t))return r;return -1}function es(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}et.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},et.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},et.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return r===f?void 0:r}return j.call(t,e)?t[e]:void 0},et.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:j.call(t,e)},et.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?f:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,r=ea(t,e);return!(r<0)&&(r==t.length-1?t.pop():W.call(t,r,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,r=ea(t,e);return r<0?void 0:t[r][1]},er.prototype.has=function(e){return ea(this.__data__,e)>-1},er.prototype.set=function(e,t){var r=this.__data__,n=ea(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},en.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(Z||er),string:new et}},en.prototype.delete=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},en.prototype.get=function(e){return ed(this,e).get(e)},en.prototype.has=function(e){return ed(this,e).has(e)},en.prototype.set=function(e,t){var r=ed(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ei.prototype.clear=function(){this.__data__=new er,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var r=this.__data__;if(r instanceof er){var n=r.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new en(n)}return r.set(e,t),this.size=r.size,this};var el=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};function eu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?function(e){var t=j.call(e,H),r=e[H];try{e[H]=void 0;var n=!0}catch(e){}var i=F.call(e);return n&&(t?e[H]=r:delete e[H]),i}(e):F.call(e)}function ec(e){return eE(e)&&eu(e)==p}function ed(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function eh(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||N&&N in r)&&(eS(r)?M:y).test(function(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ef(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&g.test(e))&&e>-1&&e%1==0&&e<t}function ep(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||I;return e===r}function em(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ev=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eC,i=0,o=0,function(){var e=J(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return n.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var eg=ec(function(){return arguments}())?ec:function(e){return eE(e)&&j.call(e,"callee")&&!G.call(e,"callee")},eb=Array.isArray;function e_(e){return null!=e&&ew(e.length)&&!eS(e)}var ex=Y||function(){return!1};function eS(e){if(!ek(e))return!1;var t=eu(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ew(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eT=A?function(e){return A(e)}:function(e){return eE(e)&&ew(e.length)&&!!b[eu(e)]};function eO(e){return e_(e)?function(e,t){var r=eb(e),n=!r&&eg(e),i=!r&&!n&&ex(e),o=!r&&!n&&!i&&eT(e),a=r||n||i||o,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 u in e)(t||j.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ef(u,l)))&&s.push(u);return s}(e,!0):function(e){if(!ek(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ep(e),r=[];for(var n in e)"constructor"==n&&(t||!j.call(e,n))||r.push(n);return r}(e)}var eA=(d=function(e,t,r,n){!function e(t,r,n,i,o){t!==r&&el(r,function(a,s){if(o||(o=new ei),ek(a))(function(e,t,r,n,i,o,a){var s=em(e,r),l=em(t,r),u=a.get(l);if(u){eo(e,r,u);return}var c=o?o(s,l,r+"",e,t,a):void 0,d=void 0===c;if(d){var h,f,p=eb(l),m=!p&&ex(l),y=!p&&!m&&eT(l);c=l,p||m||y?eb(s)?c=s:eE(s)&&e_(s)?c=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):m?(d=!1,c=function(e,t){if(t)return e.slice();var r=e.length,n=$?$(r):new e.constructor(r);return e.copy(n),n}(l,!0)):y?(d=!1,f=new(h=l.buffer).constructor(h.byteLength),new V(f).set(new V(h)),c=new l.constructor(f,l.byteOffset,l.length)):c=[]:function(e){if(!eE(e)||eu(e)!=v)return!1;var t=U(e);if(null===t)return!0;var r=j.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&D.call(r)==L}(l)||eg(l)?(c=s,eg(s)?c=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?es(r,s,l):function(e,t,r){var n=e[t];j.call(e,t)&&ey(n,r)&&(void 0!==r||t in e)||es(e,t,r)}(r,s,l)}return r}(s,eO(s)):(!ek(s)||eS(s))&&(c="function"!=typeof l.constructor||ep(l)?{}:ee(U(l)))):d=!1}d&&(a.set(l,c),i(c,l,n,o,a),a.delete(l)),eo(e,r,c)})(t,r,s,n,e,i,o);else{var l=i?i(em(t,s),a,s+"",t,r,o):void 0;void 0===l&&(l=a),eo(t,s,l)}},eO)}(e,t,r,n)},ev((a=h=function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!ek(r))return!1;var n=typeof t;return("number"==n?!!(e_(r)&&ef(t,r.length)):"string"==n&&(t in r))&&ey(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&d(e,a,r,i)}return e},s=K((s=void 0,a.length-1),0),function(){for(var e=arguments,t=-1,r=K(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=eC(n),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)}(a,this,i)}),h+""));function eC(e){return e}e.exports=eA},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),i=r(80401),o=r(57667),a=r(21327),s=r(81866);function l(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])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:function(e,t,r){var n=r(27040),i=r(14125),o=r(82117),a=r(67518),s=r(54705);function l(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])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:function(e,t,r){var n=r(10852)(r(55639),"Map");e.exports=n},83369:function(e,t,r){var n=r(24785),i=r(11285),o=r(96e3),a=r(49916),s=r(95265);function l(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])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:function(e,t,r){var n=r(10852)(r(55639),"Promise");e.exports=n},58525:function(e,t,r){var n=r(10852)(r(55639),"Set");e.exports=n},88668:function(e,t,r){var n=r(83369),i=r(90619),o=r(72385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},46384:function(e,t,r){var n=r(38407),i=r(37465),o=r(63779),a=r(67599),s=r(44758),l=r(34309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},11149:function(e,t,r){var n=r(55639).Uint8Array;e.exports=n},70577:function(e,t,r){var n=r(10852)(r(55639),"WeakMap");e.exports=n},34963:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},14636:function(e,t,r){var n=r(22545),i=r(35694),o=r(1469),a=r(44144),s=r(65776),l=r(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&i(e),d=!r&&!c&&a(e),h=!r&&!c&&!d&&l(e),f=r||c||d||h,p=f?n(e.length,String):[],m=p.length;for(var v in e)(t||u.call(e,v))&&!(f&&("length"==v||d&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m)))&&p.push(v);return p}},62488:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},82908:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},18470:function(e,t,r){var n=r(77813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},68866:function(e,t,r){var n=r(62488),i=r(1469);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},44239:function(e,t,r){var n=r(62705),i=r(89607),o=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},9454:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},90939:function(e,t,r){var n=r(2492),i=r(37005);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},2492:function(e,t,r){var n=r(46384),i=r(67114),o=r(18351),a=r(16096),s=r(64160),l=r(1469),u=r(44144),c=r(36719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,v,y){var g=l(e),b=l(t),_=g?h:s(e),x=b?h:s(t);_=_==d?f:_,x=x==d?f:x;var S=_==f,w=x==f,k=_==x;if(k&&u(e)){if(!u(t))return!1;g=!0,S=!1}if(k&&!S)return y||(y=new n),g||c(e)?i(e,t,r,m,v,y):o(e,t,_,r,m,v,y);if(!(1&r)){var E=S&&p.call(e,"__wrapped__"),T=w&&p.call(t,"__wrapped__");if(E||T){var O=E?e.value():e,A=T?t.value():t;return y||(y=new n),v(O,A,r,m,y)}}return!!k&&(y||(y=new n),a(e,t,r,m,v,y))}},28458:function(e,t,r){var n=r(23560),i=r(15346),o=r(13218),a=r(80346),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},38749:function(e,t,r){var n=r(44239),i=r(41780),o=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},280:function(e,t,r){var n=r(25726),i=r(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},22545:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},14429:function(e,t,r){var n=r(55639)["__core-js_shared__"];e.exports=n},67114:function(e,t,r){var n=r(88668),i=r(82908),o=r(74757);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var y=e[p],g=t[p];if(a)var b=u?a(g,y,p,t,e,l):a(y,g,p,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(y===e||s(y,e,r,a,l)))return v.push(t)})){m=!1;break}}else if(!(y===g||s(y,g,r,a,l))){m=!1;break}}return l.delete(e),l.delete(t),m}},18351:function(e,t,r){var n=r(62705),i=r(11149),o=r(77813),a=r(67114),s=r(68776),l=r(21814),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)break;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var v=a(f(e),f(t),n,u,d,h);return h.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16096:function(e,t,r){var n=r(58234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<c;){var y=e[h=u[d]],g=t[h];if(o)var b=l?o(g,y,h,t,e,s):o(y,g,h,e,t,s);if(!(void 0===b?y===g||a(y,g,r,o,s):b)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(m=!1)}return s.delete(e),s.delete(t),m}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},58234:function(e,t,r){var n=r(68866),i=r(99551),o=r(3674);e.exports=function(e){return n(e,o,i)}},45050:function(e,t,r){var n=r(37019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},10852:function(e,t,r){var n=r(28458),i=r(47801);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},89607:function(e,t,r){var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},99551:function(e,t,r){var n=r(34963),i=r(70479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},64160:function(e,t,r){var n=r(18552),i=r(57071),o=r(53818),a=r(58525),s=r(70577),l=r(44239),u=r(80346),c="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=u(n),v=u(i),y=u(o),g=u(a),b=u(s),_=l;(n&&_(new n(new ArrayBuffer(1)))!=p||i&&_(new i)!=c||o&&_(o.resolve())!=d||a&&_(new a)!=h||s&&_(new s)!=f)&&(_=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return p;case v:return c;case y:return d;case g:return h;case b:return f}return t}),e.exports=_},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,r){var n=r(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,r){var n=r(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},21327:function(e,t,r){var n=r(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},81866:function(e,t,r){var n=r(94536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,r){var n,i=r(14429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor,n="function"==typeof r&&r.prototype||t;return e===n}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,r){var n=r(18470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},82117:function(e,t,r){var n=r(18470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},67518:function(e,t,r){var n=r(18470);e.exports=function(e){return n(this.__data__,e)>-1}},54705:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),o=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},55639:function(e,t,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),o=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,r){var n=r(9454),i=r(37005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18446:function(e,t,r){var n=r(90939);e.exports=function(e,t){return n(e,t)}},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},36719:function(e,t,r){var n=r(38749),i=r(7518),o=r(31167),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},3674:function(e,t,r){var n=r(14636),i=r(280),o=r(98612);e.exports=function(e){return o(e)?n(e):i(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},91118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(85305)}])},9143:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(85893),i=r(36465),o=r.n(i),a=r(67294),s=r(45697),l=r.n(s),u=r(94184),c=r.n(u);function d(e){let{children:t,className:r="",isForModal:i=!1,isBordered:s=!1,onDismiss:l=null,...u}=e,[d,h]=(0,a.useState)("12px"),f=(0,a.useRef)();(0,a.useEffect)(()=>{let e;return(e=new ResizeObserver(e=>{for(let t of e){let e=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize,r=Math.round(e.inlineSize/18)+"px";h(r)}})).observe(f.current),()=>{e.disconnect()}});let p=c()(r,{forModal:i,isBordered:s});return(0,n.jsxs)("section",{ref:f,...u,className:o().dynamic([["2aae2a1bdb7a6e9",[d,d,d,d]]])+" "+(u&&null!=u.className&&u.className||p||""),children:[l&&"function"==typeof l&&(0,n.jsx)("i",{onClick:l,"data-qa":"cardDismiss",className:o().dynamic([["2aae2a1bdb7a6e9",[d,d,d,d]]])+" fa-times fa-light fa-solid dismissIcon"}),t,(0,n.jsx)(o(),{id:"2aae2a1bdb7a6e9",dynamic:[d,d,d,d],children:'section.__jsx-style-dynamic-selector{background-color:var(--component-bg);color:var(--body-text);-webkit-border-radius:var(--Base,6px);-moz-border-radius:var(--Base,6px);border-radius:var(--Base,6px)}.dismissIcon.__jsx-style-dynamic-selector{position:absolute;top:0;right:0;font-size:24px;padding:12px;cursor:pointer;color:var(--gray-500)}.forModal.__jsx-style-dynamic-selector{position:relative}.isBordered.__jsx-style-dynamic-selector{border:thin solid var(--component-border)}section.__jsx-style-dynamic-selector>*:first-child{margin-top:0}section.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0}section.__jsx-style-dynamic-selector:not(section[class*="paddingTopBottom"]){padding-top:clamp(6px, '.concat(d,", 48px);padding-bottom:clamp(6px, ").concat(d,', 48px)}section.__jsx-style-dynamic-selector:not(section[class*="paddingLeftRight"]){padding-left:clamp(6px, ').concat(d,", 48px);padding-right:clamp(6px, ").concat(d,', 48px)}section.__jsx-style-dynamic-selector:not(section[class*="isBordered"]){-webkit-box-shadow:var(--box-shadow);-moz-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}')})]})}d.propTypes={children:l().node.isRequired,isForModal:l().bool,isBordered:l().bool,onDismiss:l().func,className:l().string}},91:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o);function s(e){let{children:t,delayMs:r=1e3}=e,[o,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(r);return(!function(e,t,r){let n=(0,i.useRef)(()=>{}),[o,a]=(0,i.useState)(!1);(0,i.useEffect)(()=>{n.current=e},[e]),(0,i.useEffect)(()=>{if(t&&!o){let e=setTimeout(function(){n.current(),a(!1),r(null)},t);return a(!0),()=>clearTimeout(e)}!t&&o&&(r(null),a(!1))},[t])}(()=>{a(!0)},s,l),o)?(0,n.jsx)(n.Fragment,{children:t}):null}s.propTypes={children:a().node.isRequired,delayMs:a().number}},53260:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893),i=r(41664),o=r.n(i),a=r(50178);function s(){return(0,n.jsxs)(n.Fragment,{children:["Please try again or contact ",(0,n.jsx)(o(),{href:a.Z6.CONTACT_US,children:"Customer Care"}),"."]})}},78604:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893),i=r(53260),o=r(43221);function a(){return(0,n.jsxs)(o.Z,{children:["We’re sorry. There is a problem with our system. We’re unable to complete your request."," ",(0,n.jsx)(i.Z,{})]})}},43221:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),i=r(36465),o=r.n(i),a=r(45697),s=r.n(a);function l(e){let{dataQa:t,children:r}=e;return r?(0,n.jsxs)("span",{"data-qa":t,className:"jsx-8854e48030540bba",children:[r,(0,n.jsx)(o(),{id:"8854e48030540bba",children:"span.jsx-8854e48030540bba{color:var(--color-error);font-size:16px}"})]}):null}l.propTypes={children:s().node,dataQa:s().string}},49638:function(e,t,r){"use strict";r.d(t,{PI:function(){return d},Q6:function(){return h},ZG:function(){return c},ZP:function(){return f},fD:function(){return u}});var n=r(85893),i=r(36465),o=r.n(i),a=r(45697),s=r.n(a),l=r(67294);let u=12,c=3,d=1056,h=120;function f(e){let{spotSize:t=u,spotCount:r=c,durationMs:i=d,swell:a=h}=e,[s,f]=(0,l.useState)(""),p=Array(r).fill("");return(0,n.jsxs)("span",{ref:()=>{f("mounted")},className:o().dynamic([["bf75f0d638f39b01",[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a]]])+" "+"spinner ".concat(s),children:[p.map((e,s)=>(0,n.jsx)("span",{className:o().dynamic([["bf75f0d638f39b01",[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a]]])+" "+"spot".concat(s)},s)),(0,n.jsx)(o(),{id:"bf75f0d638f39b01",dynamic:[r*t*2-1.5*t,t,i,t,t,r,i,i/r*1,i/r*2,i/r*3,a,a],children:".spinner.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:".concat(r*t*2-1.5*t,"px;height:").concat(t,"px;opacity:0}.spinner.mounted.__jsx-style-dynamic-selector{opacity:1;-webkit-transition:opacity ease-in ").concat(i,"ms;-moz-transition:opacity ease-in ").concat(i,"ms;-o-transition:opacity ease-in ").concat(i,"ms;transition:opacity ease-in ").concat(i,"ms}.spinner.__jsx-style-dynamic-selector>span.__jsx-style-dynamic-selector{display:inline-block;width:").concat(t,"px;height:").concat(t,"px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background-color:var(--color-primary);-webkit-animation-name:color-pulse-").concat(r,";-moz-animation-name:color-pulse-").concat(r,";-o-animation-name:color-pulse-").concat(r,";animation-name:color-pulse-").concat(r,";-webkit-animation-duration:").concat(i,"ms;-moz-animation-duration:").concat(i,"ms;-o-animation-duration:").concat(i,"ms;animation-duration:").concat(i,"ms;-webkit-animation-direction:normal;-moz-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-o-animation-iteration-count:infinite;animation-iteration-count:infinite}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(1){-webkit-animation-delay:0;-moz-animation-delay:0;-o-animation-delay:0;animation-delay:0}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:").concat(i/r*1,"ms;-moz-animation-delay:").concat(i/r*1,"ms;-o-animation-delay:").concat(i/r*1,"ms;animation-delay:").concat(i/r*1,"ms}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:").concat(i/r*2,"ms;-moz-animation-delay:").concat(i/r*2,"ms;-o-animation-delay:").concat(i/r*2,"ms;animation-delay:").concat(i/r*2,"ms}.spinner.__jsx-style-dynamic-selector>.__jsx-style-dynamic-selector:nth-child(4){-webkit-animation-delay:").concat(i/r*3,"ms;-moz-animation-delay:").concat(i/r*3,"ms;-o-animation-delay:").concat(i/r*3,"ms;animation-delay:").concat(i/r*3,"ms}@-webkit-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-moz-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-o-keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@keyframes color-pulse-3{0%{background-color:var(--berry-bridge-200);scale:100%}33%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}66%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-webkit-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-moz-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@-o-keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}@keyframes color-pulse-4{0%{background-color:var(--berry-bridge-200);scale:100%}25%{background-color:var(--berry-bridge-500);scale:").concat(a,"%}50%{background-color:var(--berry-bridge-200);scale:100%}100%{background-color:var(--berry-bridge-200);scale:100%}}")})]})}f.propTypes={spotSize:s().number,spotCount:s().number,durationMs:s().number,swell:s().number}},54303:function(e,t,r){"use strict";r.d(t,{c:function(){return p}});var n=r(85893),i=r(36465),o=r.n(i),a=r(52107),s=r(45697),l=r.n(s),u=r(67294),c=r(94184),d=r.n(c),h=r(41664),f=r.n(h);let p={PRIMARY:"primary",SECONDARY:"secondary",ALTERNATIVE:"alternative",MODAL:"modal"},m=u.forwardRef(function(e,t){let{children:r,className:i="",disabled:s=!1,href:l=null,isReversed:u=!1,fullWidth:c=!1,wrapText:h=!1,size:m="",type:v="button",variant:y=p.PRIMARY,...g}=e,b={button:!0,large:m===a.i.LARGE,small:m===a.i.SMALL,extraSmall:m===a.i.EXTRA_SMALL,mobile:m===a.i.MOBILE,wrapText:h,primary:y===p.PRIMARY,secondary:y===p.SECONDARY,alternative:y===p.ALTERNATIVE,reversed:u,fullWidth:c,hideOutlineForMouse:!0},{className:_,styles:x}={styles:(0,n.jsx)(o(),{id:"bbc8723b0062cfc9",children:".button.jsx-bbc8723b0062cfc9{border:transparent solid 1px;text-decoration:none;font-size:18px;font-weight:normal;-webkit-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-moz-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-o-transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;transition:all var(--speed-on-hover)linear,color var(--speed-on-hover)linear;-webkit-border-radius:var(--border-radius);-moz-border-radius:var(--border-radius);border-radius:var(--border-radius);padding:10px 16px;white-space:nowrap;cursor:pointer;line-height:initial}.button.jsx-bbc8723b0062cfc9:disabled{cursor:default;pointer-events:none}.extraSmall.jsx-bbc8723b0062cfc9{font-size:18px;padding:6px 12px}.mobile.jsx-bbc8723b0062cfc9{font-size:14px;padding:4px 6px}.mobile.jsx-bbc8723b0062cfc9{font-size:14px;padding:4px 6px}.small.jsx-bbc8723b0062cfc9{font-size:18px;padding:10px 16px}.large.jsx-bbc8723b0062cfc9{font-size:22px;padding:12px 20px}.fullWidth.jsx-bbc8723b0062cfc9{width:100%}.wrapText.jsx-bbc8723b0062cfc9{white-space:normal}a.button.jsx-bbc8723b0062cfc9{display:inline-block}.primary.jsx-bbc8723b0062cfc9{background-color:var(--button-bg);color:var(--button-text)}.primary.jsx-bbc8723b0062cfc9:hover:not(.primary:disabled),.primary.jsx-bbc8723b0062cfc9:active:not(.primary:disabled){background-color:var(--button-bg-hover)}.primary.reversed.jsx-bbc8723b0062cfc9{background-color:var(--button-reversed-bg);color:var(--button-reversed-text)}.primary.reversed.jsx-bbc8723b0062cfc9:hover:not(.primary:disabled),.primary.reversed.jsx-bbc8723b0062cfc9:active:not(.primary:disabled){background-color:var(--button-reversed-bg);color:var(--button-reversed-text-hover)}.primary.jsx-bbc8723b0062cfc9:disabled{background-color:var(--button-bg-disabled);color:var(--button-text-disabled)}.secondary.jsx-bbc8723b0062cfc9{background-color:var(--btnSec-bg);color:var(--btnSec-text);border-color:var(--btnSec-text)}.secondary.jsx-bbc8723b0062cfc9:hover:not(.secondary:disabled),.secondary.jsx-bbc8723b0062cfc9:active:not(.secondary:disabled){color:var(--btnSec-text-hover);border-color:var(--btnSec-text-hover)}.secondary.reversed.jsx-bbc8723b0062cfc9{color:white;border-color:white}.secondary.reversed.jsx-bbc8723b0062cfc9:hover:not(.secondary:disabled),.secondary.reversed.jsx-bbc8723b0062cfc9:active:not(.secondary:disabled){color:var(--btnSec-reversed-text-hover);border-color:var(--btnSec-reversed-text-hover)}.secondary.jsx-bbc8723b0062cfc9:disabled{color:var(--btnSec-text-disabled);border-color:var(--btnSec-text-disabled)}.secondary.reversed.jsx-bbc8723b0062cfc9:disabled{color:var(--btnSec-reversed-text-disabled);border-color:var(--btnSec-reversed-text-disabled)}.alternative.jsx-bbc8723b0062cfc9{background-color:var(--btnAlt-bg);color:var(--btnAlt-text)}.alternative.jsx-bbc8723b0062cfc9:hover:not(.alternative:disabled),.alternative.jsx-bbc8723b0062cfc9:active:not(.alternative:disabled){background-color:var(--btnAlt-bg-hover)}.alternative.reversed.jsx-bbc8723b0062cfc9{background-color:var(--btnAlt-reversed-bg);color:var(--btnAlt-reversed-text)}.alternative.reversed.jsx-bbc8723b0062cfc9:hover:not(.alternative:disabled),.alternative.reversed.jsx-bbc8723b0062cfc9:active:not(.alternative:disabled){background-color:var(--btnAlt-reversed-bg);color:var(--btnAlt-reversed-text-hover)}.alternative.jsx-bbc8723b0062cfc9:disabled{background-color:var(--btnAlt-bg-disabled);color:var(--btnAlt-text-disabled)}"}),className:"jsx-bbc8723b0062cfc9"},S={className:d()(b,_,i),...g};return l&&!s?(0,n.jsxs)(f(),{href:l,ref:t,...S,children:[(0,n.jsx)("span",{children:r}),x]}):(0,n.jsxs)("button",{...S,ref:t,type:v,disabled:s,children:[(0,n.jsx)("span",{children:r}),x]})});m.propTypes={wrapText:l().bool,children:l().node.isRequired,className:l().string,"data-qa":l().string.isRequired,disabled:l().bool,href:l().string,isReversed:l().bool,fullWidth:l().bool,size:l().string,type:l().oneOf(["submit","reset","button",void 0])},t.Z=m},52107:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n={LARGE:"large",MEDIUM:"default",SMALL:"small",EXTRA_SMALL:"extraSmall",RESPONSIVE:"responsive",MOBILE:"mobile"}},5921:function(e,t,r){"use strict";r.d(t,{J:function(){return o9}});var n,i,o,a,s,l,u,c,d,h,f,p,m,v,y,g,b,_,x,S,w,k,E,T=r(85893),O=r(67294),A=r(45697),C=r.n(A),P=r(70917),I=String.raw,R=I`
  :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;
    }
  }
`,D=()=>(0,T.jsx)(P.xB,{styles:R}),j=({scope:e=""})=>(0,T.jsx)(P.xB,{styles:I`
      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;
      }

      ${R}
    `}),N=r(695),F=r(85607),L=r(45161),M={light:"chakra-ui-light",dark:"chakra-ui-dark"},B="chakra-ui-color-mode",z={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(B)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(B,e)}catch(e){}}},V=r(26245),$=()=>{};function U(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function q(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=z}=e,s="dark"===i?"dark":"light",[l,u]=(0,O.useState)(()=>U(a,s)),[c,d]=(0,O.useState)(()=>U(a)),{getSystemTheme:h,setClassName:f,setDataset:p,addListener:m}=(0,O.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,r={setDataset:e=>{let 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?M.dark:M.light),document.body.classList.remove(e?M.light:M.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let n=null!=(t=r.query().matches)?t:"dark"===e;return n?"dark":"light"},addListener(e){let 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(){let 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:o}),[o]),v="system"!==i||l?l:c,y=(0,O.useCallback)(e=>{let t="system"===e?h():e;u(t),f("dark"===t),p(t),a.set(t)},[a,h,f,p]);(0,V.G)(()=>{"system"===i&&d(h())},[]),(0,O.useEffect)(()=>{let e=a.get();if(e){y(e);return}if("system"===i){y("system");return}y(s)},[a,s,i,y]);let g=(0,O.useCallback)(()=>{y("dark"===v?"light":"dark")},[v,y]);(0,O.useEffect)(()=>{if(n)return m(y)},[n,m,y]);let b=(0,O.useMemo)(()=>({colorMode:null!=t?t:v,toggleColorMode:t?$:g,setColorMode:t?$:y,forced:void 0!==t}),[v,g,y,t]);return(0,T.jsx)(L.kc.Provider,{value:b,children:r})}q.displayName="ColorModeProvider";var G=r(76336),W=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,T.jsx)(G.u,{environment:s,disabled:u,children:t});return(0,T.jsx)(F.f6,{theme:a,cssVarsRoot:l,children:(0,T.jsxs)(q,{colorModeManager:r,options:a.config,children:[o?(0,T.jsx)(j,{scope:i}):(0,T.jsx)(D,{}),!c&&(0,T.jsx)(F.ZL,{}),n?(0,T.jsx)(N.h,{zIndex:n,children:d}):d]})})},H={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"}},Q={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"},Y={...Q,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"}},K={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{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},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{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"}},...H,sizes:Y,shadows:{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"},space:Q,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{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"}}},J=r(33179),{defineMultiStyleConfig:Z,definePartsStyle:X}=(0,J.D)(["stepper","step","title","description","indicator","separator","icon","number"]),ee=(0,J.gJ)("stepper-indicator-size"),et=(0,J.gJ)("stepper-icon-size"),er=(0,J.gJ)("stepper-title-font-size"),en=(0,J.gJ)("stepper-description-font-size"),ei=(0,J.gJ)("stepper-accent-color"),eo=Z({baseStyle:X(({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"},[ei.variable]:`colors.${e}.500`,_dark:{[ei.variable]:`colors.${e}.200`}},title:{fontSize:er.reference,fontWeight:"medium"},description:{fontSize:en.reference,color:"chakra-subtle-text"},number:{fontSize:er.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:et.reference,height:et.reference},indicator:{flexShrink:0,borderRadius:"full",width:ee.reference,height:ee.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ei.reference},"&[data-status=complete]":{bg:ei.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ei.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ee.reference} - 8px)`,top:`calc(${ee.reference} + 4px)`,insetStart:`calc(${ee.reference} / 2 - 1px)`}}})),sizes:{xs:X({stepper:{[ee.variable]:"sizes.4",[et.variable]:"sizes.3",[er.variable]:"fontSizes.xs",[en.variable]:"fontSizes.xs"}}),sm:X({stepper:{[ee.variable]:"sizes.6",[et.variable]:"sizes.4",[er.variable]:"fontSizes.sm",[en.variable]:"fontSizes.xs"}}),md:X({stepper:{[ee.variable]:"sizes.8",[et.variable]:"sizes.5",[er.variable]:"fontSizes.md",[en.variable]:"fontSizes.sm"}}),lg:X({stepper:{[ee.variable]:"sizes.10",[et.variable]:"sizes.6",[er.variable]:"fontSizes.lg",[en.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ea(e,t={}){let r=!1;function n(t){let r=["container","root"].includes(null!=t?t:"")?[e]:[e,t],n=r.filter(Boolean).join("__"),i=`chakra-${n}`,o={className:i,selector:`.${i}`,toString:()=>t};return o}return{parts:function(...i){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=n(e);return ea(e,t)},toPart:n,extend:function(...r){for(let e of r)e in t||(t[e]=n(e));return ea(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var es=ea("accordion").parts("root","container","button","panel").extend("icon"),el=ea("alert").parts("title","description","container").extend("icon","spinner"),eu=ea("avatar").parts("label","badge","container").extend("excessLabel","group"),ec=ea("breadcrumb").parts("link","item","container").extend("separator");ea("button").parts();var ed=ea("checkbox").parts("control","icon","container").extend("label");ea("progress").parts("track","filledTrack").extend("label");var eh=ea("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ef=ea("editable").parts("preview","input","textarea"),ep=ea("form").parts("container","requiredIndicator","helperText"),em=ea("formError").parts("text","icon"),ev=ea("input").parts("addon","field","element","group"),ey=ea("list").parts("container","item","icon"),eg=ea("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),eb=ea("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),e_=ea("numberinput").parts("root","field","stepperGroup","stepper");ea("pininput").parts("field");var ex=ea("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),eS=ea("progress").parts("label","filledTrack","track"),ew=ea("radio").parts("container","control","label"),ek=ea("select").parts("field","icon"),eE=ea("slider").parts("container","track","thumb","filledTrack","mark"),eT=ea("stat").parts("container","label","helpText","number","icon"),eO=ea("switch").parts("container","track","thumb","label"),eA=ea("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eC=ea("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eP=ea("tag").parts("container","label","closeButton"),eI=ea("card").parts("container","header","body","footer");function eR(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eD(e,t){var r,n;let i=function(e,t=""){return`--${function(e,t=""){return[t,eR(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(r="string"==typeof(n=null==t?void 0:t.fallback)?n:null==n?void 0:n.reference,`var(${eR(i)}${r?`, ${r}`:""})`)}}ea("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var ej=r(25432);function eN(e){return(0,ej.Kn)(e)&&e.reference?e.reference:String(e)}var eF=(e,...t)=>t.map(eN).join(` ${e} `).replace(/calc/g,""),eL=(...e)=>`calc(${eF("+",...e)})`,eM=(...e)=>`calc(${eF("-",...e)})`,eB=(...e)=>`calc(${eF("*",...e)})`,ez=(...e)=>`calc(${eF("/",...e)})`,eV=e=>{let t=eN(e);return null==t||Number.isNaN(parseFloat(t))?eB(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},e$=Object.assign(e=>({add:(...t)=>e$(eL(e,...t)),subtract:(...t)=>e$(eM(e,...t)),multiply:(...t)=>e$(eB(e,...t)),divide:(...t)=>e$(ez(e,...t)),negate:()=>e$(eV(e)),toString:()=>e.toString()}),{add:eL,subtract:eM,multiply:eB,divide:ez,negate:eV}),{defineMultiStyleConfig:eU,definePartsStyle:eq}=(0,J.D)(eO.keys),eG=eD("switch-track-width"),eW=eD("switch-track-height"),eH=eD("switch-track-diff"),eQ=e$.subtract(eG,eW),eY=eD("switch-thumb-x"),eK=eD("switch-bg"),eJ=(0,J.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eG.reference],height:[eW.reference],transitionProperty:"common",transitionDuration:"fast",[eK.variable]:"colors.gray.300",_dark:{[eK.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[eK.variable]:`colors.${t}.500`,_dark:{[eK.variable]:`colors.${t}.200`}},bg:eK.reference}}),eZ=(0,J.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eW.reference],height:[eW.reference],_checked:{transform:`translateX(${eY.reference})`}}),eX=eU({baseStyle:eq(e=>({container:{[eH.variable]:eQ,[eY.variable]:eH.reference,_rtl:{[eY.variable]:e$(eH).negate().toString()}},track:eJ(e),thumb:eZ})),sizes:{sm:eq({container:{[eG.variable]:"1.375rem",[eW.variable]:"sizes.3"}}),md:eq({container:{[eG.variable]:"1.875rem",[eW.variable]:"sizes.4"}}),lg:eq({container:{[eG.variable]:"2.875rem",[eW.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function e0(e,t){return r=>"dark"===r.colorMode?t:e}function e1(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:e2,definePartsStyle:e5}=(0,J.D)(eA.keys),e3=e5({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"}}),e4=(0,J.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),e6=e2({baseStyle:e3,variants:{simple:e5(e=>{let{colorScheme:t}=e;return{th:{color:e0("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},td:{borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},caption:{color:e0("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:e5(e=>{let{colorScheme:t}=e;return{th:{color:e0("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},td:{borderBottom:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e),...e4},caption:{color:e0("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:e0(`${t}.100`,`${t}.700`)(e)},td:{background:e0(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,J.k0)({})},sizes:{sm:e5({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:e5({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:e5({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 e9(e,t,r){return Math.min(Math.max(e,r),t)}var e7=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function e8(e){if("string"!=typeof e)throw new e7(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=ts.test(e)?function(e){let t=e.toLowerCase().trim(),r=tt[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 e7(e);return`#${r}`}(e):e;let r=tn.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(tr(e,2),16)),parseInt(tr(e[3]||"f",2),16)/255]}let n=ti.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=to.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=ta.exec(t);if(o){let[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(e9(0,100,r)!==r||e9(0,100,n)!==n)throw new e7(e);return[...tu(t,r,n),Number.isNaN(i)?1:i]}throw new e7(e)}let te=e=>parseInt(e.replace(/_/g,""),36),tt="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)=>{let r=te(t.substring(0,3)),n=te(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),tr=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),tn=RegExp(`^#${tr("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ti=RegExp(`^#${tr("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),to=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${tr(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ta=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,ts=/^[a-z]+$/i,tl=e=>Math.round(255*e),tu=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(tl);let i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=n-o/2,d=s+c,h=l+c,f=u+c;return[d,h,f].map(tl)};var tc=e=>0===Object.keys(e).length,td=(e,t,r)=>{let n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,n,i]=e8(e),o=e=>{let t=e9(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},th=e=>{let[t,r,n]=e8(e);return(299*t+587*r+114*n)/1e3},tf=e=>t=>{let r=td(t,e),n=th(r);return n<128?"dark":"light"},tp=e=>t=>"dark"===tf(e)(t),tm=(e,t)=>r=>{let n=td(r,e);return function(e,t){let[r,n,i,o]=e8(e);return`rgba(${e9(0,255,r).toFixed()}, ${e9(0,255,n).toFixed()}, ${e9(0,255,i).toFixed()}, ${parseFloat(e9(0,1,o-t).toFixed(3))})`}(n,1-t)};function tv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}var ty=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,tg=(0,J.gJ)("tabs-color"),tb=(0,J.gJ)("tabs-bg"),t_=(0,J.gJ)("tabs-border-color"),{defineMultiStyleConfig:tx,definePartsStyle:tS}=(0,J.D)(eC.keys),tw=(0,J.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tk=(0,J.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tE=(0,J.k0)(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}}),tT=(0,J.k0)({p:4}),tO=tx({baseStyle:tS(e=>({root:tw(e),tab:tk(e),tablist:tE(e),tabpanel:tT})),sizes:{sm:tS({tab:{py:1,px:4,fontSize:"sm"}}),md:tS({tab:{fontSize:"md",py:2,px:4}}),lg:tS({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:tS(e=>{let{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[tg.variable]:`colors.${t}.600`,_dark:{[tg.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[tb.variable]:"colors.gray.200",_dark:{[tb.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:tg.reference,bg:tb.reference}}}),enclosed:tS(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[t_.variable]:"transparent",_selected:{[tg.variable]:`colors.${t}.600`,[t_.variable]:"colors.white",_dark:{[tg.variable]:`colors.${t}.300`,[t_.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:t_.reference},color:tg.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":tS(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[tb.variable]:"colors.gray.50",_dark:{[tb.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[tb.variable]:"colors.white",[tg.variable]:`colors.${t}.600`,_dark:{[tb.variable]:"colors.gray.800",[tg.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:tg.reference,bg:tb.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":tS(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:td(r,`${t}.700`),bg:td(r,`${t}.100`)}}}}),"solid-rounded":tS(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[tg.variable]:"colors.gray.600",_dark:{[tg.variable]:"inherit"},_selected:{[tg.variable]:"colors.white",[tb.variable]:`colors.${t}.600`,_dark:{[tg.variable]:"colors.gray.800",[tb.variable]:`colors.${t}.300`}},color:tg.reference,bg:tb.reference}}}),unstyled:tS({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),tA=(0,J._6)("badge",["bg","color","shadow"]),tC=(0,J.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:tA.bg.reference,color:tA.color.reference,boxShadow:tA.shadow.reference}),tP=(0,J.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.500`,.6)(r);return{[tA.bg.variable]:`colors.${t}.500`,[tA.color.variable]:"colors.white",_dark:{[tA.bg.variable]:n,[tA.color.variable]:"colors.whiteAlpha.800"}}}),tI=(0,J.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.200`,.16)(r);return{[tA.bg.variable]:`colors.${t}.100`,[tA.color.variable]:`colors.${t}.800`,_dark:{[tA.bg.variable]:n,[tA.color.variable]:`colors.${t}.200`}}}),tR=(0,J.k0)(e=>{let{colorScheme:t,theme:r}=e,n=tm(`${t}.200`,.8)(r);return{[tA.color.variable]:`colors.${t}.500`,_dark:{[tA.color.variable]:n},[tA.shadow.variable]:`inset 0 0 0px 1px ${tA.color.reference}`}}),tD=(0,J.fj)({baseStyle:tC,variants:{solid:tP,subtle:tI,outline:tR},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:tj,definePartsStyle:tN}=(0,J.D)(eP.keys),tF=(0,J.gJ)("tag-bg"),tL=(0,J.gJ)("tag-color"),tM=(0,J.gJ)("tag-shadow"),tB=(0,J.gJ)("tag-min-height"),tz=(0,J.gJ)("tag-min-width"),tV=(0,J.gJ)("tag-font-size"),t$=(0,J.gJ)("tag-padding-inline"),tU=tN({container:(0,J.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[tL.variable]:tA.color.reference,[tF.variable]:tA.bg.reference,[tM.variable]:tA.shadow.reference,color:tL.reference,bg:tF.reference,boxShadow:tM.reference,borderRadius:"md",minH:tB.reference,minW:tz.reference,fontSize:tV.reference,px:t$.reference,_focusVisible:{[tM.variable]:"shadows.outline"}}),label:(0,J.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,J.k0)({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}})}),tq={sm:tN({container:{[tB.variable]:"sizes.5",[tz.variable]:"sizes.5",[tV.variable]:"fontSizes.xs",[t$.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tN({container:{[tB.variable]:"sizes.6",[tz.variable]:"sizes.6",[tV.variable]:"fontSizes.sm",[t$.variable]:"space.2"}}),lg:tN({container:{[tB.variable]:"sizes.8",[tz.variable]:"sizes.8",[tV.variable]:"fontSizes.md",[t$.variable]:"space.3"}})},tG=tj({variants:{subtle:tN(e=>{var t;return{container:null==(t=tD.variants)?void 0:t.subtle(e)}}),solid:tN(e=>{var t;return{container:null==(t=tD.variants)?void 0:t.solid(e)}}),outline:tN(e=>{var t;return{container:null==(t=tD.variants)?void 0:t.outline(e)}})},baseStyle:tU,sizes:tq,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tW,defineMultiStyleConfig:tH}=(0,J.D)(ev.keys),tQ=(0,J.gJ)("input-height"),tY=(0,J.gJ)("input-font-size"),tK=(0,J.gJ)("input-padding"),tJ=(0,J.gJ)("input-border-radius"),tZ=tW({addon:{height:tQ.reference,fontSize:tY.reference,px:tK.reference,borderRadius:tJ.reference},field:{width:"100%",height:tQ.reference,fontSize:tY.reference,px:tK.reference,borderRadius:tJ.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tX={lg:(0,J.k0)({[tY.variable]:"fontSizes.lg",[tK.variable]:"space.4",[tJ.variable]:"radii.md",[tQ.variable]:"sizes.12"}),md:(0,J.k0)({[tY.variable]:"fontSizes.md",[tK.variable]:"space.4",[tJ.variable]:"radii.md",[tQ.variable]:"sizes.10"}),sm:(0,J.k0)({[tY.variable]:"fontSizes.sm",[tK.variable]:"space.3",[tJ.variable]:"radii.sm",[tQ.variable]:"sizes.8"}),xs:(0,J.k0)({[tY.variable]:"fontSizes.xs",[tK.variable]:"space.2",[tJ.variable]:"radii.sm",[tQ.variable]:"sizes.6"})};function t0(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||e0("blue.500","blue.300")(e),errorBorderColor:r||e0("red.500","red.300")(e)}}var t1=tH({baseStyle:tZ,sizes:{lg:tW({field:tX.lg,group:tX.lg}),md:tW({field:tX.md,group:tX.md}),sm:tW({field:tX.sm,group:tX.sm}),xs:tW({field:tX.xs,group:tX.xs})},variants:{outline:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:e0("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n),boxShadow:`0 0 0 1px ${td(t,n)}`},_focusVisible:{zIndex:1,borderColor:td(t,r),boxShadow:`0 0 0 1px ${td(t,r)}`}},addon:{border:"1px solid",borderColor:e0("inherit","whiteAlpha.50")(e),bg:e0("gray.100","whiteAlpha.300")(e)}}}),filled:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:e0("gray.100","whiteAlpha.50")(e),_hover:{bg:e0("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n)},_focusVisible:{bg:"transparent",borderColor:td(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:e0("gray.100","whiteAlpha.50")(e)}}}),flushed:tW(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=t0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:td(t,n),boxShadow:`0px 1px 0px 0px ${td(t,n)}`},_focusVisible:{borderColor:td(t,r),boxShadow:`0px 1px 0px 0px ${td(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tW({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),t2=(0,J.k0)({...null==(n=t1.baseStyle)?void 0:n.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),t5={outline:(0,J.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,J.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,J.k0)(e=>{var t,r;return null!=(r=null==(t=t1.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(o=null==(i=t1.variants)?void 0:i.unstyled.field)?o:{}},t3={xs:null!=(s=null==(a=t1.sizes)?void 0:a.xs.field)?s:{},sm:null!=(u=null==(l=t1.sizes)?void 0:l.sm.field)?u:{},md:null!=(d=null==(c=t1.sizes)?void 0:c.md.field)?d:{},lg:null!=(f=null==(h=t1.sizes)?void 0:h.lg.field)?f:{}},t4=(0,J.fj)({baseStyle:t2,sizes:t3,variants:t5,defaultProps:{size:"md",variant:"outline"}}),t6=eD("tooltip-bg"),t9=eD("tooltip-fg"),t7=eD("popper-arrow-bg"),t8=(0,J.k0)({bg:t6.reference,color:t9.reference,[t6.variable]:"colors.gray.700",[t9.variable]:"colors.whiteAlpha.900",_dark:{[t6.variable]:"colors.gray.300",[t9.variable]:"colors.gray.900"},[t7.variable]:t6.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),re=(0,J.fj)({baseStyle:t8}),{defineMultiStyleConfig:rt,definePartsStyle:rr}=(0,J.D)(eS.keys),rn=(0,J.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=e0(tv(),tv("1rem","rgba(0,0,0,0.1)"))(e),a=e0(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    to right,
    transparent 0%,
    ${td(r,a)} 50%,
    transparent 100%
  )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),ri=(0,J.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),ro=(0,J.k0)(e=>({bg:e0("gray.100","whiteAlpha.300")(e)})),ra=(0,J.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...rn(e)})),rs=rr(e=>({label:ri,filledTrack:ra(e),track:ro(e)})),rl=rt({sizes:{xs:rr({track:{h:"1"}}),sm:rr({track:{h:"2"}}),md:rr({track:{h:"3"}}),lg:rr({track:{h:"4"}})},baseStyle:rs,defaultProps:{size:"md",colorScheme:"blue"}}),ru=e=>"function"==typeof e;function rc(e,...t){return ru(e)?e(...t):e}var{definePartsStyle:rd,defineMultiStyleConfig:rh}=(0,J.D)(ed.keys),rf=(0,J.gJ)("checkbox-size"),rp=(0,J.k0)(e=>{let{colorScheme:t}=e;return{w:rf.reference,h:rf.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:e0(`${t}.500`,`${t}.200`)(e),borderColor:e0(`${t}.500`,`${t}.200`)(e),color:e0("white","gray.900")(e),_hover:{bg:e0(`${t}.600`,`${t}.300`)(e),borderColor:e0(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:e0("gray.200","transparent")(e),bg:e0("gray.200","whiteAlpha.300")(e),color:e0("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:e0(`${t}.500`,`${t}.200`)(e),borderColor:e0(`${t}.500`,`${t}.200`)(e),color:e0("white","gray.900")(e)},_disabled:{bg:e0("gray.100","whiteAlpha.100")(e),borderColor:e0("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:e0("red.500","red.300")(e)}}}),rm=(0,J.k0)({_disabled:{cursor:"not-allowed"}}),rv=(0,J.k0)({userSelect:"none",_disabled:{opacity:.4}}),ry=(0,J.k0)({transitionProperty:"transform",transitionDuration:"normal"}),rg=rh({baseStyle:rd(e=>({icon:ry,container:rm,control:rc(rp,e),label:rv})),sizes:{sm:rd({control:{[rf.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:rd({control:{[rf.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:rd({control:{[rf.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rb,definePartsStyle:r_}=(0,J.D)(ew.keys),rx=(0,J.k0)(e=>{var t;let r=null==(t=rc(rg.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"}}}}),rS=rb({baseStyle:r_(e=>{var t,r;return{label:null==(t=rg.baseStyle)?void 0:t.call(rg,e).label,container:null==(r=rg.baseStyle)?void 0:r.call(rg,e).container,control:rx(e)}}),sizes:{md:r_({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:r_({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:r_({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rw,definePartsStyle:rk}=(0,J.D)(ek.keys),rE=(0,J.gJ)("select-bg"),rT=rk({field:(0,J.k0)({...null==(p=t1.baseStyle)?void 0:p.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rE.reference,[rE.variable]:"colors.white",_dark:{[rE.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rE.reference}}),icon:(0,J.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),rO=(0,J.k0)({paddingInlineEnd:"8"}),rA=rw({baseStyle:rT,sizes:{lg:{...null==(m=t1.sizes)?void 0:m.lg,field:{...null==(v=t1.sizes)?void 0:v.lg.field,...rO}},md:{...null==(y=t1.sizes)?void 0:y.md,field:{...null==(g=t1.sizes)?void 0:g.md.field,...rO}},sm:{...null==(b=t1.sizes)?void 0:b.sm,field:{...null==(_=t1.sizes)?void 0:_.sm.field,...rO}},xs:{...null==(x=t1.sizes)?void 0:x.xs,field:{...null==(S=t1.sizes)?void 0:S.xs.field,...rO},icon:{insetEnd:"1"}}},variants:t1.variants,defaultProps:t1.defaultProps}),rC=(0,J.gJ)("skeleton-start-color"),rP=(0,J.gJ)("skeleton-end-color"),rI=(0,J.k0)({[rC.variable]:"colors.gray.100",[rP.variable]:"colors.gray.400",_dark:{[rC.variable]:"colors.gray.800",[rP.variable]:"colors.gray.600"},background:rC.reference,borderColor:rP.reference,opacity:.7,borderRadius:"sm"}),rR=(0,J.fj)({baseStyle:rI}),rD=(0,J.gJ)("skip-link-bg"),rj=(0,J.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[rD.variable]:"colors.white",_dark:{[rD.variable]:"colors.gray.700"},bg:rD.reference}}),rN=(0,J.fj)({baseStyle:rj}),{defineMultiStyleConfig:rF,definePartsStyle:rL}=(0,J.D)(eE.keys),rM=(0,J.gJ)("slider-thumb-size"),rB=(0,J.gJ)("slider-track-size"),rz=(0,J.gJ)("slider-bg"),rV=(0,J.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...e1({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),r$=(0,J.k0)(e=>{let t=e1({orientation:e.orientation,horizontal:{h:rB.reference},vertical:{w:rB.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[rz.variable]:"colors.gray.200",_dark:{[rz.variable]:"colors.whiteAlpha.200"},_disabled:{[rz.variable]:"colors.gray.300",_dark:{[rz.variable]:"colors.whiteAlpha.300"}},bg:rz.reference}}),rU=(0,J.k0)(e=>{let{orientation:t}=e,r=e1({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)"}}});return{...r,w:rM.reference,h:rM.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"}}}),rq=(0,J.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rz.variable]:`colors.${t}.500`,_dark:{[rz.variable]:`colors.${t}.200`},bg:rz.reference}}),rG=rF({baseStyle:rL(e=>({container:rV(e),track:r$(e),thumb:rU(e),filledTrack:rq(e)})),sizes:{lg:rL({container:{[rM.variable]:"sizes.4",[rB.variable]:"sizes.1"}}),md:rL({container:{[rM.variable]:"sizes.3.5",[rB.variable]:"sizes.1"}}),sm:rL({container:{[rM.variable]:"sizes.2.5",[rB.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),rW=eD("spinner-size"),rH=(0,J.k0)({width:[rW.reference],height:[rW.reference]}),rQ={xs:(0,J.k0)({[rW.variable]:"sizes.3"}),sm:(0,J.k0)({[rW.variable]:"sizes.4"}),md:(0,J.k0)({[rW.variable]:"sizes.6"}),lg:(0,J.k0)({[rW.variable]:"sizes.8"}),xl:(0,J.k0)({[rW.variable]:"sizes.12"})},rY=(0,J.fj)({baseStyle:rH,sizes:rQ,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rK,definePartsStyle:rJ}=(0,J.D)(eT.keys),rZ=rK({baseStyle:rJ({container:{},label:(0,J.k0)({fontWeight:"medium"}),helpText:(0,J.k0)({opacity:.8,marginBottom:"2"}),number:(0,J.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,J.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rJ({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),rX=(0,J.gJ)("kbd-bg"),r0=(0,J.k0)({[rX.variable]:"colors.gray.100",_dark:{[rX.variable]:"colors.whiteAlpha.100"},bg:rX.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),r1=(0,J.fj)({baseStyle:r0}),r2=(0,J.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),r5=(0,J.fj)({baseStyle:r2}),{defineMultiStyleConfig:r3,definePartsStyle:r4}=(0,J.D)(ey.keys),r6=r3({baseStyle:r4({icon:(0,J.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:r9,definePartsStyle:r7}=(0,J.D)(eg.keys),r8=(0,J.gJ)("menu-bg"),ne=(0,J.gJ)("menu-shadow"),nt=(0,J.k0)({[r8.variable]:"#fff",[ne.variable]:"shadows.sm",_dark:{[r8.variable]:"colors.gray.700",[ne.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:r8.reference,boxShadow:ne.reference}),nr=(0,J.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[r8.variable]:"colors.gray.100",_dark:{[r8.variable]:"colors.whiteAlpha.100"}},_active:{[r8.variable]:"colors.gray.200",_dark:{[r8.variable]:"colors.whiteAlpha.200"}},_expanded:{[r8.variable]:"colors.gray.100",_dark:{[r8.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:r8.reference}),nn=(0,J.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),ni=(0,J.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),no=(0,J.k0)({opacity:.6}),na=(0,J.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ns=r9({baseStyle:r7({button:(0,J.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:nt,item:nr,groupTitle:nn,icon:ni,command:no,divider:na})}),{defineMultiStyleConfig:nl,definePartsStyle:nu}=(0,J.D)(eb.keys),nc=(0,J.gJ)("modal-bg"),nd=(0,J.gJ)("modal-shadow"),nh=(0,J.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nf=(0,J.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),np=(0,J.k0)(e=>{let{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,[nc.variable]:"colors.white",[nd.variable]:"shadows.lg",_dark:{[nc.variable]:"colors.gray.700",[nd.variable]:"shadows.dark-lg"},bg:nc.reference,boxShadow:nd.reference}}),nm=(0,J.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),nv=(0,J.k0)({position:"absolute",top:"2",insetEnd:"3"}),ny=(0,J.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),ng=(0,J.k0)({px:"6",py:"4"});function nb(e){return"full"===e?nu({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):nu({dialog:{maxW:e}})}var n_=nl({baseStyle:nu(e=>({overlay:nh,dialogContainer:rc(nf,e),dialog:rc(np,e),header:nm,closeButton:nv,body:rc(ny,e),footer:ng})),sizes:{xs:nb("xs"),sm:nb("sm"),md:nb("md"),lg:nb("lg"),xl:nb("xl"),"2xl":nb("2xl"),"3xl":nb("3xl"),"4xl":nb("4xl"),"5xl":nb("5xl"),"6xl":nb("6xl"),full:nb("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:nx,definePartsStyle:nS}=(0,J.D)(e_.keys),nw=eD("number-input-stepper-width"),nk=eD("number-input-input-padding"),nE=e$(nw).add("0.5rem").toString(),nT=eD("number-input-bg"),nO=eD("number-input-color"),nA=eD("number-input-border-color"),nC=(0,J.k0)({[nw.variable]:"sizes.6",[nk.variable]:nE}),nP=(0,J.k0)(e=>{var t,r;return null!=(r=null==(t=rc(t1.baseStyle,e))?void 0:t.field)?r:{}}),nI=(0,J.k0)({width:nw.reference}),nR=(0,J.k0)({borderStart:"1px solid",borderStartColor:nA.reference,color:nO.reference,bg:nT.reference,[nO.variable]:"colors.chakra-body-text",[nA.variable]:"colors.chakra-border-color",_dark:{[nO.variable]:"colors.whiteAlpha.800",[nA.variable]:"colors.whiteAlpha.300"},_active:{[nT.variable]:"colors.gray.200",_dark:{[nT.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function nD(e){var t,r,n;let i=null==(t=t1.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=H.fontSizes[a];return nS({field:{...i.field,paddingInlineEnd:nk.reference,verticalAlign:"top"},stepper:{fontSize:e$(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var nj=nx({baseStyle:nS(e=>{var t;return{root:nC,field:null!=(t=rc(nP,e))?t:{},stepperGroup:nI,stepper:nR}}),sizes:{xs:nD("xs"),sm:nD("sm"),md:nD("md"),lg:nD("lg")},variants:t1.variants,defaultProps:t1.defaultProps}),nN=(0,J.k0)({...null==(w=t1.baseStyle)?void 0:w.field,textAlign:"center"}),nF={lg:(0,J.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,J.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,J.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,J.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},nL={outline:(0,J.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,J.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,J.k0)(e=>{var t,r,n;return null!=(n=null==(r=rc(null==(t=t1.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(E=null==(k=t1.variants)?void 0:k.unstyled.field)?E:{}},nM=(0,J.fj)({baseStyle:nN,sizes:nF,variants:nL,defaultProps:t1.defaultProps}),{defineMultiStyleConfig:nB,definePartsStyle:nz}=(0,J.D)(ex.keys),nV=eD("popper-bg"),n$=eD("popper-arrow-bg"),nU=eD("popper-arrow-shadow-color"),nq=nB({baseStyle:nz({popper:(0,J.k0)({zIndex:10}),content:(0,J.k0)({[nV.variable]:"colors.white",bg:nV.reference,[n$.variable]:nV.reference,[nU.variable]:"colors.gray.200",_dark:{[nV.variable]:"colors.gray.700",[nU.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,J.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,J.k0)({px:3,py:2}),footer:(0,J.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,J.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:nG,defineMultiStyleConfig:nW}=(0,J.D)(eh.keys),nH=(0,J.gJ)("drawer-bg"),nQ=(0,J.gJ)("drawer-box-shadow");function nY(e){return"full"===e?nG({dialog:{maxW:"100vw",h:"100vh"}}):nG({dialog:{maxW:e}})}var nK=(0,J.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nJ=(0,J.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),nZ=(0,J.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[nH.variable]:"colors.white",[nQ.variable]:"shadows.lg",_dark:{[nH.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},bg:nH.reference,boxShadow:nQ.reference}}),nX=(0,J.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),n0=(0,J.k0)({position:"absolute",top:"2",insetEnd:"3"}),n1=(0,J.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),n2=(0,J.k0)({px:"6",py:"4"}),n5=nW({baseStyle:nG(e=>({overlay:nK,dialogContainer:nJ,dialog:rc(nZ,e),header:nX,closeButton:n0,body:n1,footer:n2})),sizes:{xs:nY("xs"),sm:nY("md"),md:nY("lg"),lg:nY("2xl"),xl:nY("4xl"),full:nY("full")},defaultProps:{size:"xs"}}),{definePartsStyle:n3,defineMultiStyleConfig:n4}=(0,J.D)(ef.keys),n6=n4({baseStyle:n3({preview:(0,J.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,J.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,J.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:n9,defineMultiStyleConfig:n7}=(0,J.D)(ep.keys),n8=(0,J.gJ)("form-control-color"),ie=n7({baseStyle:n9({container:{width:"100%",position:"relative"},requiredIndicator:(0,J.k0)({marginStart:"1",[n8.variable]:"colors.red.500",_dark:{[n8.variable]:"colors.red.300"},color:n8.reference}),helperText:(0,J.k0)({mt:"2",[n8.variable]:"colors.gray.600",_dark:{[n8.variable]:"colors.whiteAlpha.600"},color:n8.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:it,defineMultiStyleConfig:ir}=(0,J.D)(em.keys),ii=(0,J.gJ)("form-error-color"),io=ir({baseStyle:it({text:(0,J.k0)({[ii.variable]:"colors.red.500",_dark:{[ii.variable]:"colors.red.300"},color:ii.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,J.k0)({marginEnd:"0.5em",[ii.variable]:"colors.red.500",_dark:{[ii.variable]:"colors.red.300"},color:ii.reference})})}),ia=(0,J.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),is=(0,J.fj)({baseStyle:ia}),il=(0,J.k0)({fontFamily:"heading",fontWeight:"bold"}),iu={"4xl":(0,J.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,J.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,J.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,J.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,J.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,J.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,J.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,J.k0)({fontSize:"sm",lineHeight:1.2})},ic=(0,J.fj)({baseStyle:il,sizes:iu,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:id,definePartsStyle:ih}=(0,J.D)(ec.keys),ip=(0,J.gJ)("breadcrumb-link-decor"),im=id({baseStyle:ih({link:(0,J.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ip.reference,[ip.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ip.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),iv=(0,J.k0)({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"}}}),iy=(0,J.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:e0("gray.800","whiteAlpha.900")(e),_hover:{bg:e0("gray.100","whiteAlpha.200")(e)},_active:{bg:e0("gray.200","whiteAlpha.300")(e)}};let n=tm(`${t}.200`,.12)(r),i=tm(`${t}.200`,.24)(r);return{color:e0(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:e0(`${t}.50`,n)(e)},_active:{bg:e0(`${t}.100`,i)(e)}}}),ig=(0,J.k0)(e=>{let{colorScheme:t}=e,r=e0("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"},...rc(iy,e)}}),ib={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},i_=(0,J.k0)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=e0("gray.100","whiteAlpha.200")(e);return{bg:t,color:e0("gray.800","whiteAlpha.900")(e),_hover:{bg:e0("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:e0("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=ib[r])?t:{},s=e0(n,`${r}.200`)(e);return{bg:s,color:e0(i,"gray.800")(e),_hover:{bg:e0(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:e0(a,`${r}.400`)(e)}}}),ix=(0,J.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:e0(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:e0(`${t}.700`,`${t}.500`)(e)}}}),iS=(0,J.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),iw={lg:(0,J.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,J.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,J.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,J.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},ik=(0,J.fj)({baseStyle:iv,variants:{ghost:iy,outline:ig,solid:i_,link:ix,unstyled:iS},sizes:iw,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:iE,defineMultiStyleConfig:iT}=(0,J.D)(eI.keys),iO=(0,J.gJ)("card-bg"),iA=(0,J.gJ)("card-padding"),iC=(0,J.gJ)("card-shadow"),iP=(0,J.gJ)("card-radius"),iI=(0,J.gJ)("card-border-width","0"),iR=(0,J.gJ)("card-border-color"),iD=iE({container:{[iO.variable]:"colors.chakra-body-bg",backgroundColor:iO.reference,boxShadow:iC.reference,borderRadius:iP.reference,color:"chakra-body-text",borderWidth:iI.reference,borderColor:iR.reference},body:{padding:iA.reference,flex:"1 1 0%"},header:{padding:iA.reference},footer:{padding:iA.reference}}),ij={sm:iE({container:{[iP.variable]:"radii.base",[iA.variable]:"space.3"}}),md:iE({container:{[iP.variable]:"radii.md",[iA.variable]:"space.5"}}),lg:iE({container:{[iP.variable]:"radii.xl",[iA.variable]:"space.7"}})},iN=iT({baseStyle:iD,variants:{elevated:iE({container:{[iC.variable]:"shadows.base",_dark:{[iO.variable]:"colors.gray.700"}}}),outline:iE({container:{[iI.variable]:"1px",[iR.variable]:"colors.chakra-border-color"}}),filled:iE({container:{[iO.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[iA.variable]:0},header:{[iA.variable]:0},footer:{[iA.variable]:0}}},sizes:ij,defaultProps:{variant:"elevated",size:"md"}}),iF=eD("close-button-size"),iL=eD("close-button-bg"),iM=(0,J.k0)({w:[iF.reference],h:[iF.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[iL.variable]:"colors.blackAlpha.100",_dark:{[iL.variable]:"colors.whiteAlpha.100"}},_active:{[iL.variable]:"colors.blackAlpha.200",_dark:{[iL.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:iL.reference}),iB={lg:(0,J.k0)({[iF.variable]:"sizes.10",fontSize:"md"}),md:(0,J.k0)({[iF.variable]:"sizes.8",fontSize:"xs"}),sm:(0,J.k0)({[iF.variable]:"sizes.6",fontSize:"2xs"})},iz=(0,J.fj)({baseStyle:iM,sizes:iB,defaultProps:{size:"md"}}),{variants:iV,defaultProps:i$}=tD,iU=(0,J.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:tA.bg.reference,color:tA.color.reference,boxShadow:tA.shadow.reference}),iq=(0,J.fj)({baseStyle:iU,variants:iV,defaultProps:i$}),iG=(0,J.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),iW=(0,J.fj)({baseStyle:iG}),iH=(0,J.k0)({opacity:.6,borderColor:"inherit"}),iQ=(0,J.k0)({borderStyle:"solid"}),iY=(0,J.k0)({borderStyle:"dashed"}),iK=(0,J.fj)({baseStyle:iH,variants:{solid:iQ,dashed:iY},defaultProps:{variant:"solid"}}),{definePartsStyle:iJ,defineMultiStyleConfig:iZ}=(0,J.D)(es.keys),iX=iZ({baseStyle:iJ({container:(0,J.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,J.k0)({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,J.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,J.k0)({fontSize:"1.25em"})})}),{definePartsStyle:i0,defineMultiStyleConfig:i1}=(0,J.D)(el.keys),i2=(0,J.gJ)("alert-fg"),i5=(0,J.gJ)("alert-bg");function i3(e){let{theme:t,colorScheme:r}=e,n=tm(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var i4=i1({baseStyle:i0({container:{bg:i5.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:i2.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:i2.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark}}}}),"left-accent":i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:i2.reference}}}),"top-accent":i0(e=>{let{colorScheme:t}=e,r=i3(e);return{container:{[i2.variable]:`colors.${t}.600`,[i5.variable]:r.light,_dark:{[i2.variable]:`colors.${t}.200`,[i5.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:i2.reference}}}),solid:i0(e=>{let{colorScheme:t}=e;return{container:{[i2.variable]:"colors.white",[i5.variable]:`colors.${t}.600`,_dark:{[i2.variable]:"colors.gray.900",[i5.variable]:`colors.${t}.200`},color:i2.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:i6,defineMultiStyleConfig:i9}=(0,J.D)(eu.keys),i7=(0,J.gJ)("avatar-border-color"),i8=(0,J.gJ)("avatar-bg"),oe=(0,J.gJ)("avatar-font-size"),ot=(0,J.gJ)("avatar-size"),or=(0,J.k0)({borderRadius:"full",border:"0.2em solid",borderColor:i7.reference,[i7.variable]:"white",_dark:{[i7.variable]:"colors.gray.800"}}),on=(0,J.k0)({bg:i8.reference,fontSize:oe.reference,width:ot.reference,height:ot.reference,lineHeight:"1",[i8.variable]:"colors.gray.200",_dark:{[i8.variable]:"colors.whiteAlpha.400"}}),oi=(0,J.k0)(e=>{let{name:t,theme:r}=e,n=t?function(e){var t;let r=ty();return!e||tc(e)?r:e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;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 r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){let n=t>>8*e&255;r+=`00${n.toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}({string:t}):"colors.gray.400",i=tp(n)(r),o="white";return i||(o="gray.800"),{bg:i8.reference,fontSize:oe.reference,color:o,borderColor:i7.reference,verticalAlign:"top",width:ot.reference,height:ot.reference,"&:not([data-loaded])":{[i8.variable]:n},[i7.variable]:"colors.white",_dark:{[i7.variable]:"colors.gray.800"}}}),oo=(0,J.k0)({fontSize:oe.reference,lineHeight:"1"});function oa(e){let t="100%"!==e?Y[e]:void 0;return i6({container:{[ot.variable]:null!=t?t:e,[oe.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[ot.variable]:null!=t?t:e,[oe.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var os=i9({baseStyle:i6(e=>({badge:rc(or,e),excessLabel:rc(on,e),container:rc(oi,e),label:oo})),sizes:{"2xs":oa(4),xs:oa(6),sm:oa(8),md:oa(12),lg:oa(16),xl:oa(24),"2xl":oa(32),full:oa("100%")},defaultProps:{size:"md"}}),ol={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"}}},ou={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"}}},oc={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},od={semanticTokens:ol,direction:"ltr",...K,components:{Accordion:iX,Alert:i4,Avatar:os,Badge:tD,Breadcrumb:im,Button:ik,Checkbox:rg,CloseButton:iz,Code:iq,Container:iW,Divider:iK,Drawer:n5,Editable:n6,Form:ie,FormError:io,FormLabel:is,Heading:ic,Input:t1,Kbd:r1,Link:r5,List:r6,Menu:ns,Modal:n_,NumberInput:nj,PinInput:nM,Popover:nq,Progress:rl,Radio:rS,Select:rA,Skeleton:rR,SkipLink:rN,Slider:rG,Spinner:rY,Stat:rZ,Switch:eX,Table:e6,Tabs:tO,Tag:tG,Textarea:t4,Tooltip:re,Card:iN,Stepper:eo},styles:ou,config:oc},oh={semanticTokens:ol,direction:"ltr",components:{},...K,styles:ou,config:oc},of=(e,t)=>e.find(e=>e.id===t);function op(e,t){let r=om(e,t),n=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:n}}function om(e,t){for(let[r,n]of Object.entries(e))if(of(n,t))return r}var ov=r(35155);function oy(e,t){let r=(0,O.useRef)(!1),n=(0,O.useRef)(!1);(0,O.useEffect)(()=>{let t=r.current,i=t&&n.current;if(i)return e();n.current=!0},t),(0,O.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}var og=r(15947),ob=r(77672),o_=r(16914),ox={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",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]}}},oS=(0,O.memo)(e=>{let{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=ox,toastSpacing:c="0.5rem"}=e,[d,h]=(0,O.useState)(s),f=(0,og.hO)();oy(()=>{f||null==n||n()},[f]),oy(()=>{h(s)},[s]);let p=()=>{f&&i()};(0,O.useEffect)(()=>{f&&o&&i()},[f,o,i]),function(e,t){let r=(0,ov.W)(e);(0,O.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(p,d);let m=(0,O.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),v=(0,O.useMemo)(()=>(function(e){let t=e.includes("right"),r=e.includes("left"),n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}})(a),[a]);return(0,T.jsx)(ob.E.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>h(null),onHoverEnd:()=>h(s),custom:{position:a},style:v,children:(0,T.jsx)(o_.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:(0,ej.Pu)(r,{id:t,onClose:p})})})});oS.displayName="ToastComponent";var ow=r(36948);function ok(e){return(0,T.jsx)(ow.J,{viewBox:"0 0 24 24",...e,children:(0,T.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 oE=r(55227),oT=r(16554),oO=r(27603),oA=(0,P.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),oC=(0,oT.G)((e,t)=>{let r=(0,oO.mq)("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=(0,J.Lr)(e),u=(0,ej.cx)("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${oA} ${o} linear infinite`,...r};return(0,T.jsx)(o_.m.div,{ref:t,__css:c,className:u,...l,children:n&&(0,T.jsx)(o_.m.span,{srOnly:!0,children:n})})});oC.displayName="Spinner";var[oP,oI]=(0,oE.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[oR,oD]=(0,oE.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),oj={info:{icon:function(e){return(0,T.jsx)(ow.J,{viewBox:"0 0 24 24",...e,children:(0,T.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:ok,colorScheme:"orange"},success:{icon:function(e){return(0,T.jsx)(ow.J,{viewBox:"0 0 24 24",...e,children:(0,T.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:ok,colorScheme:"red"},loading:{icon:oC,colorScheme:"blue"}},oN=(0,oT.G)(function(e,t){var r;let{status:n="info",addRole:i=!0,...o}=(0,J.Lr)(e),a=null!=(r=e.colorScheme)?r:oj[n].colorScheme,s=(0,oO.jC)("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,T.jsx)(oP,{value:{status:n},children:(0,T.jsx)(oR,{value:s,children:(0,T.jsx)(o_.m.div,{"data-status":n,role:i?"alert":void 0,ref:t,...o,className:(0,ej.cx)("chakra-alert",e.className),__css:l})})})});function oF(e){let{status:t}=oI(),r=oj[t].icon,n=oD(),i="loading"===t?n.spinner:n.icon;return(0,T.jsx)(o_.m.span,{display:"inherit","data-status":t,...e,className:(0,ej.cx)("chakra-alert__icon",e.className),__css:i,children:e.children||(0,T.jsx)(r,{h:"100%",w:"100%"})})}oN.displayName="Alert",oF.displayName="AlertIcon";var oL=(0,oT.G)(function(e,t){let r=oD(),{status:n}=oI();return(0,T.jsx)(o_.m.div,{ref:t,"data-status":n,...e,className:(0,ej.cx)("chakra-alert__title",e.className),__css:r.title})});oL.displayName="AlertTitle";var oM=(0,oT.G)(function(e,t){let r=oD(),{status:n}=oI(),i={display:"inline",...r.description};return(0,T.jsx)(o_.m.div,{ref:t,"data-status":n,...e,className:(0,ej.cx)("chakra-alert__desc",e.className),__css:i})});function oB(e){return(0,T.jsx)(ow.J,{focusable:"false","aria-hidden":!0,...e,children:(0,T.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"})})}oM.displayName="AlertDescription";var oz=(0,oT.G)(function(e,t){let r=(0,oO.mq)("CloseButton",e),{children:n,isDisabled:i,__css:o,...a}=(0,J.Lr)(e);return(0,T.jsx)(o_.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:n||(0,T.jsx)(oB,{width:"1em",height:"1em"})})});oz.displayName="CloseButton";var oV=function(e){let t=e,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)=>{let r=function(e,t={}){var r,n;o$+=1;let i=null!=(r=t.id)?r:o$,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>oV.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n(e=>{var t,n;let o=i.includes("top"),a=o?[r,...null!=(t=e[i])?t:[]]:[...null!=(n=e[i])?n:[],r];return{...e,[i]:a}}),o},update:(e,t)=>{e&&n(r=>{let n={...r},{position:i,index:o}=op(n,e);return i&&-1!==o&&(n[i][o]={...n[i][o],...t,message:function(e={}){let{render:t,toastComponent:r=oU}=e;return n=>"function"==typeof t?t({...n,...e}):(0,T.jsx)(r,{...n,...e})}(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=>{let r=om(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!op(oV.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),o$=0,oU=e=>{let{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,T.jsxs)(oN,{addRole:!1,status:t,variant:r,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,T.jsx)(oF,{children:u}),(0,T.jsxs)(o_.m.div,{flex:"1",maxWidth:"100%",children:[i&&(0,T.jsx)(oL,{id:null==c?void 0:c.title,children:i}),s&&(0,T.jsx)(oM,{id:null==c?void 0:c.description,display:"block",children:s})]}),o&&(0,T.jsx)(oz,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})},oq=r(51526),oG=r(1702),[oW,oH]=(0,oE.k)({name:"ToastOptionsContext",strict:!1}),oQ=e=>{let t=(0,O.useSyncExternalStore)(oV.subscribe,oV.getState,oV.getState),{motionVariants:r,component:n=oS,portalProps:i}=e,o=Object.keys(t),a=o.map(e=>{let i=t[e];return(0,T.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:function(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,r=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,n=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";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:t,bottom:r,right:n,left:i}}(e),children:(0,T.jsx)(oq.M,{initial:!1,children:i.map(e=>(0,T.jsx)(n,{motionVariants:r,...e},e.id))})},e)});return(0,T.jsx)(oG.h,{...i,children:a})},oY=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,T.jsxs)(W,{theme:r,...i,children:[(0,T.jsx)(oW,{value:null==n?void 0:n.defaultOptions,children:t}),(0,T.jsx)(oQ,{...n})]})};oY(od);var oK=oY(oh),oJ=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],oZ=r(38554);function oX(e){return"function"==typeof e}var o0=e=>function(...t){var r;let n=[...t],i=t[t.length-1];return(r=i,(0,ej.Kn)(r)&&oJ.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&n.length>1)?n=n.slice(0,n.length-1):i=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...n.map(e=>t=>oX(e)?e(t):function(...e){return oZ({},...e,o2)}(t,e)))(i)},o1=o0(od);function o2(e,t,r,n){if((oX(e)||oX(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{let n=oX(e)?e(...r):e,i=oX(t)?t(...r):t;return oZ({},n,i,o2)}}o0(oh);let o5=(0,J.k0)({background:"berryBridge.200",color:"berryBridge.500"}),o3=(0,J.k0)({background:"braveBlue.500",color:"gray.0"}),o4=(0,J.fj)({baseStyle:{fontFamily:"Figtree, serif",fontWeight:"normal",fontSize:"14px",borderRadius:"xl",padding:"2px 10px",margin:"0px 6px",height:"24px",textTransform:"initial"},variants:{primary:o5,secondary:o3}}),o6=o1({breakpoints:{sm:"420px",md:"768px",lg:"1024px",xl:"1296px","2xl":"1920px"},colors:{berryBridge:{200:"#e3c5d3",300:"#c99bb0",400:"#b06486",450:"#ab3f70",500:"#963862",900:"#4a1c30"},braveBlue:{200:"#d8ddf0",300:"#afb8d6",400:"#8b9cd6",500:"#617bd6",600:"#495dba",700:"#3c50a6",800:"#314394",900:"#22398a"},success:{200:"#4ade80",300:"#22c55e",400:"#16a34a",500:"#10652f",900:"#0e3b20"},warning:{100:"#fef3c7",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",700:"#d68a09"},error:{200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",700:"#c92424"},gray:{0:"#fff",50:"#fafafa",100:"#f5f5f5",200:"#e8eeed",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",1e3:"#000"},button:{blue:{200:"#d5d9e5",300:"#b6bdd6",400:"#7e93de",500:"#4d69d1",900:"#22398a"}},sky:"#c6dde7",skyLight:"#edf0f2",slate:"#96b2d9",coral:"#ff7c6f",yellow:"#edd780",yellowHover:"#f7e186",navy:"#22538b",indigo:"#24384c"},components:{Accordion:{parts:["container","button","panel","icon"],baseStyle:{button:{_hover:{bg:"white",color:"#963862"},fontFamily:"Figtree, serif",fontSize:"18px",backgroundColor:"white",border:"none",borderBottom:"1px solid #e2e2e2"},panel:{p:4,fontFamily:"Figtree, serif",fontSize:"18px",color:"black.500",textDecoration:"none",textDecorationLine:"none",_hover:{color:"red.500"}}},sizes:{sm:{button:{fontSize:"sm",px:4,py:3}},lg:{button:{fontSize:"lg",px:6,py:4}}},variants:{outline:{button:{border:"2px solid",borderColor:"green.500"}},solid:{button:{backgroundColor:"green.500",color:"white"}}}},Badge:o4},typography:{fonts:{body:"'Figtree', sans-serif",heading:"'Figtree', sans-serif"}}}),o9=e=>{let{children:t}=e;return(0,T.jsx)(oK,{theme:o6,resetCSS:!1,disableGlobalStyle:!0,children:t})};o9.propTypes={children:C().node.isRequired}},97980:function(e,t,r){"use strict";let n,i,o;r.d(t,{x:function(){return j},Z:function(){return N}});var a=r(82729),s=r(85893),l=r(36465),u=r.n(l),c=r(91),d=r(9779),h=r(81621),f=r(73359),p=r(78604),m=r(45697),v=r.n(m),y=r(67294),g=r(58172),b=r(37578),_=r(2232),x=r(49638),S=r(50178),w=r(9143),k=r(84730),E=r(54303),T=r(52107);function O(e,t){n.style.left=e-i+"px",n.style.top=t-o+"px"}function A(e){O(e.clientX,e.clientY)}function C(e){n=e.currentTarget;let t=e.clientY,r=e.clientX;i=r-n.getBoundingClientRect().left,o=t-n.getBoundingClientRect().top,O(r,t),document.removeEventListener("mousemove",A),document.addEventListener("mousemove",A),n.onmouseup=function(){document.removeEventListener("mousemove",A),n.onmouseup=null}}function P(){let{firstName:e,lastName:t}=(0,d.SE)();return(0,s.jsxs)("div",{onMouseDown:C,onDragStart:()=>!1,className:"jsx-39240f1d6e01e88a spyglass",children:[(0,s.jsx)(w.Z,{className:"cardBkgd",children:(0,s.jsxs)("div",{className:"jsx-39240f1d6e01e88a center",children:[(0,s.jsx)("h1",{className:"jsx-39240f1d6e01e88a marginTop--0 marginBottom--0",children:"Impersonation mode"}),(0,s.jsxs)("p",{className:"jsx-39240f1d6e01e88a",children:[e," ",t]}),(0,s.jsx)(E.Z,{size:T.i.SMALL,"data-qa":"exitImpersonation",onClick:()=>{var e;sessionStorage.removeItem(_.P_.IMPERSONATION),location.assign("".concat(null==window?void 0:null===(e=window.location)||void 0===e?void 0:e.protocol,"//").concat(k.cy.get((0,k.o8)())))},children:"Exit"})]})}),(0,s.jsx)(u(),{id:"39240f1d6e01e88a",children:".spyglass.jsx-39240f1d6e01e88a{max-width:100%;max-height:60vh;position:fixed;z-index:var(--zindex-impersonation);left:2vw;top:6px;font-size:1rem;opacity:.95;cursor:move;overflow-y:scroll}h1.jsx-39240f1d6e01e88a,p.jsx-39240f1d6e01e88a{font-size:16px;font-weight:bold}p.jsx-39240f1d6e01e88a{margin:6px 0}.cardBkgd{background-color:var(--warning-100)!important}"})]})}var I=r(4298),R=r.n(I);function D(){let e=(0,a._)(["\n    query GET_ME {\n        me {\n            emailAddress\n            # emailOptIn\n            firstName\n            unconfirmedSocialSignUp\n            id\n            lastName\n            photo {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            notificationSetting {\n                jen\n                dailyEmail\n            }\n        }\n    }\n"]);return D=function(){return e},e}"function"==typeof SuppressedError&&SuppressedError;let j=(0,h.Ps)(D());function N(e){let{children:t}=e,r=(0,b.LP)(_.P_.ACCESS_TOKEN),{isSignedIn:n}=(0,d.SE)(),i=(0,d.O_)();(0,y.useEffect)(()=>{let e;let t=(0,k.o8)(),r="".concat("CB2","_").concat(t);switch(t){case k.v1.LOCAL:e="localhost";break;case k.v1.TEST:e="caringbridge.cc";break;default:e="caringbridge.org"}if(!function(e,t){if(void 0===t&&(t=decodeURIComponent),"string"!=typeof e||!e)return null;var r=new RegExp("(?:^|; )".concat(e.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&"),"(?:=([^;]*))?(?:;|$)")).exec(document.cookie);return null===r?null:"function"==typeof t?t(r[1]):r[1]}(r)){var n,i,o,a,s;"object"==typeof(n={domain:e,expires:"1Y"})&&null!==n&&(i=n,n=encodeURIComponent),o=function(e){for(var t="",r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(/^expires$/i.test(i)){var o=e[i],a=void 0;"object"==typeof o?a=o:(o+="number"==typeof o?"D":"",a=function(e){var t=e.charAt(e.length-1),r=parseInt(e,10),n=new Date;switch(t){case"Y":n.setFullYear(n.getFullYear()+r);break;case"M":n.setMonth(n.getMonth()+r);break;case"D":n.setDate(n.getDate()+r);break;case"h":n.setHours(n.getHours()+r);break;case"m":n.setMinutes(n.getMinutes()+r);break;case"s":n.setSeconds(n.getSeconds()+r);break;default:n=new Date(e)}return n}(String(o))),t+=";".concat(i,"=").concat(a.toUTCString())}else/^secure$/.test(i)?e[i]&&(t+=";".concat(i)):t+=";".concat(i,"=").concat(e[i])}return Object.prototype.hasOwnProperty.call(e,"path")||(t+=";path=/"),t}(i||{}),a="function"==typeof n?n(1):1,s="".concat(r,"=").concat(a).concat(o),document.cookie=s}},[]);let[o,{data:a,error:l,called:h}]=(0,f.t)(j),m=(0,S.Ph)(S.Tx.IMPERSONATION),v=(0,y.useRef)(!1);r&&(m&&sessionStorage.setItem(_.P_.IMPERSONATION,m),v.current=!!sessionStorage.getItem(_.P_.IMPERSONATION),h||o()),(0,y.useEffect)(()=>{(null==a?void 0:a.me)&&i({type:d.xf.SET_USER,user:a.me}),(0,g.QP)(null==l?void 0:l.graphQLErrors,["me"],"401")&&i({type:d.xf.SIGN_OUT})},[a,l,i]),(0,y.useEffect)(()=>{r||i({type:d.xf.SIGN_OUT})},[r,i]);let w=!0===n||!1===n;return l&&null===n?(0,s.jsxs)(c.U,{children:[(0,s.jsx)(p.Z,{}),(0,s.jsx)("p",{children:JSON.stringify(l)})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(R(),{src:"https://kit.fontawesome.com/e76237fffd.js",crossOrigin:"anonymous"}),(0,s.jsx)("div",{id:"overlay-portal"}),v.current&&a&&(0,s.jsx)(P,{}),w&&t,w||(0,s.jsxs)("div",{className:"jsx-e55dc2dbbafbe6fd",children:[(0,s.jsx)(c.U,{children:(0,s.jsx)(x.ZP,{})}),(0,s.jsx)(u(),{id:"e55dc2dbbafbe6fd",children:"div.jsx-e55dc2dbbafbe6fd{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:100vh}"})]})]})}N.propTypes={children:v().node.isRequired}},18599:function(e,t,r){"use strict";r.d(t,{R4:function(){return h},WX:function(){return p},ZL:function(){return f},x_:function(){return l}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o);let s={bannerMap:new Map},l={APPEND_BANNER:"APPEND_BANNER",REMOVE_BANNER:"REMOVE_BANNER",CLEAR_ALL:"CLEAR_ALL"},u=(0,i.createContext)(s),c=(0,i.createContext)(void 0);function d(e,t){switch(t.type){case l.APPEND_BANNER:return t.bannerData&&!e.bannerMap.has(t.bannerData.sys.id)&&e.bannerMap.set(t.bannerData.sys.id,t.bannerData),{...e};case l.REMOVE_BANNER:return t.bannerData&&e.bannerMap.has(t.bannerData.sys.id)&&(e.bannerMap.delete(t.bannerData.sys.id),sessionStorage.setItem("showBanner-".concat(t.bannerData.sys.id),"false")),{...e};case l.CLEAR_ALL:return s.bannerMap.clear(),s;default:throw Error("Invalid action type provided to the bannerReducer: “".concat(t.type,"”"))}}function h(e){let{value:t,children:r}=e,o={...s,...t},[a,l]=(0,i.useReducer)(d,o);return(0,n.jsx)(u.Provider,{value:a,children:(0,n.jsx)(c.Provider,{value:l,children:r})})}function f(){let e=(0,i.useContext)(u);if(void 0===e)throw Error("useBannerState must be used within <BannerProvider>");return e}function p(){let e=(0,i.useContext)(c);if(void 0===e)throw Error("useBannerDispatch must be used within <BannerProvider>");return e}h.propTypes={value:a().object,children:a().node.isRequired}},9779:function(e,t,r){"use strict";let n;r.d(t,{O_:function(){return g},SE:function(){return y},fS:function(){return v},xf:function(){return h}});var i=r(85893),o=r(67294),a=r(45697),s=r.n(a),l=r(2232),u=r(66252),c=r(50178);let d={isSignedIn:null,id:"",firstName:"",lastName:"",emailAddress:"",emailOptIn:!1,photo:{},notificationSetting:{},unconfirmedSocialSignUp:!1},h={SET_USER:"SET_USER",SET_VALUE:"SET_VALUE",SIGN_OUT:"SIGN_OUT"},f=(0,o.createContext)(d),p=(0,o.createContext)(void 0);function m(e,t){switch(t.type){case h.SET_USER:{var r;let{id:n,emailAddress:i,firstName:o,lastName:a,photo:s,notificationSetting:l,unconfirmedSocialSignUp:u}=null!==(r=t.user)&&void 0!==r?r:d,c=s?{...s}:d.photo;return delete c.__typename,{...e,isSignedIn:!!i,id:n,firstName:o,lastName:a,emailAddress:i,photo:c,notificationSetting:l,unconfirmedSocialSignUp:u}}case h.SET_VALUE:{let r={};for(let[e,n]of Object.entries(t))"type"!==e&&(r[e]=n);return{...e,...r}}case h.SIGN_OUT:return localStorage.removeItem(l.P_.ACCESS_TOKEN),localStorage.removeItem(l.P_.REFRESH_TOKEN),window.location.pathname!==c.Z6.PROFILE_REGISTER_SSO_LOGIN&&localStorage.removeItem(l.P_.RETURN_TO),null==n||n.clearStore(),{...d,isSignedIn:!1};default:throw Error("Invalid action type provided to the userReducer")}}function v(e){let{children:t,userState:r={empty:!0}}=e;n=(0,u.x)();let a=r.empty?d:r,[s,l]=(0,o.useReducer)(m,{...a});return(0,i.jsx)(f.Provider,{value:s,children:(0,i.jsx)(p.Provider,{value:l,children:t})})}function y(){let e=(0,o.useContext)(f);if(void 0===e)throw Error("useUserContext must be used within <UserContext>");return e}function g(){let e=(0,o.useContext)(p);if(void 0===e)throw Error("useUserDispatchContext must be used within <UserContext>");return e}v.propTypes={children:s().node.isRequired,userState:s().object}},65179:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(85893),i=r(9008),o=r.n(i),a=r(19063);function s(){let{metadata:e}=(0,a.bh)(),t=null==e?void 0:e.title,r=null==e?void 0:e.description;return(0,n.jsxs)(o(),{children:[t&&(0,n.jsx)("title",{children:t}),t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"title",content:t}),(0,n.jsx)("meta",{property:"og:title",content:t})]}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"description",content:r}),(0,n.jsx)("meta",{property:"og:description",content:r})]})]})}},19063:function(e,t,r){"use strict";r.d(t,{bh:function(){return d},fc:function(){return c}});var n=r(85893),i=r(67294),o=r(45697),a=r.n(o),s=r(65179);let l={page:{metadata:{title:"CaringBridge",description:"A CaringBridge website is a personal health journal, rallying friends and family during any type of health journey. Start a free CaringBridge website today."}}},u=(0,i.createContext)(l);function c(e){let{children:t,value:r=l}=e;return(0,n.jsxs)(u.Provider,{value:r,children:[(0,n.jsx)(s.Z,{}),t]})}function d(){return(0,i.useContext)(u)}c.propTypes={value:a().object,children:a().node.isRequired}},67304:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(67294),i=r(50319),o=r(37887),a=r(88514),s=r(2232),l=r(37578),u=r(9779);function c(e){var t;let r=(0,l.LP)(s.P_.CB_SESSION),c=null===(t=JSON.parse(r))||void 0===t?void 0:t.sessionExpiredAt,d=c<Date.now()/1e3+5,{isSignedIn:h}=(0,u.SE)(),[f]=(0,i.D)(a.sJ,{onCompleted:e=>{var t;let{createSession:n}=e,i=(0,l.LP)(s.P_.CB_SESSION),o=null===(t=JSON.parse(r))||void 0===t?void 0:t.sessionExpiredAt,a=o<Date.now()/1e3+5;(!i||a)&&localStorage.setItem(s.P_.CB_SESSION,JSON.stringify(n))},onError(e){console.log("mutation createComment failed because ".concat(JSON.stringify(e)))}});return(0,n.useEffect)(()=>{e&&!h&&(!r||d)&&f({variables:{input:{siteId:e}}})},[h,r,d,f,e]),(0,o.a)(a.EF,{variables:{siteId:e},skip:!h&&(!r||d)||!e})}},88514:function(e,t,r){"use strict";r.d(t,{BP:function(){return z},EF:function(){return P},Gi:function(){return L},L8:function(){return j},Mh:function(){return C},P7:function(){return M},QI:function(){return N},QW:function(){return O},Qp:function(){return B},Sx:function(){return k},Xv:function(){return T},_u:function(){return D},bF:function(){return F},dL:function(){return V},fo:function(){return w},sJ:function(){return A},ug:function(){return R},vG:function(){return E},z7:function(){return I}});var n=r(82729),i=r(81621);function o(){let e=(0,n._)(["\n    mutation CREATE_POST($input: CreatePostInput!) {\n        createPost(input: $input) {\n            id\n            title\n            body\n            photos {\n                publicId\n                legacyPath\n                height\n                width\n            }\n            savedAsDraftAt\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    mutation UPDATE_POST($input: UpdatePostInput!) {\n        updatePost(input: $input) {\n            id\n            title\n            body\n            photos {\n                publicId\n                legacyPath\n                height\n                width\n            }\n            savedAsDraftAt\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    mutation DELETE_POST($input: deletePostInput!) {\n        deletePost(input: $input)\n    }\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n    mutation DELETE_WAYS_TO_HELP_POST($input: DeleteWaysToHelpPostInput!) {\n        deleteWaysToHelpPost(input: $input)\n    }\n"]);return l=function(){return e},e}function u(){let e=(0,n._)(["\n    mutation CREATE_SESSION($input: CreateSessionInput!) {\n        createSession(input: $input) {\n            sessionId\n            sessionExpiredAt\n        }\n    }\n"]);return u=function(){return e},e}function c(){let e=(0,n._)(["\n    query GET_PUBLIC_SITE($siteId: String!) {\n        getPublicSite(query: { id: $siteId }) {\n            firstName\n            lastName\n            title\n            photo {\n                publicId\n                height\n                width\n                legacyPath\n            }\n            posts {\n                firstPostDate\n                lastPostDate\n            }\n        }\n    }\n"]);return c=function(){return e},e}function d(){let e=(0,n._)(["\n    query GET_SITE_CORE($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            isShareableByVisitor\n            numTributes\n            createdAt\n            healthCondition\n            postConnection {\n                totalCount\n                posts {\n                    createdAt\n                }\n            }\n            tributeConnection {\n                totalDonorCount\n            }\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            numAuthors\n            isAuthor @client\n            isFollower @client\n        }\n    }\n"]);return d=function(){return e},e}function h(){let e=(0,n._)(["\n    query GET_SITE_VISITOR_COUNT($siteId: String!) {\n        getSite(query: { id: $siteId }) {\n            id\n            visitorConnection(query: { paginationInput: { limit: 1 } }) {\n                totalCount\n            }\n        }\n    }\n"]);return h=function(){return e},e}function f(){let e=(0,n._)(["\n    query GET_SITE_PAGE(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            isShareableByVisitor\n            isAuthor @client\n            isFollower @client\n            postConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                posts {\n                    id\n                    title\n                    createdAt\n                    author {\n                        id\n                        firstName\n                        lastName\n                        photo {\n                            publicId\n                            legacyPath\n                        }\n                    }\n                    body\n                    photos {\n                        publicId\n                        legacyPath\n                        width\n                        height\n                    }\n                    commentCount {\n                        totalDescendentCount\n                    }\n                    reactionGroupSummary {\n                        id\n                        contextualUserHasReacted\n                        totalCount\n                        type\n                    }\n                }\n            }\n        }\n    }\n"]);return f=function(){return e},e}function p(){let e=(0,n._)(["\n    query GET_FEED(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            firstName\n            lastName\n            numVisits\n            title\n            patientId\n            privacy\n            mainSitePhoto {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            context {\n                roles\n            }\n            isShareableByVisitor\n            isAuthor @client\n            isFollower @client\n            feedConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                pinnedFeeds {\n                    id\n                    type\n                    isPinned\n                    item {\n                        ... on Post {\n                            id\n                            title\n                            createdAt\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            body\n                            photos {\n                                publicId\n                                legacyPath\n                                width\n                                height\n                            }\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on WaysToHelpPost {\n                            id\n                            siteId\n                            siteTitle\n                            firstName\n                            lastName\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            type\n                            privileges\n                            url\n                            createdAt\n                            updatedAt\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                    }\n                }\n                feeds {\n                    id\n                    type\n                    isPinned\n                    item {\n                        ... on Post {\n                            id\n                            title\n                            createdAt\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            body\n                            photos {\n                                publicId\n                                legacyPath\n                                width\n                                height\n                            }\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                        ... on Tribute {\n                            id\n                            siteId\n                            createdAt\n                            message\n                            signature\n                            donor {\n                                firstName\n                                id\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                        }\n                        ... on WaysToHelpPost {\n                            id\n                            siteId\n                            siteTitle\n                            firstName\n                            lastName\n                            author {\n                                id\n                                firstName\n                                lastName\n                                photo {\n                                    publicId\n                                    legacyPath\n                                }\n                            }\n                            type\n                            url\n                            privileges\n                            createdAt\n                            updatedAt\n                            commentCount {\n                                totalDescendentCount\n                            }\n                            reactionGroupSummary {\n                                id\n                                contextualUserHasReacted\n                                totalCount\n                                type\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n"]);return p=function(){return e},e}function m(){let e=(0,n._)(["\n    query GET_TRIBUTES(\n        $siteId: String!\n        $limit: Int\n        $sortDirection: SortDirection\n        $nextToken: String\n    ) {\n        getSite(query: { id: $siteId }) {\n            id\n            isAuthor @client\n            isFollower @client\n            tributeConnection(\n                query: {\n                    paginationInput: {\n                        limit: $limit\n                        sortDirection: $sortDirection\n                        nextToken: $nextToken\n                    }\n                }\n            ) {\n                nextToken\n                totalCount\n                tributes {\n                    id\n                    siteId\n                    signature\n                    message\n                    createdAt\n                    donor {\n                        id\n                        firstName\n                        lastName\n                        photo {\n                            publicId\n                            legacyPath\n                        }\n                    }\n                }\n            }\n        }\n    }\n"]);return m=function(){return e},e}function v(){let e=(0,n._)(["\n    query GET_POST($postId: String!) {\n        getPost(query: { id: $postId }) {\n            id\n            title\n            createdAt\n            author {\n                firstName\n                lastName\n                photo {\n                    publicId\n                    legacyPath\n                }\n            }\n            body\n            photos {\n                publicId\n                legacyPath\n                width\n                height\n            }\n            commentCount {\n                totalDescendentCount\n            }\n            reactionGroupSummary {\n                id\n                contextualUserHasReacted\n                totalCount\n                type\n            }\n        }\n    }\n"]);return v=function(){return e},e}function y(){let e=(0,n._)(["\n    query GET_WAYS_TO_HELP_POST($waysToHelpPostId: String!) {\n        getWaysToHelpPost(query: { id: $waysToHelpPostId }) {\n            id\n            siteId\n            siteTitle\n            firstName\n            lastName\n            author {\n                id\n                firstName\n                lastName\n                photo {\n                    publicId\n                    legacyPath\n                }\n            }\n            type\n            url\n            privileges\n            createdAt\n            updatedAt\n            commentCount {\n                totalDescendentCount\n            }\n            reactionGroupSummary {\n                id\n                contextualUserHasReacted\n                totalCount\n                type\n            }\n            # commentCount {\n            #     totalDescendentCount\n            # }\n            # reactionGroupSummary {\n            #     id\n            #     contextualUserHasReacted\n            #     totalCount\n            #     type\n            # }\n        }\n    }\n"]);return y=function(){return e},e}function g(){let e=(0,n._)(["\n    mutation FOLLOW_PAGE($input: FollowSiteInput!) {\n        followSite(input: $input) {\n            isFollowing\n        }\n    }\n"]);return g=function(){return e},e}function b(){let e=(0,n._)(["\n    mutation UNFOLLOW_PAGE($input: UnfollowSiteInput!) {\n        unfollowSite(input: $input) {\n            isFollowing\n        }\n    }\n"]);return b=function(){return e},e}function _(){let e=(0,n._)(["\n    mutation PIN_FEED_ITEM($input: PinFeedItemInput) {\n        pinFeedItem(input: $input) {\n            feed {\n                id\n            }\n        }\n    }\n"]);return _=function(){return e},e}function x(){let e=(0,n._)(["\n    mutation UNPIN_FEED_ITEM($input: UnpinFeedItemInput) {\n        unpinFeedItem(input: $input) {\n            feed {\n                id\n            }\n        }\n    }\n"]);return x=function(){return e},e}function S(){let e=(0,n._)(["\n    query GET_DRAFTS($siteId: String!) {\n        getDrafts(input: { siteId: $siteId }) {\n            drafts {\n                id\n                title\n                body\n                createdAt\n                updatedAt\n                savedAsDraftAt\n                photos {\n                    publicId\n                    legacyPath\n                    width\n                    height\n                }\n            }\n        }\n    }\n"]);return S=function(){return e},e}let w={GET_SITE_PAGE:"GET_SITE_PAGE",GET_SITE_CORE:"GET_SITE_CORE",GET_POST:"GET_POST",GET_FEED:"GET_FEED"},k=(0,i.Ps)(o()),E=(0,i.Ps)(a()),T=(0,i.Ps)(s()),O=(0,i.Ps)(l()),A=(0,i.Ps)(u()),C=(0,i.Ps)(c()),P=(0,i.Ps)(d()),I=(0,i.Ps)(h()),R=(0,i.Ps)(f()),D=(0,i.Ps)(p()),j=(0,i.Ps)(m()),N=(0,i.Ps)(v()),F=(0,i.Ps)(y()),L=(0,i.Ps)(g()),M=(0,i.Ps)(b()),B=(0,i.Ps)(_()),z=(0,i.Ps)(x()),V=(0,i.Ps)(S())},6469:function(e,t,r){"use strict";r.d(t,{O:function(){return l},RR:function(){return c},Z:function(){return u}});var n=r(82729),i=r(81621);function o(){let e=(0,n._)(["\n    query GET_USER_SURVEYS {\n        getUserSurveys {\n            ... on IrbSurvey {\n                id\n                surveyType\n                dismissalCount\n                lastDismissedAt\n                completedAt\n            }\n            ... on UclaSurvey {\n                id\n                status\n                surveyCompletedCount\n                surveyType\n            }\n        }\n    }\n"]);return o=function(){return e},e}function a(){let e=(0,n._)(["\n    mutation UPDATE_IRB_SURVEY($input: IrbSurveyInput!) {\n        updateIrbSurvey(input: $input) {\n            survey {\n                id\n                surveyType\n                dismissalCount\n                lastDismissedAt\n                completedAt\n            }\n        }\n    }\n"]);return a=function(){return e},e}function s(){let e=(0,n._)(["\n    mutation UPDATE_UCLA_SURVEY($input: UpdateUclaSurveyInput!) {\n        updateUclaSurvey(input: $input) {\n            survey {\n                id\n                status\n                surveyCompletedCount\n                surveyType\n            }\n        }\n    }\n"]);return s=function(){return e},e}let l=(0,i.Ps)(o()),u=(0,i.Ps)(a()),c=(0,i.Ps)(s())},1884:function(e,t,r){"use strict";r.d(t,{m:function(){return h},y:function(){return f}});var n=r(85893),i=r(73359),o=r(45697),a=r.n(o),s=r(67294),l=r(6469),u=r(9779),c=r(96491);let d=(0,s.createContext)({activeSurveys:[],refetchSurveys:()=>{},fetchSurveys:()=>{},hasFetched:!1,isSignedIn:!1,setHasFetched:e=>{}}),h=e=>{let{children:t}=e,{isSignedIn:r}=(0,u.SE)(),[o,{data:a,refetch:h}]=(0,i.t)(l.O,{onCompleted:()=>{v(!0)}}),[f,p]=(0,s.useState)([]),[m,v]=(0,s.useState)(!1),y=(0,c.Pe)();(0,s.useEffect)(()=>{if(a&&(p(a.getUserSurveys),a.getUserSurveys)){let e=a.getUserSurveys.find(e=>"UCLA"===e.surveyType);e&&"ACTIVE"===e.status&&y({event:c.kM.SURVEY_ACTION,surveyType:e.surveyType,surveyPhase:e.surveyCompletedCount+1,action:"DISPLAY"})}},[a]);let g=(0,s.useCallback)(async()=>{await h()},[h]);return(0,n.jsx)(d.Provider,{value:{activeSurveys:f,refetchSurveys:g,fetchSurveys:o,hasFetched:m,isSignedIn:r,setHasFetched:v},children:t})};h.propTypes={children:a().node.isRequired};let f=()=>{let{activeSurveys:e,refetchSurveys:t,isSignedIn:r,fetchSurveys:n,hasFetched:i,setHasFetched:o}=(0,s.useContext)(d);return(0,s.useEffect)(()=>{let e=async()=>{await n()};!i&&r&&e()},[n,r,i,o]),{activeSurveys:e,refetchSurveys:t}}},13991:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81516:function(e,t){"use strict";function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95569:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let n=r(38754),i=n._(r(67294)),o=r(14532),a=r(83353),s=r(61410),l=r(79064),u=r(370),c=r(69955),d=r(24224),h=r(80508),f=r(81516),p=r(64266),m=r(13991),v=new Set;function y(e,t,r,n,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function g(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:v,children:b,prefetch:_=null,passHref:x,replace:S,shallow:w,scroll:k,locale:E,onClick:T,onMouseEnter:O,onTouchStart:A,legacyBehavior:C=!1,...P}=e;r=b,C&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let I=!1!==_,R=null===_?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,D=i.default.useContext(c.RouterContext),j=i.default.useContext(d.AppRouterContext),N=null!=D?D:j,F=!D,{href:L,as:M}=i.default.useMemo(()=>{if(!D){let e=g(s);return{href:e,as:v?g(v):e}}let[e,t]=(0,o.resolveHref)(D,s,!0);return{href:e,as:v?(0,o.resolveHref)(D,v):t||e}},[D,s,v]),B=i.default.useRef(L),z=i.default.useRef(M);C&&(n=i.default.Children.only(r));let V=C?n&&"object"==typeof n&&n.ref:t,[$,U,q]=(0,h.useIntersection)({rootMargin:"200px"}),G=i.default.useCallback(e=>{(z.current!==M||B.current!==L)&&(q(),z.current=M,B.current=L),$(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[M,V,L,q,$]);i.default.useEffect(()=>{N&&U&&I&&y(N,L,M,{locale:E},{kind:R},F)},[M,L,U,E,I,null==D?void 0:D.locale,N,F,R]);let W={ref:G,onClick(e){C||"function"!=typeof T||T(e),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,r,n,o,s,l,u,c,d){let{nodeName:h}=e.currentTarget,f="A"===h.toUpperCase();if(f&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:u,scroll:l}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?i.default.startTransition(p):p()}(e,N,L,M,S,w,k,E,F,I)},onMouseEnter(e){C||"function"!=typeof O||O(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&(I||!F)&&y(N,L,M,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:R},F)},onTouchStart(e){C||"function"!=typeof A||A(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&(I||!F)&&y(N,L,M,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:R},F)}};if((0,l.isAbsoluteUrl)(M))W.href=M;else if(!C||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==E?E:null==D?void 0:D.locale,t=(null==D?void 0:D.isLocaleDomain)&&(0,f.getDomainLocale)(M,e,null==D?void 0:D.locales,null==D?void 0:D.domainLocales);W.href=t||(0,p.addBasePath)((0,u.addLocale)(M,e,null==D?void 0:D.defaultLocale))}return C?i.default.cloneElement(n,W):i.default.createElement("a",{...P,...W},r)}),_=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80508:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(10029),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[f,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69578:function(e,t,r){var n=r(83454);r(2350);var i=r(67294),o=i&&"object"==typeof i&&"default"in i?i:{default:i};function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=void 0!==n,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?s:i;c(l(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a=document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},a(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t&&a(e,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},h={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return h[n]||(h[n]="jsx-"+d(e+"-"+r)),h[n]}function p(e,t){var r=e+t;return h[r]||(h[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[r]}var m=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=f(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),v=i.createContext(null);v.displayName="StyleSheetContext";var y=o.default.useInsertionEffect||o.default.useLayoutEffect,g=new m;function b(e){var t=g||i.useContext(v);return t&&y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}b.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=b},36465:function(e,t,r){"use strict";e.exports=r(69578).style},85305:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{default:function(){return eg}});var i=r(85893);r(47225),r(54721),r(56474);var o=r(82729),a=r(81621),s=r(57976),l=r(8819),u=r(80325),c=r(58172);let d=new l.h({typePolicies:{Photo:{keyFields:["publicId","legacyPath"]},PostConnection:{fields:{posts:{merge:h,read:e=>e}}},Query:{fields:{siteSearch15:{keyArgs:e=>{var t;return null==e?void 0:null===(t=e.query)||void 0===t?void 0:t.searchTerm}}}},Site:{fields:{isAuthor:{read(e,t){let r=t.readField("context");return(0,c.nu)(r,u.uU.AUTHOR)}},isFollower:{read(e,t){let r=t.readField("context");return(0,c.nu)(r,u.uU.FOLLOWER)}},postConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(t=e.query)||void 0===t?void 0:null===(r=t.paginationInput)||void 0===r?void 0:r.sortDirection}},tributeConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(t=e.query)||void 0===t?void 0:null===(r=t.paginationInput)||void 0===r?void 0:r.sortDirection}},visitorConnection:{keyArgs:e=>{var t,r;return null==e?void 0:null===(t=e.query)||void 0===t?void 0:null===(r=t.paginationInput)||void 0===r?void 0:r.sortDirection}}}},SiteSearch15Response:{fields:{sites:{merge:h,read:e=>e}}},TributeConnection:{fields:{tributes:{merge:h,read:e=>e}}},VisitorConnection:{fields:{visitors:{merge:h,read:e=>e}}}}});function h(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,{variables:n}=arguments.length>2?arguments[2]:void 0;if((null!=(e=null==n?void 0:n.nextToken)?e:"#noValue!")==="#noValue!"||""===e)return r;let i=[...t];return r.forEach(e=>{i.push(e)}),i}var f=r(18446),p=r.n(f);r(31905);var m=r(59508),v=r(86909).i.from,y=r(37865);let g={"X-Requested-With":"XMLHttpRequest"},b=(0,y.v)((e,t)=>{let{headers:r={}}=t;return{headers:{...r,...g}}});var _=r(2232);let x=(0,y.v)((e,t)=>{let{headers:r={}}=t,n=sessionStorage.getItem(_.P_.IMPERSONATION);return{headers:{...r,...n?{"x-impersonate-user":n}:{}}}});var S=r(37578);let w=(0,y.v)((e,t)=>{var r;let{headers:n={}}=t,i=(0,S.LP)(_.P_.CB_SESSION),o=null===(r=JSON.parse(i))||void 0===r?void 0:r.sessionId;return{headers:{...n,...o?{"cb-session":o}:{}}}});var k=r(84730),E=function(){let e;if((0,k.ZP)())return;let t=(e=!1,("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(e=!0),e),r=window.navigator.userAgent,n=function(){let e=window.devicePixelRatio;return e?96*e:96}(),i={viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,deviceWidth:window.screen.width,deviceHeight:window.screen.height,deviceAvailableWidth:window.screen.availWidth,deviceAvailableHeight:window.screen.availHeight};return{viewportWidth:i.viewportWidth,viewportHeight:i.viewportHeight,dotsPerInch:n,deviceWidth:i.deviceWidth,deviceHeight:i.deviceHeight,deviceAvailableWidth:i.deviceAvailableWidth,deviceAvailableHeight:i.deviceAvailableHeight,touchEnabled:t,userAgent:r}};let T=(0,y.v)(function(e,t){let{headers:r={}}=t,n={headers:{...r}};return function(e){let t=e.query.definitions;return!!Array.isArray(t)&&t.some(e=>"mutation"===e.operation)}(e)&&(n.headers["X-CB-Client-Metrics"]=JSON.stringify(E())),n}),O=new m.u({uri:"https://hgsvhqovbrbt3ivcfobjm5ip6y.appsync-api.us-east-2.amazonaws.com/graphql",credentials:"same-origin"}),A=[];A.push(b),A.push(x),A.push(S.ZP),A.push(w),A.push(T),A.push(O);var C=v(A),P=r(182),I=r(67294);function R(){let e=(0,o._)(["\n    extend type Site {\n        isAuthor: Boolean!\n        isFollower: Boolean!\n    }\n"]);return R=function(){return e},e}let D=(0,a.Ps)(R());var j=r(27354),N=r(85317),F=function(e){var t=e.client,r=e.children,n=(0,N.K)();return I.createElement(n.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,j.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,j.kG)(e.client,29),I.createElement(n.Provider,{value:e},r)})},L=r(18599),M=r(9779),B=r(97980),z=r(96491),V=r(4298),$=r.n(V),U=r(11163),q=r(67304);function G(){let e=(0,U.useRouter)(),{data:t,loading:r,error:n}=(0,q.Z)(e.query.siteId),o=(0,M.SE)(),[a,s]=(0,I.useState)([]);(0,I.useEffect)(()=>{let t=(e,t)=>{let{shallow:r}=t;r||s([])};return e.events.on("routeChangeComplete",t),()=>{e.events.off("routeChangeComplete",t)}},[e.asPath,e.events]);let{GTM_GA:l}=(0,z.YP)(),d=(0,z.Pe)(),h=(0,I.useCallback)(()=>{a.push(function(e,t){var r,n;let i=null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,o={};if(e){o.siteId=e.getSite.id;let r="Unknown";(0,c.nu)(e.getSite.context,u.uU.AUTHOR)?r="Author":(0,c.nu)(e.getSite.context,u.uU.FOLLOWER)?r="Follower":(0,c.nu)(e.getSite.context,u.uU.VISITOR)?r="Visitor":(0,c.nu)(e.getSite.context,u.uU.ANON)?r="Anonymous":(0,c.nu)(e.getSite.context,u.uU.CB_ADMIN)&&(r="Admin"),o.userRole=r;let i=(null===(n=e.getSite.waysToHelps)||void 0===n?void 0:n.filter(e=>e.type===u._Q.GO_FUND_ME).length)>0;o.siteGFM=i;let a=e.getSite.createdAt?new Date(Date.parse(e.getSite.createdAt)):null,s=e.getSite.postConnection.posts.map(e=>new Date(Date.parse(e.createdAt))),l=new Date(Math.max.apply(null,s));o.num_authors=e.getSite.numAuthors,o={...o,site_creation_date:W(a),posts_on_site:e.getSite.postConnection.totalCount,health_condition:e.getSite.healthCondition,last_post_date:W(l),visits:e.getSite.numVisits,isPatient:e.getSite.patientId===t.id}}return{...o,userId:i}}(t,o)),a.push({event:"plsPageview"}),a.forEach(e=>{d(e)})},[d,a,t,o]);return(0,I.useEffect)(()=>{!e.isReady||0!==a.length||r||n||h()},[e.isReady,a.length,t,r,n,h]),l?(0,i.jsx)($(),{id:"caringbridge_gtm",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','".concat(l,"');")}}):null}let W=e=>{let t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0");return"".concat(t,"/").concat(r,"/").concat(e.getFullYear())};var H=r(9008),Q=r.n(H),Y=r(45697),K=r.n(Y),J=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function Z(){return false}var X="https://va.vercel-scripts.com/v1/speed-insights",ee=`${X}/script.js`,et=`${X}/script.debug.js`;function er(e){let t=(0,I.useRef)(null);return(0,I.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if(!("undefined"!=typeof window)||null===e.route)return null;J();let r=!!e.dsn,n=e.scriptSrc||(r?ee:"/_vercel/speed-insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=n,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.0.10",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint&&(i.dataset.endpoint=e.endpoint),e.dsn&&(i.dataset.dsn=e.dsn),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework||"react",...e});r&&(t.current=r.setRoute)}},[e.route]),null}var en=r(5921),ei=r(587),eo=r(50178);function ea(){let e=(0,o._)(["\n    query GET_PUBLIC_SITE_SITEMAPS {\n        getSitesSitemapFileList {\n            files\n        }\n    }\n"]);return ea=function(){return e},e}let es=()=>"https://".concat(k.cy.get(k.Km.get("production"))),el=()=>{let e=(0,k.o8)();return e===k.v1.PROD||e===k.v1.LOCAL},eu=["/cms-preview","/components","/profile/reset-password","/404","/internal","/profile/settings"],ec=e=>!!(e&&e.startsWith("/site")),ed=e=>e===eo.Z6.SITE_PUBLIC_PAGE,eh=e=>e.split("?")[0],ef=(e,t)=>{if(e===eo.Z6.GIVE_DONATION)return new URL("/give/now",es()).href;let r=es(),n=eh(t);return new URL(n,r).href};(0,a.Ps)(ea());let ep=e=>{let{pathname:t,asPath:r}=e,n=eu.some(e=>t.startsWith(e)),o=(0,i.jsx)(Q(),{children:(0,i.jsx)("meta",{name:"robots",content:"noarchive, noindex, nofollow"})});return!n&&el()?ec(t)&&!ed(t)?o:(0,i.jsxs)(Q(),{children:[(0,i.jsx)("meta",{name:"robots",content:"archive, index, follow"}),(0,i.jsx)("link",{rel:"canonical",href:ef(t,r)})]}):o};ep.propTypes={pathname:K().string.isRequired,asPath:K().string.isRequired};var em=r(19063),ev=r(1884),ey=r(85991);function eg(e){let{Component:t,pageProps:r}=e,o=function(e){let t=e.__APOLLO_STATE__,r=(0,I.useMemo)(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null!=n?n:new s.f({ssrMode:!1,link:C,cache:d,typeDefs:D});if(e){let r=t.extract(),n=(0,P.Ee)(e,r,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!p()(e,t)))]});t.cache.restore(n)}return n||(n=t),t})(t),[t]);return r}(r),a=(0,U.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q(),{children:(0,i.jsx)("meta",{content:"initial-scale=1.0, width=device-width, user-scalable=yes, shrink-to-fit=no",name:"viewport"})}),(0,i.jsx)(er,{route:a.pathname}),(0,i.jsx)(F,{client:o,children:(0,i.jsx)(M.fS,{children:(0,i.jsx)(L.R4,{children:(0,i.jsxs)(B.Z,{children:[(0,i.jsx)(G,{}),(0,i.jsx)(ei.default,{}),(0,i.jsx)(en.J,{children:(0,i.jsx)(ey.z,{children:(0,i.jsxs)(ev.m,{children:[(0,i.jsx)(ep,{pathname:a.pathname,asPath:a.asPath}),(0,i.jsx)(em.fc,{children:(0,i.jsx)(t,{...r})})]})})})]})})})})]})}eg.propTypes={Component:K().elementType,pageProps:K().object}},587:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l}});var n=r(85893),i=r(11163),o=r.n(i),a=r(9779),s=r(50178);function l(){let{isSignedIn:e,unconfirmedSocialSignUp:t}=(0,a.SE)();return e&&t&&window.location.pathname!==s.Z6.PROFILE_REGISTER_CONFIRM_SSO_USER&&window.location.pathname!==s.Z6.PROFILE_REGISTER_SSO_LOGIN&&window.location.pathname!==s.Z6.LEGAL_PRIVACY_POLICY&&window.location.pathname!==s.Z6.LEGAL_TERMS_OF_USE&&o().push(s.Z6.PROFILE_REGISTER_CONFIRM_SSO_USER),(0,n.jsx)(n.Fragment,{})}},96491:function(e,t,r){"use strict";r.d(t,{RC:function(){return l},kM:function(){return s},YP:function(){return o},Pe:function(){return a}});var n=r(67294),i=r(84730);function o(){let e=(0,i.o8)();switch(e){case i.v1.PROD:return{GTM_GA:"GTM-5F7NF39C"};case i.v1.STAGE:return{GTM_GA:"GTM-KWZTZ39T"};case i.v1.TEST:case i.v1.BRANCH:return{GTM_GA:"GTM-5PBTQXB"};default:return{}}}function a(){let e=(0,n.useRef)({});return i.S_?t=>{var r;t.event=null!==(r=t.event)&&void 0!==r?r:"caringbridge.data",!function(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(e[n]!==t[n])return!1;return!0}(t,e.current)&&(e.current=t,window.dataLayer=window.dataLayer||[],window.dataLayer.push(t))}:()=>{}}let s={EMOJI_TYPE:"journalEmojiClick",COMMENTED:"commentLeft",CREATE_WELL_WISH:"wellWishCreate",CUSTOM_EVENT:"trackEvent",OPTIMIZE:"optimize_event",REACTED:"reactionClick",SAVE_JOURNAL_ENTRY:"journalEntry",JOURNAL_ENTRY:"journal_entry",JOURNAL_ENTRY_EDITED:"journal_edited",JOURNAL_ENTRY_DELETED:"journal_deleted",JOURNAL_ENTRY_PINNED:"journal_pinned",JOURNAL_ENTRY_UNPINNED:"journal_unpinned",NEW_ACCOUNT:"new_user_created",ACCOUNT_ERROR:"new_user_error",SIGN_IN:"sign_in",AUTH_ERROR:"sign_in_error",SSO_SIGN_IN:"sso_sign_in",SSO_AUTH_PROFILE_ERROR:"sso_profile_error",SSO_AUTH_ERROR:"sso_auth_error",SAS_PATIENT:"Step1_name",SAS_POST:"Step2_journal",SAS_PHOTO:"Step3_photo",SAS_PRIVACY:"Step4_privacy",NEW_SITE_CREATED:"new_site_created",COAUTHOR_INVITED:"co-author_invited",NEW_COAUTHOR:"new_co-author",FOLLOW_SITE:"follow_site",UNFOLLOW_SITE:"unfollow_site",EMAIL_SUBSCRIPTION:"email_subscription",EMAIL_UNSUBSCRIPTION:"email_unsubscription",TRACK_DONATION:"track_donation",SURVEY_ACTION:"survey_action",FACEBOOK_SHARE:"facebook_share",FACEBOOK_SHARE_ERROR:"facebook_share_error",DRAFT_POST_CREATED:"draft_post_created",DRAFT_POST_DELETED:"draft_post_deleted",DRAFT_POST_UPDATED:"draft_post_updated"},l={JEN_ONLY:"jen",DAS_ONLY:"das",JEN_DAS:"jen and das",OFF:"off"}},80325:function(e,t,r){"use strict";r.d(t,{F2:function(){return n},Ie:function(){return s},Jc:function(){return m},L8:function(){return i},NS:function(){return y},Sr:function(){return p},_Q:function(){return v},aj:function(){return u},lo:function(){return h},mR:function(){return l},u5:function(){return a},uU:function(){return f},uk:function(){return c},xP:function(){return o},xU:function(){return d}});let n={ACCEPT:"ACCEPT",DECLINE:"DECLINE"},i={COMMENT:"COMMENT",POST:"POST",WELLWISH:"WELLWISH",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},o={DELETE:"DELETE",EDIT:"EDIT",REACT:"REACT",REPLY_TO:"REPLY_TO"},a={POST:"POST",TRIBUTE:"TRIBUTE",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},s={API:"API",AUTO_SUBSCRIBE_SITE_INTERACTION:"AUTO_SUBSCRIBE_SITE_INTERACTION",CRITICAL_30_EMAIL:"CRITICAL_30_EMAIL",FOLLOW_BUTTON:"FOLLOW_BUTTON",FOLLOW_BUTTON_HEADER:"FOLLOW_BUTTON_HEADER",FOLLOW_BUTTON_HEADER_TOGGLE:"FOLLOW_BUTTON_HEADER_TOGGLE",FOLLOW_BUTTON_LOW_PRIVACY:"FOLLOW_BUTTON_LOW_PRIVACY",NOTIFICATIONS_PAGE:"NOTIFICATIONS_PAGE",NOTIFICATION_PREFERENCES:"NOTIFICATION_PREFERENCES",SITE_NOTIFICATIONS_PAGE:"SITE_NOTIFICATIONS_PAGE",TRIBUTE_MADE:"TRIBUTE_MADE"},l={ACCEPT:"ACCEPT",DECLINE:"DECLINE",DELETE:"DELETE",RESEND:"RESEND"},u={ACCEPTED:"ACCEPTED",DECLINED:"DECLINED",INVITED:"INVITED"},c={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM"},d={COMMENT:"COMMENT",POST:"POST",WELLWISH:"WELLWISH",WAYS_TO_HELP_POST:"WAYS_TO_HELP_POST"},h={AMP_HEART:"AMP_HEART",FOLDED_HANDS:"FOLDED_HANDS",HAPPY:"HAPPY",SAD:"SAD"},f={ANON:"ANON",AUTHOR:"AUTHOR",CB_ADMIN:"CB_ADMIN",FOLLOWER:"FOLLOWER",VISITOR:"VISITOR"},p={ASCENDING:"ASCENDING",DESCENDING:"DESCENDING"},m={AUTHOR:"AUTHOR",BLOCKED:"BLOCKED",NOT_ALLOWED:"NOT_ALLOWED",VISITOR:"VISITOR"},v={GO_FUND_ME:"GO_FUND_ME",MEAL_TRAIN:"MEAL_TRAIN"},y={PENDING:"PENDING",POSTED:"POSTED",DISMISSED:"DISMISSED"}},58172:function(e,t,r){"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#noMatch!",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#noMatch!";if(!e)return!1;let i=e.find(e=>{var i,o;let a=(null===(i=e.errorInfo)||void 0===i?void 0:i.code)===r,s=e.errorType===n,l=(o=e.path,!!(Array.isArray(t)&&Array.isArray(o))&&t.join()===o.join());return(a||s)&&l});return!!i&&(i.message||"​")}function i(e,t){return!!Array.isArray(null==e?void 0:e.roles)&&e.roles.includes(t)}r.d(t,{Jl:function(){return a},PX:function(){return o},QP:function(){return n},nu:function(){return i}});let o={ON_BLOCK_LIST:"ON_BLOCK_LIST",HIGH_CAN_REQUEST:"HIGH_CAN_REQUEST",HIGH_INVITE_ONLY:"HIGH_INVITE_ONLY"};function a(e){if(!Array.isArray(e))return null;let t=e.find(e=>e.path.includes("getSite")&&"403"===e.errorInfo.code);if(!t)return null;switch(t.errorType){case"MediumPrivacyForbidden":return o.ON_BLOCK_LIST;case"AccessRequestAllowedHighPrivacyForbidden":return o.HIGH_CAN_REQUEST;case"AccessRequestNotAllowedHighPrivacyForbidden":return o.HIGH_INVITE_ONLY;default:return null}}},37578:function(e,t,r){"use strict";r.d(t,{pt:function(){return p},ZP:function(){return y},LP:function(){return b}});var n=r(37865),i=r(2232);function o(e){this.message=e}o.prototype=Error(),o.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new o("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,a=0,s="";n=t.charAt(a++);~n&&(r=i%4?64*r+n:n,i++%4)&&(s+=String.fromCharCode(255&r>>(-2*i&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError";var l=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}},u=r(82729),c=r(81621);function d(){let e=(0,u._)(["\n    mutation REFRESH_TOKENS($refreshToken: String!) {\n        refreshTokens(input: { refreshToken: $refreshToken }) {\n            accessToken\n            refreshToken\n        }\n    }\n"]);return d=function(){return e},e}async function h(e){let t;let r="https://hgsvhqovbrbt3ivcfobjm5ip6y.appsync-api.us-east-2.amazonaws.com/graphql",n={operationName:"REFRESH_TOKENS",query:f.loc.source.body,variables:{refreshToken:e}},i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:p},credentials:"same-origin",body:JSON.stringify(n)};try{t=await fetch(r,i)}catch(e){return console.log("Could not fetch ".concat(r," because ").concat(JSON.stringify(e))),null}if(!t.ok)return console.log("Could not fetch ".concat(r," because the response was not ok.")),null;let{data:{refreshTokens:o}}=await t.json();return o}let f=(0,c.Ps)(d()),p="anonymousaccess",m=0,v=(0,n.v)((e,t)=>{let{headers:r={}}=t;return g(r)});var y=v;async function g(e){let t={headers:{...e,Authorization:p}},r=b(i.P_.ACCESS_TOKEN),n=b(i.P_.REFRESH_TOKEN);r||(m=0);let o=_(m);if(r&&n){var a,s;let u;if(o||(m=u=null===(a=l(r))||void 0===a?void 0:a.exp,"number"==typeof u&&_(u)))t={headers:{...e,Authorization:r}};else{let r=await h(n);r&&(r.accessToken?(localStorage.setItem(i.P_.ACCESS_TOKEN,r.accessToken),localStorage.setItem(i.P_.REFRESH_TOKEN,r.refreshToken)):(localStorage.removeItem(i.P_.ACCESS_TOKEN),localStorage.removeItem(i.P_.REFRESH_TOKEN),m=0),t={headers:{...e,Authorization:null!==(s=r.accessToken)&&void 0!==s?s:p}})}}return t}function b(e){return localStorage.getItem(e)?localStorage.getItem(e):null}function _(e){return e>Date.now()/1e3+5}},2232:function(e,t,r){"use strict";r.d(t,{Bs:function(){return h},CU:function(){return o},DW:function(){return d},Oh:function(){return i},P_:function(){return n},aV:function(){return f},lj:function(){return u},qx:function(){return l},yD:function(){return s},yW:function(){return c},zU:function(){return a}});let n={ACCESS_TOKEN:"accessToken",REFRESH_TOKEN:"refreshToken",RETURN_TO:"return_to",CB_SESSION:"cbSession",IMPERSONATION:"impUserId"},i=50,o=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,a=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[`~!@#$%^&*()_+=\-[{}\]|'":;<>?/.,]).{8,}$/,s=/^(?!\s*$).+/,l=/^[0-9]{6}/,u=/^(?! ).*[^\s]$/,c=/^https?:\/\/gofund\.me\/[a-zA-Z0-9]{8}/,d=/^https?:\/\/www\.gofundme\.com\/f\/[a-zA-Z0-9]/,h={X_SMALL:"420px",SMALL:"768px",MEDIUM:"1024px",LARGE:"1296px",X_LARGE:"1920px"},f={X_SMALL:420,SMALL:768,MEDIUM:1024,LARGE:1296,X_LARGE:1920}},85991:function(e,t,r){"use strict";r.d(t,{f:function(){return d},z:function(){return h}});var n=r(85893),i=r(67294),o=r(11163),a=r(37887),s=r(45697),l=r.n(s),u=r(88514);let c=(0,i.createContext)(null),d=()=>(0,i.useContext)(c),h=e=>{let{children:t}=e,r=(0,o.useRouter)(),s=r.query.siteId,[l,d]=(0,i.useState)(s),{data:h,error:f,loading:p,refetch:m}=(0,a.a)(u.dL,{variables:{siteId:s},skip:!s});(0,i.useEffect)(()=>{s&&s!==l&&(d(s),m({siteId:s}))},[s,l,m]);let v=s?{draftsData:h,draftsError:f,draftsLoading:p,refetchDrafts:m}:{draftsData:null,draftsError:null,draftsLoading:!1,refetchDrafts:null!=m?m:()=>{}};return(0,n.jsx)(c.Provider,{value:v,children:t})};h.propTypes={children:l().node.isRequired}},84730:function(e,t,r){"use strict";function n(){return!1}r.d(t,{Km:function(){return c},S_:function(){return o},ZP:function(){return n},ab:function(){return u},cy:function(){return l},o8:function(){return s},s$:function(){return i},v1:function(){return a}});let i=!1,o=!i,a={LOCAL:"LOCAL",BRANCH:"BRANCH",TEST:"TEST",STAGE:"STAGE",PROD:"PROD",NODE:"NODE",UNKNOWN:"UNKNOWN",DRESSREH1:"DRESSREH1",DRESSREH2:"DRESSREH2"};function s(){var e;if(i)return a.NODE;let t=null==window?void 0:null===(e=window.location)||void 0===e?void 0:e.hostname;switch(t){case"local":case"localhost":return a.LOCAL;case"test.caringbridge.cc":return a.TEST;case"feedback.caringbridge.cc":case"feedback.caringbridge.org":case"migration1.caringbridge.org":return a.STAGE;case"new.caringbridge.org":case"caringbridge.org":case"www.caringbridge.org":case"dr1.caringbridge.org":case"dr2.caringbridge.org":case"migrated.caringbridge.org":return a.PROD;default:if(null==t?void 0:t.includes("vercel.app"))return a.BRANCH;return a.UNKNOWN}}let l=new Map([[a.LOCAL,"localhost:3000"],[a.TEST,"test.caringbridge.cc"],[a.STAGE,"feedback.caringbridge.cc"],[a.MIGRATION1,"migration1.caringbridge.org"],[a.PROD,"www.caringbridge.org"],[a.DRESSREH1,"dr1.caringbridge.org"],[a.DRESSREH2,"dr2.caringbridge.org"]]),u={LOCAL:"test.caringbridge.org",TEST:"test.caringbridge.org",STAGE:"staging.caringbridge.org",MIGRATION1:"migration1.caringbridge.org",PROD:"caringbridge.org",DRESSREH1:"dr1.caringbridge.org",DRESSREH2:"dr2.caringbridge.org"},c=new Map([["development","LOCAL"],["test","TEST"],["feedback","STAGE"],["migration1","MIGRATION1"],["production","PROD"]])},50178:function(e,t,r){"use strict";r.d(t,{Eh:function(){return f},Eu:function(){return m},G3:function(){return function e(t,r){if("object"==typeof r&&!Array.isArray(r))return Object.entries(r).forEach(e=>{let[r,n]=e,i=new RegExp("\\[".concat(r,"]")),o=t.replace(i,encodeURIComponent(n));o===t?(String(t).includes("?")||(t+="?"),t+="&".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))):t=o}),t.replace(/\?&/,"?");let n=[];if("string"==typeof r)n=[r];else{if(!Array.isArray(r))return t;n=[...r]}if(0===n.length)return t;let i=t.replace(/\[.+?\]/,encodeURIComponent(n[0]));return n.shift(),e(i,n)}},Hn:function(){return d},Ph:function(){return h},SG:function(){return c},Tx:function(){return u},WV:function(){return y},Z6:function(){return s},aX:function(){return p},qn:function(){return v},yt:function(){return l}});var n=r(11163),i=r.n(n),o=r(84730),a=r(2232);let s={COAUTHOR_ACCEPT:"/site/[siteId]/invite/[inviteId]/accept",COAUTHOR_DECLINE:"/site/[siteId]/invite/[inviteId]/decline",COAUTHOR_LEGACY_INVITE:"/site/[siteId]/invite/[inviteId]",CONTACT_US:"/contact",DEMO_CARDS:"/components/CardsDemo",DEMO_EDITOR_KENDO:"/components/EditorKendo",DEMO_ICONS:"/components/IconsDemo",DEMO_MODAL:"/components/ModalDemo",DEMO_COLORS:"/components/ColorsDemo",DEMO_TYPOGRAPHY:"/components/TypographyDemo",DEMO_SPACERS:"/components/SpacersDemo",DEMO_BUTTONS:"/components/ButtonsDemo",DEMO_FORMS:"/components/FormDemo",DEMO_LOGO:"/components/LogoDemo",DEMO_IMAGES:"/components/ImagesDemo",DEMO_MISC:"/components/MiscDemo",DEMO_MARKETING:"/components/marketingContent",DEMO_CALCULATOR:"/components/CssCalculator",FOUR_04:"/404",GIVE_DONATION:"/give/[campaign]",HELP:"/help",HOME:"/",INTERNAL:"/internal",LEGAL_COPYRIGHT:"/legal/copyright",LEGAL_PRIVACY_POLICY:"/legal/privacy-policy",LEGAL_TERMS_OF_USE:"/legal/terms-of-use",PROFILE_REGISTER:"/profile/register",PROFILE_REGISTER_CONFIRM:"/profile/register/confirm",PROFILE_REGISTER_SSO_LOGIN:"/profile/register/social-signup-login",PROFILE_REGISTER_CONFIRM_SSO_USER:"/profile/register/confirm-social-signup",PROFILE_RESET_PASSWORD:"/profile/reset-password",PROFILE_RESET_PASSWORD_CONFIRM:"/profile/reset-password/confirm",PROFILE_SETTINGS_NOTIFICATIONS:"/profile/settings/notifications",PROFILE_SETTINGS_NOTIFICATIONS_UNSUBSCRIBE:"/profile/settings/notifications/unsubscribe",PROFILE_SETTINGS_GENERAL:"/profile/settings/general",PROFILE_SETTINGS_EMAIL:"/profile/settings/email-address",PROFILE_SETTINGS_PASSWORD:"/profile/settings/password",PROFILE_SIGN_IN:"/profile/signin",RESOURCES:"/resources",RESOURCES_ADVICE:"/resources/healing/expert-advice",RESOURCES_INSPIRATION:"/resources/healing/inspiration",RESOURCES_STORIES:"/resources/healing/stories",RESOURCES_PRESS_RELEASES:"/resources/media-center/press-releases",SEARCH:"/search",SITE_HOME_PAGE:"/site/[siteId]",SITE_PUBLIC_PAGE:"/site/public/[siteId]",SITE_SINGLE_POST:"/site/[siteId]/post/[postId]",SITE_SINGLE_WAYS_TO_HELP_POST:"/site/[siteId]/ways-to-help-post/[waysToHelpPostId]",SITE_TRIBUTES:"/site/[siteId]/tributes",SITE_SETTINGS_GENERAL:"/site/[siteId]/settings/general",SITE_SETTINGS_AUTHORS:"/site/[siteId]/settings/authors",SITE_SETTINGS_PRIVACY:"/site/[siteId]/settings/privacy",SITE_SETTINGS_VISITORS:"/site/[siteId]/settings/visitors",SITE_WAYS_TO_HELP:"/site/[siteId]/ways-to-help",START:"/start",PAGES_PARTNERSHIPS:"/partnerships",PAGES_ABOUT_US:"/about-us",PAGES_OUR_PEOPLE:"/about-us/our-people",PAGES_FINANCIALS_RATINGS:"/about-us/financials-ratings",PAGES_CAREERS:"/about-us/careers",PAGES_GET_INVOLVED:"/about-us/get-involved",SURVEYS:"/surveys"},l={GET_HELP:"https://caringbridge.my.site.com/help/s/"},u={IMPERSONATION:"imp",RETURN_URL:"returl",EMAIL_ADDRESS:"email",FOLLOW:"follow",FROM_URL:"from",FIRST_NAME:"fname",SHARE_MODAL:"share",SEARCH:"q",REACTION:"reaction",PARENT:"parentId",EMAIL_TYPE:"emailType",CREATE_ACCOUNT:"ca",PROVIDER:"provider",COAUTHOR_ACCEPT:"coauthor",SITE_ID:"siteId"},c={START:"Start a CaringBridge",SEARCH:"Find a CaringBridge",DONATE:"Donate to CaringBridge",HELP:"Help",PAGES_FINANCIALS_RATINGS:"Financials and ratings",PAGES_ABOUT_US:"About",FEEDBACK:"Feedback",PAGES_PARTNERSHIPS:"Partnerships",PAGES_OUR_PEOPLE:"Our people",PAGES_CAREERS:"Careers",GET_INVOLVED:"Get involved",RESOURCES:"Resources",RESOURCES_ADVICE:"Expert advice",RESOURCES_INSPIRATION:"Inspiration",RESOURCES_NEWS:"News",RESOURCES_PRESS_RELEASES:"Press releases",RESOURCES_STORIES:"Stories",PROFILE_SIGN_IN:"Sign in"};function d(){return o.s$?({NEXT_PUBLIC_FF_ENABLE_SEO_TAGS:"true",NEXT_PUBLIC_FF_MIGRATION_NAVIGATION:"false",NEXT_PUBLIC_FF_GO_FUND_ME:"true",NEXT_PUBLIC_FF_UCLA_SURVEY:"false",NEXT_PUBLIC_FF_FB_SHARE:"true",NEXT_PUBLIC_FF_SOCIAL_SIGN_ON:"true",NEXT_PUBLIC_FF_GIFT_CARDS:"true",NEXT_PUBLIC_FF_MEAL_TRAIN:"true",NEXT_PUBLIC_FF_IRB_SURVEY:"true"}).CLIENT_URL?"https://www.caringbridge.test":"https://www.caringbridge.org":window.location.origin}function h(e){if(o.S_)return Array.isArray(i().query[e])?i().query[e][0]:i().query[e]?i().query[e].toString():""}function f(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?i().replace(e):i().push(e)}function p(){let e=i().asPath.substring(0,i().asPath.indexOf("?"))||i().asPath;i().replace(e,void 0,{shallow:!0})}function m(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;e=null!=e?e:{};let n={},o="";try{let e=new URL(i().asPath,"https://caringbridge.org");o=e.pathname,n=t?{}:Object.fromEntries(e.searchParams)}catch(e){console.log("redirect.js -- Unable to parse ".concat(o)),i().push(s.PROFILE_SIGN_IN)}let l={...n,...e},u="";for(let[e,t]of Object.entries(l))u+="".concat(e,"=").concat(t,"&");u&&(u="?"+u.slice(0,-1));let c="";if(r){for(let[e,t]of Object.entries(r))c+="".concat(e,"=").concat(encodeURIComponent(t),"&");c&&(c="?"+c.slice(0,-1))}let d="".concat(o).concat(u);localStorage.setItem(a.P_.RETURN_TO,d),i().push("".concat(s.PROFILE_SIGN_IN).concat(c))}function v(){let e=localStorage.getItem(a.P_.RETURN_TO);e?(localStorage.removeItem(a.P_.RETURN_TO),i().push(e)):i().push(s.HOME)}function y(e){let t=(0,o.o8)(),r=o.ab[t];return"https://".concat(r,"/visit/").concat(e)}},47225:function(){},54721:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},9008:function(e,t,r){e.exports=r(42636)},41664:function(e,t,r){e.exports=r(95569)},11163:function(e,t,r){e.exports=r(96885)},4298:function(e,t,r){e.exports=r(85442)},60507:function(e,t,r){"use strict";r.d(t,{dP:function(){return T},re:function(){return C}});var n,i=r(657),o=r(70093);function a(){}var s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=a),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new o.g7,u=Object.prototype.hasOwnProperty,c=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var h=[];function f(e,t){if(!e)throw Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!g(this))return v(this),this.value[0]},e.prototype.recompute=function(e){var t;return f(!this.recomputing,"already recomputing"),v(this),g(this)&&(w(this),l.withValue(this,y,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,g(this)||(t=this,b(t,x)))),p(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,_),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),w(this),b(this,function(t,r){t.setDirty(),k(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(c(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),h.push(this.deps),this.deps=null)},e.count=0,e}();function v(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),g(e)?_(t,e):x(t,e),t}function y(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function g(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var r=e.parents.size;if(r)for(var n=c(e.parents),i=0;i<r;++i)t(n[i],e)}function _(e,t){f(e.childValues.has(t)),f(g(t));var r=!g(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=h.pop()||new Set;e.dirtyChildren.add(t),r&&b(e,_)}function x(e,t){f(e.childValues.has(t)),f(!g(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),S(e,t),g(e)||b(e,x)}function S(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(h.length<100&&h.push(r),e.dirtyChildren=null))}function w(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){k(e,r)}),e.forgetDeps(),f(null===e.dirtyChildren)}function k(e,t){t.parents.delete(e),e.childValues.delete(t),S(e,t)}var E={setDirty:!0,dispose:!0,forget:!0};function T(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=l.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(d(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&u.call(E,r)?r:"setDirty";c(n).forEach(function(e){return e[i]()}),t.delete(e),d(n)}},n}function O(){var e=new i.B("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}O();var A=new Set;function C(e,t){void 0===t&&(t=Object.create(null));var r=new s(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||O(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new m(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),A.add(r),l.hasValue()||(A.forEach(function(e){return e.clean()}),A.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function u(e){var t=r.get(e);if(t)return t.peek()}function c(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=u,o.peek=function(){return u(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},69921:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case v:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=x},59864:function(e,t,r){"use strict";e.exports=r(69921)},56474:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e,t=document.documentElement,r=null,n="initial",i=n,o=Date.now(),a=!1,s=["button","input","select","textarea"],l=[],u=[16,17,18,91,93],c=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},h=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},m=!1;try{var v=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,v)}catch(e){}var y=function(e){var t=e.which,r=d[e.type];"pointer"===r&&(r=S(e));var o=!c.length&&-1===u.indexOf(t),a=c.length&&-1!==c.indexOf(t),l="keyboard"===r&&t&&(o||a)||"mouse"===r||"touch"===r;if(w(r)&&(l=!1),l&&n!==r&&(x("input",n=r),g("input")),l&&i!==r){var h=document.activeElement;h&&h.nodeName&&(-1===s.indexOf(h.nodeName.toLowerCase())||"button"===h.nodeName.toLowerCase()&&!A(h,"form"))&&(x("intent",i=r),g("intent"))}},g=function(e){t.setAttribute("data-what"+e,"input"===e?n:i),E(e)},b=function(e){var t=d[e.type];"pointer"===t&&(t=S(e)),O(e),(h||w(t))&&(!h||"wheel"!==e.type)&&"mousewheel"!==e.type&&"DOMMouseScroll"!==e.type||i===t||(x("intent",i=t),g("intent"))},_=function(){r=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},x=function(e,t){if(a)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},S=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},w=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-o<200;return o=t,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},E=function(e){for(var t=0,r=l.length;t<r;t++)l[t].type===e&&l[t].fn.call(void 0,"input"===e?n:i)},T=function(e){for(var t=0,r=l.length;t<r;t++)if(l[t].fn===e)return t},O=function(e){f.x!==e.screenX||f.y!==e.screenY?(h=!1,f.x=e.screenX,f.y=e.screenY):h=!0},A=function(e,t){var r=window.Element.prototype;if(r.matches||(r.matches=r.msMatchesSelector||r.webkitMatchesSelector),r.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[k()]="mouse",e=!m||{passive:!0,capture:!0},document.addEventListener("DOMContentLoaded",function(){if(a=!("false"===t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(i=window.sessionStorage.getItem("what-intent"))}catch(e){}g("input"),g("intent")},!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",b,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",b,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",b,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,e),window.addEventListener("touchend",y,!0))),window.addEventListener(k(),b,e),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",function(e){if(!e.target.nodeName){_();return}r=e.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",r),e.target.classList&&e.target.classList.length&&t.setAttribute("data-whatclasses",e.target.classList.toString().replace(" ",","))},!0),window.addEventListener("focusout",_,!0)),{ask:function(e){return"intent"===e?i:n},element:function(){return r},ignoreKeys:function(e){u=e},specificKeys:function(e){c=e},registerOnChange:function(e,t){l.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=T(e);(t||0===t)&&l.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},8819:function(e,t,r){"use strict";r.d(t,{h:function(){return eg}});var n,i,o=r(23564),a=r(27354),s=r(60507),l=r(82152),u=r(23361),c=function(){function e(){this.getFragmentDoc=(0,s.re)(u.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),d=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),h=r(51761),f=r(76487),p=r(97359),m=r(30320),v=r(53712),y=r(36765),g=r(182),b=r(19065),_=r(48702),x=r(13154),S=r(657),w=r(21436),k=Object.prototype.hasOwnProperty;function E(e){return null==e}function T(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=E(n)?E(i)?void 0:{_id:i}:{id:n}),E(n)&&!E(i)&&(n=i),!E(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var O={dataIdFromObject:T,addTypename:!0,resultCaching:!0,canonizeResults:!1};function A(e){var t=e.canonizeResults;return void 0===t?O.canonizeResults:t}var C=/^[_a-z][_0-9a-z]*/i;function P(e){var t=e.match(C);return t?t[0]:e}function I(e){return(0,x.s)(e)&&!(0,h.Yk)(e)&&!(0,w.k)(e)}function R(e,t){var r=(0,u.F)((0,y.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var D=Object.create(null),j=function(){return D},N=Object.create(null),F=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,_.J)((0,h.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,h.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),k.call(this.data,e)){var r=this.data[e];if(r&&k.call(r,t))return r[t]}return"__typename"===t&&k.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof B?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),k.call(this.data,e))?this.data[e]:this instanceof B?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof r,"store.merge expects a string ID"):(0,a.kG)("string"==typeof r,1);var s=new g.w0(V).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);i||(l.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){l[e]=1;var t=P(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||n instanceof B||delete s[e]}}),l.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,l={DELETE:D,INVALIDATE:N,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,h.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=P(u),d=n[u];if(void 0!==d){var h="function"==typeof t?t:t[u]||t[c];if(h){var f=h===j?D:h((0,_.J)(d),(0,o.pi)((0,o.pi)({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));f===N?r.group.dirty(e,u):(f===D&&(f=void 0),f!==d&&(i[u]=f,a=!0,d=f))}void 0!==d&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof B?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=j,n):j)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(k.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof B&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){k.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&k.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof B?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){k.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof B;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!k.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,x.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,x.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),L=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new S.B(m.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=P(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function M(e,t){$(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new L(void 0===n||n))||this;return o.stump=new z(o),o.storageTrie=new S.B(m.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=F||(F={})),n.Root=i;var B=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,l.D)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return k.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(F),z=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new L(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(B);function V(e,t,r){var n=e[r],i=t[r];return(0,l.D)(n,i)?n:i}function $(e){return!!(e instanceof F&&e.group.caching)}var U=r(80900);function q(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var G=function(){function e(e){var t=this;this.knownResults=new(m.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:A(e)}),this.canon=e.canon||new U.h,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=q(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(M(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:q,makeCacheKey:function(e,t,r,n){if($(r.store))return r.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return M(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if($(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new U.h},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=void 0===i?"ROOT_QUERY":i,s=e.variables,l=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;s=(0,o.pi)((0,o.pi)({},(0,y.O4)((0,y.iW)(n))),s);var p=(0,h.kQ)(a),m=this.executeSelectionSet({selectionSet:(0,y.p$)(n).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,o.pi)({store:r,query:n,policies:f,variables:s,varString:(0,U.B)(s),canonizeResults:c},R(n,this.config.fragments))});if(m.missing&&(t=[new d(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(m.missing),m.missing,n,s)],!(void 0===l||l)))throw t[0];return{result:m.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if($(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,h.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=s.variables,c=s.policies,d=s.store.getFieldValue(i,"__typename"),m=[],v=new g.w0;function y(e,r){var n;return e.missing&&(t=v.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&m.push({__typename:d});var x=new Set(n.selections);x.forEach(function(e){var n,g;if((0,b.LZ)(e,l)){if((0,h.My)(e)){var _=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),S=(0,h.u2)(e);void 0===_?f.Gw.added(e)||(t=v.merge(t,((n={})[S]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,w.k)(_)?_=y(r.executeSubSelectedArray({field:e,array:_,enclosingRef:o,context:s}),S):e.selectionSet?null!=_&&(_=y(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:_,enclosingRef:(0,h.Yk)(_)?_:o,context:s}),S)):s.canonizeResults&&(_=r.canon.pass(_)),void 0!==_&&m.push(((g={})[S]=_,g))}else{var k=(0,u.hi)(e,s.lookupFragment);if(!k&&e.kind===p.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(e.name.value)):new a.ej(5);k&&c.fragmentMatches(k,d)&&k.selectionSet.selections.forEach(x.add,x)}}});var S={result:(0,g.bw)(m),missing:t},k=s.canonizeResults?this.canon.admit(S):(0,_.J)(S);return k.result&&this.knownResults.set(k.result,n),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,l=new g.w0;function u(e,r){var n;return e.missing&&(t=l.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,w.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,x.s)(r)&&(__DEV__?(0,a.kG)(!(0,h.Yk)(r),"Missing selection set for object of type ".concat((0,h.Yk)(r)?e.get(r.__ref,"__typename"):r&&r.__typename," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,h.Yk)(r),6),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),W=r(79487),H=r(60897),Q=r(66438),Y=Object.create(null);function K(e){var t=JSON.stringify(e);return Y[t]||(Y[t]=Object.create(null))}function J(e){var t=K(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=X(e,function(e){var i=et(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&k.call(t,e[0])&&(i=et(t,e,ee)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Z(e){var t=K(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(X(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,w.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),l=s&&(0,h.NC)(s,i);return l&&et(l,e.slice(1))}return}if("$"===o){var u=r.slice(1);if(i&&k.call(i,u)){var c=e.slice(0);return c[0]=u,et(i,c)}return}if(t)return et(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function X(e,t){var r=new g.w0;return(function e(t){var r=K(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,w.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,w.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function ee(e,t){return e[t]}function et(e,t,r){return r=r||ee,function e(t){return(0,x.s)(t)?(0,w.k)(t)?t.map(e):X(Object.keys(t).sort(),function(e){return et(t,e)}):t}(t.reduce(function e(t,n){return(0,w.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function er(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(U.B);var en=function(){},ei=function(e,t){return t.fieldName},eo=function(e,t,r){return(0,r.mergeObjects)(e,t)},ea=function(e,t){return t},es=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:T},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,l=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eu(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(e,l);if((0,w.k)(d))c=J(d);else{n=d;break}}return n=n?String(n):void 0,l.keyObject?[n,l.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,l=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),k.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?eo:!1===t?ea:e.merge}a(n,t.merge),n.keyFn=!1===i?en:(0,w.k)(i)?J(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?ei:(0,w.k)(s)?Z(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||ei)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.kG)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(C);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!k.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},c=!!(r&&this.fuzzySubtypes.size),d=!1,f=0;f<l.length;++f){var p=l[f];if(p.has(o))return s.has(o)||(d&&__DEV__&&a.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;p.forEach(u),c&&f===l.length-1&&function e(t,r,n){return!!(0,x.s)(r)&&((0,w.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,h.My)(t)&&(0,b.LZ)(t,n)){var i=(0,h.u2)(t);return k.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=er(e);o;){var l=o(s,a);if((0,w.k)(l))o=Z(l);else{t=l||n;break}}return(void 0===t&&(t=e.field?(0,h.vf)(e.field,e.variables):(0,h.PT)(n,er(e))),!1===t)?n:n===P(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=P(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var u=el(this,r,e,t,t.store.getStorage((0,h.Yk)(r)?r.__ref:r,i));return Q.ab.withValue(this.cache,l,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===eo?ec(n.store)(e,t):s===ea?t:(n.overwrite&&(e=void 0),s(e,t,el(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function el(e,t,r,n,i){var o=e.getStoreFieldName(r),a=P(o),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:er(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:h.Yk,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(eu(arguments,t,s),n)},mergeObjects:ec(n.store)}}function eu(e,t,r){var n,i,s,l=e[0],u=e[1],c=e.length;return"string"==typeof l?s={fieldName:l,from:c>1?u:t}:(s=(0,o.pi)({},l),k.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=(0,H.X)("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===s.variables&&(s.variables=r),s}function ec(e){return function(t,r){if((0,w.k)(t)||(0,w.k)(r))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,x.s)(t)&&(0,x.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,h.Yk)(t)&&I(r))return e.merge(t.__ref,r),t;if(I(t)&&(0,h.Yk)(r))return e.merge(t,r.__ref),r;if(I(t)&&I(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function ed(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var eh=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,u=t.variables,c=t.overwrite,d=(0,y.$H)(n),f=new g.w0;u=(0,o.pi)((0,o.pi)({},(0,y.O4)(d)),u);var p=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:u,varString:(0,U.B)(u)},R(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,h.Yk)(m))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(7);return p.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,u=(0,h.kQ)(n);if(o&&o.map.size){var c=r.applyMerges(o,u,i,p);if((0,h.Yk)(c))return;i=c}if(__DEV__&&!p.overwrite){var d=Object.create(null);s.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var f=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==d[P(e)]||f(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,h.Yk)(o)||(0,l.D)(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=P(r),d="".concat(u,".").concat(c);if(!ey.has(d)){ey.add(d);var f=[];(0,w.k)(o)||(0,w.k)(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(d," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,i,e,p.store)})}e.merge(n,i)}),e.retain(m.__ref),m},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,l=e.mergeTree,u=this.cache.policies,c=Object.create(null),d=r&&u.rootTypenamesById[r]||(0,h.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof d&&(c.__typename=d);var p=function(){var e=eu(arguments,c,s.variables);if((0,h.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},m=new Set;this.flattenFields(i,n,s,d).forEach(function(e,r){var i,o=n[(0,h.u2)(r)];if(m.add(r),void 0!==o){var s=u.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),v=ep(l,s),y=t.processFieldValue(o,r,r.selectionSet?ed(e,!1,!1):e,v),g=void 0;r.selectionSet&&((0,h.Yk)(y)||I(y))&&(g=p("__typename",y));var b=u.getMergeFunction(d,r.name.value,g);b?v.info={field:r,typename:d,merge:b}:ev(l,s),c=e.merge(c,((i={})[s]=y,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!f.Gw.added(r)&&!u.getReadFunction(d,r.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,h.u2)(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var v=u.identify(n,{typename:d,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:c,readField:p}),y=v[0],g=v[1];r=r||y,g&&(c=s.merge(c,g))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,h.kQ)(r),_=s.written[r]||(s.written[r]=[]);if(_.indexOf(i)>=0||(_.push(i),this.reader&&this.reader.isFresh(n,b,i,s)))return b;var x=s.incomingById.get(r);return x?(x.storeObject=s.merge(x.storeObject,c),x.mergeTree=function e(t,r){if(t===r||!r||em(r))return t;if(!t||em(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(x.mergeTree,l),m.forEach(function(e){return x.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:c,mergeTree:em(l)?void 0:l,fieldNodeSet:m}),b}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,w.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ep(n,o));return ev(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,W.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,h.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new S.B(!1);return function e(l,c){var d=s.lookup(l,c.clientOnly,c.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(s){if((0,b.LZ)(s,r.variables)){var l=c.clientOnly,d=c.deferred;if(!(l&&d)&&(0,w.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var n=(0,h.NC)(e,r.variables);n&&!1===n.if||(d=!0)}}),(0,h.My)(s)){var f=i.get(s);f&&(l=l&&f.clientOnly,d=d&&f.deferred),i.set(s,ed(r,l,d))}else{var m=(0,u.hi)(s,r.lookupFragment);if(!m&&s.kind===p.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(s.name.value)):new a.ej(8);m&&o.fragmentMatches(m,n,t,r.variables)&&e(m.selectionSet,ed(r,l,d))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,h.Yk)(r)){var l,u,c=!(0,w.k)(r)&&((0,h.Yk)(t)||I(t))?t:void 0,d=r;c&&!i&&(i=[(0,h.Yk)(c)?c.__ref:c]);var f=function(e,t){return(0,w.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=f(c,t),o=f(d,t);if(void 0!==o){i&&i.push(t);var l=s.applyMerges(e,r,o,n,i);l!==o&&(u=u||new Map).set(t,l),i&&(0,a.kG)(i.pop()===t)}}),u&&(r=(0,w.k)(d)?d.slice(0):(0,o.pi)({},d),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(l=n.store).getStorage.apply(l,i)):r},e}(),ef=[];function ep(e,t){var r=e.map;return r.has(t)||r.set(t,ef.pop()||{map:new Map}),r.get(t)}function em(e){return!e||!(e.info||e.map.size)}function ev(e,t){var r=e.map,n=r.get(t);n&&em(n)&&(ef.push(n),r.delete(t))}var ey=new Set,eg=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Q.QS,n.txCount=0,n.config=(r=t,(0,v.o)(O,r)),n.addTypename=!!n.config.addTypename,n.policies=new es({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new F.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new eh(this,this.storeReader=new G({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:A(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if($(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,U.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof d)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(k.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,Q._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,Q.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){U.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(k.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),U.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,Q.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,f.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,l.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(c)},80900:function(e,t,r){"use strict";r.d(t,{B:function(){return d},h:function(){return c}});var n,i,o=r(23564);r(27354);var a=r(657),s=r(13154),l=r(30320),u=r(21436),c=function(){function e(){this.known=new(l.sy?WeakSet:Set),this.pool=new a.B(l.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,u.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],l=this.sortedKeys(e);a.push(l.json);var u=a.length;l.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),l.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),d=Object.assign(function(e){if((0,s.s)(e)){void 0===n&&h();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:h});function h(){n=new c,i=new(l.mr?WeakMap:Map)}},66438:function(e,t,r){"use strict";r.d(t,{QS:function(){return u},_v:function(){return l},ab:function(){return i},li:function(){return s}});var n=r(60507),i=new(r(70093)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function u(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var l=Array.from(r);r.clear(),l.forEach(function(t){return t(e)})}}else{var u=i.getValue();u&&(o(u),a(u).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},57976:function(e,t,r){"use strict";r.d(t,{f:function(){return X}});var n=r(23564),i=r(27354),o=r(86909),a=o.i.execute,s=r(59508),l=r(82152),u=r(37280),c=r(80900),d=r(30320),h=r(48216);function f(e,t,r){return new h.y(function(n){var i=n.next,o=n.error,a=n.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var r=function(){return e(t)};u=u.then(r,r).then(function(e){--s,i&&i.call(n,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var d={next:c(t,i),error:c(r,o),complete:function(){l=!0,!s&&a&&a.call(n)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}var p=r(21436);function m(e){var t=v(e);return(0,p.O)(t)}function v(e){var t=(0,p.O)(e.errors)?e.errors.slice(0):[];return(0,u.GG)(e)&&(0,p.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var y=r(36765),g=r(76487),b=r(19065),_=r(51761),x=r(13154),S=r(60897);function w(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function k(e){function t(t){Object.defineProperty(e,t,{value:h.y})}return d.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function E(e){return e&&"function"==typeof e.then}var T=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),w(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),w(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?E(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),w(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new h.y(t)]),E(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(h.y);k(T);var O=r(30990),A=r(1644),C=r(79487),P=r(53712),I=Object.assign,R=Object.hasOwnProperty,D=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=N)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=o.fetchPolicy,d=void 0===c?u:c,h=o.initialFetchPolicy;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:void 0===h?"standby"===d?u:d:h,fetchPolicy:d}),a.queryId=i.queryId||r.generateQueryId();var f=(0,y.$H)(a.query);return a.queryName=f&&f.name&&f.name.value,a}return(0,n.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||A.I.ready,i=(0,n.pi)((0,n.pi)({},t),{loading:(0,A.O)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,l.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===A.I.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=A.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||F(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,l.D)(this.last.result,e)||t&&!(0,l.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,l.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?r.fetchPolicy=o:"no-cache"===o?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&R.call(e,"variables")){var a=(0,y.iW)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,l.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,A.I.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.pi)((0,n.pi)({},e.query?e:(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},this.options),{query:this.query}),e),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=A.I.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,A.I.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===A.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(t.query)||j(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,l.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},A.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,i.kG)(r,"Attempted to start a polling query without a polling interval."):(0,i.kG)(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,A.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},A.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,n.pi)((0,n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,C.X)(e),variables:t}),(0,p.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===A.I.refetch||t===A.I.fetchMore||t===A.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,P.o)(this.options,e||{}),u=i?s:I(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,l.D)(e.variables,o)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=A.I.setVariables)));var c=u.variables&&(0,n.pi)({},u.variables),d=this.fetch(u,t),h=d.concast,f=d.fromLink,p={next:function(e){r.reportResult(e,c)},error:function(e){r.reportError(e,c)}};return!i&&f&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=p),h.addObserver(p),h},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),w(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,n.pi)((0,n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:A.I.error,loading:!1});this.updateLastResult(r,t),w(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(h.y);function j(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function N(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function F(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}k(D);var L=r(77304),M=r(97359);function B(e){return e.kind===M.h.FIELD||e.kind===M.h.FRAGMENT_SPREAD||e.kind===M.h.INLINE_FRAGMENT}var z=r(182),V=r(23361),$=r(66438),U=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,z.Ee)(t.resolvers,e)}):this.resolvers=(0,z.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,b.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,g.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,L.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return L.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,g.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.mG)(this,void 0,void 0,function(){var s,l,u,c,d,h,f,p,m,v;return(0,n.Jh)(this,function(g){return s=(0,y.p$)(e),l=(0,y.kU)(e),u=(0,V.F)(l),c=this.collectSelectionsToResolve(s,u),h=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",f=this,p=f.cache,m=f.client,v={fragmentMap:u,context:(0,n.pi)((0,n.pi)({},r),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,function(){var a,s,l,u,c,d=this;return(0,n.Jh)(this,function(h){return a=o.fragmentMap,s=o.context,l=o.variables,u=[r],c=function(e){return(0,n.mG)(d,void 0,void 0,function(){var c,d;return(0,n.Jh)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,b.LZ)(e,l)?(0,_.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&u.push(((r={})[(0,_.u2)(e)]=t,r))})]:((0,_.Ao)(e)?c=e:(c=a[e.name.value],__DEV__?(0,i.kG)(c,"No fragment named ".concat(e.name.value)):(0,i.kG)(c,11)),c&&c.typeCondition&&(d=c.typeCondition.name.value,o.fragmentMatcher(r,d,s)))?[2,this.resolveSelectionSet(c.selectionSet,t,r,o).then(function(e){u.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return(0,z.bw)(u)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,function(){var o,a,s,l,u,c,d,h,f,p=this;return(0,n.Jh)(this,function(n){return r?(o=i.variables,l=(a=e.name.value)!==(s=(0,_.u2)(e)),c=Promise.resolve(u=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(f=h[l?a:s])&&(c=Promise.resolve($.ab.withValue(this.cache,f,[r,(0,_.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?p.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,L.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&B(e)&&a.add(e)})},FragmentSpread:function(n,o,s,l,u){var c=t[n.name.value];__DEV__?(0,i.kG)(c,"No fragment named ".concat(n.name.value)):(0,i.kG)(c,12);var d=e(c);d.size>0&&(u.forEach(function(e){r(e)&&B(e)&&a.add(e)}),a.add(n),d.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),q=new(d.mr?WeakMap:Map);function G(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return q.set(e,(q.get(e)+1)%1e15),r.apply(this,arguments)})}function W(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var H=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;q.has(r)||(q.set(r,0),G(r,"evict"),G(r,"modify"),G(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||A.I.loading;return this.variables&&this.networkStatus!==A.I.loading&&!(0,l.D)(this.variables,e.variables)&&(t=A.I.setVariables),(0,l.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){W(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,l.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,l.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():j(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;W(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,A.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===q.get(this.cache)&&(0,l.D)(t,r.variables)&&(0,l.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new z.w0,a=(0,p.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,p.O)(e.incremental)){var s=(0,u.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Q(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:q.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=A.I.ready},e.prototype.markError=function(e){return this.networkStatus=A.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Q(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!m(e);return!n&&r&&e.data&&(n=!0),n}var Y=Object.prototype.hasOwnProperty,K=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,l=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=l||new U({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,h=void 0!==d&&d,p=e.update,y=e.onQueryUpdated,g=e.fetchPolicy,b=void 0===g?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":g,_=e.errorPolicy,x=void 0===_?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":_,S=e.keepRootFields,w=e.context;return(0,n.mG)(this,void 0,void 0,function(){var e,t,r,u,d,g;return(0,n.Jh)(this,function(_){switch(_.label){case 0:if(__DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,15),__DEV__?(0,i.kG)("network-only"===b||"no-cache"===b,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===b||"no-cache"===b,16),e=this.generateMutationId(),r=(t=this.transform(o)).document,u=t.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),!u)return[3,2];return[4,this.localState.addExportedVariables(o,a,w)];case 1:a=_.sent(),_.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:b,errorPolicy:x,context:w,updateQueries:l,update:p,keepRootFields:S}),this.broadcastQueries(),g=this,[2,new Promise(function(t,r){return f(g.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},w),{optimisticResponse:s}),a,!1),function(t){if(m(t)&&"none"===x)throw new O.cA({graphQLErrors:v(t)});d&&(d.loading=!1,d.error=null);var r=(0,n.pi)({},t);return"function"==typeof c&&(c=c(r)),"ignore"===x&&m(r)&&delete r.errors,g.markMutationResult({mutationId:e,result:r,document:o,variables:a,fetchPolicy:b,errorPolicy:x,context:w,update:p,updateQueries:l,awaitRefetchQueries:h,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:y,keepRootFields:S})}).subscribe({next:function(e){g.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),s&&g.cache.removeOptimistic(e),g.broadcastQueries(),r(t instanceof O.cA?t:new O.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Q(i,e.errorPolicy)){if((0,u.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,u.GG)(i)&&(0,p.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=(0,u.mT)(s.result,i)),void 0!==l&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&Y.call(c,s)){var l=c[s],u=r.queries.get(n),d=u.document,h=u.variables,f=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var m=l(p,{mutationResult:i,queryName:d&&(0,y.rY)(d)||void 0,queryVariables:h});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,l=!(0,u.M0)(i)||(0,u.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=(0,g.Fo)(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,b.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,y.O4)((0,y.$H)(r)),asQuery:(0,n.pi)((0,n.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e})})},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new H(this),r=new D({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,17),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,18),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,19),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(21)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=A.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,_.JW)(e)?o.set(t.transform(e).document,!1):(0,x.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,S.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new D({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,s,e).map(function(o){"no-cache"!==n&&(Q(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=m(o),s=(0,O.ls)(o);if(a||s){var l={};throw a&&(l.graphQLErrors=o.errors),s&&(l.protocolErrors=o.extensions[O.YG]),new O.cA(l)}return o})};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(l);return new h.y(function(e){var t=null;return u.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,s,l=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var d=this.inFlightLinkObservables,p=this.link,m={query:u,variables:r,operationName:(0,y.rY)(u)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=m.context,i){var v=d.get(u)||new Map;d.set(u,v);var g=(0,c.B)(r);if(!(s=v.get(g))){var b=new T([a(p,m)]);v.set(g,s=b),b.beforeNext(function(){v.delete(g)&&v.size<1&&d.delete(u)})}}else s=new T([a(p,m)])}else s=new T([h.y.of({data:{}})]),t=this.prepareContext(t);var _=this.transform(e).clientQuery;return _&&(s=f(s,function(e){return l.localState.runResolvers({document:_,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return f(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=v(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new O.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:A.I.ready};return s&&"ignore"!==r.errorPolicy&&(l.errors=a,l.networkStatus=A.I.error),l},function(t){var r=(0,O.MS)(t)?t:new O.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n,i,o=this;void 0===r&&(r=A.I.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),l=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,d=void 0===c?u&&u.fetchPolicy||"cache-first":c,h=t.errorPolicy,f=void 0===h?u&&u.errorPolicy||"none":h,p=t.returnPartialData,m=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:a,variables:s,fetchPolicy:d,errorPolicy:f,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===v?{}:v}),g=function(e){y.variables=e;var n=o.fetchQueryByPolicy(l,y,r);return"standby"!==y.fetchPolicy&&n.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return n.cancel(e)})}),this.transform(y.query).hasClientExports)n=new T(this.localState.addExportedVariables(y.query,y.variables,y.context).then(g).then(function(e){return e.sources})),i=!0;else{var _=g(y.variables);i=_.fromLink,n=new T(_.sources)}return n.promise.then(b,b),{concast:n,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,S.X)("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof H&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=l(i,a,o)}l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var v=function(){return e.getDiff(a)},y=function(t,r){void 0===r&&(r=e.networkStatus||A.I.loading);var s=t.result;!__DEV__||d||(0,l.D)(s,{})||F(t.missing);var u=function(e){return h.y.of((0,n.pi)({data:e,loading:(0,A.O)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===A.I.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},g="no-cache"===s?0:r===A.I.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,g,{variables:a,context:f,fetchPolicy:s,errorPolicy:c})},_=p&&"number"==typeof m&&m!==r&&(0,A.O)(r);switch(s){default:case"cache-first":var x=v();if(x.complete)return{fromLink:!1,sources:[y(x,e.markReady())]};if(d||_)return{fromLink:!0,sources:[y(x),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var x=v();if(x.complete||d||_)return{fromLink:!0,sources:[y(x),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":if(_)return{fromLink:!0,sources:[y(v()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(_)return{fromLink:!0,sources:[y(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new H(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),J=r(14012),Z=!1,X=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,l=e.cache,u=e.ssrMode,c=void 0!==u&&u,d=e.ssrForceFetchDelay,h=void 0===d?0:d,f=e.connectToDevTools,p=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,m=e.queryDeduplication,v=void 0===m||m,y=e.defaultOptions,g=e.assumeImmutableResults,b=e.resolvers,_=e.typeDefs,x=e.fragmentMatcher,S=e.name,w=e.version,k=e.link;if(k||(k=r?new s.u({uri:r,credentials:n,headers:a}):o.i.empty()),!l)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(9);if(this.link=k,this.cache=l,this.disableNetworkFetches=c||h>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=_,h&&setTimeout(function(){return t.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Z&&p&&__DEV__&&(Z=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var E=window.navigator,T=E&&E.userAgent,O=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.7.14",this.localState=new U({cache:l,client:this,resolvers:b,fragmentMatcher:x}),this.queryManager=new K({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:c,clientAwareness:{name:S,version:w},localState:this.localState,assumeImmutableResults:void 0!==g&&g,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,J.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,J.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,J.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},1644:function(e,t,r){"use strict";var n,i;function o(e){return!!e&&e<7}r.d(t,{I:function(){return n},O:function(){return o}}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},30990:function(e,t,r){"use strict";r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return u},ls:function(){return a}});var n=r(23564);r(27354);var i=r(13154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){var t=(0,n.ev)((0,n.ev)((0,n.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},u=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||l(c),c.extraInfo=u,c.__proto__=t.prototype,c}return(0,n.ZT)(t,e),t}(Error)},37865:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(23564),i=r(86909),o=r(48216);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new o.y(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},86909:function(e,t,r){"use strict";r.d(t,{i:function(){return d}});var n=r(23564),i=r(27354),o=r(48216),a=r(36765);function s(e,t){return t?t(e):o.y.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),a=l(n||new e(s));return new e(u(i)&&u(a)?function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()}:function(e,r){return t(e)?i.request(e,r)||o.y.of():a.request(e,r)||o.y.of()})},e.execute=function(e,t){var r,s,l,u;return e.request((l=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(0>t.indexOf(o))throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(27)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),u=(0,n.pi)({},l),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,n.pi)((0,n.pi)({},u),e(u)):(0,n.pi)((0,n.pi)({},u),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},u)}}),s))||o.y.of()},e.concat=function(t,r){var n=l(t);if(u(n))return __DEV__&&i.kG.warn(new c("You are calling concat on a terminating link, which will have no effect",n)),n;var a=l(r);return new e(u(a)?function(e){return n.request(e,function(e){return a.request(e)||o.y.of()})||o.y.of()}:function(e,t){return n.request(e,function(e){return a.request(e,t)||o.y.of()})||o.y.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},59508:function(e,t,r){"use strict";r.d(t,{u:function(){return L}});var n=r(23564),i=r(86909),o=r(27354),a=r(77304),s=r(19065),l=r(48216),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new o.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new o.ej(24);throw n.parseError=e,n}return r},c=r(30320);function d(e){var t={next:function(){return e.read()}};return c.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var h=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},f=r(30990),p=r(37280),m=Object.prototype.hasOwnProperty;function v(e,t){e.status>=300&&h(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function y(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}var g=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new o.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new o.ej(23)},b=r(87392);let _=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function x(e){return S[e.charCodeAt(0)]}let S=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function w(e){return(0,a.Vn)(e,k)}let k={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>E(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=O("(",E(e.variableDefinitions,", "),")"),r=E([e.operation,E([e.name,t]),E(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+O(" = ",r)+O(" ",E(n," "))},SelectionSet:{leave:({selections:e})=>T(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=O("",e,": ")+t,a=o+O("(",E(r,", "),")");return a.length>80&&(a=o+O("(\n",A(E(r,"\n")),"\n)")),E([a,E(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+O(" ",E(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>E(["...",O("on ",e),E(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${O("(",E(r,", "),")")} on ${t} ${O("",E(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,b.LZ)(e):`"${e.replace(_,x)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+E(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+E(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+O("(",E(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>O("",e,"\n")+E(["schema",E(t," "),T(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>O("",e,"\n")+E(["scalar",t,E(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>O("",e,"\n")+E(["type",t,O("implements ",E(r," & ")),E(n," "),T(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>O("",e,"\n")+t+(C(r)?O("(\n",A(E(r,"\n")),"\n)"):O("(",E(r,", "),")"))+": "+n+O(" ",E(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>O("",e,"\n")+E([t+": "+r,O("= ",n),E(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>O("",e,"\n")+E(["interface",t,O("implements ",E(r," & ")),E(n," "),T(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>O("",e,"\n")+E(["union",t,E(r," "),O("= ",E(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>O("",e,"\n")+E(["enum",t,E(r," "),T(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>O("",e,"\n")+E([t,E(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>O("",e,"\n")+E(["input",t,E(r," "),T(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>O("",e,"\n")+"directive @"+t+(C(r)?O("(\n",A(E(r,"\n")),"\n)"):O("(",E(r,", "),")"))+(n?" repeatable":"")+" on "+E(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>E(["extend schema",E(e," "),T(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>E(["extend scalar",e,E(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>E(["extend type",e,O("implements ",E(t," & ")),E(r," "),T(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>E(["extend interface",e,O("implements ",E(t," & ")),E(r," "),T(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>E(["extend union",e,E(t," "),O("= ",E(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>E(["extend enum",e,E(t," "),T(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>E(["extend input",e,E(t," "),T(r)]," ")}};function E(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function T(e){return O("{\n",A(E(e,"\n")),"\n}")}function O(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function A(e){return O("  ",e.replace(/\n/g,"\n  "))}function C(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var P={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},I=function(e,t){return t(e)},R=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function D(e){return new l.y(function(t){t.error(e)})}var j=r(36765),N=(0,o.wY)(function(){return fetch}),F=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,b=e.fetch,_=e.print,x=void 0===_?I:_,S=e.includeExtensions,k=e.preserveHeaderCase,E=e.useGETForQueries,T=e.includeUnusedVariables,O=void 0!==T&&T,A=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&g(b||N);var C={http:{includeExtensions:S,preserveHeaderCase:k},options:A.fetchOptions,credentials:A.credentials,headers:A.headers};return new i.i(function(e){var t,i,g,_,S=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),k=e.getContext(),T={};if(k.clientAwareness){var A=k.clientAwareness,I=A.name,F=A.version;I&&(T["apollographql-client-name"]=I),F&&(T["apollographql-client-version"]=F)}var L=(0,n.pi)((0,n.pi)({},T),k.headers),M=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,l=e.extensions,u=e.variables,c=e.query,d={operationName:s,variables:u};return a.includeExtensions&&(d.extensions=l),a.includeQuery&&(d.query=t(c,w)),{options:o,body:d}}(e,x,P,C,{http:k.http,options:k.fetchOptions,credentials:k.credentials,headers:L}),B=M.options,z=M.body;if(z.variables&&!O){var V=new Set(Object.keys(z.variables));(0,a.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&V.delete(e.name.value)}}),V.size&&(z.variables=(0,n.pi)({},z.variables),V.forEach(function(e){delete z.variables[e]}))}if(!B.signal){var $=R(),U=$.controller,q=$.signal;(_=U)&&(B.signal=q)}var G="OperationDefinition"===(g=(0,j.p$)(e.query)).kind&&"subscription"===g.operation,W=(0,s.FS)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(B.method="GET"),W||G){B.headers=B.headers||{};var H="multipart/mixed;";G&&W&&__DEV__&&o.kG.warn("Multipart-subscriptions do not support @defer"),G?H+="boundary=graphql;subscriptionSpec=1.0,application/json":W&&(H+="deferSpec=20220824,application/json"),B.headers.accept=H}if("GET"===B.method){var Q=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(S,z),Y=Q.newURI,K=Q.parseError;if(K)return D(K);S=Y}else try{B.body=u(z,"Payload")}catch(e){return D(e)}return new l.y(function(t){return(b||(0,o.wY)(function(){return fetch})||N)(S,B).then(function(r){e.setContext({response:r});var i,o=null===(i=r.headers)||void 0===i?void 0:i.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var r,i,o,a,s;return(0,n.mG)(this,void 0,void 0,function(){var l,u,h,m,g,b,_,x,S,w,k,E,T,O,A,C,P,I,R,D,j;return(0,n.Jh)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");l=new TextDecoder("utf-8"),u=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),h="boundary=",m=(null==u?void 0:u.includes(h))?null==u?void 0:u.substring((null==u?void 0:u.indexOf(h))+h.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",g="--".concat(m),b="",_=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,c.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return d(s.getReader());if(s.stream)return d(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},c.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return c.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),x=!0,N.label=1;case 1:if(!x)return[3,3];return[4,_.next()];case 2:for(w=(S=N.sent()).value,k=S.done,E="string"==typeof w?w:l.decode(w),x=!k,b+=E,T=b.indexOf(g);T>-1;){if(O=void 0,O=(D=[b.slice(0,T),b.slice(T+g.length)])[0],b=D[1],O.trim()){if(A=O.indexOf("\r\n\r\n"),(C=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(O.slice(0,A))["content-type"])&&-1===C.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");P=O.slice(A);try{I=v(e,P.replace("\r\n","")),Object.keys(I).length>1||"data"in I||"incremental"in I||"errors"in I||"payload"in I?(0,p.yU)(I)?(R={},"payload"in I&&(R=(0,n.pi)({},I.payload)),"errors"in I&&(R=(0,n.pi)((0,n.pi)({},R),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in R?R.extensions:null),((j={})[f.YG]=I.errors,j))})),null===(i=t.next)||void 0===i||i.call(t,R)):null===(o=t.next)||void 0===o||o.call(t,I):1===Object.keys(I).length&&"hasNext"in I&&!I.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(e){y(e,t)}}T=b.indexOf(g)}return[3,1];case 3:return null===(s=t.complete)||void 0===s||s.call(t),[2]}})})}(r,t):function(e,t,r){var n;(n=e).text().then(function(e){return v(n,e)}).then(function(e){return n.status>=300&&h(n,e,"Response not successful: Received status code ".concat(n.status)),Array.isArray(e)||m.call(e,"data")||m.call(e,"errors")||h(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}).catch(function(e){return y(e,r)})}(r,e,t)}).catch(function(e){return y(e,t)}),function(){_&&_.abort()}})})},L=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,F(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},85317:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(67294),i=r(30320).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=n.createContext[i];return e||(Object.defineProperty(n.createContext,i,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},66252:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(27354),i=r(67294),o=r(85317);function a(e){var t=(0,i.useContext)((0,o.K)()),r=e||t.client;return __DEV__?(0,n.kG)(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,n.kG)(!!r,32),r}},73359:function(e,t,r){"use strict";r.d(t,{t:function(){return u}});var n=r(23564),i=r(67294),o=r(14012),a=r(37887),s=r(66252),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var r,u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(),h=u.current?(0,o.J)(t,u.current):t,f=null!==(r=null==h?void 0:h.query)&&void 0!==r?r:e;c.current=h,d.current=f;var p=(0,a.A)((0,s.x)(t&&t.client),f),m=p.useQuery((0,n.pi)((0,n.pi)({},h),{skip:!u.current})),v=m.observable.options.initialFetchPolicy||p.getDefaultFetchPolicy(),y=Object.assign(m,{called:!!u.current}),g=(0,i.useMemo)(function(){for(var e={},t=0;t<l.length;t++)!function(t){var r=y[t];e[t]=function(){return u.current||(u.current=Object.create(null),p.forceUpdate()),r.apply(this,arguments)}}(l[t]);return e},[]);return Object.assign(y,g),[(0,i.useCallback)(function(e){u.current=e?(0,n.pi)((0,n.pi)({},e),{fetchPolicy:e.fetchPolicy||v}):{fetchPolicy:v};var t=(0,o.J)(c.current,(0,n.pi)({query:d.current},u.current)),r=p.executeQuery((0,n.pi)((0,n.pi)({},t),{skip:!1})).then(function(e){return Object.assign(e,g)});return r.catch(function(){}),r},[]),y]}},50319:function(e,t,r){"use strict";r.d(t,{D:function(){return c}});var n=r(23564),i=r(67294),o=r(14012),a=r(82152),s=r(14692),l=r(30990),u=r(66252);function c(e,t){var r=(0,u.x)(null==t?void 0:t.client);(0,s.Vp)(e,s.n_.Mutation);var c=(0,i.useState)({called:!1,loading:!1,client:r}),d=c[0],h=c[1],f=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(f.current,{client:r,options:t,mutation:e});var p=(0,i.useCallback)(function(e){void 0===e&&(e={});var t=f.current,r=t.options,i=t.mutation,s=(0,n.pi)((0,n.pi)({},r),{mutation:i}),u=e.client||f.current.client;f.current.result.loading||s.ignoreResults||!f.current.isMounted||h(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var c=++f.current.mutationId,d=(0,o.J)(s,e);return u.mutate(d).then(function(t){var r,n=t.data,i=t.errors,o=i&&i.length>0?new l.cA({graphQLErrors:i}):void 0;if(c===f.current.mutationId&&!d.ignoreResults){var s={called:!0,loading:!1,data:n,error:o,client:u};f.current.isMounted&&!(0,a.D)(f.current.result,s)&&h(f.current.result=s)}var p=e.onCompleted||(null===(r=f.current.options)||void 0===r?void 0:r.onCompleted);return null==p||p(t.data,d),t}).catch(function(t){if(c===f.current.mutationId&&f.current.isMounted){var r,n={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.D)(f.current.result,n)||h(f.current.result=n)}var i=e.onError||(null===(r=f.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){f.current.isMounted&&h({called:!1,loading:!1,client:r})},[]);return(0,i.useEffect)(function(){return f.current.isMounted=!0,function(){f.current.isMounted=!1}},[]),[p,(0,n.pi)({reset:m},d)]}},37887:function(e,t,r){"use strict";r.d(t,{A:function(){return w},a:function(){return S}});var n=r(23564),i=r(27354),o=r(67294),a=r.t(o,2),s=r(30320),l=!1,u=a.useSyncExternalStore||function(e,t,r){var n=t();__DEV__&&!l&&n!==t()&&(l=!0,__DEV__&&i.kG.error("The result of getSnapshot should be cached to avoid an infinite loop"));var a=o.useState({inst:{value:n,getSnapshot:t}}),u=a[0].inst,d=a[1];return s.JC?o.useLayoutEffect(function(){Object.assign(u,{value:n,getSnapshot:t}),c(u)&&d({inst:u})},[e,n,t]):Object.assign(u,{value:n,getSnapshot:t}),o.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var d=r(82152),h=r(14012),f=r(85317),p=r(30990),m=r(1644),v=r(14692),y=r(66252),g=r(48702),b=r(53712),_=r(21436),x=Object.prototype.hasOwnProperty;function S(e,t){return void 0===t&&(t=Object.create(null)),w((0,y.x)(t.client),e).useQuery(t)}function w(e,t){var r=(0,o.useRef)();r.current&&e===r.current.client&&t===r.current.query||(r.current=new k(e,t,r.current));var n=r.current,i=(0,o.useState)(0),a=(i[0],i[1]);return n.forceUpdate=function(){a(function(e){return e+1})},n}var k=function(){function e(e,t,r){this.client=e,this.query=t,this.ssrDisabledResult=(0,g.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.I.loading}),this.skipStandbyResult=(0,g.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.I.ready}),this.toQueryResultCache=new(s.mr?WeakMap:Map),(0,v.Vp)(t,v.n_.Query);var n=r&&r.result,i=n&&n.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.kG.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,f.K)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=u((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,d.D)(e.data,n.data)||t.setResult(n)},n=function(o){var a=r.last;i.unsubscribe();try{r.resetLastResults(),i=r.subscribe(e,n)}finally{r.last=a}if(!x.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!(0,d.D)(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:m.I.error})},i=r.subscribe(e,n);return function(){return setTimeout(function(){return i.unsubscribe()})}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;!(0,d.D)(n,i)&&(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(h.J)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,r=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,n._T)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===s?a:s,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then(function(){r?t.onError(r):e.data&&t.onCompleted(e.data)}).catch(function(e){__DEV__&&i.kG.warn(e)})}},e.prototype.toApolloError=function(e){return(0,_.O)(e.errors)?new p.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,_.O)(e.errors)&&(t.error=new p.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.I.refetch}),this.observable.refetch())},e}()},14692:function(e,t,r){"use strict";r.d(t,{Vp:function(){return l},n_:function(){return i}});var n,i,o=r(27354);(n=i||(i={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription";var a=new Map;function s(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function l(e,t){var r=function(e){var t,r,n=a.get(e);if(n)return n;__DEV__?(0,o.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,o.kG)(!!e&&!!e.kind,33);for(var s=[],l=[],u=[],c=[],d=0,h=e.definitions;d<h.length;d++){var f=h[d];if("FragmentDefinition"===f.kind){s.push(f);continue}if("OperationDefinition"===f.kind)switch(f.operation){case"query":l.push(f);break;case"mutation":u.push(f);break;case"subscription":c.push(f)}}__DEV__?(0,o.kG)(!s.length||l.length||u.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,o.kG)(!s.length||l.length||u.length||c.length,34),__DEV__?(0,o.kG)(l.length+u.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(l.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(u.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(l.length+u.length+c.length<=1,35),r=l.length?i.Query:i.Mutation,l.length||u.length||(r=i.Subscription);var p=l.length?l:u.length?u:c;__DEV__?(0,o.kG)(1===p.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(p.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(1===p.length,36);var m=p[0];t=m.variableDefinitions||[];var v={name:m.name&&"Name"===m.name.kind?m.name.value:"data",type:r,variables:t};return a.set(e,v),v}(e),n=s(t),l=s(r.type);__DEV__?(0,o.kG)(r.type===t,"Running a ".concat(n," requires a graphql ")+"".concat(n,", but a ").concat(l," was used instead.")):(0,o.kG)(r.type===t,37)}},21436:function(e,t,r){"use strict";r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:function(e,t,r){"use strict";r.d(t,{DN:function(){return s},JC:function(){return c},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(27354),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,l="function"==typeof(0,n.wY)(function(){return window.document.createElement}),u=(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,c=l&&!u},79487:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},53712:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},37280:function(e,t,r){"use strict";r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return u},yU:function(){return l}});var n=r(13154),i=r(21436),o=r(182);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function l(e){return(0,n.s)(e)&&"payload"in e}function u(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},60897:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48702:function(e,t,r){"use strict";r.d(t,{J:function(){return i}}),r(27354);var n=r(13154);function i(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,n.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.s)(e[r])&&t.add(e[r])})})}return e}},182:function(e,t,r){"use strict";r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return u}});var n=r(23564),i=r(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new u,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var l=function(e,t,r){return this.merge(e[r],t[r])},u=function(){function e(e){void 0===e&&(e=l),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var l=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));l!==s&&((e=r.shallowCopyForMerge(e))[i]=l)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},14012:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(23564),i=r(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,n.pi)((0,n.pi)({},e&&e.variables),t.variables)})}},13154:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:function(){return n}})},27354:function(e,t,r){"use strict";r.d(t,{ej:function(){return l},kG:function(){return u},wY:function(){return f}});var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,l=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function u(e,t){if(!e)throw new l(t)}var c=["debug","log","warn","error","silent"],d=c.indexOf("log");function h(e){return function(){if(c.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}function f(e){try{return e()}catch(e){}}(n=u||(u={})).debug=h("debug"),n.log=h("log"),n.warn=h("warn"),n.error=h("error");var p=f(function(){return globalThis})||f(function(){return window})||f(function(){return self})||f(function(){return global})||f(function(){return f.constructor("return this")()}),m="__DEV__",v=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(p,m,{value:"production"!==f(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),p[m]}}(),y=r(83454);function g(e){try{return e()}catch(e){}}var b=g(function(){return globalThis})||g(function(){return window})||g(function(){return self})||g(function(){return global})||g(function(){return g.constructor("return this")()}),_=!1;!b||g(function(){return"production"})||g(function(){return y})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),_=!0),r(51270).H,_&&(delete b.process,_=!1),__DEV__?u("boolean"==typeof v,v):u("boolean"==typeof v,39)},19065:function(e,t,r){"use strict";r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(27354),i=r(77304);function o(e,t){var r,i=e.directives;return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if("skip"===(t=e.name.value)||"include"===t){var i=e.arguments,o=e.name.value;__DEV__?(0,n.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,n.kG)(i&&1===i.length,41);var a=i[0];__DEV__?(0,n.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,n.kG)(a.name&&"if"===a.name.value,42);var s=a.value;__DEV__?(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),43),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,40)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},23361:function(e,t,r){"use strict";r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(23564),i=r(27354);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,45),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,46),n||null;default:return null}}},36765:function(e,t,r){"use strict";r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return h},iW:function(){return u},kU:function(){return l},p$:function(){return d},pD:function(){return c},rY:function(){return s}});var n=r(27354),i=r(51761);function o(e){__DEV__?(0,n.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.ej(48);return e});return __DEV__?(0,n.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.kG)(t.length<=1,49),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=a(e);return __DEV__?(0,n.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.kG)(t&&"query"===t.operation,50),t}function c(e){__DEV__?(0,n.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===e.kind,51),__DEV__?(0,n.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===t.kind,53),t}function d(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(54)}function h(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},51761:function(e,t,r){"use strict";r.d(t,{Ao:function(){return g},JW:function(){return l},My:function(){return y},NC:function(){return m},PT:function(){return h},Yk:function(){return s},kQ:function(){return a},qw:function(){return function e(t,r,n){if("string"==typeof t.__typename)return t.__typename;for(var i=0,a=r.selections;i<a.length;i++){var s=a[i];if(y(s)){if("__typename"===s.name.value)return t[v(s)]}else{var l=e(t,(0,o.hi)(s,n).selectionSet,n);if("string"==typeof l)return l}}}},u2:function(){return v},vb:function(){return u},vf:function(){return c}});var n=r(27354),i=r(13154),o=r(23361);function a(e){return{__ref:String(e)}}function s(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return u(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new n.ej('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(55)}function c(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return u(n,e.name,e.value,t)})),h(e.name.value,n,r)}var d=["connection","include","skip","client","rest","export"],h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(f(i),")")}var o=e;if(t){var a=f(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===d.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(f(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=f;return f=e,t}}),f=function(e){return JSON.stringify(e,p)};function p(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return u(r,e.name,e.value,t)}),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},76487:function(e,t,r){"use strict";r.d(t,{Fo:function(){return v},Gw:function(){return p},aL:function(){return y},ob:function(){return g}});var n=r(23564),i=r(27354),o=r(97359),a=r(77304),s=r(36765),l=r(51761),u=r(23361),c=r(21436),d={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function f(e,t){for(var r,l,d,f=h(""),p=h(""),m=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,c.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return f(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return p(r.name.value)}return __DEV__&&i.kG.error("Could not find operation or fragment"),null},v=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===o.h.OPERATION_DEFINITION&&++v;var g=(r=new Set,l=[],e.forEach(function(e){e.name?r.add(e.name):e.test&&l.push(e.test)}),function(e){return r.has(e.name.value)||l.some(function(t){return t(e)})}),b=e.some(function(e){return e.remove}),_=function(e){return b&&e&&e.some(g)},x=new Map,S=!1,w={enter:function(e){if(_(e.directives))return S=!0,null}},k=(0,a.Vn)(t,{Field:w,InlineFragment:w,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=m(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(_(e.directives))return S=!0,null;var o=m(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){x.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===x.get(JSON.stringify(n))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(p(e.name.value).removed=!0,S=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return S=!0,null}}});if(!S)return t;var E=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){E(p(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},T=new Set;k.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?E(f(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){T.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==v||p(e.name.value).removed||T.add(e.name.value)}),T.forEach(function(e){E(p(e)).fragmentSpreads.forEach(function(e){T.add(e)})});var O={enter:function(e){var t;if(t=e.name.value,!T.has(t)||p(t).removed)return null}};return d=(0,a.Vn)(k,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=E(f(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(d)||(0,s.pD)(d),(0,u.F)((0,s.kU)(d)))?d:null}var p=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,l.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[d],!1)})}}}})},{added:function(e){return e===d}}),m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function v(e){return f([m],(0,s.A$)(e))}function y(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function g(e){return(0,s.A$)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},45161:function(e,t,r){"use strict";r.d(t,{If:function(){return o},kc:function(){return i}});var n=r(67294),i=(0,n.createContext)({});function o(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}i.displayName="ColorModeContext"},36948:function(e,t,r){"use strict";r.d(t,{J:function(){return u}});var n=r(16554),i=r(27603),o=r(16914),a=r(25432),s=r(85893),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.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,s.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,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,n.G)((e,t)=>{let{as:r,viewBox:n,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:f,...p}=e,m=(0,a.cx)("chakra-icon",h),v=(0,i.mq)("Icon",e),y={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...f,...v},g={ref:t,focusable:c,className:m,__css:y},b=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.m.svg,{as:r,...g,...p});let _=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:b,...g,...p,children:_})});u.displayName="Icon"},1702:function(e,t,r){"use strict";r.d(t,{h:function(){return m}});var n=r(695),i=r(26245),o=r(55227),a=r(73935),s=r(67294),l=r(85893),[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=e=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),f=e=>{let{appendToParentPortal:t,children:r}=e,[o,f]=(0,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let v=c(),y=(0,n.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,r=t&&null!=v?v:e.body;if(!r)return;p.current=e.createElement("div"),p.current.className=d,r.appendChild(p.current),m({});let n=p.current;return()=>{r.contains(n)&&r.removeChild(n)}},[o]);let g=(null==y?void 0:y.zIndex)?(0,l.jsx)(h,{zIndex:null==y?void 0:y.zIndex,children:r}):r;return p.current?(0,a.createPortal)((0,l.jsx)(u,{value:p.current,children:g}),p.current):(0,l.jsx)("span",{ref:e=>{e&&f(e)}})},p=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,f]=(0,s.useState)({});return((0,i.G)(()=>f({}),[]),(0,i.G)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,l.jsx)(u,{value:n?h:null,children:t}),h):null};function m(e){let t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,l.jsx)(p,{containerRef:r,...n}):(0,l.jsx)(f,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},695:function(e,t,r){"use strict";r.d(t,{L:function(){return a},h:function(){return s}});var n=r(55227),i=r(85893),[o,a]=(0,n.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(o,{value:{zIndex:r},children:t})}s.displayName="PortalManager"},55227:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(67294);function i(e={}){let{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;let s=(0,n.useContext)(l);if(!s&&r){let r=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},l]}},76336:function(e,t,r){"use strict";r.d(t,{O:function(){return s},u:function(){return l}});var n=r(26245),i=r(67294),o=r(85893),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,n.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function l(e){let{children:t,environment:r,disabled:n}=e,s=(0,i.useRef)(null),l=(0,i.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),u=!n||!r;return(0,o.jsxs)(a.Provider,{value:l,children:[t,u&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},35155:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(67294);function i(e,t=[]){let 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)}},26245:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},25432:function(e,t,r){"use strict";r.d(t,{Kn:function(){return i},PB:function(){return l},Pu:function(){return a},ZK:function(){return o},cx:function(){return n},v0:function(){return u}});var n=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0;function u(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}},33179:function(e,t,r){"use strict";r.d(t,{D:function(){return eP},Lr:function(){return eR},Ud:function(){return eI},ZR:function(){return ew},_6:function(){return er},c0:function(){return eb},cC:function(){return ex},fj:function(){return eC},gJ:function(){return et},iv:function(){return eO},k0:function(){return eA}});var n=r(25432),i=r(38554),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>r=>{let i=String(t),s=o(i),l=a(i),u=e?`${e}.${l}`:l,c=(0,n.Kn)(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return c=a(c),s?`${c} !important`:c};function l(e){let{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;let a=s(t,e)(i),l=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(l=n(l,i)),l}}var u=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return r=>{let n={property:r,scale:e};return n.transform=l({scale:e,transform:t}),n}}var d=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,h=["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))"],f={"--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)"},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)","--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,/*!*/ /*!*/)"},m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},v={"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"},y=new Set(Object.values(v)),g=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),_=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),x=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},S=e=>t=>`${e}(${t})`,w={filter:e=>"auto"!==e?e:f,backdropFilter:e=>"auto"!==e?e:p,ring:e=>({"--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":w.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=x(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||g.has(e))return e;let r=_(e)||g.has(e);if(!r)return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!i||!o)return e;let a=i.includes("-gradient")?i:`${i}-gradient`,[s,...l]=o.split(",").map(b).filter(Boolean);if((null==l?void 0:l.length)===0)return e;let u=s in v?v[s]:s;l.unshift(u);let c=l.map(e=>{if(y.has(e))return e;let r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=_(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${a}(${c.join(", ")})`})(e,null!=t?t:{}),blur:S("blur"),opacity:S("opacity"),brightness:S("brightness"),contrast:S("contrast"),dropShadow:S("drop-shadow"),grayscale:S("grayscale"),hueRotate:e=>S("hue-rotate")(w.degree(e)),invert:S("invert"),saturate:S("saturate"),sepia:S("sepia"),bgImage(e){if(null==e)return e;let t=_(e)||g.has(e);return t?e:`url(${e})`},outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:n}=null!=(t=m[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},k={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",u(w.vh,w.px)),spaceT:c("space",u(w.vh,w.px)),degreeT:e=>({property:e,transform:w.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",u(w.vh,w.px)),sizesT:c("sizes",u(w.vh,w.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:r,transform:n}=e;return{scale:r,property:d(t),transform:r?l({scale:r,compose:n}):n}},blur:c("blur",w.blur)},E={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:w.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:w.bgClip}};Object.assign(E,{bgImage:E.backgroundImage,bgImg:E.backgroundImage});var T={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(T,{rounded:T.borderRadius,roundedTop:T.borderTopRadius,roundedTopLeft:T.borderTopLeftRadius,roundedTopRight:T.borderTopRightRadius,roundedTopStart:T.borderStartStartRadius,roundedTopEnd:T.borderStartEndRadius,roundedBottom:T.borderBottomRadius,roundedBottomLeft:T.borderBottomLeftRadius,roundedBottomRight:T.borderBottomRightRadius,roundedBottomStart:T.borderEndStartRadius,roundedBottomEnd:T.borderEndEndRadius,roundedLeft:T.borderLeftRadius,roundedRight:T.borderRightRadius,roundedStart:T.borderInlineStartRadius,roundedEnd:T.borderInlineEndRadius,borderStart:T.borderInlineStart,borderEnd:T.borderInlineEnd,borderTopStartRadius:T.borderStartStartRadius,borderTopEndRadius:T.borderStartEndRadius,borderBottomStartRadius:T.borderEndStartRadius,borderBottomEndRadius:T.borderEndEndRadius,borderStartRadius:T.borderInlineStartRadius,borderEndRadius:T.borderInlineEndRadius,borderStartWidth:T.borderInlineStartWidth,borderEndWidth:T.borderInlineEndWidth,borderStartColor:T.borderInlineStartColor,borderEndColor:T.borderInlineEndColor,borderStartStyle:T.borderInlineStartStyle,borderEndStyle:T.borderInlineEndStyle});var O={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")},A={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(A,{shadow:A.boxShadow});var C={filter:{transform:w.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",w.brightness),contrast:k.propT("--chakra-contrast",w.contrast),hueRotate:k.propT("--chakra-hue-rotate",w.hueRotate),invert:k.propT("--chakra-invert",w.invert),saturate:k.propT("--chakra-saturate",w.saturate),dropShadow:k.propT("--chakra-drop-shadow",w.dropShadow),backdropFilter:{transform:w.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",w.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",w.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",w.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",w.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",w.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:w.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(P,{flexDir:P.flexDirection});var I={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.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:k.colors("outlineColor")},D={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.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,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e,a=`@media screen and (min-width: ${o})`;return{[a]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e,a=`@media screen and (max-width: ${o})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",w.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(D,{w:D.width,h:D.height,minW:D.minWidth,maxW:D.maxWidth,minH:D.minHeight,maxH:D.maxHeight,overscroll:D.overscrollBehavior,overscrollX:D.overscrollBehaviorX,overscrollY:D.overscrollBehaviorY});var j={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},N=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e}),F={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},L={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},M=(e,t,r)=>{let n={},i=N(e,t,{});for(let e in i){let t=e in r&&null!=r[e];t||(n[e]=i[e])}return n},B={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});var z={ring:{transform:w.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},V={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(V,{m:V.margin,mt:V.marginTop,mr:V.marginRight,me:V.marginInlineEnd,marginEnd:V.marginInlineEnd,mb:V.marginBottom,ml:V.marginLeft,ms:V.marginInlineStart,marginStart:V.marginInlineStart,mx:V.marginX,my:V.marginY,p:V.padding,pt:V.paddingTop,py:V.paddingY,px:V.paddingX,pb:V.paddingBottom,pl:V.paddingLeft,ps:V.paddingInlineStart,paddingStart:V.paddingInlineStart,pr:V.paddingRight,pe:V.paddingInlineEnd,paddingEnd:V.paddingInlineEnd});var $={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},U={clipPath:!0,transform:k.propT("transform",w.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},q={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},G={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",w.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.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"}},W={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function H(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var Q=(e,...t)=>t.map(H).join(` ${e} `).replace(/calc/g,""),Y=(...e)=>`calc(${Q("+",...e)})`,K=(...e)=>`calc(${Q("-",...e)})`,J=(...e)=>`calc(${Q("*",...e)})`,Z=(...e)=>`calc(${Q("/",...e)})`,X=e=>{let t=H(e);return null==t||Number.isNaN(parseFloat(t))?J(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(Y(e,...t)),subtract:(...t)=>ee(K(e,...t)),multiply:(...t)=>ee(J(e,...t)),divide:(...t)=>ee(Z(e,...t)),negate:()=>ee(X(e)),toString:()=>e.toString()}),{add:Y,subtract:K,multiply:J,divide:Z,negate:X});function et(e,t,r){let n=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(e,r);return{variable:n,reference:`var(${n}${t?`, ${t}`:""})`}}function er(e,t){let r={};for(let n of t){if(Array.isArray(n)){let[t,i]=n;r[t]=et(`${e}-${t}`,i);continue}r[n]=et(`${e}-${n}`)}return r}function en(e){if(null==e)return e;let{unitless:t}=function(e){let 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 ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=en(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function el(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${en(e)})`),t&&r.push("and",`(max-width: ${en(t)})`),r.join(" ")}var eu={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ec=e=>eh(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ed=e=>eh(t=>e(t,"~ &"),"[data-peer]",".peer"),eh=(e,...t)=>t.map(e).join(", "),ef={_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:ec(eu.hover),_peerHover:ed(eu.hover),_groupFocus:ec(eu.focus),_peerFocus:ed(eu.focus),_groupFocusVisible:ec(eu.focusVisible),_peerFocusVisible:ed(eu.focusVisible),_groupActive:ec(eu.active),_peerActive:ed(eu.active),_groupDisabled:ec(eu.disabled),_peerDisabled:ed(eu.disabled),_groupInvalid:ec(eu.invalid),_peerInvalid:ed(eu.invalid),_groupChecked:ec(eu.checked),_peerChecked:ed(eu.checked),_groupFocusWithin:ec(eu.focusWithin),_peerFocusWithin:ed(eu.focusWithin),_peerPlaceholderShown:ed(eu.placeholderShown),_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]"},ep=Object.keys(ef);function em(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function ev(e,t,r={}){let{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if("object"==typeof r&&null!=r&&!Array.isArray(r)||Array.isArray(r)){let s={};for(let[l,u]of Object.entries(r)){let c=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,c];if(null==n?void 0:n(r,d))return t(r,o);s[c]=e(u,d)}return s}return t(r,o)}(e)}var ey=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],eg=e=>ep.includes(e)||"default"===e;function eb(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),o=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,ey),a=r.semanticTokens,s=function({tokens:e,semanticTokens:t}){let r={};return ev(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),ev(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(eg)}),r}({tokens:o,semanticTokens:a}),l=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:u}=s,{variable:c,reference:d}=em(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,i=ee.negate(u),s=ee.negate(d);o[n]={value:i,var:c,varRef:s}}r[c]=u,o[a]={value:u,var:c,varRef:d};continue}let h=r=>{let n=String(a).split(".")[0],i=[n,r].join("."),o=e[i];if(!o)return r;let{reference:s}=em(i,null==t?void 0:t.cssVarPrefix);return s},f=(0,n.Kn)(u)?u:{default:u};r=i(r,Object.entries(f).reduce((e,[t,r])=>{var n;if(!r)return e;let i=h(`${r}`);if("default"===t)return e[c]=i,e;let o=null!=(n=null==ef?void 0:ef[t])?n:t;return e[o]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:r,cssMap:o}}(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",...c},__cssMap:u,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=ea(e),i=Object.entries(e).sort(ei).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:el(null,o),minWQuery:el(t),minMaxQuery:el(t,o)}}),o=function(e){let t=Object.keys(eo(e));return new Set(t)}(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...r.map(e=>el(e)).slice(1)],toArrayValue(e){if(!(0,n.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}(r.breakpoints)}),r}var e_=i({},E,T,O,P,D,C,z,R,I,{srOnly:{transform:e=>!0===e?F:"focusable"===e?L:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>M(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>M(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>M(t,e,r)}},B,A,V,W,G,$,U,j,q);Object.keys(Object.assign({},V,D,P,I,B));var ex=[...Object.keys(e_),...ep],eS={...e_,...ef},ew=e=>e in eS,ek=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let l=(0,n.Pu)(e[s],t);if(null==l)continue;if(!Array.isArray(l=(0,n.Kn)(l)&&r(l)?i(l):l)){a[s]=l;continue}let u=l.slice(0,o.length).length;for(let e=0;e<u;e+=1){let t=null==o?void 0:o[e];if(!t){a[s]=l[e];continue}a[t]=a[t]||{},null!=l[e]&&(a[t][s]=l[e])}}return a},eE=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eT=(e,t)=>{var r,n;if(null==t)return t;let i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],r="",n=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(n=!0,r+=o):")"===o?(n=!1,r+=o):","!==o||n?r+=o:(t.push(r),r="")}return(r=r.trim())&&t.push(r),t}(t);return t=null!=(n=null!=(r=i(a))?r:o(s))?n:o(t)},eO=e=>t=>{let r=function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var l,u,c;let d=(0,n.Pu)(e,o),h=ek(d)(o),f={};for(let e in h){let p=h[e],m=(0,n.Pu)(p,o);e in r&&(e=r[e]),eE(e,m)&&(m=eT(o,m));let v=t[e];if(!0===v&&(v={property:e}),(0,n.Kn)(m)){f[e]=null!=(l=f[e])?l:{},f[e]=i({},f[e],a(m,!0));continue}let y=null!=(c=null==(u=null==v?void 0:v.transform)?void 0:u.call(v,m,o,d))?c:m;y=(null==v?void 0:v.processResult)?a(y,!0):y;let g=(0,n.Pu)(null==v?void 0:v.property,o);if(!s&&(null==v?void 0:v.static)){let e=(0,n.Pu)(v.static,o);f=i({},f,e)}if(g&&Array.isArray(g)){for(let e of g)f[e]=y;continue}if(g){"&"===g&&(0,n.Kn)(y)?f=i({},f,y):f[g]=y;continue}if((0,n.Kn)(y)){f=i({},f,y);continue}f[e]=y}return f};return a}({theme:t,pseudos:ef,configs:e_});return r(e)};function eA(e){return e}function eC(e){return e}function eP(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eI(e){return t=>{var r;let{variant:o,size:a,theme:s}=t,l=function(e){let t=e.__breakpoints;return function(e,r,o,a){var s,l,u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(o)?o:(0,n.Kn)(o)?u(o):null!=o?[o]:void 0);if(!d)return c;let h=d.length,f=1===h,p=!!e.parts;for(let o=0;o<h;o++){let u=t.details[o],h=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(d,o)],m=el(u.minW,null==h?void 0:h._minW),v=(0,n.Pu)(null==(s=e[r])?void 0:s[d[o]],a);if(v){if(p){null==(l=e.parts)||l.forEach(e=>{i(c,{[e]:f?v[e]:{[m]:v[e]}})});continue}if(!p){f?i(c,v):c[m]=v;continue}c[m]=v}}return c}}(s);return i({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eR(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},27603:function(e,t,r){"use strict";r.d(t,{jC:function(){return h},mq:function(){return d}});var n=r(48940),i=r(45161),o=r(33179),a=r(21759),s=r(38554),l=r(67294),u=r(69590);function c(e,t={}){var r;let{styleConfig:c,...d}=t,{theme:h,colorMode:f}=function(){let e=(0,i.If)(),t=(0,n.F)();return{...e,theme:t}}(),p=e?(0,a.Wf)(h,`components.${e}`):void 0,m=c||p,v=s({theme:h,colorMode:f},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,a.YU)((0,a.CE)(d,["children"]))),y=(0,l.useRef)({});if(m){let e=(0,o.Ud)(m),t=e(v),r=u(y.current,t);r||(y.current=t)}return y.current}function d(e,t={}){return c(e,t)}function h(e,t={}){return c(e,t)}},85607:function(e,t,r){"use strict";r.d(t,{ZL:function(){return y},f6:function(){return h},eC:function(){return v}});var n=r(45161),i=r(67294);function o(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=(0,i.createContext)(void 0);return o.displayName=n,[o.Provider,function e(){var n;let a=(0,i.useContext)(o);if(!a&&t){let t=Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return a},o]}var a=r(33179),s=r(21759),l=r(36597),u=r(76330),c=r(70917),d=r(85893);function h(e){let{cssVarsRoot:t,theme:r,children:n}=e,o=(0,i.useMemo)(()=>(0,a.c0)(r),[r]);return(0,d.jsxs)(u.a,{theme:o,children:[(0,d.jsx)(f,{root:t}),n]})}function f({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(c.xB,{styles:e=>({[t]:e.__cssVars})})}var[p,m]=o({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function v(e){return o({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function y(){let{colorMode:e}=(0,n.If)();return(0,d.jsx)(c.xB,{styles:t=>{let r=(0,s.Wf)(t,"styles.global"),n=(0,l.Pu)(r,{theme:t,colorMode:e});if(!n)return;let i=(0,a.iv)(n)(t);return i}})}},48940:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(76330),i=r(67294);function o(){let e=(0,i.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},16914:function(e,t,r){"use strict";r.d(t,{m:function(){return A}});var n,i=r(33179),o=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),a=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function s(e){return a.has(e)||!o.has(e)}var l=r(45161),u=r(21759),c=r(36597),d=r(87462),h=r(67294),f=r(45042),p=/^((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,f.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),v=r(76330),y=r(70444),g=r(48137),b=r(27278),_=function(e){return"theme"!==e},x=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:_},S=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},w=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,y.hC)(t,r,n),(0,b.L)(function(){return(0,y.My)(t,r,n)}),null},k=(function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=S(t,r,o),l=s||x(a),u=!l("as");return function(){var c=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==c[0]||void 0===c[0].raw)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,m=1;m<p;m++)f.push(c[m],c[0][m])}var b=(0,v.w)(function(e,t,r){var n=u&&e.as||a,o="",c=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=h.useContext(v.T)}"string"==typeof e.className?o=(0,y.fp)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var m=(0,g.O)(f.concat(c),t.registered,d);o+=t.key+"-"+m.name,void 0!==i&&(o+=" "+i);var b=u&&void 0===s?x(n):l,_={};for(var S in e)(!u||"as"!==S)&&b(S)&&(_[S]=e[S]);return _.className=o,_.ref=r,h.createElement(h.Fragment,null,h.createElement(w,{cache:t,serialized:m,isStringTag:"string"==typeof n}),h.createElement(n,_))});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=f,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,n){return e(t,(0,d.Z)({},r,n,{shouldForwardProp:S(b,n,!0)})).apply(void 0,f)},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){k[e]=k(e)});var E=null!=(n=k.default)?n:k,T=({baseStyle:e})=>t=>{let{theme:r,css:n,__css:o,sx:a,...s}=t,l=(0,u.lw)(s,(e,t)=>(0,i.ZR)(t)),d=(0,c.Pu)(e,t),h=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},o,d,(0,u.YU)(l),a),f=(0,i.iv)(h)(t.theme);return n?[f,n]:f};function O(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=s);let i=T({baseStyle:r}),o=E(e,n)(i),a=h.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,l.If)();return h.createElement(o,{ref:t,"data-theme":n?r:void 0,...e})});return a}var A=function(){let e=new Map;return new Proxy(O,{apply:(e,t,r)=>O(...r),get:(t,r)=>(e.has(r)||e.set(r,O(r)),e.get(r))})}()},16554:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294);function i(e){return(0,n.forwardRef)(e)}},36597:function(e,t,r){"use strict";function n(e,...t){return"function"==typeof e?e(...t):e}function i(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}r.d(t,{v0:function(){return i},Pu:function(){return n}})},21759:function(e,t,r){"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}r.d(t,{CE:function(){return n},Wf:function(){return i},YU:function(){return a},lw:function(){return o}}),r(38554);var i=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e});function o(e,t){let r={};return Object.keys(e).forEach(n=>{let i=e[n],o=t(i,n,e);o&&(r[n]=i)}),r}var a=e=>o(e,e=>null!=e)},82729:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:function(){return n}})},70093:function(e,t,r){"use strict";r.d(t,{g7:function(){return u}});let n=null,i={},o=1;function a(e){try{return e()}catch(e){}}let s="@wry/context:Slot",l=a(()=>globalThis)||a(()=>global)||Object.create(null),u=l[s]||Array[s]||function(e){try{Object.defineProperty(l,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){let o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){let t=n;return function(){let r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{let i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:c,noContext:d}=u},51526:function(e,t,r){"use strict";r.d(t,{M:function(){return g}});var n=r(85893),i=r(67294),o=r(58868);function a(){let e=(0,i.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=r(26166),l=r(240),u=r(96681),c=r(16014);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let 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 h({children:e,isPresent:t}){let r=(0,i.useId)(),o=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:l}=a.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${n}px !important;
            top: ${i}px !important;
            left: ${l}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[t]),(0,n.jsx)(d,{isPresent:t,childRef:o,sizeRef:a,children:i.cloneElement(e,{ref:o})})}let f=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:a,presenceAffectsLayout:s,mode:c})=>{let d=(0,u.h)(p),f=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:f,initial:t,isPresent:r,custom:a,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),s?[Math.random()]:[r]);return(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),i.useEffect(()=>{r||d.size||!o||o()},[r]),"popLayout"===c&&(e=(0,n.jsx)(h,{isPresent:r,children:e})),(0,n.jsx)(l.O.Provider,{value:m,children:e})};function p(){return new Map}var m=r(25364),v=r(45487);let y=e=>e.key||"",g=({children:e,custom:t,initial:r=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:d="sync"})=>{var h;(0,v.k)(!u,"Replace exitBeforeEnter with mode='wait'");let p=(0,i.useContext)(m.p).forceRender||function(){let e=a(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)(()=>{e.current&&r(t+1)},[t]),o=(0,i.useCallback)(()=>s.Wi.postRender(n),[n]);return[o,t]}()[0],g=a(),b=function(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),_=b,x=(0,i.useRef)(new Map).current,S=(0,i.useRef)(_),w=(0,i.useRef)(new Map).current,k=(0,i.useRef)(!0);if((0,o.L)(()=>{k.current=!1,function(e,t){e.forEach(e=>{let r=y(e);t.set(r,e)})}(b,w),S.current=_}),h=()=>{k.current=!0,w.clear(),x.clear()},(0,i.useEffect)(()=>()=>h(),[]),k.current)return(0,n.jsx)(n.Fragment,{children:_.map(e=>(0,n.jsx)(f,{isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c,mode:d,children:e},y(e)))});_=[..._];let E=S.current.map(y),T=b.map(y),O=E.length;for(let e=0;e<O;e++){let t=E[e];-1!==T.indexOf(t)||x.has(t)||x.set(t,void 0)}return"wait"===d&&x.size&&(_=[]),x.forEach((e,r)=>{if(-1!==T.indexOf(r))return;let i=w.get(r);if(!i)return;let o=E.indexOf(r),a=e;a||(a=(0,n.jsx)(f,{isPresent:!1,onExitComplete:()=>{x.delete(r);let e=Array.from(w.keys()).filter(e=>!T.includes(e));if(e.forEach(e=>w.delete(e)),S.current=b.filter(t=>{let n=y(t);return n===r||e.includes(n)}),!x.size){if(!1===g.current)return;p(),l&&l()}},custom:t,presenceAffectsLayout:c,mode:d,children:i},y(i)),x.set(r,a)),_.splice(o,0,a)}),_=_.map(e=>{let t=e.key;return x.has(t)?e:(0,n.jsx)(f,{isPresent:!0,presenceAffectsLayout:c,mode:d,children:e},y(e))}),(0,n.jsx)(n.Fragment,{children:x.size?_:_.map(e=>(0,i.cloneElement)(e))})}},15947:function(e,t,r){"use strict";r.d(t,{hO:function(){return a},oO:function(){return o}});var n=r(67294),i=r(240);function o(){let e=(0,n.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,a=(0,n.useId)();return(0,n.useEffect)(()=>o(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function a(){var e;return null===(e=(0,n.useContext)(i.O))||e.isPresent}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var n=r(67294);let i=(0,n.createContext)({})},16014:function(e,t,r){"use strict";r.d(t,{_:function(){return i}});var n=r(67294);let i=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(67294);let i=(0,n.createContext)(null)},89727:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(22081);class i{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){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function a(e,t){let r=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new i,r=new i,n=0,o=!1,a=!1,s=new WeakSet,l={schedule:(e,i=!1,a=!1)=>{let l=a&&o,u=l?t:r;return i&&s.add(e),u.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:i=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;r<n;r++){let n=t.order[r];s.has(n)&&(l.schedule(n),e()),n(i)}o=!1,a&&(a=!1,l.process(i))}};return l}(()=>r=!0),e),{}),u=e=>{l[e].process(s)},c=()=>{let i=n.c.useManualTiming?s.timestamp:performance.now();r=!1,s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(u),s.isProcessing=!1,r&&t&&(a=!1,e(c))},d=()=>{r=!0,a=!0,s.isProcessing||e(c)},h=o.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||d(),n.schedule(e,t,i)),e},{});return{schedule:h,cancel:e=>o.forEach(t=>l[t].cancel(e)),state:s,steps:l}}},26166:function(e,t,r){"use strict";r.d(t,{Pn:function(){return a},S6:function(){return l},Wi:function(){return o},w0:function(){return s}});var n=r(81662),i=r(89727);let{schedule:o,cancel:a,state:s,steps:l}=(0,i.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},77672:function(e,t,r){"use strict";let n,i;r.d(t,{E:function(){return i2}});var o,a,s=r(85893),l=r(67294),u=r(16014);let c=(0,l.createContext)({});var d=r(240),h=r(58868);let f=(0,l.createContext)({strict:!1}),p=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m="data-"+p("framerAppearId");var v=r(89727);let{schedule:y,cancel:g}=(0,v.Z)(queueMicrotask,!1);function b(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _(e){return"string"==typeof e||Array.isArray(e)}function x(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let S=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],w=["initial",...S];function k(e){return x(e.animate)||w.some(t=>_(e[t]))}function E(e){return!!(k(e)||e.variants)}function T(e){return Array.isArray(e)?e.join(" "):e}let O={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"]},A={};for(let e in O)A[e]={isEnabled:t=>O[e].some(e=>!!t[e])};var C=r(11741),P=r(25364);let I=(0,l.createContext)({}),R=Symbol.for("motionComponentSymbol"),D=["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 j(e){if("string"!=typeof e||e.includes("-"));else if(D.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let N={},F=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(F);function M(e,{layout:t,layoutId:r}){return L.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!N[e]||"opacity"===e)}let B=e=>!!(e&&e.getVelocity),z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V=F.length,$=e=>t=>"string"==typeof t&&t.startsWith(e),U=$("--"),q=$("var(--"),G=e=>{let t=q(e);return!!t&&W.test(e.split("/*")[0].trim())},W=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Q=(e,t,r)=>r>t?t:r<e?e:r,Y={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},K={...Y,transform:e=>Q(0,1,e)},J={...Y,default:1},Z=e=>Math.round(1e5*e)/1e5,X=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,et=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function er(e){return"string"==typeof e}let en=e=>({test:t=>er(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ei=en("deg"),eo=en("%"),ea=en("px"),es=en("vh"),el=en("vw"),eu={...eo,parse:e=>eo.parse(e)/100,transform:e=>eo.transform(100*e)},ec={...Y,transform:Math.round},ed={borderWidth:ea,borderTopWidth:ea,borderRightWidth:ea,borderBottomWidth:ea,borderLeftWidth:ea,borderRadius:ea,radius:ea,borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomRightRadius:ea,borderBottomLeftRadius:ea,width:ea,maxWidth:ea,height:ea,maxHeight:ea,size:ea,top:ea,right:ea,bottom:ea,left:ea,padding:ea,paddingTop:ea,paddingRight:ea,paddingBottom:ea,paddingLeft:ea,margin:ea,marginTop:ea,marginRight:ea,marginBottom:ea,marginLeft:ea,rotate:ei,rotateX:ei,rotateY:ei,rotateZ:ei,scale:J,scaleX:J,scaleY:J,scaleZ:J,skew:ei,skewX:ei,skewY:ei,distance:ea,translateX:ea,translateY:ea,translateZ:ea,x:ea,y:ea,z:ea,perspective:ea,transformPerspective:ea,opacity:K,originX:eu,originY:eu,originZ:ea,zIndex:ec,backgroundPositionX:ea,backgroundPositionY:ea,fillOpacity:K,strokeOpacity:K,numOctaves:ec};function eh(e,t,r,n){let{style:i,vars:o,transform:a,transformOrigin:s}=e,l=!1,u=!1,c=!0;for(let e in t){let r=t[e];if(U(e)){o[e]=r;continue}let n=ed[e],d=H(r,n);if(L.has(e)){if(l=!0,a[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<V;t++){let r=F[t];if(void 0!==e[r]){let t=z[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,c,n):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let ef=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ep(e,t,r){for(let n in t)B(t[n])||M(n,r)||(e[n]=t[n])}function em(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return ep(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,l.useMemo)(()=>{let n=ef();return eh(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}let ev=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 ey(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ev.has(e)}let eg=e=>!ey(e);try{(o=require("@emotion/is-prop-valid").default)&&(eg=e=>e.startsWith("on")?!ey(e):o(e))}catch(e){}function eb(e,t,r){return"string"==typeof e?e:ea.transform(t+r*e)}let e_={offset:"stroke-dashoffset",array:"stroke-dasharray"},ex={offset:"strokeDashoffset",array:"strokeDasharray"};function eS(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,h){if(eh(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let n=eb(t,e.x,e.width),i=eb(r,e.y,e.height);return`${n} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?e_:ex;e[o.offset]=ea.transform(-n);let a=ea.transform(t),s=ea.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,l,!1)}let ew=()=>({...ef(),attrs:{}}),ek=e=>"string"==typeof e&&"svg"===e.toLowerCase();function eE(e,t,r,n){let i=(0,l.useMemo)(()=>{let r=ew();return eS(r,t,{enableHardwareAcceleration:!1},ek(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ep(t,e.style,e),i.style={...t,...i.style}}return i}function eT(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let eO=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 eA(e,t,r,n){for(let r in eT(e,t,void 0,n),t.attrs)e.setAttribute(eO.has(r)?r:p(r),t.attrs[r])}function eC(e,t,r){var n;let{style:i}=e,o={};for(let a in i)(B(i[a])||t.style&&B(t.style[a])||M(a,e)||(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function eP(e,t,r){let n=eC(e,t,r);for(let r in e)if(B(e[r])||B(t[r])){let t=-1!==F.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[t]=e[r]}return n}function eI(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}var eR=r(96681);let eD=e=>Array.isArray(e),ej=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eN=e=>eD(e)?e[e.length-1]||0:e;function eF(e){let t=B(e)?e.get():e;return ej(t)?t.toValue():t}let eL=e=>(t,r)=>{let n=(0,l.useContext)(c),i=(0,l.useContext)(d.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eF(o[e]);let{initial:a,animate:s}=e,l=k(e),u=E(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!x(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=eI(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,i);return r?o():(0,eR.h)(o)};var eM=r(26166);let eB={useVisualState:eL({scrapeMotionValuesFromProps:eP,createRenderState:ew,onMount:(e,t,{renderState:r,latestValues:n})=>{eM.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),eM.Wi.render(()=>{eS(r,n,{enableHardwareAcceleration:!1},ek(t.tagName),e.transformTemplate),eA(t,r)})}})},ez={useVisualState:eL({scrapeMotionValuesFromProps:eC,createRenderState:ef})};function eV(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let e$=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eU(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let eq=e=>t=>e$(t)&&e(t,eU(t));function eG(e,t,r,n){return eV(e,t,eq(r),n)}let eW=(e,t)=>r=>t(e(r)),eH=(...e)=>e.reduce(eW);function eQ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eY=eQ("dragHorizontal"),eK=eQ("dragVertical");function eJ(e){let t=!1;if("y"===e)t=eK();else if("x"===e)t=eY();else{let e=eY(),r=eK();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function eZ(){let e=eJ(!0);return!e||(e(),!1)}class eX{constructor(e){this.isMounted=!1,this.node=e}update(){}}function e0(e,t){let r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd";return eG(e.current,r,(r,i)=>{if("touch"===r.pointerType||eZ())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let a=o[n];a&&eM.Wi.postRender(()=>a(r,i))},{passive:!e.getProps()[n]})}let e1=(e,t)=>!!t&&(e===t||e1(e,t.parentElement));var e2=r(81662);function e5(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,eU(r))}let e3=new WeakMap,e4=new WeakMap,e6=e=>{let t=e3.get(e.target);t&&t(e)},e9=e=>{e.forEach(e6)},e7={some:0,all:1};function e8(e,t){if(!Array.isArray(t))return!1;let 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 te(e,t,r){let n=e.getProps();return eI(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}let tt=e=>1e3*e,tr=e=>e/1e3,tn={type:"spring",stiffness:500,damping:25,restSpeed:10},ti=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},ta={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ts=(e,{keyframes:t})=>t.length>2?to:L.has(e)?e.startsWith("scale")?ti(t[1]):tn:ta;function tl(e,t){return e[t]||e.default||e}var tu=r(22081);let tc={current:!1},td=e=>null!==e;function th(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(td),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}function tf(){n=void 0}let tp={now:()=>(void 0===n&&tp.set(eM.w0.isProcessing||tu.c.useManualTiming?eM.w0.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(tf)}},tm=e=>/^0[^.\s]+$/u.test(e);var tv=r(45487);let ty=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tb=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),t_=e=>e===Y||e===ea,tx=(e,t)=>parseFloat(e.split(", ")[t]),tS=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return tx(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?tx(t[1],e):0}},tw=new Set(["x","y","z"]),tk=F.filter(e=>!tw.has(e)),tE={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:tS(4,13),y:tS(5,14)};tE.translateX=tE.x,tE.translateY=tE.y;let tT=e=>t=>t.test(e),tO=[Y,ea,eo,ei,el,es,{test:e=>"auto"===e,parse:e=>e}],tA=e=>tO.find(tT(e)),tC=new Set,tP=!1,tI=!1;function tR(){if(tI){let e=Array.from(tC).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return tk.forEach(r=>{let 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();let 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)})}tI=!1,tP=!1,tC.forEach(e=>e.complete()),tC.clear()}function tD(){tC.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tI=!0)})}class tj{constructor(e,t,r,n,i,o=!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=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tC.add(this),tP||(tP=!0,eM.Wi.read(tD),eM.Wi.resolveKeyframes(tR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==n?void 0:n.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tC.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tC.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tN=(e,t)=>r=>!!(er(r)&&et.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tF=(e,t,r)=>n=>{if(!er(n))return n;let[i,o,a,s]=n.match(X);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tL=e=>Q(0,255,e),tM={...Y,transform:e=>Math.round(tL(e))},tB={test:tN("rgb","red"),parse:tF("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tM.transform(e)+", "+tM.transform(t)+", "+tM.transform(r)+", "+Z(K.transform(n))+")"},tz={test:tN("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tB.transform},tV={test:tN("hsl","hue"),parse:tF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eo.transform(Z(t))+", "+eo.transform(Z(r))+", "+Z(K.transform(n))+")"},t$={test:e=>tB.test(e)||tz.test(e)||tV.test(e),parse:e=>tB.test(e)?tB.parse(e):tV.test(e)?tV.parse(e):tz.parse(e),transform:e=>er(e)?e:e.hasOwnProperty("red")?tB.transform(e):tV.transform(e)},tU="number",tq="color",tG=/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 tW(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,a=t.replace(tG,e=>(t$.test(e)?(n.color.push(o),i.push(tq),r.push(t$.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(tU),r.push(parseFloat(e))),++o,"${}")),s=a.split("${}");return{values:r,split:s,indexes:n,types:i}}function tH(e){return tW(e).values}function tQ(e){let{split:t,types:r}=tW(e),n=t.length;return e=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],void 0!==e[o]){let t=r[o];t===tU?i+=Z(e[o]):t===tq?i+=t$.transform(e[o]):i+=e[o]}return i}}let tY=e=>"number"==typeof e?0:e,tK={test:function(e){var t,r;return isNaN(e)&&er(e)&&((null===(t=e.match(X))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(ee))||void 0===r?void 0:r.length)||0)>0},parse:tH,createTransformer:tQ,getAnimatableNone:function(e){let t=tH(e),r=tQ(e);return r(t.map(tY))}},tJ=new Set(["brightness","contrast","saturate","opacity"]);function tZ(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(X)||[];if(!n)return e;let i=r.replace(n,""),o=tJ.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let tX=/\b([a-z-]*)\(.*?\)/gu,t0={...tK,getAnimatableNone:e=>{let t=e.match(tX);return t?t.map(tZ).join(" "):e}},t1={...ed,color:t$,backgroundColor:t$,outlineColor:t$,fill:t$,stroke:t$,borderColor:t$,borderTopColor:t$,borderRightColor:t$,borderBottomColor:t$,borderLeftColor:t$,filter:t0,WebkitFilter:t0},t2=e=>t1[e];function t5(e,t){let r=t2(e);return r!==t0&&(r=tK),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let t3=new Set(["auto","none","0"]);class t4 extends tj{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&G(n)){let i=function e(t,r,n=1){(0,tv.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=tg.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!i)return;let a=window.getComputedStyle(r).getPropertyValue(i);if(a){let e=a.trim();return ty(e)?parseFloat(e):e}return G(o)?e(o,r,n+1):o}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!tb.has(r)||2!==e.length)return;let[n,i]=e,o=tA(n),a=tA(i);if(o!==a){if(t_(o)&&t_(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||tm(n))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"!=typeof t||t3.has(t)||(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=t5(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tE[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,a=n[o];n[o]=tE[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()}}let t6=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(tK.test(e)||"0"===e)&&!e.startsWith("url("));class t9{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tD(),tR()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;let o=e[e.length-1],a=t6(i,t),s=t6(o,t);return(0,tv.K)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!s&&(function(e){let 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,i)){if(tc.current||!o){null==s||s(th(e,this.options,t)),null==a||a(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function t7(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?n*(1e3/i):0}function t8(e,t){return e*Math.sqrt(1-t*t)}let re=["duration","bounce"],rt=["stiffness","damping","mass"];function rr(e,t){return t.some(t=>void 0!==e[t])}function rn({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rr(e,rt)&&rr(e,re)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,tv.K)(e<=tt(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Q(.05,1,a),e=Q(.01,10,tr(e)),a<1?(i=t=>{let n=t*a,i=n*e,o=t8(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=t8(Math.pow(t,2),a),u=-i(t)+.001>0?-1:1;return u*((o*r+r-s)*Math.exp(-o))/l}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e=tt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-tr(n.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(l*c)),v=a-o,y=tr(Math.sqrt(l/c)),g=5>Math.abs(v);if(r||(r=g?.01:2),t||(t=g?.005:.5),m<1){let e=t8(y,m);i=t=>{let r=Math.exp(-m*y*t);return a-r*((p+m*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===m)i=e=>a-Math.exp(-y*e)*(v+(p+y*v)*e);else{let e=y*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*y*t),n=Math.min(e*t,300);return a-r*((p+m*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}return{calculatedDuration:f&&d||null,next:e=>{let n=i(e);if(f)s.done=e>=d;else{let o=p;0!==e&&(o=m<1?t7(i,e,n):0);let l=Math.abs(o)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function ri({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,v=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,y=r*t,g=f+y,b=void 0===a?g:a(g);b!==g&&(y=b-f);let _=e=>-y*Math.exp(-e/n),x=e=>b+_(e),S=e=>{let t=_(e),r=x(e);p.done=Math.abs(t)<=u,p.value=p.done?b:r},w=e=>{m(p.value)&&(d=e,h=rn({keyframes:[p.value,v(p.value)],velocity:t7(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,S(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||S(e),p)}}}let ro=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ra(e,t,r,n){if(e===t&&r===n)return e2.Z;let i=t=>(function(e,t,r,n,i){let o,a;let s=0;do(o=ro(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:ro(i(e),t,n)}let rs=ra(.42,0,1,1),rl=ra(0,0,.58,1),ru=ra(.42,0,.58,1),rc=e=>Array.isArray(e)&&"number"!=typeof e[0],rd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rh=e=>t=>1-e(1-t),rf=e=>1-Math.sin(Math.acos(e)),rp=rh(rf),rm=rd(rf),rv=ra(.33,1.53,.69,.99),ry=rh(rv),rg=rd(ry),rb={linear:e2.Z,easeIn:rs,easeInOut:ru,easeOut:rl,circIn:rf,circInOut:rm,circOut:rp,backIn:ry,backInOut:rg,backOut:rv,anticipate:e=>(e*=2)<1?.5*ry(e):.5*(2-Math.pow(2,-10*(e-1)))},r_=e=>{if(Array.isArray(e)){(0,tv.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return ra(t,r,n,i)}return"string"==typeof e?((0,tv.k)(void 0!==rb[e],`Invalid easing type '${e}'`),rb[e]):e},rx=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},rS=(e,t,r)=>e+(t-e)*r;function rw(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let rk=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},rE=[tz,tB,tV],rT=e=>rE.find(t=>t.test(e));function rO(e){let t=rT(e);(0,tv.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tV&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=rw(s,n,e+1/3),o=rw(s,n,e),a=rw(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}let rA=(e,t)=>{let r=rO(e),n=rO(t),i={...r};return e=>(i.red=rk(r.red,n.red,e),i.green=rk(r.green,n.green,e),i.blue=rk(r.blue,n.blue,e),i.alpha=rS(r.alpha,n.alpha,e),tB.transform(i))};function rC(e,t){return r=>r>0?t:e}function rP(e,t){return r=>rS(e,t,r)}function rI(e){return"number"==typeof e?rP:"string"==typeof e?G(e)?rC:t$.test(e)?rA:rj:Array.isArray(e)?rR:"object"==typeof e?t$.test(e)?rA:rD:rC}function rR(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>rI(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function rD(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=rI(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let rj=(e,t)=>{let r=tK.createTransformer(t),n=tW(e),i=tW(t),o=n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length;return o?eH(rR(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[o]=l,i[a]++}return n}(n,i),i.values),r):((0,tv.K)(!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.`),rC(e,t))};function rN(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return rS(e,t,r);let n=rI(e);return n(e,t)}function rF({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=rc(n)?n.map(r_):r_(n),o={done:!1,value:t[0]},a=(r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=rx(0,t,n);e.push(rS(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),s=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,tv.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||rN,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||e2.Z:t;o=eH(e,o)}n.push(o)}return n}(t,n,i),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=rx(e[r],e[r+1],t);return a[r](n)};return r?t=>l(Q(e[0],e[o-1],t)):l}(a,t,{ease:Array.isArray(i)?i:t.map(()=>i||ru).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let rL=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eM.Wi.update(t,!0),stop:()=>(0,eM.Pn)(t),now:()=>eM.w0.isProcessing?eM.w0.timestamp:tp.now()}},rM={decay:ri,inertia:ri,tween:rF,keyframes:rF,spring:rn},rB=e=>e/100;class rz extends t9{constructor({KeyframeResolver:e=tj,...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();let{onStop:e}=this.options;e&&e()};let{name:r,motionValue:n,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(i,o,r,n):this.resolver=new e(i,o,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=rM[n]||rF;l!==rF&&"number"!=typeof e[0]&&(t=eH(rB,rN(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.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}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let g=this.currentTime,b=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,h+1);let n=!!(t%2);n&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(b=o)),g=Q(0,1,r)*c}let _=y?{done:!1,value:s[0]}:b.next(g);a&&(_.value=a(_.value));let{done:x}=_;y||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==n&&(_.value=th(s,this.options,n)),m&&m(_.value),S&&this.finish(),_}get duration(){let{resolved:e}=this;return e?tr(e.calculatedDuration):0}get time(){return tr(this.currentTime)}set time(e){e=tt(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){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=rL,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let 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;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{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)}}let rV=e=>Array.isArray(e)&&"number"==typeof e[0],r$=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rU={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:r$([0,.65,.55,1]),circOut:r$([.55,0,1,.45]),backIn:r$([.31,.01,.66,-.59]),backOut:r$([.33,1.53,.69,.99])};function rq(e){return rG(e)||rU.easeOut}function rG(e){if(e)return rV(e)?r$(e):Array.isArray(e)?e.map(rq):rU[e]}let rW=(a=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=a()),i)),rH=new Set(["opacity","clipPath","filter","transform"]);class rQ extends t9{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new t4(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(n=this.options).type||"backgroundColor"===n.name||!function e(t){return!!(!t||"string"==typeof t&&t in rU||rV(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...l}=this.options,u=function(e,t){let r=new rz({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,a=u.ease,s="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=rG(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:a});return c.startTime=tp.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(th(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return tr(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return tr(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=tt(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return e2.Z;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return e2.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new rz({...l,keyframes:r,duration:n,type:i,ease:o,times:a,isGenerator:!0}),c=tt(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:a}=e;return rW()&&r&&rH.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==a}}let rY=(e,t,r,n={},i,o)=>a=>{let s=tl(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u-=tt(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&(c={...c,...ts(e,c)}),c.duration&&(c.duration=tt(c.duration)),c.repeatDelay&&(c.repeatDelay=tt(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(tc.current||tu.c.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=th(c.keyframes,s);if(void 0!==e){eM.Wi.update(()=>{c.onUpdate(e),c.onComplete()});return}}return!o&&rQ.supports(c)?new rQ(c):new rz(c)};function rK(e){return!!(B(e)&&e.add)}function rJ(e,t){-1===e.indexOf(t)&&e.push(t)}function rZ(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class rX{constructor(){this.subscriptions=[]}add(e){return rJ(this.subscriptions,e),()=>rZ(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let r0=e=>!isNaN(parseFloat(e)),r1={current:void 0};class r2{constructor(e,t={}){this.version="11.1.9",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=tp.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.canTrackVelocity=r0(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tp.now()}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 rX);let r=this.events[e].add(t);return"change"===e?()=>{r(),eM.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let 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 r1.current&&r1.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tp.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?e*(1e3/r):0}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 r5(e,t){return new r2(e,t)}function r3(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t,u=e.getValue("willChange");n&&(a=n);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in l){let n=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=l[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let s={delay:r,elapsed:0,...tl(a||{},t)},h=!1;if(window.HandoffAppearAnimations){let r=e.getProps(),n=r[m];if(n){let e=window.HandoffAppearAnimations(n,t);null!==e&&(s.elapsed=e,h=!0)}}n.start(rY(t,n,i,e.shouldReduceMotion&&L.has(t)?{type:!1}:s,e,h));let f=n.animation;f&&(rK(u)&&(u.add(t),f.then(()=>u.remove(t))),c.push(f))}return s&&Promise.all(c).then(()=>{eM.Wi.update(()=>{s&&function(e,t){let r=te(e,t),{transitionEnd:n={},transition:i={},...o}=r||{};for(let t in o={...o,...n}){var a;let r=eN(o[t]);a=t,e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,r5(r))}}(e,s)})}),c}function r4(e,t,r={}){var n;let i=te(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let a=i?()=>Promise.all(r3(e,i,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(r6).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(r4(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(r.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}}function r6(e,t){return e.sortNodePosition(t)}let r9=[...S].reverse(),r7=S.length;function r8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ne=0,nt=(e,t)=>Math.abs(e-t);class nr{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=no(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){let r=nt(e.x,t.x),n=nt(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=eM.w0;this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nn(t,this.transformPagePoint),eM.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=no("pointercancel"===e.type?this.lastMoveEventInfo:nn(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!e$(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=eU(e),a=nn(o,this.transformPagePoint),{point:s}=a,{timestamp:l}=eM.w0;this.history=[{...s,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,no(a,this.history)),this.removeListeners=eH(eG(this.contextWindow,"pointermove",this.handlePointerMove),eG(this.contextWindow,"pointerup",this.handlePointerUp),eG(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eM.Pn)(this.updatePoint)}}function nn(e,t){return t?{point:t(e.point)}:e}function ni(e,t){return{x:e.x-t.x,y:e.y-t.y}}function no({point:e},t){return{point:e,delta:ni(e,na(t)),offset:ni(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=na(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>tt(.1)));)r--;if(!n)return{x:0,y:0};let o=tr(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function na(e){return e[e.length-1]}function ns(e){return e.max-e.min}function nl(e,t=0,r=.01){return Math.abs(e-t)<=r}function nu(e,t,r,n=.5){e.origin=n,e.originPoint=rS(t.min,t.max,e.origin),e.scale=ns(r)/ns(t),(nl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rS(r.min,r.max,e.origin)-e.originPoint,(nl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nc(e,t,r,n){nu(e.x,t.x,r.x,n?n.originX:void 0),nu(e.y,t.y,r.y,n?n.originY:void 0)}function nd(e,t,r){e.min=r.min+t.min,e.max=e.min+ns(t)}function nh(e,t,r){e.min=t.min-r.min,e.max=e.min+ns(t)}function nf(e,t,r){nh(e.x,t.x,r.x),nh(e.y,t.y,r.y)}function np(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 nm(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}}function nv(e,t,r){return{min:ny(e,t),max:ny(e,r)}}function ny(e,t){return"number"==typeof e?e:e[t]||0}let ng=()=>({translate:0,scale:1,origin:0,originPoint:0}),nb=()=>({x:ng(),y:ng()}),n_=()=>({min:0,max:0}),nx=()=>({x:n_(),y:n_()});function nS(e){return[e("x"),e("y")]}function nw({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nk(e){return void 0===e||1===e}function nE({scale:e,scaleX:t,scaleY:r}){return!nk(e)||!nk(t)||!nk(r)}function nT(e){return nE(e)||nO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nO(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function nA(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nC(e,t=0,r=1,n,i){e.min=nA(e.min,t,r,n,i),e.max=nA(e.max,t,r,n,i)}function nP(e,{x:t,y:r}){nC(e.x,t.translate,t.scale,t.originPoint),nC(e.y,r.translate,r.scale,r.originPoint)}function nI(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function nR(e,t){e.min=e.min+t,e.max=e.max+t}function nD(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=rS(e.min,e.max,o);nC(e,t[r],t[n],a,t.scale)}let nj=["x","scaleX","originX"],nN=["y","scaleY","originY"];function nF(e,t){nD(e.x,t,nj),nD(e.y,t,nN)}function nL(e,t){return nw(function(e,t){if(!t)return e;let 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))}let nM=({current:e})=>e?e.ownerDocument.defaultView:null,nB=new WeakMap;class nz{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=nx(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new nr(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eU(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eJ(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),nS(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eo.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=ns(n);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&eM.Wi.postRender(()=>i(e,t));let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>nS(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:nM(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&eM.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nV(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?rS(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?rS(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{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,i=this.constraints;t&&b(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:np(e.x,r,i),y:np(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nv(e,"left","right"),y:nv(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nS(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let 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(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!b(t))return!1;let n=t.current;(0,tv.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=nL(e,r),{scroll:i}=t;return i&&(nR(n.x,i.offset.x),nR(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:nm((e=i.layout.layoutBox).x,o.x),y:nm(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nw(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=nS(a=>{if(!nV(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rY(e,r,0,t,this.visualElement))}stopAnimation(){nS(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nS(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){let 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){nS(t=>{let{drag:r}=this.getProps();if(!nV(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-rS(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!b(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nS(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=ns(e),i=ns(t);return i>n?r=rx(t.min,t.max-n,e.min):n>i&&(r=rx(e.min,e.max-i,t.min)),Q(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nS(t=>{if(!nV(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(rS(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nB.set(this.visualElement,this);let e=this.visualElement.current,t=eG(e,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();b(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let o=eV(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nS(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nV(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let n$=e=>(t,r)=>{e&&eM.Wi.postRender(()=>e(t,r))};var nU=r(15947);let nq={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nG(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ea.test(e))return e;e=parseFloat(e)}let r=nG(e,t.target.x),n=nG(e,t.target.y);return`${r}% ${n}%`}};class nH extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(N,nY),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nq.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eM.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),y.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{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(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nQ(e){let[t,r]=(0,nU.oO)(),n=(0,l.useContext)(P.p);return(0,s.jsx)(nH,{...e,layoutGroup:n,switchLayoutGroup:(0,l.useContext)(I),isPresent:t,safeToRemove:r})}let nY={borderRadius:{...nW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nW,borderTopRightRadius:nW,borderBottomLeftRadius:nW,borderBottomRightRadius:nW,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tK.parse(e);if(n.length>5)return e;let i=tK.createTransformer(e),o="number"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=rS(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nK=["TopLeft","TopRight","BottomLeft","BottomRight"],nJ=nK.length,nZ=e=>"string"==typeof e?parseFloat(e):e,nX=e=>"number"==typeof e||ea.test(e);function n0(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let n1=n5(0,.5,rp),n2=n5(.5,.95,e2.Z);function n5(e,t,r){return n=>n<e?0:n>t?1:r(rx(e,t,n))}function n3(e,t){e.min=t.min,e.max=t.max}function n4(e,t){n3(e.x,t.x),n3(e.y,t.y)}function n6(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function n9(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(eo.test(t)){t=parseFloat(t);let e=rS(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=rS(o.min,o.max,n);e===o&&(s-=t),e.min=n6(e.min,t,r,s,i),e.max=n6(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let n7=["x","scaleX","originX"],n8=["y","scaleY","originY"];function ie(e,t,r,n){n9(e.x,t,n7,r?r.x:void 0,n?n.x:void 0),n9(e.y,t,n8,r?r.y:void 0,n?n.y:void 0)}function it(e){return 0===e.translate&&1===e.scale}function ir(e){return it(e.x)&&it(e.y)}function ii(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 io(e){return ns(e.x)/ns(e.y)}class ia{constructor(){this.members=[]}add(e){rJ(this.members,e),e.scheduleRender()}remove(e){if(rZ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let 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);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{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 is(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((i||o||a)&&(n=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}let il=(e,t)=>e.depth-t.depth;class iu{constructor(){this.children=[],this.isDirty=!1}add(e){rJ(this.children,e),this.isDirty=!0}remove(e){rZ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(il),this.isDirty=!1,this.children.forEach(e)}}let ic=["","X","Y","Z"],id={visibility:"hidden"},ih=0,ip={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function im(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function iv({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=ih++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ip.totalNodes=ip.resolvedTargetDeltas=ip.recalculatedProjection=0,this.nodes.forEach(ib),this.nodes.forEach(iT),this.nodes.forEach(iO),this.nodes.forEach(i_),window.MotionDebug&&window.MotionDebug.record(ip)},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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rX),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let 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;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=tp.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&((0,eM.Pn)(n),e(o-t))};return eM.Wi.read(n,!0),()=>(0,eM.Pn)(n)}(n,250),nq.hasAnimatedSinceResize&&(nq.hasAnimatedSinceResize=!1,this.nodes.forEach(iE))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iD,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!ii(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...tl(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||iE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eM.Pn)(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(iA),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iS);return}this.isUpdating||this.nodes.forEach(iw),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ik),this.nodes.forEach(iy),this.nodes.forEach(ig),this.clearAllSnapshots();let t=tp.now();eM.w0.delta=Q(0,1e3/60,t-eM.w0.timestamp),eM.w0.timestamp=t,eM.w0.isProcessing=!0,eM.S6.update.process(eM.w0),eM.S6.preRender.process(eM.w0),eM.S6.render.process(eM.w0),eM.w0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,y.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ix),this.sharedNodes.forEach(iC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eM.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eM.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nx(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(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(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ir(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||nT(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),iF((t=n).x),iF(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nx();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(nR(t.x,r.offset.x),nR(t.y,r.offset.y)),t}removeElementScroll(e){let t=nx();n4(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){n4(t,e);let{scroll:r}=this.root;r&&(nR(t.x,-r.offset.x),nR(t.y,-r.offset.y))}nR(t.x,i.offset.x),nR(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=nx();n4(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nF(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nT(n.latestValues)&&nF(r,n.latestValues)}return nT(this.latestValues)&&nF(r,this.latestValues),r}removeTransform(e){let t=nx();n4(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!nT(r.latestValues))continue;nE(r.latestValues)&&r.updateSnapshot();let n=nx(),i=r.measurePageBox();n4(n,i),ie(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nT(this.latestValues)&&ie(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!==eM.w0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o,s=!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(s)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=eM.w0.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nx(),this.relativeTargetOrigin=nx(),nf(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),n4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nx(),this.targetWithTransforms=nx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,nd(r.x,n.x,i.x),nd(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):n4(this.target,this.layout.layoutBox),nP(this.target,this.targetDelta)):n4(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nx(),this.relativeTargetOrigin=nx(),nf(this.relativeTargetOrigin,this.target,e.target),n4(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ip.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nE(this.parent.latestValues)||nO(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,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===eM.w0.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;n4(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nF(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nP(e,o)),n&&nT(i.latestValues)&&nF(e,i.latestValues))}t.x=nI(t.x),t.y=nI(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=nx());let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=nb(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nb(),this.projectionDeltaWithTransform=nb());let u=this.projectionTransform;nc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=is(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ip.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=nb();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=nx(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,c=l!==u,d=this.getStack(),h=!d||d.members.length<=1,f=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(iR));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(iP(a.x,e.x,n),iP(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,u,d,p;nf(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,p=this.relativeTargetOrigin,iI(d.x,p.x,s.x,n),iI(d.y,p.y,s.y,n),r&&(l=this.relativeTarget,u=r,l.x.min===u.x.min&&l.x.max===u.x.max&&l.y.min===u.y.min&&l.y.max===u.y.max)&&(this.isProjectionDirty=!1),r||(r=nx()),n4(r,this.relativeTarget)}c&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=rS(0,void 0!==r.opacity?r.opacity:1,n1(n)),e.opacityExit=rS(void 0!==t.opacity?t.opacity:1,0,n2(n))):o&&(e.opacity=rS(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nJ;i++){let o=`border${nK[i]}Radius`,a=n0(t,o),s=n0(r,o);if(void 0===a&&void 0===s)continue;a||(a=0),s||(s=0);let l=0===a||0===s||nX(a)===nX(s);l?(e[o]=Math.max(rS(nZ(a),nZ(s),n),0),(eo.test(s)||eo.test(a))&&(e[o]+="%")):e[o]=s}(t.rotate||r.rotate)&&(e.rotate=rS(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,f,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},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&&((0,eM.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eM.Wi.update(()=>{nq.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=B(e)?e:r5(e);return n.start(rY("",n,1e3,r)),n.animation}(0,0,{...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);let 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(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&iL(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||nx();let t=ns(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=ns(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}n4(t,r),nF(t,i),nc(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ia);let r=this.sharedNodes.get(e);r.add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&im("z",e,n,this.animationValues);for(let t=0;t<ic.length;t++)im(`rotate${ic[t]}`,e,n,this.animationValues),im(`skew${ic[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return id;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eF(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eF(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nT(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=is(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===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=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,N){if(void 0===a[e])continue;let{correct:t,applyTo:r}=N[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eF(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(iS),this.root.sharedNodes.clear()}}}function iy(e){e.updateLayout()}function ig(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?nS(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=ns(n);n.min=t[e].min,n.max=n.min+i}):iL(i,r.layoutBox,t)&&nS(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=ns(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=nb();nc(a,t,r.layoutBox);let s=nb();o?nc(s,e.applyTransform(n,!0),r.measuredBox):nc(s,t,r.layoutBox);let l=!ir(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=nx();nf(a,r.layoutBox,i.layoutBox);let s=nx();nf(s,t,o.layoutBox),ii(a,s)||(u=!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:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ib(e){ip.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ix(e){e.clearSnapshot()}function iS(e){e.clearMeasurements()}function iw(e){e.isLayoutDirty=!1}function ik(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iT(e){e.resolveTargetDelta()}function iO(e){e.calcProjection()}function iA(e){e.resetSkewAndRotation()}function iC(e){e.removeLeadSnapshot()}function iP(e,t,r){e.translate=rS(t.translate,0,r),e.scale=rS(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iI(e,t,r,n){e.min=rS(t.min,r.min,n),e.max=rS(t.max,r.max,n)}function iR(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iD={duration:.45,ease:[.4,0,.1,1]},ij=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iN=ij("applewebkit/")&&!ij("chrome/")?Math.round:e2.Z;function iF(e){e.min=iN(e.min),e.max=iN(e.max)}function iL(e,t,r){return"position"===e||"preserve-aspect"===e&&!nl(io(t),io(r),.2)}let iM=iv({attachResizeListener:(e,t)=>eV(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iB={current:void 0},iz=iv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iB.current){let e=new iM({});e.mount(window),e.setOptions({layoutScroll:!0}),iB.current=e}return iB.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iV={current:null},i$={current:!1},iU=new WeakMap,iq=[...tO,t$,tK],iG=e=>iq.find(tT(e)),iW=Object.keys(A),iH=iW.length,iQ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iY=w.length;class iK{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},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=tj,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=()=>eM.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:l}=o;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=!!i,this.isControllingVariants=k(t),this.isVariantNode=E(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&B(t)&&(t.set(s[e],!1),rK(u)&&u.add(e))}}mount(e){this.current=e,iU.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)),i$.current||function(){if(i$.current=!0,C.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iV.current=e.matches;e.addListener(t),t()}else iV.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iV.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in iU.delete(this.current),this.projection&&this.projection.unmount(),(0,eM.Pn)(this.notifyUpdate),(0,eM.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let r=L.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eM.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<iH;e++){let r=iW[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=A[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(this.parent));let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&b(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let 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):nx()}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 t=0;t<iQ.length;t++){let r=iQ[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n="on"+r,i=e[n];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(B(o))e.addValue(i,o),rK(n)&&n.add(i);else if(B(a))e.addValue(i,r5(o,{owner:e})),rK(n)&&n.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,r5(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);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){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iY;e++){let r=w[e],n=this.props[r];(_(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let 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);let 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=r5(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];return null!=n&&("string"==typeof n&&(ty(n)||tm(n))?n=parseFloat(n):!iG(n)&&tK.test(t)&&(n=t5(e,t)),this.setBaseTarget(e,B(n)?n.get():n)),B(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=eI(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||B(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rX),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iJ extends iK{constructor(){super(...arguments),this.KeyframeResolver=t4}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 iZ extends iJ{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(L.has(t)){let e=t2(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(U(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nL(e,t)}build(e,t,r,n){eh(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return eC(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){eT(e,t,r,n)}}class iX extends iJ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(L.has(t)){let e=t2(t);return e&&e.default||0}return t=eO.has(t)?t:p(t),e.getAttribute(t)}measureInstanceViewportBox(){return nx()}scrapeMotionValuesFromProps(e,t,r){return eP(e,t,r)}build(e,t,r,n){eS(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){eA(e,t,r,n)}mount(e){this.isSVGTag=ek(e.tagName),super.mount(e)}}let i0=(e,t)=>j(e)?new iX(t,{enableHardwareAcceleration:!1}):new iZ(t,{allowProjection:e!==l.Fragment,enableHardwareAcceleration:!0}),i1={animation:{Feature:class extends eX{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>r4(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=r4(e,t,r);else{let i="function"==typeof t?te(e,t,r.custom):t;n=Promise.all(r3(e,i,r))}return n.then(()=>{eM.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,r))),r={animate:r8(!0),whileInView:r8(),whileHover:r8(),whileTap:r8(),whileDrag:r8(),whileFocus:r8(),exit:r8()},n=!0,i=t=>(r,n)=>{var i;let o=te(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function o(o){let a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<r7;t++){var h;let f=r9[t],p=r[f],m=void 0!==a[f]?a[f]:s[f],v=_(m),y=f===o?p.isActive:null;!1===y&&(d=t);let g=m===s[f]&&m!==a[f]&&v;if(g&&n&&e.manuallyAnimateOnMount&&(g=!1),p.protectedKeys={...c},!p.isActive&&null===y||!m&&!p.prevProp||x(m)||"boolean"==typeof m)continue;let b=(h=p.prevProp,"string"==typeof m?m!==h:!!Array.isArray(m)&&!e8(m,h)),S=b||f===o&&p.isActive&&!g&&v||t>d&&v,w=!1,k=Array.isArray(m)?m:[m],E=k.reduce(i(f),{});!1===y&&(E={});let{prevResolvedValues:T={}}=p,O={...T,...E},A=t=>{S=!0,u.has(t)&&(w=!0,u.delete(t)),p.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in O){let t=E[e],r=T[e];if(!c.hasOwnProperty(e))(eD(t)&&eD(r)?e8(t,r):t===r)?void 0!==t&&u.has(e)?A(e):p.protectedKeys[e]=!0:null!=t?A(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=E,p.isActive&&(c={...c,...E}),n&&e.blockInitialAnimation&&(S=!1),S&&(!g||w)&&l.push(...k.map(e=>({animation:e,options:{type:f}})))}if(u.size){let t={};u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),l.push({animation:t})}let f=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let a=o(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),x(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends eX{constructor(){super(...arguments),this.id=ne++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends eX{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:e7[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;e4.has(r)||e4.set(r,{});let n=e4.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(e9,{root:e,...t})),n[i]}(t);return e3.set(e,r),n.observe(e),()=>{e3.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends eX{constructor(){super(...arguments),this.removeStartListeners=e2.Z,this.removeEndListeners=e2.Z,this.removeAccessibleListeners=e2.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=eG(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),o=i||e1(this.node.current,e.target)?r:n;o&&eM.Wi.update(()=>o(e,t))},{passive:!(r.onTap||r.onPointerUp)}),i=eG(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=eH(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eV(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eV(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&e5("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&eM.Wi.postRender(()=>r(e,t))})}),e5("down",(e,t)=>{this.startPress(e,t)}))}),t=eV(this.node.current,"blur",()=>{this.isPressing&&e5("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eH(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&eM.Wi.postRender(()=>r(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eZ()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&eM.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eG(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eV(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eH(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends eX{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=eH(eV(this.node.current,"focus",()=>this.onFocus()),eV(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends eX{mount(){this.unmount=eH(e0(this.node,!0),e0(this.node,!1))}unmount(){}}},pan:{Feature:class extends eX{constructor(){super(...arguments),this.removePointerDownListener=e2.Z}onPointerDown(e){this.session=new nr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nM(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:n$(e),onStart:n$(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&eM.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=eG(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 eX{constructor(e){super(e),this.removeGroupControls=e2.Z,this.removeListeners=e2.Z,this.controls=new nz(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e2.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:iz,MeasureLayout:nQ},layout:{ProjectionNode:iz,MeasureLayout:nQ}},i2=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&function(e){for(let t in e)A[t]={...A[t],...e[t]}}(e);let o=(0,l.forwardRef)(function(o,a){var p;let v;let g={...(0,l.useContext)(u._),...o,layoutId:function({layoutId:e}){let t=(0,l.useContext)(P.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:x}=g,S=function(e){let{initial:t,animate:r}=function(e,t){if(k(e)){let{initial:t,animate:r}=e;return{initial:!1===t||_(t)?t:void 0,animate:_(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(c));return(0,l.useMemo)(()=>({initial:t,animate:r}),[T(t),T(r)])}(o),w=n(o,x);if(!x&&C.j){S.visualElement=function(e,t,r,n){let{visualElement:i}=(0,l.useContext)(c),o=(0,l.useContext)(f),a=(0,l.useContext)(d.O),s=(0,l.useContext)(u._).reducedMotion,p=(0,l.useRef)();n=n||o.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let v=p.current;(0,l.useInsertionEffect)(()=>{v&&v.update(r,a)});let g=(0,l.useRef)(!!(r[m]&&!window.HandoffComplete));return(0,h.L)(()=>{v&&(y.postRender(v.render),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,l.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(i,w,g,t);let r=(0,l.useContext)(I),n=(0,l.useContext)(f).strict;S.visualElement&&(v=S.visualElement.loadFeatures(g,n,e,r))}return(0,s.jsxs)(c.Provider,{value:S,children:[v&&S.visualElement?(0,s.jsx)(v,{visualElement:S.visualElement,...g}):null,r(i,o,(p=S.visualElement,(0,l.useCallback)(e=>{e&&w.mount&&w.mount(e),p&&(e?p.mount(e):p.unmount()),a&&("function"==typeof a?a(e):b(a)&&(a.current=e))},[p])),w,x,S.visualElement)]})});return o[R]=i,o}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){let i=j(e)?eB:ez;return{...i,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=j(t)?eE:em,s=a(r,i,o,t),u=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(eg(i)||!0===r&&ey(i)||!t&&!ey(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c=t!==l.Fragment?{...u,...s,ref:n}:{},{children:d}=r,h=(0,l.useMemo)(()=>B(d)?d.get():d,[d]);return(0,l.createElement)(t,{...c,children:h})}}(t),createVisualElement:n,Component:e}})(e,t,i1,i0))},22081:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},45487:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(81662);let i=n.Z,o=n.Z},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},81662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(67294),i=r(11741);let o=i.j?n.useLayoutEffect:n.useEffect},37826:function(e,t,r){"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{a:function(){return n}})},25821:function(e,t,r){"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);if(0===n.length)return"{}";if(r.length>2)return"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]";let i=n.map(([t,n])=>t+": "+e(n,r));return"{ "+i.join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:function(){return n}})},72380:function(e,t,r){"use strict";var n,i;r.d(t,{UG:function(){return u},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return n}});class o{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},l=new Set(Object.keys(s));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},87392:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},wv:function(){return i}});var n=r(68297);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(o=null!==(r=o)&&void 0!==r?r:t,a=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s),h="",f=o&&(0,n.FD)(e.charCodeAt(0));return(d&&!f||a)&&(h+="\n"),h+=r,(d||c)&&(h+="\n"),'"""'+h+'"""'}},68297:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},97359:function(e,t,r){"use strict";var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},51270:function(e,t,r){"use strict";r.d(t,{H:function(){return o},T:function(){return a}});var n=r(37826),i=r(25821);class o{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return e instanceof o}},77304:function(e,t,r){"use strict";r.d(t,{$_:function(){return s},Vn:function(){return l}});var n=r(37826),i=r(25821),o=r(72380),a=r(97359);let s=Object.freeze({});function l(e,t,r=o.h8){let l,u,c;let d=new Map;for(let e of Object.values(a.h))d.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),f=[e],p=-1,m=[],v=e,y=[],g=[];do{var b,_,x;let e;p++;let a=p===f.length,S=a&&0!==m.length;if(a){if(u=0===g.length?void 0:y[y.length-1],v=c,c=g.pop(),S){if(h){v=v.slice();let e=0;for(let[t,r]of m){let n=t-e;null===r?(v.splice(n,1),e++):v[n]=r}}else for(let[e,t]of(v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v)),m))v[e]=t}p=l.index,f=l.keys,m=l.edits,h=l.inArray,l=l.prev}else if(c){if(null==(v=c[u=h?p:f[p]]))continue;y.push(u)}if(!Array.isArray(v)){(0,o.UG)(v)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(v)}.`);let r=a?null===(b=d.get(v.kind))||void 0===b?void 0:b.leave:null===(_=d.get(v.kind))||void 0===_?void 0:_.enter;if((e=null==r?void 0:r.call(t,v,u,c,y,g))===s)break;if(!1===e){if(!a){y.pop();continue}}else if(void 0!==e&&(m.push([u,e]),!a)){if((0,o.UG)(e))v=e;else{y.pop();continue}}}void 0===e&&S&&m.push([u,v]),a?y.pop():(l={inArray:h,index:p,keys:f,edits:m,prev:l},f=(h=Array.isArray(v))?v:null!==(x=r[v.kind])&&void 0!==x?x:[],p=-1,m=[],c&&g.push(c),c=v)}while(void 0!==l);return 0!==m.length?m[m.length-1][1]:e}},48216: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 i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return S}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),c=l("observable"),d=l("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:S}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function v(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=h(t,"unsubscribe");r&&r.call(t)}}catch(e){p(e)}}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=h(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(y(e),i)i.call(n,r);else throw r;break;case"complete":y(e),i&&i.call(n)}}catch(e){p(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],m(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}g(e,t,r)}}var _=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new x(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),v(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),x=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new _(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=f(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=f(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[c]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=h(t,c);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof S&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=h(t,u)))return new r(function(e){m(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){m(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:d,get:function(){return this}}]),e}();a()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:c,hostReportError:p},configurable:!0})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(96885)}),_N_E=e.O()}]);