PageSourceSearch

https://www.alethian.com/_next/static/chunks/pages/_app-4e49b92b6a690298.js

js alethian.com collected 2026-09-24 14:10:45 UTC 659,766 bytes, 324 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8711:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var i=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 i=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{i.insertRule(e,i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 6,767 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),n=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function h(e,t){return t.push(e),e}var p=1,f=1,m=0,g=0,y=0,v="";function b(e,t,r,i,n,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:p,column:f,length:s,return:""}}function w(e,t){return s(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return y=g<m?u(v,g++):0,f++,10===y&&(f=1,p++),y}function S(){return u(v,g)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return p=f=1,m=d(v=e),g=0,[]}function C(e){var t,r;return(t=g-1,r=function e(t){for(;_();)switch(y){case t:return g;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:_()}return g}(91===e?e+2:40===e?e+1:e),c(v,t,r)).trim()}var E="-ms-",A="-moz-",I="-webkit-",O="comm",T="rule",M="decl",P="@keyframes";function R(e,t){for(var r="",i=e.length,n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function D(e,t,r,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M:return e.return=e.return||e.value;case O:return"";case P:return e.return=e.value+"{"+R(e.children,i)+"}";case T:e.value=e.props.join(",")}return d(r=R(e.children,i))?e.return=e.value+"{"+r+"}":""}function j(e,t,r,i,o,s,l,u,d,h,p){for(var f=o-1,m=0===o?s:[""],g=m.length,y=0,v=0,w=0;y<i;++y)for(var _=0,S=c(e,f+1,f=n(v=l[y])),x=e;_<g;++_)(x=(v>0?m[_]+" "+S:a(S,/&\f/g,m[_])).trim())&&(d[w++]=x);return b(e,t,r,0===o?T:u,d,h,p)}function L(e,t,r,i){return b(e,t,r,M,c(e,0,i),c(e,i+1,-1),i)}var F=function(e,t,r){for(var i=0,n=0;i=n,n=S(),38===i&&12===n&&(t[r]=1),!x(n);)_();return c(v,e,g)},N=function(e,t){var r=-1,i=44;do switch(x(i)){case 0:38===i&&12===S()&&(t[r]=1),e[r]+=F(g-1,t,r);break;case 2:e[r]+=C(i);break;case 4:if(44===i){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(i)}while(i=_());return e},z=function(e,t){var r;return r=N(k(e),t),v="",r},B=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,i=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)||B.get(r))&&!i){B.set(e,!0);for(var n=[],o=z(t,n),s=r.props,a=0,l=0;a<o.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=n[a]?o[a].replace(/&\f/g,s[u]):s[u]+" "+o[a]}}},$=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},V=[function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case M: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 I+"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 I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+A+t+E+t+t;case 6828:case 4268:return I+t+E+t+t;case 6165:return I+t+E+"flex-"+t+t;case 5187:return I+t+a(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return I+t+E+"flex-item-"+a(t,/flex-|-self/,"")+t;case 4675:return I+t+E+"flex-line-pack"+a(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+E+a(t,"shrink","negative")+t;case 5292:return I+t+E+a(t,"basis","preferred-size")+t;case 6060:return I+"box-"+a(t,"-grow","")+I+t+E+a(t,"grow","positive")+t;case 4554:return I+a(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return a(a(a(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return a(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return a(a(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return a(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return a(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+A+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(a(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return a(t,":",":"+I)+t;case 101:return a(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(45===u(t,14)?"inline-":"")+"box$3$1"+I+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return I+t+E+a(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+E+a(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+E+a(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+E+t+t}return t}(e.value,e.length);break;case P:return R([w(e,{value:a(e.value,"@","@"+I)})],i);case T: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 R([w(e,{props:[a(t,/:(read-\w+)/,":"+A+"$1")]})],i);case"::placeholder":return R([w(e,{props:[a(t,/:(plac\w+)/,":"+I+"input-$1")]}),w(e,{props:[a(t,/:(plac\w+)/,":"+A+"$1")]}),w(e,{props:[a(t,/:(plac\w+)/,E+"input-$1")]})],i)}return""}).join("")}}],W=function(e){var t,r,n,s,m,w=e.key;if("css"===w){var E=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(E,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var A=e.stylisPlugins||V,I={},T=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)I[t[r]]=!0;T.push(e)});var M=(r=(t=[U,$].concat(A,[D,(n=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,i,n,o){for(var s="",a=0;a<r;a++)s+=t[a](e,i,n,o)||"";return s}),P=function(e){var t,r;return R((r=function e(t,r,i,n,s,m,w,k,E){for(var A,I=0,T=0,M=w,P=0,R=0,D=0,F=1,N=1,z=1,B=0,U="",$=s,V=m,W=n,G=U;N;)switch(D=B,B=_()){case 40:if(108!=D&&58==u(G,M-1)){-1!=l(G+=a(C(B),"&","&\f"),"&\f")&&(z=-1);break}case 34:case 39:case 91:G+=C(B);break;case 9:case 10:case 13:case 32:G+=function(e){for(;y=S();)if(y<33)_();else break;return x(e)>2||x(y)>3?"":" "}(D);break;case 92:G+=function(e,t){for(var r;--t&&_()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>
170)||!(y<97)););return r=g+(t<6&&32==S()&&32==_()),c(v,e,r)}(g-1,7);continue;case 47:switch(S()){case 42:case 47:h(b(A=function(e,t){for(;_();)if(e+y===57)break;else if(e+y===84&&47===S())break;return"/*"+c(v,t,g-1)+"*"+o(47===e?e:_())}(_(),g),r,i,O,o(y),c(A,2,-2),0),E);break;default:G+="/"}break;case 123*F:k[I++]=d(G)*z;case 125*F:case 59:case 0:switch(B){case 0:case 125:N=0;case 59+T:-1==z&&(G=a(G,/\f/g,"")),R>0&&d(G)-M&&h(R>32?L(G+";",n,i,M-1):L(a(G," ","")+";",n,i,M-2),E);break;case 59:G+=";";default:if(h(W=j(G,r,i,I,T,s,k,U,$=[],V=[],M),m),123===B){if(0===T)e(G,r,W,W,$,m,M,k,V);else switch(99===P&&110===u(G,3)?100:P){case 100:case 108:case 109:case 115:e(t,W,W,n&&h(j(t,W,W,0,0,s,k,U,s,$=[],M),V),s,V,M,k,n?$:V);break;default:e(G,W,W,W,[""],V,0,k,V)}}}I=T=R=0,F=z=1,U=G="",M=w;break;case 58:M=1+d(G),R=D;default:if(F<1){if(123==B)--F;else if(125==B&&0==F++&&125==(y=g>0?u(v,--g):0,f--,10===y&&(f=1,p--),y))continue}switch(G+=o(B),B*F){case 38:z=T>0?1:(G+="\f",-1);break;case 44:k[I++]=(d(G)-1)*z,z=1;break;case 64:45===S()&&(G+=C(_())),P=S(),T=M=d(U=G+=function(e){for(;!x(S());)_();return c(v,e,g)}(g)),B++;break;case 45:45===D&&2==d(G)&&(F=0)}}return m}("",null,null,null,[""],t=k(t=e),0,[0],t),v="",r),M)},F={key:w,sheet:new i({key:w,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:I,registered:{},insert:function(e,t,r,i){m=r,P(e?e+"{"+t.styles+"}":t.styles),i&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(T),F}},5042:function(e,t,r){"use strict";function i(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 i}})},2010:function(e,t,r){"use strict";r.d(t,{E:function(){return w},T:function(){return p},_:function(){return d},a:function(){return m},c:function(){return v},h:function(){return g},w:function(){return h}});var i=r(7294),n=r(8711),o=r(7462),s=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var i=e(r);return t.set(r,i),i}},a=r(444),l=r(5662),u=r(7278),c=i.createContext("undefined"!=typeof HTMLElement?(0,n.Z)({key:"css"}):null);c.Provider;var d=function(){return(0,i.useContext)(c)},h=function(e){return(0,i.forwardRef)(function(t,r){return e(t,(0,i.useContext)(c),r)})},p=i.createContext({}),f=s(function(e){return s(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),m=function(e){var t=i.useContext(p);return e.theme!==t&&(t=f(t)(e.theme)),i.createElement(p.Provider,{value:t},e.children)},g={}.hasOwnProperty,y="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(e,t){var r={};for(var i in t)g.call(t,i)&&(r[i]=t[i]);return r[y]=e,r},b=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,a.hC)(t,r,i),(0,u.L)(function(){return(0,a.My)(t,r,i)}),null},w=h(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[y],s=[n],u="";"string"==typeof e.className?u=(0,a.fp)(t.registered,s,e.className):null!=e.className&&(u=e.className+" ");var c=(0,l.O)(s,void 0,i.useContext(p));u+=t.key+"-"+c.name;var d={};for(var h in e)g.call(e,h)&&"css"!==h&&h!==y&&(d[h]=e[h]);return d.className=u,r&&(d.ref=r),i.createElement(i.Fragment,null,i.createElement(b,{cache:t,serialized:c,isStringTag:"string"==typeof o}),i.createElement(o,d))})},917:function(e,t,r){"use strict";r.d(t,{F4:function(){return p},xB:function(){return d}});var i,n,o=r(2010),s=r(7294),a=r(444),l=r(7278),u=r(5662);r(8711),r(8679);var c=function(e,t){var r=arguments;if(null==t||!o.h.call(t,"css"))return s.createElement.apply(void 0,r);var i=r.length,n=Array(i);n[0]=o.E,n[1]=(0,o.c)(e,t);for(var a=2;a<i;a++)n[a]=r[a];return s.createElement.apply(null,n)};i=c||(c={}),n||(n=i.JSX||(i.JSX={}));var d=(0,o.w)(function(e,t){var r=e.styles,i=(0,u.O)([r],void 0,s.useContext(o.T)),n=s.useRef();return(0,l.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}),o=!1,s=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==s&&(o=!0,s.setAttribute("data-emotion",e),r.hydrate([s])),n.current=[r,o],function(){r.flush()}},[t]),(0,l.j)(function(){var e=n.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==i.next&&(0,a.My)(t,i.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",i,r,!1)},[t,i.name]),null});function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,u.O)(t)}function p(){var e=h.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_"}}}},5662:function(e,t,r){"use strict";r.d(t,{O:function(){return f}});var i,n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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(5042),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,r){return i={name:t,styles:r,next:i},t})}return 1===n[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 i={name:r.name,styles:r.styles,next:i},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)i={name:n.name,styles:n.styles,next:i},n=n.next;return r.styles+";"}return function(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=h(e,t,r[n])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?i+=o+"{"+t[s]+"}":u(s)&&(i+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var a=0;a<s.length;a++)u(s[a])&&(i+=c(o)+":"+d(o,s[a])+";");else{var l=h(e,t,s);switch(o){case"animation":case"animationName":i+=c(o)+":"+l+";";break;default:i+=o+"{"+l+"}"}}}return i}(e,t,r);case"function":if(void 0!==e){var o=i,s=r(e);return i=o,h(e,t,s)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var p=/label:\s*([^\s;{]+)\s*(;|$)/g;function f(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n,o=!0,s="";i=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,s+=h(r,t,a)):s+=a[0];for(var l=1;l<e.length;l++)s+=h(r,t,e[l]),o&&(s+=a[l]);p.lastIndex=0;for(var u="";null!==(n=p.exec(s));)u+="-"+n[1];return{name:function(e){for(var t,r=0,i=0,n=e.length;n>=4;++i,n-=4)t=(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<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(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r^=255&e.charCodeAt(i),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(s)+u,styles:s,next:i}}},7278:function(e,t,r){"use strict";r.d(t,{L:function(){return s},j:function(){return a}});var i,n=r(7294),o=!!(i||(i=r.t(n,2))).useInsertionEffect&&(i||(i=r.t(n,2))).useInsertionEffect,s=o||function(e){return e()},a=o||n.useLayoutEffect},444:function(e,t,r){"use strict";function i(e,t,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(i+=r+" ")}),i}r.d(t,{My:function(){return o},fp:function(){return i},hC:function(){return n}});var n=function(e,t,r){var i=e.key+"-"+t.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},o=function(e,t,r){n(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+i:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},9477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(5893),n=r(7294);t.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:s=""}){return(0,n.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,i.jsxs)(i.Fragment,{children:[o,e?(0,i.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})}},7834:function(e,t,r){"use strict";let i;var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=r(5893),s=r(7294),a=n(r(4298));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===i&&(i=r),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
2          window['${r}'] = window['${r}'] || [];
3          function gtag(){window['${r}'].push(arguments);}
4          gtag('js', new Date());
5
6          gtag('config', '${t}');`}}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?i
6d=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===i){console.warn("@next/third-parties: GA has not been initialized");return}window[i]?window[i].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${i} does not exist`)}},3632:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=r(5893),o=r(6257),s=i(r(9477));t.default=function(e){let{apiKey:t,...r}=e,i={...r,key:t},{html:a}=(0,o.GoogleMapsEmbed)(i);return(0,n.jsx)(s.default,{height:i.height||null,width:i.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})}},674:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let n=r(5893),o=r(7294),s=i(r(4298)),a="dataLayer";t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:i,preview:l,dataLayer:u}=e;a=r;let c="dataLayer"!==r?`&l=${r}`:"",d=i?`&gtm_auth=${i}`:"",h=l?`&gtm_preview=${l}&gtm_cookies_win=x`:"";return(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
7      (function(w,l){
8        w[l]=w[l]||[];
9        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
10        ${u?`w[l].push(${JSON.stringify(u)})`:""}
11      })(window,'${r}');`}}),(0,n.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${c}${d}${h}`})]})},t.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},9692:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var n=r(3632);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i(n).default}});var o=r(1494);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return i(o).default}});var s=r(674);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var a=r(7834);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},1494:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let n=r(5893),o=i(r(4298)),s=r(6257),a=i(r(9477)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:r,stylesheets:i}=(0,s.YouTubeEmbed)(e);return(0,n.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,n.jsx)(o.default,{src:e.url,strategy:l[e.strategy],stylesheets:i},e.url))})}},2711:function(e,t,r){e.exports=function(){"use strict";var e="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t="Expected a function",i=NaN,n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),h=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return i;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var u=s.test(e);return u||a.test(e)?l(e.slice(2),u?2:8):o.test(e)?i:+e}var v=function(e,r,i){var n=!0,o=!0;if("function"!=typeof e)throw TypeError(t);return g(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),function(e,r,i){var n,o,s,a,l,u,c=0,d=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError(t);function b(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function w(e){var t=e-u;return void 0===u||t>=r||t<0||h&&e-c>=s}function _(){var e,t=m();if(w(t))return S(t);l=setTimeout(_,(e=r-(t-u),h?f(e,s-(t-c)):e))}function S(e){return l=void 0,v&&n?b(e):(n=o=void 0,a)}function x(){var e,t=m(),i=w(t);if(n=arguments,o=this,u=t,i){if(void 0===l)return c=e=u,l=setTimeout(_,r),d?b(e):a;if(h)return l=setTimeout(_,r),b(u)}return void 0===l&&(l=setTimeout(_,r)),a}return r=y(r)||0,g(i)&&(d=!!i.leading,s=(h="maxWait"in i)?p(y(i.maxWait)||0,r):s,v="trailing"in i?!!i.trailing:v),x.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=u=o=l=void 0},x.flush=function(){return void 0===l?a:S(m())},x}(e,r,{leading:n,maxWait:r,trailing:o})},b=NaN,w=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,x=/^0o[0-7]+$/i,k=p
11arseInt,C="object"==typeof e&&e&&e.Object===Object&&e,E="object"==typeof self&&self&&self.Object===Object&&self,A=C||E||Function("return this")(),I=Object.prototype.toString,O=Math.max,T=Math.min,M=function(){return A.Date.now()};function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function R(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==I.call(t))return b;if(P(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=P(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(w,"");var i=S.test(e);return i||x.test(e)?k(e.slice(2),i?2:8):_.test(e)?b:+e}var D=function(e,t,r){var i,n,o,s,a,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var r=i,o=n;return i=n=void 0,u=t,s=e.apply(o,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-u>=o}function m(){var e,r=M();if(f(r))return g(r);a=setTimeout(m,(e=t-(r-l),d?T(e,o-(r-u)):e))}function g(e){return a=void 0,h&&i?p(e):(i=n=void 0,s)}function y(){var e,r=M(),o=f(r);if(i=arguments,n=this,l=r,o){if(void 0===a)return u=e=l,a=setTimeout(m,t),c?p(e):s;if(d)return a=setTimeout(m,t),p(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=R(t)||0,P(r)&&(c=!!r.leading,o=(d="maxWait"in r)?O(R(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=n=a=void 0},y.flush=function(){return void 0===a?s:g(M())},y},j=function(){};function L(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),r=Array.prototype.slice.call(e.removedNodes);if(function e(t){var r=void 0,i=void 0;for(r=0;r<t.length;r+=1)if((i=t[r]).dataset&&i.dataset.aos||i.children&&e(i.children))return!0;return!1}(t.concat(r)))return j()})}function F(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}var N={isSupported:function(){return!!F()},ready:function(e,t){var r=window.document,i=new(F())(L);j=t,i.observe(r.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}},z=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},B=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},$=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,V=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
11sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,W=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,G=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function H(){return navigator.userAgent||navigator.vendor||window.opera||""}var K=new(function(){function e(){z(this,e)}return B(e,[{key:"phone",value:function(){var e=H();return!(!$.test(e)&&!V.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=H();return!(!W.test(e)&&!G.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),e}()),q=function(e,t){var r=void 0;return K.ie11()?(r=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,{detail:t}):r=new CustomEvent(e,{detail:t}),document.dispatchEvent(r)},Y=function(e){return e.forEach(function(e,t){var r,i,n,o,s,a;return r=window.pageYOffset,i=e.options,n=e.position,o=e.node,e.data,s=function(){var t;e.animated&&((t=i.animatedClassNames)&&t.forEach(function(e){return o.classList.remove(e)}),q("aos:out",o),e.options.id&&q("aos:in:"+e.options.id,o),e.animated=!1)},void(i.mirror&&r>=n.out&&!i.once?s():r>=n.in?e.animated||((a=i.animatedClassNames)&&a.forEach(function(e){return o.classList.add(e)}),q("aos:in",o),e.options.id&&q("aos:in:"+e.options.id,o),e.animated=!0):e.animated&&!i.once&&s())})},X=function(e){for(var t=0,r=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),r+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:r,left:t}},J=function(e,t,r){var i=e.getAttribute("data-aos-"+t);if(void 0!==i){if("true"===i)return!0;if("false"===i)return!1}return i||r},Z=function(){var e=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(e,function(e){return{node:e}})},Q=[],ee=!1,et={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},er=function(){return document.all&&!window.atob},ei=function(){var e,t;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(ee=!0),ee&&(e=Q,t=et,e.forEach(function(e,r){var i,n,o,s,a,l=J(e.node,"mirror",t.mirror),u=J(e.node,"once",t.once),c=J(e.node,"id"),d=t.useClassNames&&e.node.getAttribute("data-aos"),h=[t.animatedClassName].concat(d?d.split(" "):[]).filter(function(e){return"string"==typeof e});t.initClassName&&e.node.classList.add(t.initClassName),e.position={in:function(e,t,r){var i=window.innerHeight,n=J(e,"anchor"),o=J(e,"anchor-placement"),s=Number(J(e,"offset",o?0:t)),a=e;n&&document.querySelectorAll(n)&&(a=document.querySelectorAll(n)[0]);var l=X(a).top-i;switch(o||r){case"top-bottom":break;case"center-bottom":l+=a.offsetHeight/2;break;case"bottom-bottom":l+=a.offsetHeight;break;case"top-center":l+=i/2;break;
11case"center-center":l+=i/2+a.offsetHeight/2;break;case"bottom-center":l+=i/2+a.offsetHeight;break;case"top-top":l+=i;break;case"bottom-top":l+=i+a.offsetHeight;break;case"center-top":l+=i+a.offsetHeight/2}return l+s}(e.node,t.offset,t.anchorPlacement),out:l&&(i=e.node,n=t.offset,window.innerHeight,o=J(i,"anchor"),s=J(i,"offset",n),a=i,o&&document.querySelectorAll(o)&&(a=document.querySelectorAll(o)[0]),X(a).top+a.offsetHeight-s)},e.options={once:u,mirror:l,animatedClassNames:h,id:c}}),Y(Q=e),window.addEventListener("scroll",v(function(){Y(Q,et.once)},et.throttleDelay)))},en=function(){if(Q=Z(),es(et.disable)||er())return eo();ei()},eo=function(){Q.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay"),et.initClassName&&e.node.classList.remove(et.initClassName),et.animatedClassName&&e.node.classList.remove(et.animatedClassName)})},es=function(e){return!0===e||"mobile"===e&&K.mobile()||"phone"===e&&K.phone()||"tablet"===e&&K.tablet()||"function"==typeof e&&!0===e()};return{init:function(e){return et=U(et,e),Q=Z(),et.disableMutationObserver||N.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),et.disableMutationObserver=!0),et.disableMutationObserver||N.ready("[data-aos]",en),es(et.disable)||er()?eo():(document.querySelector("body").setAttribute("data-aos-easing",et.easing),document.querySelector("body").setAttribute("data-aos-duration",et.duration),document.querySelector("body").setAttribute("data-aos-delay",et.delay),-1===["DOMContentLoaded","load"].indexOf(et.startEvent)?document.addEventListener(et.startEvent,function(){ei(!0)}):window.addEventListener("load",function(){ei(!0)}),"DOMContentLoaded"===et.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1&&ei(!0),window.addEventListener("resize",D(ei,et.debounceDelay,!0)),window.addEventListener("orientationchange",D(ei,et.debounceDelay,!0)),Q)},refresh:ei,refreshHard:en}}()},9742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new n((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,o=[],s=0,a=i-n;s<a;s+=16383)o.push(function(e,t,i){for(var n,o=[],s=t;s<i;s+=3)o.push(r[(n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===n?o.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&o.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},8764:function(e,t,r){"use strict";/*!
12 * The buffer module from node.js, for the browser.
13 *
14 * @author   Feross Aboukhadijeh <https://feross.org>
15 * @license  MIT
16 */var i=r(9742),n=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|f(e,t),i=s(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return a.from(i,t,r);var n=function(e){if(a.isBuffer(e)){var t,r=0|p(e.length),i=s(r);return 0===i.length||e.copy(i,0,0,r),i}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 17,025 bytes, line 16
16if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),i}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(n)return i?-1:E(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=t;o<r;++o)n+=T[e[o]];return n}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=t,o=r,0===n&&o===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(n,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function y(e,t,r,i,n){var o;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,n);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,i,n);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,i,n){var o,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var c=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,s,a,l,u=e[n],c=null,d=u>239?4:u>223?3:u>191?2:1;if(n+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[n+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[n+1],s=e[n+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[n+1],s=e[n+2],a=e[n+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return r}(i)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,i,n,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function S(e,t,r,i,n,o){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,i,o){return t=+t,r>>>=0,o||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,o){return t=+t,r>>>=0,o||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}t.lW=a,t.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=a.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(O(o,Uint8Array))n+o.length>i.length?a.from(o).copy(i,n):Uint8Array.prototype.set.call(i,o,n);else if(a.isBuffer(o))o.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=o.length}return i},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,i,n){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var o=n-i,s=r-t,l=Math.min(o,s),u=this.slice(i,n),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,o,s,a,l,u,c,d,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=t.length;i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[r+s]=a}return s}(this,e,t,r);case"utf8":case"utf-8":return n=t,o=r,I(E(e,this.length-n),this,n,o);case"ascii":case"latin1":case"binary":return s=t,a=r,I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return l=t,u=r,I(A(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,I(function(e,t){for(var r,i,n=[],o=0;o<e.length&&!((t-=2)<0);++o)i=(r=e.charCodeAt(o))>>8,n.push(r%256),n.push(i);return n}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,a.prototype),i},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},a.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,o=e.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;
16else{var s=a.isBuffer(e)?e:a.from(e,i),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=s[n%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var r,i=e.length,n=null,o=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},8679:function(e,t,r){"use strict";var i=r(9864),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||n}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(f){var n=p(r);n&&n!==f&&e(t,n,i)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&!(i&&i[y])&&!(m&&m[y])&&!(a&&a[y])){var v=h(r,y);try{u(t,y,v)}catch(e){}}}}return t}},645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,i,n){var o,s,a=8*n-i-1,l=(1<<a)-1,u=l>>1,c=-7,d=r?n-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=u}return(p?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var s,a,l,u=8*o-n-1,c=(1<<u)-1,d=c>>1,h=23===n?5960464477539062e-23:0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,n),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[r+p]=255&a,p+=f,a/=256,n-=8);for(s=s<<n|a,u+=n;u>0;e[r+p]=255&s,p+=f,s/=256,u-=8);e[r+p-f]|=128*m}},8554:function(e,t,r){e=r.nmd(e);var i,n,o,s,a,l,u,c,d,h,p="__lodash_hash_undefined__",f="[object Arguments]",m="[object Function]",g="[object Object]",y=/^\[object .+?Constructor\]$/,v=/^(?: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[f]=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[g]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var w="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_="object"==typeof self&&self&&self.Object===Object&&self,S=w||_||Function("return this")(),x=t&&!t.nodeType&&t,k=x&&e&&!e.nodeType&&e,C=k&&k.exports===x,E=C&&w.process,A=function(){try{var e=k&&k.require&&k.require("util").t
16ypes;if(e)return e;return E&&E.binding&&E.binding("util")}catch(e){}}(),I=A&&A.isTypedArray,O=Array.prototype,T=Function.prototype,M=Object.prototype,P=S["__core-js_shared__"],R=T.toString,D=M.hasOwnProperty,j=(l=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",L=M.toString,F=R.call(Object),N=RegExp("^"+R.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=C?S.Buffer:void 0,B=S.Symbol,U=S.Uint8Array,$=z?z.allocUnsafe:void 0,V=(u=Object.getPrototypeOf,c=Object,function(e){return u(c(e))}),W=Object.create,G=M.propertyIsEnumerable,H=O.splice,K=B?B.toStringTag:void 0,q=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=z?z.isBuffer:void 0,X=Math.max,J=Date.now,Z=eh(S,"Map"),Q=eh(Object,"create"),ee=function(){function e(){}return function(t){if(!ek(t))return{};if(W)return W(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 i=e[t];this.set(i[0],i[1])}}function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ei(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function en(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)||ea(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(ey(e[r][0],t))return r;return -1}function ea(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__=Q?Q(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(Q){var r=t[e];return r===p?void 0:r}return D.call(t,e)?t[e]:void 0},et.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:D.call(t,e)},et.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?p:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():H.call(t,r,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},er.prototype.has=function(e){return es(this.__data__,e)>-1},er.prototype.set=function(e,t){var r=this.__data__,i=es(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(Z||er),string:new et}},ei.prototype.delete=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return ed(this,e).get(e)},ei.prototype.has=function(e){return ed(this,e).has(e)},ei.prototype.set=function(e,t){var r=ed(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},en.prototype.clear=function(){this.__data__=new er,this.size=0},en.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},en.prototype.get=function(e){return this.__data__.get(e)},en.prototype.has=function(e){return this.__data__.has(e)},en.prototype.set=function(e,t){var r=this.__data__;if(r instanceof er){var i=r.__data__;if(!Z||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ei(i)}return r.set(e,t),this.size=r.size,this};var el=function(e,t,r){for(var i=-1,n=Object(e),o=r(e),s=o.length;s--;){var a=o[++i];if(!1===t(n[a],a,n))break}return e};function eu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=D.call(e,K),r=e[K];try{e[K]=void 0;var i=!0}catch(e){}var n=L.call(e);return i&&(t?e[K]=r:delete e[K]),n}(e):L.call(e)}function ec(e){return eC(e)&&eu(e)==f}function ed(e,t){var r,i=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?i["string"==typeof t?"string":"hash"]:i.map}function eh(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||j&&j in r)&&(eS(r)?N:y).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ep(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&v.test(e))&&e>-1&&e%1==0&&e<t}function ef(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||M)}function em(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var eg=(i=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eO,n=0,o=0,function(){var e=J(),t=16-(e-o);if(o=e,t>0){if(++n>=800)return arguments[0]}else n=0;return i.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var ev=ec(function(){return arguments}())?ec:function(e){return eC(e)&&D.call(e,"callee")&&!G.call(e,"callee")},eb=Array.isArray;function ew(e){return null!=e&&ex(e.length)&&!eS(e)}var e_=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 ex(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 eC(e){return null!=e&&"object"==typeof e}var eE=I?function(e){return I(e)}:function(e){return eC(e)&&ex(e.length)&&!!b[eu(e)]};function eA(e){return ew(e)?function(e,t){var r=eb(e),i=!r&&ev(e),n=!r&&!i&&e_(e),o=!r&&!i&&!n&&eE(e),s=r||i||n||o,a=s?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],l=a.length;for(var u in e)(t||D.call(e,u))&&!(s&&("length"==u||n&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&a.push(u);return a}(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=ef(e),r=[];for(var i in e)"constructor"==i&&(t||!D.call(e,i))||r.push(i);return r}(e)}var eI=(d=function(e,t,r,i){!function e(t,r,i,n,o){t!==r&&el(r,function(s,a){if(o||(o=new en),ek(s))(function(e,t,r,i,n,o,s){var a=em(e,r),l=em(t,r),u=s.get(l);if(u){eo(e,r,u);return}var c=o?o(a,l,r+"",e,t,s):void 0,d=void 0===c;if(d){var h,p,f=eb(l),m=!f&&e_(l),y=!f&&!m&&eE(l);c=l,f||m||y?eb(a)?c=a:eC(a)&&ew(a)?c=function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}(a):m?(d=!1,c=function(e,t){if(t)return e.slice();var r=e.length,i=$?$(r):new e.constructor(r);return e.copy(i),i}(l,!0)):y?(d=!1,new U(p=new(h=l.buffer).constructor(h.byteLength)).set(new U(h)),c=new l.constructor(p,l.byteOffset,l.length)):c=[]:function(e){if(!eC(e)||eu(e)!=g)return!1;var t=V(e);if(null===t)return!0;var r=D.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&R.call(r)==F}(l)||ev(l)?(c=a,ev(a)?c=function(e,t,r,i){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=i?i(r[a],e[a],a,r,e):void 0;void 0===l&&(l=e[a]),n?ea(r,a,l):function(e,t,r){var i=e[t];D.call(e,t)&&ey(i,r)&&(void 0!==r||t in e)||ea(e,t,r)}(r,a,l)}return r}(a,eA(a)):(!ek(a)||eS(a))&&(c="function"!=typeof l.constructor||ef(l)?{}:ee(V(l)))):d=!1}d&&(s.set(l,c),n(c,l,i,o,s),s.delete(l)),eo(e,r,c)})(t,r,a,i,e,n,o);else{var l=n?n(em(t,a),s,a+"",t,r,o):void 0;void 0===l&&(l=s),eo(t,a,l)}},eA)}(e,t,r,i)},eg((s=h=function(e,t){var r=-1,i=t.length,n=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(n=d.length>3&&"function"==typeof n?(i--,n):void 0,o&&function(e,t,r){if(!ek(r))return!1;var i=typeof t;return("number"==i?!!(ew(r)&&ep(t,r.length)):"string"==i&&(t in r))&&ey(r[t],e)}(t[0],t[1],o)&&(n=i<3?void 0:n,i=1),e=Object(e);++r<i;){var s=t[r];s&&d(e,s,r,n)}return e},a=X((a=void 0,s.length-1),0),function(){for(var e=arguments,t=-1,r=X(e.length-a,0),i=Array(r);++t<r;)i[t]=e[a+t];t=-1;for(var n=Array(a+1);++t<a;)n[t]=e[t];return n[a]=eO(i),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)}(s,this,n)}),h+""));function eO(e){return e}e.exports=eI},3454:function(e,t,r){"use strict";var i,n;e.exports=(null==(i=r.g.process)?void 0:i.env)&&"object"==typeof(null==(n=r.g.process)?void 0:n.env)?r.g.process:r(7663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(6070)}])},6070:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return sB}});var i=r(5893);function n(e,t={}){let r=!1;function i(t){let r=(["container","root"].includes(t??"")?[e]:[e,t]).filter(
16Boolean).join("__"),i=`chakra-${r}`;return{className:i,selector:`.${i}`,toString:()=>t}}return{parts:function(...o){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(...) ?")}(),o))t[e]=i(e);return n(e,t)},toPart:i,extend:function(...r){for(let e of r)e in t||(t[e]=i(e));return n(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}let o=n("accordion").parts("root","container","button","panel","icon"),s=n("alert").parts("title","description","container","icon","spinner"),a=n("avatar").parts("label","badge","container","excessLabel","group"),l=n("breadcrumb").parts("link","item","container","separator");n("button").parts();let u=n("checkbox").parts("control","icon","container","label");n("progress").parts("track","filledTrack","label");let c=n("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),d=n("editable").parts("preview","input","textarea"),h=n("form").parts("container","requiredIndicator","helperText"),p=n("formError").parts("text","icon"),f=n("input").parts("addon","field","element","group"),m=n("list").parts("container","item","icon"),g=n("menu").parts("button","list","item","groupTitle","icon","command","divider"),y=n("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),v=n("numberinput").parts("root","field","stepperGroup","stepper");n("pininput").parts("field");let b=n("popover").parts("content","header","body","footer","popper","arrow","closeButton"),w=n("progress").parts("label","filledTrack","track"),_=n("radio").parts("container","control","label"),S=n("select").parts("field","icon"),x=n("slider").parts("container","track","thumb","filledTrack","mark"),k=n("stat").parts("container","label","helpText","number","icon"),C=n("switch").parts("container","track","thumb","label"),E=n("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),A=n("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),I=n("tag").parts("container","label","closeButton"),O=n("card").parts("container","header","body","footer");n("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var T=r(3695);let{definePartsStyle:M,defineMultiStyleConfig:P}=(0,T.D)(o.keys),R=(0,T.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),D=P({baseStyle:M({container:R,button:(0,T.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,T.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,T.k0)({fontSize:"1.25em"})})});function j(e,t,r){let i=function(e,t=""){var r;return((r=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?r:Number.isInteger(parseFloat(r.toString()))?r:r.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,r);return{variable:i,reference:`var(${i}${t?`, ${t}`:""})`}}function L(e,t,r){return Math.min(Math.max(e,r),t)}class F extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function N(e){if("string"!=typeof e)throw new F(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=H.test(e)?function(e){let t=B[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new F(e);return`#${t}`}(e):e;let r=$.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(U(e,2),16)),parseInt(U(e[3]||"f",2),16)/255]}let i=V.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let n=W.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=G.exec(t);if(o){let[t,r,i,n]=Array.from(o).slice(1).map(parseFloat);if(L(0,100,r)!==r||L(0,100,i)!==i)throw new F(e);return[...q(t,r,i),Number.isNaN(n)?1:n]}throw new F(e)}let z=e=>parseInt(e.replace(/_/g,""),36),B="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)=>
16{let r=z(t.substring(0,3)),i=z(t.substring(3)).toString(16),n="";for(let e=0;e<6-i.length;e++)n+="0";return e[r]=`${n}${i}`,e},{}),U=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$=RegExp(`^#${U("([a-f0-9])",3)}([a-f0-9])?$`,"i"),V=RegExp(`^#${U("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),W=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${U(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),G=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,H=/^[a-z]+$/i,K=e=>Math.round(255*e),q=(e,t,r)=>{let i=r/100;if(0===t)return[i,i,i].map(K);let n=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*i-1)),s=o*(1-Math.abs(n%2-1)),a=0,l=0,u=0;n>=0&&n<1?(a=o,l=s):n>=1&&n<2?(a=s,l=o):n>=2&&n<3?(l=o,u=s):n>=3&&n<4?(l=s,u=o):n>=4&&n<5?(a=s,u=o):n>=5&&n<6&&(a=o,u=s);let c=i-o/2;return[a+c,l+c,u+c].map(K)},Y=e=>0===Object.keys(e).length,X=(e,t,r)=>{let i=function(e,t,r,i,n){for(i=0,t=t.split?t.split("."):t;i<t.length;i++)e=e?e[t[i]]:n;return e===n?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,i,n]=N(e),o=e=>{let t=L(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(i),n<1&&o(Math.round(255*n))}(i),i}catch{return r??"#000000"}},J=e=>{let[t,r,i]=N(e);return(299*t+587*r+114*i)/1e3},Z=e=>t=>128>J(X(t,e))?"dark":"light",Q=e=>t=>"dark"===Z(e)(t),ee=(e,t)=>r=>(function(e,t){let[r,i,n,o]=N(e);return`rgba(${L(0,255,r).toFixed()}, ${L(0,255,i).toFixed()}, ${L(0,255,n).toFixed()}, ${parseFloat(L(0,1,o-t).toFixed(3))})`})(X(r,e),1-t);function et(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
17    45deg,
18    ${t} 25%,
19    transparent 25%,
20    transparent 50%,
21    ${t} 50%,
22    ${t} 75%,
23    transparent 75%,
24    transparent
25  )`,backgroundSize:`${e} ${e}`}}let er=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,{definePartsStyle:ei,defineMultiStyleConfig:en}=(0,T.D)(s.keys),eo=j("alert-fg"),es=j("alert-bg"),ea=ei({container:{bg:es.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:eo.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:eo.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function el(e){let{theme:t,colorScheme:r}=e,i=ee(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:i}}let eu=ei(e=>{let{colorScheme:t}=e,r=el(e);return{container:{[eo.variable]:`colors.${t}.600`,[es.variable]:r.light,_dark:{[eo.variable]:`colors.${t}.200`,[es.variable]:r.dark}}}}),ec=ei(e=>{let{colorScheme:t}=e,r=el(e);return{container:{[eo.variable]:`colors.${t}.600`,[es.variable]:r.light,_dark:{[eo.variable]:`colors.${t}.200`,[es.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:eo.reference}}}),ed=en({baseStyle:ea,variants:{subtle:eu,"left-accent":ec,"top-accent":ei(e=>{let{colorScheme:t}=e,r=el(e);return{container:{[eo.variable]:`colors.${t}.600`,[es.variable]:r.light,_dark:{[eo.variable]:`colors.${t}.200`,[es.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:eo.reference}}}),solid:ei(e=>{let{colorScheme:t}=e;return{container:{[eo.variable]:"colors.white",[es.variable]:`colors.${t}
25.600`,_dark:{[eo.variable]:"colors.gray.900",[es.variable]:`colors.${t}.200`},color:eo.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),eh={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"},ep={...eh,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"}},ef=e=>"function"==typeof e;function em(e,...t){return ef(e)?e(...t):e}let{definePartsStyle:eg,defineMultiStyleConfig:ey}=(0,T.D)(a.keys),ev=j("avatar-border-color"),eb=j("avatar-bg"),ew=j("avatar-font-size"),e_=j("avatar-size"),eS=(0,T.k0)({borderRadius:"full",border:"0.2em solid",borderColor:ev.reference,[ev.variable]:"white",_dark:{[ev.variable]:"colors.gray.800"}}),ex=(0,T.k0)({bg:eb.reference,fontSize:ew.reference,width:e_.reference,height:e_.reference,lineHeight:"1",[eb.variable]:"colors.gray.200",_dark:{[eb.variable]:"colors.whiteAlpha.400"}}),ek=(0,T.k0)(e=>{let{name:t,theme:r}=e,i=t?function(e){var t;let r=er();return!e||Y(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 i=t>>8*e&255;r+=`00${i.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",n=Q(i)(r),o="white";return n||(o="gray.800"),{bg:eb.reference,fontSize:ew.reference,color:o,borderColor:ev.reference,verticalAlign:"top",width:e_.reference,height:e_.reference,"&:not([data-loaded])":{[eb.variable]:i},[ev.variable]:"colors.white",_dark:{[ev.variable]:"colors.gray.800"}}}),eC=(0,T.k0)({fontSize:ew.reference,lineHeight:"1"});function eE(e){let t="100%"!==e?ep[e]:void 0;return eg({container:{[e_.variable]:t??e,[ew.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[e_.variable]:t??e,[ew.variable]:`calc(${t??e} / 2.5)`}})}let eA=ey({baseStyle:eg(e=>({badge:em(eS,e),excessLabel:em(ex,e),container:em(ek,e),label:eC})),sizes:{"2xs":eE(4),xs:eE(6),sm:eE(8),md:eE(12),lg:eE(16),xl:eE(24),"2xl":eE(32),full:eE("100%")},defaultProps:{size:"md"}}),eI=function(e,t){let r={};for(let i of t){if(Array.isArray(i)){let[t,n]=i;r[t]=j(`${e}-${t}`,n);continue}r[i]=j(`${e}-${i}`)}return r}("badge",["bg","color","shadow"]),eO=(0,T.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:eI.bg.reference,color:eI.color.reference,boxShadow:eI.shadow.reference}),eT=(0,T.k0)(e=>{let{colorScheme:t,theme:r}=e,i=ee(`${t}.500`,.6)(r);return{[eI.bg.variable]:`colors.${t}.500`,[eI.color.variable]:"colors.white",_dark:{[eI.bg.variable]:i,[eI.color.variable]:"colors.whiteAlpha.800"}}}),eM=(0,T.k0)(e=>{let{colorScheme:t,theme:r}=e,i=ee(`${t}.200`,.16)(r);return{[eI.bg.variable]:`colors.${t}.100`,[eI.color.variable]:`colors.${t}.800`,_dark:{[eI.bg.variable]:i,[eI.color.variable]:`colors.${t}.200`}}}),eP=(0,T.k0)(e=>{let{colorScheme:t,theme:r}=e,i=ee(`${t}.200`,.8)(r);return{[eI.color.variable]:`colors.${t}.500`,_dark:{[eI.color.variable]:i},[eI.shadow.variable]:`inset 0 0 0px 1px ${eI.color.reference}`}}),eR=(0,T.fj)({baseStyle:eO,variants:{solid:eT,subtle:eM,outline:eP},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:eD,definePartsStyle:ej}=(0,T.D)(l.keys),eL=j("breadcrumb-link-decor"),eF=eD({baseStyle:ej({link:(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-
25out",outline:"none",color:"inherit",textDecoration:eL.reference,[eL.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[eL.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})});function eN(e,t){return r=>"dark"===r.colorMode?t:e}function ez(e){let{orientation:t,vertical:r,horizontal:i}=e;return t?"vertical"===t?r:i:{}}let eB=(0,T.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"}}}),eU=(0,T.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:eN("gray.800","whiteAlpha.900")(e),_hover:{bg:eN("gray.100","whiteAlpha.200")(e)},_active:{bg:eN("gray.200","whiteAlpha.300")(e)}};let i=ee(`${t}.200`,.12)(r),n=ee(`${t}.200`,.24)(r);return{color:eN(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:eN(`${t}.50`,i)(e)},_active:{bg:eN(`${t}.100`,n)(e)}}}),e$=(0,T.k0)(e=>{let{colorScheme:t}=e,r=eN("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"},...em(eU,e)}}),eV={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},eW=(0,T.k0)(e=>{let{colorScheme:t}=e;if("gray"===t){let t=eN("gray.100","whiteAlpha.200")(e);return{bg:t,color:eN("gray.800","whiteAlpha.900")(e),_hover:{bg:eN("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:eN("gray.300","whiteAlpha.400")(e)}}}let{bg:r=`${t}.500`,color:i="white",hoverBg:n=`${t}.600`,activeBg:o=`${t}.700`}=eV[t]??{},s=eN(r,`${t}.200`)(e);return{bg:s,color:eN(i,"gray.800")(e),_hover:{bg:eN(n,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:eN(o,`${t}.400`)(e)}}}),eG=(0,T.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:eN(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:eN(`${t}.700`,`${t}.500`)(e)}}}),eH=(0,T.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),eK={lg:(0,T.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,T.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,T.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,T.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},eq=(0,T.fj)({baseStyle:eB,variants:{ghost:eU,outline:e$,solid:eW,link:eG,unstyled:eH},sizes:eK,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:eY,defineMultiStyleConfig:eX}=(0,T.D)(O.keys),eJ=j("card-bg"),eZ=j("card-padding"),eQ=j("card-shadow"),e0=j("card-radius"),e1=j("card-border-width","0"),e2=j("card-border-color"),e5=eY({container:{[eJ.variable]:"colors.chakra-body-bg",backgroundColor:eJ.reference,boxShadow:eQ.reference,borderRadius:e0.reference,color:"chakra-body-text",borderWidth:e1.reference,borderColor:e2.reference},body:{padding:eZ.reference,flex:"1 1 0%"},header:{padding:eZ.reference},footer:{padding:eZ.reference}}),e3={sm:eY({container:{[e0.variable]:"radii.base",[eZ.variable]:"space.3"}}),md:eY({container:{[e0.variable]:"radii.md",[eZ.variable]:"space.5"}}),lg:eY({container:{[e0.variable]:"radii.xl",[eZ.variable]:"space.7"}})},e4=eX({baseStyle:e5,variants:{elevated:eY({container:{[eQ.variable]:"shadows.base",_dark:{[eJ.variable]:"colors.gray.700"}}}),outline:eY({container:{[e1.variable]:"1px",[e2.variable]:"colors.chakra-border-color"}}),filled:eY({container:{[eJ.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[eZ.variable]:0},header:{[eZ.variable]:0},footer:{[eZ.variable]:0}}},sizes:e3,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:e6,defineMultiStyleConfig:e8}=(0,T.D)(u.keys),e9=j("checkbox-size"),e7=(0,T.k0)(e=>{let{colorScheme:t}=e;return{w:e9.reference,h:e9.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px s
25olid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:eN(`${t}.500`,`${t}.200`)(e),borderColor:eN(`${t}.500`,`${t}.200`)(e),color:eN("white","gray.900")(e),_hover:{bg:eN(`${t}.600`,`${t}.300`)(e),borderColor:eN(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:eN("gray.200","transparent")(e),bg:eN("gray.200","whiteAlpha.300")(e),color:eN("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:eN(`${t}.500`,`${t}.200`)(e),borderColor:eN(`${t}.500`,`${t}.200`)(e),color:eN("white","gray.900")(e)},_disabled:{bg:eN("gray.100","whiteAlpha.100")(e),borderColor:eN("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:eN("red.500","red.300")(e)}}}),te=(0,T.k0)({_disabled:{cursor:"not-allowed"}}),tt=(0,T.k0)({userSelect:"none",_disabled:{opacity:.4}}),tr=(0,T.k0)({transitionProperty:"transform",transitionDuration:"normal"}),ti=e8({baseStyle:e6(e=>({icon:tr,container:te,control:em(e7,e),label:tt})),sizes:{sm:e6({control:{[e9.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:e6({control:{[e9.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:e6({control:{[e9.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}});function tn(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 to(e,t){var r,i;let n=function(e,t=""){return`--${function(e,t=""){return[t,tn(e)].filter(Boolean).join("-")}(e,t)}`}(e,t?.prefix);return{variable:n,reference:(r="string"==typeof(i=t?.fallback)?i:i?.reference,`var(${tn(n)}${r?`, ${r}`:""})`)}}let ts=to("close-button-size"),ta=to("close-button-bg"),tl=(0,T.k0)({w:[ts.reference],h:[ts.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ta.variable]:"colors.blackAlpha.100",_dark:{[ta.variable]:"colors.whiteAlpha.100"}},_active:{[ta.variable]:"colors.blackAlpha.200",_dark:{[ta.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ta.reference}),tu={lg:(0,T.k0)({[ts.variable]:"sizes.10",fontSize:"md"}),md:(0,T.k0)({[ts.variable]:"sizes.8",fontSize:"xs"}),sm:(0,T.k0)({[ts.variable]:"sizes.6",fontSize:"2xs"})},tc=(0,T.fj)({baseStyle:tl,sizes:tu,defaultProps:{size:"md"}}),{variants:td,defaultProps:th}=eR,tp=(0,T.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:eI.bg.reference,color:eI.color.reference,boxShadow:eI.shadow.reference}),tf=(0,T.fj)({baseStyle:tp,variants:td,defaultProps:th}),tm=(0,T.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),tg=(0,T.fj)({baseStyle:tm}),ty=(0,T.k0)({opacity:.6,borderColor:"inherit"}),tv=(0,T.k0)({borderStyle:"solid"}),tb=(0,T.k0)({borderStyle:"dashed"}),tw=(0,T.fj)({baseStyle:ty,variants:{solid:tv,dashed:tb},defaultProps:{variant:"solid"}}),{definePartsStyle:t_,defineMultiStyleConfig:tS}=(0,T.D)(c.keys),tx=j("drawer-bg"),tk=j("drawer-box-shadow");function tC(e){return"full"===e?t_({dialog:{maxW:"100vw",h:"100vh"}}):t_({dialog:{maxW:e}})}let tE=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),tA=(0,T.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),tI=(0,T.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[tx.variable]:"colors.white",[tk.variable]:"shadows.lg",_dark:{[tx.variable]:"colors.gray.700",[tk.variable]:"shadows.dark-lg"},bg:tx.reference,boxShadow:tk.reference}}),tO=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),tT=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),tM=(0,T.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),tP=(0,T.k0)({px:"6",py:"4"}),tR=tS({baseStyle:t_(e=>({overlay:tE,dialogContainer:tA,dialog:em(tI,e),header:tO,closeButton:tT,body:tM,footer:tP})),sizes:{xs:tC("xs"),sm:tC("md"),md:tC("lg"),lg:tC("2xl"),xl:tC("4xl"),full:tC("full")},defaultProps:{size:"xs"}}),{definePartsStyle:tD,defineMultiStyleConfig:tj}=(0,T.D)(d.keys),tL=tj({baseStyle:tD({preview:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:tF,defineMultiStyleConfig:tN}=(0,T.D)(h.keys),tz=j("form-control-color"),tB=tN({baseStyle:tF({container:{width:"100%",position:"relative"},requiredIndicator:(0,T.k0)({marginStart:"1",[tz.variable]:"colors.red.500",_dark:{[tz.variable]:"colors.red.300"},color:tz.reference}),helperText:(0,T.k0)({mt:"2",[tz.variable]:"colors.gray.600",_dark:{[tz.variable]:"colors.whiteAlpha.600"},color:tz.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:tU,defineMultiStyleConfig:t$}=(0,T.D)(p.keys),tV=j("form-error-color"),tW=t$({baseStyle:tU({text:(0,T.k0)({[tV.variable]:"colors.red.500",_dark:{[tV.variable]:"colors.red.300"},color:tV.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,T.k0)({marginEnd:"0.5em",[tV.variable]:"colors.red.500",_dark:{[tV.variable]:"colors.red.300"},color:tV.reference})})}),tG=(0,T.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),tH=(0,T.fj)({baseStyle:tG}),tK=(0,T.k0)({fontFamily:"heading",fontWeight:"bold"}),tq={"4xl":(0,T.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,T.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,T.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,T.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,T.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,T.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,T.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,T.k0)({fontSize:"sm",lineHeight:1.2})},tY=(0,T.fj)({baseStyle:tK,sizes:tq,defaultProps:{size:"xl"}}),{definePartsStyle:tX,defineMultiStyleConfig:tJ}=(0,T.D)(f.keys),tZ=j("input-height"),tQ=j("input-font-size"),t0=j("input-padding"),t1=j("input-border-radius"),t2=tX({addon:{height:tZ.reference,fontSize:tQ.reference,px:t0.reference,borderRadius:t1.reference},field:{width:"100%",height:tZ.reference,fontSize:tQ.reference,px:t0.reference,borderRadius:t1.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),t5={lg:(0,T.k0)({[tQ.variable]:"fontSizes.lg",[t0.variable]:"space.4",[t1.variable]:"radii.md",[tZ.variable]:"sizes.12"}),md:(0,T.k0)({[tQ.variable]:"fontSizes.md",[t0.variable]:"space.4",[t1.variable]:"radii.md",[tZ.variable]:"sizes.10"}),sm:(0,T.k0)({[tQ.variable]:"fontSizes.sm",[t0.variable]:"space.3",[t1.variable]:"radii.sm",[tZ.variable]:"sizes.8"}),xs:(0,T.k0)({[tQ.variable]:"fontSizes.xs",[t0.variable]:"space.2",[t1.variable]:"radii.sm",[tZ.variable]:"sizes.6"})},t3={lg:tX({field:t5.lg,group:t5.lg}),md:tX({field:t5.md,group:t5.md}),sm:tX({field:t5.sm,group:t5.sm}),xs:tX({field:t5.xs,group:t5.xs})};function t4(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||eN("blue.500","blue.300")(e),errorBorderColor:r||eN("red.500","red.300")(e)}}let t6=tX(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=t4(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:eN("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"}
25,_invalid:{borderColor:X(t,i),boxShadow:`0 0 0 1px ${X(t,i)}`},_focusVisible:{zIndex:1,borderColor:X(t,r),boxShadow:`0 0 0 1px ${X(t,r)}`}},addon:{border:"1px solid",borderColor:eN("inherit","whiteAlpha.50")(e),bg:eN("gray.100","whiteAlpha.300")(e)}}}),t8=tX(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=t4(e);return{field:{border:"2px solid",borderColor:"transparent",bg:eN("gray.100","whiteAlpha.50")(e),_hover:{bg:eN("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:X(t,i)},_focusVisible:{bg:"transparent",borderColor:X(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:eN("gray.100","whiteAlpha.50")(e)}}}),t9=tJ({baseStyle:t2,sizes:t3,variants:{outline:t6,filled:t8,flushed:tX(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=t4(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:X(t,i),boxShadow:`0px 1px 0px 0px ${X(t,i)}`},_focusVisible:{borderColor:X(t,r),boxShadow:`0px 1px 0px 0px ${X(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tX({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),t7=j("kbd-bg"),re=(0,T.k0)({[t7.variable]:"colors.gray.100",_dark:{[t7.variable]:"colors.whiteAlpha.100"},bg:t7.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),rt=(0,T.fj)({baseStyle:re}),rr=(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),ri=(0,T.fj)({baseStyle:rr}),{defineMultiStyleConfig:rn,definePartsStyle:ro}=(0,T.D)(m.keys),rs=rn({baseStyle:ro({icon:(0,T.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:ra,definePartsStyle:rl}=(0,T.D)(g.keys),ru=j("menu-bg"),rc=j("menu-shadow"),rd=(0,T.k0)({[ru.variable]:"#fff",[rc.variable]:"shadows.sm",_dark:{[ru.variable]:"colors.gray.700",[rc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:ru.reference,boxShadow:rc.reference}),rh=(0,T.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ru.variable]:"colors.gray.100",_dark:{[ru.variable]:"colors.whiteAlpha.100"}},_active:{[ru.variable]:"colors.gray.200",_dark:{[ru.variable]:"colors.whiteAlpha.200"}},_expanded:{[ru.variable]:"colors.gray.100",_dark:{[ru.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ru.reference}),rp=(0,T.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),rf=(0,T.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),rm=(0,T.k0)({opacity:.6}),rg=(0,T.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ry=ra({baseStyle:rl({button:(0,T.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:rd,item:rh,groupTitle:rp,icon:rf,command:rm,divider:rg})}),{defineMultiStyleConfig:rv,definePartsStyle:rb}=(0,T.D)(y.keys),rw=j("modal-bg"),r_=j("modal-shadow"),rS=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),rx=(0,T.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"}}),rk=(0,T.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,[rw.variable]:"colors.white",[r_.variable]:"shadows.lg",_dark:{[rw.variable]:"colors.gray.700",[r_.variable]:"shadows.dark-lg"},bg:rw.reference,boxShadow:r_.reference}}),rC=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),rE=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),rA=(0,T.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),rI=(0,T.k0)({px:"6",py:"4"});function rO(e){return"full"===e?rb({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):rb({dialog:{maxW:e}})}let rT=rv({baseStyle:rb(e=>({overlay:rS,dialogContainer:em(rx,e),dialog:em(rk,e),header:rC,closeButton:rE,body:em(rA,e),footer:rI})),sizes:{xs:rO("xs"),sm:rO("sm"),md:rO("md"),lg:rO("lg"),xl:rO("xl"),"2xl":rO("2xl"),"3xl":rO("3xl"),"4xl":rO("4xl"),"5xl":rO("5xl"),"6xl":rO("6xl"),full:rO("full")},defaultProps:{size:"md"}});var rM=r(9115);function rP(e){return(0,rM.Kn)(e)&&e.reference?e.reference:String(e)}let rR=(e,...t)=>t.map(rP).join(` ${e} `).replace(/calc/g,""),rD=(...e)=>`calc(${rR("+",...e)})`,rj=(...e)=>`calc(${rR("-",...e)})`,rL=(...e)=>`calc(${rR("*",...e)})`,rF=(...e)=>`calc(${rR("/",...e)})`,rN=e=>{let t=rP(e);return null==t||Number.isNaN(parseFloat(t))?rL(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},rz=Object.assign(e=>({add:(...t)=>rz(rD(e,...t)),subtract:(...t)=>rz(rj(e,...t)),multiply:(...t)=>rz(rL(e,...t)),divide:(...t)=>rz(rF(e,...t)),negate:()=>rz(rN(e)),toString:()=>e.toString()}),{add:rD,subtract:rj,multiply:rL,divide:rF,negate:rN}),rB={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"}},{defineMultiStyleConfig:rU,definePartsStyle:r$}=(0,T.D)(v.keys),rV=to("number-input-stepper-width"),rW=to("number-input-input-padding"),rG=rz(rV).add("0.5rem").toString(),rH=to("number-input-bg"),rK=to("number-input-color"),rq=to("number-input-border-color"),rY=(0,T.k0)({[rV.variable]:"sizes.6",[rW.variable]:rG}),rX=(0,T.k0)(e=>em(t9.baseStyle,e)?.field??{}),rJ=(0,T.k0)({width:rV.reference}),rZ=(0,T.k0)({borderStart:"1px solid",borderStartColor:rq.reference,color:rK.reference,bg:rH.reference,[rK.variable]:"colors.chakra-body-text",[rq.variable]:"colors.chakra-border-color",_dark:{[rK.variable]:"colors.whiteAlpha.800",[rq.variable]:"colors.whiteAlpha.300"},_active:{[rH.variable]:"colors.gray.200",_dark:{[rH.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function rQ(e){let t=t9.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},i=t.field?.fontSize??"md",n=rB.fontSizes[i];return r$({field:{...t.field,paddingInlineEnd:rW.reference,verticalAlign:"top"},stepper:{fontSize:rz(n).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}let r0=rU({baseStyle:r$(e=>({root:rY,field:em(rX,e)??{},stepperGroup:rJ,stepper:rZ})),sizes:{xs:rQ("xs"),sm:rQ("sm"),md:rQ("md"),lg:rQ("lg")},variants:t9.variants,defaultProps:t9.defaultProps}),r1=(0,T.k0)({...t9.baseStyle?.field,textAlign:"center"}),r2={lg:(0,T.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,T.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,T.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,T.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},r5={outline:(0,T.k0)(e=>em(t9.variants?.outline,e)?.field??{}),flushed:(0,T.k0)(e=>em(t9.variants?.flushed,e)?.field??{}),filled:(0,T.k0)(e=>em(t9.variants?.filled,e)?.field??{}),unstyled:t9.variants?.unstyled.field??{}},r3=(0,T.fj)({baseStyle:r1,sizes:r2,variants:r5,defaultProps:t9.defaultProps}),{defineMultiStyleConfig:r4,definePartsStyle:r6}=(0,T.D)(b.keys),r8=to("popper-bg"),r9=to("popper-arrow-bg"),r7=to("popper-arrow-shadow-color"),ie=(0,T.k0)({zIndex:"popover"}),it=(0,T.k0)({[r8.variable]:"colors.white",bg:r8.reference,[r9.variable]:r8.reference,[r7.variable]:"colors.gray.200",_dark:{[r8.variable]:"colors.gray.700",[r7.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),ir=(0,T.k0)({px:3,py:2,borderBottomWidth:"1px"}),ii=r4({baseStyle:r6({popper:ie,content:it,header:ir,body:(0,T.k0)({px:3,py:2}),footer:(0,T.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,T.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{defineMultiStyleConfig:io,definePartsStyle:is}=(0,T.D)(w.keys),ia=(0,T.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:i,hasStripe:n}
25=e,o=eN(et(),et("1rem","rgba(0,0,0,0.1)"))(e),s=eN(`${t}.500`,`${t}.200`)(e),a=`linear-gradient(
26    to right,
27    transparent 0%,
28    ${X(r,s)} 50%,
29    transparent 100%
30  )`;return{...!i&&n&&o,...i?{bgImage:a}:{bgColor:s}}}),il=(0,T.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),iu=(0,T.k0)(e=>({bg:eN("gray.100","whiteAlpha.300")(e)})),ic=(0,T.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...ia(e)})),id=is(e=>({label:il,filledTrack:ic(e),track:iu(e)})),ih=io({sizes:{xs:is({track:{h:"1"}}),sm:is({track:{h:"2"}}),md:is({track:{h:"3"}}),lg:is({track:{h:"4"}})},baseStyle:id,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ip,definePartsStyle:im}=(0,T.D)(_.keys),ig=(0,T.k0)(e=>{let t=em(ti.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),iy=ip({baseStyle:im(e=>({label:ti.baseStyle?.(e).label,container:ti.baseStyle?.(e).container,control:ig(e)})),sizes:{md:im({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:im({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:im({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:iv,definePartsStyle:ib}=(0,T.D)(S.keys),iw=j("select-bg"),i_=ib({field:(0,T.k0)({...t9.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:iw.reference,[iw.variable]:"colors.white",_dark:{[iw.variable]:"colors.gray.700"},"> option, > optgroup":{bg:iw.reference}}),icon:(0,T.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),iS=(0,T.k0)({paddingInlineEnd:"8"}),ix=iv({baseStyle:i_,sizes:{lg:{...t9.sizes?.lg,field:{...t9.sizes?.lg.field,...iS}},md:{...t9.sizes?.md,field:{...t9.sizes?.md.field,...iS}},sm:{...t9.sizes?.sm,field:{...t9.sizes?.sm.field,...iS}},xs:{...t9.sizes?.xs,field:{...t9.sizes?.xs.field,...iS},icon:{insetEnd:"1"}}},variants:t9.variants,defaultProps:t9.defaultProps}),ik=j("skeleton-start-color"),iC=j("skeleton-end-color"),iE=(0,T.k0)({[ik.variable]:"colors.gray.100",[iC.variable]:"colors.gray.400",_dark:{[ik.variable]:"colors.gray.800",[iC.variable]:"colors.gray.600"},background:ik.reference,borderColor:iC.reference,opacity:.7,borderRadius:"sm"}),iA=(0,T.fj)({baseStyle:iE}),iI=j("skip-link-bg"),iO=(0,T.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[iI.variable]:"colors.white",_dark:{[iI.variable]:"colors.gray.700"},bg:iI.reference}}),iT=(0,T.fj)({baseStyle:iO});function iM(e){return(0,rM.Kn)(e)&&e.reference?e.reference:String(e)}let iP=(e,...t)=>t.map(iM).join(` ${e} `).replace(/calc/g,""),iR=(...e)=>`calc(${iP("+",...e)})`,iD=(...e)=>`calc(${iP("-",...e)})`,ij=(...e)=>`calc(${iP("*",...e)})`,iL=(...e)=>`calc(${iP("/",...e)})`,iF=e=>{let t=iM(e);return null==t||Number.isNaN(parseFloat(t))?ij(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},iN=Object.assign(e=>({add:(...t)=>iN(iR(e,...t)),subtract:(...t)=>iN(iD(e,...t)),multiply:(...t)=>iN(ij(e,...t)),divide:(...t)=>iN(iL(e,...t)),negate:()=>iN(iF(e)),toString:()=>e.toString()}),{add:iR,subtract:iD,multiply:ij,divide:iL,negate:iF}),{defineMultiStyleConfig:iz,definePartsStyle:iB}=(0,T.D)(x.keys),iU=j("slider-thumb-size"),i$=j("slider-track-size"),iV=j("slider-bg"),iW=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ez({orientation:t,vertical:{h:"100%",px:iN(iU.reference).divide(2).toString()},horizontal:{w:"100%",py:iN(iU.reference).divide(2).toString()}})}}),iG=(0,T.k0)(e=>({...ez({orientation:e.orientation,horizontal:{h:i$.reference},vertical:{w:i$.reference}}),overflow:"hidden",borderRadius:"sm",[iV.variable]:"colors.gray.200",_dark:{[iV.variable]:"colors.whiteAlpha.200"},_disabled:{[iV.variable]:"colors.gray.300",_dark:{[iV.variable]:"colors.whiteAlpha.300"}},bg:iV.reference})),iH=(0,T.k0)(e=>{let{orientation:t}=e;return{...ez({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:iU.reference,h:iU.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"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}}),iK=(0,T.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[iV.variable]:`colors.${t}.500`,_dark:{[iV.variable]:`colors.${t}.200`},bg:iV.reference}}),iq=iB(e=>({container:iW(e),track:iG(e),thumb:iH(e),filledTrack:iK(e)})),iY=iB({container:{[iU.variable]:"sizes.4",[i$.variable]:"sizes.1"}}),iX=iz({baseStyle:iq,sizes:{lg:iY,md:iB({container:{[iU.variable]:"sizes.3.5",[i$.variable]:"sizes.1"}}),sm:iB({container:{[iU.variable]:"sizes.2.5",[i$.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),iJ=to("spinner-size"),iZ=(0,T.k0)({width:[iJ.reference],height:[iJ.reference]}),iQ={xs:(0,T.k0)({[iJ.variable]:"sizes.3"}),sm:(0,T.k0)({[iJ.variable]:"sizes.4"}),md:(0,T.k0)({[iJ.variable]:"sizes.6"}),lg:(0,T.k0)({[iJ.variable]:"sizes.8"}),xl:(0,T.k0)({[iJ.variable]:"sizes.12"})},i0=(0,T.fj)({baseStyle:iZ,sizes:iQ,defaultProps:{size:"md"}}),{defineMultiStyleConfig:i1,definePartsStyle:i2}=(0,T.D)(k.keys),i5=(0,T.k0)({fontWeight:"medium"}),i3=i1({baseStyle:i2({container:{},label:i5,helpText:(0,T.k0)({opacity:.8,marginBottom:"2"}),number:(0,T.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,T.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:i2({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:i4,definePartsStyle:i6}=(0,T.D)(["stepper","step","title","description","indicator","separator","icon","number"]),i8=j("stepper-indicator-size"),i9=j("stepper-icon-size"),i7=j("stepper-title-font-size"),ne=j("stepper-description-font-size"),nt=j("stepper-accent-color"),nr=i4({baseStyle:i6(({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"},[nt.variable]:`colors.${e}.500`,_dark:{[nt.variable]:`colors.${e}.200`}},title:{fontSize:i7.reference,fontWeight:"medium"},description:{fontSize:ne.reference,color:"chakra-subtle-text"},number:{fontSize:i7.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:i9.reference,height:i9.reference},indicator:{flexShrink:0,borderRadius:"full",width:i8.reference,height:i8.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:nt.reference},"&[data-status=complete]":{bg:nt.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:nt.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${i8.reference} - 8px)`,top:`calc(${i8.reference} + 4px)`,insetStart:`calc(${i8.reference} / 2 - 1px)`}}})),sizes:{xs:i6({stepper:{[i8.variable]:"sizes.4",[i9.variable]:"sizes.3",[i7.variable]:"fontSizes.xs",[ne.variable]:"fontSizes.xs"}}),sm:i6({stepper:{[i8.variable]:"sizes.6",[i9.variable]:"sizes.4",[i7.variable]:"fontSizes.sm",[ne.variable]:"fontSizes.xs"}}),md:i6({stepper:{[i8.variable]:"sizes.8",[i9.variable]:"sizes.5",[i7.variable]:"fontSizes.md",[ne.variable]:"fontSizes.sm"}}),lg:i6({stepper:{[i8.variable]:"sizes.10",[i9.variable]:"sizes.6",[i7.variable]:"fontSizes.lg",[ne.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ni,definePartsStyle:nn}=(0,T.D)(C.keys),no=to("switch-track-width"),ns=to("switch-track-height"),na=to("switch-track-diff"),nl=rz.subtract(no,ns),nu=to("switch-thumb-x"),nc=to("switch-bg"),nd=(0,T.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[no.reference],height:[ns.reference],transitionProperty:"common",transitionDuration:"fast",[nc.variable]:"colors.gray.300",_dark:{[nc.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[nc.variable]:`colors.${t}.500`,_dark:{[nc.variable]:`colors.${t}.200`}},bg:nc.reference}}),nh=(0,T.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ns.reference],height:[ns.reference],_checked:{transform:`translateX(${nu.reference})`}}),np=ni({baseStyle:nn(e=>({container:{[na.variable]:nl,[nu.variable]:na.reference,_rtl:{[nu.variable]:rz(na).negate().toString()}},track:nd(e),thumb:nh})),sizes:{sm:nn({container:{[no.variable]:"1.375rem",[ns.variable]:"sizes.3"}}),md:nn({container:{[no.variable]:"1.875rem",[ns.variable]:"sizes.4"}}),lg:nn({container:{[no.variable]:"2.875rem",[ns.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nf,definePartsStyle:nm}=(0,T.D)(E.keys),ng=nm({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"}}),ny=(0,T.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),nv=nf({baseStyle:ng,variants:{simple:nm(e=>{let{colorScheme:t}=e;return{th:{color:eN("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eN(`${t}.100`,`${t}.700`)(e),...ny},td:{borderBottom:"1px",borderColor:eN(`${t}.100`,`${t}.700`)(e),...ny},caption:{color:eN("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:nm(e=>{let{colorScheme:t}=e;return{th:{color:eN("gray.600","gray.400")(e),borderBottom:"1px",borderColor:eN(`${t}.100`,`${t}.700`)(e),...ny},td:{borderBottom:"1px",borderColor:eN(`${t}.100`,`${t}.700`)(e),...ny},caption:{color:eN("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:eN(`${t}.100`,`${t}.700`)(e)},td:{background:eN(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,T.k0)({})},sizes:{sm:nm({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"}}
30),md:nm({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:nm({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"}}),nb=j("tabs-color"),nw=j("tabs-bg"),n_=j("tabs-border-color"),{defineMultiStyleConfig:nS,definePartsStyle:nx}=(0,T.D)(A.keys),nk=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),nC=(0,T.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}}}),nE=(0,T.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"}}),nA=(0,T.k0)({p:4}),nI=nx(e=>({root:nk(e),tab:nC(e),tablist:nE(e),tabpanel:nA})),nO={sm:nx({tab:{py:1,px:4,fontSize:"sm"}}),md:nx({tab:{fontSize:"md",py:2,px:4}}),lg:nx({tab:{fontSize:"lg",py:3,px:4}})},nT=nx(e=>{let{colorScheme:t,orientation:r}=e,i="vertical"===r,n=i?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[i?"marginStart":"marginBottom"]:"-2px",_selected:{[nb.variable]:`colors.${t}.600`,_dark:{[nb.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[nw.variable]:"colors.gray.200",_dark:{[nw.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:nb.reference,bg:nw.reference}}}),nM=nx(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[n_.variable]:"transparent",_selected:{[nb.variable]:`colors.${t}.600`,[n_.variable]:"colors.white",_dark:{[nb.variable]:`colors.${t}.300`,[n_.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:n_.reference},color:nb.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),nP=nx(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[nw.variable]:"colors.gray.50",_dark:{[nw.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[nw.variable]:"colors.white",[nb.variable]:`colors.${t}.600`,_dark:{[nw.variable]:"colors.gray.800",[nb.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:nb.reference,bg:nw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),nR=nx(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:X(r,`${t}.700`),bg:X(r,`${t}.100`)}}}}),nD=nS({baseStyle:nI,sizes:nO,variants:{line:nT,enclosed:nM,"enclosed-colored":nP,"soft-rounded":nR,"solid-rounded":nx(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[nb.variable]:"colors.gray.600",_dark:{[nb.variable]:"inherit"},_selected:{[nb.variable]:"colors.white",[nw.variable]:`colors.${t}.600`,_dark:{[nb.variable]:"colors.gray.800",[nw.variable]:`colors.${t}.300`}},color:nb.reference,bg:nw.reference}}}),unstyled:nx({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:nj,definePartsStyle:nL}=(0,T.D)(I.keys),nF=j("tag-bg"),nN=j("tag-color"),nz=j("tag-shadow"),nB=j("tag-min-height"),nU=j("tag-min-width"),n$=j("tag-font-size"),nV=j("tag-padding-inline"),nW=nL({container:(0,T.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[nN.variable]:eI.color.reference,[nF.variable]:eI.bg.reference,[nz.variable]:eI.shadow.reference,color:nN.reference,bg:nF.reference,boxShadow:nz.reference,borderRadius:"md",minH:nB.reference,minW:nU.reference,fontSize:n$.reference,px:nV.reference,_focusVisible:{[nz.variable]:"shadows.outline"}}),label:(0,T.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,T.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}})}),nG={sm:nL({container:{[nB.variable]:"sizes.5",[nU.variable]:"sizes.5",[n$.variable]:"fontSizes.xs",[nV.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:nL({container:{[nB.variable]:"sizes.6",[nU.variable]:"sizes.6",[n$.variable]:"fontSizes.sm",[nV.variable]:"space.2"}}),lg:nL({container:{[nB.variable]:"sizes.8",[nU.variable]:"sizes.8",[n$.variable]:"fontSizes.md",[nV.variable]:"space.3"}})},nH=nj({variants:{subtle:nL(e=>({container:eR.variants?.subtle(e)})),solid:nL(e=>({container:eR.variants?.solid(e)})),outline:nL(e=>({container:eR.variants?.outline(e)}))},baseStyle:nW,sizes:nG,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),nK=(0,T.k0)({...t9.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),nq={outline:(0,T.k0)(e=>t9.variants?.outline(e).field??{}),flushed:(0,T.k0)(e=>t9.variants?.flushed(e).field??{}),filled:(0,T.k0)(e=>t9.variants?.filled(e).field??{}),unstyled:t9.variants?.unstyled.field??{}},nY={xs:t9.sizes?.xs.field??{},sm:t9.sizes?.sm.field??{},md:t9.sizes?.md.field??{},lg:t9.sizes?.lg.field??{}},nX=(0,T.fj)({baseStyle:nK,sizes:nY,variants:nq,defaultProps:{size:"md",variant:"outline"}}),nJ=to("tooltip-bg"),nZ=to("tooltip-fg"),nQ=to("popper-arrow-bg"),n0=(0,T.k0)({bg:nJ.reference,color:nZ.reference,[nJ.variable]:"colors.gray.700",[nZ.variable]:"colors.whiteAlpha.900",_dark:{[nJ.variable]:"colors.gray.300",[nZ.variable]:"colors.gray.9
3000"},[nQ.variable]:nJ.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),n1=(0,T.fj)({baseStyle:n0}),n2={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"}},...rB,sizes:ep,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:eh,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"}}},n5={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"}}},n3={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"}
30,"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},n4={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},n6={semanticTokens:n5,direction:"ltr",...n2,components:{Accordion:D,Alert:ed,Avatar:eA,Badge:eR,Breadcrumb:eF,Button:eq,Checkbox:ti,CloseButton:tc,Code:tf,Container:tg,Divider:tw,Drawer:tR,Editable:tL,Form:tB,FormError:tW,FormLabel:tH,Heading:tY,Input:t9,Kbd:rt,Link:ri,List:rs,Menu:ry,Modal:rT,NumberInput:r0,PinInput:r3,Popover:ii,Progress:ih,Radio:iy,Select:ix,Skeleton:iA,SkipLink:iT,Slider:iX,Spinner:i0,Stat:i3,Switch:np,Table:nv,Tabs:nD,Tag:nH,Textarea:nX,Tooltip:n1,Card:e4,Stepper:nr},styles:n3,config:n4},n8={semanticTokens:n5,direction:"ltr",components:{},...n2,styles:n3,config:n4};var n9=r(2010),n7=r(7294),oe=r(1046);let ot={light:"chakra-ui-light",dark:"chakra-ui-dark"},or="chakra-ui-color-mode",oi={ssr:!1,type:"localStorage",get(e){let t;if(!globalThis?.document)return e;try{t=localStorage.getItem(or)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(or,e)}catch(e){}}},on=()=>{},oo=globalThis?.document?n7.useLayoutEffect:n7.useEffect;function os(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}let oa=function(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:s}={},colorModeManager:a=oi}=e,l=(0,n9._)(),u="dark"===o?"dark":"light",[c,d]=(0,n7.useState)(()=>os(a,u)),[h,p]=(0,n7.useState)(()=>os(a)),{getSystemTheme:f,setClassName:m,setDataset:g,addListener:y}=(0,n7.useMemo)(()=>(function(e={}){let{preventTransition:t=!0,nonce:r}=e,i={setDataset:e=>{let r=t?i.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,r?.()},setClassName(e){document.body.classList.add(e?ot.dark:ot.light),document.body.classList.remove(e?ot.light:ot.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme:e=>i.query().matches??"dark"===e?"dark":"light",addListener(e){let t=i.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},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}")),void 0!==r&&(e.nonce=r),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return i})({preventTransition:s,nonce:l?.nonce}),[s,l?.nonce]),v="system"!==o||c?c:h,b=(0,n7.useCallback)(e=>{let t="system"===e?f():e;d(t),m("dark"===t),g(t),a.set(t)},[a,f,m,g]);oo(()=>{"system"===o&&p(f())},[]),(0,n7.useEffect)(()=>{let e=a.get();if(e){b(e);return}if("system"===o){b("system");return}b(u)},[a,u,o,b]);let w=(0,n7.useCallback)(()=>{b("dark"===v?"light":"dark")},[v,b]);(0,n7.useEffect)(()=>{if(n)return y(b)},[n,y,b]);let _=(0,n7.useMemo)(()=>({colorMode:t??v,toggleColorMode:t?on:w,setColorMode:t?on:b,forced:void 0!==t}),[v,w,b,t]);return(0,i.jsx)(oe.kc.Provider,{value:_,children:r})};oa.displayName="ColorModeProvider";var ol=r(917);let ou=String.raw,oc=ou`
31  :root,
32  :host {
33    --chakra-vh: 100vh;
34  }
35
36  @supports (height: -webkit-fill-available) {
37    :root,
38    :host {
39      --chakra-vh: -webkit-fill-available;
40    }
41  }
42
43  @supports (height: -moz-fill-available) {
44    :root,
45    :host {
46      --chakra-vh: -moz-fill-available;
47    }
48  }
49
50  @supports (height: 100dvh) {
51    :root,
52    :host {
53      --chakra-vh: 100dvh;
54    }
55  }
56`,od=()=>(0,i.jsx)(ol.xB,{styles:oc}),oh=({scope:e=""})=>(0,i.jsx)(ol.xB,{styles:ou`
57      html {
58        line-height: 1.5;
59        -webkit-text-size-adjust: 100%;
60        font-family: system-ui, sans-serif;
61        -webkit-font-smoothing: antialiased;
62        text-rendering: optimizeLegibility;
63        -moz-osx-font-smoothing: grayscale;
64        touch-action: manipulation;
65      }
66
67      body {
68        position: relative;
69        min-height: 100%;
70        margin: 0;
71        font-feature-settings: "kern";
72      }
73
74      ${e} :where(*, *::before, *::after) {
75        border-width: 0;
76        border-style: solid;
77        box-sizing: border-box;
78        word-wrap: break-word;
79      }
80
81      main {
82        display: block;
83      }
84
85      ${e} hr {
86        border-top-width: 1px;
87        box-sizing: content-box;
88        height: 0;
89        overflow: visible;
90      }
91
92      ${e} :where(pre, code, kbd,samp) {
93        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
94        font-size: 1em;
95      }
96
97      ${e} a {
98        background-color: transparent;
99        color: inherit;
100        text-decoration: inherit;
101      }
102
103      ${e} abbr[title] {
104        border-bottom: none;
105        text-decoration: underline;
106        -webkit-text-decoration: underline dotted;
107        text-decoration: underline dotted;
108      }
109
110      ${e} :where(b, strong) {
111        font-weight: bold;
112      }
113
114      ${e} small {
115        font-size: 80%;
116      }
117
118      ${e} :where(sub,sup) {
119        font-size: 75%;
120        line-height: 0;
121        position: relative;
122        vertical-align: baseline;
123      }
124
125      ${e} sub {
126        bottom: -0.25em;
127      }
128
129      ${e} sup {
130        top: -0.5em;
131      }
132
133      ${e} img {
134        border-style: none;
135      }
136
137      ${e} :where(button, input, optgroup, select, textarea) {
138        font-family: inherit;
139        font-size: 100%;
140        line-height: 1.15;
141        margin: 0;
142      }
143
144      ${e} :where(button, input) {
145        overflow: visible;
146      }
147
148      ${e} :where(button, select) {
149        text-transform: none;
150      }
151
152      ${e} :where(
153          button::-moz-focus-inner,
154          [type="button"]::-moz-focus-inner,
155          [type="reset"]::-moz-focus-inner,
156          [type="submit"]::-moz-focus-inner
157        ) {
158        border-style: none;
159        padding: 0;
160      }
161
162      ${e} fieldset {
163        padding: 0.35em 0.75em 0.625em;
164      }
165
166      ${e} legend {
167        box-sizing: border-box;
168        color: inherit;
169        display: table;
170        max-width: 100%;
171        padding: 0;
172        white-space: normal;
173      }
174
175      ${e} progress {
176        vertical-align: baseline;
177      }
178
179      ${e} textarea {
180        overflow: auto;
181      }
182
183      ${e}
183 :where([type="checkbox"], [type="radio"]) {
184        box-sizing: border-box;
185        padding: 0;
186      }
187
188      ${e} input[type="number"]::-webkit-inner-spin-button,
189      ${e} input[type="number"]::-webkit-outer-spin-button {
190        -webkit-appearance: none !important;
191      }
192
193      ${e} input[type="number"] {
194        -moz-appearance: textfield;
195      }
196
197      ${e} input[type="search"] {
198        -webkit-appearance: textfield;
199        outline-offset: -2px;
200      }
201
202      ${e} input[type="search"]::-webkit-search-decoration {
203        -webkit-appearance: none !important;
204      }
205
206      ${e} ::-webkit-file-upload-button {
207        -webkit-appearance: button;
208        font: inherit;
209      }
210
211      ${e} details {
212        display: block;
213      }
214
215      ${e} summary {
216        display: list-item;
217      }
218
219      template {
220        display: none;
221      }
222
223      [hidden] {
224        display: none !important;
225      }
226
227      ${e} :where(
228          blockquote,
229          dl,
230          dd,
231          h1,
232          h2,
233          h3,
234          h4,
235          h5,
236          h6,
237          hr,
238          figure,
239          p,
240          pre
241        ) {
242        margin: 0;
243      }
244
245      ${e} button {
246        background: transparent;
247        padding: 0;
248      }
249
250      ${e} fieldset {
251        margin: 0;
252        padding: 0;
253      }
254
255      ${e} :where(ol, ul) {
256        margin: 0;
257        padding: 0;
258      }
259
260      ${e} textarea {
261        resize: vertical;
262      }
263
264      ${e} :where(button, [role="button"]) {
265        cursor: pointer;
266      }
267
268      ${e} button::-moz-focus-inner {
269        border: 0 !important;
270      }
271
272      ${e} table {
273        border-collapse: collapse;
274      }
275
276      ${e} :where(h1, h2, h3, h4, h5, h6) {
277        font-size: inherit;
278        font-weight: inherit;
279      }
280
281      ${e} :where(button, input, optgroup, select, textarea) {
282        padding: 0;
283        line-height: inherit;
284        color: inherit;
285      }
286
287      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
288        display: block;
289      }
290
291      ${e} :where(img, video) {
292        max-width: 100%;
293        height: auto;
294      }
295
296      [data-js-focus-visible]
297        :focus:not([data-focus-visible-added]):not(
298          [data-focus-visible-disabled]
299        ) {
300        outline: none;
301        box-shadow: none;
302      }
303
304      ${e} select::-ms-expand {
305        display: none;
306      }
307
308      ${oc}
309    `});var op=r(5292),of=r(8554);function om(e,t,r={}){let{stop:i,getKey:n}=r;return function e(r,o=[]){if((0,rM.Kn)(r)||Array.isArray(r)){let s={};for(let[a,l]of Object.entries(r)){let u=n?.(a)??a,c=[...o,u];if(i?.(r,c))return t(r,o);s[u]=e(l,c)}return s}return t(r,o)}(e)}var og=r(7474);let oy=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function ov(e,t){return j(String(e).replace(/\./g,"-"),void 0,t)}var ob=r(2203),ow=r(2110),o_=r(4839),oS=r(2847);function ox(e){let{cssVarsRoot:t,theme:r,children:n}=e,o=(0,n7.useMemo)(()=>(function(e){let t=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:i,...n}=e;return n}(e),{cssMap:r,cssVars:i}=function(e){let t=function(e){let t=function(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}(e,oy),r=e.semanticTokens,i=e=>og._.includes(e)||"default"===e,n={};return om(t,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})}),om(r,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(i)}),n}(e),r=e.config?.cssVarPrefix,i={},n={};for(let[e,o]of Object.entries(t)){let{isSemantic:s,value:a}=o,{variable:l,reference:u}=ov(e,r);if(!s){if(e.startsWith("space")){let[t,...r]=e.split("."),i=`${t}.-${r.join(".")}`,o=iN.negate(a),s=iN.negate(u);n[i]={value:o,var:l,varRef:s}}i[l]=a,n[e]={value:a,var:l,varRef:u};continue}i=of(i,Object.entries((0,rM.Kn)(a)?a:{default:a}).reduce((i,[n,o])=>{if(!o)return i;let s=function(e,i){let n=[String(e).split(".")[0],i].join(".");if(!t[n])return i;let{reference:o}=ov(n,r);return o}(e,`${o}`);return"default"===n?i[l]=s:i[og.v?.[n]??n]={[l]:s},i},{})),n[e]={value:u,var:l,varRef:u}}return{cssVars:i,cssMap:n}}(t);return Object.assign(t,{__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",...i},__cssMap:r,__breakpoints:(0,op.y)(t.breakpoints)}),t})(r),[r]);return(0,i.jsxs)(n9.a,{theme:o,children:[(0,i.jsx)(ok,{root:t}),n]})}function ok({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,i.jsx)(ol.xB,{styles:e=>({[t]:e.__cssVars})})}let[oC,oE]=(0,ow.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function oA(){let{colorMode:e}=(0,oe.If)();return(0,i.jsx)(ol.xB,{styles:t=>{let r=(0,o_.W)(t,"styles.global"),i=(0,oS.P)(r,{theme:t,colorMode:e});if(i)return(0,ob.i)(i)(t)}})}let[oI,oO]=(0,ow.k)({strict:!1,name:"PortalManagerContext"});function oT(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(oI,{value:{zIndex:r},children:t})}oT.displayName="PortalManager";let oM=(0,n7.createContext)({getDocument:()=>document,getWindow:()=>window});function oP(e){let{children:t,environment:r,disabled:n}=e,o=(0,n7.useRef)(null),s=(0,n7.useMemo)(()=>r||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[r]),a=!n||!r;return(0,i.jsxs)(oM.Provider,{value:s,children:[t,a&&(0,i.jsx)("span",{id:"__chakra_env",hidden:!0,ref:o})]})}oM.displayName="EnvironmentContext",oP.displayName="EnvironmentProvider";let oR=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:s=!0,theme:a={},environment:l,cssVarsRoot:u,disableEnvironment:c,disableGlobalStyle:d}
309=e,h=(0,i.jsx)(oP,{environment:l,disabled:c,children:t});return(0,i.jsx)(ox,{theme:a,cssVarsRoot:u,children:(0,i.jsxs)(oa,{colorModeManager:r,options:a.config,children:[s?(0,i.jsx)(oh,{scope:o}):(0,i.jsx)(od,{}),!d&&(0,i.jsx)(oA,{}),n?(0,i.jsx)(oT,{zIndex:n,children:h}):h]})})};var oD=r(3114);let oj=(e,t)=>{let r=(0,n7.useRef)(!1),i=(0,n7.useRef)(!1);(0,n7.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,n7.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])};var oL=r(5372),oF=r(5947),oN=r(607);let oz=(e,t)=>e.find(e=>e.id===t);function oB(e,t){let r=oU(e,t),i=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:i}}function oU(e,t){for(let[r,i]of Object.entries(e))if(oz(i,t))return r}var o$=r(7430);let oV={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",i=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(i=1),{opacity:0,[r]:24*i}},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]}}},oW=(0,n7.memo)(e=>{let{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:s=!1,position:a="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=oV,toastSpacing:d="0.5rem"}=e,[h,p]=(0,n7.useState)(l),f=(0,oF.hO)();oj(()=>{f||n?.()},[f]),oj(()=>{p(l)},[l]);let m=()=>{f&&o()};(0,n7.useEffect)(()=>{f&&s&&o()},[f,s,o]),function(e,t){let r=(0,oL.W)(e);(0,n7.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(m,h);let g=(0,n7.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),y=(0,n7.useMemo)(()=>(function(e){let t=e.includes("right"),r=e.includes("left"),i="center";return t&&(i="flex-end"),r&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}})(a),[a]);return(0,i.jsx)(oN.E.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(l),custom:{position:a},style:y,children:(0,i.jsx)(o$.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:(0,oS.P)(r,{id:t,onClose:m})})})});oW.displayName="ToastComponent";var oG=r(5544),oH=r(4926),oK=r(2553);function oq(e){return(0,i.jsx)(oK.J,{viewBox:"0 0 24 24",...e,children:(0,i.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 oY=r(8899);let[oX,oJ]=(0,ow.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[oZ,oQ]=(0,ow.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),o0={info:{icon:function(e){return(0,i.jsx)(oK.J,{viewBox:"0 0 24 24",...e,children:(0,i.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:oq,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(oK.J,{viewBox:"0 0 24 24",...e,children:(0,i.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:oq,colorScheme:"red"},loading:{icon:oY.$,colorScheme:"blue"}};var o1=r(8207),o2=r(9381);let o5=(0,o2.G)(function(e,t){let{status:r="info",addRole:n=!0,...o}=(0,oG.L)(e),s=e.colorScheme??o0[r].colorScheme,a=(0,o1.j)("Alert",{...e,colorScheme:s}),l=(0,T.k0)({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container});return(0,i.jsx)(oX,{value:{status:r},children:(0,i.jsx)(oZ,{value:a,children:(0,i.jsx)(o$.m.div,{"data-status":r,role:n?"alert":void 0,ref:t,...o,className:(0,oH.cx)("chakra-alert",e.className),__css:l})})})});function o3(e){let{status:t}=oJ(),r=o0[t].icon,n=oQ(),o="loading"===t?n.spinner:n.icon;return(0,i.jsx)(o$.m.span,{display:"inherit","data-status":t,...e,className:(0,oH.cx)("chakra-alert__icon",e.className),__css:o,children:e.children||(0,i.jsx)(r,{h:"100%",w:"100%"})})}o5.displayName="Alert",o3.displayName="AlertIcon";let o4=(0,o2.G)(function(e,t){let r=oQ(),{status:n}=oJ();return(0,i.jsx)(o$.m.div,{ref:t,"data-status":n,...e,className:(0,oH.cx)("chakra-alert__title",e.className),__css:r.title})});o4.displayName="AlertTitle";let o6=(0,o2.G)(function(e,t){let{status:r}=oJ(),n=oQ(),o=(0,T.k0)({display:"inline",...n.description});return(0,i.jsx)(o$.m.div,{ref:t,"data-status":r,...e,className:(0,oH.cx)("chakra-alert__desc",e.className),__css:o})});function o8(e){return(0,i.jsx)(oK.J,{focusable:"false","aria-hidden":!0,...e,children:(0,i.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,
30911.823a.25.25,0,0,1,0,.354Z"})})}o6.displayName="AlertDescription";let o9=(0,o2.G)(function(e,t){let r=(0,o1.m)("CloseButton",e),{children:n,isDisabled:o,__css:s,...a}=(0,oG.L)(e);return(0,i.jsx)(o$.m.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...s},...a,children:n||(0,i.jsx)(o8,{width:"1em",height:"1em"})})});o9.displayName="CloseButton";let o7=e=>{let{status:t,variant:r="solid",id:n,title:o,isClosable:s,onClose:a,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,i.jsxs)(o5,{addRole:!1,status:t,variant:r,id:d?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[(0,i.jsx)(o3,{children:c}),(0,i.jsxs)(o$.m.div,{flex:"1",maxWidth:"100%",children:[o&&(0,i.jsx)(o4,{id:d?.title,children:o}),l&&(0,i.jsx)(o6,{id:d?.description,display:"block",children:l})]}),s&&(0,i.jsx)(o9,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})},se=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={}){st+=1;let r=t.id??st,i=t.position??"bottom";return{id:r,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>se.removeToast(String(r),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n(e=>{let t=i.includes("top")?[r,...e[i]??[]]:[...e[i]??[],r];return{...e,[i]:t}}),o},update:(e,t)=>{e&&n(r=>{let n={...r},{position:o,index:s}=oB(n,e);return o&&-1!==s&&(n[o][s]={...n[o][s],...t,message:function(e={}){let{render:t,toastComponent:r=o7}=e;return n=>"function"==typeof t?t({...n,...e}):(0,i.jsx)(r,{...n,...e})}(t)}),n})},closeAll:({positions:e}={})=>{n(t=>(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=oU(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!oB(se.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),st=0;var sr=r(4097),si=r(3935);let[sn,so]=(0,ow.k)({strict:!1,name:"PortalContext"}),ss="chakra-portal",sa=e=>(0,i.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),sl=e=>{let{appendToParentPortal:t,children:r}=e,[n,o]=(0,n7.useState)(null),s=(0,n7.useRef)(null),[,a]=(0,n7.useState)({});(0,n7.useEffect)(()=>a({}),[]);let l=so(),u=oO();(0,sr.G)(()=>
309{if(!n)return;let e=n.ownerDocument,r=t?l??e.body:e.body;if(!r)return;s.current=e.createElement("div"),s.current.className=ss,r.appendChild(s.current),a({});let i=s.current;return()=>{r.contains(i)&&r.removeChild(i)}},[n]);let c=u?.zIndex?(0,i.jsx)(sa,{zIndex:u?.zIndex,children:r}):r;return s.current?(0,si.createPortal)((0,i.jsx)(sn,{value:s.current,children:c}),s.current):(0,i.jsx)("span",{ref:e=>{e&&o(e)}})},su=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,s=o??("undefined"!=typeof window?document.body:void 0),a=(0,n7.useMemo)(()=>{let e=o?.ownerDocument.createElement("div");return e&&(e.className=ss),e},[o]),[,l]=(0,n7.useState)({});return((0,sr.G)(()=>l({}),[]),(0,sr.G)(()=>{if(a&&s)return s.appendChild(a),()=>{s.removeChild(a)}},[a,s]),s&&a)?(0,si.createPortal)((0,i.jsx)(sn,{value:n?a:null,children:t}),a):null};function sc(e){let{containerRef:t,...r}={appendToParentPortal:!0,...e};return t?(0,i.jsx)(su,{containerRef:t,...r}):(0,i.jsx)(sl,{...r})}sc.className=ss,sc.selector=".chakra-portal",sc.displayName="Portal";let[sd,sh]=(0,ow.k)({name:"ToastOptionsContext",strict:!1}),sp=e=>{let t=(0,n7.useSyncExternalStore)(se.subscribe,se.getState,se.getState),{motionVariants:r,component:n=oW,portalProps:o,animatePresenceProps:s}=e,a=Object.keys(t).map(e=>{let o=t[e];return(0,i.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,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",n=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:i,left:n}}(e),children:(0,i.jsx)(oD.M,{...s,initial:!1,children:o.map(e=>(0,i.jsx)(n,{motionVariants:r,...e},e.id))})},e)});return(0,i.jsx)(sc,{...o,children:a})},sf=function({children:e,theme:t=n6,toastOptions:r,...n}){return(0,i.jsxs)(oR,{theme:t,...n,children:[(0,i.jsx)(sd,{value:r?.defaultOptions,children:e}),(0,i.jsx)(sp,{...r})]})};r(9166);let sm=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function sg(e){return"function"==typeof e}let sy=e=>function(...t){var r;let i=[...t],n=t[t.length-1];return(r=n,(0,rM.Kn)(r)&&sm.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&i.length>1)?i=i.slice(0,i.length-1):n=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...i.map(e=>t=>sg(e)?e(t):sb(t,e)))(n)},sv=sy(n6);function sb(...e){return of({},...e,sw)}function sw(e,t,r,i){return(sg(e)||sg(t))&&Object.prototype.hasOwnProperty.call(i,r)?(...r)=>of({},sg(e)?e(...r):e,sg(t)?t(...r):t,sw):(0,rM.Kn)(e)&&(0,rM.kJ)(t)||(0,rM.kJ)(e)&&(0,rM.Kn)(t)?t:void 0}sy(n8);let s_=sv({colors:{primary:{50:"#ECF3FF",100:"#23A2DE",200:"#2C51ED",300:"#2C54ED"},blue:{50:"#2C54ED",100:"#3351D6",200:"#3351D633",300:"#F1F4FC"},background:{100:"#f8f9ff"},gray:{0:"#F6F8FC",50:"#0F18211A",100:"#FAFBFE",150:"#F8F9FC",200:"#0F1821",300:"#475467",400:"#EDF0FB",500:"#50586180"},grayBlack:{10:"#202939"},gradient:{50:"#D9D9D9",100:"#dee5f9",200:"#c7d6f5",300:"#f2f7fd",400:"#efeaec"},black:{100:"#101828",200:"#0F1821",300:"#263B50",600:" #0F182199"},newPrimary:{100:"#FFECF4",200:"#FD1774",300:"#E90074"},newSecondary:{100:"#F2F1FF",200:"#CDC9FF",300:"#7A5AF8"},bg:{100:"#000000",200:"#FFEDED",400:"#F1E9FB"},border:{400:"#00000026"}},components:{Input:{variants:{outline:{field:{border:"1px solid",borderWidth:"1px"}}}},Select:{variants:{outline:{field:{border:"1px solid",borderWidth:"1px",_hover:{borderColor:"primary.900"}}}}}}},function({defaultProps:{colorScheme:e,variant:t,size:r},components:i}){let n=e=>e,o=[e?function({colorScheme:e,components:t}){return r=>{let i=Object.keys(r.components||{});return Array.isArray(t)?i=t:(0,rM.Kn)(t)&&(i=Object.keys(t)),sb(r,{components:Object.fromEntries(i.map(t=>[t,{defaultProps:{colorScheme:e}}]))})}}({colorScheme:e,components:i}):n,r?function({size:e,components:t}){return r=>{let i=Object.keys(r.components||{});return Array.isArray(t)?i=t:(0,rM.Kn)(t)&&(i=Object.keys(t)),sb(r,{components:Object.fromEntries(i.map(t=>[t,{defaultProps:{size:e}}]))})}}({size:r,components:i}):n,t?function({variant:e,components:t}){return r=>{let i=Object.keys(r.components||{});return Array.isArray(t)?i=t:(0,rM.Kn)(t)&&(i=Object.keys(t)),sb(r,{components:Object.fromEntries(i.map(t=>[t,{defaultProps:{variant:e}}]))})}}({variant:t,components:i}):n];return e=>sb((function(...e){return t=>e.reduce((e,t)=>
309t(e),t)})(...o)(e))}({defaultProps:{variant:"outline",size:"lg",focusBorderColor:"primary.900",borderWidth:"1px"},components:["Input","NumberInput","PinInput","Button","Select"]}));var sS=r(2459),sx=r.n(sS),sk=r(8960),sC=r.n(sk),sE=r(2711),sA=r.n(sE);r(8602);var sI=e=>{let{children:t}=e;return(0,n7.useEffect)(()=>{sA().init({easing:"ease-out-quad",duration:1e3})},[]),(0,i.jsx)(i.Fragment,{children:t})},sO=r(1069),sT=r(2566),sM=r(909),sP=r(9692),sR=r(4298),sD=r.n(sR),sj=r(1163),sL=r(2658),sF=r(7133);function sN(){let[e,t]=(0,n7.useState)(!1);return((0,n7.useEffect)(()=>{window.location.hostname===sL.X&&t(!0)},[]),e)?(0,i.jsx)(sP.GoogleTagManager,{gtmId:"GTM-55XDDNCS"}):null}function sz(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(sD(),{id:"meta-pixel-base",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n            !function(f,b,e,v,n,t,s){\n            if(typeof location!=="undefined"&&location.hostname!=="'.concat(sL.X,"\")return;\n            if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n            n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n            if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n            n.queue=[];t=b.createElement(e);t.async=!0;\n            t.src=v;s=b.getElementsByTagName(e)[0];\n            s.parentNode.insertBefore(t,s);\n            n('init', '1251527982841689');\n            n('track', 'PageView');\n            }(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');\n          ")}}),(0,i.jsx)(sx(),{}),(0,i.jsx)(sN,{})]})}function sB(e){let{Component:t,pageProps:r}=e,n=(0,sj.useRouter)(),o=(0,sF.lk)(n.pathname);(0,n7.useEffect)(()=>{let e=()=>{if(window.location.hostname!==sL.X)return;let e=new URLSearchParams(window.location.search).get("fbclid");if(e&&"undefined"!=typeof sessionStorage){let t="fb.2.".concat(Date.now(),".").concat(e);sessionStorage.setItem("fb_fbc_fallback",t)}},t=!0;e();let r=()=>{if(e(),window.location.hostname!==sL.X)return;let r=window.fbq;if(r){if(t){t=!1;return}r("track","PageView")}};return n.events.on("routeChangeComplete",r),()=>n.events.off("routeChangeComplete",r)},[n.events]);let s=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(sz,{}),(0,i.jsx)(t,{...r})]});return(0,i.jsx)(sO.StatsigProvider,{sdkKey:"".concat("client-SrX9el6DbtbgWQys8ZUlgHewlWPFk6KByjtaqjQeKHD"),user:{userID:"user-id"},options:{plugins:[new sT.Hq,new sM.cb]},children:o?s:(0,i.jsx)(sf,{theme:s_,children:(0,i.jsx)(sI,{children:(0,i.jsx)("div",{className:sC().className,children:s})})})})}},7133:function(e,t,r){"use strict";r.d(t,{lk:function(){return o},s:function(){return i}});let i=JSON.parse('{"home":{"path":"/","title":"Alethian | Conversational EHR for Modern Practices","description":"Connect patient records, AI documentation, intake, communications, and billing in one conversational EHR. Explore Alethian for your practice.","canonical":"https://www.alethian.com/","ogTitle":"Alethian | Conversational EHR for Modern Practices","ogDescription":"Connect patient records, AI documentation, intake, communications, and billing in one conversational EHR. Explore Alethian for your practice.","bodyClass":"","css":["/styles.css","/hero-workflow.css","/hero-preview-frame.css","/overview.css","/audit-accessibility.css"],"js":["/app.js","/blood-tests.js","/hero-portraits.js","/hero-workflow.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@graph\\": [{\\"@type\\": \\"Organization\\", \\"@id\\": \\"https://www.alethian.com/#organization\\", \\"name\\": \\"Alethian\\", \\"url\\": \\"https://www.alethian.com/\\", \\"logo\\": \\"https://www.alethian.com/assets/seo-logo.png\\"}, {\\"@type\\": \\"WebSite\\", \\"@id\\": \\"https://www.alethian.com/#website\\", \\"name\\": \\"Alethian\\", \\"url\\": \\"https://www.alethian.com/\\", \\"publisher\\": {\\"@id\\": \\"https://www.alethian.com/#organization\\"}}, {\\"@type\\": \\"SoftwareApplication\\", \\"@id\\": \\"https://www.alethian.com/#software\\", \\"name\\": \\"Alethian\\", \\"url\\": \\"https://www.alethian.com/\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"description\\": \\"Connect patient records, AI documentation, intake, communications, and billing in one conversational EHR. Explore Alethian for your practice.\\", \\"publisher\\": {\\"@id\\": \\"https://www.alethian.com/#organization\\"}}]}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/#webpage\\", \\"url\\": \\"https://www.alethian.com/\\", \\"name\\": \\"Alethian | 
309Conversational EHR for Modern Practices\\", \\"description\\": \\"Connect patient records, AI documentation, intake, communications, and billing in one conversational EHR. Explore Alethian for your practice.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}"],"headStyles":[".hero-provider{mix-blend-mode:multiply}"],"htmlFile":"home"},"about":{"path":"/about/","title":"About Us | Healthcare & Technology Team | Alethian","description":"Meet the healthcare and technology team behind Alethian and our mission to simplify practice operations and enhance patient care.","canonical":"https://www.alethian.com/about/","ogTitle":"About Us | Healthcare & Technology Team | Alethian","ogDescription":"Meet the healthcare and technology team behind Alethian and our mission to simplify practice operations and enhance patient care.","bodyClass":"","css":["/styles.css","/about.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"AboutPage\\", \\"@id\\": \\"https://www.alethian.com/about/#webpage\\", \\"url\\": \\"https://www.alethian.com/about/\\", \\"name\\": \\"About Us | Healthcare & Technology Team | Alethian\\", \\"description\\": \\"Meet the healthcare and technology team behind Alethian and our mission to simplify practice operations and enhance patient care.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"About Us\\", \\"item\\": \\"https://www.alethian.com/about/\\"}]}"],"headStyles":[],"htmlFile":"about"},"privacy":{"path":"/about/privacy-policy/","title":"Privacy Policy | Alethian","description":"Read Alethian’s Privacy Policy, effective July 24, 2024.","canonical":"https://www.alethian.com/about/privacy-policy/","ogTitle":"Privacy Policy | Alethian","ogDescription":"Read Alethian’s Privacy Policy, effective July 24, 2024.","bodyClass":"legal-page","css":["/styles.css","/legal.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/about/privacy-policy/#webpage\\", \\"url\\": \\"https://www.alethian.com/about/privacy-policy/\\", \\"name\\": \\"Privacy Policy | Alethian\\", \\"description\\": \\"Read Alethian\\\\u2019s Privacy Policy, effective July 24, 2024.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"Privacy Policy\\", \\"item\\": \\"https://www.alethian.com/about/privacy-policy/\\"}]}"],"headStyles":[],"htmlFile":"privacy"},"terms":{"path":"/about/terms-of-use/","title":"Terms of Use | Alethian","description":"Read Alethian’s Terms of Use, effective July 24, 2024.","canonical":"https://www.alethian.com/about/terms-of-use/","ogTitle":"Terms of Use | Alethian","ogDescription":"Read Alethian’s Terms of Use, effective July 24, 2024.","bodyClass":"legal-page","css":["/styles.css","/legal.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/about/terms-of-use/#webpage\\", \\"url\\": \\"https://www.alethian.com/about/terms-of-use/\\", \\"name\\": \\"Terms of Use | Alethian\\", \\"description\\": \\"Read Alethian\\\\u2019s Terms of Use, effective July 24, 2024.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"Terms of Use\\", \\"item\\": \\"https://www.alethian.com/about/terms-of-use/\\"}]}"],"headStyles":[],"htmlFile":"terms"},"ai":{"path":"/ai/","title":"AI Live Scribe | Clinical Notes & Encounter Workflows | Alethian","description":"Capture clinical notes, CPT and ICD-10 codes, lab orders, and refill requests in one window. Review and sign off with Alethian AI Live Scribe.","canonical":"https://www.alethian.com/ai/","ogTitle":"AI Live Scribe | Clinical Notes & Encounter Workflows | Alethian","ogDescription":"Capture clinical notes, CPT and ICD-10 codes, lab orders, and refill requests in one window. Review and sign off with Alethian AI Live Scribe.","bodyClass":"scribe-page","css":["/styles.css","/scribe.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js","/scribe.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian AI Live Scribe\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/ai/\\", \\"description\\": \\"Capture clinical notes, CPT and ICD-10 codes, lab orders, and refill requests in one window. Review and sign off with Alethian AI Live Scribe.\\", \\"publisher\\": {\\"@type\\": \\"Organization\\", \\"name\\": \\"Alethian\\", \\"url\\": \\"https://www.alethian.com/\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/ai/#webpage\\", \\"url\\": \\"https://www.alethian.com/ai/\\", \\"name\\": \\"AI Live Scribe | Clinical Notes & Encounter Workflows | Alethian\\", \\"description\\": \\"Capture clinical notes, CPT and ICD-10 codes, lab orders, and refill requests in one window. Review and sign off with Alethian AI Live Scribe.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"AI Live Scribe\\", \\"item\\": \\"https://www.alethian.com/ai/\\"}]}"],"headStyles":[],"htmlFile":"ai"},"efax":{"path":"/ai-efax/","title":"AI eFax | Fax Processing & Workflow Automation | Alethian","description":"Extract incoming fax details, connect documents to patient charts, and automate clinic workflows. Send faxes and emails with customized templates.","canonical":"https://www.alethian.com/ai-efax/","ogTitle":"AI eFax | Fax Processing & Workflow Automation | Alethian","ogDescription":"Extract incoming fax details, connect documents to patient charts, and automate clinic workflows. Send faxes and emails with customized templates.","bodyClass":"","css":["/styles.css","/agents.css","/channel-features.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian AI eFax\\", \\"description\\": \\"Extract incoming fax details, connect documents to patient charts, and automate clinic workflows. Send faxes and emails with customized templates.\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/ai-efax/\\"}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/ai-efax/#webpage\\", \\"url\\": \\"https://www.alethian.com/ai-efax/\\", \\"name\\": \\"AI eFax | Fax Processing & Workflow Automation | Alethian\\", \\"description\\": \\"Extract incoming fax details, connect documents to patient charts, and automate clinic workflows. Send faxes and emails with customized templates.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"AI eFax\\", \\"item\\": \\"https://www.alethian.com/ai-efax/\\"}]}"],"headStyles":[],"htmlFile":"efax"},"rcm":{"path":"/ai-rcm/","title":"AI RCM | Claim Scrubbing & Patient Balances | Alethian","description":"Take AI Live Scribe codes into claim scrubbing, reimbursement, and patient balance workflows. Reduce missing information and claim rework with AI RCM.","canonical":"https://www.alethian.com/ai-rcm/","ogTitle":"AI RCM | Claim Scrubbing & Patient Balances | Alethian","ogDescription":"Take AI Live Scribe codes into claim scrubbing, reimbursement, and patient balance workflows. Reduce missing information and claim rework with AI RCM.","bodyClass":"","css":["/styles.css","/agents.css","/rcm.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian AI RCM\\", \\"description\\": \\"Take AI Live Scribe codes into claim scrubbing, reimbursement, and patient balance workflows. Reduce missing information and claim rework with AI RCM.\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/ai-rcm/\\"}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/ai-rcm/#webpage\\", \\"url\\": \\"https://www.alethian.com/ai-rcm/\\", \\"name\\": \\"AI RCM | Claim Scrubbing & Patient Balances | Alethian\\", \\"description\\": \\"Take AI Live Scribe codes into claim scrubbing, reimbursement, and patient balance workflows. Reduce missing information and claim rework with AI RCM.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"AI RCM\\", \\"item\\": \\"https://www.alethian.com/ai-rcm/\\"}]}"],"headStyles":[],"htmlFile":"rcm"},"receptionist":{"path":"/ai-receptionist/","title":"AI Receptionist | Scheduling & Patient 
309Calls | Alethian","description":"Answer clinic questions, verify patient identity, book appointments, and handle refill requests by voice with Alethian AI Receptionist.","canonical":"https://www.alethian.com/ai-receptionist/","ogTitle":"AI Receptionist | Scheduling & Patient Calls | Alethian","ogDescription":"Answer clinic questions, verify patient identity, book appointments, and handle refill requests by voice with Alethian AI Receptionist.","bodyClass":"","css":["/styles.css","/agents.css","/channel-features.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian AI Receptionist\\", \\"description\\": \\"Answer clinic questions, verify patient identity, book appointments, and handle refill requests by voice with Alethian AI Receptionist.\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/ai-receptionist/\\"}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/ai-receptionist/#webpage\\", \\"url\\": \\"https://www.alethian.com/ai-receptionist/\\", \\"name\\": \\"AI Receptionist | Scheduling & Patient Calls | Alethian\\", \\"description\\": \\"Answer clinic questions, verify patient identity, book appointments, and handle refill requests by voice with Alethian AI Receptionist.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"AI Receptionist\\", \\"item\\": \\"https://www.alethian.com/ai-receptionist/\\"}]}"],"headStyles":[],"htmlFile":"receptionist"},"sms":{"path":"/ai-sms/","title":"AI SMS | Automated Patient Text Messaging | Alethian","description":"Categorize incoming patient texts, apply clinic workflows, and automate outgoing follow-up with AI SMS in Alethian Communication Hub.","canonical":"https://www.alethian.com/ai-sms/","ogTitle":"AI SMS | Automated Patient Text Messaging | Alethian","ogDescription":"Categorize incoming patient texts, apply clinic workflows, and automate outgoing follow-up with AI SMS in Alethian Communication Hub.","bodyClass":"","css":["/styles.css","/agents.css","/channel-features.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian AI SMS\\", \\"description\\": \\"Categorize incoming patient texts, apply clinic workflows, and automate outgoing follow-up with AI SMS in Alethian Communication Hub.\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/ai-sms/\\"}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/ai-sms/#webpage\\", \\"url\\": \\"https://www.alethian.com/ai-sms/\\", \\"name\\": \\"AI SMS | Automated Patient Text Messaging | Alethian\\", \\"description\\": \\"Categorize incoming patient texts, apply clinic workflows, and automate outgoing follow-up with AI SMS in Alethian Communication Hub.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"AI SMS\\", \\"item\\": \\"https://www.alethian.com/ai-sms/\\"}]}"],"headStyles":[],"htmlFile":"sms"},"hub":{"path":"/communication-hub/","title":"Communication Hub | AI Voice, Fax & SMS | Alethian","description":"Automate clinic calls, faxes, and texts with AI Receptionist, AI eFax, and AI SMS. Bring incoming requests and patient follow-up into one workspace.","canonical":"https://www.alethian.com/communication-hub/","ogTitle":"Communication Hub | AI Voice, Fax & SMS | Alethian","ogDescription":"Automate clinic calls, faxes, and texts with AI Receptionist, AI eFax, and AI SMS. Bring incoming requests and patient follow-up into one workspace.","bodyClass":"hub-page","css":["/styles.css","/communication-hub.css","/channel-features.css","/hub-channel-demo.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js","/hub-channel-demo.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian Communication Hub\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"description\\": \\"Automate clinic calls, faxes, and texts with AI Receptionist, AI eFax, and AI SMS. Bring incoming requests and patient follow-up into one workspace.\\", \\"url\\": \\"https://www.alethian.com/communication-hub/\\", \\"publisher\\": {\\"@type\\": \\"Organization\\", \\"name\\": \\"Alethian\\", \\"url\\": \\"https://www.alethian.com/\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/communication-hub/#webpage\\", \\"url\\": \\"https://www.alethian.com/communication-hub/\\", \\"name\\": \\"Communication Hub | AI Voice, Fax & SMS | Alethian\\", \\"description\\": \\"Automate clinic calls, faxes, and texts with AI Receptionist, AI eFax, and AI SMS. Bring incoming requests and patient follow-up into one workspace.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"Communication Hub\\", \\"item\\": \\"https://www.alethian.com/communication-hub/\\"}]}"],"headStyles":[],"htmlFile":"hub"},"contact":{"path":"/contact/","title":"Book a Demo | Contact Alethian","description":"Request a personalized Alethian demo. Explore conversational EHR, AI Live Scribe, patient intake, communications, and revenue cycle automation for your clinic.","canonical":"https://www.alethian.com/contact/","ogTitle":"Book a Demo | Contact Alethian","ogDescription":"Request a personalized Alethian demo. Explore conversational EHR, AI Live Scribe, patient intake, communications, and revenue cycle automation for your clinic.","bodyClass":"","css":["/styles.css","/contact.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"ContactPage\\", \\"url\\": \\"https://www.alethian.com/contact/\\", \\"name\\": \\"Contact Alethian\\", \\"description\\": \\"Request a personalized Alethian demo. Explore conversational EHR, AI Live Scribe, patient intake, communications, and revenue cycle automation for your clinic.\\"}"],"headStyles":[],"htmlFile":"contact"},"intake":{"path":"/patient-intake/","title":"Patient Intake | Custom Forms, AI HPI & Eligibility | Alethian","description":"Customize intake forms and documents. Parse insurance and ID cards, check eligibility, collect AI HPI and copays, and track patient readiness.","canonical":"https://www.alethian.com/patient-intake/","ogTitle":"Patient Intake | Custom Forms, AI HPI & Eligibility | Alethian","ogDescription":"Customize intake forms and documents. Parse insurance and ID cards, check eligibility, collect AI HPI and copays, and track patient readiness.","bodyClass":"","css":["/styles.css","/agents.css","/rcm.css","/intake.css","/hero-preview-frame.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":["{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"SoftwareApplication\\", \\"name\\": \\"Alethian Patient Intake\\", \\"description\\": \\"Customize intake forms and documents. Parse insurance and ID cards, check eligibility, collect AI HPI and copays, and track patient readiness.\\", \\"applicationCategory\\": \\"HealthApplication\\", \\"url\\": \\"https://www.alethian.com/patient-intake/\\"}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"WebPage\\", \\"@id\\": \\"https://www.alethian.com/patient-intake/#webpage\\", \\"url\\": \\"https://www.alethian.com/patient-intake/\\", \\"name\\": \\"Patient Intake | Custom Forms, AI HPI & Eligibility | Alethian\\", \\"description\\": \\"Customize intake forms and documents. Parse insurance and ID cards, check eligibility, collect AI HPI and copays, and track patient readiness.\\", \\"isPartOf\\": {\\"@id\\": \\"https://www.alethian.com/#website\\"}}","{\\"@context\\": \\"https://schema.org\\", \\"@type\\": \\"BreadcrumbList\\", \\"itemListElement\\": [{\\"@type\\": \\"ListItem\\", \\"position\\": 1, \\"name\\": \\"Home\\", \\"item\\": \\"https://www.alethian.com/\\"}, {\\"@type\\": \\"ListItem\\", \\"position\\": 2, \\"name\\": \\"Patient Intake\\", \\"item\\": \\"https://www.alethian.com/patient-intake/\\"}]}"],"headStyles":[],"htmlFile":"intake"},"notFound":{"path":"/404/","title":"Page not found | Alethian","description":"This page isn’t here. Return to the Alethian homepage or explore AI Live Scribe, Communication Hub, and other product pages.","canonical":"","ogTitle":"Page not found | Alethian","ogDescription":"This page isn’t here. Return to the Alethian homepage or explore AI Live Scribe, Communication Hub, and other product pages.","bodyClass":"","css":["/styles.css","/not-found.css","/audit-accessibility.css"],"js":["/legal.js"],"jsonLd":[],"headStyles":[],"htmlFile":"not-found","robots":"noindex, follow"}}'),n=new Set(["/","/about","/about/privacy-policy","/about/terms-of-use","/ai","/ai-efax","/ai-rcm","/ai-receptionist","/ai-sms","/communication-hub","/patient-intake","/contact","/404"]);function o(e){return n.has(e)}},2658:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});let i="www.alethian.com"},8602:function(){},9166:function(){},8960:function(e){e.exports={style:{fontFamily:"'__GeistSans_fb8f2c', '__GeistSans_Fallback_fb8f2c'"},className:"__className_fb8f2c",variable:"__variable_fb8f2c"}},7663:function(e){!function(){var t={229:function(e){var t,r,i,n=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
309catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&i&&(u=!1,i.length?l=i.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(i=l,l=[];++c<t;)i&&i[c].run();c=-1,t=l.length}i=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}n.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 p(e,t)),1!==l.length||u||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,i),s=!1}finally{s&&delete r[e]}return o.exports}i.ab="//";var n=i(229);e.exports=n}()},1163:function(e,t,r){e.exports=r(3035)},4298:function(e,t,r){e.exports=r(5874)},2459:function(e,t,r){var i=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>n(e,"name",{value:t,configurable:!0}),c=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of s(t))l.call(e,a)||a===r||n(e,a,{get:()=>t[a],enumerable:!(i=o(t,a))||i.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(a(e)):{},c(!t&&e&&e.__esModule?r:n(r,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(h,{default:()=>y}),e.exports=c(n({},"__esModule",{value:!0}),h);var p=d(r(5697)),f=d(r(7294)),m=d(r(4865)),g=u(({color:e,height:t,showSpinner:r,crawl:i,crawlSpeed:n,initialPosition:o,easing:s,speed:a,shadow:l,template:c,zIndex:d=1600,showAtBottom:h=!1})=>{let p=null!=e?e:"#29d",g=l||void 0===l?l?`box-shadow:${l}`:`box-shadow:0 0 10px ${p},0 0 5px ${p}`:"",y=f.createElement("style",null,`#nprogress{pointer-events:none}#nprogress .bar{background:${p};position:fixed;z-index:${d};${h?"bottom: 0;":"top: 0;"}left:0;width:100%;height:${null!=t?t:3}px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;${g};opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translate(0px,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:${d};${h?"bottom: 15px;":"top: 15px;"}right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:${p};border-left-color:${p};border-radius:50%;-webkit-animation:nprogress-spinner 400ms linear infinite;animation:nprogress-spinner 400ms linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`),v=u(e=>new URL(e,window.location.href).href,"toAbsoluteURL"),b=u((e,t)=>{let r=new URL(v(e)),i=new URL(v(t));return r.href.split("#")[0]===i.href.split("#")[0]},"isHashAnchor"),w=u((e,t)=>{let r=new URL(v(e)),i=new URL(v(t));return r.hostname.replace(/^www\./,"")===i.hostname.replace(/^www\./,"")},"isSameHostName");return f.useEffect(()=>{let e,t;function l(e,t){let r=new URL(e),i=new URL(t);if(r.hostname===i.hostname&&r.pathname===i.pathname&&r.search===i.search){let e=r.hash,t=i.hash;return e!==t&&r.href.replace(e,"")===i.href.replace(t,"")}return!1}m.configure({showSpinner:null==r||r,trickle:null==i||i,trickleSpeed:null!=n?n:200,minimum:null!=o?o:.08,easing:null!=s?s:"ease",speed:null!=a?a:200,template:null!=c?c:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'}
309),u(l,"isAnchorOfCurrentUrl");var d,h,p=document.querySelectorAll("html");let f=u(()=>p.forEach(e=>e.classList.remove("nprogress-busy")),"removeNProgressClass");function g(e){for(;e&&"a"!==e.tagName.toLowerCase();)e=e.parentElement;return e}function y(e){try{let t=e.target,r=g(t),i=null==r?void 0:r.href;if(i){let t=window.location.href,n="_blank"===r.target,o=["tel:","mailto:","sms:","blob:","download:"].some(e=>i.startsWith(e)),s=l(t,i);if(!w(window.location.href,r.href))return;i===t||s||n||o||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||b(window.location.href,r.href)||!v(r.href).startsWith("http")?(m.start(),m.done(),f()):m.start()}}catch(e){m.start(),m.done()}}function _(){m.done(),f()}function S(){m.done()}return u(g,"findClosestAnchor"),u(y,"handleClick"),e=(d=window.history).pushState,d.pushState=(...t)=>(m.done(),f(),e.apply(d,t)),t=(h=window.history).replaceState,h.replaceState=(...e)=>(m.done(),f(),t.apply(h,e)),u(_,"handlePageHide"),u(S,"handleBackAndForth"),window.addEventListener("popstate",S),document.addEventListener("click",y),window.addEventListener("pagehide",_),()=>{document.removeEventListener("click",y),window.removeEventListener("pagehide",_),window.removeEventListener("popstate",S)}},[]),y},"NextTopLoader"),y=g;g.propTypes={color:p.string,height:p.number,showSpinner:p.bool,crawl:p.bool,crawlSpeed:p.number,initialPosition:p.number,easing:p.string,speed:p.number,template:p.string,shadow:p.oneOfType([p.string,p.bool]),zIndex:p.number,showAtBottom:p.bool}},4865:function(e,t,r){var i,n;void 0!==(n="function"==typeof(i=function(){var e,t,r,i={};i.version="0.2.0";var n=i.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,r){return e<t?t:e>r?r:e}i.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(n[t]=r);return this},i.status=null,i.set=function(e){var t=i.isStarted();e=o(e,n.minimum,1),i.status=1===e?null:e;var r=i.render(!t),l=r.querySelector(n.barSelector),u=n.speed,c=n.easing;return r.offsetWidth,s(function(t){var o,s;""===n.positionUsing&&(n.positionUsing=i.getPositioningCSS()),a(l,(o=e,(s="translate3d"===n.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+u+"ms "+c,s)),1===e?(a(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){a(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){i.remove(),t()},u)},u)):setTimeout(t,u)}),this},i.isStarted=function(){return"number"==typeof i.status},i.start=function(){i.status||i.set(0);var e=function(){setTimeout(function(){i.status&&(i.trickle(),e())},n.trickleSpeed)};return n.trickle&&e(),this},i.done=function(e){return e||i.status?i.inc(.3+.5*Math.random()).set(1):this},i.inc=function(e){var t=i.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),i.set(t)):i.start()},i.trickle=function(){return i.inc(Math.random()*n.trickleRate)},e=0,t=0,i.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&i.start(),e++,t++,r.always(function(){0==--t?(e=0,i.done()):i.set((e-t)/e)})),this},i.render=function(e){if(i.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=n.template;var r,o=t.querySelector(n.barSelector),s=e?"-100":(-1+(i.status||0))*100,l=document.querySelector(n.parent);return a(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!n.showSpinner&&(r=t.querySelector(n.spinnerSelector))&&h(r),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},i.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},i.isRendered=function(){return!!document.getElementById("nprogress")},i.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var s=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,i,n){var o;i=t[o=(o=i).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var r=document.body.style;if(t in r)return t;for(var i,n=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);n--;)if((i=e[n]+o)in r)return i;return t}(o)),r.style[i]=n}return function(e,t){var i,n,o=arguments;if(2==o.length)for(i in t)void 0!==(n=t[i])&&t.hasOwnProperty(i)&&r(e,i,n);else r(e,o[1],o[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),i=r+t;l(r,t)||(e.className=i.substring(1))}function c(e,t){var r,i=d(e);l(e,t)&&(r=i.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return i})?i.call(t,r,t,e):i)&&(e.exports=n)},2703:function(e,t,r){"use strict";var i=r(414);function n(){}function o(){}o.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,o,s){if
vendor: 4,871 bytes, lines 309-316
309(s!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},5697:function(e,t,r){e.exports=r(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,n="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,s){if(o===s)return!0;if(o&&s&&"object"==typeof o&&"object"==typeof s){var a,l,u,c;if(o.constructor!==s.constructor)return!1;if(Array.isArray(o)){if((a=o.length)!=s.length)return!1;for(l=a;0!=l--;)if(!e(o[l],s[l]))return!1;return!0}if(r&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],s.get(l.value[0])))return!1;return!0}if(i&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if((a=o.length)!=s.length)return!1;for(l=a;0!=l--;)if(o[l]!==s[l])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof s.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof s.toString)return o.toString()===s.toString();if((a=(u=Object.keys(o)).length)!==Object.keys(s).length)return!1;for(l=a;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=a;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],s[u[l]]))return!1;return!0}return o!=o&&s!=s}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},9921:function(e,t){"use strict";/** @license React v16.13.1
310 * react-is.production.min.js
311 *
312 * Copyright (c) Facebook, Inc. and its affiliates.
313 *
314 * This source code is licensed under the MIT license found in the
315 * LICENSE file in the root directory of this source tree.
316 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case n:return t}}}function S(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=n,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===n},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},9864:function(e,t,r){"use strict";e.exports=r(9921)},6257:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var i=r(3494);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return i.GoogleAnalytics}});var n=r(4248);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n.GoogleMapsEmbed}});var o=r(2239);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},3494:function(e,t,r){"use strict";var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=n(r(9426)),s=r(7058);t.GoogleAnalytics=e=>{var t=i(e,[]);return(0,s.formatData)(o.default,t)}},4248:function(e,t,r){"use strict";var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=n(r(7395)),s=r(7058);t.GoogleMapsEmbed=e=>{var t=i(e,[]);return(0,s.formatData)(o.default,t)}},2239:function(e,t,r){"use strict";var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=n(r(8420)),s=r(7058);t.YouTubeEmbed=e=>{var t=i(e,[]);return(0,s.formatData)(o.default,t)}},7058:function(e,t){"use strict";function r(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function i(e,t,r,i){let n=i&&Object.keys(i).length>0?new URL(Object.values(i)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&n.searchParams.set(e,r[e])}),n.toString()}function n(e,t,r,n,o){var s;if(!t)return`<${e}></${e}>`;let a=(null===(s=t.src)||void 0===s?void 0:s.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,n,o)}):t,l=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let i=null==r?void 0:r[t],n=a[t],o=null!=i?i:n,s=!0===o?t:`${t}="${o}"`;return o?e+` ${s}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=i,t.createHtml=n,t.formatData=function(e,t){var o,s,a,l,u;let c=r(t,null===(o=e.scripts)||void 0===o?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null===(a=null===(s=e.html)||void 0===s?void 0:s.attributes.src)||void 0===a?void 0:a.params),h=r(t,[null===(u=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===u?void 0:u.slugParam]),p=r(t,[...Object.keys(c),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?n(e.html.element,e.html.attributes,p,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,c)})):null})}},5761:function(e,t,r){"use strict";let i,n,o,s,a,l,u,c,d,h,p,f,m,g,y,v,b,w,_,S,x,k;var C,E,A,I,O,T,M,P,R,D,j=r(8764).lW,L=r(3454);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var F=Object.defineProperty,N=(e,t,r)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t,r)=>N(e,"symbol"!=typeof t?t+"":t,r),B=Object.defineProperty,U=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t,r)=>U(e,"symbol"!=typeof t?t+"":t,r),V=((C=V||{})[C.Document=0]="Document",C[C.DocumentType=1]="DocumentType",C[C.Element=2]="Element",C[C.Text=3]="Text",C[C.CDATA=4]="CDATA",C[C.Comment=5]="Comment",C);let W={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]}
316,G={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},H={};function K(e){if(H[e])return H[e];let t=globalThis[e],r=t.prototype,i=e in W?W[e]:void 0,n=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),o=e in G?G[e]:void 0,s=!!(o&&o.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&s)return H[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");document.body.appendChild(i);let n=i.contentWindow;if(!n)return t.prototype;let o=n[e].prototype;if(document.body.removeChild(i),!o)return r;return H[e]=o}catch{return r}}let q={};function Y(e,t,r){var i;let n=`${e}.${String(r)}`;if(q[n])return q[n].call(t);let o=null==(i=Object.getOwnPropertyDescriptor(K(e),r))?void 0:i.get;return o?(q[n]=o,o.call(t)):t[r]}let X={};function J(e,t,r){let i=`${e}.${String(r)}`;if(X[i])return X[i].bind(t);let n=K(e)[r];return"function"!=typeof n?t[r]:(X[i]=n,n.bind(t))}let Z={childNodes:function(e){return Y("Node",e,"childNodes")},parentNode:function(e){return Y("Node",e,"parentNode")},parentElement:function(e){return Y("Node",e,"parentElement")},textContent:function(e){return Y("Node",e,"textContent")},contains:function(e,t){return J("Node",e,"contains")(t)},getRootNode:function(e){return J("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Y("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Y("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Y("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Y("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return K("MutationObserver").constructor}};function Q(e){return e.nodeType===e.ELEMENT_NODE}function ee(e){let t=e&&"host"in e&&"mode"in e&&Z.host(e)||null;return!!(t&&"shadowRoot"in t&&Z.shadowRoot(t)===e)}function et(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function er(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;return(t=Array.from(r,t=>ei(t,e.href)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function ei(e,t){if("styleSheet"in e){let t;try{t=er(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?ef(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?ef(r,t):r}}class en{constructor(){$(this,"idNodeMap",new Map),$(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function eo({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:o}){let s=n||"",a=i&&es(i);return(t[r.toLowerCase()]||a&&t[a])&&(s=o?o(s,e):"*".repeat(s.length)),s}function es(e){return e.toLowerCase()}let ea="__rrweb_original__";function el(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?es(t):null}function eu(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==i?void 0:i[1])??null}let ec=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ed=/^(?:[a-z+]+:)?\/\//i,eh=/^www\..*/i,ep=/^(data:)([^,]*),(.*)/i;function ef(e,t){return(e||"").replace(ec,(e,r,i,n,o,s)=>{let a=i||o||s,l=r||n||"";if(!a)return e;if(ed.test(a)||eh.test(a)||ep.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let u=t.split("/"),c=a.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let em=1,eg=RegExp("[^a-z0-9-_:]");function ey(){return em++}let ev=/^[^ \t\n\r\u000c]+/,eb=/^[, \t\n\r\u000c]+/,ew=new WeakMap;function e_(e,t){return t&&""!==t.trim()?eS(e,t):t}function eS(e,t){let r=ew.get(e);if(r||(r=e.createElement("a"),ew.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ex(e,t,r,i){return i?"src"!==r&&("href"!==r||"use"===t&&"#"===i[0])&&("xlink:href"!==r||"#"===i[0])&&("background"!==r||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function i(e){let i;let n=e.exec(t.substring(r));return n?(i=n[0],r+=i.length,i):""}let n=[];for(;i(eb),!(r>=t.length);){let o=i(ev);if(","===o.slice(-1))o=e_(e,o.substring(0,o.length-1)),n.push(o);else{let i="";o=e_(e,o);let s=!1;for(;;){let e=t.charAt(r);if(""===e){n.push((o+i).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,n.push((o+i).trim());break}"("===e&&(s=!0)}i+=e,r+=1}}}return n.join(", ")}(e,i):"style"===r?ef(i,eS(e)):"object"===t&&"data"===r?e_(e,i):i:e_(e,i):i}function ek(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eC(e,t,r){if(!e)return!1;
316if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eC(Z.parentNode(e),t,r);for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}return!!r&&eC(Z.parentNode(e),t,r)}function eE(e,t,r,i){let n;if(Q(e)){if(n=e,!Z.childNodes(n).length)return!1}else{if(null===Z.parentElement(e))return!1;n=Z.parentElement(e)}try{if("string"==typeof t){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(eC(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(e){}return!1}function eA(e){return null==e?"":e.toLowerCase()}function eI(e,t){let r;let{doc:o,mirror:s,blockClass:a,blockSelector:l,maskTextClass:u,maskTextSelector:c,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y={},inlineImages:v=!1,recordCanvas:b=!1,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:S=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:E=!1}=t,{needsMask:A}=t,{preserveWhiteSpace:I=!0}=t;A||(A=eE(e,u,c,void 0===A));let O=function(e,t){let{doc:r,mirror:o,blockClass:s,blockSelector:a,needsMask:l,inlineStylesheet:u,maskInputOptions:c={},maskTextFn:d,maskInputFn:h,dataURLOptions:p={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y=!1}=t,v=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:V.Document,childNodes:[],compatMode:e.compatMode};return{type:V.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:V.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:o,blockClass:s,blockSelector:a,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:c,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g}=t,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let i=e.classList[r];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,s,a),v=function(e){if(e instanceof HTMLFormElement)return"form";let t=es(e.tagName);return eg.test(t)?"div":t}(e),b={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];
316ek(v,r.name,r.value)||(b[r.name]=ex(o,v,es(r.name),r.value))}if("link"===v&&l){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=er(t)),r&&(delete b.rel,delete b.href,b._cssText=r)}if("style"===v&&e.sheet&&!(e.innerText||Z.textContent(e)||"").trim().length){let t=er(e.sheet);t&&(b._cssText=t)}if("input"===v||"textarea"===v||"select"===v){let t=e.value,r=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&t?b.value=eo({element:e,type:el(e),tagName:v,value:t,maskInputOptions:u,maskInputFn:c}):r&&(b.checked=r)}if("option"===v&&(e.selected&&!u.select?b.selected=!0:delete b.selected),"dialog"===v&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===v&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let i=0;i<e.height;i+=50){let n=t.getImageData,o=ea in n?n[ea]:n;if(new Uint32Array(o.call(t,r,i,Math.min(50,e.width-r),Math.min(50,e.height-i)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=o.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(b.rr_dataURL=t)}}if("img"===v&&h){i||(n=(i=o.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{i.width=e.naturalWidth,i.height=e.naturalHeight,n.drawImage(e,0,0),b.rr_dataURL=i.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?b.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}if("audio"===v||"video"===v){let t=b;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(!m&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){let{width:t,height:r}=e.getBoundingClientRect();b={class:b.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==v||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(v)&&(r=!0)}catch(e){}return{type:V.Element,tagName:v,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:g,isCustom:r}}(e,{doc:r,blockClass:s,blockSelector:a,inlineStylesheet:u,maskInputOptions:c,maskInputFn:h,dataURLOptions:p,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:y,rootId:v});case e.TEXT_NODE:return function(e,t){var r;let{needsMask:i,maskTextFn:n,rootId:o}=t,s=Z.parentNode(e),a=s&&s.tagName,l=Z.textContent(e),u="STYLE"===a||void 0,c="SCRIPT"===a||void 0;if(u&&l){try{e.nextSibling||e.previousSibling||(null==(r=s.sheet)?void 0:r.cssRules)&&(l=er(s.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}l=ef(l,eS(t.doc))}return c&&(l="SCRIPT_PLACEHOLDER"),!u&&!c&&l&&i&&(l=n?n(l,Z.parentElement(e)):l.replace(/[\S]/g,"*")),{type:V.Text,textContent:l||"",isStyle:u,rootId:o}}(e,{doc:r,needsMask:l,maskTextFn:d,rootId:v});case e.CDATA_SECTION_NODE:return{type:V.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:V.Comment,textContent:Z.textContent(e)||"",rootId:v};default:return!1}}(e,{doc:o,mirror:s,blockClass:a,blockSelector:l,needsMask:A,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:E});if(!O)return console.warn(e,"not serialized"),null;r=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===V.Comment)return!0;if(e.type===V.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eu(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eA(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eA(e.attributes.name)||"icon"===eA(e.attributes.rel)||"apple-touch-icon"===eA(e.attributes.rel)||"shortcut icon"===eA(e.attributes.rel))))return!0;
316if("meta"===e.tagName){if(t.headMetaDescKeywords&&eA(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eA(e.attributes.property).match(/^(og|twitter|fb):/)||eA(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eA(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eA(e.attributes.name)||"googlebot"===eA(e.attributes.name)||"bingbot"===eA(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eA(e.attributes.name)||"generator"===eA(e.attributes.name)||"framework"===eA(e.attributes.name)||"publisher"===eA(e.attributes.name)||"progid"===eA(e.attributes.name)||eA(e.attributes.property).match(/^article:/)||eA(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eA(e.attributes.name)||"yandex-verification"===eA(e.attributes.name)||"csrf-token"===eA(e.attributes.name)||"p:domain_verify"===eA(e.attributes.name)||"verify-v1"===eA(e.attributes.name)||"verification"===eA(e.attributes.name)||"shopify-checkout-api-token"===eA(e.attributes.name)))return!0}}return!1}(O,g)&&(I||O.type!==V.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?ey():-2;let T=Object.assign(O,{id:r});if(s.add(e,T),-2===r)return null;w&&w(e);let M=!d;if(T.type===V.Element){M=M&&!T.needBlock,delete T.needBlock;let t=Z.shadowRoot(e);t&&et(t)&&(T.isShadowHost=!0)}if((T.type===V.Document||T.type===V.Element)&&M){g.headWhitespace&&T.type===V.Element&&"head"===T.tagName&&(I=!1);let t={doc:o,mirror:s,blockClass:a,blockSelector:l,needsMask:A,maskTextClass:u,maskTextSelector:c,skipChild:d,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:C};if(T.type===V.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(let r of Array.from(Z.childNodes(e))){let e=eI(r,t);e&&T.childNodes.push(e)}let r=null;if(Q(e)&&(r=Z.shadowRoot(e)))for(let e of Array.from(Z.childNodes(r))){let i=eI(e,t);i&&(et(r)&&(i.isShadow=!0),T.childNodes.push(i))}}let P=Z.parentNode(e);return P&&ee(P)&&et(P)&&(T.isShadow=!0),T.type===V.Element&&"iframe"===T.tagName&&function(e,t,r){let i;let n=e.contentWindow;if(!n)return;let o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){let i=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),o=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&_){let r=eI(t,{doc:t,mirror:s,blockClass:a,blockSelector:l,needsMask:A,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:C});r&&_(e,r)}},S),T.type===V.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===eu(T.attributes.href))&&function(e,t,r){let i,n=!1;try{i=e.sheet}catch(e){return}if(i)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}(e,()=>{if(x){let t=eI(e,{doc:o,mirror:s,blockClass:a,blockSelector:l,needsMask:A,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:_,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:C});t&&x(e,t)}},k),T}var eO={exports:{}},eT=String,eM=function(){return{isColorSupported:!1,reset:eT,bold:eT,dim:eT,italic:eT,underline:eT,inverse:eT,hidden:eT,strikethrough:eT,black:eT,red:eT,green:eT,yellow:eT,blue:eT,magenta:eT,cyan:eT,white:eT,gray:eT,bgBlack:eT,bgRed:eT,bgGreen:eT,bgYellow:eT,bgBlue:eT,bgMagenta:eT,bgCyan:eT,bgWhite:eT}};eO.exports=eM(),eO.exports.createColors=eM;var eP=eO.exports;let eR=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
316return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eD=class e extends Error{constructor(t,r,i,n,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let i=this.source;null==e&&(e=eP.isColorSupported),eR&&e&&(i=eR(i));let n=i.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),a=String(s).length;if(e){let{bold:e,gray:i,red:n}=eP.createColors(!0);t=t=>e(n(t)),r=e=>i(e)}else t=r=e=>e;return n.slice(o,s).map((e,i)=>{let n=o+1+i,s=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let i=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(s)+e+"\n "+i+t("^")}return" "+r(s)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};eD.default=eD;var ej={};ej.isClean=Symbol("isClean"),ej.my=Symbol("my");let eL={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},eF=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&"root"!==i.type;)n+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return eL[r];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var s;let n="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[n]?i=this[n](o,e):o.walk(e=>{if(void 0!==(i=e.raws[t]))return!1})}return void 0===i&&(i=eL[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function eN(e,t){new eF(t).stringify(e)}eF.default=eF,eN.default=eN;let{isClean:ez,my:eB}=ej,eU=class{constructor(e={}){for(let t in this.raws={},this[ez]=!1,this[eB]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let o=t[n],s=typeof o;"parent"===n&&"object"===s?r&&(i[n]=r):"source"===n?i[n]=o:Array.isArray(o)?i[n]=o.map(t=>e(t,i)):("object"===s&&null!==o&&(o=e(o)),i[n]=o)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
vendor: 4,334 bytes, line 316
316error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new eD(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[ez]){this[ez]=!1;let e=this;for(;e=e.parent;)e[ez]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);-1!==n&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new eF().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let o=t.get(i.input);null==o&&(o=n,t.set(i.input,n),n++),r[e]={end:i.end,inputId:o,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=eN){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}};eU.default=eU;let e$=eU,eV=class extends e${constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};eV.default=eV;let{SourceMapConsumer:eW,SourceMapGenerator:eG}=eR,{existsSync:eH,readFileSync:eK}=eR,{dirname:eq,join:eY}=eR,eX=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eq(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new eW(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),j?j.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
316if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=eq(e),eH(e))return this.mapFile=e,eK(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof eW)return eG.fromSourceMap(t).toString();else if(t instanceof eG)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=eY(eq(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};eX.default=eX;let{SourceMapConsumer:eJ,SourceMapGenerator:eZ}=eR,{fileURLToPath:eQ,pathToFileURL:e0}=eR,{isAbsolute:e1,resolve:e2}=eR,{nanoid:e5}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",n=r;for(;n--;)i+=e[Math.random()*e.length|0];return i}}
316,e3=Symbol("fromOffsetCache"),e4=!!(eJ&&eZ),e6=!!(e2&&e1),e8=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!e6||/^\w+:\/\//.test(t.from)||e1(t.from)?this.file=t.from:this.file=e2(t.from)),e6&&e4){let e=new eX(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+e5(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,s;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,s=e.col}else o=i.line,s=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,o,s);return(n=a?new eD(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new eD(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,i.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(e0&&(n.input.url=e0(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[e3])r=this[e3];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,n=e.length;i<n;i++)r[i]=t,t+=e[i].length+1;this[e3]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,n=r.length-2;for(;i<n;)if(e<r[t=i+(n-i>>1)])n=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:e2(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){let n,o;if(!this.map)return!1;let s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=s.originalPositionFor({column:i,line:r})),o=e1(a.source)?e0(a.source):new URL(a.source,this.map.consumer().sourceRoot||e0(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(eQ)l.file=eQ(o);else throw Error("file: protocol is not available in this PostCSS build")}let u=s.sourceContentFor(a.source);return u&&(l.source=u),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};e8.default=e8,eR&&eR.registerInput&&eR.registerInput(e8);let{SourceMapConsumer:e9,SourceMapGenerator:e7}=eR,{dirname:te,relative:tt,resolve:tr,sep:ti}=eR,{pathToFileURL:tn}=eR,to=!!(e9&&e7),ts=!!(te&&tr&&tt&&ti),ta=class{constructor(e,t,r,i
316){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||te(e.file);!1===this.mapOpts.sourcesContent?(t=new e9(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),ts&&to&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=e7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new e7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new e7({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,i=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=r,o.generated.column=i-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=n,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=s.match(/\n/g))?(r+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=i-2):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?te(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=te(tr(r,this.mapOpts.annotation)));let i=tt(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new e8(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return j?j.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tn){let t=tn(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===ti&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},tl=eU,tu=class extends tl{constructor(e){super(e),this.type="comment"}};tu.default=tu;let{isClean:tc,my:td}=ej,th=eU,tp=class e extends th{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
316e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),n=0===i&&"prepend",o=this.normalize(t,this.proxyOf.nodes[i],n).reverse();for(let t of(i=this.index(e),o))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+o.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(o(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new eV(t)]}else if(t.selector)t=[new s(t)];else if(t.name)t=[new a(t)];else if(t.text)t=[new tu(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[td]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[tc]&&function e(t){if(t[tc]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{(!t.props||t.props.includes(i.prop))&&(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};tp.registerParse=e=>{o=e},tp.registerRule=e=>{s=e},tp.registerAtRule=e=>{a=e},tp.registerRoot=e=>{l=e},tp.default=tp,tp.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,s.prototype):"decl"===e.type?Object.setPrototypeOf(e,eV.prototype):"comment"===e.type?Object.setPrototypeOf(e,tu.prototype):"root"===e.type&&Object.setPrototypeOf(e,l.prototype),e[td]=!0,e.nodes&&e.nodes.forEac
316h(e=>{tp.rebuild(e)})};let tf=tp,tm=class extends tf{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new u(new c,this,e).stringify()}};tm.registerLazyResult=e=>{u=e},tm.registerProcessor=e=>{c=e},tm.default=tm;let tg=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};tg.default=tg;let ty=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new tg(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};ty.default=ty;let tv=/[\t\n\f\r "#'()/;[\\\]{}]/g,tb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tw=/.[\r\n"'(/\\]/,t_=/[\da-f]/i,tS=tp,tx=class extends tS{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};tx.default=tx,tS.registerAtRule(tx);let tk=tp,tC=class extends tk{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new d(new h,this,e).stringify()}};tC.registerLazyResult=e=>{d=e},tC.registerProcessor=e=>{h=e},tC.default=tC,tk.registerRoot(tC);let tE={comma:e=>tE.split(e,[","],!0),space:e=>tE.split(e,[" ","\n","	"]),split(e,t,r){let i=[],n="",o=!1,s=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(o=!0),o?(""!==n&&i.push(n.trim()),n="",o=!1):n+=r;return(r||""!==n)&&i.push(n.trim()),i}};tE.default=tE;let tA=tp,tI=class extends tA{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return tE.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};tI.default=tI,tA.registerRule(tI);let tO=function(e,t={}){let r,i,n,o,s,a,l,u,c,d,h=e.css.valueOf(),p=t.ignoreErrors,f=h.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:i=m;do i+=1,r=h.charCodeAt(i);while(32===r||10===r||9===r||13===r||12===r);d=["space",h.slice(m,i)],m=i-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);d=[e,e,m];break}case 40:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(m+1),"url"===u&&39!==c&&34!==c&&32!==c&&10!==c&&9!==c&&12!==c&&13!==c){i=m;do{if(a=!1,-1===(i=h.indexOf(")",i+1))){if(p||t){i=m;break}v("bracket")}for(l=i;
31692===h.charCodeAt(l-1);)l-=1,a=!a}while(a);d=["brackets",h.slice(m,i+1),m,i],m=i}else i=h.indexOf(")",m+1),o=h.slice(m,i+1),-1===i||tw.test(o)?d=["(","(",m]:(d=["brackets",o,m,i],m=i);break;case 39:case 34:n=39===r?"'":'"',i=m;do{if(a=!1,-1===(i=h.indexOf(n,i+1))){if(p||t){i=m+1;break}v("string")}for(l=i;92===h.charCodeAt(l-1);)l-=1,a=!a}while(a);d=["string",h.slice(m,i+1),m,i],m=i;break;case 64:tv.lastIndex=m+1,tv.test(h),i=0===tv.lastIndex?h.length-1:tv.lastIndex-2,d=["at-word",h.slice(m,i+1),m,i],m=i;break;case 92:for(i=m,s=!0;92===h.charCodeAt(i+1);)i+=1,s=!s;if(r=h.charCodeAt(i+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(i+=1,t_.test(h.charAt(i)))){for(;t_.test(h.charAt(i+1));)i+=1;32===h.charCodeAt(i+1)&&(i+=1)}d=["word",h.slice(m,i+1),m,i],m=i;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(i=h.indexOf("*/",m+2)+1)&&(p||t?i=h.length:v("comment")),d=["comment",h.slice(m,i+1),m,i]):(tb.lastIndex=m+1,tb.test(h),i=0===tb.lastIndex?h.length-1:tb.lastIndex-2,d=["word",h.slice(m,i+1),m,i],g.push(d)),m=i}return m++,d},position:function(){return m}}},tT={empty:!0,space:!0},tM=class{constructor(e){this.input=e,this.root=new tC,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,n=new tx;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(i=a.length-1,r=a[i];r&&"space"===r[0];)r=a[--i];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),s&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(i+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[n,o]of e.entries()){if("("===(t=o[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(o)}r=o}return!1}comment(e){let t=new tu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=tO(this.input)}decl(e,t){let r,i,n=new eV;this.init(n,e[0][2]);let o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;
vendor: 2,773 bytes, line 316
316i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=s.map(e=>e[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new tI;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),o.push("("===r?")":"]");else if(s&&i&&"{"===r)n||(n=l),o.push("}");else if(0===o.length){if(";"===r){if(i){this.decl(a,s);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(i=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,s,a;let l=r.length,u="",c=!0;for(let e=0;e<l;e+=1)"space"!==(o=(n=r[e])[0])||e!==l-1||i?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",s=r[e+1]?r[e+1][
3160]:"empty",tT[a]||tT[s]?c=!1:","===u.slice(-1)?c=!1:u+=n[1]):u+=n[1]:c=!1;if(!c){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:u}}e[t]=u}rule(e){e.pop();let t=new tI;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function tP(e,t){let r=new tM(new e8(e,t));try{r.parse()}catch(e){throw e}return r.root}tP.default=tP,tp.registerParse(tP);let{isClean:tR,my:tD}=ej,tj={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tL={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},tF={Once:!0,postcssPlugin:!0,prepare:!0};function tN(e){return"object"==typeof e&&"function"==typeof e.then}function tz(e){let t=!1,r=tj[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function tB(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tz(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function tU(e){return e[tR]=!1,e.nodes&&e.nodes.forEach(e=>tU(e)),e}let t$={},tV=class e{constructor(t,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=tU(r);else if(r instanceof e||r instanceof ty)n=tU(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=tP;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[tD]&&tp.rebuild(n)}this.result=new ty(t,n,i),this.helpers={...t$,postcss:t$,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!tL[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!tF[r]){if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(tN(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tR];){e[tR]=!0;let t=[tB(e)];for(;t.length>0;){let e=this.visitTick(t);
316if(tN(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(tN(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=eN;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ta(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(tN(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[tR];)e[tR]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(tN(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,n=t.iterator;for(;i=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!i[tR]){i[tR]=!0,e.push(tB(i));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[tR]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[tR]=!0,tz(e)))if(0===t)e.nodes&&e.each(e=>{e[tR]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};tV.registerPostcss=e=>{t$=e},tV.default=tV,tC.registerLazyResult(tV),tm.registerLazyResult(tV);let tW=class{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new ty(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new ta(eN,i,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=tP(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};tW.default=tW;let tG=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new tV(this,e,t):new tW(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function tH(e,t){if(Array.isArray(e))return e.map(e=>tH(e));let{inputs:r,...i}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:e8.prototype};r.map&&(r.map={...r.map,__proto__:eX.prototype}),t.push(r)}if(i.nodes&&(i.nodes=e.nodes.map(e=>tH(e,t))),i.source){let{inputId:e,...r}=i.source;i.source=r,null!=e&&(i.source.input=t[e])}if("root"===i.type)return new tC(i);if("decl"===i.type)return new eV(i);if("rule"===i.type)return new tI(i);if("comment"===i.type)return new tu(i);if("atrule"===i.type)return new tx(i);throw Error("Unknown node type: "+e.type)}function tK(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new tG(e)}tG.default=tG,tC.registerProcessor(tG),tm.registerProcessor(tG),tH.default=tH,tK.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),L.env.LANG&&L.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new tG().version,o}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return tK([n(r)]).process(e,t)},n}
vendor: 8,438 bytes, line 316
316,tK.stringify=eN,tK.parse=tP,tK.fromJSON=tH,tK.list=tE,tK.comment=e=>new tu(e),tK.atRule=e=>new tx(e),tK.decl=e=>new eV(e),tK.rule=e=>new tI(e),tK.root=e=>new tC(e),tK.document=e=>new tm(e),tK.CssSyntaxError=eD,tK.Declaration=eV,tK.Container=tp,tK.Processor=tG,tK.Document=tm,tK.Comment=tu,tK.Warning=tg,tK.AtRule=tx,tK.Result=ty,tK.Input=e8,tK.Rule=tI,tK.Root=tC,tK.Node=eU,tV.registerPostcss(tK),tK.default=tK;let tq=tK&&tK.__esModule&&Object.prototype.hasOwnProperty.call(tK,"default")?tK.default:tK;tq.stringify,tq.fromJSON,tq.plugin,tq.parse,tq.list,tq.document,tq.comment,tq.atRule,tq.rule,tq.decl,tq.root,tq.CssSyntaxError,tq.Declaration,tq.Container,tq.Processor,tq.Document,tq.Comment,tq.Warning,tq.AtRule,tq.Result,tq.Input,tq.Rule,tq.Root,tq.Node;var tY=Object.defineProperty,tX=(e,t,r)=>t in e?tY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tJ=(e,t,r)=>tX(e,"symbol"!=typeof t?t+"":t,r),tZ={exports:{}},tQ=String,t0=function(){return{isColorSupported:!1,reset:tQ,bold:tQ,dim:tQ,italic:tQ,underline:tQ,inverse:tQ,hidden:tQ,strikethrough:tQ,black:tQ,red:tQ,green:tQ,yellow:tQ,blue:tQ,magenta:tQ,cyan:tQ,white:tQ,gray:tQ,bgBlack:tQ,bgRed:tQ,bgGreen:tQ,bgYellow:tQ,bgBlue:tQ,bgMagenta:tQ,bgCyan:tQ,bgWhite:tQ}};tZ.exports=t0(),tZ.exports.createColors=t0;var t1=tZ.exports;let t2=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),t5=class e extends Error{constructor(t,r,i,n,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),n&&(this.source=n),s&&(this.plugin=s),void 0!==r&&void 0!==i&&("number"==typeof r?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let i=this.source;null==e&&(e=t1.isColorSupported),t2&&e&&(i=t2(i));let n=i.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),a=String(s).length;if(e){let{bold:e,gray:i,red:n}=t1.createColors(!0);t=t=>e(n(t)),r=e=>i(e)}else t=r=e=>e;return n.slice(o,s).map((e,i)=>{let n=o+1+i,s=" "+(" "+n).slice(-a)+" | ";if(n===this.line){let i=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(s)+e+"\n "+i+t("^")}return" "+r(s)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};t5.default=t5;var t3={};t3.isClean=Symbol("isClean"),t3.my=Symbol("my");let t4={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},t6=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&"root"!==i.type;)n+=1,i=i.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)r+=t}return r}block(e,t){let r,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;let n=e.parent;if("before"===r&&(!n||"root"===n.type&&n.first===e||n&&"document"===n.type))return"";if(!n)return t4[r];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{var s;let n="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[n]?i=this[n](o,e):o.walk(e=>{if(void 0!==(i=e.raws[t]))return!1})}return void 0===i&&(i=t4[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};function t8(e,t){new t6(t).stringify(e)}t6.default=t6,t8.default=t8;let{isClean:t9,my:t7}=t3,re=class{constructor(e={}){for(let t in this.raws={},this[t9]=!1,this[t7]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let i=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||"proxyCache"===n)continue;let o=t[n],s=typeof o;"parent"===n&&"object"===s?r&&(i[n]=r):"source"===n?i[n]=o:Array.isArray(o)?i[n]=o.map(t=>e(t,i)):("object"===s&&null!==o&&(o=e(o)),i[n]=o)}return i}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
vendor: 4,334 bytes, line 316
316error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new t5(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}markDirty(){if(this[t9]){this[t9]=!1;let e=this;for(;e=e.parent;)e[t9]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let i=(t=this.toString()).indexOf(e.word);-1!==i&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);-1!==n&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new t6().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},i=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))r[e]=i.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof i&&i.toJSON)r[e]=i.toJSON(null,t);else if("source"===e){let o=t.get(i.input);null==o&&(o=n,t.set(i.input,n),n++),r[e]={end:i.end,inputId:o,start:i.start}}else r[e]=i}return i&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=t8){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let i={node:this};for(let e in r)i[e]=r[e];return e.warn(t,i)}get proxyOf(){return this}};re.default=re;let rt=re,rr=class extends rt{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};rr.default=rr;let{SourceMapConsumer:ri,SourceMapGenerator:rn}=t2,{existsSync:ro,readFileSync:rs}=t2,{dirname:ra,join:rl}=t2,ru=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ra(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ri(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),j?j.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
316if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=ra(e),ro(e))return this.mapFile=e,rs(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof ri)return rn.fromSourceMap(t).toString();else if(t instanceof rn)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=rl(ra(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};ru.default=ru;let{SourceMapConsumer:rc,SourceMapGenerator:rd}=t2,{fileURLToPath:rh,pathToFileURL:rp}=t2,{isAbsolute:rf,resolve:rm}=t2,{nanoid:rg}={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let i="",n=r;for(;n--;)i+=e[Math.random()*e.length|0];return i}}
316,ry=Symbol("fromOffsetCache"),rv=!!(rc&&rd),rb=!!(rm&&rf),rw=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rb||/^\w+:\/\//.test(t.from)||rf(t.from)?this.file=t.from:this.file=rm(t.from)),rb&&rv){let e=new ru(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+rg(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,s;if(t&&"object"==typeof t){let e=t,i=r;if("number"==typeof e.offset){let i=this.fromOffset(e.offset);t=i.line,r=i.col}else t=e.line,r=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,s=e.col}else o=i.line,s=i.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let a=this.origin(t,r,o,s);return(n=a?new t5(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new t5(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,i.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(rp&&(n.input.url=rp(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[ry])r=this[ry];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let i=0,n=e.length;i<n;i++)r[i]=t,t+=e[i].length+1;this[ry]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let t,n=r.length-2;for(;i<n;)if(e<r[t=i+(n-i>>1)])n=t-1;else if(e>=r[t+1])i=t+1;else{i=t;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rm(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){let n,o;if(!this.map)return!1;let s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(n=s.originalPositionFor({column:i,line:r})),o=rf(a.source)?rp(a.source):new URL(a.source,this.map.consumer().sourceRoot||rp(this.map.mapFile));let l={column:a.column,endColumn:n&&n.column,endLine:n&&n.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(rh)l.file=rh(o);else throw Error("file: protocol is not available in this PostCSS build")}let u=s.sourceContentFor(a.source);return u&&(l.source=u),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};rw.default=rw,t2&&t2.registerInput&&t2.registerInput(rw);let{SourceMapConsumer:r_,SourceMapGenerator:rS}=t2,{dirname:rx,relative:rk,resolve:rC,sep:rE}=t2,{pathToFileURL:rA}=t2,rI=!!(r_&&rS),rO=!!(rx&&rC&&rk&&rE),rT=class{constructor(e,t,r,i
316){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||rx(e.file);!1===this.mapOpts.sourcesContent?(t=new r_(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),rO&&rI&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rS.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rS({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new rS({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,i=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=r,o.generated.column=i-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1):(o.source=n,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=s.match(/\n/g))?(r+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};(!("decl"===a.type||"atrule"===a.type&&!a.nodes)||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=r,o.generated.column=i-2):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?rx(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rx(rC(r,this.mapOpts.annotation)));let i=rk(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new rw(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return j?j.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rA){let t=rA(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===rE&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},rM=re,rP=class extends rM{constructor(e){super(e),this.type="comment"}};rP.default=rP;let{isClean:rR,my:rD}=t3,rj=re,rL=class e extends rj{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[i]+=1;return delete this.indexes[i],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>
316e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();for(let t of(i=this.index(e),n))this.proxyOf.nodes.splice(i+1,0,t);for(let e in this.indexes)i<(r=this.indexes[e])&&(this.indexes[e]=r+n.length);return this.markDirty(),this}insertBefore(e,t){let r,i=this.index(e),n=0===i&&"prepend",o=this.normalize(t,this.proxyOf.nodes[i],n).reverse();for(let t of(i=this.index(e),o))this.proxyOf.nodes.splice(i,0,t);for(let e in this.indexes)i<=(r=this.indexes[e])&&(this.indexes[e]=r+o.length);return this.markDirty(),this}normalize(t,r){if("string"==typeof t)t=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(p(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t))for(let e of t=t.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if("root"===t.type&&"document"!==this.type)for(let e of t=t.nodes.slice(0))e.parent&&e.parent.removeChild(e,"ignore");else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new rr(t)]}else if(t.selector)t=[new f(t)];else if(t.name)t=[new m(t)];else if(t.text)t=[new rP(t)];else throw Error("Unknown node type in node creation");return t.map(t=>(t[rD]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[rR]&&function e(t){if(t[rR]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(t),void 0===t.raws.before&&r&&void 0!==r.raws.before&&(t.raws.before=r.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{(!t.props||t.props.includes(i.prop))&&(!t.fast||i.value.includes(t.fast))&&(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("atrule"===r.type&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if("atrule"===r.type&&r.name===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("decl"===r.type&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if("decl"===r.type&&r.prop===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if("rule"===r.type&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if("rule"===r.type&&r.selector===e)return t(r,i)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};rL.registerParse=e=>{p=e},rL.registerRule=e=>{f=e},rL.registerAtRule=e=>{m=e},rL.registerRoot=e=>{g=e},rL.default=rL,rL.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,m.prototype):"rule"===e.type?Object.setPrototypeOf(e,f.prototype):"decl"===e.type?Object.setPrototypeOf(e,rr.prototype):"comment"===e.type?Object.setPrototypeOf(e,rP.prototype):"root"===e.type&&Object.setPrototypeOf(e,g.prototype),e[rD]=!0,e.nodes&&e.nodes.forEac
316h(e=>{rL.rebuild(e)})};let rF=rL,rN=class extends rF{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new y(new v,this,e).stringify()}};rN.registerLazyResult=e=>{y=e},rN.registerProcessor=e=>{v=e},rN.default=rN;let rz=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};rz.default=rz;let rB=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new rz(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}};rB.default=rB;let rU=/[\t\n\f\r "#'()/;[\\\]{}]/g,r$=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rV=/.[\r\n"'(/\\]/,rW=/[\da-f]/i,rG=rL,rH=class extends rG{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};rH.default=rH,rG.registerAtRule(rH);let rK=rL,rq=class extends rK{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new b(new w,this,e).stringify()}};rq.registerLazyResult=e=>{b=e},rq.registerProcessor=e=>{w=e},rq.default=rq,rK.registerRoot(rq);let rY={comma:e=>rY.split(e,[","],!0),space:e=>rY.split(e,[" ","\n","	"]),split(e,t,r){let i=[],n="",o=!1,s=0,a=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(o=!0),o?(""!==n&&i.push(n.trim()),n="",o=!1):n+=r;return(r||""!==n)&&i.push(n.trim()),i}};rY.default=rY;let rX=rL,rJ=class extends rX{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rY.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};rJ.default=rJ,rX.registerRule(rJ);let rZ=function(e,t={}){let r,i,n,o,s,a,l,u,c,d,h=e.css.valueOf(),p=t.ignoreErrors,f=h.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(r=h.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:i=m;do i+=1,r=h.charCodeAt(i);while(32===r||10===r||9===r||13===r||12===r);d=["space",h.slice(m,i)],m=i-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(r);d=[e,e,m];break}case 40:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(m+1),"url"===u&&39!==c&&34!==c&&32!==c&&10!==c&&9!==c&&12!==c&&13!==c){i=m;do{if(a=!1,-1===(i=h.indexOf(")",i+1))){if(p||t){i=m;break}v("bracket")}for(l=i;
31692===h.charCodeAt(l-1);)l-=1,a=!a}while(a);d=["brackets",h.slice(m,i+1),m,i],m=i}else i=h.indexOf(")",m+1),o=h.slice(m,i+1),-1===i||rV.test(o)?d=["(","(",m]:(d=["brackets",o,m,i],m=i);break;case 39:case 34:n=39===r?"'":'"',i=m;do{if(a=!1,-1===(i=h.indexOf(n,i+1))){if(p||t){i=m+1;break}v("string")}for(l=i;92===h.charCodeAt(l-1);)l-=1,a=!a}while(a);d=["string",h.slice(m,i+1),m,i],m=i;break;case 64:rU.lastIndex=m+1,rU.test(h),i=0===rU.lastIndex?h.length-1:rU.lastIndex-2,d=["at-word",h.slice(m,i+1),m,i],m=i;break;case 92:for(i=m,s=!0;92===h.charCodeAt(i+1);)i+=1,s=!s;if(r=h.charCodeAt(i+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(i+=1,rW.test(h.charAt(i)))){for(;rW.test(h.charAt(i+1));)i+=1;32===h.charCodeAt(i+1)&&(i+=1)}d=["word",h.slice(m,i+1),m,i],m=i;break;default:47===r&&42===h.charCodeAt(m+1)?(0===(i=h.indexOf("*/",m+2)+1)&&(p||t?i=h.length:v("comment")),d=["comment",h.slice(m,i+1),m,i]):(r$.lastIndex=m+1,r$.test(h),i=0===r$.lastIndex?h.length-1:r$.lastIndex-2,d=["word",h.slice(m,i+1),m,i],g.push(d)),m=i}return m++,d},position:function(){return m}}},rQ={empty:!0,space:!0},r0=class{constructor(e){this.input=e,this.root=new rq,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,i,n=new rH;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(i=a.length-1,r=a[i];r&&"space"===r[0];)r=a[--i];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(n.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(n,"params",a),o&&(e=a[a.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),s&&(n.nodes=[],this.current=n)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let i=0;for(let n=r-1;n>=0&&("space"===(t=e[n])[0]||2!==(i+=1));n--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,i=0;for(let[n,o]of e.entries()){if("("===(t=o[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return n}this.doubleColon(o)}r=o}return!1}comment(e){let t=new rP;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=rZ(this.input)}decl(e,t){let r,i,n=new rr;this.init(n,e[0][2]);let o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],i=r[3]||r[2];if(i)return i}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}("_"===n.prop[0]||"*"===n.prop[0])&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;
vendor: 2,773 bytes, line 316
316i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=s.map(e=>e[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new rJ;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)n||(n=l),o.push("("===r?")":"]");else if(s&&i&&"{"===r)n||(n=l),o.push("}");else if(0===o.length){if(";"===r){if(i){this.decl(a,s);return}break}if("{"===r){this.rule(a);return}if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(i=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,s,a;let l=r.length,u="",c=!0;for(let e=0;e<l;e+=1)"space"!==(o=(n=r[e])[0])||e!==l-1||i?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",s=r[e+1]?r[e+1][
3160]:"empty",rQ[a]||rQ[s]?c=!1:","===u.slice(-1)?c=!1:u+=n[1]):u+=n[1]:c=!1;if(!c){let i=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:i,value:u}}e[t]=u}rule(e){e.pop();let t=new rJ;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};function r1(e,t){let r=new r0(new rw(e,t));try{r.parse()}catch(e){throw e}return r.root}r1.default=r1,rL.registerParse(r1);let{isClean:r2,my:r5}=t3,r3={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r4={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},r6={Once:!0,postcssPlugin:!0,prepare:!0};function r8(e){return"object"==typeof e&&"function"==typeof e.then}function r9(e){let t=!1,r=r3[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function r7(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:r9(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ie(e){return e[r2]=!1,e.nodes&&e.nodes.forEach(e=>ie(e)),e}let it={},ir=class e{constructor(t,r,i){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof r&&null!==r&&("root"===r.type||"document"===r.type))n=ie(r);else if(r instanceof e||r instanceof rB)n=ie(r.root),r.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=r1;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{n=e(r,i)}catch(e){this.processed=!0,this.error=e}n&&!n[r5]&&rL.rebuild(n)}this.result=new rB(t,n,i),this.helpers={...it,postcss:it,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!r4[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!r6[r]){if("object"==typeof t[r])for(let i in t[r])e(t,"*"===i?r:r+"-"+i.toLowerCase(),t[r][i]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(r8(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r2];){e[r2]=!0;let t=[r7(e)];for(;t.length>0;){let e=this.visitTick(t);
vendor: 6,925 bytes, line 316
316if(r8(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(r8(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=t8;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new rT(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(r8(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r2];)e[r2]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){let e;this.result.lastPlugin=r;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(r8(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,n=t.iterator;for(;i=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!i[r2]){i[r2]=!0,e.push(r7(i));return}t.iterator=0,delete r.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[r2]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[r2]=!0,r9(e)))if(0===t)e.nodes&&e.each(e=>{e[r2]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ir.registerPostcss=e=>{it=e},ir.default=ir,rq.registerLazyResult(ir),rN.registerLazyResult(ir);let ii=class{constructor(e,t,r){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rB(this._processor,i,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new rT(t8,i,this._opts,t);if(o.isMap()){let[e,t]=o.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=r1(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}};ii.default=ii;let io=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new ir(this,e,t):new ii(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};function is(e,t){if(Array.isArray(e))return e.map(e=>is(e));let{inputs:r,...i}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:rw.prototype};r.map&&(r.map={...r.map,__proto__:ru.prototype}),t.push(r)}if(i.nodes&&(i.nodes=e.nodes.map(e=>is(e,t))),i.source){let{inputId:e,...r}=i.source;i.source=r,null!=e&&(i.source.input=t[e])}if("root"===i.type)return new rq(i);if("decl"===i.type)return new rr(i);if("rule"===i.type)return new rJ(i);if("comment"===i.type)return new rP(i);if("atrule"===i.type)return new rH(i);throw Error("Unknown node type: "+e.type)}function ia(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new io(e)}io.default=io,rq.registerProcessor(io),rN.registerProcessor(io),is.default=is,ia.plugin=function(e,t){let r,i=!1;function n(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),L.env.LANG&&L.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new io().version,o}return Object.defineProperty(n,"postcss",{get:()=>(r||(r=n()),r)}),n.process=function(e,t,r){return ia([n(r)]).process(e,t)},n},ia.stringify=t8,ia.parse=r1,ia.fromJSON=is,ia.list=rY,ia.comment=e=>new rP(e),ia.atRule=e=>new rH(e),ia.decl=e=>new rr(e),ia.rule=e=>new rJ(e),ia.root=e=>new rq(e),ia.document=e=>new rN(e),ia.CssSyntaxError=t5,ia.Declaration=rr,ia.Container=rL,ia.Processor=io,ia.Document=rN,ia.Comment=rP,ia.Warning=rz,ia.AtRule=rH,ia.Result=rB,ia.Input=rw,ia.Rule=rJ,ia.Root=rq,ia.Node=re,ir.registerPostcss(ia),ia.default=ia;let il=ia&&ia.__esModule&&Object.prototype.hasOwnProperty.call(ia,"default")?ia.default:ia;il.stringify,il.fromJSON,il.plugin,il.parse,il.list,il.document,il.comment,
316il.atRule,il.rule,il.decl,il.root,il.CssSyntaxError,il.Declaration,il.Container,il.Processor,il.Document,il.Comment,il.Warning,il.AtRule,il.Result,il.Input,il.Rule,il.Root,il.Node;class iu{constructor(...e){tJ(this,"parentElement",null),tJ(this,"parentNode",null),tJ(this,"ownerDocument"),tJ(this,"firstChild",null),tJ(this,"lastChild",null),tJ(this,"previousSibling",null),tJ(this,"nextSibling",null),tJ(this,"ELEMENT_NODE",1),tJ(this,"TEXT_NODE",3),tJ(this,"nodeType"),tJ(this,"nodeName"),tJ(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof iu)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}let ic={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},id={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ih={};function ip(e){if(ih[e])return ih[e];let t=globalThis[e],r=t.prototype,i=e in ic?ic[e]:void 0,n=!!(i&&i.every(e=>{var t,i;return!!(null==(i=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:i.toString().includes("[native code]"))})),o=e in id?id[e]:void 0,s=!!(o&&o.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(n&&s)return ih[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");document.body.appendChild(i);let n=i.contentWindow;if(!n)return t.prototype;let o=n[e].prototype;if(document.body.removeChild(i),!o)return r;return ih[e]=o}catch{return r}}let im={};function ig(e,t,r){var i;let n=`${e}.${String(r)}`;if(im[n])return im[n].call(t);let o=null==(i=Object.getOwnPropertyDescriptor(ip(e),r))?void 0:i.get;return o?(im[n]=o,o.call(t)):t[r]}let iy={};function iv(e,t,r){let i=`${e}.${String(r)}`;if(iy[i])return iy[i].bind(t);let n=ip(e)[r];return"function"!=typeof n?t[r]:(iy[i]=n,n.bind(t))}function ib(){return ip("MutationObserver").constructor}let iw={childNodes:function(e){return ig("Node",e,"childNodes")},parentNode:function(e){return ig("Node",e,"parentNode")},parentElement:function(e){return ig("Node",e,"parentElement")},textContent:function(e){return ig("Node",e,"textContent")},contains:function(e,t){return iv("Node",e,"contains")(t)},getRootNode:function(e){return iv("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?ig("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?ig("Element",e,"shadowRoot"):null},querySelector:function(e,t){return ig("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return ig("Element",e,"querySelectorAll")(t)},mutationObserver:ib};function i_(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}let iS="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ix={map:{},getId:()=>(console.error(iS),-1),getNode:()=>(console.error(iS),null),removeNodeFromMap(){console.error(iS)},has:()=>(console.error(iS),!1),reset(){console.error(iS)}};function ik(e,t,r={}){let i=null,n=0;return function(...o){let s=Date.now();n||!1!==r.leading||(n=s);let a=t-(s-n),l=this;a<=0||a>t?(i&&(clearTimeout(i),i=null),n=s,e.apply(l,o)):i||!1===r.trailing||(i=setTimeout(()=>{n=!1===r.leading?0:Date.now(),i=null,e.apply(l,o)},a))}}function iC(e,t,r,i,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>iC(e,t,o||{},!0)}function iE(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return"function"==typeof n&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}}
vendor: 1,159 bytes, line 316
316)),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ix=new Proxy(ix,{get:(e,t,r)=>("map"===t&&console.error(iS),Reflect.get(e,t,r))}));let iA=Date.now;function iI(e){var t,r,i,n;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=iw.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(i=iw.parentElement(o.body))?void 0:i.scrollTop)||(null==(n=null==o?void 0:o.body)?void 0:n.scrollTop)||0}}function iO(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iM(e){return e?e.nodeType===e.ELEMENT_NODE?e:iw.parentElement(e):null}
316function iP(e,t,r,i){if(!e)return!1;let n=iM(e);if(!n)return!1;try{if("string"==typeof t){if(n.classList.contains(t)||i&&null!==n.closest("."+t))return!0}else if(eC(n,t,i))return!0}catch(e){}return!!(r&&(n.matches(r)||i&&null!==n.closest(r)))}function iR(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function iD(e){return!!e.changedTouches}function ij(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iL(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iF(e){return!!e&&(e instanceof iu&&"shadowRoot"in e?!!e.shadowRoot:!!iw.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(iA=()=>new Date().getTime());class iN{constructor(){z(this,"id",1),z(this,"styleIDMap",new WeakMap),z(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function iz(e){var t;let r=null;return"getRootNode"in e&&(null==(t=iw.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&iw.host(iw.getRootNode(e))&&(r=iw.host(iw.getRootNode(e))),r}function iB(e){let t=e.ownerDocument;return!!t&&(iw.contains(t,e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=iz(r);)r=t;return r}(e);return iw.contains(t,r)}(e))}var iU=((E=iU||{})[E.DomContentLoaded=0]="DomContentLoaded",E[E.Load=1]="Load",E[E.FullSnapshot=2]="FullSnapshot",E[E.IncrementalSnapshot=3]="IncrementalSnapshot",E[E.Meta=4]="Meta",E[E.Custom=5]="Custom",E[E.Plugin=6]="Plugin",E),i$=((A=i$||{})[A.Mutation=0]="Mutation",A[A.MouseMove=1]="MouseMove",A[A.MouseInteraction=2]="MouseInteraction",A[A.Scroll=3]="Scroll",A[A.ViewportResize=4]="ViewportResize",A[A.Input=5]="Input",A[A.TouchMove=6]="TouchMove",A[A.MediaInteraction=7]="MediaInteraction",A[A.StyleSheetRule=8]="StyleSheetRule",A[A.CanvasMutation=9]="CanvasMutation",A[A.Font=10]="Font",A[A.Log=11]="Log",A[A.Drag=12]="Drag",A[A.StyleDeclaration=13]="StyleDeclaration",A[A.Selection=14]="Selection",A[A.AdoptedStyleSheet=15]="AdoptedStyleSheet",A[A.CustomElement=16]="CustomElement",A),iV=((I=iV||{})[I.MouseUp=0]="MouseUp",I[I.MouseDown=1]="MouseDown",I[I.Click=2]="Click",I[I.ContextMenu=3]="ContextMenu",I[I.DblClick=4]="DblClick",I[I.Focus=5]="Focus",I[I.Blur=6]="Blur",I[I.TouchStart=7]="TouchStart",I[I.TouchMove_Departed=8]="TouchMove_Departed",I[I.TouchEnd=9]="TouchEnd",I[I.TouchCancel=10]="TouchCancel",I),iW=((O=iW||{})[O.Mouse=0]="Mouse",O[O.Pen=1]="Pen",O[O.Touch=2]="Touch",O),iG=((T=iG||{})[T["2D"]=0]="2D",T[T.WebGL=1]="WebGL",T[T.WebGL2=2]="WebGL2",T),iH=((M=iH||{})[M.Play=0]="Play",M[M.Pause=1]="Pause",M[M.Seeked=2]="Seeked",M[M.VolumeChange=3]="VolumeChange",M[M.RateChange=4]="RateChange",M);class iK{constructor(){z(this,"length",0),z(this,"head",null),z(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let iq=(e,t)=>`${e}@${t}`;class iY{constructor(){z(this,"frozen",!1),z(this,"locked",!1),z(this,"texts",[]),z(this,"attributes",[]),z(this,"attributeMap",new WeakMap),z(this,"removes",[]),z(this,"mapRemoves",[]),z(this,"movedMap",{}),z(this,"addedSet",new Set),z(this,"movedSet",new Set),z(this,"droppedSet",new Set),z(this,"mutationCb"),z(this,"blockClass"),z(this,"blockSelector"),z(this,"maskTextClass"),z(this,"maskTextSelector"),z(this,"inlineStylesheet"),z(this,"maskInputOptions"),z(this,"maskTextFn"),z(this,"maskInputFn"),z(this,"keepIframeSrcFn"),z(this,"recordCanvas"),z(this,"inlineImages"),z(this,"slimDOMOptions"),z(this,"dataURLOptions"),z(this,"doc"),z(this,"mirror"),z(this,"iframeManager"),z(this,"stylesheetManager"),z(this,"shadowDomManager"),z(this,"canvasManager"),z(this,"processedNodeManager"),z(this,"unattachedDoc"),z(this,"processMutations",e=>
316{e.forEach(this.processMutation),this.emit()}),z(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new iK,i=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},n=n=>{let o=iw.parentNode(n);if(!o||!iB(n)||"TEXTAREA"===o.tagName)return;let s=ee(o)?this.mirror.getId(iz(n)):this.mirror.getId(o),a=i(n);if(-1===s||-1===a)return r.addNode(n);let l=eI(n,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ij(e,this.mirror)&&this.iframeManager.addIframe(e),iL(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iF(n)&&this.shadowDomManager.addShadowRoot(iw.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});l&&(e.push({parentId:s,nextId:a,node:l}),t.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iJ(this.removes,e,this.mirror)||this.movedSet.has(iw.parentNode(e)))&&n(e);for(let e of this.addedSet)iZ(this.droppedSet,e)||iJ(this.removes,e,this.mirror)?iZ(this.movedSet,e)?n(e):this.droppedSet.add(e):n(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(iw.parentNode(o.value)),r=i(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(iw.parentNode(r.value));if(-1===i(r.value))continue;if(-1!==t){e=r;break}{let t=r.value,i=iw.parentNode(t);if(i&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let t=iw.host(i);if(-1!==this.mirror.getId(t)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),n(e.value)}let s={texts:this.texts.map(e=>{let t=e.node,r=iw.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))}),z(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(iw.childNodes(e),e=>iw.textContent(e)||"").join("")}),z(this,"processMutation",e=>{if(!iR(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=iw.textContent(e.target);iP(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:eE(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,iM(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if("value"===r){let e=el(t);i=eo({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(iP(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(i)){if(t.contentDocument)return;r="rr_src"}if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ek(t.tagName,r)){if(n.attributes[r]=ex(this.doc,es(t.tagName),es(r),i),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let i of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(i),o=t.style.getPropertyPriority(i);e!==r.style.getPropertyValue(i)||o!==r.style.getPropertyPriority(i)?""===o?n.styleDiff[i]=e:n.styleDiff[i]=[e,o]:n._unchangedStyles[i]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(n.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal")}break}case"childList":if(iP(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName){this.genTextAreaValueMutation(e.target);return}
316e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=ee(e.target)?this.mirror.getId(iw.host(e.target)):this.mirror.getId(e.target);iP(e.target,this.blockClass,this.blockSelector,!1)||iR(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iX(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ee(t))return!1;let i=r.getId(t);if(!r.has(i))return!0;let n=iw.parentNode(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||e(n,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iq(r,i)]?iX(this.movedSet,t):this.removes.push({parentId:i,id:r,isShadow:!!(ee(e.target)&&et(e.target))||void 0})),this.mapRemoves.push(t))})}}),z(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(iR(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[iq(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iP(e,this.blockClass,this.blockSelector,!1)&&(iw.childNodes(e).forEach(e=>
316this.genAdds(e)),iF(e)&&iw.childNodes(iw.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iX(e,t){e.delete(t),iw.childNodes(t).forEach(t=>iX(e,t))}function iJ(e,t,r){return 0!==e.length&&function(e,t,r){let i=iw.parentNode(t);for(;i;){let t=r.getId(i);if(e.some(e=>e.id===t))return!0;i=iw.parentNode(i)}return!1}(e,t,r)}function iZ(e,t){return 0!==e.size&&function e(t,r){let i=iw.parentNode(r);return!!i&&(!!t.has(i)||e(t,i))}(e,t)}let iQ=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return;throw e}}:e,i0=[];function i1(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function i2(e,t){let r=new iY;i0.push(r),r.init(e);let i=new(ib())(iQ(r.processMutations.bind(r)));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function i5({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){return i_("scroll",iQ(ik(iQ(o=>{let s=i1(o);if(!s||iP(s,i,n,!0))return;let a=r.getId(s);if(s===t&&t.defaultView){let r=iI(t.defaultView);e({id:a,x:r.left,y:r.top})}else e({id:a,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let i3=["INPUT","TEXTAREA","SELECT"],i4=new WeakMap;function i6(e){var t;return t=[],ne("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ne("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ne("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ne("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function i8(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function i9({mirror:e,stylesheetManager:t},r){var i,n,o;let s=null;s="#document"===r.nodeName?e.getId(r):e.getId(iw.host(r));let a="#document"===r.nodeName?null==(i=r.defaultView)?void 0:i.Document:null==(o=null==(n=r.ownerDocument)?void 0:n.defaultView)?void 0:o.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let i=null==(r=l.set)?void 0:r.call(this,e);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(e){}return i}}),iQ(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function i7(e,t={}){let r;let i=e.doc.defaultView;if(!i)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:d,fontCb:h,selectionCb:p,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),n(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)}
316,e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}(e,t),e.recordDOM&&(r=i2(e,e.doc));let n=function({mousemoveCb:e,sampling:t,doc:r,mirror:i}){let n;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=ik(iQ(t=>{let r=Date.now()-n;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],n=null}),s),u=iQ(ik(iQ(e=>{let t=i1(e),{clientX:r,clientY:o}=iD(e)?e.changedTouches[0]:e;n||(n=iA()),a.push({x:r,y:o,id:i.getId(t),timeOffset:iA()-n}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?i$.Drag:e instanceof MouseEvent?i$.MouseMove:i$.TouchMove)}),o,{trailing:!1})),c=[i_("mousemove",u,r),i_("touchmove",u,r),i_("drag",u,r)];return iQ(()=>{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[],l=null,u=t=>o=>{let s=i1(o);if(iP(s,i,n,!0))return;let a=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":a=iW.Mouse;break;case"touch":a=iW.Touch;break;case"pen":a=iW.Pen}a===iW.Touch?iV[t]===iV.MouseDown?u="TouchStart":iV[t]===iV.MouseUp&&(u="TouchEnd"):iW.Pen}else iD(o)&&(a=iW.Touch);null!==a?(l=a,(u.startsWith("Touch")&&a===iW.Touch||u.startsWith("Mouse")&&a===iW.Mouse)&&(a=null)):iV[t]===iV.Click&&(a=l,l=null);let c=iD(o)?o.changedTouches[0]:o;if(!c)return;let d=r.getId(s),{clientX:h,clientY:p}=c;iQ(e)({type:iV[u],id:d,x:h,y:p,...null!==a&&{pointerType:a}})};return Object.keys(iV).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let r=es(e),i=u(e);if(window.PointerEvent)switch(iV[e]){case iV.MouseDown:case iV.MouseUp:r=r.replace("mouse","pointer");break;case iV.TouchStart:case iV.TouchEnd:return}a.push(i_(r,i,t))}),iQ(()=>{a.forEach(e=>e())})}(e),s=i5(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,i=-1;return i_("resize",iQ(ik(iQ(()=>{let t=iO(),n=iT();(r!==t||i!==n)&&(e({width:Number(n),height:Number(t)}),r=t,i=n)}),200)),t)}(e,{win:i}),l=function({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:o,ignoreSelector:s,maskInputOptions:a,maskInputFn:l,sampling:u,userTriggeredOnInput:c}){function d(e){let r=i1(e),u=e.isTrusted,d=r&&r.tagName;if(r&&"OPTION"===d&&(r=iw.parentElement(r)),!r||!d||0>i3.indexOf(d)||iP(r,i,n,!0)||r.classList.contains(o)||s&&r.matches(s))return;let p=r.value,f=!1,m=el(r)||"";"radio"===m||"checkbox"===m?f=r.checked:(a[d.toLowerCase()]||a[m])&&(p=eo({element:r,maskInputOptions:a,tagName:d,type:m,value:p,maskInputFn:l})),h(r,c?{text:p,isChecked:f,userTriggered:u}:{text:p,isChecked:f});let g=r.name;"radio"===m&&g&&f&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==r){let t=e.value;h(e,c?{text:t,isChecked:!f,userTriggered:!1}:{text:t,isChecked:!f})}})}function h(t,i){let n=i4.get(t);if(!n||n.text!==i.text||n.isChecked!==i.isChecked){i4.set(t,i);let n=r.getId(t);iQ(e)({...i,id:n})}}let p=("last"===u.input?["change"]:["input","change"]).map(e=>i_(e,iQ(d),t)),f=t.defaultView;if(!f)return()=>{p.forEach(e=>e())};let m=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),g=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&p.push(...g.map(e=>iC(e[0],e[1],{set(){iQ(d)({target:this,isTrusted:!1})}},!1,f))),iQ(()=>{p.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:o}){let s=iQ(o=>ik(iQ(n=>{let s=i1(n);if(!s||iP(s,t,r,!0))return;let{currentTime:a,volume:l,muted:u,playbackRate:c,loop:d}=s;e({type:o,id:i.getId(s),currentTime:a,volume:l,muted:u,playbackRate:c,loop:d})}),n.media||500)),a=[i_("play",s(iH.Play),o),i_("pause",s(iH.Pause),o),i_("seeked",s(iH.Seeked),o),i_("volumechange",s(iH.VolumeChange),o),i_("ratechange",s(iH.RateChange),o)];return iQ(()=>
316{a.forEach(e=>e())})}(e),c=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){let n,o;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:iQ((i,n,o)=>{let[s,a]=o,{id:l,styleId:u}=i8(n,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:a}]}),i.apply(n,o)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let n=`${e} { ${t} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:iQ((i,n,o)=>{let[s]=o,{id:a,styleId:l}=i8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:s}]}),i.apply(n,o)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:iQ((i,n,o)=>{let[s]=o,{id:a,styleId:l}=i8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:s}),i.apply(n,o)})})),i.CSSStyleSheet.prototype.replaceSync&&(o=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:iQ((i,n,o)=>{let[s]=o,{id:a,styleId:l}=i8(n,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:s}),i.apply(n,o)})}));let l={};nt("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(nt("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),nt("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),nt("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let u={};return Object.entries(l).forEach(([i,n])=>{u[i]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(u[i].insertRule,{apply:iQ((i,n,o)=>{let[s,a]=o,{id:l,styleId:u}=i8(n.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...i6(n),a||0]}]}),i.apply(n,o)})}),n.prototype.deleteRule=new Proxy(u[i].deleteRule,{apply:iQ((i,n,o)=>{let[s]=o,{id:a,styleId:l}=i8(n.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...i6(n),s]}]}),i.apply(n,o)})})}),iQ(()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,n&&(i.CSSStyleSheet.prototype.replace=n),o&&(i.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:i}),d=i9(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:iQ((n,s,a)=>{var l;let[u,c,d]=a;if(r.has(u))return o.apply(s,[u,c,d]);let{id:h,styleId:p}=i8(null==(l=s.parentRule)?void 0:l.parentStyleSheet,t,i.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:u,value:c,priority:d},index:i6(s.parentRule)}),n.apply(s,a)})});let s=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:iQ((n,o,a)=>{var l;let[u]=a;if(r.has(u))return s.apply(o,[u]);let{id:c,styleId:d}=i8(null==(l=o.parentRule)?void 0:l.parentStyleSheet,t,i.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,remove:{property:u},index:i6(o.parentRule)}),n.apply(o,a)})}),iQ(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:i}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let i=new o(e,t,r);return n.set(i,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};let s=iE(t.fonts,"add",function(t){return function(r){return setTimeout(iQ(()=>{let t=n.get(r);t&&(e(t),n.delete(r))}),0),t.apply(this,[r])}});return i.push(()=>{r.FontFace=o}),i.push(s),iQ(()=>
316{i.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:o}=e,s=!0,a=iQ(()=>{let e=t.getSelection();if(!e||s&&(null==e?void 0:e.isCollapsed))return;s=e.isCollapsed||!1;let a=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);iP(o,i,n,!0)||iP(l,i,n,!0)||a.push({start:r.getId(o),startOffset:s,end:r.getId(l),endOffset:u})}o({ranges:a})});return a(),i_("selectionchange",a)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?iE(r.customElements,"define",function(e){return function(r,i,n){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,i,n])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,i,t.options));return iQ(()=>{i0.forEach(e=>e.reset()),null==r||r.disconnect(),n(),o(),s(),a(),l(),u(),c(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function ne(e){return void 0!==window[e]}function nt(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class nr{constructor(e){z(this,"iframeIdToRemoteIdMap",new WeakMap),z(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){let n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),s=n.get(t);return s||(s=this.generateIdFn(),n.set(t,s),o.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:i.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ni{constructor(e){z(this,"iframes",new WeakMap),z(this,"crossOriginIframeMap",new WeakMap),z(this,"crossOriginIframeMirror",new nr(ey)),z(this,"crossOriginIframeStyleMirror"),z(this,"crossOriginIframeRootIdMap",new WeakMap),z(this,"mirror"),z(this,"mutationCb"),z(this,"wrappedEmit"),z(this,"loadListener"),z(this,"stylesheetManager"),z(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(i=this.loadListener)||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case iU.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:iU.IncrementalSnapshot,data:{source:i$.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iU.Meta:case iU.Load:case iU.DomContentLoaded:break;case iU.Plugin:return t;case iU.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iU.IncrementalSnapshot:switch(t.data.source){case i$.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
316),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i$.Drag:case i$.TouchMove:case i$.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i$.ViewportResize:return!1;case i$.MediaInteraction:case i$.MouseInteraction:case i$.Scroll:case i$.CanvasMutation:case i$.Input:return this.replaceIds(t.data,e,["id"]),t;case i$.StyleSheetRule:case i$.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case i$.Font:return t;case i$.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case i$.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let n of i)(Array.isArray(t[n])||"number"==typeof t[n])&&(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===V.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class nn{constructor(e){z(this,"shadowDoms",new WeakSet),z(this,"mutationCb"),z(this,"scrollCb"),z(this,"bypassOptions"),z(this,"mirror"),z(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!et(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=i2({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(i5({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(iw.host(e))),this.restoreHandlers.push(i9({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(iE(e.prototype,"attachShadow",function(e){return function(i){let n=e.call(this,i),o=iw.shadowRoot(this);return o&&iB(this)&&r.addShadowRoot(o,t),n}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var no="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ns="undefined"==typeof Uint8Array?[]:new Uint8Array(256),na=0;na<no.length;na++)ns[no.charCodeAt(na)]=na;var nl=function(e){var t,r=new Uint8Array(e),i=r.length,n="";for(t=0;t<i;t+=3)n+=no[r[t]>>2]+no[(3&r[t])<<4|r[t+1]>>4]+no[(15&r[t+1])<<2|r[t+2]>>6]+no[63&r[t+2]];return i%3==2?n=n.substring(0,n.length-1)+"=":i%3==1&&(n=n.substring(0,n.length-2)+"=="),n};let nu=new Map,nc=(e,t,r)=>{let i;if(!e||!(nh(e,t)||"object"==typeof e))return;let n=e.constructor.name,o=((i=nu.get(r))||(i=new Map,nu.set(r,i)),i.has(n)||i.set(n,[]),i.get(n)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s},nd=(e,t,r)=>e.map(e=>(function e(t,r,i){if(t instanceof Array)return t.map(t=>e(t,r,i));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:nl(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,i),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,i),t.width,t.height]};else if(nh(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:nc(t,r,i)};return t})(e,t,r)),nh=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function np(e,t,r,i){let n=[];try{let o=iE(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(n,...o){if(!iP(this,t,r,!0)){let e="experimental-webgl"===n?"webgl":n;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e)){if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[n,...o])}});n.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
316{n.forEach(e=>e())}}function nf(e,t,r,i,n,o){let s=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let l=iE(e,a,function(e){return function(...s){let l=e.apply(this,s);if(nc(l,o,this),"tagName"in this.canvas&&!iP(this.canvas,i,n,!0)){let e=nd(s,o,this),i={type:t,property:a,args:e};r(this.canvas,i)}return l}});s.push(l)}catch{let i=iC(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});s.push(i)}return s}let nm="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
316hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ng="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(nm),e=>e.charCodeAt(0))],{type:"text/javascript;charset=utf-8"});function ny(e){let t;try{if(!(t=ng&&(window.URL||window.webkitURL).createObjectURL(ng)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+nm,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class nv{constructor(e){z(this,"pendingCanvasMutations",new Map),z(this,"rafStamps",{latestId:0,invokeId:null}),z(this,"mirror"),z(this,"mutationCb"),z(this,"resetObservers"),z(this,"frozen",!1),z(this,"locked",!1),z(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});let{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(r,i,n),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:s})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,i,n){let o;let s=np(t,r,i,!0),a=new Map,l=new ny;l.onmessage=e=>{let{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;let{base64:r,type:i,width:n,height:o}=e.data;this.mutationCb({id:t,type:iG["2D"],commands:[{property:"clearRect",args:[0,0,n,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0]}]})};let u=1e3/e,c=0,d=()=>{let e=[];return t.document.querySelectorAll("canvas").forEach(t=>{iP(t,r,i,!0)||e.push(t)}),e},h=e=>{if(c&&e-c<u){o=requestAnimationFrame(h);return}
316c=e,d().forEach(async e=>{var t;let r=this.mirror.getId(e);if(a.get(r)||0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let i=await createImageBitmap(e);l.postMessage({id:r,bitmap:i,width:e.width,height:e.height,dataURLOptions:n.dataURLOptions},[i])}),o=requestAnimationFrame(h)};o=requestAnimationFrame(h),this.resetObservers=()=>{s(),cancelAnimationFrame(o)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=np(e,t,r,!1),n=function(e,t,r,i){let n=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=iE(t.CanvasRenderingContext2D.prototype,o,function(n){return function(...s){return iP(this.canvas,r,i,!0)||setTimeout(()=>{let r=nd(s,t,this);e(this.canvas,{type:iG["2D"],property:o,args:r})},0),n.apply(this,s)}});n.push(s)}catch{let r=iC(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:iG["2D"],property:o,args:[t],setter:!0})}});n.push(r)}return()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,i){let n=[];return n.push(...nf(t.WebGLRenderingContext.prototype,iG.WebGL,e,r,i,t)),void 0!==t.WebGL2RenderingContext&&n.push(...nf(t.WebGL2RenderingContext.prototype,iG.WebGL2,e,r,i,t)),()=>{n.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let i=r.map(e=>{let{type:t,...r}=e;return r}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}class nb{constructor(e){z(this,"trackedLinkElements",new WeakSet),z(this,"mutationCb"),z(this,"adoptedStyleSheetCb"),z(this,"styleMirror",new iN),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},i=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:ei(e,t.href),index:r}))})),r.styleIds.push(e)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class nw{constructor(){z(this,"nodeMap",new WeakMap),z(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let n_=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(R=e.contentWindow)?void 0:R.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let nS=new en;function nx(e={}){let t;let{emit:r,checkoutEveryNms:i,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskTextClass:u="rr-mask",maskTextSelector:c=null,inlineStylesheet:d=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:y,packFn:v,sampling:b={},dataURLOptions:w={},mousemoveWait:C,recordDOM:E=!0,recordCanvas:A=!1,recordCrossOriginIframes:I=!1,recordAfter:O="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:T=!1,collectFonts:M=!1,inl
316ineImages:P=!1,plugins:R,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:L}=e;_=L;let F=!I||window.parent===window,N=!1;if(!F)try{window.parent.document&&(N=!1)}catch(e){N=!0}if(F&&!r)throw Error("emit function is required");if(!F&&!N)return()=>{};void 0!==C&&void 0===b.mousemove&&(b.mousemove=C),nS.reset();let z=!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==p?p:{password:!0},B=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f,headTitleMutations:"all"===f}:f||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let U=0,$=e=>{for(let t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return v&&!N&&(e=v(e)),e};S=(e,o)=>{var s;if(e.timestamp=iA(),(null==(s=i0[0])?void 0:s.isFrozen())&&e.type!==iU.FullSnapshot&&!(e.type===iU.IncrementalSnapshot&&e.data.source===i$.Mutation)&&i0.forEach(e=>e.unfreeze()),F)null==r||r($(e),o);else if(N){let t={type:"rrweb",event:$(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===iU.FullSnapshot)t=e,U=0;else if(e.type===iU.IncrementalSnapshot){if(e.data.source===i$.Mutation&&e.data.isAttachIframe)return;U++;let r=n&&U>=n,o=i&&e.timestamp-t.timestamp>i;(r||o)&&x(!0)}};let V=e=>{S({type:iU.IncrementalSnapshot,data:{source:i$.Mutation,...e}})},W=e=>S({type:iU.IncrementalSnapshot,data:{source:i$.Scroll,...e}}),G=e=>S({type:iU.IncrementalSnapshot,data:{source:i$.CanvasMutation,...e}}),H=new nb({mutationCb:V,adoptedStyleSheetCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.AdoptedStyleSheet,...e}})}),K=new ni({mirror:nS,mutationCb:V,stylesheetManager:H,recordCrossOriginIframes:I,wrappedEmit:S});for(let e of R||[])e.getMirror&&e.getMirror({nodeMirror:nS,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});let q=new nw;k=new nv({recordCanvas:A,mutationCb:G,win:window,blockClass:o,blockSelector:s,mirror:nS,sampling:b.canvas,dataURLOptions:w});let Y=new nn({mutationCb:V,scrollCb:W,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:u,maskTextSelector:c,inlineStylesheet:d,maskInputOptions:z,dataURLOptions:w,maskTextFn:g,maskInputFn:m,recordCanvas:A,inlineImages:P,sampling:b,slimDOMOptions:B,iframeManager:K,stylesheetManager:H,canvasManager:k,keepIframeSrcFn:D,processedNodeManager:q},mirror:nS});x=(e=!1)=>{if(!E)return;S({type:iU.Meta,data:{href:window.location.href,width:iT(),height:iO()}},e),H.reset(),Y.init(),i0.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new en,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:d,maskInputFn:h,slimDOM:p=!1,dataURLOptions:f,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:_=()=>!1}=t||{};return eI(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===c?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===c?{password:!0}:c,maskTextFn:d,maskInputFn:h,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:f,inlineImages:l,recordCanvas:u,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:_,newlyAddedElement:!1})}(document,{mirror:nS,blockClass:o,blockSelector:s,maskTextClass:u,maskTextSelector:c,inlineStylesheet:d,maskAllInputs:z,maskTextFn:g,maskInputFn:m,slimDOM:B,dataURLOptions:w,recordCanvas:A,inlineImages:P,onSerialize:e=>{ij(e,nS)&&K.addIframe(e),iL(e,nS)&&H.trackLinkElement(e),iF(e)&&Y.addShadowRoot(iw.shadowRoot(e),document)},onIframeLoad:(e,t)=>{K.attachIframe(e,t),Y.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{H.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");S({type:iU.FullSnapshot,data:{node:t,initialOffset:iI(window)}}
316,e),i0.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&H.adoptStyleSheets(document.adoptedStyleSheets,nS.getId(document))};try{let e=[],t=e=>{var t;return iQ(i7)({mutationCb:V,mousemoveCb:(e,t)=>S({type:iU.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.ViewportResize,...e}}),inputCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.Input,...e}}),mediaInteractionCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.MediaInteraction,...e}}),styleSheetRuleCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.StyleSheetRule,...e}}),styleDeclarationCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>S({type:iU.IncrementalSnapshot,data:{source:i$.Font,...e}}),selectionCb:e=>{S({type:iU.IncrementalSnapshot,data:{source:i$.Selection,...e}})},customElementCb:e=>{S({type:iU.IncrementalSnapshot,data:{source:i$.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:l,maskTextClass:u,maskTextSelector:c,maskInputOptions:z,inlineStylesheet:d,sampling:b,recordDOM:E,recordCanvas:A,inlineImages:P,userTriggeredOnInput:T,collectFonts:M,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:D,blockSelector:s,slimDOMOptions:B,dataURLOptions:w,mirror:nS,iframeManager:K,stylesheetManager:H,shadowDomManager:Y,processedNodeManager:q,canvasManager:k,ignoreCSSAttributes:j,plugins:(null==(t=null==R?void 0:R.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>S({type:iU.Plugin,data:{plugin:e.name,payload:t}})})))||[]},y)};K.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{x(),e.push(t(document)),n_=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(i_("DOMContentLoaded",()=>{S({type:iU.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&r()})),e.push(i_("load",()=>{S({type:iU.Load,data:{}}),"load"===O&&r()},window))),()=>{e.forEach(e=>e()),q.destroy(),n_=!1,_=void 0}}catch(e){console.warn(e)}}nx.addCustomEvent=(e,t)=>{if(!n_)throw Error("please add custom event after start recording");S({type:iU.Custom,data:{tag:e,payload:t}})},nx.freezePage=()=>{i0.forEach(e=>e.freeze())},nx.takeFullSnapshot=e=>{if(!n_)throw Error("please take full snapshot after start recording");x(e)},nx.mirror=nS,(P=D||(D={}))[P.NotStarted=0]="NotStarted",P[P.Running=1]="Running",P[P.Stopped=2]="Stopped",t.record=nx},375:function(e,t,r){"use strict";var i,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let s=r(9025);t._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:d}catch(e){return d}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let r=(0,t._getStatsigGlobal)();return e?r.instances&&r.instances[e]:(r.instances&&Object.keys(r.instances).length>1&&s.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),r.firstInstance)};let a="__STATSIG__",l="undefined"!=typeof window?window:{},u=void 0!==r.g?r.g:{},c="undefined"!=typeof globalThis?globalThis:{},d=null!==(o=null!==(n=null!==(i=l[a])&&void 0!==i?i:u[a])&&void 0!==n?n:c[a])&&void 0!==o?o:{instance:t._getInstance};l[a]=d,u[a]=d,c[a]=d},1867:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let i=r(6152);function n(e,t,r){var n;if(r)return r(e,t);let o=t&&t.customIDs?t.customIDs:{},s=[`uid:${null!==(n=null==t?void 0:t.userID)&&void 0!==n?n:""}`,`cids:${Object.keys(o).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${o[e]}`).join(",")}`,`k:${e}`];return(0,i._DJB2)(s.join("|"))}t._getUserStorageKey=n,t._getStorageKey=function(e,t,r){return t?n(e,t,r):(0,i._DJB2)(`k:${e}`)}},394:function(e,t){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0})},3183:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;let n=r(9025),o=r(3463),s=r(9063),a=r(8614),l=r(3111);class u{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new d}attach(e,t,r){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,s._normalizeUser)(e,this._options),r=this._getCacheKey(t),i=this._inMemoryCache.get(r,t);if(i&&this._getIsCacheValueValid(i))return i;let n=this._loadFromCache(r);return n&&this._getIsCacheValueValid(n)?(this._inMemoryCache.add(r,n,this._cacheLimit),this._inMemoryCache.get(r,t)):null}setData(e,t){let r=t&&(0,s._normalizeUser)(t,this._options),i=this._getCacheKey(r);this._inMemoryCache.add(i,c("Bootstrap",e,null,r),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===o.StableID.get(this._getSdkKey())}_getDataAsyncImpl(e,t,r){return i(this,void 0,void 0,function*(){a.Storage.isReady()||(yield a.Storage.isReadyResolver());let i=null!=e?e:this.getDataSync(t),o=[this._fetchAndPrepFromNetwork(i,t,r)];return(null==r?void 0:r.timeoutMs)&&o.push(new Promise(e=>setTimeout(e,r.timeoutMs)).then(()=>(n.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(o)})}_prefetchDataImpl(e,t){return i(this,void 0,void 0,function*(){let r=e&&(0,s._normalizeUser)(e,this._options),i=this._getCacheKey(r),n=yield this._getDataAsyncImpl(null,r,t);n&&this._inMemoryCache.add(i,Object.assign(Object.assign({},n),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(e,t,r){return i(this,void 0,void 0,function*(){var i;let s=null!==(i=null==e?void 0:e.data)&&void 0!==i?i:null,a=null!=e&&this._isCachedResultValidFor204(e,t),u=yield this._fetchFromNetwork(s,t,r,a);if(!u)return n.Log.debug("No response returned for latest value"),null;let d=(0,l._typedJsonParse)(u,"has_updates","Response"),h=this._getSdkKey(),p=o.StableID.get(h),f=null;if((null==d?void 0:d.has_updates)===!0)f=c("Network",u,p,t);else{if(!s||(null==d?void 0:d.has_updates)!==!1)return null;f=c("NetworkNotModified",s,p,t)}let m=this._getCacheKey(t);return this._inMemoryCache.add(m,f,this._cacheLimit),this._writeToCache(m,f),f})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(n.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let r=null===(t=a.Storage.getItem)||void 0===t?void 0:t.call(a.Storage,e);if(null==r)return null;let i=(0,l._typedJsonParse)(r,"source","Cached Result");return i?Object.assign(Object.assign({},i),{source:"Cache"}):null}_writeToCache(e,t){let r=JSON.stringify(t);for(let t=0;t<8;t++)try{a.Storage.setItem(e,r);break}catch(t){if(!(t instanceof Error)||!(t.toString().includes("QuotaExceededError")||t.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw t;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var r;let i=null!==(r=(0,a._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==r?r:{};for(let r of(i[e]=Date.now(),h(i,t)))delete i[r],a.Storage.removeItem(r);(0,a._setObjectInStorage)(this._lastModifiedStoreKey,i)}}function c(e,t,r,i){return{source:e,data:t,receivedAt:Date.now(),stableID:r,fullUserHash:(0,s._getFullUserHash)(i)}}t.DataAdapterCore=u,t._makeDataAdapterResult=c;class d{constructor(){this._data={}}get(e,t){var r;let i=this._data[e],o=null==i?void 0:i.stableID,s=null===(r=null==t?void 0:t.customIDs)||void 0===r?void 0:r.stableID;return s&&o&&s!==o?(n.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):i}add(e,t,r){for(let e of h(this._data,r-1))delete this._data[e];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function h(e,t){let r=Object.keys(e);return r.length<=t?[]:0===t?r:r.sort((t,r)=>{let i=e[t],n=e[r];return"object"==typeof i&&"object"==typeof n?i.receivedAt-n.receivedAt:i-n}).slice(0,r.length-t)}},642:function(e,t){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let r=new Map,i="start";function n(e,t,r,i){return Object.assign({key:r,action:t,step:i,timestamp:Date.now()},e)}function o(e,t){var i;let n=null!==(i=r.get(e))&&void 0!==i?i:[];n.push(t),r.set(e,n)}function s(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>r.get(e),_markInitOverallStart:e=>{o(e,n({},i,"overall"))},_markInitOverallEnd:(e,t,r)=>{o(e,n({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:r},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{o(e,n(t,i,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{o(e,n(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{o(e,n({},i,"initialize","process"))},_markInitProcessEnd:(e,t)=>{o(e,n(t,"end","initialize","process"))},_clearMarkers:e=>{r.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:s(e,"code"),name:s(e,"name"),message:s(e,"message")}},_getDiagnosticsData(e,r,i,n){var o;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null===(o=null==e?void 0:e.headers)||void 0===o?void 0:o.get("x-statsig-region"),isDelta:!0===i.includes('"is_delta":true')||void 0,attempt:r,error:t.Diagnostics._formatError(n)}},_enqueueDiagnosticsEvent(e,r,i,n){let o=t.Diagnostics._getMarkers(i);if(null==o||o.length<=0)return -1;let s=o[o.length-1].timestamp-o[0].timestamp;t.Diagnostics._clearMarkers(i);let a={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:o.slice(),statsigOptions:n},time:Date.now()};return r.enqueue(a),s}}},9549:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let i=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),n=["i","e","d"];t._fetchTxtRecords=function(e){return r(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:i});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}let r=yield t.arrayBuffer();return function(e){let t=e.findIndex((t,r)=>r<200&&"="===String.fromCharCode(t)&&n.includes(String.fromCharCode(e[r-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let r="";for(let i=t-1;i<e.length;i++)r+=String.fromCharCode(e[i]);return r.split(",")}(new Uint8Array(r))})}},6831:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9801:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;let n=r(9025),o=r(5881),s=r(6801);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let a="[Statsig] UnknownError";
316class l{constructor(e,t,r,i){this._sdkKey=e,this._options=t,this._emitter=r,this._lastSeenError=i,this._seen=new Set}wrap(e,t){try{(function(e){let t=new Set,r=Object.getPrototypeOf(e);for(;r&&r!==Object.prototype;)Object.getOwnPropertyNames(r).filter(e=>"function"==typeof(null==r?void 0:r[e])).forEach(e=>t.add(e)),r=Object.getPrototypeOf(r);return Array.from(t)})(e).forEach(r=>{let i=e[r];"$EB"in i||(e[r]=(...n)=>this._capture(t?`${t}:${r}`:r,()=>i.apply(e,n)),e[r].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=u(e))}_capture(e,t){try{let r=t();if(r&&r instanceof Promise)return r.catch(t=>this._onError(e,t));return r}catch(t){return this._onError(e,t),null}}_onError(e,r){try{n.Log.warn(`Caught error in ${e}`,{error:r}),i(this,void 0,void 0,function*(){var i,n,l,c,d,h,p;let f=r||Error(a),m=f instanceof Error,g=m?f.name:"No Name",y=u(f);if(this._lastSeenError=y,this._seen.has(g))return;if(this._seen.add(g),null===(n=null===(i=this._options)||void 0===i?void 0:i.networkConfig)||void 0===n?void 0:n.preventAllNetworkTraffic){null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:r,tag:e});return}let v=o.SDKType._get(this._sdkKey),b=s.StatsigMetadataProvider.get(),w=m?f.stack:function(e){try{return JSON.stringify(e)}catch(e){return a}}(f),_=Object.assign({tag:e,exception:g,info:w,statsigOptions:function(e){if(!e)return{};let t={};return Object.keys(e).forEach(r=>{let i=e[r];switch(typeof i){case"number":case"bigint":case"boolean":t[String(r)]=i;break;case"string":i.length<50?t[String(r)]=i:t[String(r)]="set";break;case"object":"environment"===r?t.environment=i:"networkConfig"===r?t.networkConfig=i:t[String(r)]=null!=i?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},b),{sdkType:v})),S=null!==(h=null===(d=null===(c=this._options)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.networkOverrideFunc)&&void 0!==h?h:fetch;yield S(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(v),"STATSIG-SDK-VERSION":String(b.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(_)}),null===(p=this._emitter)||void 0===p||p.call(this,{name:"error",error:r,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}function u(e){return e instanceof Error?e:"string"==typeof e?Error(e):Error("An unknown error occurred.")}t.ErrorBoundary=l},624:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6156:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let n=r(1867),o=r(6152),s=r(9025),a=r(3975),l=r(7631),u=r(9817),c=r(6790),d=r(8614),h=r(801),p=r(5260),f={},m={Startup:"startup",GainedFocus:"gained_focus"};class g{static _safeFlushAndForget(e){var t;null===(t=f[e])||void 0===t||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null===(t=f[e])||void 0===t||t._retryFailedLogs(m.GainedFocus)}
316constructor(e,t,r,i){var n,o;this._sdkKey=e,this._emitter=t,this._network=r,this._options=i,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!==(n=null==i?void 0:i.loggingEnabled)&&void 0!==n?n:(null==i?void 0:i.disableLogging)===!0?c.LoggingEnabledOption.disabled:c.LoggingEnabledOption.browserOnly,(null==i?void 0:i.loggingEnabled)&&void 0!==i.disableLogging&&s.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!==(o=null==i?void 0:i.loggingBufferMaxSize)&&void 0!==o?o:100;let l=null==i?void 0:i.networkConfig;this._logEventUrlConfig=new h.UrlConfiguration(a.Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){if("disabled"===this._loggingEnabled&&"disabled"!==e){let e=this._getStorageKey(),t=(0,d._getObjectFromStorage)(e);t&&this._queue.push(...t),d.Storage.removeItem(e)}this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&g._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let r=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=r+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;let t=(0,l._isServerEnv)();t&&(null===(e=this._options)||void 0===e?void 0:e.loggingEnabled)!=="always"||(f[this._sdkKey]=this,t||(0,p._subscribeToVisiblityChanged)(e=>{"background"===e?g._safeFlushAndForget(this._sdkKey):"foreground"===e&&g._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(m.Startup),this._startBackgroundFlushInterval())}stop(){return i(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete f[this._sdkKey],yield this.flush()})}flush(){return i(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){!this._hasRunQuickFlush&&(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>g._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.loggingEnabled)!=="always"&&(0,l._isServerEnv)())return!1;if(!(0,u._isExposureEvent)(e))return!0;let r=e.user?e.user:{statsigEnvironment:void 0},i=(0,n._getUserStorageKey)(this._sdkKey,r),o=e.metadata?e.metadata:{},s=[e.eventName,i,o.gate,o.config,o.ruleID,o.allocatedExperiment,o.parameterName,String(o.isExplicitParameter),o.reason].join("|"),a=this._lastExposureTimeMap[s],c=Date.now();return(!a||!(c-a<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[s]=c,!0)}_sendEvents(e){return i(this,void 0,void 0,function*(){var t,r;if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{let i=(0,p._isUnloading)()&&this._network.isBeaconSupported()&&(null===(r=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===r?void 0:r.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:e}),(i?this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return s.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return s.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){return i(this,void 0,void 0,function*(){var t;let r=yield this._network.post(this._getRequestData(e)),i=null!==(t=null==r?void 0:r.code)&&void 0!==t?t:-1;return{success:i>=200&&i<300}})}_sendEventsViaBeacon(e){return{success:this._network.beacon(this._getRequestData(e))}}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[a.NetworkParam.EventC
316ount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{let r=this._getFailedLogsFromStorage(t);(0,d._setObjectInStorage)(t,[...r,...e])}catch(e){s.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(e){let t=[];try{let r=(0,d._getObjectFromStorage)(e);return Array.isArray(r)&&(t=r),t}catch(e){return[]}}_retryFailedLogs(e){let t=this._getStorageKey();i(this,void 0,void 0,function*(){d.Storage.isReady()||(yield d.Storage.isReadyResolver());let r=(0,d._getObjectFromStorage)(t);r&&(e===m.Startup&&d.Storage.removeItem(t),(yield this._sendEvents(r))&&e===m.GainedFocus&&d.Storage.removeItem(t))}).catch(()=>{s.Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,o._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},r=this._getCurrentPageUrl();r&&(t.statsigMetadata={currentPage:r});let i=Object.assign(Object.assign({},e),t);s.Log.debug("Enqueued Event:",i),this._queue.push(i)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if((null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,l._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let r=setInterval(()=>{let e=f[this._sdkKey];e&&e._flushIntervalId===r?g._safeFlushAndForget(this._sdkKey):clearInterval(r)},null!==(t=null===(e=this._options)||void 0===e?void 0:e.loggingIntervalMs)&&void 0!==t?t:1e4);this._flushIntervalId=r}}t.EventLogger=g},6152:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let i=r(8687);t._DJB2=e=>{let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return String(t>>>0)},t._DJB2Object=(e,r)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,r))),t._getSortedObject=(e,r)=>{if(null==e)return null;let n=Object.keys(e).sort(),o={};return n.forEach(n=>{let s=e[n];if(0===r||"object"!==(0,i._typeOf)(s)){o[n]=s;return}o[n]=(0,t._getSortedObject)(s,null!=r?r-1:r)}),o}},6724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9025:function(e,t){"use strict";function r(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class i{static info(...e){i.level>=t.LogLevel.Info&&console.info("  INFO ",...r(e))}static debug(...e){i.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...r(e))}static warn(...e){i.level>=t.LogLevel.Warn&&console.warn("  WARN ",...r(e))}static error(...e){i.level>=t.LogLevel.Error&&console.error(" ERROR ",...r(e))}}t.Log=i,i.level=t.LogLevel.Warn},1231:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let r=new Set([]),i=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,n){let o=`${e}|${t}`;if(!n)return o;for(let e of Object.keys(n)){if(i.has(e))return;r.has(e)?o+=`|${e}=true`:o+=`|${e}=${n[e]}`}return o}},3975:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},3284:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};
316Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,r(375);let n=r(375),o=r(642),s=r(9025),a=r(3975),l=r(4930),u=r(1753),c=r(5881),d=r(7631),h=r(7995),p=r(3463),f=r(6478),m=r(6801),g=r(6790),y=r(5260),v=new Set([408,500,502,503,504,522,524,599]);class b{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new l.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){if(!w(e))return!1;let t=this._getInternalRequestArgs("POST",e),r=this._getPopulatedURL(t),i=navigator;return i.sendBeacon.bind(i)(r,t.body)}post(e){return i(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){return i(this,void 0,void 0,function*(){var t,r,n,l,u,c;if(!w(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:d,body:h,retries:p,attempt:m}=e,g=e.urlConfig.endpoint;if(this._isRateLimited(g))return s.Log.warn(`Request to ${g} was blocked because you are making requests too frequently.`),null;let b=null!=m?m:1,_=!1,x=this._getPopulatedURL(e),k=null,C=(0,y._isUnloading)();try{let r;let i={method:d,body:h,headers:Object.assign({},e.headers),priority:e.priority,keepalive:C};e.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:b});let n=this._leakyBucket[g];n&&(n.lastRequestTime=Date.now(),this._leakyBucket[g]=n);let s=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?t:fetch;if(!(k=yield Promise.race([s(x,i).finally(()=>clearTimeout(r)),new Promise((e,t)=>{r=setTimeout(()=>{_=!0,t(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})])).ok){let e=yield k.text().catch(()=>"No Text"),t=Error(`NetworkError: ${x} ${e}`);throw t.name="NetworkError",t}let l=yield k.text();return S(e,k,b,l),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:l,code:k.status}}catch(a){let t="string"==typeof a?a:a instanceof Error?`${a.name}: ${a.message}`:"Unknown Error",o=(u=null!=t?t:"",c=_,u.includes("Timeout")||c);if(S(e,k,b,"",a),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,o))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!p||b>p||!v.has(null!==(r=null==k?void 0:k.status)&&void 0!==r?r:500)){null===(n=this._emitter)||void 0===n||n.call(this,{name:"error",error:a,tag:f.ErrorTag.NetworkError,requestArgs:e});let r=`A networking error occurred during ${d} request to ${x}.`;return s.Log.error(r,t,a),null===(l=this._errorBoundary)||void 0===l||l.attachErrorIfNoneExists(r),null}return yield function(e){return i(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(b),this._sendRequest(Object.assign(Object.assign({},e),{retries:p,attempt:b+1}))}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=g.LogEventCompressionMode.Disabled),t||(t=g.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let r=Date.now(),i=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:r},n=r-i.lastRequestTime;return i.count=Math.max(0,i.count-Math.floor(.05*n)),i.count>
316=50||(i.count+=1,i.lastRequestTime=r,this._leakyBucket[e]=i,!1)}_getPopulatedURL(e){var t;let r=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===a.Endpoint._initialize||e.urlConfig.endpoint===a.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=r);let i=Object.assign({[a.NetworkParam.SdkKey]:e.sdkKey,[a.NetworkParam.SdkType]:c.SDKType._get(e.sdkKey),[a.NetworkParam.SdkVersion]:m.SDK_VERSION,[a.NetworkParam.Time]:String(Date.now()),[a.NetworkParam.SessionID]:h.SessionID.get(e.sdkKey)},e.params),n=Object.keys(i).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`).join("&");return`${r}${n?`?${n}`:""}`}_tryEncodeBody(e){var t;let r=(0,d._getWindowSafe)(),i=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof i&&null==(0,n._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(i).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[a.NetworkParam.StatsigEncoded]:"1"})}catch(t){s.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){return i(this,void 0,void 0,function*(){var t;let r=e.body;if("string"==typeof r&&function(e,t){if(!e.isCompressable||null!=(0,n._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;let r=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,i=!0===u.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case g.LogEventCompressionMode.Disabled:return!1;case g.LogEventCompressionMode.Enabled:if(r&&!i)return!1;return!0;case g.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{let i;let n=new TextEncoder().encode(r),o=new CompressionStream("gzip"),l=o.writable.getWriter();l.write(n).catch(s.Log.error),l.close().catch(s.Log.error);let u=o.readable.getReader(),c=[];for(;!(i=yield u.read()).done;)c.push(i.value);let d=c.reduce((e,t)=>e+t.length,0),h=new Uint8Array(d),p=0;for(let e of c)h.set(e,p),p+=e.length;e.body=h,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[a.NetworkParam.IsGzipped]:"1"})}catch(t){s.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let r=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),i=Object.assign(Object.assign({},t),{method:e,fallbackUrl:r});return"data"in t&&_(i,t.data),i}}t.NetworkCore=b;let w=e=>!!e.sdkKey||(s.Log.warn("Unable to make request without an SDK key"),!1),_=(e,t)=>{let{sdkKey:r,fallbackUrl:i}=e,n=p.StableID.get(r),o=h.SessionID.get(r),s=c.SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},m.StatsigMetadataProvider.get()),{stableID:n,sessionID:o,sdkType:s,fallbackUrl:i})}))};function S(e,t,r,i,n){e.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(e.sdkKey,o.Diagnostics._getDiagnosticsData(t,r,i,n))}},4930:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let n=r(9549),o=r(6152),s=r(9025),a=r(8614);class l{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var r;let i=null===(r=this._fallbackInfo)||void 0===r?void 0:r[t.endpoint];i&&(i.expiryTime=Date.now()+6048e5,d(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:i})))}getActiveFallbackUrl(e,t){var r,i;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let n=this._fallbackInfo;null==n&&(n=null!==(r=function(e){let t=c(e),r=a.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return s.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==r?r:{},this._fallbackInfo=n);let o=n[t.endpoint];return!o||Date.now()>(null!==(i=o.expiryTime)&&void 0!==i?i:0)||t.getChecksum()!==o.urlConfigChecksum?(delete n[t.endpoint],this._fallbackInfo=n,d(e,this._fallbackInfo),null):o.url?o.url:null}tryFetchUpdatedFallbackInfo(e,t,r,n){return i(this,void 0,void 0,function*(){var i,o;try{if(!u(r,n))return!1;let o=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,s=this._pickNewFallbackUrl(null===(i=this._fallbackInfo)||void 0===i?void 0:i[t.endpoint],o);if(!s)return!1;
316return this._updateFallbackInfoWithNewUrl(e,t,s),!0}catch(e){return null===(o=this._errorBoundary)||void 0===o||o.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,r){var i,n,o;let s={urlConfigChecksum:t.getChecksum(),url:r,expiryTime:Date.now()+6048e5,previous:[]},a=t.endpoint,l=null===(i=this._fallbackInfo)||void 0===i?void 0:i[a];l&&s.previous.push(...l.previous),s.previous.length>10&&(s.previous=[]);let u=null===(o=null===(n=this._fallbackInfo)||void 0===n?void 0:n[a])||void 0===o?void 0:o.url;null!=u&&s.previous.push(u),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[a]:s}),d(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){return i(this,void 0,void 0,function*(){var t;let r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()<r)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;let i=[],o=yield(0,n._fetchTxtRecords)(null!==(t=this._networkOverrideFunc)&&void 0!==t?t:fetch),s=function(e){try{return new URL(e).pathname}catch(e){return null}}(e.defaultUrl);for(let t of o){if(!t.startsWith(e.endpointDnsKey+"="))continue;let r=t.split("=");if(r.length>1){let e=r[1];e.endsWith("/")&&(e=e.slice(0,-1)),i.push(`https://${e}${s}`)}}return i})}_pickNewFallbackUrl(e,t){var r;if(null==t)return null;let i=new Set(null!==(r=null==e?void 0:e.previous)&&void 0!==r?r:[]),n=null==e?void 0:e.url,o=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!i.has(e)&&t!==n){o=t;break}}return o}}function u(e,t){var r;let i=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"";return t||i.includes("uncaught exception")||i.includes("failed to fetch")||i.includes("networkerror when attempting to fetch resource")}function c(e){return`statsig.network_fallback.${(0,o._DJB2)(e)}`}function d(e,t){let r=c(e);if(!t||0===Object.keys(t).length){a.Storage.removeItem(r);return}a.Storage.setItem(r,JSON.stringify(t))}t.NetworkFallbackResolver=l,t._isDomainFailure=u},34:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4632:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let r={};t.SDKFlags={setFlags:(e,t)=>{r[e]=t},get:(e,t)=>{var i,n;return null!==(n=null===(i=r[e])||void 0===i?void 0:i[t])&&void 0!==n&&n}}},5881:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let i={};t.SDKType={_get:e=>{var t;return(null!==(t=i[e])&&void 0!==t?t:"js-mono")+(null!=r?r:"")},_setClientType(e,t){i[e]=t},_setBindingType(e){r&&"-react"!==r||(r="-"+e)}}},7631:function(e,t,r){"use strict";var i=r(3454);Object.defineProperty(t,"__esModule",{value:!0}),t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0,t._getWindowSafe=()=>"undefined"!=typeof window?window:null,t._getDocumentSafe=()=>{var e;let r=(0,t._getWindowSafe)();return null!==(e=null==r?void 0:r.document)&&void 0!==e?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e=void 0!==i&&null!=i.versions&&null!=i.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,r)=>{let i=(0,t._getWindowSafe)();"function"==typeof(null==i?void 0:i.addEventListener)&&i.addEventListener(e,r)},t._addDocumentEventListenerSafe=(e,r)=>{let i=(0,t._getDocumentSafe)();"function"==typeof(null==i?void 0:i.addEventListener)&&i.addEventListener(e,r)},t._getCurrentPageUrlSafe=()=>{var e;try{return null===(e=(0,t._getWindowSafe)())||void 0===e?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"}},7995:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let i=r(375),n=r(1867),o=r(9025),s=r(8614),a=r(9382),l={};function u(e,t){return setTimeout(()=>{var t;let r=null===(t=(0,i._getStatsigGlobal)())||void 0===t?void 0:t.instance(e);r&&r.$emt({name:"session_expired"})},t)}function c(e){return`statsig.session_id.${(0,n._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>(null==l[e]&&(l[e]=function(e){let t=function(e){let t=c(e);return(0,s._getObjectFromStorage)(t)}(e),r=Date.now();return t||(t={sessionID:(0,a.getUUID)(),startTime:r,lastUpdate:r}),{data:t,sdkKey:e}}(e)),function(e){let t=Date.now(),r=e.data,i=e.sdkKey;if(function({lastUpdate:e}){return Date.now()-e>18e5}(r)||function({startTime:e}){return Date.now()-e>144e5}(r)){r.sessionID=(0,a.getUUID)(),r.startTime=t;let e=null==__STATSIG__?void 0:__STATSIG__.instance(i);e&&e.$emt({name:"session_expired"})}r.lastUpdate=t,function(e,t){let r=c(t);try{(0,s._setObjectInStorage)(r,e)}catch(e){o.Log.warn("Failed to save SessionID")}}(r,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);let n=t-r.startTime;return e.idleTimeoutID=u(i,18e5),e.ageTimeoutID=u(i,144e5-n),e}(l[e])),overrideInitialSessionID:(e,t)=>{l[t]=function(e,t){let r=Date.now();return{data:{sessionID:e,startTime:r,lastUpdate:r},sdkKey:t}}(e,t)}}},1486:function(e,t){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0,t._fastApproxSizeOf=(e,r)=>{let i=0,n=Object.keys(e);for(let o=0;o<n.length;o++){let s=n[o],a=e[s];if(i+=s.length,"object"==typeof a&&null!==a?i+=(0,t._fastApproxSizeOf)(a,r)+2:i+=String(a).length+1,i>=r)break}return i}},3463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCookieName=t.StableID=void 0;let i=r(1867),n=r(9025),o=r(7631),s=r(8614),a=r(9382),l={},u={},c={};function d(e){return`statsig.stable_id.${(0,i._getStorageKey)(e)}`}function h(e,t){let r=d(t);try{(0,s._setObjectInStorage)(r,e)}catch(e){n.Log.warn("Failed to save StableID to storage")}}function p(e,t){if(!u[t]||null==(0,o._getDocumentSafe)())return;let r=new Date;r.setFullYear(r.getFullYear()+1),document.cookie=`${f(t)}=${encodeURIComponent(e)}; expires=${r.toUTCString()}; path=/`}function f(e){return`statsig.stable_id.${(0,i._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(c[e])return null;if(null!=l[e])return l[e];let t=null;return null!=(t=function(e){if(!u[e]||null==(0,o._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[r,i]=t.trim().split("=");if(r===f(e))return decodeURIComponent(i)}return null}(e))?(l[e]=t,h(t,e)):(null==(t=function(e){let t=d(e);return(0,s._getObjectFromStorage)(t)}(e))&&(t=(0,a.getUUID)()),h(t,e),p(t,e),l[e]=t),t},setOverride:(e,t)=>{l[t]=e,h(e,t),p(e,t)},_setCookiesEnabled:(e,t)=>{u[e]=t},_setDisabled:(e,t)=>{c[e]=t}},t.getCookieName=f},4850:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,r(375);let n=r(375),o=r(9801),s=r(6156),a=r(9025),l=r(1231),u=r(7631),c=r(7995),d=r(3463),h=r(6790),p=r(8614);
316class f{constructor(e,t,r,i){var l,h,f,m;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let g=this.$emt.bind(this);(null==i?void 0:i.logLevel)!=null&&(a.Log.level=i.logLevel),(null==i?void 0:i.disableStorage)&&p.Storage._setDisabled(!0),(null==i?void 0:i.initialSessionID)&&c.StatsigSession.overrideInitialSessionID(i.initialSessionID,e),(null==i?void 0:i.storageProvider)&&p.Storage._setProvider(i.storageProvider),(null==i?void 0:i.enableCookies)&&d.StableID._setCookiesEnabled(e,i.enableCookies),(null==i?void 0:i.disableStableID)&&d.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=i?i:{},this._memoCache={},this.overrideAdapter=null!==(l=null==i?void 0:i.overrideAdapter)&&void 0!==l?l:null,this._logger=new s.EventLogger(e,g,r,i),this._errorBoundary=new o.ErrorBoundary(e,i,g),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,i,r),this.storageProvider=p.Storage,null===(m=null===(f=null===(h=this.overrideAdapter)||void 0===h?void 0:h.loadFromStorage)||void 0===f?void 0:f.call(h))||void 0===m||m.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var r;if((0,u._isServerEnv)())return;let i=(0,n._getStatsigGlobal)(),o=null!==(r=i.instances)&&void 0!==r?r:{};null!=o[e]&&a.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),o[e]=t,i.firstInstance||(i.firstInstance=t),i.instances=o,__STATSIG__=i}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,p.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,d.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(h.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return i(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let r=this._listeners[e].indexOf(t);-1!==r&&this._listeners[e].splice(r,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let r=t=>{try{t(e)}catch(r){if(!0===t.__isInternal){this._errorBoundary.logError(`__emit:${e.name}`,r);return}a.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>r(e)),null===(t=this._listeners["*"])||void 0===t||t.forEach(r)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,r){if((null==r?void 0:r.disableExposureLog)===!0){this._logger.incrementNonExposureCount(e);return}this._logger.enqueue(t)}_memoize(e,t){return(r,i)=>{if(this._options.disableEvaluationMemoization)return t(r,i);let n=(0,l.createMemoKey)(e,r,i);return n?(n in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[n]=t(r,i)),this._memoCache[n]):t(r,i)}}}t.StatsigClientBase=f},6478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},9817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let r="statsig::config_exposure",i="statsig::gate_exposure",n="statsig::layer_exposure",o=(e,t,r,i,n)=>(r.bootstrapMetadata&&(i.bootstrapMetadata=r.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:a(r,i),secondaryExposures:n,time:Date.now()});function s(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>
316e===i||e===r||e===n,t._createGateExposure=(e,t,r)=>{var n,a,l;let u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null===(n=t.__evaluation)||void 0===n?void 0:n.version)!=null&&(u.configVersion=t.__evaluation.version),o(i,e,t.details,u,s(null!==(l=null===(a=t.__evaluation)||void 0===a?void 0:a.secondary_exposures)&&void 0!==l?l:[],r))},t._mapExposures=s,t._createConfigExposure=(e,t,i)=>{var n,a,l,u;let c={config:t.name,ruleID:t.ruleID};return(null===(n=t.__evaluation)||void 0===n?void 0:n.version)!=null&&(c.configVersion=t.__evaluation.version),(null===(a=t.__evaluation)||void 0===a?void 0:a.passed)!=null&&(c.rulePassed=String(t.__evaluation.passed)),o(r,e,t.details,c,s(null!==(u=null===(l=t.__evaluation)||void 0===l?void 0:l.secondary_exposures)&&void 0!==u?u:[],i))},t._createLayerParameterExposure=(e,t,r,i)=>{var a,l,u,c,d,h,p;let f=t.__evaluation,m=(null===(a=null==f?void 0:f.explicit_parameters)||void 0===a?void 0:a.includes(r))===!0,g="",y=null!==(l=null==f?void 0:f.undelegated_secondary_exposures)&&void 0!==l?l:[];m&&(g=null!==(u=f.allocated_experiment_name)&&void 0!==u?u:"",y=null!==(c=f.secondary_exposures)&&void 0!==c?c:[]);let v=null===(d=t.__evaluation)||void 0===d?void 0:d.parameter_rule_ids,b={config:t.name,parameterName:r,ruleID:null!==(h=null==v?void 0:v[r])&&void 0!==h?h:t.ruleID,allocatedExperiment:g,isExplicitParameter:String(m)};return(null===(p=t.__evaluation)||void 0===p?void 0:p.version)!=null&&(b.configVersion=t.__evaluation.version),o(n,e,t.details,b,s(y,i))};let a=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},6801:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.27.0";let r={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>r,add:e=>{r=Object.assign(Object.assign({},r),e)}}},6790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},1497:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8431:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let i=r(9025),n=r(8687);function o(e,t,r,i){var n;return{name:e,details:t,ruleID:null!==(n=null==r?void 0:r.rule_id)&&void 0!==n?n:"",__evaluation:r,value:i}}function s(e,t,r){var i,n;let s=null!==(i=null==r?void 0:r.value)&&void 0!==i?i:{};return Object.assign(Object.assign({},o(e,t,r,s)),{idType:null!==(n=null==r?void 0:r.id_type)&&void 0!==n?n:null,get:a(e,null==r?void 0:r.value)})}function a(e,t,r){return(o,s)=>{var a;let l=null!==(a=null==t?void 0:t[o])&&void 0!==a?a:null;return null==l?null!=s?s:null:null==s||(0,n._isTypeMatch)(l,s)?(null==r||r(o),l):(i.Log.warn(`Parameter type mismatch. '${e}.${o}' was found to be type '${typeof l}' but fallback/return type is '${typeof s}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=s?s:null)}}t._makeFeatureGate=function(e,t,r){var i;return Object.assign(Object.assign({},o(e,t,r,(null==r?void 0:r.value)===!0)),{idType:null!==(i=null==r?void 0:r.id_type)&&void 0!==i?i:null})},t._makeDynamicConfig=s,t._makeExperiment=function(e,t,r){var i;return Object.assign(Object.assign({},s(e,t,r)),{groupName:null!==(i=null==r?void 0:r.group_name)&&void 0!==i?i:null})},t._makeLayer=function(e,t,r,i){var n,s;return Object.assign(Object.assign({},o(e,t,r,void 0)),{get:a(e,null==r?void 0:r.value,i),groupName:null!==(n=null==r?void 0:r.group_name)&&void 0!==n?n:null,__value:null!==(s=null==r?void 0:r.value)&&void 0!==s?s:{}})},t._mergeOverride=function(e,t,r,i){return Object.assign(Object.assign(Object.assign({},e),t),{get:a(e.name,r,i)})},t._makeTypedGet=a},7963:function(e,t){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0})},5051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,r,i,n,o)=>({duration:r,source:t,success:e,error:i,sourceUrl:n,warnings:o}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},9063:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;let i=r(6152),n=r(9025);t._normalizeUser=function(e,t,r){try{let i=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?i.statsigEnvironment=t.environment:null!=r&&(i.statsigEnvironment={tier:r}),i}catch(e){return n.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,i._DJB2Object)(e):null}},8614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let i=r(9025),n=r(7631),o={},s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>o[e]?o[e]:null,setItem:(e,t)=>{o[e]=t},removeItem:e=>{delete o[e]},getAllKeys:()=>Object.keys(o)},a=null;try{let e=(0,n._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,r)=>e.localStorage.setItem(t,r),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){i.Log.warn("Failed to setup localStorageProvider.")}let l=null!=a?a:s,u=l;function c(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(s),null;throw e}}t.Storage={isReady:()=>u.isReady(),isReadyResolver:()=>u.isReadyResolver(),getProviderName:()=>u.getProviderName(),getItem:e=>c(()=>u.getItem(e)),setItem:(e,t)=>c(()=>u.setItem(e,t)),removeItem:e=>u.removeItem(e),getAllKeys:()=>u.getAllKeys(),_setProvider:e=>{l=e,u=e},_setDisabled:e=>{u=e?s:l}},t._getObjectFromStorage=function(e){let r=t.Storage.getItem(e);return JSON.parse(null!=r?r:"null")},t._setObjectInStorage=function(e,r){t.Storage.setItem(e,JSON.stringify(r))}},3111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let i=r(9025);t._typedJsonParse=function(e,t,r){try{let r=JSON.parse(e);if(r&&"object"==typeof r&&t in r)return r}catch(e){}return i.Log.error(`Failed to parse ${r}`),null}},8687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let r=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return r(e)===r(t)}},9382:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,r="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${r}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,r=>{let i=16*Math.random();return e>0?(i=(e+i)%16|0,e=Math.floor(e/16)):(i=(t+i)%16|0,t=Math.floor(t/16)),("x"===r?i:7&i|8).toString(16)})}},801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let i=r(6152),n=r(3975),o={[n.Endpoint._initialize]:"i",[n.Endpoint._rgstr]:"e",[n.Endpoint._download_config_specs]:"d"};
316class s{constructor(e,t,r,i){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=o[e],t&&(this.customUrl=t),!t&&r&&(this.customUrl=r.endsWith("/")?`${r}${e}`:`${r}/${e}`),i&&(this.fallbackUrls=i);let s=n.NetworkDefault[e];this.defaultUrl=`${s}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}getChecksum(){var e;let t=(null!==(e=this.fallbackUrls)&&void 0!==e?e:[]).sort().join(",");return(0,i._DJB2)(this.customUrl+t)}}t.UrlConfiguration=s},5260:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let i=r(7631),n="foreground",o="background",s=[],a=n,l=!1;t._isCurrentlyVisible=()=>a===n,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{s.unshift(e)},t._notifyVisibilityChanged=e=>{e!==a&&(a=e,s.forEach(t=>t(e)))},(0,i._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(n)}),(0,i._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(o)),(0,i._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?n:o)}),(0,i._addWindowEventListenerSafe)((0,i._getUnloadEvent)(),()=>{l=!0,(0,t._notifyVisibilityChanged)(o)})},3328:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,r(375);let o=r(375),s=r(642);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return s.Diagnostics}});let a=r(6156);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return a.EventLogger}});let l=r(9025);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}});let u=r(6801),c=r(8614);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return c.Storage}}),n(r(375),t),n(r(1867),t),n(r(394),t),n(r(3183),t),n(r(642),t),n(r(6831),t),n(r(9801),t),n(r(624),t),n(r(1335),t),n(r(6152),t),n(r(6724),t),n(r(9025),t),n(r(1231),t),n(r(3975),t),n(r(3284),t),n(r(34),t),n(r(4632),t),n(r(7631),t),n(r(5881),t),n(r(7995),t),n(r(1486),t),n(r(3463),t),n(r(4850),t),n(r(6478),t),n(r(712),t),n(r(9817),t),n(r(6801),t),n(r(6790),t),n(r(1497),t),n(r(8431),t),n(r(7963),t),n(r(9063),t),n(r(8614),t),n(r(3111),t),n(r(8687),t),n(r(801),t),n(r(9382),t),n(r(5260),t),n(r(5051),t),n(r(1753),t),Object.assign((0,o._getStatsigGlobal)(),{Log:l.Log,SDK_VERSION:u.SDK_VERSION})},3815:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let i=r(3328);function n(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var r;let o=(0,i._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!o)return{hadBadDeltaChecksum:!0};let s=(n((r=Object.assign(Object.assign(Object.assign({},e),o),{feature_gates:Object.assign(Object.assign({},e.feature_gates),o.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),o.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),o.dynamic_configs)})).deleted_gates,r.feature_gates),delete r.deleted_gates,n(r.deleted_configs,r.dynamic_configs),delete r.deleted_configs,n(r.deleted_layers,r.layer_configs),delete r.deleted_layers,r),a=(0,i._DJB2Object)({feature_gates:s.feature_gates,dynamic_configs:s.dynamic_configs,layer_configs:s.layer_configs},2);return a!==o.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:a,badMergedConfigs:s,badFullResponse:o.deltas_full_response}:JSON.stringify(s)}},4228:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(3328),n=r(2034),o=r(4246);class s{constructor(e){this._sdkKey=e,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,i._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var r,s;if(!e)return!1;let a=(0,i._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=a&&(this._source=e.source,(null==a?void 0:a.has_updates)!==!0||(null!==(r=a.time)&&void 0!==r?r:0)<this._lcut||(this._rawValues=e.data,this._lcut=a.time,this._receivedAt=e.receivedAt,"init-v2"===a.response_format?this._values=new o.V2InitializeContainer(a):this._values=new n.V1InitializeContainer(a),this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,a),e.source&&a.user&&this._setWarningState(t,a),i.SDKFlags.setFlags(this._sdkKey,null!==(s=a.sdk_flags)&&void 0!==s?s:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){let t=this._values?this._values.getGate(e):null;return this._getDetailedStoreResult(t)}getConfig(e){let t=this._values?this._values.getConfig(e):null;return this._getDetailedStoreResult(t)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(e){let t=this._values?this._values.getLayer(e):null;return this._getDetailedStoreResult(t)}getParamStore(e){let t=this._values?this._values.getParamStore(e):null;return this._getDetailedStoreResult(t)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.getExposureMapping()}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let r={};return t.user&&(r.user=t.user),t.sdkInfo&&(r.generatorSDKInfo=t.sdkInfo),r.lcut=t.time,r}_getDetailedStoreResult(e){return{result:e,details:this._getDetails(null==e)}}_setWarningState(e,t){var r,n;let o=i.StableID.get(this._sdkKey);if((null===(r=e.customIDs)||void 0===r?void 0:r.stableID)!==o&&((null===(n=e.customIDs)||void 0===n?void 0:n.stableID)||o)){this._warnings.add("StableIDMismatch");return}if("user"in t){let r=t.user,n=Object.assign(Object.assign({},e),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(0,i._getFullUserHash)(n)!==(0,i._getFullUserHash)(r)&&this._warnings.add("Parti
316alUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,r;let i=this.getCurrentSourceDetails(),n=i.reason,o=null!==(t=i.warnings)&&void 0!==t?t:[];"Bootstrap"===this._source&&o.length>0&&(n+=o[0]),"Uninitialized"!==n&&"NoValues"!==n&&(n=`${n}:${e?"Unrecognized":"Recognized"}`);let s="Bootstrap"===this._source&&null!==(r=this._bootstrapMetadata)&&void 0!==r?r:void 0;return s&&(i.bootstrapMetadata=s),Object.assign(Object.assign({},i),{reason:n})}}t.default=s},226:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let n=r(3328),o=r(3815);class s extends n.NetworkCore{constructor(e,t){super(e,t);let r=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new n.UrlConfiguration(n.Endpoint._initialize,null==r?void 0:r.initializeUrl,null==r?void 0:r.api,null==r?void 0:r.initializeFallbackUrls)}fetchEvaluations(e,t,r,o,s){return i(this,void 0,void 0,function*(){var i,a,l,u,c,d;let h=t?(0,n._typedJsonParse)(t,"has_updates","InitializeResponse"):null,p={user:o,hash:null!==(l=null===(a=null===(i=this._option)||void 0===i?void 0:i.networkConfig)||void 0===a?void 0:a.initializeHashAlgorithm)&&void 0!==l?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==h?void 0:h.has_updates){let e=(null==h?void 0:h.hash_used)!==(null!==(d=null===(c=null===(u=this._option)||void 0===u?void 0:u.networkConfig)||void 0===c?void 0:c.initializeHashAlgorithm)&&void 0!==d?d:"djb2");p=Object.assign(Object.assign({},p),{sinceTime:s&&!e?h.time:0,previousDerivedFields:"derived_fields"in h&&s?h.derived_fields:{},deltasResponseRequested:!0,full_checksum:h.full_checksum,partialUserMatchSinceTime:e?0:h.time})}return this._fetchEvaluations(e,h,p,r)})}_fetchEvaluations(e,t,r,n){return i(this,void 0,void 0,function*(){var i,s;let a=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:r,retries:2,isStatsigEncodable:!0,priority:n});if((null==a?void 0:a.code)===204)return'{"has_updates": false}';if((null==a?void 0:a.code)!==200)return null!==(i=null==a?void 0:a.body)&&void 0!==i?i:null;if((null==t?void 0:t.has_updates)!==!0||(null===(s=a.body)||void 0===s?void 0:s.includes('"is_delta":true'))!==!0||!0!==r.deltasResponseRequested)return a.body;let l=(0,o._resolveDeltasResponse)(t,a.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},r),l),{deltasResponseRequested:!1}),n)})}}t.default=s},866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let i=r(3328),n={disableExposureLog:!0};function o(e){return null==e||!1===e.disableExposureLog}function s(e,t){return null!=t&&!(0,i._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,r){return(a,l)=>{if(null==t)return l;let u=t[a];if(null==u||null!=l&&(0,i._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,o(r)?void 0:n).value?u.pass_value:u.fail_value;case"dynamic_config":return function(e,t,r,i){let a=e.getDynamicConfig(t.config_name,o(i)?void 0:n).get(t.param_name);return s(a,r)?r:a}(e,u,l,r);case"experiment":return function(e,t,r,i){let a=e.getExperiment(t.experiment_name,o(i)?void 0:n).get(t.param_name);return s(a,r)?r:a}(e,u,l,r);case"layer":return function(e,t,r,i){let a=e.getLayer(t.layer_name,o(i)?void 0:n).get(t.param_name);return s(a,r)?r:a}(e,u,l,r);default:return l}}}},4620:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};
316Object.defineProperty(t,"__esModule",{value:!0});let n=r(3328),o=r(4228),s=r(226),a=r(866),l=r(5231);class u extends n.StatsigClientBase{static instance(e){let t=(0,n._getStatsigGlobal)().instance(e);return t instanceof u?t:(n.Log.warn((0,n._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=e?e:"",{}))}constructor(e,t,r=null){var i,a;n.SDKType._setClientType(e,"javascript-client");let u=new s.default(r,e=>{this.$emt(e)});for(let s of(super(e,null!==(i=null==r?void 0:r.dataAdapter)&&void 0!==i?i:new l.StatsigEvaluationsDataAdapter,u,r),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(n.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(n.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(n.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(n.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(n.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(n.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new o.default(e),this._network=u,this._user=this._configureUser(t,r),this._sdkInstanceID=(0,n.getUUID)(),null!==(a=null==r?void 0:r.plugins)&&void 0!==a?a:[]))s.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,n.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(t=this._store.getWarnings())&&void 0!==t?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return i(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){let r=performance.now();try{return this._updateUserSyncImpl(e,t,r)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}}_updateUserSyncImpl(e,t,r){var i;let o=[...null!==(i=this._store.getWarnings())&&void 0!==i?i:[]];this._resetForUser(e);let s=this.dataAdapter.getDataSync(this._user);null==s&&o.push("NoCachedValues"),this._store.setValues(s,this._user),this._finalizeUpdate(s);let a=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===a||null==a&&(null==s?void 0:s.source)==="Bootstrap"||this._runPostUpdate(null!=s?s:null,this._user),(0,n.createUpdateDetails)(!0,this._store.getSource(),performance.now()-r,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o)}updateUserAsync(e,t){return i(this,void 0,void 0,function*(){let r=performance.now();try{return yield this._updateUserAsyncImpl(e,t)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,r)}})}_updateUserAsyncImpl(e,t){return i(this,void 0,void 0,function*(){this._resetForUser(e);let r=this._user;n.Diagnostics._markInitOverallStart(this._sdkKey);let i=this.dataAdapter.getDataSync(r);if(this._store.setValues(i,this._user),this._setStatus("Loading",i),i=yield this.dataAdapter.getDataAsync(i,r,t),r!==this._user)return(0,n.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let o=!1;null!=i&&(n.Diagnostics._markInitProcessStart(this._sdkKey),o=this._store.setValues(i,this._user),n.Diagnostics._markInitProcessEnd(this._sdkKey,{success:o})),this._finalizeUpdate(i),o||(this._errorBoundary.attachErrorIfNoneExists(n.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),n.Diagnostics._markInitOverallEnd(this._sdkKey,o,this._store.getCurrentSourceDetails());let s=n.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,n.createUpdateDetails)(o,this._store.getSource(),s,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:n.StatsigSession.get(this._sdkKey),stableID:n.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,r){let i="string"==typeof e?{eventName:e,value:t,metadata:r}:e;this.$emt({name:"log_event_called",event:i}),this._logger.enqueue(Object.assign(Object.assign({},i),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return i(this,void 0,void 0,function*(){return n.Storage.isReady()||(yield n.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_createErrorUpdateDetails(e,t){var r;return(0,n.createUpdateDetails)(!1,this._store.getSource(),performance.now()-t,e,null,[...null!==(r=this._store.getWarnings())&&void 0!==r?r:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{n.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var r,i,o;let s=(0,n._normalizeUser)(e,t),a=null===(r=s.customIDs)||void 0===r?void 0:r.stableID;if(a){let e=null===(o=(i=this.storageProvider).isReadyResolver)||void 0===o?void 0:o.call(i);e?e.then(()=>n.StableID.setOverride(a,this._sdkKey),()=>n.StableID.setOverride(a,this._sdkKey)):n.StableID.setOverride(a,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(s.analyticsOnlyMetadata=Object.assign(Object.assign({},s.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),s}_getFeatureGateImpl(e,t){var r,i;let{result:o,details:s}=this._store.getGate(e),a=(0,n._makeFeatureGate)(e,s,o),l=null===(i=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getGateOverride)||void 0===i?void 0:i.call(r,a,this._user,t),u=null!=l?l:a;return this._enqueueExposure(e,(0,n._createGateExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:u}),u}_getDynamicConfigImpl(e,t){var r,i;let{result:o,details:s}=this._store.getConfig(e),a=(0,n._makeDynamicConfig)(e,s,o),l=null===(i=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getDynamicConfigOverride)||void 0===i?void 0:i.call(r,a,this._user,t),u=null!=l?l:a;return this._enqueueExposure(e,(0,n._createConfigExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}_getExperimentImpl(e,t){var r,i,o,s;let{result:a,details:l}=this._store.getConfig(e),u=(0,n._makeExperiment)(e,l,a);null!=u.__evaluation&&(u.__evaluation.secondary_exposures=(0,n._mapExposures)(null!==(i=null===(r=u.__evaluation)||void 0===r?void 0:r.secondary_exposures)&&void 0!==i?i:[],this._store.getExposureMapping()));let c=null===(s=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getExperimentOverride)||void 0===s?void 0:s.call(o,u,this._user,t),d=null!=c?c:u;return this._enqueueExposure(e,(0,n._createConfigExposure)(this._user,d,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:d}),d}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,t){var r,i,o;let{result:s,details:a}=this._store.getLayer(e),l=(0,n._makeLayer)(e,a,s),u=null===(i=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getLayerOverride)||void 0===i?void 0:i.call(r,l,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let c=(0,n._mergeOverride)(l,u,null!==(o=null==u?void 0:u.__value)&&void 0!==o?o:l.__value,r=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,n._createLayerParameterExposure)(this._user,c,r,this._store.getExposureMapping()),t)}
vendor: 4,927 bytes, line 316
316);return this.$emt({name:"layer_evaluation",layer:c}),c}_getParameterStoreImpl(e,t){var r,i;let{result:n,details:o}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let s={name:e,details:o,__configuration:n,get:(0,a._makeParamStoreGetter)(this,n,t)},l=null===(i=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getParamStoreOverride)||void 0===i?void 0:i.call(r,s,t);return null!=l&&(s.__configuration=l.config,s.details=l.details,s.get=(0,a._makeParamStoreGetter)(this,l.config,t)),s}}t.default=u},5231:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let n=r(3328),o=r(226);class s extends n.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,r){super.attach(e,t,r),null!==r&&r instanceof o.default?this._network=r:this._network=new o.default(null!=t?t:{})}getDataAsync(e,t,r){return this._getDataAsyncImpl(e,(0,n._normalizeUser)(t,this._options),r)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,n._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):n.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,r,n){return i(this,void 0,void 0,function*(){var i;let o=yield null===(i=this._network)||void 0===i?void 0:i.fetchEvaluations(this._getSdkKey(),e,null==r?void 0:r.priority,t,n);return null!=o?o:null})}_getCacheKey(e){var t;let r=(0,n._getStorageKey)(this._getSdkKey(),e,null===(t=this._options)||void 0===t?void 0:t.customUserCacheKeyFunc);return`${n.DataAdapterCachePrefix}.${this._cacheSuffix}.${r}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,n._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=s},2034:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V1InitializeContainer=void 0;let i=r(3328);class n{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,n;return e&&null!==(n=null!==(r=e[t])&&void 0!==r?r:e[(0,i._DJB2)(t)])&&void 0!==n?n:null}}t.V1InitializeContainer=n},4246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V2InitializeContainer=void 0;let i=r(3328);class n{constructor(e){this._values=e}getGate(e){var t,r,i;let n=this._getResultFromLookup(this._values.feature_gates,e);return n?{name:e,value:!0===n.v,rule_id:null!==(t=n.r)&&void 0!==t?t:"default",secondary_exposures:null!==(r=n.s)&&void 0!==r?r:[],id_type:null!==(i=n.i)&&void 0!==i?i:""}:null}getConfig(e){var t,r,i,n;let o=this._getResultFromLookup(this._values.dynamic_configs,e);return o?{name:e,value:null!==(t=this._values.values[o.v])&&void 0!==t?t:{},rule_id:o.r,secondary_exposures:null!==(r=o.s)&&void 0!==r?r:[],id_type:null!==(i=o.i)&&void 0!==i?i:"",is_user_in_experiment:!0===o.ue,passed:!0===o.p,group_name:null!==(n=o.gn)&&void 0!==n?n:void 0,is_experiment_active:!0===o.ea,group:o.r,is_device_based:"stableID"===o.i}:null}getLayer(e){var t,r,i,n,o,s;let a=this._getResultFromLookup(this._values.layer_configs,e);return a?{name:e,value:null!==(t=this._values.values[a.v])&&void 0!==t?t:{},rule_id:a.r,secondary_exposures:null!==(r=a.s)&&void 0!==r?r:[],is_user_in_experiment:!0===a.ue,group_name:null!==(i=a.gn)&&void 0!==i?i:void 0,is_experiment_active:!0===a.ea,group:a.r,is_device_based:"stableID"===a.i,allocated_experiment_name:null!==(n=a.ae)&&void 0!==n?n:"",explicit_parameters:null!==(o=a.ep)&&void 0!==o?o:[],undelegated_secondary_exposures:null!==(s=a.us)&&void 0!==s?s:[],parameter_rule_ids:a.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var r,n;return e&&null!==(n=null!==(r=e[t])&&void 0!==r?r:e[(0,i._DJB2)(t)])&&void 0!==n?n:null}}t.V2InitializeContainer=n},250:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
316(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let o=r(3328),s=r(4620);t.StatsigClient=s.default,n(r(3328),t);let a=Object.assign((0,o._getStatsigGlobal)(),{StatsigClient:s.default});t.default=a},7276:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let i=r(3328),n={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},o=()=>{},s=()=>n,a=()=>Promise.resolve(),l=()=>Promise.resolve(n),u={reason:"Error:NoClient"},c=e=>(...t)=>{let r="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,i._makeFeatureGate)(r,u,null);case"config":return(0,i._makeDynamicConfig)(r,u,null);case"layer":return(0,i._makeLayer)(r,u,null);case"param_store":return{name:r}}},d={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:""},stableID:"",storageProvider:i.Storage,sdkInstanceID:""},h={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:s,initializeAsync:l,shutdown:a,flush:a,updateRuntimeOptions:o,updateUserSync:s,updateUserAsync:l,getContext:()=>Object.assign({},d),checkGate:()=>!1,getFeatureGate:c("gate"),getDynamicConfig:c("config"),getExperiment:c("config"),getLayer:c("layer"),getParameterStore:c("param_store"),logEvent:o,on:o,off:o,$on:o,$emt:o,dataAdapter:{attach:o,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:o,setDataLegacy:o,prefetchData:a}};t.NoopEvaluationsClient=h,t.isNoopClient=function(e){return"isNoop"in e}},7481:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(7276);t.default=(0,i.createContext)({renderVersion:0,client:n.NoopEvaluationsClient,isLoading:!0})},9793:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let i=r(5893),n=r(7294),o=r(3328),s=r(7481),a=r(6392);function l(e){let[t,r]=(0,n.useState)(0),o=(0,a.useClientAsyncInit)(e.sdkKey,e.user,e.options).client,[l,u]=(0,n.useState)(!d(o));c(o,r,u);let h=(0,n.useMemo)(()=>({renderVersion:t,client:o,isLoading:l}),[t,o,l]);return(0,i.jsx)(s.default.Provider,{value:h,children:null!=e.loadingComponent&&h.isLoading?e.loadingComponent:e.children})}function u(e){let[t,r]=(0,n.useState)(0),o=e.client,[a,l]=(0,n.use
316State)(!d(o));c(o,r,l);let u=(0,n.useMemo)(()=>({renderVersion:t,client:o,isLoading:a}),[t,o,a]);return(0,i.jsx)(s.default.Provider,{value:u,children:null!=e.loadingComponent&&u.isLoading?e.loadingComponent:e.children})}function c(e,t,r){(0,n.useEffect)(()=>{let i=()=>{t(e=>e+1),r(!d(e))};return o.SDKType._setBindingType("react"),e.$on("values_updated",i),()=>{e.flush().catch(e=>o.Log.error("An error occurred during flush",e)),e.off("values_updated",i)}},[e,t])}function d(e){return"isNoop"in e||"Ready"===e.loadingStatus}t.StatsigProvider=function(e){return"client"in e?(("sdkKey"in e||"user"in e)&&o.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,i.jsx)(u,Object.assign({},e))):(0,i.jsx)(l,Object.assign({},e))}},1069:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;let o=r(3328),s=r(7481);t.StatsigContext=s.default;let a=r(9793);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return a.StatsigProvider}});let l=r(6392);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return l.useClientAsyncInit}});let u=r(8740);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return u.useClientBootstrapInit}});let c=r(4357);t.useDynamicConfig=c.default;let d=r(2246);t.useExperiment=d.default;let h=r(4027);t.useFeatureGate=h.default;let p=r(215);t.useGateValue=p.default;let f=r(2494);t.useLayer=f.default;let m=r(4054);t.useParameterStore=m.default;let g=r(7554);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return g.useStatsigClient}});let y=r(6085);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return y.useStatsigInternalClientFactoryAsync}});let v=r(2982);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return v.useStatsigInternalClientFactoryBootstrap}});let b=r(2017);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return b.useStatsigUser}}),n(r(250),t),Object.assign((0,o._getStatsigGlobal)(),{StatsigContext:s.default,StatsigProvider:a.StatsigProvider,useClientAsyncInit:l.useClientAsyncInit,useClientBootstrapInit:u.useClientBootstrapInit,useDynamicConfig:c.default,useExperiment:d.default,useFeatureGate:h.default,useGateValue:p.default,useLayer:f.default,useParameterStore:m.default,useStatsigClient:g.useStatsigClient,useStatsigInternalClientFactoryAsync:y.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:v.useStatsigInternalClientFactoryBootstrap,useStatsigUser:b.useStatsigUser})},6392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let i=r(250),n=r(6085);t.useClientAsyncInit=function(e,t,r=null){return(0,n.useStatsigInternalClientFactoryAsync)(e=>new i.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:r})}},8740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let i=r(250),n=r(2982);t.useClientBootstrapInit=function(e,t,r,o=null,s){return(0,n.useStatsigInternalClientFactoryBootstrap)(e=>new i.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:r,statsigOptions:o,useLegacyFormat:s})}},4357:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),o.NoopEvaluationsClient.getDynamicConfig(e,t)):r.getDynamicConfig(e,t),[e,r,a,...t?Object.values(t):[]])}},2246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),o.NoopEvaluationsClient.getExperiment(e,t)):r.getExperiment(e,t),[e,r,a,...t?Object.values(t):[]])}},4027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.getFeatureGate(e,t)):r.getFeatureGate(e,t),[e,r,a,...t?Object.values(t):[]])}},215:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),o.NoopEvaluationsClient.checkGate(e,t)):r.checkGate(e,t),[e,r,a,...t?Object.values(t):[]])}},2494:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),o.NoopEvaluationsClient.getLayer(e,t)):r.getLayer(e,t),[e,r,a,...t?Object.values(t):[]])}},4054:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.default=function(e,t){let{client:r,renderVersion:a}=(0,i.useContext)(s.default);return(0,i.useMemo)(()=>(0,o.isNoopClient)(r)?(n.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),o.NoopEvaluationsClient.getParameterStore(e,t)):r.getParameterStore(e,t),[e,r,a,...t?Object.values(t):[]])}},7554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let i=r(7294),n=r(3328),o=r(7276),s=r(7481);t.useStatsigClient=function(){let{client:e,renderVersion:t,isLoading:r}=(0,i.useContext)(s.default),a=(0,i.useMemo)(()=>(0,o.isNoopClient)(e)?(n.Log.warn("Attempting to retrieve a StatsigClient but none was set."),o.NoopEvaluationsClient):e,[e,t]),l=[a,t],u=(0,i.useCallback)((e,t)=>a.checkGate(e,t),l),c=(0,i.useCallback)((e,t)=>a.getFeatureGate(e,t),l),d=(0,i.useCallback)((e,t)=>a.getDynamicConfig(e,t),l),h=(0,i.useCallback)((e,t)=>a.getExperiment(e,t),l),p=(0,i.useCallback)((e,t)=>a.getLayer(e,t),l),f=(0,i.useCallback)((e,t)=>a.getParameterStore(e,t),l),m=(0,i.useCallback)((e,t,r)=>"string"==typeof e?a.logEvent(e,t,r):a.logEvent(e),l);return(0,i.useMemo)(()=>({client:a,checkGate:u,getFeatureGate:c,getDynamicConfig:d,getExperiment:h,getLayer:p,getParameterStore:f,logEvent:m,isLoading:r}),[a,u,c,d,h,p,f,m,r])}},6085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let i=r(7294),n=r(3328);t.useStatsigInternalClientFactoryAsync=function(e,t){let r=(0,i.useMemo)(()=>{var r;return null!==(r=(0,n._getInstance)(t.sdkKey))&&void 0!==r?r:e(t)},[]),[o,s]=(0,i.useState)("Ready"!==r.loadingStatus);return(0,i.useMemo)(()=>{"Ready"!==r.loadingStatus&&r.initializeAsync().catch(n.Log.error).finally(()=>s(!1))},[]),{client:r,isLoading:o}}},2982:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let i=r(7294),n=r(3328);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let r=(0,i.useRef)((0,n._getInstance)(t.sdkKey));return(0,i.useMemo)(()=>{if(r.current)return r.current;let i=e(t);return r.current=i,t.useLegacyFormat?i.dataAdapter.setDataLegacy(t.initialValues,t.initialUser):i.dataAdapter.setData(t.initialValues),i.initializeSync(),i},[])}},2017:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let i=r(7294),n=r(7481),o=r(7554);function s(e){return e.getContext().user}t.useStatsigUser=function(){let{client:e}=(0,o.useStatsigClient)(),{renderVersion:t}=(0,i.useContext)(n.default);return{user:(0,i.useMemo)(()=>s(e),[e,t]),updateUserSync:(0,i.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserSync(t)),[e]),updateUserAsync:(0,i.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserAsync(t)),[e])}}},2177:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionReplay=t.runStatsigSessionReplay=t.StatsigSessionReplayPlugin=void 0;let i=r(3328),n=r(1229),o=r(6553);class s{constructor(e){this.options=e,this.__plugin="session-replay"}bind(e){a(e,this.options)}}function a(e,t){new l(e,t)}t.StatsigSessionReplayPlugin=s,t.runStatsigSessionReplay=a;class l extends n.SessionReplayBase{constructor(e,t){var r;super(e,t),this._client.$on("values_updated",()=>{var e;this._wasStopped||this._attemptToStartRecording(null===(e=this._options)||void 0===e?void 0:e.forceRecording)}),this._attemptToStartRecording(null===(r=this._options)||void 0===r?void 0:r.forceRecording)}_shutdown(e){super._shutdownImpl(e)}_attemptToStartRecording(e=!1){var t,r;if(this._totalLogs>=o.MAX_LOGS)return;let n=this._client.getContext().values;if((null==n?void 0:n.recording_blocked)===!0||!e&&(null==n?void 0:n.can_record_session)!==!0||(null==n?void 0:n.passes_session_recording_targeting)===!1){this._shutdown();return}this._replayer.isRecording()||(this._wasStopped=!1,i.StatsigMetadataProvider.add({isRecordingSession:"true"}),this._replayer.record((e,t)=>this._onRecordingEvent(e,t),null!==(r=null===(t=this._options)||void 0===t?void 0:t.rrwebConfig)&&void 0!==r?r:{},()=>{this._shutdown()}))}}t.SessionReplay=l},1229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionReplayBase=t.forceStartRecording=t.startRecording=t.stopRecording=void 0;let i=r(3328),n=r(4066),o=r(6553);function s(e){var t,r;let n=null==e?(0,i._getStatsigGlobal)().firstSRInstance:null===(r=null===(t=(0,i._getStatsigGlobal)())||void 0===t?void 0:t.srInstances)||void 0===r?void 0:r[e];return n instanceof a?n:null}t.stopRecording=function(e){var t;null===(t=s(e))||void 0===t||t.stopRecording()},t.startRecording=function(e){var t;null===(t=s(e))||void 0===t||t.startRecording()},t.forceStartRecording=function(e){var t;null===(t=s(e))||void 0===t||t.forceStartRecording()};class a{constructor(e,t){this._sessionData={startTime:-1,endTime:0,clickCount:0},this._events=[],this._wasStopped=!1,this._currentEventIndex=0,this._totalLogs=0,this._client=e,this._options=t;let{sdkKey:r,errorBoundary:o}=this._client.getContext();if(this._errorBoundary=o,this._errorBoundary.wrap(this),this._replayer=new n.SessionReplayClient,this._client.$on("pre_shutdown",()=>this._shutdown()),this._client.on("session_expired",()=>{this._shutdown("session_expired")}),!(0,i._isServerEnv)()){let e=(0,i._getStatsigGlobal)();e.srInstances=Object.assign(Object.assign({},e.srInstances),{[r]:this}),e.firstSRInstance||(e.firstSRInstance=this)}this._currentSessionID=this._getSessionIdFromClient(),this._subscribeToVisibilityChanged()}forceStartRecording(){this._wasStopped=!1,this._attemptToStartRecording(!0)}stopRecording(){this._wasStopped=!0,this._shutdown()}startRecording(){var e;this._wasStopped=!1,this._attemptToStartRecording(null===(e=this._options)||void 0===e?void 0:e.forceRecording)}isRecording(){return this._replayer.isRecording()}_logRecording(e){0!==this._events.length&&(e=(0,i._isUnloading)()?"is_leaving_page":e,this._logRecordingWithSessionID(this._currentSessionID,e))}_onVisibilityChanged(e){"background"===e&&(this._logRecording(),this._client.flush().catch(e=>{this._errorBoundary.logError("SR::visibility",e)}))}_subscribeToVisibilityChanged(){let{sdkKey:e}=this._client.getContext();(0,i._subscribeToVisiblityChanged)(t=>{var r,n;let o=null===(n=null===(r=(0,i._getStatsigGlobal)())||void 0===r?void 0:r.srInstances)||void 0===n?void 0:n[e];o instanceof a&&o._onVisibilityChanged(t)})}_logRecordingWithSessionID(e,t){let r=this._sessionData;if(0===this._events.length)return;let n=JSON.stringify(this._events),s=(0,o._slicePayload)(n),a=s.length>1?(0,i.getUUID)():null;for(let l=0;l<s.length;l++){let u=s[l],c=(0,o._makeLoggableRrwebEvent)(u,n,e,r,this._client.getContext().sdkInstanceID);null!=a&&(0,o._appendSlicedMetadata)(c.metadata,a,l,s.length,u.length),t&&(c.metadata[t]="true"),this._totalLogs++,this._client.logEvent(c),null!=a&&this._client.flush().catch(e=>{i.Log.error(e)})}this._events=[],this._totalLogs>o.MAX_LOGS&&this._shutdown()}_bumpSessionIdleTimerAndLogRecording(){this._getSessionIdFromClient(),this._logRecording()}_getSessionIdFromClient(){return this._client.getContext().session.data.sessionID}_shutdownImpl(e){if(this._replayer.isRecording()){this._replayer.stop();let e=()=>{i.StatsigMetadataProvider.add({isRecordingSession:"false"}),this._client.off("logs_flushed",e)};this._client.$on("logs_flushed",e)}if(0===this._events.length){"session_expired"===e&&(this._currentEventIndex=0,this._sessionData=this._makeEmptySessionData());return}this._logRecording(e),"session_expired"===e&&(this._currentEventIndex=0,this._sessionData=this._makeEmptySessionData())}_makeEmptySessionData(){return{startTime:-1,endTime:0,clickCount:0}}_onRecordingEvent(e,t){if(this._currentSessionID!==this._getSessionIdFromClient()){this._shutdown("session_expired");return}if(this._totalLogs>=o.MAX_LOGS){this._shutdown();return}e.eventIndex=this._currentEventIndex++,this._sessionData.clickCount+=t.clickCount,this._sessionData.startTime=-1===this._sessionData.startTime?t.startTime:Math.min(this._sessionData.startTime,t.startTime),this._sessionData.endTime=Math.max(this._sessionData.endTime,t.endTime);let r=(0,i._fastApproxSizeOf)(e,o.MAX_INDIVIDUAL_EVENT_BYTES);if(r>o.MAX_INDIVIDUAL_EVENT_BYTES){i.Log.warn(`SessionReplay event is too large (~${r} bytes) and will not be logged`,e);return}let n=(0,i._fastApproxSizeOf)(this._events,o.REPLAY_ENQUEUE_TRIGGER_BYTES);this._events.push(e),n+r<o.REPLAY_ENQUEUE_TRIGGER_BYTES||((0,i._isCurrentlyVisible)()?this._bumpSessionIdleTimerAndLogRecording():this._logRecording())}}t.SessionReplayBase=a},4066:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.SessionReplayClient=void 0;let i=r(5761),n=r(3328);class o{constructor(){this._startTimestamp=null,this._endTimestamp=null}record(e,t,r,o=!1){if(null!=(0,n._getDocumentSafe)()&&(this._startTimestamp=null,this._endTimestamp=null,this._stopCallback=r,!this._stopFn)){var s;this._stopFn=(s=(t,r)=>{var i,n,s;o?this._startTimestamp=r?t.timestamp:null!==(i=this._startTimestamp)&&void 0!==i?i:t.timestamp:null!==(n=this._startTimestamp)&&void 0!==n||(this._startTimestamp=t.timestamp),this._endTimestamp=t.timestamp;let a=0;3===t.type&&2===t.data.source&&(2===t.data.type||4===t.data.type)&&a++,e(Object.assign(Object.assign({},t),{eventIndex:0}),{startTime:this._startTimestamp,endTime:this._endTimestamp,clickCount:a},null!=r&&r),this._endTimestamp-this._startTimestamp>144e5&&(null===(s=this._stopFn)||void 0===s||s.call(this),this._stopCallback&&this._stopCallback())},o?(0,i.record)(Object.assign(Object.assign({},t),{emit:s,checkoutEveryNms:3e4})):(0,i.record)(Object.assign(Object.assign({},t),{emit:s})))}}stop(){this._stopFn&&(this._stopFn(),this._stopFn=void 0)}isRecording(){return null!=this._stopFn}}t.SessionReplayClient=o},6553:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._appendSlicedMetadata=t._slicePayload=t._makeLoggableRrwebEvent=t.MAX_LOGS=t.MAX_INDIVIDUAL_EVENT_BYTES=t.REPLAY_ENQUEUE_TRIGGER_BYTES=void 0;let i=r(3328);t.REPLAY_ENQUEUE_TRIGGER_BYTES=10240,t.MAX_INDIVIDUAL_EVENT_BYTES=10485760,t.MAX_LOGS=1e4,t._makeLoggableRrwebEvent=function(e,t,r,n,o){return{eventName:"statsig::session_recording",value:r,metadata:{session_start_ts:String(n.startTime),session_end_ts:String(n.endTime),clicks_captured_cumulative:String(n.clickCount),rrweb_events:e,rrweb_payload_size:String(t.length),session_replay_sdk_version:i.SDK_VERSION,sdk_instance_id:o}}},t._slicePayload=function(e){let t=[];for(let r=0;r<e.length;r+=1048576)t.push(e.slice(r,r+1048576));return t},t._appendSlicedMetadata=function(e,t,r,i,n){e.sliced_id=t,e.slice_index=String(r),e.slice_count=String(i),e.slice_byte_size=String(n)}},7951:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TriggeredSessionReplay=t.runStatsigTriggeredSessionReplay=t.StatsigTriggeredSessionReplayPlugin=void 0;let i=r(3328),n=r(1229),o=r(6553);class s{constructor(e){this.options=e,this.__plugin="triggered-session-replay"}bind(e){a(e,this.options)}}function a(e,t){new l(e,t)}t.StatsigTriggeredSessionReplayPlugin=s,t.runStatsigTriggeredSessionReplay=a;class l extends n.SessionReplayBase{constructor(e,t){var r;super(e,t),this._runningEventData=[],this._isActiveRecording=!1,this._subscribeToClientEvents(t),(null==t?void 0:t.autoStartRecording)?this._attemptToStartRecording(null===(r=this._options)||void 0===r?void 0:r.forceRecording):(null==t?void 0:t.keepRollingWindow)&&this._attemptToStartRollingWindow()}_subscribeToClientEvents(e){this._subscribeToValuesUpdated(e),this._subscribeToLogEventCalled(),this._subscribeToGateEvaluation(),this._subscribeToExperimentEvaluation()}_subscribeToValuesUpdated(e){this._client.$on("values_updated",()=>{var t;!this._wasStopped&&((null==e?void 0:e.autoStartRecording)?this._attemptToStartRecording(null===(t=this._options)||void 0===t?void 0:t.forceRecording):(null==e?void 0:e.keepRollingWindow)&&this._attemptToStartRollingWindow())})}_subscribeToLogEventCalled(){this._client.$on("log_event_called",e=>{var t;if(this._wasStopped)return;let r=this._client.getContext().values;if(!1===(null==r?void 0:r.passes_session_recording_targeting)||(null==r?void 0:r.session_recording_event_triggers)==null)return;let i=r.session_recording_event_triggers[e.event.eventName];if(null==i||!1===i.passes_sampling)return;let n=i.values;if(null==n||n.includes(String(null!==(t=e.event.value)&&void 0!==t?t:""))){this._attemptToStartRecording(!0);return}})}_subscribeToGateEvaluation(){this._client.$on("gate_evaluation",e=>{this._tryStartExposureRecording(e.gate.name,String(e.gate.value))})}_subscribeToExperimentEvaluation(){this._client.$on("experiment_evaluation",e=>{var t;this._tryStartExposureRecording(e.experiment.name,null!==(t=e.experiment.groupName)&&void 0!==t?t:"")})}_tryStartExposureRecording(e,t){var r;if(this._wasStopped)return;let n=this._client.getContext().values;if(!1===(null==n?void 0:n.passes_session_recording_targeting)||(null==n?void 0:n.session_recording_exposure_triggers)==null)return;let o=null!==(r=n.session_recording_exposure_triggers[e])&&void 0!==r?r:n.session_recording_exposure_triggers[(0,i._DJB2)(e)];if(null==o||!1===o.passes_sampling)return;let s=o.values;if(null==s||s.includes(t)){this._attemptToStartRecording(!0);return}}forceStartRecording(){super.forceStartRecording()}stopRecording(){this._isActiveRecording=!1,this._runningEventData=[],super.stopRecording()}_handleStartActiveRecording(){if(this._isActiveRecording=!0,0===this._runningEventData.length)return;let e=this._runningEventData.map(e=>e.events).flat();for(let t=0;t<e.length;t++)e[t].event.eventIndex=t,this._sessionData.clickCount+=e[t].data.clickCount,this._sessionData.startTime=-1===this._sessionData.startTime?e[t].data.startTime:Math.min(this._sessionData.startTime,e[t].data.startTime),this._sessionData.endTime=Math.max(this._sessionData.endTime,e[t].data.endTime);this._events=e.map(e=>e.event),this._currentEventIndex=e.length,(0,i._isCurrentlyVisible)()?this._bumpSessionIdleTimerAndLogRecording():this._logRecording(),this._replayer.stop()}_shutdown(e){this._isActiveRecording=!1,this._runningEventData=[],super._shutdownImpl(e)}_onRecordingEvent(e,t,r){if(!this._isActiveRecording){if(this._currentSessionID!==this._getSessionIdFromClient()){this._shutdown("session_expired");return}r&&4===e.type||0===this._runningEventData.length?(this._runningEventData.length>1&&this._runningEventData.shift(),this._runningEventData.push({events:[{event:e,data:t}]})):this._runningEventData[this._runningEventData.length-1].events.push({event:e,data:t});return}super._onRecordingEvent(e,t)}_attemptToStartRollingWindow(){var e,t;let r=this._client.getContext().values;if((null==r?void 0:r.passes_session_recording_targeting)===!1){this._shutdown();return}this._replayer.isRecording()||this._replayer.record((e,t,r)=>this._onRecordingEvent(e,t,r),null!==(t=null===(e=this._options)||void 0===e?void 0:e.rrwebConfig)&&void 0!==t?t:{},()=>{this._shutdown()},!0)}_attemptToStartRecording(e=!1){var t,r;if(this._totalLogs>=o.MAX_LOGS)return;let n=this._client.getContext().values;if((null==n?void 0:n.recording_blocked)===!0||!e&&(null==n?void 0:n.can_record_session)!==!0||(null==n?void 0:n.passes_session_recording_targeting)===!1){this._shutdown();return}this._handleStartActiveRecording(),this._wasStopped=!1,i.StatsigMetadataProvider.add({isRecordingSession:"true"}),this._replayer.isRecording()||this._replayer.record((e,t,r)=>this._onRecordingEvent(e,t,r),null!==(r=null===(t=this._options)||void 0===t?void 0:t.rrwebConfig)&&void 0!==r?r:{},()=>{this._shutdown()})}}t.TriggeredSessionReplay=l},909:function(e,t,r){"use strict";t.cb=void 0;let i=r(3328),n=r(2177);Object.defineProperty(t,"cb",{enumerable:!0,get:function(){return n.StatsigSessionReplayPlugin}});
316let o=r(1229),s=r(4066),a=r(7951);Object.assign((0,i._getStatsigGlobal)(),{SessionReplayClient:s.SessionReplayClient,SessionReplay:n.SessionReplay,runStatsigSessionReplay:n.runStatsigSessionReplay,runStatsigTriggeredSessionReplay:a.runStatsigTriggeredSessionReplay,StatsigSessionReplayPlugin:n.StatsigSessionReplayPlugin,StatsigTriggeredSessionReplayPlugin:a.StatsigTriggeredSessionReplayPlugin,startRecording:o.startRecording,stopRecording:o.stopRecording,forceStartRecording:o.forceStartRecording})},9023:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCapture=t.runStatsigAutoCapture=t.StatsigAutoCapturePlugin=void 0;let i=r(3328),n=r(5473),o=r(2824),s=r(9896),a=r(3480),l=r(442),u=r(8325),c=r(2185),d=r(3683),h=r(614),p={submit:n.AutoCaptureEventName.FORM_SUBMIT,click:n.AutoCaptureEventName.CLICK,copy:n.AutoCaptureEventName.COPY,cut:n.AutoCaptureEventName.COPY};class f{constructor(e){this._options=e,this.__plugin="auto-capture"}bind(e){m(e,this._options)}}function m(e,t){var r;let{sdkKey:n}=e.getContext();if(!(0,i._isServerEnv)()){let e=null!==(r=(0,i._getStatsigGlobal)().acInstances)&&void 0!==r?r:{};if(e[n])return e[n]}return new g(e,t)}t.StatsigAutoCapturePlugin=f,t.runStatsigAutoCapture=m;class g{constructor(e,t){var r,n,c,d;this._client=e,this._disabledEvents={},this._previousLoggedPageViewUrl=null,this._hasLoggedPageViewEnd=!1,this._pageViewLogged=!1;let{sdkKey:h,errorBoundary:p,values:f}=e.getContext();this._options=t,this._disabledEvents=null!==(n=null===(r=null==f?void 0:f.auto_capture_settings)||void 0===r?void 0:r.disabled_events)&&void 0!==n?n:{},this._errorBoundary=p,this._errorBoundary.wrap(this,"autoCapture:"),this._client.$on("values_updated",()=>{var e,t;let r=this._client.getContext().values;this._disabledEvents=null!==(t=null===(e=null==r?void 0:r.auto_capture_settings)||void 0===e?void 0:e.disabled_events)&&void 0!==t?t:this._disabledEvents}),this._engagementManager=new a.EngagementManager,this._rageClickManager=new l.default,this._webVitalsManager=new u.WebVitalsManager(this._enqueueAutoCapture.bind(this),p),this._deadClickManager=new s.default(this._enqueueAutoCapture.bind(this),p),this._consoleLogManager=new o.ConsoleLogManager(this._enqueueAutoCapture.bind(this),p,null!==(c=null==t?void 0:t.consoleLogAutoCaptureSettings)&&void 0!==c?c:{enabled:!1}),this._eventFilterFunc=null==t?void 0:t.eventFilterFunc;let m=(0,i._getDocumentSafe)();if(!(0,i._isServerEnv)()){let e=null!==(d=(__STATSIG__=(0,i._getStatsigGlobal)()).acInstances)&&void 0!==d?d:{};e[h]=this,__STATSIG__.acInstances=e}if((null==m?void 0:m.readyState)==="loading"){m.addEventListener("DOMContentLoaded",()=>this._initialize());return}this._initialize()}_addEventHandlers(){let e=(0,i._getWindowSafe)(),t=(0,i._getDocumentSafe)();if(!e||!t)return;let r=(e,t=!0)=>{var r;let n=e||(null===(r=(0,i._getWindowSafe)())||void 0===r?void 0:r.event);this._autoLogEvent(n),t&&this._engagementManager.bumpInactiveTimer(),"click"===n.type&&n instanceof MouseEvent&&this._rageClickManager.isRageClick(n.clientX,n.clientY,Date.now())&&this._logRageClick(n)};(0,c._registerEventHandler)(t,"click",e=>r(e)),(0,c._registerEventHandler)(t,"submit",e=>r(e)),(0,c._registerEventHandler)(t,"copy",e=>r(e)),(0,c._registerEventHandler)(t,"cut",e=>r(e)),(0,c._registerEventHandler)(e,"error",e=>r(e,!1)),(0,c._registerEventHandler)(e,"pagehide",()=>this._tryLogPageViewEnd()),(0,c._registerEventHandler)(e,"beforeunload",()=>this._tryLogPageViewEnd())}_addPageViewTracking(){let e=(0,i._getWindowSafe)(),t=(0,i._getDocumentSafe)();e&&t&&((0,c._registerEventHandler)(e,"popstate",()=>this._tryLogPageView("popstate")),window.history.pushState=new Proxy(window.history.pushState,{apply:(e,t,[r,i,n])=>{e.apply(t,[r,i,n]),this._tryLogPageView("pushstate")}}),window.history.replaceState=new Proxy(window.history.replaceState,{apply:(e,t,[r,i,n])=>{e.apply(t,[r,i,n]),this._tryLogPageView("replacestate")}}),this._tryLogPageView())}_autoLogEvent(e){var t,r,o,s;let a=null===(t=e.type)||void 0===t?void 0:t.toLowerCase();if("error"===a&&e instanceof ErrorEvent){this._logError(e);return}let l=(0,c._getTargetNode)(e);if(!l)return;let u=p[a];if(!u)return;let f=u===n.AutoCaptureEventName.COPY;if(!(0,c._shouldLogEvent)(e,l,f))return;let m={};if(f){let t=null===(o=null===(r=(0,i._getWindowSafe)())||void 0===r?void 0:r.getSelection())||void 0===o?void 0:o.toString();if(!t)return;(null===(s=this._options)||void 0===s?void 0:s.captureCopyText)&&(m.selectedText=(0,c._sanitizeString)(t));let n=e.type||"clipboard";m.clipType=n}let{value:g,metadata:y}=(0,d._gatherEventData)(l);y.isOutbound&&this._engagementManager.setMeaningfulEngagementOccurred(!0),Object.assign(m,y);let v=(0,h._gatherAllMetadata)((0,c._getSafeUrl)());this._enqueueAutoCapture(u,g,Object.assign(Object.assign({},v),m))}_initialize(){this._webVitalsManager.startTracking(),this._deadClickManager.startTracking(),this._consoleLogManager.startTracking(),this._engagementManager.startInactivityTracking(()=>this._tryLogPageViewEnd(!0)),this._addEventHandlers(),this._addPageViewTracking(),this._logSessionStart(),this._logPerformance()}_logError(e){let t=(null==e?void 0:e.error)||{},r=t;if("object"==typeof t)try{r=JSON.stringify(t)}catch(e){r="function"==typeof(null==t?void 0:t.toString)?t.toString():"Unknown Error"}this._enqueueAutoCapture(n.AutoCaptureEventName.ERROR,e.message,{message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error_str:r})}_logSessionStart(){let e=this._getSessionFromClient();try{if(!this._isNewSession(e))return;this._enqueueAutoCapture(n.AutoCaptureEventName.SESSION_START,(0,c._getSanitizedPageUrl)(),Object.assign({sessionID:e.data.sessionID},(0,h._gatherAllMetadata)((0,c._getSafeUrl)())),{flushImmediately:!0})}catch(e){this._errorBoundary.logError("AC::logSession",e)}}_tryLogPageView(e){let t=(0,c._getSafeUrl)(),r=this._previousLoggedPageViewUrl;if(r&&t.pathname===r.pathname)return;this._engagementManager.setLastPageViewTime(Date.now()),this._hasLoggedPageViewEnd=!1;let i=(0,h._gatherAllMetadata)(t);e&&(i.navigation_type=e),this._previousLoggedPageViewUrl&&(i.last_page_view_url=this._previousLoggedPageViewUrl.href),this._pageViewLogged||(this._updateClientWithPossibleFirstTouchMetadata(),this._pageViewLogged=!0),this._enqueueAutoCapture(n.AutoCaptureEventName.PAGE_VIEW,(0,c._getSanitizedPageUrl)(),i,{flushImmediately:!0,addNewSessionMetadata:!0}),this._previousLoggedPageViewUrl=t,this._engagementManager.bumpInactiveTimer()}_tryLogPageViewEnd(e=!1){this._hasLoggedPageViewEnd||(this._hasLoggedPageViewEnd=!0,this._enqueueAutoCapture(n.AutoCaptureEventName.PAGE_VIEW_END,(0,c._getSanitizedPageUrl)(),Object.assign(Object.assign({},this._engagementManager.getPageViewEndMetadata()),{dueToInactivity:e}),{flushImmediately:!0}))}
316_logRageClick(e){if(!(0,c._shouldLogEvent)(e,e.target))return;let{value:t,metadata:r}=(0,d._gatherEventData)(e.target);this._enqueueAutoCapture(n.AutoCaptureEventName.RAGE_CLICK,t,Object.assign(Object.assign({x:e.clientX,y:e.clientY,timestamp:Date.now()},(0,h._gatherAllMetadata)((0,c._getSafeUrl)())),r))}_logPerformance(){let e=(0,i._getWindowSafe)();e&&e.performance&&void 0!==(null==e?void 0:e.performance)&&"function"==typeof e.performance.getEntriesByType&&"function"==typeof e.performance.getEntriesByName&&setTimeout(()=>{let t={},r=e.performance.getEntriesByType("navigation");if(r&&r.length>0&&r[0]instanceof PerformanceNavigationTiming){let e=r[0];t.load_time_ms=e.duration,t.dom_interactive_time_ms=e.domInteractive-e.startTime,t.redirect_count=e.redirectCount,t.transfer_bytes=e.transferSize}let i=e.performance.getEntriesByName("first-contentful-paint");i&&i.length>0&&i[0]instanceof PerformancePaintTiming&&(t.first_contentful_paint_time_ms=i[0].startTime),this._enqueueAutoCapture(n.AutoCaptureEventName.PERFORMANCE,(0,c._getSanitizedPageUrl)(),Object.assign(Object.assign({},t),(0,h._getNetworkInfo)()))},1)}_enqueueAutoCapture(e,t,r,n){var o,s,a;if(!t)return;let l=e.slice(14);if(this._disabledEvents[e]||this._disabledEvents[l])return;let u=this._getSessionFromClient();try{let l=Object.assign({sessionID:u.data.sessionID,page_url:null!==(a=null===(s=null===(o=(0,i._getWindowSafe)())||void 0===o?void 0:o.location)||void 0===s?void 0:s.href)&&void 0!==a?a:""},r);(null==n?void 0:n.addNewSessionMetadata)&&(l.isNewSession=String(this._isNewSession(u)));let c={eventName:e,value:t,metadata:l};if(this._eventFilterFunc&&!this._eventFilterFunc(c))return;this._client.logEvent(c),(null==n?void 0:n.flushImmediately)&&this._flushImmediately()}catch(e){this._errorBoundary.logError("AC::enqueue",e)}}_updateClientWithPossibleFirstTouchMetadata(){let e=this._client;e._possibleFirstTouchMetadata=(0,h._getPossibleFirstTouchMetadata)((0,c._getSafeUrl)()),Object.keys(e._possibleFirstTouchMetadata).length>0&&(e._user=Object.assign(Object.assign({},e._user),{analyticsOnlyMetadata:Object.assign(Object.assign({},e._possibleFirstTouchMetadata),e._user.analyticsOnlyMetadata)}))}_flushImmediately(){this._client.flush().catch(e=>{i.Log.error(e)})}_isNewSession(e){return 1e3>Math.abs(e.data.startTime-Date.now())}_getSessionFromClient(){return this._client.getContext().session}static getAllMetadata(){return(0,h._gatherAllMetadata)((0,c._getSafeUrl)())}}t.AutoCapture=g},5473:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCaptureEventName=void 0,t.AutoCaptureEventName={PAGE_VIEW:"auto_capture::page_view",PAGE_VIEW_END:"auto_capture::page_view_end",ERROR:"auto_capture::error",SESSION_START:"auto_capture::session_start",PERFORMANCE:"auto_capture::performance",FORM_SUBMIT:"auto_capture::form_submit",CLICK:"auto_capture::click",RAGE_CLICK:"auto_capture::rage_click",WEB_VITALS:"auto_capture::web_vitals",DEAD_CLICK:"auto_capture::dead_click",COPY:"auto_capture::copy",CONSOLE_LOG:"statsig::log_line"}},2824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogManager=void 0;let i=r(3328),n=r(5473),o=r(2185),s=r(7191),a=r(614),l={trace:10,debug:20,log:30,info:30,warn:40,error:50};class u{constructor(e,t,r){var i,n,o,s;this._enqueueFn=e,this._errorBoundary=t,this._options=r,this._restoreFns=[],this._isTracking=!1,this._logLevel="info",this.__source="js-auto-capture",this._logLevel=null!==(i=this._options.logLevel)&&void 0!==i?i:"info",this._maxKeys=null!==(n=this._options.maxKeys)&&void 0!==n?n:10,this._maxDepth=null!==(o=this._options.maxDepth)&&void 0!==o?o:10,this._maxStringLength=null!==(s=this._options.maxStringLength)&&void 0!==s?s:500}startTracking(){try{if(this._isTracking||!this._options.enabled||!(0,i._getWindowSafe)())return;this._patchConsole(),this._isTracking=!0}catch(e){i.Log.error("Error starting console log tracking",e),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}}stopTracking(){this._isTracking&&(this._restoreFns.forEach(e=>e()),this._restoreFns=[],this._isTracking=!1)}_patchConsole(){Object.entries(l).forEach(([e,t])=>
316{if(t<l[this._logLevel]||!console[e])return;let r=console[e].bind(console),i=!1,n=(0,o.wrapFunctionWithRestore)(console,e,t=>(...n)=>{if(t(...n),!i){i=!0;try{let t=n.map(e=>(0,s._safeStringify)(e,this._maxKeys,this._maxDepth,this._maxStringLength)),r=(0,s._getStackTrace)();this._enqueueConsoleLog(e,t,r)}catch(e){r("console observer error:",e,...n),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}finally{i=!1}}});this._restoreFns.push(n)})}_enqueueConsoleLog(e,t,r){if(!this._shouldLog())return;let i=Object.assign({status:"log"===e?"info":e,log_level:e,payload:t,trace:r,timestamp:Date.now(),source:this.__source},(0,a._gatherAllMetadata)((0,o._getSafeUrl)()));this._enqueueFn(n.AutoCaptureEventName.CONSOLE_LOG,t.join(" "),i)}_shouldLog(){return!this._options.sampleRate||"number"!=typeof this._options.sampleRate||this._options.sampleRate<=0||this._options.sampleRate>=1||Math.random()<this._options.sampleRate}}t.ConsoleLogManager=u},9896:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadClickConfig=void 0;let i=r(3328),n=r(5473),o=r(2185),s=r(3683),a=r(614);t.DeadClickConfig={CLICK_CHECK_TIMEOUT:1e3,SCROLL_DELAY_MS:100,SELECTION_CHANGE_DELAY_MS:100,MUTATION_DELAY_MS:2500,ABSOLUTE_DEAD_CLICK_TIMEOUT:2750};class l{constructor(e,r){this._enqueueFn=e,this._errorBoundary=r,this._lastMutationTime=0,this._lastSelectionChangeTime=0,this._clicks=[],this._deadClickConfig=t.DeadClickConfig,this._handleScroll=(0,o.throttle)(()=>{let e=Date.now();this._clicks.forEach(t=>{t.scrollDelayMs||(t.scrollDelayMs=e-t.timestamp)})},50)}startTracking(){try{let e=(0,i._getWindowSafe)();if(!e)return;e.addEventListener("click",e=>this._handleClick(e),{capture:!0}),e.addEventListener("scroll",()=>this._handleScroll(),{capture:!0,passive:!0}),e.addEventListener("selectionchange",()=>this._handleSelectionChange()),this._setupMutationObserver()}catch(e){i.Log.error("Error starting dead click tracking",e),this._errorBoundary.logError("autoCapture:DeadClickManager",e)}}_handleClick(e){var t,r;let n=e.target;if(!n)return;let s={timestamp:Date.now(),eventTarget:n};o.interactiveElements.includes(null===(t=null==n?void 0:n.tagName)||void 0===t?void 0:t.toLowerCase())||this._clicks.push(s),this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null===(r=(0,i._getWindowSafe)())||void 0===r?void 0:r.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_handleSelectionChange(){this._lastSelectionChangeTime=Date.now()}_setupMutationObserver(){let e=(0,i._getDocumentSafe)();e&&(this._observer=new MutationObserver(()=>{this._lastMutationTime=Date.now()}),this._observer.observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}))}_checkForDeadClick(){var e;if(!this._clicks.length)return;clearTimeout(this._clickCheckTimer),this._clickCheckTimer=void 0;let t=this._clicks;for(let e of(this._clicks=[],t)){this._updateClickDelayMs(e);let t=null!=e.scrollDelayMs&&e.scrollDelayMs<this._deadClickConfig.SCROLL_DELAY_MS,r=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs<this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,i=null!=e.mutationDelayMs&&e.mutationDelayMs<this._deadClickConfig.MUTATION_DELAY_MS;if(t||r||i)continue;let n=null!=e.scrollDelayMs&&e.scrollDelayMs>this._deadClickConfig.SCROLL_DELAY_MS,o=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs>this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,s=null!=e.mutationDelayMs&&e.mutationDelayMs>this._deadClickConfig.MUTATION_DELAY_MS,a=null!=e.absoluteDelayMs&&e.absoluteDelayMs>this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT;n||o||s||a?this._logDeadClick(e,{scrollTimeout:n,selectionChangeTimeout:o,mutationTimeout:s,absoluteTimeout:a}):null!=e.absoluteDelayMs&&e.absoluteDelayMs<this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT&&this._clicks.push(e)}this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null===(e=(0,i._getWindowSafe)())||void 0===e?void 0:e.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_logDeadClick(e,t){let{value:r,metadata:i}=(0,s._gatherEventData)(e.eventTarget);r&&this._enqueueFn(n.AutoCaptureEventName.DEAD_CLICK,r,Object.assign(Object.assign(Object.assign(Object.assign({},i),t),(0,a._gatherCommonMetadata)((0,o._getSafeUrl)())),{scrollDelayMs:e.scrollDelayMs,selectionChangeDelayMs:e.selectionChangeDelayMs,mutationDelayMs:e.mutationDelayMs,absoluteDelayMs:e.absoluteDelayMs}))}_updateClickDelayMs(e){!e.mutationDelayMs&&this._lastMutationTime>0&&e.timestamp<=this._lastMutationTime&&(e.mutationDelayMs=Date.now()-this._lastMutationTime),!e.selectionChangeDelayMs&&this._lastSelectionChangeTime>0&&e.timestamp<=this._lastSelectionChangeTime&&(e.selectionChangeDelayMs=Date.now()-this._lastSelectionChangeTime),e.absoluteDelayMs=Date.now()-e.timestamp}}t.default=l},3480:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementManager=void 0;let i=r(3328);class n{constructor(){this._lastScrollY=0,this._maxScrollY=0,this._lastScrollPercentage=0,this._maxScrollPercentage=0,this._lastPageViewTime=Date.now(),this._inactiveTimer=null,this._onInactivityCallback=null,this._meaningfulEngagementOccurred=!1,this._initializeScrollTracking()}_initializeScrollTracking(){let e=(0,i._getWindowSafe)();e&&(e.addEventListener("scroll",()=>this._handleScroll()),e.addEventListener("scrollend",()=>this._handleScroll()),e.addEventListener("resize",()=>this._handleScroll()))}_handleScroll(){let e=(0,i._getWindowSafe)(),t=(0,i._getDocumentSafe)();if(!e||!t)return;let r=t.body.scrollHeight,n=e.scrollY||t.documentElement.scrollTop||0,o=e.innerHeight;this._lastScrollY=n,this._maxScrollY=Math.max(this._maxScrollY,n);let s=Math.min(100,Math.round((n+o)/r*100));this._lastScrollPercentage=s,this._maxScrollPercentage=Math.max(this._maxScrollPercentage,s),this.bumpInactiveTimer()}getScrollMetrics(){return{lastScrollY:this._lastScrollY,maxScrollY:this._maxScrollY,lastScrollPercentage:this._lastScrollPercentage,maxScrollPercentage:this._maxScrollPercentage,scrollDepth:this._maxScrollPercentage}}getPageViewLength(){return Date.now()-this._lastPageViewTime}setLastPageViewTime(e){this._lastPageViewTime=e}startInactivityTracking(e){this._onInactivityCallback=e}bumpInactiveTimer(){let e=(0,i._getWindowSafe)();e&&(this._inactiveTimer&&clearTimeout(this._inactiveTimer),this._inactiveTimer=e.setTimeout(()=>{this._onInactivityCallback&&this._onInactivityCallback()},6e5))}setMeaningfulEngagementOccurred(e){this._meaningfulEngagementOccurred=e}getPageViewEndMetadata(){let e=Object.assign(Object.assign({},this.getScrollMetrics()),{pageViewLength:this.getPageViewLength(),meaningfulEngagementOccurred:this._meaningfulEngagementOccurred});return this.setMeaningfulEngagementOccurred(!1),e}}t.EngagementManager=n},442:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this._clicks=[]}isRageClick(e,t,r){var i;return this._clicks=this._clicks.filter(e=>r-e.timestamp<1e3),this._clicks.length>0&&!(Math.abs(e-(i=this._clicks[this._clicks.length-1]).x)+Math.abs(t-i.y)<=30)&&(this._clicks=[]),this._clicks.push({x:e,y:t,timestamp:r}),this._clicks.length>=3}}t.default=r},8325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebVitalsManager=void 0;let i=r(4511),n=r(3328),o=r(5473),s=r(2185),a=["CLS","FCP","INP","LCP","TTFB"];class l{constructor(e,t){this._enqueueFn=e,this._errorBoundary=t,this._isInitialized=!1,this._metricEvent={url:(0,s._getSafeUrlString)(),sanitizedUrl:(0,s._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}startTracking(){var e,t;try{if(this._isInitialized)return;let r=null===(t=null===(e=(0,n._getWindowSafe)())||void 0===e?void 0:e.location)||void 0===t?void 0:t.protocol;if("https:"!==r&&"http:"!==r)return;(0,i.onCLS)(e=>this._handleMetric(e)),(0,i.onFCP)(e=>this._handleMetric(e)),(0,i.onINP)(e=>this._handleMetric(e)),(0,i.onLCP)(e=>this._handleMetric(e)),(0,i.onTTFB)(e=>this._handleMetric(e)),this._isInitialized=!0}catch(e){n.Log.error("Error starting web vitals tracking",e),this._errorBoundary.logError("autoCapture:WebVitalsManager",e)}}_handleMetric(e){if(void 0===this._metricEvent.firstMetricTimestamp&&(this._metricEvent.firstMetricTimestamp=Date.now()),void 0===e||(null==e?void 0:e.name)===void 0)return;let t=(0,s._getSafeUrlString)();""!==t&&a.includes(e.name)&&(t!==this._metricEvent.url&&(this._enqueueWebVitalsAutoCaptureEvent(),this._metricEvent.url=t),this._metricEvent.metrics.push({name:e.name,value:e.value,delta:e.delta,id:e.id}),this._metricEvent.metrics.length===a.length&&this._enqueueWebVitalsAutoCaptureEvent())}_enqueueWebVitalsAutoCaptureEvent(){if(""===this._metricEvent.url||0===this._metricEvent.metrics.length)return;let e={};this._metricEvent.metrics.forEach(t=>{let r=t.name.toLowerCase();e[`${r}_value`]=t.value,e[`${r}_delta`]=t.delta,e[`${r}_id`]=t.id}),this._enqueueFn(o.AutoCaptureEventName.WEB_VITALS,this._metricEvent.sanitizedUrl,Object.assign(Object.assign({},e),{first_metric_timestamp:this._metricEvent.firstMetricTimestamp})),this._metricEvent={url:(0,s._getSafeUrlString)(),sanitizedUrl:(0,s._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}}t.WebVitalsManager=l},2566:function(e,t,r){"use strict";t.Hq=void 0;let i=r(3328),n=r(9023);Object.defineProperty(t,"Hq",{enumerable:!0,get:function(){return n.StatsigAutoCapturePlugin}}),r(5473),Object.assign((0,i._getStatsigGlobal)(),{AutoCapture:n.AutoCapture,runStatsigAutoCapture:n.runStatsigAutoCapture,StatsigAutoCapturePlugin:n.StatsigAutoCapturePlugin})},2185:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t.wrapFunctionWithRestore=t.throttle=t._sanitizeString=t._getAnchorNodeInHierarchy=t._getSafeTimezoneOffset=t._getSafeTimezone=t._getSafeNetworkInformation=t._registerEventHandler=t._getSanitizedPageUrl=t._getSafeUrlString=t._getSafeUrl=t._shouldLogEvent=t._getTargetNode=t._stripEmptyValues=t.interactiveElements=void 0;let i=r(3328),n=RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),o=RegExp("^(\\\\d{3}-?\\\\d{2}-?\\\\d{4})$");function s(){var e,t,r;let n;let o=null!==(r=null===(t=null===(e=(0,i._getWindowSafe)())||void 0===e?void 0:e.location)||void 0===t?void 0:t.href)&&void 0!==r?r:"";try{n=new URL(o)}catch(e){n=new URL("error:")}return n}function a(e){if(!e)return null;let t=e;for(;t&&!["body","document"].includes(t.tagName.toLowerCase());){if("a"===t.tagName.toLowerCase())return t;t=t.parentElement}return null}t.interactiveElements=["button","a","input","select","textarea","form","select","label"],t._stripEmptyValues=function(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t&&""!==t&&void 0!==t))},t._getTargetNode=function(e){if(!e)return null;let t=e.target||e.srcElement;return t&&t instanceof Element?(3===t.nodeType&&(t=t.parentNode||null),t):null},t._shouldLogEvent=function(e,r,i=!1){if(!e||!r||1!==r.nodeType)return!1;let n=r.tagName.toLowerCase(),o=e.type.toLowerCase();if(r.classList.contains("statsig-no-capture"))return!1;if(i)return!0;switch(n){case"html":return!1;case"form":return["submit"].indexOf(o)>=0;case"input":case"select":case"textarea":return["change","click"].indexOf(o)>=0;default:if("click"===o){let e=window.getComputedStyle(r);if(e&&"pointer"===e.getPropertyValue("cursor")||t.interactiveElements.includes(n)||"true"===r.getAttribute("contenteditable")||a(r))return!0}return!1}},t._getSafeUrl=s,t._getSafeUrlString=function(){let e=s().toString();return e.startsWith("error:")?"":e},t._getSanitizedPageUrl=function(){return(0,i._getCurrentPageUrlSafe)()||""},t._registerEventHandler=function(e,t,r){e&&e.addEventListener&&e.addEventListener(t,r,!0)},t._getSafeNetworkInformation=function(){let e=(0,i._getWindowSafe)();return e&&e.navigator&&e.navigator.connection||null},t._getSafeTimezone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return null}},t._getSafeTimezoneOffset=function(){try{return new Date().getTimezoneOffset()}catch(e){return null}},t._getAnchorNodeInHierarchy=a,t._sanitizeString=function(e){return e?e.replace(/<[^>]*>/g,"").trim().split(/(\s+)/).filter(e=>!(n.test((e||"").replace(/[- ]/g,""))||o.test((e||"").replace(/[- ]/g,"")))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255):null},t.throttle=function(e,t){let r=0;return function(...i){let n=Date.now();n-r>=t&&(r=n,e(...i))}},t.wrapFunctionWithRestore=function(e,t,r){let i=e[t];if("function"!=typeof i)return()=>{};try{let n=r(i);return Object.defineProperty(n,"__statsig_original__",{enumerable:!1,value:i}),e[t]=n,()=>{e[t]=i}}catch(e){return()=>{}}}},7191:function(e,t){"use strict";function r(e,t){return e.length<=t?e:e.slice(0,t)+"..."}Object.defineProperty(t,"__esModule",{value:!0}),t._getStackTrace=t._safeStringify=void 0,t._safeStringify=function(e,t,i,n){try{if("[object Object]"===Object.prototype.toString.call(e)&&(Object.keys(e).length>t||function e(t,r){return r<=0||"object"==typeof t&&null!==t&&Object.keys(t).some(i=>e(t[i],r-1))}(e,i))||"function"==typeof e)return r(e.toString(),n);if("string"==typeof e)return r(e,n);if("object"==typeof e&&null!==e)return r(JSON.stringify(e),n);return r(String(e),n)}catch(e){return r("[Unserializable]",n)}},t._getStackTrace=function(){var e,t;try{return null!==(t=null===(e=Error().stack)||void 0===e?void 0:e.split("\n").slice(2))&&void 0!==t?t:[]}catch(e){return[]}}},3683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getMetadataFromElement=t._gatherCopyEventData=t._gatherEventData=void 0;let i=r(3328),n=r(2185);function o(e,t){return e?e.length>t?e.substring(0,t)+"...":e:null}function s(e){let t={};return t.class=(o(e.getAttribute("class"),1e3)||"").replace(/\s+/g," ").trim(),t.id=o(e.getAttribute("id"),1e3),t.ariaLabel=o(e.getAttribute("aria-label"),1e3),t.name=o(e.getAttribute("name"),1e3),t}function a(e){let t={};Object.assign(t,s(e));let r=Array.from(e.classList);return t.classList=r.length>0?r.slice(0,100):null,t.selector=function(e){if(!e)return"";if(!e.parentNode){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let r=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(r+="."+t.join("."))}return r}let t=[],r=e,i=0;for(;r&&r.nodeType===Node.ELEMENT_NODE&&i<50;){let e=function(e){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let r=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(r+="."+t.join("."))}let i=e.parentElement;if(i&&i.children.length>1){let t=1,i=1,n=e.previousElementSibling;for(;n;)t++,n.tagName===e.tagName&&i++,n=n.previousElementSibling;r+=`:nth-child(${t})`,(i>1||function(e){let t=e.nextElementSibling;for(;t;){if(t.tagName===e.tagName)return!0;t=t.nextElementSibling}return!1}(e))&&(r+=`:nth-of-type(${i})`)}return r}(r);if(t.unshift(e),r.id||(r=r.parentElement)&&"body"===r.tagName.toLowerCase())break;i++}return t.join(" > ")}(e),t}t._gatherEventData=function(e){let t=(0,n._getSanitizedPageUrl)()||"",r=e.tagName.toLowerCase();if("input"===e.tagName.toLowerCase()&&["button","checkbox","submit","reset"].includes(e.getAttribute("type")||"")||"textarea"===e.tagName.toLowerCase()||"select"===e.tagName.toLowerCase()||"true"===e.getAttribute("contenteditable"))return{value:t,metadata:s(e)};let i={};i.tagName=r,Object.assign(i,a(e)),"form"===r&&Object.assign(i,function(e){var t;let r={};return r.action=e.getAttribute("action"),r.method=null!==(t=e.getAttribute("method"))&&void 0!==t?t:"GET",r.formName=e.getAttribute("name"),r.formId=e.getAttribute("id"),r}(e)),"input"===r&&Object.assign(i,function(e){let t={};return t.content=e.value,t.inputName=e.getAttribute("name"),t}(e));let o=(0,n._getAnchorNodeInHierarchy)(e);return o&&Object.assign(i,function(e){let t={};return t.href=e.getAttribute("href"),t}(o)),("button"===r||o)&&Object.assign(i,function(e){let t={};return t.content=(e.textContent||"").trim(),Object.assign(t,function(e){let t={};if(!e)return t;let r=null==e?void 0:e.dataset;if(!r)return t;for(let e in r)t[`data-${e}`]=r[e]||"";return t}(e)),t}(o||e)),function(e){var t;if(Array.isArray(e.classList)&&(null===(t=e.classList)||void 0===t?void 0:t.includes("statsig-ctr-capture")))return!0;let r=e.href;if(r)try{let e=(0,n._getSafeUrl)(),t=new URL(r);return e.host!==t.host}catch(e){}return!1}(i)&&(i.isOutbound="true"),{value:t,metadata:i}},t._gatherCopyEventData=function(e){var t,r;let o=null===(r=null===(t=(0,i._getWindowSafe)())||void 0===t?void 0:t.getSelection())||void 0===r?void 0:r.toString(),s={};s.selectedText=(0,n._sanitizeString)(o);let a=e.type||"clipboard";return s.clipType=a,s},t._getMetadataFromElement=a},614:function(e,t,r){"use strict";
316Object.defineProperty(t,"__esModule",{value:!0}),t._getPossibleFirstTouchMetadata=t._getNetworkInfo=t._gatherAllMetadata=t._gatherCommonMetadata=void 0;let i=r(3328),n=r(2185);function o(e){var t,r,o,a,l,u,c,d;let h=(0,i._getDocumentSafe)(),p=(0,i._getWindowSafe)();return(0,n._stripEmptyValues)(Object.assign({title:null==h?void 0:h.title,current_url:null===(t=null==p?void 0:p.location)||void 0===t?void 0:t.href,user_agent:(null===(r=null==p?void 0:p.navigator)||void 0===r?void 0:r.userAgent)&&(null===(a=null===(o=null==p?void 0:p.navigator)||void 0===o?void 0:o.userAgent)||void 0===a?void 0:a.length)>200?p.navigator.userAgent.substring(0,200):null===(l=null==p?void 0:p.navigator)||void 0===l?void 0:l.userAgent,locale:null===(u=null==p?void 0:p.navigator)||void 0===u?void 0:u.language,hostname:e.hostname,pathname:e.pathname,screen_width:null===(c=null==p?void 0:p.screen)||void 0===c?void 0:c.width,screen_height:null===(d=null==p?void 0:p.screen)||void 0===d?void 0:d.height,viewport_width:null==p?void 0:p.innerWidth,viewport_height:null==p?void 0:p.innerHeight,viewport:`${null==p?void 0:p.innerWidth}x${null==p?void 0:p.innerHeight}`,timestamp:Date.now(),timezone:(0,n._getSafeTimezone)(),timezone_offset:(0,n._getSafeTimezoneOffset)()},s()))}function s(){let e=(0,n._getSafeNetworkInformation)(),t={};return(null==e?void 0:e.effectiveType)!==void 0&&(t.effective_connection_type=e.effectiveType),(null==e?void 0:e.rtt)!==void 0&&(t.rtt_ms=e.rtt),(null==e?void 0:e.downlink)!==void 0&&(t.downlink_mbps=e.downlink,t.downlink_kbps=1e3*e.downlink),(null==e?void 0:e.saveData)!==void 0&&(t.save_data=e.saveData),t}function a(e){let t=(null==e?void 0:e.referrer)||"";if(!t)return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""};try{let e=new URL(t),r=e.hostname,i=["google","bing","yahoo","duckduckgo","baidu"].find(e=>r.includes(e+"."))||"",n=e.searchParams.get("yahoo"===i?"p":"q")||"";return{referrer:t,referrer_domain:e.hostname,referrer_path:e.pathname,searchEngine:i,searchQuery:n}}catch(e){return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""}}}function l(e){let t=e.searchParams,r={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content","msclkid","dclid","fbclid","gad_source","gclid","gclsrc","wbraid","utm_id","irclid","igshid","_kx","li_fat_id","mc_cid","mc_eid","epik","qclid","rdt_cid","sccid","ttc","ttclid","ttc_id","twclid"].forEach(e=>{let i=t.get(e);i&&(r[e]=i)}),r}t._gatherCommonMetadata=o,t._gatherAllMetadata=function(e){let t=(0,i._getDocumentSafe)(),r=(0,i._getWindowSafe)();if(!t||!r)return{};let s=a(t),u=o(e),c=l(e),d={};return e.searchParams.forEach((e,t)=>{d[t]=e}),Object.assign(Object.assign({},u),(0,n._stripEmptyValues)(Object.assign(Object.assign(Object.assign({},s),c),d)))},t._getNetworkInfo=s,t._getPossibleFirstTouchMetadata=function(e){let t=(0,i._getDocumentSafe)(),r=(0,i._getWindowSafe)();if(!t||!r)return{};let o=a(t),s=l(e),u=(0,n._stripEmptyValues)(Object.assign(Object.assign({},o),s)),c={};for(let[e,t]of Object.entries(u))c[`$s_${e}`]=t;return c}},4511:function(e,t){!function(e){"use strict";let t;let r=-1,i=e=>{addEventListener("pageshow",t=>{t.persisted&&(r=t.timeStamp,e(t))},!0)},n=(e,t,r,i)=>{let n,o;return s=>{var a;t.value>=0&&(s||i)&&((o=t.value-(n??0))||void 0===n)&&(n=t.value,t.delta=o,t.rating=(a=t.value)>r[1]?"poor":a>r[0]?"needs-improvement":"good",e(t))}},o=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},s=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},a=()=>{let e=s();return e?.activationStart??0},l=(e,t=-1)=>{let i=s(),n="navigate";return r>=0?n="back-forward-cache":i&&(document.prerendering||a()>0?n="prerender":document.wasDiscarded?n="restore":i.type&&(n=i.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},u=new WeakMap;function c(e,t){return u.get(e)||u.set(e,new t),u.get(e)}class d{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],r=this.o.at(-1);this.i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let h=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},p=e=>{let t=!1;return()=>{t||(e(),t=!0)}},f=-1,m=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,g=e=>{"hidden"===document.visibilityState&&f>-1&&(f="visibilitychange"===e.type?e.timeStamp:0,v())},y=()=>{addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},v=()=>{removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},b=()=>{if(f<0){let e=a();f=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??m(),y(),i(()=>{setTimeout(()=>{f=m(),y()})})}return{get firstHiddenTime(){return f}}},w=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},_=[1800,3e3],S=(e,t={})=>{w(()=>
316{let r=b(),s,u=l("FCP"),c=h("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(c.disconnect(),t.startTime<r.firstHiddenTime&&(u.value=Math.max(t.startTime-a(),0),u.entries.push(t),s(!0)))});c&&(s=n(e,u,_,t.reportAllChanges),i(r=>{s=n(e,u=l("FCP"),_,t.reportAllChanges),o(()=>{u.value=performance.now()-r.timeStamp,s(!0)})}))})},x=[.1,.25],k=0,C=1/0,E=0,A=e=>{for(let t of e)t.interactionId&&(C=Math.min(C,t.interactionId),k=(E=Math.max(E,t.interactionId))?(E-C)/7+1:0)},I=()=>t?k:performance.interactionCount??0,O=()=>{"interactionCount"in performance||t||(t=h("event",A,{type:"event",buffered:!0,durationThreshold:0}))},T=0;class M{u=[];l=new Map;m;p;v(){T=I(),this.u.length=0,this.l.clear()}T(){let e=Math.min(this.u.length-1,Math.floor((I()-T)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>t.P){if(r?e.duration>r.P?(r.entries=[e],r.P=e.duration):e.duration===r.P&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],P:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((e,t)=>t.P-e.P),this.u.length>10)for(let e of this.u.splice(10))this.l.delete(e.id);this.p?.(r)}}}let P=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=p(e),document.addEventListener("visibilitychange",e,{once:!0}),t(()=>{e(),document.removeEventListener("visibilitychange",e)}))},R=[200,500];class D{m;h(e){this.m?.(e)}}let j=[2500,4e3],L=[800,1800],F=e=>{document.prerendering?w(()=>F(e)):"complete"!==document.readyState?addEventListener("load",()=>F(e),!0):setTimeout(e)};e.CLSThresholds=x,e.FCPThresholds=_,e.INPThresholds=R,e.LCPThresholds=j,e.TTFBThresholds=L,e.onCLS=(e,t={})=>{S(p(()=>{let r,s=l("CLS",0),a=c(t,d),u=e=>{for(let t of e)a.h(t);a.i>s.value&&(s.value=a.i,s.entries=a.o,r())},p=h("layout-shift",u);p&&(r=n(e,s,x,t.reportAllChanges),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(u(p.takeRecords()),r(!0))}),i(()=>{a.i=0,r=n(e,s=l("CLS",0),x,t.reportAllChanges),o(()=>r())}),setTimeout(r))}))},e.onFCP=S,e.onINP=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&w(()=>{O();let r,o=l("INP"),s=c(t,M),a=e=>{P(()=>{for(let t of e)s.h(t);let t=s.T();t&&t.P!==o.value&&(o.value=t.P,o.entries=t.entries,r())})},u=h("event",a,{durationThreshold:t.durationThreshold??40});r=n(e,o,R,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(a(u.takeRecords()),r(!0))}),i(()=>{s.v(),r=n(e,o=l("INP"),R,t.reportAllChanges)}))})},e.onLCP=(e,t={})=>{w(()=>{let r=b(),s,u=l("LCP"),d=c(t,D),f=e=>{for(let i of(t.reportAllChanges||(e=e.slice(-1)),e))d.h(i),i.startTime<r.firstHiddenTime&&(u.value=Math.max(i.startTime-a(),0),u.entries=[i],s())},m=h("largest-contentful-paint",f);if(m){s=n(e,u,j,t.reportAllChanges);let r=p(()=>{f(m.takeRecords()),m.disconnect(),s(!0)});for(let e of["keydown","click","visibilitychange"])addEventListener(e,()=>P(r),{capture:!0,once:!0});i(r=>{s=n(e,u=l("LCP"),j,t.reportAllChanges),o(()=>{u.value=performance.now()-r.timeStamp,s(!0)})})}})},e.onTTFB=(e,t={})=>{let r=l("TTFB"),o=n(e,r,L,t.reportAllChanges);F(()=>{let u=s();u&&(r.value=Math.max(u.responseStart-a(),0),r.entries=[u],o(!0),i(()=>{(o=n(e,r=l("TTFB",0),L,t.reportAllChanges))(!0)}))})}}(t)},7462:function(e,t,r){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}r.d(t,{Z:function(){return i}})},5372:function(e,t,r){"use strict";r.d(t,{W:function(){return n}});var i=r(7294);function n(e,t=[]){let r=(0,i.useRef)(e);return(0,i.useEffect)(()=>{r.current=e}),(0,i.useCallback)((...e)=>r.current?.(...e),t)}},4097:function(e,t,r){"use strict";r.d(t,{G:function(){return n}});var i=r(7294);let n=globalThis?.document?i.useLayoutEffect:i.useEffect},1046:function(e,t,r){"use strict";r.d(t,{If:function(){return o},kc:function(){return n}});var i=r(7294);let n=(0,i.createContext)({});function o(){let e=(0,i.useContext)(n);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}n.displayName="ColorModeContext"},2553:function(e,t,r){"use strict";r.d(t,{J:function(){return u}});var i=r(5893),n=r(4926),o=r(9381),s=r(8207),a=r(7430);let l={path:(0,i.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,i.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,i.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,i.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,o.G)((e,t)=>{let{as:r,viewBox:o,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,n.cx)("chakra-icon",h),g=(0,s.m)("Icon",e),y={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...p,...g}},v=o??l.viewBox;if(r&&"string"!=typeof r)return(0,i.jsx)(a.m.svg,{as:r,...y,...f});let b=d??l.path;return(0,i.jsx)(a.m.svg,{verticalAlign:"middle",viewBox:v,...y,...f,children:b})});u.displayName="Icon"},8899:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var i=r(5893),n=r(5544),o=r(4926),s=r(917),a=r(9381),l=r(8207),u=r(7430);let c=(0,s.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,a.G)((e,t)=>{let r=(0,l.m)("Spinner",e),{label:s="Loading...",thickness:a="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}
316=(0,n.L)(e),m=(0,o.cx)("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:a,borderBottomColor:h,borderLeftColor:h,animation:`${c} ${d} linear infinite`,...r};return(0,i.jsx)(u.m.div,{ref:t,__css:g,className:m,...f,children:s&&(0,i.jsx)(u.m.span,{srOnly:!0,children:s})})});d.displayName="Spinner"},7430:function(e,t,r){"use strict";r.d(t,{m:function(){return I}});var i=r(5831),n=r(2203),o=r(2847),s=r(7155),a=r(7462),l=r(2010),u=r(5662),c=r(7278),d=r(444),h=r(7294),p=r(5042),f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,p.Z)(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),g=function(e){return"theme"!==e},y=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?m:g},v=function(e,t,r){var i;if(t){var n=t.shouldForwardProp;i=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},b=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return(0,d.hC)(t,r,i),(0,c.L)(function(){return(0,d.My)(t,r,i)}),null},w=(function e(t,r){var i,n,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==r&&(i=r.label,n=r.target);var c=v(t,r,o),p=c||y(s),f=!p("as");return function(){var m=arguments,g=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&g.push("label:"+i+";"),null==m[0]||void 0===m[0].raw)g.push.apply(g,m);else{var w=m[0];g.push(w[0]);for(var _=m.length,S=1;S<_;S++)g.push(m[S],w[S])}var x=(0,l.w)(function(e,t,r){var i=f&&e.as||s,o="",a=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=h.useContext(l.T)}"string"==typeof e.className?o=(0,d.fp)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var w=(0,u.O)(g.concat(a),t.registered,m);o+=t.key+"-"+w.name,void 0!==n&&(o+=" "+n);var _=f&&void 0===c?y(i):p,S={};for(var x in e)(!f||"as"!==x)&&_(x)&&(S[x]=e[x]);return S.className=o,r&&(S.ref=r),h.createElement(h.Fragment,null,h.createElement(b,{cache:t,serialized:w,isStringTag:"string"==typeof i}),h.createElement(i,S))});return x.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=s,x.__emotion_styles=g,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+n}}),x.withComponent=function(t,i){return e(t,(0,a.Z)({},r,i,{shouldForwardProp:v(x,i,!0)})).apply(void 0,g)},x}}).bind(null);["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){w[e]=w(e)});let _=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),S=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function x(e){return(S.has(e)||!_.has(e))&&"_"!==e[0]}var k=r(1046);let C=w.default||w,E=({baseStyle:e})=>t=>{let{theme:r,css:a,__css:l,sx:u,...c}=t,[d]=function(e,...t){let r=Object.getOwnPropertyDescriptors(e),i=Object.keys(r),n=e=>{let t={};for(let i=0;i<e.length;i++){let n=e[i];r[n]&&(Object.defineProperty(t,n,r[n]),delete r[n])}return t};return t.map(e=>n(Array.isArray(e)?e:i.filter(e))).concat(n(i))}(c,i.ZR),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}({},l,(0,o.P)(e,t),(0,s.o)(d),u),p=(0,n.i)(h)(t.theme);return a?[p,a]:p};function A(e,t){let{baseStyle:r,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=x);let n=E({baseStyle:r}),o=C(e,i)(n);return(0,h.forwardRef)(function(e,t){let{children:r,...i}=e,{colorMode:n,forced:s}=(0,k.If)();return(0,h.createElement)(o,{ref:t,"data-theme":s?n:void 0,...i},r)})}let I=function(){let e=new Map;return new Proxy(A,{apply:(e,t,r)=>A(...r),get:(t,r)=>(e.has(r)||e.set(r,A(r)),e.get(r))})}()},9381:function(e,t,r){"use strict";r.d(t,{G:function(){return n}});var i=r(7294);function n(e){return(0,i.forwardRef)(e)}},8207:function(e,t,r){"use strict";r.d(t,{j:function(){return f},m:function(){return p}});var i=r(9115),n=r(5292),o=r(2847),s=r(8554),a=r(4839),l=r(7294),u=r(9590),c=r(2010),d=r(1046);function h(e,t={}){let{styleConfig:r,...h}=t,{theme:p,colorMode:f}=function(){let e=(0,d.If)(),t=function(){let e=(0,l.useContext)(c.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}();return{...e,theme:t}}(),m=e?(0,a.W)(p,`components.${e}`):void 0,g=r||m,y=s({theme:p,colorMode:f},g?.defaultProps??{},Object.fromEntries(Object.entries(h).filter(([e,t])=>void 0!==t&&"children"!==e&&!(0,l.isValidElement)(t))),(e,t)=>e?void 0:t),v=(0,l.useRef)({});if(g){let e=(e=>{let{variant:t,size:r,theme:a}=e,l=function(e){let t=e.__breakpoints;return function(e,r,a,l){var u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(a)?a:(0,i.Kn)(a)?u(a):null!=a?[a]:void 0);if(!d)return c;let h=d.length,p=1===h,f=!!e.parts;for(let i=0;i<h;i++){let a=t.details[i],u=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(d,i)],h=(0,n.Y)(a.minW,u?._minW),m=(0,o.P)(e[r]?.[d[i]],l);
316if(m){if(f){e.parts?.forEach(e=>{s(c,{[e]:p?m[e]:{[h]:m[e]}})});continue}if(!f){p?s(c,m):c[h]=m;continue}c[h]=m}}return c}}(a);return s({},(0,o.P)(g.baseStyle??{},e),l(g,"sizes",r,e),l(g,"variants",t,e))})(y);u(v.current,e)||(v.current=e)}return v.current}function p(e,t={}){return h(e,t)}function f(e,t={}){return h(e,t)}},2203:function(e,t,r){"use strict";r.d(t,{i:function(){return d}});var i=r(2847),n=r(9115),o=r(8554),s=r(7474),a=r(5831);let l=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:o,media:s}=t.__breakpoints,a={};for(let l in e){let u=(0,i.P)(e[l],t);if(null==u)continue;if(!Array.isArray(u=(0,n.Kn)(u)&&r(u)?o(u):u)){a[l]=u;continue}let c=u.slice(0,s.length).length;for(let e=0;e<c;e+=1){let t=s?.[e];if(!t){a[l]=u[e];continue}a[t]=a[t]||{},null!=u[e]&&(a[t][l]=u[e])}}return a},u=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),c=(e,t)=>{if(null==t)return t;let r=t=>e.__cssMap?.[t]?.varRef,i=e=>r(e)??e,[n,o]=function(e){let t=[],r="",i=!1;for(let n=0;n<e.length;n++){let o=e[n];"("===o?(i=!0,r+=o):")"===o?(i=!1,r+=o):","!==o||i?r+=o:(t.push(r),r="")}return(r=r.trim())&&t.push(r),t}(t);return t=r(n)??i(o)??i(t)},d=e=>t=>(function(e){let{configs:t={},pseudos:r={},theme:s}=e,a=(e,d=!1)=>{let h=(0,i.P)(e,s),p=l(h)(s),f={};for(let e in p){let l=p[e],m=(0,i.P)(l,s);e in r&&(e=r[e]),u(e,m)&&(m=c(s,m));let g=t[e];if(!0===g&&(g={property:e}),(0,n.Kn)(m)){f[e]=f[e]??{},f[e]=o({},f[e],a(m,!0));continue}let y=g?.transform?.(m,s,h)??m;y=g?.processResult?a(y,!0):y;let v=(0,i.P)(g?.property,s);if(!d&&g?.static&&(f=o({},f,(0,i.P)(g.static,s))),v&&Array.isArray(v)){for(let e of v)f[e]=y;continue}if(v){"&"===v&&(0,n.Kn)(y)?f=o({},f,y):f[v]=y;continue}if((0,n.Kn)(y)){f=o({},f,y);continue}f[e]=y}return f};return a})({theme:t,pseudos:s.v,configs:a.Ul})(e)},3695:function(e,t,r){"use strict";function i(e){return e}function n(e){return e}function o(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}r.d(t,{D:function(){return o},fj:function(){return n},k0:function(){return i}})},7474:function(e,t,r){"use strict";r.d(t,{_:function(){return l},v:function(){return a}});let i={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,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}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},n=e=>s(t=>e(t,"&"),"[role=group]","[data-group]",".group"),o=e=>s(t=>e(t,"~ &"),"[data-peer]",".peer"),s=(e,...t)=>t.map(e).join(", "),a={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:n(i.open),_groupClosed:n(i.closed),_groupHover:n(i.hover),_peerHover:o(i.hover),_groupFocus:n(i.focus),_peerFocus:o(i.focus),_groupFocusVisible:n(i.focusVisible),_peerFocusVisible:o(i.focusVisible),_groupActive:n(i.active),_peerActive:o(i.active),_groupDisabled:n(i.disabled),_peerDisabled:o(i.disabled),_groupInvalid:n(i.invalid),_peerInvalid:o(i.invalid),_groupChecked:n(i.checked),_peerChecked:o(i.checked),_groupFocusWithin:n(i.focusWithin),_peerFocusWithin:o(i.focusWithin),_peerPlaceholderShown:o(i.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},l=Object.keys(a)},5831:function(e,t,r){"use strict";r.d(t,{ZR:function(){return X},oE:function(){return K},cC:function(){return q},Ul:function(){return H}});var i=r(8554),n=r(7474),o=r(9115);let s=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,l=(e,t)=>
316r=>{let i=String(t),n=s(i),l=a(i),u=e?`${e}.${l}`:l,c=(0,o.Kn)(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return c=a(c),n?`${c} !important`:c};function u(e){let{scale:t,transform:r,compose:i}=e;return(e,n)=>{let o=l(t,e)(n),s=r?.(o,n)??o;return i&&(s=i(s,n)),s}}let c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function d(e,t){return r=>{let i={property:r,scale:e};return i.transform=u({scale:e,transform:t}),i}}let h=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,p=["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)"},m={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,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},y={"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"},v=new Set(Object.values(y)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),w=e=>e.trim(),_=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),S=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},x=e=>t=>`${e}(${t})`,k={filter:e=>"auto"!==e?e:f,backdropFilter:e=>"auto"!==e?e:m,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":k.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))",...p].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...p].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=S(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||b.has(e))return e;if(!(_(e)||b.has(e)))return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=r?.[1],n=r?.[2];if(!i||!n)return e;let o=i.includes("-gradient")?i:`${i}
316-gradient`,[s,...a]=n.split(",").map(w).filter(Boolean);if(a?.length===0)return e;let l=s in y?y[s]:s;a.unshift(l);let u=a.map(e=>{if(v.has(e))return e;let r=e.indexOf(" "),[i,n]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=_(n)?n:n&&n.split(" "),s=`colors.${i}`,a=s in t.__cssMap?t.__cssMap[s].varRef:i;return o?[a,...Array.isArray(o)?o:[o]].join(" "):a});return`${o}(${u.join(", ")})`})(e,t??{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:e=>x("hue-rotate")(k.degree(e)),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage:e=>null==e?e:_(e)||b.has(e)?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){let{space:t,divide:r}=g[e]??{},i={flexDirection:e};return t&&(i[t]=1),r&&(i[r]=1),i}},C={borderWidths:d("borderWidths"),borderStyles:d("borderStyles"),colors:d("colors"),borders:d("borders"),gradients:d("gradients",k.gradient),radii:d("radii",k.px),space:d("space",c(k.vh,k.px)),spaceT:d("space",c(k.vh,k.px)),degreeT:e=>({property:e,transform:k.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:u({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:d("sizes",c(k.vh,k.px)),sizesT:d("sizes",c(k.vh,k.fraction)),shadows:d("shadows"),logical:function(e){let{property:t,scale:r,transform:i}=e;return{scale:r,property:h(t),transform:r?u({scale:r,compose:i}):i}},blur:d("blur",k.blur)},E={background:C.colors("background"),backgroundColor:C.colors("backgroundColor"),backgroundImage:C.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:k.bgClip},bgSize:C.prop("backgroundSize"),bgPosition:C.prop("backgroundPosition"),bg:C.colors("background"),bgColor:C.colors("backgroundColor"),bgPos:C.prop("backgroundPosition"),bgRepeat:C.prop("backgroundRepeat"),bgAttachment:C.prop("backgroundAttachment"),bgGradient:C.gradients("backgroundImage"),bgClip:{transform:k.bgClip}};Object.assign(E,{bgImage:E.backgroundImage,bgImg:E.backgroundImage});let A={border:C.borders("border"),borderWidth:C.borderWidths("borderWidth"),borderStyle:C.borderStyles("borderStyle"),borderColor:C.colors("borderColor"),borderRadius:C.radii("borderRadius"),borderTop:C.borders("borderTop"),borderBlockStart:C.borders("borderBlockStart"),borderTopLeftRadius:C.radii("borderTopLeftRadius"),borderStartStartRadius:C.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:C.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:C.radii("borderTopRightRadius"),borderStartEndRadius:C.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:C.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:C.borders("borderRight"),borderInlineEnd:C.borders("borderInlineEnd"),borderBottom:C.borders("borderBottom"),borderBlockEnd:C.borders("borderBlockEnd"),borderBottomLeftRadius:C.radii("borderBottomLeftRadius"),borderBottomRightRadius:C.radii("borderBottomRightRadius"),borderLeft:C.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:C.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:C.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:C.borders(["borderLeft","borderRight"]),borderInline:C.borders("borderInline"),borderY:C.borders(["borderTop","borderBottom"]),borderBlock:C.borders("borderBlock"),borderTopWidth:C.borderWidths("borderTopWidth"),borderBlockStartWidth:C.borderWidths("borderBlockStartWidth"),borderTopColor:C.colors("borderTopColor"),borderBlockStartColor:C.colors("borderBlockStartColor"),borderTopStyle:C.borderStyles("borderTopStyle"),borderBlockStartStyle:C.borderStyles("borderBlockStartStyle"),borderBottomWidth:C.borderWidths("borderBottomWidth"),borderBlockEndWidth:C.borderWidths("borderBlockEndWidth"),borderBottomColor:C.colors("borderBottomColor"),borderBlockEndColor:C.colors("borderBlockEndColor"),borderBottomStyle:C.borderStyles("borderBottomStyle"),borderBlockEndStyle:C.borderStyles("borderBlockEndStyle"),borderLeftWidth:C.borderWidths("borderLeftWidth"),borderInlineStartWidth:C.borderWidths("borderInlineStartWidth"),borderLeftColor:C.colors("borderLeftColor"),borderInlineStartColor:C.colors("borderInlineStartColor"),borderLeftStyle:C.borderStyles("borderLeftStyle"),borderInlineStartStyle:C.borderStyles("borderInlineStartStyle"),borderRightWidth:C.borderWidths("borderRightWidth"),borderInlineEndWidth:C.borderWidths("borderInlineEndWidth"),borderRightColor:C.colors("borderRightColor"),borderInlineEndColor:C.colors("borderInlineEndColor"),borderRightStyle:C.borderStyles("borderRightStyle"),borderInlineEndStyle:C.borderStyles("borderInlineEndStyle"),borderTopRadius:C.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:C.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:C.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:C.radii(["borderTopRightRadius","borderBottomRightRadius"])};
316Object.assign(A,{rounded:A.borderRadius,roundedTop:A.borderTopRadius,roundedTopLeft:A.borderTopLeftRadius,roundedTopRight:A.borderTopRightRadius,roundedTopStart:A.borderStartStartRadius,roundedTopEnd:A.borderStartEndRadius,roundedBottom:A.borderBottomRadius,roundedBottomLeft:A.borderBottomLeftRadius,roundedBottomRight:A.borderBottomRightRadius,roundedBottomStart:A.borderEndStartRadius,roundedBottomEnd:A.borderEndEndRadius,roundedLeft:A.borderLeftRadius,roundedRight:A.borderRightRadius,roundedStart:A.borderInlineStartRadius,roundedEnd:A.borderInlineEndRadius,borderStart:A.borderInlineStart,borderEnd:A.borderInlineEnd,borderTopStartRadius:A.borderStartStartRadius,borderTopEndRadius:A.borderStartEndRadius,borderBottomStartRadius:A.borderEndStartRadius,borderBottomEndRadius:A.borderEndEndRadius,borderStartRadius:A.borderInlineStartRadius,borderEndRadius:A.borderInlineEndRadius,borderStartWidth:A.borderInlineStartWidth,borderEndWidth:A.borderInlineEndWidth,borderStartColor:A.borderInlineStartColor,borderEndColor:A.borderInlineEndColor,borderStartStyle:A.borderInlineStartStyle,borderEndStyle:A.borderInlineEndStyle});let I={color:C.colors("color"),textColor:C.colors("color"),fill:C.colors("fill"),stroke:C.colors("stroke"),accentColor:C.colors("accentColor"),textFillColor:C.colors("textFillColor")},O={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:k.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:C.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:C.space("gap"),rowGap:C.space("rowGap"),columnGap:C.space("columnGap")};Object.assign(O,{flexDir:O.flexDirection});let T={width:C.sizesT("width"),inlineSize:C.sizesT("inlineSize"),height:C.sizes("height"),blockSize:C.sizes("blockSize"),boxSize:C.sizes(["width","height"]),minWidth:C.sizes("minWidth"),minInlineSize:C.sizes("minInlineSize"),minHeight:C.sizes("minHeight"),minBlockSize:C.sizes("minBlockSize"),maxWidth:C.sizes("maxWidth"),maxInlineSize:C.sizes("maxInlineSize"),maxHeight:C.sizes("maxHeight"),maxBlockSize:C.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{let r=t.__breakpoints?.get(e)?.minW??e;return{[`@media screen and (min-width: ${r})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{let r=t.__breakpoints?.get(e)?._minW??e;return{[`@media screen and (max-width: ${r})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:C.propT("float",k.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(T,{w:T.width,h:T.height,minW:T.minWidth,maxW:T.maxWidth,minH:T.minHeight,maxH:T.maxHeight,overscroll:T.overscrollBehavior,overscrollX:T.overscrollBehaviorX,overscrollY:T.overscrollBehaviorY});let M={filter:{transform:k.filter},blur:C.blur("--chakra-blur"),brightness:C.propT("--chakra-brightness",k.brightness),contrast:C.propT("--chakra-contrast",k.contrast),hueRotate:C.propT("--chakra-hue-rotate",k.hueRotate),invert:C.propT("--chakra-invert",k.invert),saturate:C.propT("--chakra-saturate",k.saturate),dropShadow:C.propT("--chakra-drop-shadow",k.dropShadow),backdropFilter:{transform:k.backdropFilter},backdropBlur:C.blur("--chakra-backdrop-blur"),backdropBrightness:C.propT("--chakra-backdrop-brightness",k.brightness),backdropContrast:C.propT("--chakra-backdrop-contrast",k.contrast),backdropHueRotate:C.propT("--chakra-backdrop-hue-rotate",k.hueRotate),backdropInvert:C.propT("--chakra-backdrop-invert",k.invert),backdropSaturate:C.propT("--chakra-backdrop-saturate",k.saturate)},P={ring:{transform:k.ring},ringColor:C.colors("--chakra-ring-color"),ringOffset:C.prop("--chakra-ring-offset-width"),ringOffsetColor:C.colors("--chakra-ring-offset-color"),ringInset:C.prop("--chakra-ring-inset")},R={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:k.outline},outlineOffset:!0,outlineColor:C.colors("outlineColor")},D={gridGap:C.space("gridGap"),gridColumnGap:C.space("gridColumnGap"),gridRowGap:C.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},j=(e=>{let t=new WeakMap;return(r,i,n,o)=>
316{if(void 0===r)return e(r,i,n);t.has(r)||t.set(r,new Map);let s=t.get(r);if(s.has(i))return s.get(i);let a=e(r,i,n,o);return s.set(i,a),a}})(function(e,t,r,i){let n="string"==typeof t?t.split("."):[t];for(i=0;i<n.length&&e;i+=1)e=e[n[i]];return void 0===e?r:e}),L={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},F={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},N=(e,t,r)=>{let i={},n=j(e,t,{});for(let e in n)e in r&&null!=r[e]||(i[e]=n[e]);return i},z={position:!0,pos:C.prop("position"),zIndex:C.prop("zIndex","zIndices"),inset:C.spaceT("inset"),insetX:C.spaceT(["left","right"]),insetInline:C.spaceT("insetInline"),insetY:C.spaceT(["top","bottom"]),insetBlock:C.spaceT("insetBlock"),top:C.spaceT("top"),insetBlockStart:C.spaceT("insetBlockStart"),bottom:C.spaceT("bottom"),insetBlockEnd:C.spaceT("insetBlockEnd"),left:C.spaceT("left"),insetInlineStart:C.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:C.spaceT("right"),insetInlineEnd:C.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(z,{insetStart:z.insetInlineStart,insetEnd:z.insetInlineEnd});let B={boxShadow:C.shadows("boxShadow"),mixBlendMode:!0,blendMode:C.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:C.prop("backgroundBlendMode"),opacity:!0};Object.assign(B,{shadow:B.boxShadow});let U={margin:C.spaceT("margin"),marginTop:C.spaceT("marginTop"),marginBlockStart:C.spaceT("marginBlockStart"),marginRight:C.spaceT("marginRight"),marginInlineEnd:C.spaceT("marginInlineEnd"),marginBottom:C.spaceT("marginBottom"),marginBlockEnd:C.spaceT("marginBlockEnd"),marginLeft:C.spaceT("marginLeft"),marginInlineStart:C.spaceT("marginInlineStart"),marginX:C.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:C.spaceT("marginInline"),marginY:C.spaceT(["marginTop","marginBottom"]),marginBlock:C.spaceT("marginBlock"),padding:C.space("padding"),paddingTop:C.space("paddingTop"),paddingBlockStart:C.space("paddingBlockStart"),paddingRight:C.space("paddingRight"),paddingBottom:C.space("paddingBottom"),paddingBlockEnd:C.space("paddingBlockEnd"),paddingLeft:C.space("paddingLeft"),paddingInlineStart:C.space("paddingInlineStart"),paddingInlineEnd:C.space("paddingInlineEnd"),paddingX:C.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:C.space("paddingInline"),paddingY:C.space(["paddingTop","paddingBottom"]),paddingBlock:C.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});let $={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:C.spaceT("scrollMargin"),scrollMarginTop:C.spaceT("scrollMarginTop"),scrollMarginBottom:C.spaceT("scrollMarginBottom"),scrollMarginLeft:C.spaceT("scrollMarginLeft"),scrollMarginRight:C.spaceT("scrollMarginRight"),scrollMarginX:C.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:C.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:C.spaceT("scrollPadding"),scrollPaddingTop:C.spaceT("scrollPaddingTop"),scrollPaddingBottom:C.spaceT("scrollPaddingBottom"),scrollPaddingLeft:C.spaceT("scrollPaddingLeft"),scrollPaddingRight:C.spaceT("scrollPaddingRight"),scrollPaddingX:C.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:C.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},V={fontFamily:C.prop("fontFamily","fonts"),fontSize:C.prop("fontSize","fontSizes",k.px),fontWeight:C.prop("fontWeight","fontWeights"),lineHeight:C.prop("lineHeight","lineHeights"),letterSpacing:C.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)"}
316,property:"--chakra-line-clamp"}},W={textDecorationColor:C.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:C.shadows("textShadow")},G={clipPath:!0,transform:C.propT("transform",k.transform),transformOrigin:!0,translateX:C.spaceT("--chakra-translate-x"),translateY:C.spaceT("--chakra-translate-y"),skewX:C.degreeT("--chakra-skew-x"),skewY:C.degreeT("--chakra-skew-y"),scaleX:C.prop("--chakra-scale-x"),scaleY:C.prop("--chakra-scale-y"),scale:C.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:C.degreeT("--chakra-rotate")},H=i({},E,A,I,O,T,M,P,R,D,{srOnly:{transform:e=>!0===e?L:"focusable"===e?F:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>N(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>N(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>N(t,e,r)}},z,B,U,$,V,W,G,{listStyleType:!0,listStylePosition:!0,listStylePos:C.prop("listStylePosition"),listStyleImage:!0,listStyleImg:C.prop("listStyleImage")},{transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:C.prop("transitionDuration","transition.duration"),transitionProperty:C.prop("transitionProperty","transition.property"),transitionTimingFunction:C.prop("transitionTimingFunction","transition.easing")}),K=Object.keys(Object.assign({},U,T,O,D,z)),q=[...Object.keys(H),...n._],Y={...H,...n.v},X=e=>e in Y},5544:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var i=r(8297);function n(e){return(0,i.C)(e,["styleConfig","size","variant","colorScheme"])}},5292:function(e,t,r){"use strict";r.d(t,{Y:function(){return u},y:function(){return c}});var i=r(9115);function n(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}let o=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s=e=>Object.fromEntries(Object.entries(e).sort(o));function a(e){let t=s(e);return Object.assign(Object.values(t),t)}function l(e){return e?"number"==typeof(e=n(e)??e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function u(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${n(e)})`),t&&r.push("and",`(max-width: ${n(t)})`),r.join(" ")}function c(e){if(!e)return null;e.base=e.base??"0px";let t=a(e),r=Object.entries(e).sort(o).map(([e,t],r,i)=>{let[,n]=i[r+1]??[];return n=parseFloat(n)>0?l(n):void 0,{_minW:l(t),breakpoint:e,minW:t,maxW:n,maxWQuery:u(null,n),minWQuery:u(t),minMaxQuery:u(t,n)}}),n=function(e){let t=Object.keys(s(e));return new Set(t)}(e),c=Array.from(n.values());return{keys:n,normalized:t,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>n.has(e))},asObject:s(e),asArray:a(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...t.map(e=>u(e)).slice(1)],toArrayValue(e){if(!(0,i.Kn)(e))throw Error("toArrayValue: value must be an object");let t=c.map(t=>e[t]??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 i=c[r];return null!=i&&null!=t&&(e[i]=t),e},{})}}}},7155:function(e,t,r){"use strict";function i(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}r.d(t,{o:function(){return i}})},2110:function(e,t,r){"use strict";r.d(t,{k:function(){return n}});var i=r(7294);function n(e={}){let{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,l=(0,i.createContext)(a);return l.displayName=t,[l.Provider,function e(){let t=(0,i.useContext)(l);if(!t&&r){let t=Error(s??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},l]}},4926:function(e,t,r){"use strict";r.d(t,{cx:function(){return i}});let i=(...e)=>e.filter(Boolean).join(" ")},4839:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});let i=(e=>{let t=new WeakMap;return(r,i,n,o)=>
316{if(void 0===r)return e(r,i,n);t.has(r)||t.set(r,new Map);let s=t.get(r);if(s.has(i))return s.get(i);let a=e(r,i,n,o);return s.set(i,a),a}})(function(e,t,r,i){let n="string"==typeof t?t.split("."):[t];for(i=0;i<n.length&&e;i+=1)e=e[n[i]];return void 0===e?r:e})},9115:function(e,t,r){"use strict";function i(e){return Array.isArray(e)}function n(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!i(e)}r.d(t,{Kn:function(){return n},kJ:function(){return i}})},8297:function(e,t,r){"use strict";function i(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}r.d(t,{C:function(){return i}})},2847:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});let i=e=>"function"==typeof e;function n(e,...t){return i(e)?e(...t):e}},3114:function(e,t,r){"use strict";r.d(t,{M:function(){return y}});var i=r(5893),n=r(7294),o=r(5364),s=r(6681),a=r(240),l=r(6014);class u extends n.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 c({children:e,isPresent:t}){let r=(0,n.useId)(),o=(0,n.useRef)(null),s=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,n.useContext)(l._);return(0,n.useInsertionEffect)(()=>{let{width:e,height:i,top:n,left:l}=s.current;if(t||!o.current||!e||!i)return;o.current.dataset.motionPopId=r;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
317          [data-motion-pop-id="${r}"] {
318            position: absolute !important;
319            width: ${e}px !important;
320            height: ${i}px !important;
321            top: ${n}px !important;
322            left: ${l}px !important;
323          }
324        `),()=>{document.head.removeChild(u)}},[t]),(0,i.jsx)(u,{isPresent:t,childRef:o,sizeRef:s,children:n.cloneElement(e,{ref:o})})}let d=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:d})=>{let p=(0,s.h)(h),f=(0,n.useId)(),m=(0,n.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;o&&o()},[p,o]),g=(0,n.useMemo)(()=>({id:f,initial:t,isPresent:r,custom:l,onExitComplete:m,register:e=>(p.set(e,!1),()=>p.delete(e))}),u?[Math.random(),m]:[r,m]);return(0,n.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),n.useEffect(()=>{r||p.size||!o||o()},[r]),"popLayout"===d&&(e=(0,i.jsx)(c,{isPresent:r,children:e})),(0,i.jsx)(a.O.Provider,{value:g,children:e})};function h(){return new Map}var p=r(5947);let f=e=>e.key||"";function m(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}var g=r(8868);let y=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1})=>{let[h,y]=(0,p.oO)(c),v=(0,n.useMemo)(()=>m(e),[e]),b=c&&!h?[]:v.map(f),w=(0,n.useRef)(!0),_=(0,n.useRef)(v),S=(0,s.h)(()=>new Map),[x,k]=(0,n.useState)(v),[C,E]=(0,n.useState)(v);(0,g.L)(()=>{w.current=!1,_.current=v;for(let e=0;e<C.length;e++){let t=f(C[e]);b.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[C,b.length,b.join("-")]);let A=[];if(v!==x){let e=[...v];for(let t=0;t<C.length;t++){let r=C[t],i=f(r);b.includes(i)||(e.splice(t,0,r),A.push(r))}"wait"===u&&A.length&&(e=A),E(m(e)),k(v);return}let{forceRender:I}=(0,n.useContext)(o.p);return(0,i.jsx)(i.Fragment,{children:C.map(e=>{let n=f(e),o=(!c||!!h)&&(v===C||b.includes(n));return(0,i.jsx)(d,{isPresent:o,initial:(!w.current||!!r)&&void 0,custom:o?void 0:t,presenceAffectsLayout:l,mode:u,onExitComplete:o?void 0:()=>{if(!S.has(n))return;S.set(n,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==I||I(),E(_.current),c&&(null==y||y()),a&&a())},children:e},n)})})}},5947:function(e,t,r){"use strict";r.d(t,{hO:function(){return s},oO:function(){return o}});var i=r(7294),n=r(240);function o(e=!0){let t=(0,i.useContext)(n.O);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:o,register:s}=t,a=(0,i.useId)();(0,i.useEffect)(()=>{e&&s(a)},[e]);let l=(0,i.useCallback)(()=>e&&o&&o(a),[a,o,e]);return!r&&o?[!1,l]:[!0]}function s(){var e;return null===(e=(0,i.useContext)(n.O))||e.isPresent}},5364:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});let i=(0,r(7294).createContext)({})},6014:function(e,t,r){"use strict";r.d(t,{_:function(){return i}});let i=(0,r(7294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});let i=(0,r(7294).createContext)(null)},607:function(e,t,r){"use strict";let i;function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{E:function(){return og}}
324);let o=e=>Array.isArray(e);function s(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function u(e,t,r,i){if("function"==typeof t){let[n,o]=l(i);t=t(void 0!==r?r:e.custom,n,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,o]=l(i);t=t(void 0!==r?r:e.custom,n,o)}return t}function c(e,t,r){let i=e.getProps();return u(i,t,void 0!==r?r:i.custom,e)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d];function p(e){let t;return()=>(void 0===t&&(t=e()),t)}let f=p(()=>void 0!==window.ScrollTimeline);class m{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>f()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0);return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g extends m{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function y(e,t){return e?e[t]||e.default||e:void 0}function v(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}function b(e){return"function"==typeof e}function w(e,t){e.timeline=t,e.onfinish=null}let _=e=>Array.isArray(e)&&"number"==typeof e[0],S={linearEasing:void 0},x=function(e,t){let r=p(e);return()=>{var e;return null!==(e=S[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
324,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),k=(e,t,r)=>{let i=t-e;return 0===i?1:(r-e)/i},C=(e,t,r=10)=>{let i="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)i+=e(k(0,n-1,t))+", ";return`linear(${i.substring(0,i.length-2)})`},E=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,A={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:E([0,.65,.55,1]),circOut:E([.55,0,1,.45]),backIn:E([.31,.01,.66,-.59]),backOut:E([.33,1.53,.69,.99])},I={x:!1,y:!1};function O(e,t){let r=function(e,t,r){var i;if(e instanceof Element)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let o=null!==(i=null==r?void 0:r[e])&&void 0!==i?i:n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function T(e){return t=>{"touch"===t.pointerType||I.x||I.y||e(t)}}let M=(e,t)=>!!t&&(e===t||M(e,t.parentElement)),P=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,R=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),D=new WeakSet;function j(e){return t=>{"Enter"===t.key&&e(t)}}function L(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let F=(e,t)=>{let r=e.currentTarget;if(!r)return;let i=j(()=>{if(D.has(r))return;L(r,"down");let e=j(()=>{L(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>L(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)};function N(e){return P(e)&&!(I.x||I.y)}let z=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(z),U=new Set(["width","height","top","left","right","bottom",...z]),$=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),V=e=>o(e)?e[e.length-1]||0:e,W={skipAnimations:!1,useManualTiming:!1},G=e=>e,H=["read","resolveKeyframes","update","preRender","render","postRender"];function K(e,t){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=H.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,i=!1,n=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,n=!1,s=!1)=>{let a=s&&i?t:r;return n&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){n=!0;return}i=!0,[t,r]=[r,t],t.forEach(a),t.clear(),i=!1,n&&(n=!1,l.process(e))}};return l}(o),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,p=()=>{let o=W.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,40),1),n.timestamp=o,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),c.process(n),d.process(n),h.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(p))},f=()=>{r=!0,i=!0,n.isProcessing||e(p)};return{schedule:H.reduce((e,t)=>{let i=s[t];return e[t]=(e,t=!1,n=!1)=>(r||f(),i.schedule(e,t,n)),e},{}),cancel:e=>{for(let t=0;t<H.length;t++)s[H[t]].cancel(e)},state:n,steps:s}}let{schedule:q,cancel:Y,state:X,steps:J}=K("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:G,!0);function Z(){i=void 0}let Q={now:()=>(void 0===i&&Q.set(X.isProcessing||W.useManualTiming?X.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(Z)}};function ee(e,t){-1===e.indexOf(t)&&e.push(t)}function et(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class er{constructor(){this.subscriptions=[]}add(e){return ee(this.subscriptions,e),()=>et(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let ei=e=>!isNaN(parseFloat(e)),en={current:void 0};class eo{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=Q.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Q.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=ei(this.current))}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 er);let r=this.events[e].add(t);return"change"===e?()=>{r(),q.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 en.current&&en.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=Q.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?1e3/r*e: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 es(e,t){return new eo(e,t)}let ea=e=>!!(e&&e.getVelocity);function el(e,t){let r=e.getValue("willChange");if(ea(r)&&r.add)return r.add(t)}let eu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ec="data-"+eu("framerAppearId"),ed=e=>1e3*e,eh=e=>e/1e3,ep={current:!1},ef=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;
324function em(e,t,r,i){if(e===t&&r===i)return G;let n=t=>(function(e,t,r,i,n){let o,s;let a=0;do(o=ef(s=t+(r-t)/2,i,n)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:ef(n(e),t,i)}let eg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ey=e=>t=>1-e(1-t),ev=em(.33,1.53,.69,.99),eb=ey(ev),ew=eg(eb),e_=e=>(e*=2)<1?.5*eb(e):.5*(2-Math.pow(2,-10*(e-1))),eS=e=>1-Math.sin(Math.acos(e)),ex=ey(eS),ek=eg(eS),eC=e=>/^0[^.\s]+$/u.test(e),eE=(e,t,r)=>r>t?t:r<e?e:r,eA={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eI={...eA,transform:e=>eE(0,1,e)},eO={...eA,default:1},eT=e=>Math.round(1e5*e)/1e5,eM=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eR=(e,t)=>r=>!!("string"==typeof r&&eP.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eD=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[n,o,s,a]=i.match(eM);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ej=e=>eE(0,255,e),eL={...eA,transform:e=>Math.round(ej(e))},eF={test:eR("rgb","red"),parse:eD("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+eL.transform(e)+", "+eL.transform(t)+", "+eL.transform(r)+", "+eT(eI.transform(i))+")"},eN={test:eR("#"),parse:function(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}},transform:eF.transform},ez=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eB=ez("deg"),eU=ez("%"),e$=ez("px"),eV=ez("vh"),eW=ez("vw"),eG={...eU,parse:e=>eU.parse(e)/100,transform:e=>eU.transform(100*e)},eH={test:eR("hsl","hue"),parse:eD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+eU.transform(eT(t))+", "+eU.transform(eT(r))+", "+eT(eI.transform(i))+")"},eK={test:e=>eF.test(e)||eN.test(e)||eH.test(e),parse:e=>eF.test(e)?eF.parse(e):eH.test(e)?eH.parse(e):eN.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eF.transform(e):eH.transform(e)},eq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eY="number",eX="color",eJ=/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 eZ(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[],o=0,s=t.replace(eJ,e=>(eK.test(e)?(i.color.push(o),n.push(eX),r.push(eK.parse(e))):e.startsWith("var(")?(i.var.push(o),n.push("var"),r.push(e)):(i.number.push(o),n.push(eY),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:s,indexes:i,types:n}}function eQ(e){return eZ(e).values}function e0(e){let{split:t,types:r}=eZ(e),i=t.length;return e=>{let n="";for(let o=0;o<i;o++)if(n+=t[o],void 0!==e[o]){let t=r[o];t===eY?n+=eT(e[o]):t===eX?n+=eK.transform(e[o]):n+=e[o]}return n}}let e1=e=>"number"==typeof e?0:e,e2={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(eM))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(eq))||void 0===r?void 0:r.length)||0)>0},parse:eQ,createTransformer:e0,getAnimatableNone:function(e){let t=eQ(e);return e0(e)(t.map(e1))}},e5=new Set(["brightness","contrast","saturate","opacity"]);function e3(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(eM)||[];if(!i)return e;let n=r.replace(i,""),o=e5.has(t)?1:0;return i!==r&&(o*=100),t+"("+o+n+")"}let e4=/\b([a-z-]*)\(.*?\)/gu,e6={...e2,getAnimatableNone:e=>{let t=e.match(e4);return t?t.map(e3).join(" "):e}},e8={...eA,transform:Math.round},e9={borderWidth:e$,borderTopWidth:e$,borderRightWidth:e$,borderBottomWidth:e$,borderLeftWidth:e$,borderRadius:e$,radiu
324s:e$,borderTopLeftRadius:e$,borderTopRightRadius:e$,borderBottomRightRadius:e$,borderBottomLeftRadius:e$,width:e$,maxWidth:e$,height:e$,maxHeight:e$,top:e$,right:e$,bottom:e$,left:e$,padding:e$,paddingTop:e$,paddingRight:e$,paddingBottom:e$,paddingLeft:e$,margin:e$,marginTop:e$,marginRight:e$,marginBottom:e$,marginLeft:e$,backgroundPositionX:e$,backgroundPositionY:e$,rotate:eB,rotateX:eB,rotateY:eB,rotateZ:eB,scale:eO,scaleX:eO,scaleY:eO,scaleZ:eO,skew:eB,skewX:eB,skewY:eB,distance:e$,translateX:e$,translateY:e$,translateZ:e$,x:e$,y:e$,z:e$,perspective:e$,transformPerspective:e$,opacity:eI,originX:eG,originY:eG,originZ:e$,zIndex:e8,size:e$,fillOpacity:eI,strokeOpacity:eI,numOctaves:e8},e7={...e9,color:eK,backgroundColor:eK,outlineColor:eK,fill:eK,stroke:eK,borderColor:eK,borderTopColor:eK,borderRightColor:eK,borderBottomColor:eK,borderLeftColor:eK,filter:e6,WebkitFilter:e6},te=e=>e7[e];function tt(e,t){let r=te(e);return r!==e6&&(r=e2),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tr=new Set(["auto","none","0"]),ti=e=>e===eA||e===e$,tn=(e,t)=>parseFloat(e.split(", ")[t]),to=(e,t)=>(r,{transform:i})=>{if("none"===i||!i)return 0;let n=i.match(/^matrix3d\((.+)\)$/u);if(n)return tn(n[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?tn(t[1],e):0}},ts=new Set(["x","y","z"]),ta=z.filter(e=>!ts.has(e)),tl={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:to(4,13),y:to(5,14)};tl.translateX=tl.x,tl.translateY=tl.y;let tu=new Set,tc=!1,td=!1;function th(){if(td){let e=Array.from(tu).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 ta.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.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 i;null===(i=e.getValue(t))||void 0===i||i.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}td=!1,tc=!1,tu.forEach(e=>e.complete()),tu.clear()}function tp(){tu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}class tf{constructor(e,t,r,i,n,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=i,this.element=n,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tu.add(this),tc||(tc=!0,q.read(tp),q.resolveKeyframes(th))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;for(let n=0;n<e.length;n++)if(null===e[n]){if(0===n){let n=null==i?void 0:i.get(),o=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let i=r.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===n&&i.set(e[0])}else e[n]=e[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tg=e=>t=>"string"==typeof t&&t.startsWith(e),ty=tg("--"),tv=tg("var(--"),tb=e=>!!tv(e)&&tw.test(e.split("/*")[0].trim()),tw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,t_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tS=e=>t=>t.test(e),tx=[eA,e$,eU,eB,eW,eV,{test:e=>"auto"===e,parse:e=>e}],tk=e=>tx.find(tS(e));class tC extends tf{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&tb(i=i.trim())){let n=function e(t,r,i=1){G(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,o]=function(e){let t=t_.exec(e);if(!t)return[,];let[,r,i,n]=t;return[`--${null!=r?r:i}`,n]}(t);if(!n)return;let s=window.getComputedStyle(r).getPropertyValue(n);if(s){let e=s.trim();return tm(e)?parseFloat(e):e}return tb(o)?e(o,r,i+1):o}(i,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!U.has(r)||2!==e.length)return;let[i,n]=e,o=tk(i),s=tk(n);
324if(o!==s){if(ti(o)&&ti(s))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 i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||eC(i))&&r.push(t)}r.length&&function(e,t,r){let i,n=0;for(;n<e.length&&!i;){let t=e[n];"string"==typeof t&&!tr.has(t)&&eZ(t).values.length&&(i=e[n]),n++}if(i&&r)for(let n of t)e[n]=tt(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tl[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let o=i.length-1,s=i[o];i[o]=tl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
324h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tE=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e2.test(e)||"0"===e)&&!e.startsWith("url(")),tA=e=>null!==e;function tI(e,{repeat:t,repeatType:r="loop"},i){let n=e.filter(tA),o=t&&"loop"!==r&&t%2==1?0:n.length-1;return o&&void 0!==i?i:n[o]}class tO{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tp(),th()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;let{name:r,type:i,velocity:n,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,i){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=tE(n,t),a=tE(o,t);return G(s===a,`You are trying to animate ${t} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(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||b(r))&&i)}(e,r,i,n)){if(ep.current||!o){a&&a(tI(e,this.options,t)),s&&s(),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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tT=(e,t,r)=>e+(t-e)*r;function tM(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}function tP(e,t){return r=>r>0?t:e}let tR=(e,t,r)=>{let i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},tD=[eN,eF,eH],tj=e=>tD.find(t=>t.test(e));function tL(e){let t=tj(e);if(G(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eH&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let n=0,o=0,s=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;n=tM(a,i,e+1/3),o=tM(a,i,e),s=tM(a,i,e-1/3)}else n=o=s=r;return{red:Math.round(255*n),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(r)),r}let tF=(e,t)=>{let r=tL(e),i=tL(t);if(!r||!i)return tP(e,t);let n={...r};return e=>(n.red=tR(r.red,i.red,e),n.green=tR(r.green,i.green,e),n.blue=tR(r.blue,i.blue,e),n.alpha=tT(r.alpha,i.alpha,e),eF.transform(n))},tN=(e,t)=>r=>t(e(r)),tz=(...e)=>e.reduce(tN),tB=new Set(["none","hidden"]);function tU(e,t){return r=>tT(e,t,r)}function t$(e){return"number"==typeof e?tU:"string"==typeof e?tb(e)?tP:eK.test(e)?tF:tG:Array.isArray(e)?tV:"object"==typeof e?eK.test(e)?tF:tW:tP}function tV(e,t){let r=[...e],i=r.length,n=e.map((e,r)=>t$(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=n[t](e);return r}}function tW(e,t){let r={...e,...t},i={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(i[n]=t$(e[n])(e[n],t[n]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let tG=(e,t)=>{let r=e2.createTransformer(t),i=eZ(e),n=eZ(t);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?tB.has(e)&&!n.values.length||tB.has(t)&&!i.values.length?tB.has(e)?r=>r<=0?e:t:r=>r>=1?t:e:tz(tV(function(e,t){var r;let i=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][n[s]],l=null!==(r=e.values[a])&&void 0!==r?r:0;i[o]=l,n[s]++}return i}(i,n),n.values),r):(G(!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.`),tP(e,t))};function tH(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tT(e,t,r):t$(e)(e,t)}function tK(e,t,r){var i,n;let o=Math.max(t-5,0);return i=r-e(o),(n=t-o)?1e3/n*i:0}let tq={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tY(e,t){return e*Math.sqrt(1-t*t)}let tX=["duration","bounce"],tJ=["stiffness","damping","mass"];function tZ(e,t){return t.some(t=>void 0!==e[t])}function tQ(e=tq.visualDuration,t=tq.bounce){let r;let i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:o}=i,s=i.keyframes[0],a=i.keyframes[i.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:h,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:tq.velocity,stiffness:tq.stiffness,damping:tq.damping,mass:tq.mass,isResolvedFromDuration:!1,...e};if(!tZ(e,tJ)&&tZ(e,tX)){if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,n=2*eE(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tq.mass,stiffness:i,damping:n}}else{let r=function({duration:e=tq.duration,bounce:t=tq.bounce,velocity:r=tq.velocity,mass:i=tq.mass}){let n,o;G(e<=ed(tq.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=eE(tq.minDamping,tq.maxDamping,s),e=eE(tq.minDuration,tq.maxDuration,eh(e)),s<1?(n=t=>{let i=t*s,n=i*e;return .001-(i-r)/tY(t,s)*Math.exp(-n)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=tY(Math.pow(t,2),s);return(i*r+r-o)*Math.exp(-i)*(-n(t)+.001>0?-1:1)/a}):(n=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(n,o,5/e);if(e=ed(e),isNaN(a))return{stiffness:tq.stiffness,damping:tq.damping,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:tq.mass}).isResolvedFromDuration=!0}}return t}({...i,velocity:-eh(i.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*d)),y=a-s,b=eh(Math.sqrt(u/d)),w=5>Math.abs(y);if(n||(n=w?tq.restSpeed.granular:tq.restSpeed.default),o||(o=w?tq.restDelta.granular:tq.restDelta.default),g<1){let e=tY(b,g);r=t=>a-Math.exp(-g*b*t)*((m+g*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)r=e=>a-Math.exp(-b*e)*(y+(m+b*y)*e);else{let e=b*Math.sqrt(g*g-1);r=t=>{let r=Math.exp(-g*b*t),i=Math.min(e*t,300);return a-r*((m+g*b*y)*Math.sinh(i)+e*y*Math.cosh(i))/e}}
324let _={calculatedDuration:f&&h||null,next:e=>{let t=r(e);if(f)l.done=e>=h;else{let i=0;g<1&&(i=0===e?ed(m):tK(r,e,t));let s=Math.abs(i)<=n,u=Math.abs(a-t)<=o;l.done=s&&u}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(v(_),2e4),t=C(t=>_.next(e*t).value,e,30);return e+"ms "+t}};return _}function t0({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let p=e[0],f={done:!1,value:p},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,y=r*t,v=p+y,b=void 0===s?v:s(v);b!==v&&(y=b-p);let w=e=>-y*Math.exp(-e/i),_=e=>b+w(e),S=e=>{let t=w(e),r=_(e);f.done=Math.abs(t)<=u,f.value=f.done?b:r},x=e=>{m(f.value)&&(d=e,h=tQ({keyframes:[f.value,g(f.value)],velocity:tK(_,e,f.value),damping:n,stiffness:o,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,S(e),x(e)),void 0!==d&&e>=d)?h.next(e-d):(t||S(e),f)}}}let t1=em(.42,0,1,1),t2=em(0,0,.58,1),t5=em(.42,0,.58,1),t3=e=>Array.isArray(e)&&"number"!=typeof e[0],t4={linear:G,easeIn:t1,easeInOut:t5,easeOut:t2,circIn:eS,circInOut:ek,circOut:ex,backIn:eb,backInOut:ew,backOut:ev,anticipate:e_},t6=e=>{if(_(e)){G(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,i,n]=e;return em(t,r,i,n)}return"string"==typeof e?(G(void 0!==t4[e],`Invalid easing type '${e}'`),t4[e]):e};function t8({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){let n=t3(i)?i.map(t6):t6(i),o={done:!1,value:t[0]},s=function(e,t,{clamp:r=!0,ease:i,mixer:n}={}){let o=e.length;if(G(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let i=[],n=r||tH,o=e.length-1;for(let r=0;r<o;r++){let o=n(e[r],e[r+1]);t&&(o=tz(Array.isArray(t)?t[r]||G:t,o)),i.push(o)}return i}(t,i,n),l=a.length,u=r=>{if(s&&r<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let n=k(e[i],e[i+1],r);return a[i](n)};return r?t=>u(eE(e[0],e[o-1],t)):u}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let n=k(0,t,i);e.push(tT(r,1,n))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(n)?n:t.map(()=>n||t5).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let t9=e=>{let t=({timestamp:t})=>e(t);return{start:()=>q.update(t,!0),stop:()=>Y(t),now:()=>X.isProcessing?X.timestamp:Q.now()}},t7={decay:t0,inertia:t0,tween:t8,keyframes:t8,spring:tQ},re=e=>e/100;class rt extends tO{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,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:t,motionValue:r,element:i,keyframes:n}=this.options,o=(null==i?void 0:i.KeyframeResolver)||tf;this.resolver=new o(n,(e,t)=>this.onKeyframesResolved(e,t),t,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r;let{type:i="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=b(i)?i:t7[i]||t8;l!==t8&&"number"!=typeof e[0]&&(t=tz(re,tH(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=v(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+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:i,generator:n,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return n.next(0);let{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-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 g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=n;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))%2&&("reverse"===p?(r=1-r,f&&(r-=f/c)):"mirror"===p&&(b=o)),v=eE(0,1,r)*c}let w=y?{done:!1,value:a[0]}:b.next(v);s&&(w.value=s(w.value));let{done:_}=w;y||null===l||(_=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return S&&void 0!==i&&(w.value=tI(a,this.options,i)),m&&m(w.value),S&&this.finish(),w}get duration(){let{resolved:e}=this;return e?eh(e.calculatedDuration):0}
324get time(){return eh(this.currentTime)}set time(e){e=ed(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=eh(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t9,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=r?r:this.calcStartTime(),"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 rr=new Set(["opacity","clipPath","filter","transform"]),ri=p(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rn={anticipate:e_,backInOut:ew,circInOut:ek};class ro extends tO{constructor(e){super(e);let{name:t,motionValue:r,element:i,keyframes:n}=this.options;this.resolver=new tC(n,(e,t)=>this.onKeyframesResolved(e,t),t,r,i),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:i=300,times:n,ease:o,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&x()&&o in rn&&(o=rn[o]),b((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&x()||!t||"string"==typeof t&&(t in A||x())||_(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(e,t){let r=new rt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},n=[],o=0;for(;!i.done&&o<2e4;)n.push((i=r.sample(o)).value),o+=10;return{times:void 0,keyframes:n,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),i=c.duration,n=c.times,o=c.ease,s="keyframes"}let c=function(e,t,r,{delay:i=0,duration:n=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t,r){if(t)return"function"==typeof t&&x()?C(t,r):_(t)?E(t):Array.isArray(t)?t.map(t=>e(t,r)||A.easeOut):A[t]}(a,n);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:i,times:n,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(w(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;a.set(tI(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:n,type:s,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return eh(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return eh(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=ed(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}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return G;let{animation:r}=t;w(r,e)}else this.pendingTimeline=e;return G}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;
324"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;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:n,ease:o,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,c=new rt({...u,keyframes:r,duration:i,type:n,ease:o,times:s,isGenerator:!0}),d=ed(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),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:i,repeatType:n,damping:o,type:s}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return ri()&&r&&rr.has(r)&&!a&&!l&&!i&&"mirror"!==n&&0!==o&&"inertia"!==s}}let rs={type:"spring",stiffness:500,damping:25,restSpeed:10},ra=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rl={type:"keyframes",duration:.8},ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rc=(e,{keyframes:t})=>t.length>2?rl:B.has(e)?e.startsWith("scale")?ra(t[1]):rs:ru,rd=(e,t,r,i={},n,o)=>s=>{let a=y(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=ed(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:n};!function({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:n,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...rc(e,c)}),c.duration&&(c.duration=ed(c.duration)),c.repeatDelay&&(c.repeatDelay=ed(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)),(ep.current||W.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=tI(c.keyframes,a);if(void 0!==e)return q.update(()=>{c.onUpdate(e),c.onComplete()}),new g([])}return!o&&ro.supports(c)?new ro(c):new rt(c)};function rh(e,t,{delay:r=0,transitionOverride:i,type:n}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(s=i);let u=[],d=n&&e.animationState&&e.animationState.getState()[n];for(let t in l){let i=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),n=l[t];if(void 0===n||d&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(d,t))continue;let a={delay:r,...y(s||{},t)},c=!1;if(window.MotionHandoffAnimation){let r=e.props[ec];if(r){let e=window.MotionHandoffAnimation(r,t,q);null!==e&&(a.startTime=e,c=!0)}}el(e,t),i.start(rd(t,i,n,e.shouldReduceMotion&&U.has(t)?{type:!1}:a,e,c));let h=i.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{q.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:i={},...n}=c(e,t)||{};for(let t in n={...n,...r}){let r=V(n[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,es(r))}}(e,a)})}),u}function rp(e,t,r={}){var i;let n=c(e,t,"exit"===r.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);let s=n?()=>Promise.all(rh(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:n=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,r=0,i=0,n=1,o){let s=[],a=(e.variantChildren.size-1)*i,l=1===n?(e=0)=>e*i:(e=0)=>a-e*i;return Array.from(e.variantChildren).sort(rf).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(rp(e,t,{...o,delay:r+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,n+i,s,a,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function rf(e,t){return e.sortNodePosition(t)}let rm=h.length,rg=[...d].reverse(),ry=d.length;function rv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rb(){return{animate:rv(!0),whileInView:rv(),whileHover:rv(),whileTap:rv(),whileDrag:rv(),whileFocus:rv(),exit:rv()}}class rw{constructor(e){this.isMounted=!1,this.node=e}update(){}}class r_ extends rw{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 i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>rp(e,t,r)));else if("string"==typeof t)i=rp(e,t,r);else{let n="function"==typeof t?c(e,t,r.custom):t;i=Promise.all(rh(e,n,r))}return i.then(()=>
324{e.notify("AnimationComplete",t)})})(e,t,r))),r=rb(),i=!0,l=t=>(r,i)=>{var n;let o=c(e,i,"exit"===t?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);if(o){let{transition:e,transitionEnd:t,...i}=o;r={...r,...i,...t}}return r};function u(u){let{props:c}=e,d=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<rm;e++){let i=h[e],n=t.props[i];(a(n)||!1===n)&&(r[i]=n)}return r}(e.parent)||{},p=[],f=new Set,m={},g=1/0;for(let t=0;t<ry;t++){var y;let h=rg[t],v=r[h],b=void 0!==c[h]?c[h]:d[h],w=a(b),_=h===u?v.isActive:null;!1===_&&(g=t);let S=b===d[h]&&b!==c[h]&&w;if(S&&i&&e.manuallyAnimateOnMount&&(S=!1),v.protectedKeys={...m},!v.isActive&&null===_||!b&&!v.prevProp||n(b)||"boolean"==typeof b)continue;let x=(y=v.prevProp,"string"==typeof b?b!==y:!!Array.isArray(b)&&!s(b,y)),k=x||h===u&&v.isActive&&!S&&w||t>g&&w,C=!1,E=Array.isArray(b)?b:[b],A=E.reduce(l(h),{});!1===_&&(A={});let{prevResolvedValues:I={}}=v,O={...I,...A},T=t=>{k=!0,f.has(t)&&(C=!0,f.delete(t)),v.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in O){let t=A[e],r=I[e];if(!m.hasOwnProperty(e))(o(t)&&o(r)?s(t,r):t===r)?void 0!==t&&f.has(e)?T(e):v.protectedKeys[e]=!0:null!=t?T(e):f.add(e)}v.prevProp=b,v.prevResolvedValues=A,v.isActive&&(m={...m,...A}),i&&e.blockInitialAnimation&&(k=!1);let M=!(S&&x)||C;k&&M&&p.push(...E.map(e=>({animation:e,options:{type:h}})))}if(f.size){let t={};f.forEach(r=>{let i=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=null!=i?i:null}),p.push({animation:t})}let v=!!p.length;return i&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?t(p):Promise.resolve()}return{animateChanges:u,setActive:function(t,i){var n;if(r[t].isActive===i)return Promise.resolve();null===(n=e.variantChildren)||void 0===n||n.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,i)}),r[t].isActive=i;let o=u(t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rb(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();n(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let rS=0;class rx extends rw{constructor(){super(...arguments),this.id=rS++}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 i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function rk(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function rC(e){return{point:{x:e.pageX,y:e.pageY}}}let rE=e=>t=>P(t)&&e(t,rC(t));function rA(e,t,r,i){return rk(e,t,rE(r),i)}let rI=(e,t)=>Math.abs(e-t);class rO{constructor(e,t,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=rP(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=(e=r.offset,t={x:0,y:0},Math.sqrt(rI(e.x,t.x)**2+rI(e.y,t.y)**2)>=3);if(!i&&!n)return;let{point:o}=r,{timestamp:s}=X;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;
324i||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rT(t,this.transformPagePoint),q.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rP("pointercancel"===e.type?this.lastMoveEventInfo:rT(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),i&&i(e,o)},!P(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.contextWindow=i||window;let o=rT(rC(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=X;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,rP(o,this.history)),this.removeListeners=tz(rA(this.contextWindow,"pointermove",this.handlePointerMove),rA(this.contextWindow,"pointerup",this.handlePointerUp),rA(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function rT(e,t){return t?{point:t(e.point)}:e}function rM(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rP({point:e},t){return{point:e,delta:rM(e,rR(t)),offset:rM(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null,n=rR(e);for(;r>=0&&(i=e[r],!(n.timestamp-i.timestamp>ed(.1)));)r--;if(!i)return{x:0,y:0};let o=eh(n.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(n.x-i.x)/o,y:(n.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function rR(e){return e[e.length-1]}function rD(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rj(e){return e.max-e.min}function rL(e,t,r,i=.5){e.origin=i,e.originPoint=tT(t.min,t.max,e.origin),e.scale=rj(r)/rj(t),e.translate=tT(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rF(e,t,r,i){rL(e.x,t.x,r.x,i?i.originX:void 0),rL(e.y,t.y,r.y,i?i.originY:void 0)}function rN(e,t,r){e.min=r.min+t.min,e.max=e.min+rj(t)}function rz(e,t,r){e.min=t.min-r.min,e.max=e.min+rj(t)}function rB(e,t,r){rz(e.x,t.x,r.x),rz(e.y,t.y,r.y)}function rU(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 r$(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function rV(e,t,r){return{min:rW(e,t),max:rW(e,r)}}function rW(e,t){return"number"==typeof e?e:e[t]||0}let rG=()=>({translate:0,scale:1,origin:0,originPoint:0}),rH=()=>({x:rG(),y:rG()}),rK=()=>({min:0,max:0}),rq=()=>({x:rK(),y:rK()});function rY(e){return[e("x"),e("y")]}function rX({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function rJ(e){return void 0===e||1===e}function rZ({scale:e,scaleX:t,scaleY:r}){return!rJ(e)||!rJ(t)||!rJ(r)}function rQ(e){return rZ(e)||r0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r0(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function r1(e,t,r,i,n){return void 0!==n&&(e=i+n*(e-i)),i+r*(e-i)+t}function r2(e,t=0,r=1,i,n){e.min=r1(e.min,t,r,i,n),e.max=r1(e.max,t,r,i,n)}function r5(e,{x:t,y:r}){r2(e.x,t.translate,t.scale,t.originPoint),r2(e.y,r.translate,r.scale,r.originPoint)}function r3(e,t){e.min=e.min+t,e.max=e.max+t}function r4(e,t,r,i,n=.5){let o=tT(e.min,e.max,n);r2(e,t,r,o,i)}function r6(e,t){r4(e.x,t.x,t.scaleX,t.scale,t.originX),r4(e.y,t.y,t.scaleY,t.scale,t.originY)}function r8(e,t){return rX(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let r9=({current:e})=>e?e.ownerDocument.defaultView:null,r7=new WeakMap;class ie{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rq(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new rO(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rC(e).point)},onStart:(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===r||"y"===r?I[r]?null:(I[r]=!0,()=>{I[r]=!1}):I.x||I.y?null:(I.x=I.y=!0,()=>{I.x=I.y=!1}),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eU.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];if(i){let e=rj(i);
324t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),n&&q.postRender(()=>n(e,t)),el(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=t;if(i&&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}(s),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>rY(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:i,contextWindow:r9(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:n}=this.getProps();n&&q.postRender(()=>n(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!it(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?tT(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?tT(r,e,i.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),n.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,n=this.constraints;t&&rD(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:r,bottom:i,right:n}){return{x:rU(e.x,r,n),y:rU(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rV(e,"left","right"),y:rV(e,"top","bottom")}}(r),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rY(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}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rD(t))return!1;let i=t.current;G(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=function(e,t,r){let i=r8(e,r),{scroll:n}=t;return n&&(r3(i.x,n.offset.x),r3(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),s={x:r$((e=n.layout.layoutBox).x,o.x),y:r$(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}}(s));this.hasMutatedConstraints=!!e,e&&(s=rX(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rY(s=>{if(!it(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return el(this.visualElement,e),r.start(rd(e,r,0,t,this.visualElement,!1))}stopAnimation(){rY(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rY(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();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rY(t=>{let{drag:r}=this.getProps();if(!it(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:o}=i.layout.layoutBox[t];n.set(e[t]-tT(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rD(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};rY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();i[e]=function(e,t){let r=.5,i=rj(e),n=rj(t);return n>i?r=k(t.min,t.max-i,e.min):i>n&&(r=k(e.min,e.max-n,t.min)),eE(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rY(t=>
324{if(!it(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:o}=this.constraints[t];r.set(tT(n,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;r7.set(this.visualElement,this);let e=rA(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rD(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),q.read(t);let n=rk(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rY(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:o,dragMomentum:s}}}function it(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class ir extends rw{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new ie(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}unmount(){this.removeGroupControls(),this.removeListeners()}}let ii=e=>(t,r)=>{e&&q.postRender(()=>e(t,r))};class io extends rw{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new rO(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ii(e),onStart:ii(t),onMove:r,onEnd:(e,t)=>{delete this.session,i&&q.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=rA(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var is,ia,il,iu=r(5893),ic=r(7294),id=r(5947),ih=r(5364);let ip=(0,ic.createContext)({}),im={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ig(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let iy={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!e$.test(e))return e;e=parseFloat(e)}let r=ig(e,t.target.x),i=ig(e,t.target.y);return`${r}% ${i}%`}},iv={},{schedule:ib,cancel:iw}=K(queueMicrotask,!1);class i_ extends ic.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;Object.assign(iv,ix),n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),im.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,o=r.projection;return o&&(o.isPresent=n,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===n||(n?o.promote():o.relegate()||q.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ib.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iS(e){let[t,r]=(0,id.oO)(),i=(0,ic.useContext)(ih.p);return(0,iu.jsx)(i_,{...e,layoutGroup:i,switchLayoutGroup:(0,ic.useContext)(ip),isPresent:t,safeToRemove:r})}let ix={borderRadius:{...iy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iy,borderTopRightRadius:iy,borderBottomLeftRadius:iy,borderBottomRightRadius:iy,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=e2.parse(e);if(i.length>5)return e;let n=e2.createTransformer(e),o="number"!=typeof i[0]?1:0,s=r.x.scale*t.x,a=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=a;let l=tT(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),n(i)}}},ik=(e,t)=>e.depth-t.depth;class iC{constructor(){this.children=[],this.isDirty=!1}add(e){ee(this.children,e),this.isDirty=!0}remove(e){et(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ik),this.isDirty=!1,this.children.forEac
324h(e)}}function iE(e){let t=ea(e)?e.get():e;return $(t)?t.toValue():t}let iA=["TopLeft","TopRight","BottomLeft","BottomRight"],iI=iA.length,iO=e=>"string"==typeof e?parseFloat(e):e,iT=e=>"number"==typeof e||e$.test(e);function iM(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iP=iD(0,.5,ex),iR=iD(.5,.95,G);function iD(e,t,r){return i=>i<e?0:i>t?1:r(k(e,t,i))}function ij(e,t){e.min=t.min,e.max=t.max}function iL(e,t){ij(e.x,t.x),ij(e.y,t.y)}function iF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iN(e,t,r,i,n){return e-=t,e=i+1/r*(e-i),void 0!==n&&(e=i+1/n*(e-i)),e}function iz(e,t,[r,i,n],o,s){!function(e,t=0,r=1,i=.5,n,o=e,s=e){if(eU.test(t)&&(t=parseFloat(t),t=tT(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tT(o.min,o.max,i);e===o&&(a-=t),e.min=iN(e.min,t,r,a,n),e.max=iN(e.max,t,r,a,n)}(e,t[r],t[i],t[n],t.scale,o,s)}let iB=["x","scaleX","originX"],iU=["y","scaleY","originY"];function i$(e,t,r,i){iz(e.x,t,iB,r?r.x:void 0,i?i.x:void 0),iz(e.y,t,iU,r?r.y:void 0,i?i.y:void 0)}function iV(e){return 0===e.translate&&1===e.scale}function iW(e){return iV(e.x)&&iV(e.y)}function iG(e,t){return e.min===t.min&&e.max===t.max}function iH(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iK(e,t){return iH(e.x,t.x)&&iH(e.y,t.y)}function iq(e){return rj(e.x)/rj(e.y)}function iY(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iX{constructor(){this.members=[]}add(e){ee(this.members,e),e.scheduleRender()}remove(e){if(et(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:i}=e.options;!1===i&&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)}}let iJ={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},iZ="undefined"!=typeof window&&void 0!==window.MotionDebug,iQ=["","X","Y","Z"],i0={visibility:"hidden"},i1=0;
324function i2(e,t,r,i){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function i5({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(e={},r=null==t?void 0:t()){this.id=i1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iZ&&(iJ.totalNodes=iJ.resolvedTargetDeltas=iJ.recalculatedProjection=0),this.nodes.forEach(i6),this.nodes.forEach(ni),this.nodes.forEach(nn),this.nodes.forEach(i8),iZ&&window.MotionDebug.record(iJ)},this.resolvedRelativeTargetAt=0,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 iC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new er),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:i,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(n||i)&&(this.isLayoutDirty=!0),e){let r;let i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=Q.now(),i=({timestamp:n})=>{let o=n-r;o>=t&&(Y(i),e(o-t))};return q.read(i,!0),()=>Y(i)}(i,250),im.hasAnimatedSinceResize&&(im.hasAnimatedSinceResize=!1,this.nodes.forEach(nr))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||nc,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!iK(this.targetLayout,i)||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={...y(n,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}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,Y(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(no),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[ec];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",q,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}
324(this),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 i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(i7);return}this.isUpdating||this.nodes.forEach(ne),this.isUpdating=!1,this.nodes.forEach(nt),this.nodes.forEach(i3),this.nodes.forEach(i4),this.clearAllSnapshots();let e=Q.now();X.delta=eE(0,1e3/60,e-X.timestamp),X.timestamp=e,X.isProcessing=!0,J.update.process(X),J.preRender.process(X),J.render.process(X),X.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ib.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i9),this.sharedNodes.forEach(ns)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){q.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++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rq(),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iW(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&(t||rQ(this.latestValues)||o)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),np((t=i).x),np(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rq();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(nm))){let{scroll:e}=this.root;e&&(r3(r.x,e.offset.x),r3(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rq();if(iL(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:n,options:o}=i;i!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&iL(r,e),r3(r.x,n.offset.x),r3(r.y,n.offset.y))}return r}applyTransform(e,t=!1){let r=rq();iL(r,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&r6(r,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),rQ(i.latestValues)&&r6(r,i.latestValues)}return rQ(this.latestValues)&&r6(r,this.latestValues),r}removeTransform(e){let t=rq();iL(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rQ(r.latestValues))continue;rZ(r.latestValues)&&r.updateSnapshot();let i=rq();iL(i,r.measurePageBox()),i$(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}return rQ(this.latestValues)&&i$(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!==X.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,i,n;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=X.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rq(),this.relativeTargetOrigin=rq(),rB(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rq(),this.targetWithTransforms=rq()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,i=this.relativeTarget,n=this.relativeParent.target,rN(r.x,i.x,n.x),rN(r.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iL(this.target,this.layout.layoutBox),r5(this.target,this.targetDelta)):iL(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=rq(),this.relativeTargetOrigin=rq(),rB(this.relativeTargetOrigin,this.target,e.target),iL(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}iZ&&iJ.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rZ(this.parent.latestValues)||r0(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,i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===X.timestamp&&(i=!1),i)return;let{layout:n,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||!(n||o))return;iL(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,i=!1){let n,o;let s=r.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(n=r[a]).projectionDelta;let{visualElement:s}=n.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&r6(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,r5(e,o)),i&&rQ(n.latestValues)&&r6(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(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=rq());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iF(this.prevProjectionDelta.x,this.projectionDelta.x),iF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rF(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&iY(this.projectionDelta.x,this.prevProjectionDelta.x)&&iY(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iZ&&iJ.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rH(),this.projectionDelta=rH(),this.projectionDeltaWithTransform=rH()}setAnimationOrigin(e,t=!1){let r;let i=this.snapshot,n=i?i.latestValues:{},o={...this.latestValues},s=rH();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=rq(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(nu));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(na(s.x,e.x,i),na(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f;rB(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,nl(p.x,f.x,a.x,i),nl(p.y,f.y,a.y,i),r&&(u=this.relativeTarget,h=r,
324iG(u.x,h.x)&&iG(u.y,h.y))&&(this.isProjectionDirty=!1),r||(r=rq()),iL(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,i,n,o){n?(e.opacity=tT(0,void 0!==r.opacity?r.opacity:1,iP(i)),e.opacityExit=tT(void 0!==t.opacity?t.opacity:1,0,iR(i))):o&&(e.opacity=tT(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,i));for(let n=0;n<iI;n++){let o=`border${iA[n]}Radius`,s=iM(t,o),a=iM(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||iT(s)===iT(a)?(e[o]=Math.max(tT(iO(s),iO(a),i),0),(eU.test(a)||eU.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||r.rotate)&&(e.rotate=tT(t.rotate||0,r.rotate||0,i))}(o,n,this.latestValues,i,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},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&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=q.update(()=>{im.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let i=ea(e)?e:es(e);return i.start(rd("",i,1e3,r)),i.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:i,latestValues:n}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&nf(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||rq();let t=rj(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=rj(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}iL(t,r),r6(t,n),rF(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iX),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.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 i=this.getStack();i&&i.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 i={};r.z&&i2("z",e,i,this.animationValues);for(let t=0;t<iQ.length;t++)i2(`rotate${iQ[t]}`,e,i,this.animationValues),i2(`skew${iQ[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return i0;let i={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=iE(null==e?void 0:e.pointerEvents)||"",i.transform=n?n(this.latestValues,""):"none",i;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=iE(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rQ(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(e,t,r){let i="",n=e.x.translate/t.x,o=e.
324y.translate/t.y,s=(null==r?void 0:r.z)||0;if((n||o||s)&&(i=`translate3d(${n}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:o,skewX:s,skewY:a}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotateX(${n}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),n&&(i.transform=n(s,i.transform));let{x:a,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,iv){if(void 0===s[e])continue;let{correct:t,applyTo:r}=iv[e],n="none"===i.transform?s[e]:t(s[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)i[r[t]]=n}else i[e]=n}return this.options.layoutId&&(i.pointerEvents=o===this?iE(null==e?void 0:e.pointerEvents)||"":"none"),i}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(i7),this.root.sharedNodes.clear()}}}function i3(e){e.updateLayout()}function i4(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:i}=e.layout,{animationType:n}=e.options,o=r.source!==e.layout.source;"size"===n?rY(e=>{let i=o?r.measuredBox[e]:r.layoutBox[e],n=rj(i);i.min=t[e].min,i.max=i.min+n}):nf(n,r.layoutBox,t)&&rY(i=>{let n=o?r.measuredBox[i]:r.layoutBox[i],s=rj(t[i]);n.max=n.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=rH();rF(s,t,r.layoutBox);let a=rH();o?rF(a,e.applyTransform(i,!0),r.measuredBox):rF(a,t,r.layoutBox);let l=!iW(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:o}=i;if(n&&o){let s=rq();rB(s,r.layoutBox,n.layoutBox);let a=rq();rB(a,t,o.layoutBox),iK(s,a)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function i6(e){iZ&&iJ.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 i8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i9(e){e.clearSnapshot()}function i7(e){e.clearMeasurements()}function ne(e){e.isLayoutDirty=!1}function nt(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ni(e){e.resolveTargetDelta()}function nn(e){e.calcProjection()}function no(e){e.resetSkewAndRotation()}function ns(e){e.removeLeadSnapshot()}function na(e,t,r){e.translate=tT(t.translate,0,r),e.scale=tT(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function nl(e,t,r,i){e.min=tT(t.min,r.min,i),e.max=tT(t.max,r.max,i)}function nu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let nc={duration:.45,ease:[.4,0,.1,1]},nd=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nh=nd("applewebkit/")&&!nd("chrome/")?Math.round:G;function np(e){e.min=nh(e.min),e.max=nh(e.max)}function nf(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iq(t)-iq(r)))}function nm(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let ng=i5({attachResizeListener:(e,t)=>rk(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ny={current:void 0},nv=i5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ny.current){let e=new ng({});e.mount(window),e.setOptions({layoutScroll:!0}),ny.current=e}return ny.current},resetTransform:(e,t)=>
324{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nb(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=i["onHover"+r];n&&q.postRender(()=>n(t,rC(t)))}class nw extends rw{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,o]=O(e,r),s=T(e=>{let{target:r}=e,i=t(e);if("function"!=typeof i||!r)return;let o=T(e=>{i(e),r.removeEventListener("pointerleave",o)});r.addEventListener("pointerleave",o,n)});return i.forEach(e=>{e.addEventListener("pointerenter",s,n)}),o}(e,e=>(nb(this.node,e,"Start"),e=>nb(this.node,e,"End"))))}unmount(){}}class n_ extends rw{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=tz(rk(this.node.current,"focus",()=>this.onFocus()),rk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nS(e,t,r){let{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=i["onTap"+("End"===r?"":r)];n&&q.postRender(()=>n(t,rC(t)))}class nx extends rw{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,o]=O(e,r),s=e=>{let i=e.currentTarget;if(!N(e)||D.has(i))return;D.add(i);let o=t(e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),N(e)&&D.has(i)&&(D.delete(i),"function"==typeof o&&o(e,{success:t}))},a=e=>{s(e,r.useGlobalTarget||M(i,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return i.forEach(e=>{R.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",s,n),e.addEventListener("focus",e=>F(e,n),n)}),o}(e,e=>(nS(this.node,e,"Start"),(e,{success:t})=>nS(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nk=new WeakMap,nC=new WeakMap,nE=e=>{let t=nk.get(e.target);t&&t(e)},nA=e=>{e.forEach(nE)},nI={some:0,all:1};
324class nO extends rw{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:i="some",once:n}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:nI[i]};return function(e,t,r){let i=function({root:e,...t}){let r=e||document;nC.has(r)||nC.set(r,{});let i=nC.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(nA,{root:e,...t})),i[n]}(t);return nk.set(e,r),i.observe(e),()=>{nk.delete(e),i.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,n&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),o=t?r:i;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let nT=(0,ic.createContext)({strict:!1});var nM=r(6014);let nP=(0,ic.createContext)({});function nR(e){return n(e.animate)||h.some(t=>a(e[t]))}function nD(e){return!!(nR(e)||e.variants)}function nj(e){return Array.isArray(e)?e.join(" "):e}var nL=r(1741);let nF={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"]},nN={};for(let e in nF)nN[e]={isEnabled:t=>nF[e].some(e=>!!t[e])};let nz=Symbol.for("motionComponentSymbol");var nB=r(240),nU=r(8868);let n$=["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 nV(e){if("string"!=typeof e||e.includes("-"));else if(n$.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var nW=r(6681);let nG=e=>(t,r)=>{let i=(0,ic.useContext)(nP),o=(0,ic.useContext)(nB.O),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},i,o,s){let a={latestValues:function(e,t,r,i){let o={},s=i(e,{});for(let e in s)o[e]=iE(s[e]);let{initial:a,animate:l}=e,c=nR(e),d=nD(e);t&&d&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let h=!!r&&!1===r.initial,p=(h=h||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!n(p)){let t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){let i=u(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(i,o,s,e),renderState:t()};return r&&(a.onMount=e=>r({props:i,current:e,...a}),a.onUpdate=e=>r(e)),a})(e,t,i,o);return r?s():(0,nW.h)(s)},nH=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nq=z.length;function nY(e,t,r){let{style:i,vars:n,transformOrigin:o}=e,s=!1,a=!1;for(let e in t){let r=t[e];if(B.has(e)){s=!0;continue}if(ty(e)){n[e]=r;continue}{let t=nH(r,e9[e]);e.startsWith("origin")?(a=!0,o[e]=t):i[e]=t}}if(!t.transform&&(s||r?i.transform=function(e,t,r){let i="",n=!0;for(let o=0;o<nq;o++){let s=z[o],a=e[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||r){let e=nH(a,e9[s]);if(!l){n=!1;let t=nK[s]||s;i+=`${t}(${e}) `}r&&(t[s]=e)}}return i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;i.transformOrigin=`${e} ${t} ${r}`}}let nX={offset:"stroke-dashoffset",array:"stroke-dasharray"},nJ={offset:"strokeDashoffset",array:"strokeDasharray"};function nZ(e,t,r){return"string"==typeof e?e:e$.transform(t+r*e)}function nQ(e,{attrX:t,attrY:r,attrScale:i,originX:n,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u}
324,c,d){if(nY(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:f}=e;h.transform&&(f&&(p.transform=h.transform),delete h.transform),f&&(void 0!==n||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let i=nZ(t,e.x,e.width),n=nZ(r,e.y,e.height);return`${i} ${n}`}(f,void 0!==n?n:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==i&&(h.scale=i),void 0!==s&&function(e,t,r=1,i=0,n=!0){e.pathLength=1;let o=n?nX:nJ;e[o.offset]=e$.transform(-i);let s=e$.transform(t),a=e$.transform(r);e[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let n0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),n1=()=>({...n0(),attrs:{}}),n2=e=>"string"==typeof e&&"svg"===e.toLowerCase();function n5(e,{style:t,vars:r},i,n){for(let o in Object.assign(e.style,t,n&&n.getProjectionStyles(i)),r)e.style.setProperty(o,r[o])}let n3=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 n4(e,t,r,i){for(let r in n5(e,t,void 0,i),t.attrs)e.setAttribute(n3.has(r)?r:eu(r),t.attrs[r])}function n6(e,{layout:t,layoutId:r}){return B.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!iv[e]||"opacity"===e)}function n8(e,t,r){var i;let{style:n}=e,o={};for(let s in n)(ea(n[s])||t.style&&ea(t.style[s])||n6(s,e)||(null===(i=null==r?void 0:r.getValue(s))||void 0===i?void 0:i.liveStyle)!==void 0)&&(o[s]=n[s]);return o}function n9(e,t,r){let i=n8(e,t,r);for(let r in e)(ea(e[r])||ea(t[r]))&&(i[-1!==z.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}let n7=["x","y","width","height","cx","cy","r"],oe={useVisualState:nG({scrapeMotionValuesFromProps:n9,createRenderState:n1,onUpdate:({props:e,prevProps:t,current:r,renderState:i,latestValues:n})=>{if(!r)return;let o=!!e.drag;if(!o){for(let e in n)if(B.has(e)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let r=0;r<n7.length;r++){let i=n7[r];e[i]!==t[i]&&(s=!0)}s&&q.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(r,i),q.render(()=>{nQ(i,n,n2(r.tagName),e.transformTemplate),n4(r,i)})})}})},ot={useVisualState:nG({scrapeMotionValuesFromProps:n8,createRenderState:n0})};function or(e,t,r){for(let i in t)ea(t[i])||n6(i,r)||(e[i]=t[i])}let oi=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 on(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oi.has(e)}let oo=e=>!on(e);try{(is=require("@emotion/is-prop-valid").default)&&(oo=e=>e.startsWith("on")?!on(e):is(e))}catch(e){}let os={current:null},oa={current:!1},ol=[...tx,eK,e2],ou=e=>ol.find(tS(e)),oc=new WeakMap,od=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oh{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:n,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tf,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.renderScheduledAt=0,this.scheduleRender=()=>{let e=Q.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,q.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!n,this.isControllingVariants=nR(t),this.isVariantNode=nD(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==a[e]&&ea(t)&&t.set(a[e],!1)}}mount(e){this.current=e,oc.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.forEac
324h((e,t)=>this.bindToMotionValue(t,e)),oa.current||function(){if(oa.current=!0,nL.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>os.current=e.matches;e.addListener(t),t()}else os.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||os.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in oc.delete(this.current),this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=B.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&q.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nN){let t=nN[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rq()}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<od.length;t++){let r=od[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let n=t[i],o=r[i];if(ea(n))e.addValue(i,n);else if(ea(o))e.addValue(i,es(n,{owner:e}));else if(o!==n){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(i);e.addValue(i,es(void 0!==t?t:n,{owner:e}))}}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}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=es(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let i=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!=i&&("string"==typeof i&&(tm(i)||eC(i))?i=parseFloat(i):!ou(i)&&e2.test(t)&&(i=tt(e,t)),this.setBaseTarget(e,ea(i)?i.get():i)),ea(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=u(this.props,i,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);n&&(r=n[e])}if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||ea(n)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new er),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class op extends oh{constructor(){super(...arguments),this.KeyframeResolver=tC}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ea(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class of extends op{constructor(){super(...arguments),this.type="html",this.renderInstance=n5}readValueFromInstance(e,t){if(B.has(t)){let e=te(t);return e&&e.default||0}{let r=window.getComputedStyle(e),i=(ty(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return r8(e,t)}build(e,t,r){nY(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return n8(e,t,r)}}class om extends op{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rq}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(B.has(t)){let e=te(t);return e&&e.default||0}return t=n3.has(t)?t:eu(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return n9(e,t,r)}build(e,t,r){nQ(e,t,this.isSVGTag,r.transformTemplate)}
324renderInstance(e,t,r,i){n4(e,t,r,i)}mount(e){this.isSVGTag=n2(e.tagName),super.mount(e)}}let og=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}((ia={animation:{Feature:r_},exit:{Feature:rx},inView:{Feature:nO},tap:{Feature:nx},focus:{Feature:n_},hover:{Feature:nw},pan:{Feature:io},drag:{Feature:ir,ProjectionNode:nv,MeasureLayout:iS},layout:{ProjectionNode:nv,MeasureLayout:iS}},il=(e,t)=>nV(e)?new om(t):new of(t,{allowProjection:e!==ic.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:i,Component:n}){var o,s;function l(e,o){var s;let l;let u={...(0,ic.useContext)(nM._),...e,layoutId:function({layoutId:e}){let t=(0,ic.useContext)(ih.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(nR(e)){let{initial:t,animate:r}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,ic.useContext)(nP));return(0,ic.useMemo)(()=>({initial:t,animate:r}),[nj(t),nj(r)])}(e),h=i(e,c);if(!c&&nL.j){(0,ic.useContext)(nT).strict;let e=function(e){let{drag:t,layout:r}=nN;if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(e,t,r,i,n){var o,s;let{visualElement:a}=(0,ic.useContext)(nP),l=(0,ic.useContext)(nT),u=(0,ic.useContext)(nB.O),c=(0,ic.useContext)(nM._).reducedMotion,d=(0,ic.useRef)(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,p=(0,ic.useContext)(ip);h&&!h.projection&&n&&("html"===h.type||"svg"===h.type)&&function(e,t,r,i){let{layoutId:n,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!s||a&&rD(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,r,n,p);let f=(0,ic.useRef)(!1);(0,ic.useInsertionEffect)(()=>{h&&f.current&&h.update(r,u)});let m=r[ec],g=(0,ic.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return(0,nU.L)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ib.render(h.render),g.current&&h.animationState&&h.animationState.animateChanges())}),(0,ic.useEffect)(()=>{h&&(!g.current&&h.animationState&&h.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)}),g.current=!1))}),h}(n,h,u,t,e.ProjectionNode)}return(0,iu.jsxs)(nP.Provider,{value:d,children:[l&&d.visualElement?(0,iu.jsx)(l,{visualElement:d.visualElement,...u}):null,r(n,e,(s=d.visualElement,(0,ic.useCallback)(e=>{e&&h.onMount&&h.onMount(e),s&&(e?s.mount(e):s.unmount()),o&&("function"==typeof o?o(e):rD(o)&&(o.current=e))},[s])),h,c,d.visualElement)]})}e&&function(e){for(let t in e)nN[t]={...nN[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof n?n:`create(${null!==(s=null!==(o=n.displayName)&&void 0!==o?o:n.name)&&void 0!==s?s:""})`}`;let u=(0,ic.forwardRef)(l);return u[nz]=n,u}({...nV(e)?oe:ot,preloadedFeatures:ia,useRender:function(e=!1){return(t,r,i,{latestValues:n},o)=>{let s=(nV(t)?function(e,t,r,i){let n=(0,ic.useMemo)(()=>{let r=n1();return nQ(r,t,n2(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};or(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r={},i=function(e,t){let r=e.style||{},i={};return or(i,r,e),Object.assign(i,function({transformTemplate:e},t){return(0,ic.useMemo)(()=>{let r=n0();return nY(r,t,e),Object.assign({},r.vars,r.style)}
324,[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(r.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)&&(r.tabIndex=0),r.style=i,r})(r,n,o,t),a=function(e,t,r){let i={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(oo(n)||!0===r&&on(n)||!t&&!on(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}(r,"string"==typeof t,e),l=t!==ic.Fragment?{...a,...s,ref:i}:{},{children:u}=r,c=(0,ic.useMemo)(()=>ea(u)?u.get():u,[u]);return(0,ic.createElement)(t,{...l,children:c})}}(t),createVisualElement:il,Component:e})}))},1741:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});let i="undefined"!=typeof window},6681:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});var i=r(7294);function n(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8868:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var i=r(7294);let n=r(1741).j?i.useLayoutEffect:i.useEffect},9426:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},7395:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},8420:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3035)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.