vdb-ai-chat 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/chat-widget.js +1 -1
  2. package/lib/commonjs/api.js +51 -12
  3. package/lib/commonjs/api.js.map +1 -1
  4. package/lib/commonjs/components/BetaNotice.js +13 -12
  5. package/lib/commonjs/components/BetaNotice.js.map +1 -1
  6. package/lib/commonjs/components/ChatInput.js +59 -49
  7. package/lib/commonjs/components/ChatInput.js.map +1 -1
  8. package/lib/commonjs/components/ChatWidget.js +74 -61
  9. package/lib/commonjs/components/ChatWidget.js.map +1 -1
  10. package/lib/commonjs/components/MessageBubble.js +67 -52
  11. package/lib/commonjs/components/MessageBubble.js.map +1 -1
  12. package/lib/commonjs/components/MessageMetaRow.js +50 -31
  13. package/lib/commonjs/components/MessageMetaRow.js.map +1 -1
  14. package/lib/commonjs/components/ProductsListView.js +232 -153
  15. package/lib/commonjs/components/ProductsListView.js.map +1 -1
  16. package/lib/commonjs/components/SuggestionsRow.js +27 -24
  17. package/lib/commonjs/components/SuggestionsRow.js.map +1 -1
  18. package/lib/commonjs/components/utils.js +15 -4
  19. package/lib/commonjs/components/utils.js.map +1 -1
  20. package/lib/commonjs/contexts/ThemeProvider.js +80 -0
  21. package/lib/commonjs/contexts/ThemeProvider.js.map +1 -0
  22. package/lib/commonjs/contexts/utils.js +142 -0
  23. package/lib/commonjs/contexts/utils.js.map +1 -0
  24. package/lib/module/api.js +51 -12
  25. package/lib/module/api.js.map +1 -1
  26. package/lib/module/components/BetaNotice.js +14 -13
  27. package/lib/module/components/BetaNotice.js.map +1 -1
  28. package/lib/module/components/ChatInput.js +61 -50
  29. package/lib/module/components/ChatInput.js.map +1 -1
  30. package/lib/module/components/ChatWidget.js +78 -63
  31. package/lib/module/components/ChatWidget.js.map +1 -1
  32. package/lib/module/components/MessageBubble.js +69 -52
  33. package/lib/module/components/MessageBubble.js.map +1 -1
  34. package/lib/module/components/MessageMetaRow.js +52 -32
  35. package/lib/module/components/MessageMetaRow.js.map +1 -1
  36. package/lib/module/components/ProductsListView.js +234 -154
  37. package/lib/module/components/ProductsListView.js.map +1 -1
  38. package/lib/module/components/SuggestionsRow.js +29 -25
  39. package/lib/module/components/SuggestionsRow.js.map +1 -1
  40. package/lib/module/components/utils.js +17 -3
  41. package/lib/module/components/utils.js.map +1 -1
  42. package/lib/module/contexts/ThemeProvider.js +75 -0
  43. package/lib/module/contexts/ThemeProvider.js.map +1 -0
  44. package/lib/module/contexts/utils.js +136 -0
  45. package/lib/module/contexts/utils.js.map +1 -0
  46. package/lib/typescript/api.d.ts.map +1 -1
  47. package/lib/typescript/components/BetaNotice.d.ts.map +1 -1
  48. package/lib/typescript/components/ChatInput.d.ts.map +1 -1
  49. package/lib/typescript/components/ChatWidget.d.ts.map +1 -1
  50. package/lib/typescript/components/MessageBubble.d.ts +1 -1
  51. package/lib/typescript/components/MessageBubble.d.ts.map +1 -1
  52. package/lib/typescript/components/MessageMetaRow.d.ts.map +1 -1
  53. package/lib/typescript/components/ProductsListView.d.ts.map +1 -1
  54. package/lib/typescript/components/SuggestionsRow.d.ts.map +1 -1
  55. package/lib/typescript/components/utils.d.ts.map +1 -1
  56. package/lib/typescript/contexts/ThemeProvider.d.ts +7 -0
  57. package/lib/typescript/contexts/ThemeProvider.d.ts.map +1 -0
  58. package/lib/typescript/contexts/utils.d.ts +136 -0
  59. package/lib/typescript/contexts/utils.d.ts.map +1 -0
  60. package/package.json +6 -2
  61. package/src/api.ts +58 -21
  62. package/src/components/BetaNotice.tsx +15 -13
  63. package/src/components/ChatInput.tsx +63 -62
  64. package/src/components/ChatWidget.tsx +238 -206
  65. package/src/components/MessageBubble.tsx +113 -74
  66. package/src/components/MessageMetaRow.tsx +80 -50
  67. package/src/components/ProductsListView.tsx +243 -184
  68. package/src/components/SuggestionsRow.tsx +40 -25
  69. package/src/components/utils.ts +24 -8
  70. package/src/contexts/ThemeProvider.tsx +87 -0
  71. package/src/contexts/utils.ts +135 -0
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see chat-widget.js.LICENSE.txt */
2
- (()=>{var e,t,n,r,o={20:(e,t)=>{"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var o=n[e],i=0,a=o.length;i<a;++i)r[o[i]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},356:(e,t)=>{"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},472:(e,t,n)=>{"use strict";n.d(t,{Ud:()=>a,kJ:()=>o,rY:()=>i});var r="analytics";function o(){return window[r]}function i(e){r=e}function a(e){window[r]=e}},508:(e,t,n)=>{"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&l.hasOwnProperty(e)){var u=function(e,t){if((0,o.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,a=n.length;i<a;++i){var l=n[i],u=[l];for(var c in t){var d=(0,r.default)(c);if(l.indexOf(d)>-1&&"order"!==d)for(var f=t[c],p=0,h=f.length;p<h;++p)u.unshift(l.replace(d,s[f[p]]+d))}n[i]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,i.default)(e)]=c,n["Moz"+(0,i.default)(e)]=d,u)}};var r=a(n(5721)),o=a(n(4014)),i=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var l={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},524:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest,i=[],a=[],l={},s=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:s,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return l[e.toLowerCase()]},has:function(e){return e.toLowerCase()in l}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),l[t]=l[t]?l[t]+","+n:n}),n(s())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)})}n.d(t,{h:()=>i});var o=n(2453),i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,o.m)();return(n&&n.fetch||r).apply(void 0,e)}},646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1042:(e,t)=>{"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),o=0;if(!r)return new Date(e);for(var i,a=0;i=t[a];a++)r[i]=parseInt(r[i],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?o=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(o=60*r[11]+r[12],"+"===r[10]&&(o=0-o));var l=Date.UTC(r[1],r[2],r[3],r[5],r[6]+o,r[7],r[8]);return new Date(l)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},1094:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(1635);function o(e,t){var n,o=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,o,i=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[i]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((o={})[i]={},o))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,i=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[i]=(0,r.Cl)((0,r.Cl)({},a),o[i]),n))},{})}},1099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},1261:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return i.map(function(e){return t.replace(o,e+"cross-fade(")})};var r=n(5486),o=/cross-fade\(/g,i=["-webkit-",""]},1298:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r="npm";function o(){return r}},1476:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var o=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return o.Facade}});var i=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return i.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var l=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return l.Identify}});var s=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return s.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},o.Facade),{Alias:i.Alias,Group:a.Group,Identify:l.Identify,Track:s.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},1515:e=>{"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const o=r<.5?r*(1+n):r+n-r*n,i=2*r-o,a=t(i,o,e+1/3),l=t(i,o,e),s=t(i,o,e-1/3);return Math.round(255*a)<<24|Math.round(255*l)<<16|Math.round(255*s)<<8}const r="[-+]?\\d*\\.?\\d+",o=r+"%";function i(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function l(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let s;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function f(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const p=(void 0===s&&(s={rgb:new RegExp("rgb"+i(r,r,r)),rgba:new RegExp("rgba("+l(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+i(r,o,o)),hsla:new RegExp("hsla("+l(r,o,o,r)+"|"+a(r,o,o,r)+")"),hwb:new RegExp("hwb"+i(r,o,o)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),s);let h;if(h=p.hex6.exec(e))return parseInt(h[1]+"ff",16)>>>0;const v=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=v?v:(h=p.rgb.exec(e))?(u(h[1])<<24|u(h[2])<<16|u(h[3])<<8|255)>>>0:(h=p.rgba.exec(e))?void 0!==h[6]?(u(h[6])<<24|u(h[7])<<16|u(h[8])<<8|d(h[9]))>>>0:(u(h[2])<<24|u(h[3])<<16|u(h[4])<<8|d(h[5]))>>>0:(h=p.hex3.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+"ff",16)>>>0:(h=p.hex8.exec(e))?parseInt(h[1],16)>>>0:(h=p.hex4.exec(e))?parseInt(h[1]+h[1]+h[2]+h[2]+h[3]+h[3]+h[4]+h[4],16)>>>0:(h=p.hsl.exec(e))?(255|n(c(h[1]),f(h[2]),f(h[3])))>>>0:(h=p.hsla.exec(e))?void 0!==h[6]?(n(c(h[6]),f(h[7]),f(h[8]))|d(h[9]))>>>0:(n(c(h[2]),f(h[3]),f(h[4]))|d(h[5]))>>>0:(h=p.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const o=t(0,1,e+1/3)*(1-n-r)+n,i=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*o)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}(c(h[1]),f(h[2]),f(h[3])))>>>0:null}},1635:(e,t,n)=>{"use strict";n.d(t,{C6:()=>o,Cl:()=>i,Tt:()=>a,YH:()=>s,fX:()=>u,sH:()=>l});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var i=(0,o.default)(t),a=0;a<r.length;++a){var l=r[a]+i;n[l]||(n[l]=n[t])}return n};var r,o=(r=n(7091))&&r.__esModule?r:{default:r}},2079:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.off(e,r),t.apply(n,o)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},2321:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}function o(e){return"number"==typeof e}function i(e){return"function"==typeof e}function a(e){return null!=e}function l(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>o,Kg:()=>r,Qd:()=>l,Tn:()=>i,t2:()=>a})},2360:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var o=r(n(6698)),i=n(4500);function a(e,t){i.Facade.call(this,e,t)}t.Alias=a,o.default(a,i.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},2453:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},2542:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var o=r(n(6698)),i=n(5525),a=n(3863);function l(e,t){i.Page.call(this,e,t)}t.Screen=l,o.default(l,i.Page),l.prototype.action=function(){return"screen"},l.prototype.type=l.prototype.action,l.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},l.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){m[e]=new v(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){m[e]=new v(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){m[e]=new v(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){m[e]=new v(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){m[e]=new v(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var L,j=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function H(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function B(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case C:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ie(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Ee=null;function Ce(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function _e(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Re(){if(xe){var e=xe,t=Ee;if(Ee=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Oe(e,t){return e(t)}function Pe(){}var Te=!1;function Ie(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==xe||null!==Ee)&&(Pe(),Re())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(c)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ce){De=!1}function Ne(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Le=!1,je=null,ze=!1,Fe=null,He={onError:function(e){Le=!0,je=e}};function Be(e,t,n,r,o,i,a,l,s){Le=!1,je=null,Ne.apply(He,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ve(e){if(We(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ve(o),e;if(a===r)return Ve(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,$e=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,kt,xt,Et,Ct,_t=!1,Rt=[],Ot=null,Pt=null,Tt=null,It=new Map,Mt=new Map,Dt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=bo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ct(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Ht(){_t=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==Pt&&zt(Pt)&&(Pt=null),null!==Tt&&zt(Tt)&&(Tt=null),It.forEach(Ft),Mt.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ht)))}function Wt(e){function t(t){return Bt(t,e)}if(0<Rt.length){Bt(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==Pt&&Bt(Pt,e),null!==Tt&&Bt(Tt,e),It.forEach(t),Mt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)jt(n),null===n.blockedOn&&Dt.shift()}var Ut=w.ReactCurrentBatchConfig,Vt=!0;function qt(e,t,n,r){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Ut.transition=i}}function Yt(e,t,n,r){var o=bt,i=Ut.transition;Ut.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Ut.transition=i}}function Kt(e,t,n,r){if(Vt){var o=Gt(e,t,n,r);if(null===o)Vr(e,t,r,$t,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Lt(Ot,e,t,n,r,o),!0;case"dragenter":return Pt=Lt(Pt,e,t,n,r,o),!0;case"mouseover":return Tt=Lt(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Lt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,Lt(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&St(i),null===(i=Gt(e,t,n,r))&&Vr(e,t,r,$t,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var $t=null;function Gt(e,t,n,r){if($t=null,null!==(e=bo(e=Se(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=j({},un,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(j({},pn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),yn=on(j({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=j({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(j({},un,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return En}var _n=j({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(_n),On=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=on(j({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(In),Dn=[9,13,27,32],An=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Nn,jn=c&&(!An||Nn&&8<Nn&&11>=Nn),zn=String.fromCharCode(32),Fn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function qn(e,t,n,r){_e(r),0<(t=Yr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Kn=null;function $n(e){zr(e,0)}function Gn(e){if(K(So(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Yn&&(Yn.detachEvent("onpropertychange",nr),Kn=Yn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];qn(t,Kn,e,Se(e)),Ie($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Yn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==$(r)||(r="selectionStart"in(r=mr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Yr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},xr={},Er={};function Cr(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return xr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Cr("animationend"),Rr=Cr("animationiteration"),Or=Cr("animationstart"),Pr=Cr("transitionend"),Tr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Tr.set(e,t),s(t,[e])}for(var Dr=0;Dr<Ir.length;Dr++){var Ar=Ir[Dr];Mr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Mr(_r,"onAnimationEnd"),Mr(Rr,"onAnimationIteration"),Mr(Or,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Pr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,u){if(Be.apply(this,arguments),Le){if(!Le)throw Error(i(198));var c=je;Le=!1,je=null,ze||(ze=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,u),i=s}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Hr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Lr.has(t)||Hr(t,!1,e),Hr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Hr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Xt(t)){case 1:var o=qt;break;case 4:o=Yt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie(function(){var r=i,o=Se(n),a=[];e:{var l=Tr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":u="focus",s=mn;break;case"focusout":u="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case _r:case Rr:case Or:s=yn;break;case Pr:s=Tn;break;case"scroll":s=fn;break;case"wheel":s=Mn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&null!=(v=Me(h,f))&&c.push(qr(h,v,p))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[vo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:So(s),p=null==u?l:So(u),(l=new c(v,h+"leave",s,n,o)).target=d,l.relatedTarget=p,v=null,bo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,v=c),d=v,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Kr(p))h++;for(p=0,v=f;v;v=Kr(v))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==s&&$r(a,l,s,c,!1),null!==u&&null!==d&&$r(a,d,u,c,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if(Vn(l))if(Qn)m=ar;else{m=or;var y=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ir);switch(m&&(m=m(e,r))?qn(a,m,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?So(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,gr=null);break;case"focusout":gr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(g=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,Wn=!0)),0<(y=Yr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:y}),(g||null!==(g=Bn(n)))&&(b.data=g))),(g=Ln?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!An&&Hn(e,t)?(e=en(),Zt=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Yr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}zr(a,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift(qr(e,i,o)),null!=(i=Me(e,t))&&r.push(qr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Me(n,i))&&a.unshift(qr(n,s,l)):o||null!=(s=Me(n,i))&&a.push(qr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout(function(){throw e})}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,mo="__reactEvents$"+fo,yo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var xo=[],Eo=-1;function Co(e){return{current:e}}function _o(e){0>Eo||(e.current=xo[Eo],xo[Eo]=null,Eo--)}function Ro(e,t){Eo++,xo[Eo]=e.current,e.current=t}var Oo={},Po=Co(Oo),To=Co(!1),Io=Oo;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!=e.childContextTypes}function Ao(){_o(To),_o(Po)}function No(e,t,n){if(Po.current!==Oo)throw Error(i(168));Ro(Po,t),Ro(To,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,U(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Io=Po.current,Ro(Po,e),Ro(To,To.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lo(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,_o(To),_o(Po),Ro(Po,e)):_o(To),Ro(To,n)}var Fo=null,Ho=!1,Bo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function Uo(){if(!Bo&&null!==Fo){Bo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Ho=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ke(Ze,Uo),t}finally{bt=t,Bo=!1}}return null}var Vo=[],qo=0,Yo=null,Ko=0,$o=[],Go=0,Xo=null,Qo=1,Jo="";function Zo(e,t){Vo[qo++]=Ko,Vo[qo++]=Yo,Yo=e,Ko=t}function ei(e,t,n){$o[Go++]=Qo,$o[Go++]=Jo,$o[Go++]=Xo,Xo=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Yo;)Yo=Vo[--qo],Vo[qo]=null,Ko=Vo[--qo],Vo[qo]=null;for(;e===Xo;)Xo=$o[--Go],$o[Go]=null,Jo=$o[--Go],$o[Go]=null,Qo=$o[--Go],$o[Go]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&si(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===M&&bi(i)===t.type)?((r=o(t,n.props)).ref=yi(e,t,n),r.return=e,r):((r=Au(n.type,n.key,n.props,null,e.mode,r)).ref=yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Nu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Au(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case k:return(t=zu(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Nu(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case M:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function v(o,i,l,s){for(var u=null,c=null,d=i,v=i=0,m=null;null!==d&&v<l.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var y=p(o,d,l[v],s);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,v),null===c?u=y:c.sibling=y,c=y,d=m}if(v===l.length)return n(o,d),ii&&Zo(o,v),u;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],s))&&(i=a(d,i,v),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(o,v),u}for(d=r(o,d);v<l.length;v++)null!==(m=h(d,o,v,l[v],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),i=a(m,i,v),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(o,e)}),ii&&Zo(o,v),u}function m(o,l,s,u){var c=N(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,v=l,m=l=0,y=null,g=s.next();null!==v&&!g.done;m++,g=s.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(o,v,g.value,u);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(o,v),l=a(b,l,m),null===d?c=b:d.sibling=b,d=b,v=y}if(g.done)return n(o,v),ii&&Zo(o,m),c;if(null===v){for(;!g.done;m++,g=s.next())null!==(g=f(o,g.value,u))&&(l=a(g,l,m),null===d?c=g:d.sibling=g,d=g);return ii&&Zo(o,m),c}for(v=r(o,v);!g.done;m++,g=s.next())null!==(g=h(v,o,m,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),l=a(g,l,m),null===d?c=g:d.sibling=g,d=g);return e&&v.forEach(function(e){return t(o,e)}),ii&&Zo(o,m),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===M&&bi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Nu(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Au(a.type,a.key,a.props,null,r.mode,s)).ref=yi(r,i,a),s.return=r,r=s)}return l(r);case k:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zu(a,r.mode,s)).return=r,r=i}return l(r);case M:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return v(r,i,a,s);if(N(a))return m(r,i,a,s);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=ju(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Si=wi(!0),ki=wi(!1),xi=Co(null),Ei=null,Ci=null,_i=null;function Ri(){_i=Ci=Ei=null}function Oi(e){var t=xi.current;_o(xi),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){Ei=e,_i=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Ii(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Ei)throw Error(i(308));Ci=e,Ei.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Mi=null;function Di(e){null===Mi?Mi=[e]:Mi.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Li=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Os){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Wi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;Li=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=v.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Li=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ls|=a,e.lanes=a,e.memoizedState=d}}function Vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var qi={},Yi=Co(qi),Ki=Co(qi),$i=Co(qi);function Gi(e){if(e===qi)throw Error(i(174));return e}function Xi(e,t){switch(Ro($i,t),Ro(Ki,e),Ro(Yi,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Yi),Ro(Yi,t)}function Qi(){_o(Yi),_o(Ki),_o($i)}function Ji(e){Gi($i.current);var t=Gi(Yi.current),n=se(t,e.type);t!==n&&(Ro(Ki,e),Ro(Yi,n))}function Zi(e){Ki.current===e&&(_o(Yi),_o(Ki))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ua=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Za:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ua=sa=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==sa&&null!==sa.next,aa=0,ua=sa=la=null,ca=!1,t)throw Error(i(300));return e}function ya(){var e=0!==fa;return fa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?la.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ua?la.memoizedState:ua.next;if(null!==t)ua=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ua?la.memoizedState=ua=e:ua=ua.next=e}return ua}function wa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,la.lanes|=d,Ls|=d}c=c.next}while(null!==c&&c!==a);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(bl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Ls|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Ea(e,t){var n=la,r=ba(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,bl=!0),r=r.queue,La(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Ia(9,_a.bind(null,n,r,o,t),void 0,null),null===Ps)throw Error(i(349));30&aa||Ca(n,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Pa(e)}function Ra(e,t,n){return n(function(){Oa(t)&&Pa(e)})}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Pa(e){var t=Ni(e,1);null!==t&&nu(t,e,1,-1)}function Ta(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=$a.bind(null,la,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Da(e,t,n,r){var o=ga();la.flags|=e,o.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Aa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Ia(t,n,i,r))}la.flags|=e,o.memoizedState=Ia(1|t,n,i,r)}function Na(e,t){return Da(8390656,8,e,t)}function La(e,t){return Aa(2048,8,e,t)}function ja(e,t){return Aa(4,2,e,t)}function za(e,t){return Aa(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ha(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4,4,Fa.bind(null,t,e),n)}function Ba(){}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 21&aa?(lr(n,t)||(n=vt(),la.lanes|=n,Ls|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n)}function qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ya(){return ba().memoizedState}function Ka(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Ai(e,t,n,r))&&(nu(n,e,r,eu()),Qa(n,t,r))}function $a(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Di(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ai(e,t,o,r))&&(nu(n,e,r,o=eu()),Qa(n,t,r))}}function Ga(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Ii,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Za={readContext:Ii,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Na,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ta,useDebugValue:Ba,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=qa.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ps)throw Error(i(349));30&aa||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Na(Ra.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Ps.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ii,useCallback:Wa,useContext:Ii,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:za,useMemo:Ua,useReducer:Sa,useRef:Ma,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){return Va(ba(),sa.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1},tl={readContext:Ii,useCallback:Wa,useContext:Ii,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:za,useMemo:Ua,useReducer:ka,useRef:Ma,useState:function(){return ka(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Va(t,sa.memoizedState,e)},useTransition:function(){return[ka(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Hi(e,i,o))&&(nu(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Fi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Hi(e,i,o))&&(nu(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Fi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Hi(e,o,r))&&(nu(t,e,r,n),Bi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function al(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ii(i):(o=Do(t)?Io:Po.current,i=(r=null!=(r=t.contextTypes))?Mo(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ii(i):(i=Do(t)?Io:Po.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ui(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,qs=r),dl(0,t)},n}function hl(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Hi(n,t,1))),n.lanes|=1),e)}var gl=w.ReactCurrentOwner,bl=!1;function wl(e,t,n,r){t.child=null===e?ki(t,null,n,r):Si(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Ti(t,o),r=ma(e,t,n,r,i,o),n=ya(),null===e||bl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Mu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Du(i,r)).ref=t.ref,e.return=t,t.child=e}function xl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);131072&e.flags&&(bl=!0)}}return _l(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ro(Ds,Ms),Ms|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ro(Ds,Ms),Ms|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ro(Ds,Ms),Ms|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ro(Ds,Ms),Ms|=r;return wl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=Do(n)?Io:Po.current;return i=Mo(t,i),Ti(t,o),n=ma(e,t,n,r,i,o),r=ya(),null===e||bl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Rl(e,t,n,r,o){if(Do(n)){var i=!0;jo(t)}else i=!1;if(Ti(t,o),null===t.stateNode)Ul(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Ii(u):Mo(t,u=Do(n)?Io:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,a,r,u),Li=!1;var f=t.memoizedState;a.state=f,Ui(t,r,a,o),s=t.memoizedState,l!==r||f!==s||To.current||Li?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=Li||il(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ii(s):Mo(t,s=Do(n)?Io:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,a,r,s),Li=!1,f=t.memoizedState,a.state=f,Ui(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||To.current||Li?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(u=Li||il(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ol(e,t,n,r,i,o)}function Ol(e,t,n,r,o,i){Cl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Vl(e,t,i);r=t.stateNode,gl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),Xi(e,t.containerInfo)}function Tl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Il,Ml,Dl,Al,Nl={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ro(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=Lu(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Nu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=Nl,e):zl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Fl(e,t,l,r=cl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Lu({mode:"visible",children:r.children},o,0,null),(a=Nu(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Si(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=Nl,a);if(!(1&t.mode))return Fl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Fl(e,t,l,r=cl(a=Error(i(419)),r,void 0))}if(s=0!==(l&e.childLanes),bl||s){if(null!==(r=Ps)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ni(e,o),nu(r,e,o,-1))}return vu(),Fl(e,t,l,r=cl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&($o[Go++]=Qo,$o[Go++]=Jo,$o[Go++]=Xo,Qo=e.id,Jo=e.overflow,Xo=t),(t=zl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Du(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Du(r,l):(l=Nu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ll(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Nl,o}return e=(l=e.child).sibling,o=Du(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zl(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fl(e,t,n,r){return null!==r&&vi(r),Si(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hl(e,n,t);else if(19===e.tag)Hl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ro(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ul(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ls|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Du(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Du(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Yl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yl(t),null;case 1:case 17:return Do(t.type)&&Ao(),Yl(t),null;case 3:return r=t.stateNode,Qi(),_o(To),_o(Po),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(au(ai),ai=null))),Ml(e,t),Yl(t),null;case 5:Zi(t);var o=Gi($i.current);if(n=t.type,null!==e&&null!=t.stateNode)Dl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Yl(t),null}if(e=Gi(Yi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":X(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var s in ge(n,a),o=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":Y(r),Z(r,a,!0);break;case"textarea":Y(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Il(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Fr(Nr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":X(e,r),o=G(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ge(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":Y(e),Z(e,r,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Yl(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Gi($i.current),Gi(Yi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Yl(t),null;case 13:if(_o(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Yl(t),a=!1}else null!==ai&&(au(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===As&&(As=3):vu())),null!==t.updateQueue&&(t.flags|=4),Yl(t),null);case 4:return Qi(),Ml(e,t),null===e&&Wr(t.stateNode.containerInfo),Yl(t),null;case 10:return Oi(t.type._context),Yl(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return Yl(t),null;if(r=!!(128&t.flags),null===(s=a.rendering))if(r)ql(a,!1);else{if(0!==As||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,ql(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ro(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Ws&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Yl(t),null}else 2*Qe()-a.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Ro(ea,r?1&n|2:1&n),t):(Yl(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ms)&&(Yl(t),6&t.subtreeFlags&&(t.flags|=8192)):Yl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $l(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),_o(To),_o(Po),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Qi(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(){},Dl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(Yi.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Jl=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[yo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,ds=!1;function fs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Zl(n,t);case 6:var r=cs,o=ds;cs=null,fs(e,t,n),ds=o,null!==(cs=r)&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Wt(e)):so(cs,n.stateNode));break;case 4:r=cs,o=ds,cs=n.stateNode.containerInfo,ds=!0,fs(e,t,n),cs=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Xl&&(Zl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fs(e,t,n),Xl=r):fs(e,t,n);break;default:fs(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach(function(t){var r=Ou.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function vs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,ds=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===cs)throw Error(i(160));ps(a,l,o),cs=null,ds=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Eu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ms(t,e),t=t.sibling}function ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vs(t,e),ys(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(t){Eu(e,e.return,t)}try{ns(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:vs(t,e),ys(e),512&r&&null!==n&&Zl(n,n.return);break;case 5:if(vs(t,e),ys(e),512&r&&null!==n&&Zl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&Q(o,a),be(s,l);var c=be(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(s){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(vs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(vs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:vs(t,e),ys(e);break;case 13:vs(t,e),ys(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bs=Qe())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||d,vs(t,e),Xl=c):vs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:ns(4,p,p.return);break;case 1:Zl(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:Zl(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(f);continue}}null!==h?(h.return=p,Jl=h):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=ve("display",l))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vs(t,e),ys(e),4&r&&hs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),us(e,ls(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Jl=e,bs(e,t,n)}function bs(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var o=Jl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Gl;var u=Xl;if(Gl=a,(Xl=s)&&!u)for(Jl=o;null!==Jl;)s=(a=Jl).child,22===a.tag&&null!==a.memoizedState?ks(o):null!==s?(s.return=a,Jl=s):ks(o);for(;null!==i;)Jl=i,bs(i,t,n),i=i.sibling;Jl=o,Gl=l,Xl=u}ws(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Jl=i):ws(e)}}function ws(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&os(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function ks(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{os(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{os(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var xs,Es=Math.ceil,Cs=w.ReactCurrentDispatcher,_s=w.ReactCurrentOwner,Rs=w.ReactCurrentBatchConfig,Os=0,Ps=null,Ts=null,Is=0,Ms=0,Ds=Co(0),As=0,Ns=null,Ls=0,js=0,zs=0,Fs=null,Hs=null,Bs=0,Ws=1/0,Us=null,Vs=!1,qs=null,Ys=null,Ks=!1,$s=null,Gs=0,Xs=0,Qs=null,Js=-1,Zs=0;function eu(){return 6&Os?Qe():-1!==Js?Js:Js=Qe()}function tu(e){return 1&e.mode?2&Os&&0!==Is?Is&-Is:null!==mi.transition?(0===Zs&&(Zs=vt()),Zs):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xs)throw Xs=0,Qs=null,Error(i(185));yt(e,n,r),2&Os&&e===Ps||(e===Ps&&(!(2&Os)&&(js|=n),4===As&&lu(e,Is)),ru(e,r),1===n&&0===Os&&!(1&t.mode)&&(Ws=Qe()+500,Ho&&Uo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Ps?Is:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Ho=!0,Wo(e)}(su.bind(null,e)):Wo(su.bind(null,e)),ao(function(){!(6&Os)&&Uo()}),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Js=-1,Zs=0,6&Os)throw Error(i(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Ps?Is:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var o=Os;Os|=2;var a=hu();for(Ps===e&&Is===t||(Us=null,Ws=Qe()+500,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}Ri(),Cs.current=a,Os=o,null!==Ts?t=0:(Ps=null,Is=0,t=As)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=iu(e,o)),1===t)throw n=Ns,fu(e,0),lu(e,r),ru(e,Qe()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=mu(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=iu(e,a))),1!==t)))throw n=Ns,fu(e,0),lu(e,r),ru(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Su(e,Hs,Us);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Bs+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Su.bind(null,e,Hs,Us),t);break}Su(e,Hs,Us);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ro(Su.bind(null,e,Hs,Us),r);break}Su(e,Hs,Us);break;default:throw Error(i(329))}}}return ru(e,Qe()),e.callbackNode===n?ou.bind(null,e):null}function iu(e,t){var n=Fs;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Hs,Hs=n,null!==t&&au(t)),e}function au(e){null===Hs?Hs=e:Hs.push.apply(Hs,e)}function lu(e,t){for(t&=~zs,t&=~js,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(6&Os)throw Error(i(327));ku();var t=ft(e,0);if(!(1&t))return ru(e,Qe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ns,fu(e,0),lu(e,t),ru(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,Hs,Us),ru(e,Qe()),null}function uu(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Ws=Qe()+500,Ho&&Uo())}}function cu(e){null!==$s&&0===$s.tag&&!(6&Os)&&ku();var t=Os;Os|=1;var n=Rs.transition,r=bt;try{if(Rs.transition=null,bt=1,e)return e()}finally{bt=r,Rs.transition=n,!(6&(Os=t))&&Uo()}}function du(){Ms=Ds.current,_o(Ds)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:Qi(),_o(To),_o(Po),ra();break;case 5:Zi(r);break;case 4:Qi();break;case 13:case 19:_o(ea);break;case 10:Oi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ps=e,Ts=e=Du(e.current,null),Is=Ms=t,As=0,Ns=null,zs=js=Ls=0,Hs=Fs=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function pu(e,t){for(;;){var n=Ts;try{if(Ri(),oa.current=Ja,ca){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,ua=sa=la=null,da=!1,fa=0,_s.current=null,null===n||null===n.return){As=1,Ns=t,Ts=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Is,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,yl(h,l,s,0,t),1&h.mode&&vl(a,c,t),u=c;var v=(t=h).updateQueue;if(null===v){var m=new Set;m.add(u),t.updateQueue=m}else v.add(u);break e}if(!(1&t)){vl(a,c,t),vu();break e}u=Error(i(426))}else if(ii&&1&s.mode){var y=ml(l);if(null!==y){!(65536&y.flags)&&(y.flags|=256),yl(y,l,s,0,t),vi(ul(u,s));break e}}a=u=ul(u,s),4!==As&&(As=2),null===Fs?Fs=[a]:Fs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,pl(0,u,t));break e;case 1:s=u;var g=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ys&&Ys.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Wi(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function hu(){var e=Cs.current;return Cs.current=Ja,null===e?Ja:e}function vu(){0!==As&&3!==As&&2!==As||(As=4),null===Ps||!(268435455&Ls)&&!(268435455&js)||lu(Ps,Is)}function mu(e,t){var n=Os;Os|=2;var r=hu();for(Ps===e&&Is===t||(Us=null,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}if(Ri(),Os=n,Cs.current=r,null!==Ts)throw Error(i(261));return Ps=null,Is=0,As}function yu(){for(;null!==Ts;)bu(Ts)}function gu(){for(;null!==Ts&&!Ge();)bu(Ts)}function bu(e){var t=xs(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?wu(e):Ts=t,_s.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=$l(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return As=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Kl(n,t,Ms)))return void(Ts=n);if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===As&&(As=5)}function Su(e,t,n){var r=bt,o=Rs.transition;try{Rs.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==$s);if(6&Os)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ps&&(Ts=Ps=null,Is=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Ks||(Ks=!0,Pu(tt,function(){return ku(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Rs.transition,Rs.transition=null;var l=bt;bt=1;var s=Os;Os|=4,_s.current=null,function(e,t){if(eo=Vt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==a||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=l),p===a&&++d===r&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var v=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,y=v.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}v=ts,ts=!1}(e,n),ms(n,e),hr(to),Vt=!!eo,to=eo=null,e.current=n,gs(n,e,o),Xe(),Os=s,bt=l,Rs.transition=a}else e.current=n;if(Ks&&(Ks=!1,$s=e,Gs=o),0===(a=e.pendingLanes)&&(Ys=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vs)throw Vs=!1,e=qs,qs=null,e;!!(1&Gs)&&0!==e.tag&&ku(),1&(a=e.pendingLanes)?e===Qs?Xs++:(Xs=0,Qs=e):Xs=0,Uo()}(e,t,n,r)}finally{Rs.transition=o,bt=r}return null}function ku(){if(null!==$s){var e=wt(Gs),t=Rs.transition,n=bt;try{if(Rs.transition=null,bt=16>e?16:e,null===$s)var r=!1;else{if(e=$s,$s=null,Gs=0,6&Os)throw Error(i(331));var o=Os;for(Os|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(16&Jl.flags){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(is(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Jl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(2048&(a=Jl).flags)switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Jl=g;break e}Jl=a.return}}var b=e.current;for(Jl=b;null!==Jl;){var w=(l=Jl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Jl=w;else e:for(l=b;null!==Jl;){if(2048&(s=Jl).flags)try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){Eu(s,s.return,e)}if(s===l){Jl=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Jl=S;break e}Jl=s.return}}if(Os=o,Uo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Rs.transition=t}}return!1}function xu(e,t,n){e=Hi(e,t=pl(0,t=ul(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){t=Hi(t,e=hl(t,e=ul(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Is&n)===n&&(4===As||3===As&&(130023424&Is)===Is&&500>Qe()-Bs?fu(e,0):zs|=n),ru(e,t)}function _u(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Ni(e,t))&&(yt(e,t,n),ru(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_u(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),_u(e,n)}function Pu(e,t){return Ke(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Tu(e,t,n,r)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Au(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Mu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Nu(n.children,o,a,t);case E:l=8,o|=8;break;case C:return(e=Iu(12,n,t,2|o)).elementType=C,e.lanes=a,e;case P:return(e=Iu(13,n,t,o)).elementType=P,e.lanes=a,e;case T:return(e=Iu(19,n,t,o)).elementType=T,e.lanes=a,e;case D:return Lu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case R:l=9;break e;case O:l=11;break e;case I:l=14;break e;case M:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Iu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Nu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,o,i,a,l,s){return e=new Fu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Bu(e){if(!e)return Oo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Lo(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,l,s){return(e=Hu(n,r,!0,e,0,i,0,l,s)).context=Bu(null),n=e.current,(i=Fi(r=eu(),o=tu(n))).callback=null!=t?t:null,Hi(n,i,o),e.current.lanes=o,yt(e,o,r),ru(e,r),e}function Uu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Hi(o,t,a))&&(nu(e,o,a,i),Bi(e,o,a)),a}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}xs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)bl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&jo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ro(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ro(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?jl(e,t,n):(Ro(ea,1&ea.current),null!==(e=Vl(e,t,n))?e.sibling:null);Ro(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ro(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Vl(e,t,n)}(e,t,n);bl=!!(131072&e.flags)}else bl=!1,ii&&1048576&t.flags&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Mo(t,Po.current);Ti(t,n),o=ma(null,t,r,e,o,n);var a=ya();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Ol(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(r),e=nl(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Rl(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Rl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),Ui(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Tl(e,t,r,n,o=ul(Error(i(423)),t));break e}if(r!==o){t=Tl(e,t,r,n,o=ul(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Cl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return jl(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Ro(xi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!To.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Fi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Pi(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Pi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ti(t,n),r=r(o=Ii(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),kl(e,t,r,o=nl(r.type,o),n);case 15:return xl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Ul(e,t),t.tag=1,Do(r)?(e=!0,jo(t)):e=!1,Ti(t,n),al(t,r,o),sl(t,r,o,n),Ol(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return El(e,t,n)}throw Error(i(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function $u(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Zu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Vu(a);l.call(e)}}Uu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vu(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[vo]=a.current,Wr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Vu(s);l.call(e)}}var s=Hu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[vo]=s.current,Wr(8===e.nodeType?e.parentNode:e),cu(function(){Uu(t,s,n,r)}),s}(n,t,e,o,r);return Vu(a)}Gu.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Gu.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Uu(null,e,null,null)}),t[vo]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&jt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(gt(t,1|n),ru(t,Qe()),!(6&Os)&&(Ws=Qe()+500,Uo()))}break;case 13:cu(function(){var t=Ni(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Yu(e,1)}},kt=function(e){if(13===e.tag){var t=Ni(e,134217728);null!==t&&nu(t,e,134217728,eu()),Yu(e,134217728)}},xt=function(e){if(13===e.tag){var t=tu(e),n=Ni(e,t);null!==n&&nu(n,e,t,eu()),Yu(e,t)}},Et=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ko(r);if(!o)throw Error(i(90));K(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=uu,Pe=cu;var ec={usingClientEntryPoint:!1,Events:[wo,So,ko,_e,Re,uu]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(i(299));var n=!1,r="",o=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hu(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Wr(8===e.nodeType?e.parentNode:e),new $u(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(i(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(i(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[vo]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(6041));function i(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return o.default(n,"address."+e)||o.default(n,e)||(t?o.default(n,"address."+t):null)||(t?o.default(n,t):null)||o.default(r,"address."+e)||o.default(r,e)||(t?o.default(r,"address."+t):null)||(t?o.default(r,t):null)}}t.default=function(e){e.zip=i("postalCode","zip"),e.country=i("country"),e.street=i("street"),e.state=i("state"),e.city=i("city"),e.region=i("region")}},2613:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(1635),o=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(o){return n=function(o){return(0,r.sH)(void 0,void 0,void 0,function(){var i;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(o)?(i=n,[4,t()]):[3,2];case 1:return[2,i.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3172:(e,t,n)=>{"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,o,i=0,a=t.length,l=e;i<a&&"__proto__"!=(o=""+t[i++])&&"constructor"!==o&&"prototype"!==o;)l=l[o]=i===a?n:typeof(r=l[o])==typeof t?r:0*t[i]!=0||~(""+t[i]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},3176:(e,t)=>{"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,o;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,o=e.transform),function(){for(var e=[],i="",a=null,l=t?null:n,s=new Array(arguments.length),u=0;u<arguments.length;u++)s[u]=arguments[u];for(;s.length>0;){var c=s.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)s.push(c[d]);else{var f=null!=o?o(c):c;if(f.$$css){var p="";if(null!=l&&l.has(f)){var h=l.get(f);null!=h&&(p=h[0],e.push.apply(e,h[1]),l=h[2])}else{var v=[];for(var m in f){var y=f[m];"$$css"!==m&&("string"==typeof y||null===y?e.includes(m)||(e.push(m),null!=l&&v.push(m),"string"==typeof y&&(p+=p?" "+y:y)):console.error("styleq: ".concat(m," typeof ").concat(String(y),' is not "string" or "null".')))}if(null!=l){var g=new WeakMap;l.set(f,[p,v,g]),l=g}}p&&(i=i?p+" "+i:p)}else if(r)null==a&&(a={}),a=Object.assign({},f,a);else{var b=null;for(var w in f){var S=f[w];void 0!==S&&(e.includes(w)||(null!=S&&(null==a&&(a={}),null==b&&(b={}),b[w]=S),e.push(w),l=null))}null!=b&&(a=Object.assign(b,a))}}}return[i,a]}}var o=r();t.P=o,o.factory=r},3335:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var o=r(n(6698)),i=r(n(6659)),a=r(n(5316)),l=n(4500);function s(e,t){l.Facade.call(this,e,t)}t.Group=s,o.default(s,l.Facade);var u=s.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=l.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return i.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},u.name=l.Facade.proxy("traits.name"),u.industry=l.Facade.proxy("traits.industry"),u.employees=l.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},3357:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function o(e,t){var n=r(e);if(void 0!==n){var o=null==n?void 0:n.getAttribute("status");if("loaded"===o)return Promise.resolve(n);if("loading"===o)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var o,i=window.document.createElement("script");i.type="text/javascript",i.src=e,i.async=!0,i.setAttribute("status","loading");for(var a=0,l=Object.entries(null!=t?t:{});a<l.length;a++){var s=l[a],u=s[0],c=s[1];i.setAttribute(u,c)}i.onload=function(){i.onerror=i.onload=null,i.setAttribute("status","loaded"),n(i)},i.onerror=function(){i.onerror=i.onload=null,i.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(o=d.parentElement)||void 0===o||o.insertBefore(i,d):window.document.head.appendChild(i)})}function i(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>i,k:()=>o})},3863:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var o=r(n(6698)),i=n(4500),a=n(7538),l=r(n(6659)),s=r(n(6041));function u(e,t){i.Facade.call(this,e,t)}t.Track=u,o.default(u,i.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=i.Facade.field("event"),c.value=i.Facade.proxy("properties.value"),c.category=i.Facade.proxy("properties.category"),c.id=i.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=i.Facade.proxy("properties.sku"),c.tax=i.Facade.proxy("properties.tax"),c.name=i.Facade.proxy("properties.name"),c.price=i.Facade.proxy("properties.price"),c.total=i.Facade.proxy("properties.total"),c.repeat=i.Facade.proxy("properties.repeat"),c.coupon=i.Facade.proxy("properties.coupon"),c.shipping=i.Facade.proxy("properties.shipping"),c.discount=i.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=i.Facade.proxy("properties.description"),c.plan=i.Facade.proxy("properties.plan"),c.subtotal=function(){var e=s.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=s.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=i.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},4217:(e,t)=>{"use strict";t.A=function(){return null}},4336:(e,t)=>{"use strict";t.n=function(e,t){if(null!=e[r]){var i=t?1:0;if(n.has(e)){var a=n.get(e),l=a[i];return null==l&&(l=o(e,t),a[i]=l,n.set(e,a)),l}var s=o(e,t),u=new Array(2);return u[i]=s,n.set(e,u),s}return e};var n=new WeakMap,r="$$css$localize";function o(e,t){var n={};for(var o in e)if(o!==r){var i=e[o];Array.isArray(i)?n[o]=t?i[1]:i[0]:n[o]=i}return n}},4385:(e,t)=>{"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},4500:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var o=r(n(2572)),i=n(4857),a=r(n(8822)),l=r(n(5316)),s=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=i.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=i.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?l.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function f(e){return i.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=s.default(n,t.join("."))),this.opts.clone?f(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?f(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?i.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?i.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?i.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),o=r[e]||s.default(r,e);return"object"!=typeof o&&(o=s.default(this.options(),e)),"object"==typeof o?o:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var o=r[e];n="boolean"!=typeof o||o}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),o.default(d)},4568:(e,t,n)=>{"use strict";n.d(t,{U:()=>f});var r=n(1635),o=n(6490),i=n(524),a=n(8167),l=n(1298),s=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,o,i,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:s.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(o=null==e?void 0:e.maxQueueSize)&&void 0!==o?o:20,this.protocol=null!==(i=null==e?void 0:e.protocol)&&void 0!==i?i:"https",this.queue=[],this.sampleRate>0){var l=!1,c=function(){l||(l=!0,a.flush().catch(u),l=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var o=t.reduce(function(e,t){var n=t.split(":"),r=n[0],o=n[1];return e[r]=o,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},o),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,l.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,i.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(o.p)},4594:(e,t,n)=>{"use strict";var r=n(9395);e.exports=r},4757:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,o=t.type,i=t.didError,a=void 0!==i&&i;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(o)])}n.d(t,{y:()=>r})},4857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},4980:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,D:()=>a});var r=n(1635),o=n(9952);function i(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),i=t[e.event.type];return void 0===i?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof o.d&&"middleware_cancellation"===n.type)throw n;return n instanceof o.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return i(e,t).then(function(t){if(t instanceof o.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},5129:(e,t)=>{"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&o.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var w=b.prototype=new g;w.constructor=b,v(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!E.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:x.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function P(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+O(s,0):i,S(a)?(o="",null!=e&&(o=e.replace(R,"$&/")+"/"),P(a,t,o,"",function(e){return e})):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",S(e))for(var u=0;u<e.length;u++){var c=i+O(l=e[u],u);s+=P(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=P(l=l.value,t,o,c=i+O(l,u++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},D={transition:null},A={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:D,ReactCurrentOwner:x};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=N,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)k.call(t,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},5316:(e,t,n)=>{"use strict";var r=n(1042),o=n(356),i=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):o.is(e)?o.parse(e):i.is(e)?i.parse(e):new Date(e);var t,n}},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},5486:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function l(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var i=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var s in i){var u=i[s],c=e[s];if(c&&u){if(Array.isArray(c)){e[s]=a(c.concat(u));continue}if(Array.isArray(u)){e[s]=a([c].concat(o(u)));continue}if("object"===r(u)){e[s]=l({},c,u);continue}}e[s]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>l,camelCaseProperty:()=>f,cssifyDeclaration:()=>v,cssifyObject:()=>m,hyphenateProperty:()=>h,isPrefixedProperty:()=>g,isPrefixedValue:()=>w,isUnitlessProperty:()=>I,normalizeProperty:()=>A,resolveArrayValue:()=>N,unprefixProperty:()=>D,unprefixValue:()=>j});var s=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function f(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(s,d).replace(u,"ms");return c[e]=t,t}var p=n(5685);function h(e){return(0,p.default)(e)}function v(e,t){return h(e)+":"+t}function m(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=v(n,r))}return t}var y=/^(Webkit|Moz|O|ms)/;function g(e){return y.test(e)}var b=/-webkit-|-moz-|-ms-/;function w(e){return"string"==typeof e&&b.test(e)}var S={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],x=["Webkit","ms","Moz","O"];function E(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var C=0,_=k.length;C<_;++C){var R=k[C];S[R]=!0;for(var O=0,P=x.length;O<P;++O)S[E(x[O],R)]=!0}for(var T in S)S[h(T)]=!0;function I(e){return S.hasOwnProperty(e)}var M=/^(ms|Webkit|Moz|O)/;function D(e){var t=e.replace(M,"");return t.charAt(0).toLowerCase()+t.slice(1)}function A(e){return D(f(e))}function N(e,t){return t.join(";"+h(e)+":")}var L=/(-ms-|-webkit-|-moz-|-o-)/g;function j(e){return"string"==typeof e?e.replace(L,""):e}},5525:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var o=r(n(6698)),i=n(4500),a=n(3863),l=r(n(6659));function s(e,t){i.Facade.call(this,e,t)}t.Page=s,o.default(s,i.Facade);var u=s.prototype;u.action=function(){return"page"},u.type=u.action,u.category=i.Facade.field("category"),u.name=i.Facade.field("name"),u.title=i.Facade.proxy("properties.title"),u.path=i.Facade.proxy("properties.path"),u.url=i.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var o in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=null==this[o]?this.proxy("properties."+o):this[o]();if(null==i)continue;t[e[o]]=i,o!==e[o]&&delete t[o]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},5556:(e,t,n)=>{e.exports=n(2694)()},5685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=/[A-Z]/g,o=/^ms-/,i={};function a(e){return"-"+e.toLowerCase()}const l=function(e){if(i.hasOwnProperty(e))return i[e];var t=e.replace(r,a);return i[e]=o.test(t)?"-"+t:t}},5721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)};var r,o=(r=n(5685))&&r.__esModule?r:{default:r}},5770:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},5791:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(1476);function o(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},5881:(e,t,n)=>{"use strict";n.d(t,{x:()=>f});var r=n(1635),o=n(6115),i=n(7977),a=n(9839),l={getItem:function(){},setItem:function(){},removeItem:function(){}};try{l=(0,a.B)()&&window.localStorage?window.localStorage:l}catch(e){console.warn("Unable to access localStorage",e)}function s(e){var t=l.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new i.o(e.event,e.id)})}function u(e){var t=l.getItem(e);return t?JSON.parse(t):{}}function c(e){l.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),o=l.getItem(r),i=o?JSON.parse(o):null,a=null===i||function(e){return(new Date).getTime()>e}(i);if(a)return l.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void l.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var f=function(e){function t(t,n){var o=e.call(this,t,[])||this,i="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),f=[],p={};return d(n,function(){try{f=s(i),p=u(a),c(i),c(a),o.queue=(0,r.fX)((0,r.fX)([],f,!0),o.queue,!0),o.seen=(0,r.Cl)((0,r.Cl)({},p),o.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(o.todo>0){var e=(0,r.fX)((0,r.fX)([],o.queue,!0),o.future,!0);try{d(n,function(){!function(e,t){var n=s(e),o=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});l.setItem(e,JSON.stringify(Object.values(o)))}(i,e),function(e,t){var n=u(e);l.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,o.seen)})}catch(e){console.error(e)}}}),o}return(0,r.C6)(t,e),t}(o.M)},5939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>l});var r=n(1635),o=n(9952),i=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function o(t,n){return(0,r.sH)(this,void 0,void 0,function(){var o,a,l;return(0,r.YH)(this,function(s){switch(s.label){case 0:return o=!1,a=null,[4,n({payload:(0,i.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){o=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return s.sent(),o||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((l={})[e]=!1,l))),[2,a]}})})}var a,l,s,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,i.W)(t,{clone:!0,traverse:!1}).rawEvent(),l=0,s=n,e.label=1;case 1:return l<s.length?(u=s[l],[4,o(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return l++,[3,1];case 4:return[2,a]}})})}function l(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,i.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new o.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},6e3:(e,t,n)=>{"use strict";n.d(t,{v4:()=>a});for(var r,o=256,i=[];o--;)i[o]=(o+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||o+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=o=0}for(;t<16;t++)e=r[o+t],n+=6==t?i[15&e|64]:8==t?i[63&e|128]:i[e],1&t&&t>1&&t<11&&(n+="-");return o++,n}},6041:e=>{function t(e){return function(t,n,r,i){var a,l=i&&function(e){return"function"==typeof e}(i.normalizer)?i.normalizer:o;n=l(n);for(var s=!1;!s;)u();function u(){for(a in t){var e=l(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var o=t[a];return null==o?void(s=!0):n.length?void(t=o):void(s=!0)}}}a=void 0,s=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function o(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,o,i){return t(r).call(this,e,n,o,i),e},e.exports.del=function(e,r,o){return t(n).call(this,e,r,null,o),e}},6115:(e,t,n)=>{"use strict";n.d(t,{g:()=>i,M:()=>a});var r=n(1635),o=n(2079),i="onRemoveFromFuture",a=function(e){function t(t,n,r){var o=e.call(this)||this;return o.future=[],o.maxAttempts=t,o.queue=n,o.seen=null!=r?r:{},o}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){var n=this;if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var r=this.updateAttempts(e);if(r>this.maxAttempts||this.includes(e))return!1;var o=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,o=e.factor,i=void 0===o?2:o,a=e.attempt,l=e.maxTimeout,s=void 0===l?1/0:l;return Math.min(t*r*Math.pow(i,a),s)}({attempt:r-1});return t>0&&o<t&&(o=t),setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(i)},o),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(o.v)},6251:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,o){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,o.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},6485:(e,t,n)=>{"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(l){for(var s in l){var u=l[s];if((0,a.default)(u))l[s]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,f=u.length;d<f;++d){var p=(0,o.default)(n,s,u[d],l,t);(0,i.default)(c,p||u[d])}c.length>0&&(l[s]=c)}else{var h=(0,o.default)(n,s,u,l,t);h&&(l[s]=h),l=(0,r.default)(t,s,l)}}return l}};var r=l(n(2049)),o=l(n(7971)),i=l(n(9863)),a=l(n(1099));function l(e){return e&&e.__esModule?e:{default:e}}},6490:(e,t,n)=>{"use strict";n.d(t,{p:()=>o,r:()=>i});var r=n(1635),o=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(o)},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6556:(e,t,n)=>{"use strict";function r(e,t){return new Promise(function(n,r){var o=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(o),n(e)}).catch(r)})}function o(e,t,n){var o;return(o=n,new Promise(function(e){return setTimeout(e,o)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>o})},6659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6852:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1)return i.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,o=(r=n(4014))&&r.__esModule?r:{default:r},i=["-webkit-",""]},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7033:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return i.map(function(e){return t.replace(o,e+"filter(")})};var r=n(5486),o=/filter\(/g,i=["-webkit-",""]},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<o&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,v=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(m=!1,w(e),!v)if(null!==r(u))v=!0,D(k);else{var t=r(c);null!==t&&A(S,t.startTime-e)}}function k(e,n){v=!1,m&&(m=!1,g(_),_=-1),h=!0;var i=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&o(u),w(n)}else o(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&A(S,d.startTime-n),s=!1}return s}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,C=null,_=-1,R=5,O=-1;function P(){return!(t.unstable_now()-O<R)}function T(){if(null!==C){var e=t.unstable_now();O=e;var n=!0;try{n=C(!0,e)}finally{n?x():(E=!1,C=null)}}else E=!1}if("function"==typeof b)x=function(){b(T)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,M=I.port2;I.port1.onmessage=T,x=function(){M.postMessage(null)}}else x=function(){y(T,0)};function D(e){C=e,E||(E=!0,x())}function A(e,n){_=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,D(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(m?(g(_),_=-1):m=!0,A(S,i-a))):(e.sortIndex=l,n(u,e),v||h||(v=!0,D(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7538:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var o=n(4500),i=r(n(6041)),a=r(n(6698)),l=r(n(6659)),s=r(n(5316)),u=function(e){return e.trim()};function c(e,t){o.Facade.call(this,e,t)}t.Identify=c,a.default(c,o.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(t[e[r]]=o,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return l.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return s.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return s.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=i.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return i.default(e,"avatar")||i.default(e,"photoUrl")||i.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return i.default(e,"position")||i.default(e,"jobTitle")},d.username=o.Facade.proxy("traits.username"),d.website=o.Facade.one("traits.website"),d.websites=o.Facade.multi("traits.website"),d.phone=o.Facade.one("traits.phone"),d.phones=o.Facade.multi("traits.phone"),d.address=o.Facade.proxy("traits.address"),d.gender=o.Facade.proxy("traits.gender"),d.birthday=o.Facade.proxy("traits.birthday")},7631:(e,t,n)=>{"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,o){t[o]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},7697:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var o=r(n(6698)),i=n(4500);function a(e,t){i.Facade.call(this,e,t)}t.Delete=a,o.default(a,i.Facade),a.prototype.type=function(){return"delete"}},7718:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,s:()=>o});var r=n(9839);function o(){return!(0,r.B)()||window.navigator.onLine}function i(){return!o()}},7918:(e,t,n)=>{"use strict";var r=n(8907).Y,o="undefined"!=typeof window?window.matchMedia:null;function i(e,t,n){var i,a=this;function l(e){a.matches=e.matches,a.media=e.media}o&&!n&&(i=o.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(l)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(l)}}e.exports=function(e,t,n){return new i(e,t,n)}},7947:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){for(var i=0,a=e.length;i<a;++i){var l=e[i](t,n,r,o);if(l)return l}}},7977:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(1635),o=n(9952),i=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new i.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(o.j)},8041:(e,t)=>{"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},8167:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var r="1.81.1"},8822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},8907:(e,t)=>{"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),i=t[1],a=t[2],l=t[3]||"",s={};return s.inverse=!!i&&"not"===i.toLowerCase(),s.type=a?a.toLowerCase():"all",l=l.match(/\([^\)]+\)/g)||[],s.expressions=l.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(o);return{modifier:n[1],feature:n[2],value:t[2]}}),s})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,i=t[n];if(!i)return!1;switch(n){case"orientation":case"scan":return i.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=u(o),i=u(i);break;case"resolution":o=s(o),i=s(i);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=l(o),i=l(i);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,i=parseInt(i,10)||0}switch(r){case"min":return i>=o;case"max":return i<=o;default:return i===o}});return o&&!n||!o&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,o=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function s(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},9395:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},9456:(e,t,n)=>{"use strict";n.d(t,{I2:()=>l,YM:()=>s,qQ:()=>a});var r,o=n(472),i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,o.kJ)();t&&(t._cdn=e),r=e},l=function(){var e,t=null!=r?r:null===(e=(0,o.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",o=i.exec(r);o&&o[1]&&(n=o[1])}),n);return a||"https://cdn.segment.com"},s=function(){var e=l();return"".concat(e,"/next-integrations")}},9839:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(){return!r()}n.d(t,{B:()=>r,S:()=>o})},9863:(e,t)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,o=t.length;r<o;++r)n(e,t[r]);else n(e,t)}},9952:(e,t,n)=>{"use strict";n.d(t,{d:()=>s,j:()=>u});var r=n(6e3),o=n(3172),i=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,o,a=(0,i.Cl)((0,i.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var l=null!==(o=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return e[l]&&(l="".concat(l,"-").concat(Math.random())),(0,i.Cl)((0,i.Cl)({},e),((n={})[l]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),l=n(6490),s=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,o){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new l.r),void 0===o&&(o=new a),this.attempts=0,this.event=e,this._id=t,this.logger=o,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new s({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,o.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},9996:(e,t)=>{"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",r+o),l.src=e),n[e]=[t];var f=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),s&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,r[1](l)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,l,s]=n,u=0;if(i.some(t=>0!==e[t])){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);s&&s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=new class{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),o={context:n,listener:t,remove(){r.delete(o)}};return r.add(o),o}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0,a=[...t];i<a.length;i++){var l=a[i];l.listener.apply(l.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}},t=e;var n=a(6540);function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var o={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var r=o[n];if(null!==r)return r||n}};var l={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},s={};const u=function(e){if(void 0===e&&(e=s),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return l[t]}},c=i;function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},m=["ms","Moz","O","Webkit"];Object.keys(v).forEach(e=>{m.forEach(t=>{v[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=v[e]})});const y=v;var g=a(1515),b=a.n(g);const w=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(e=>{if(null==e)return e;var t=b()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0})(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}};var S={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function k(e,t){var n=e;return null!=t&&y[t]||"number"!=typeof e?null!=t&&S[t]&&(n=w(e)):n=e+"px",n}const x=!("undefined"==typeof window||!window.document||!window.document.createElement);var E={},C=!x||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),_='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',R={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const O=(e,t)=>{if(!e)return E;var n={},r=function(){var r=e[o];if(null==r)return"continue";if("backgroundClip"===o)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===o)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===o)n[o]=r.replace("System",_);else if("fontFamily"===o)if(r.indexOf("System")>-1){var i=r.split(/,\s*/);i[i.indexOf("System")]=_,n[o]=i.join(",")}else n[o]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===o)C?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===o)n.direction=r;else{var a=k(e[o],o),l=R[o];t&&"inset"===o?(null==e.insetInline&&(n.left=a,n.right=a),null==e.insetBlock&&(n.top=a,n.bottom=a)):t&&"margin"===o?(null==e.marginInline&&(n.marginLeft=a,n.marginRight=a),null==e.marginBlock&&(n.marginTop=a,n.marginBottom=a)):t&&"padding"===o?(null==e.paddingInline&&(n.paddingLeft=a,n.paddingRight=a),null==e.paddingBlock&&(n.paddingTop=a,n.paddingBottom=a)):l?l.forEach((t,r)=>{null==e[t]&&(n[t]=a)}):n[o]=a}};for(var o in e)r();return n};var P=/[A-Z]/g,T=/^ms-/,I={};function M(e){return"-"+e.toLowerCase()}var D=a(6485),A=a(4217),N=a(1261),L=a(8041),j=a(7033),z=a(6852),F=a(20),H=a(9996),B=a(5129),W=a(508),U=["Webkit"],V=["Webkit","ms"];const q={plugins:[A.A,N.A,L.A,j.A,z.A,F.A,H.A,B.A,W.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:V,textEmphasis:V,textEmphasisStyle:V,textEmphasisColor:V,boxDecorationBreak:V,clipPath:U,maskImage:V,maskMode:V,maskRepeat:V,maskPosition:V,maskClip:V,maskOrigin:V,maskSize:V,maskComposite:V,mask:V,maskBorderSource:V,maskBorderMode:V,maskBorderSlice:V,maskBorderWidth:V,maskBorderOutset:V,maskBorderRepeat:V,maskBorder:V,maskType:V,textDecorationStyle:U,textDecorationSkip:U,textDecorationLine:U,textDecorationColor:U,filter:U,breakAfter:U,breakBefore:U,breakInside:U,columnCount:U,columnFill:U,columnGap:U,columnRule:U,columnRuleColor:U,columnRuleStyle:U,columnRuleWidth:U,columns:U,columnSpan:U,columnWidth:U,backdropFilter:U,hyphens:U,flowInto:U,flowFrom:U,regionFragment:U,textOrientation:U,tabSize:["Moz"],fontKerning:U,textSizeAdjust:U}},Y=(0,D.A)(q);var K=["animationKeyframes"],$=new Map,G={},X={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},Q="borderTopLeftRadius",J="borderTopRightRadius",Z="borderBottomLeftRadius",ee="borderBottomRightRadius",te="borderLeftColor",ne="borderLeftStyle",re="borderLeftWidth",oe="borderRightColor",ie="borderRightStyle",ae="borderRightWidth",le="right",se="marginLeft",ue="marginRight",ce="paddingLeft",de="paddingRight",fe="left",pe={[Q]:J,[J]:Q,[Z]:ee,[ee]:Z,[te]:oe,[ne]:ie,[re]:ae,[oe]:te,[ie]:ne,[ae]:re,[fe]:le,[se]:ue,[ue]:se,[ce]:de,[de]:ce,[le]:fe},he={borderStartStartRadius:Q,borderStartEndRadius:J,borderEndStartRadius:Z,borderEndEndRadius:ee,borderInlineStartColor:te,borderInlineStartStyle:ne,borderInlineStartWidth:re,borderInlineEndColor:oe,borderInlineEndStyle:ie,borderInlineEndWidth:ae,insetInlineEnd:le,insetInlineStart:fe,marginInlineStart:se,marginInlineEnd:ue,paddingInlineStart:ce,paddingInlineEnd:de},ve=["clear","float","textAlign"];function me(e){var t=Y(O(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in I)return I[e];var t=e.replace(P,M);return I[e]=T.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ye(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function ge(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ye("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+me(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),o=r[0],i=r[1];t.push(o),n.push(...i)}}),[t,n]}function be(e,t,n){if(x){var r=null!=t?t:document,o=r.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),r instanceof ShadowRoot)r.insertBefore(o,r.firstChild);else{var i=r.head;i&&i.insertBefore(o,i.firstChild)}return o.sheet}return null}var we=Array.prototype.slice;function Se(e){var t,n={},r={};function o(e,t,r){var o=xe(n),i=o.indexOf(t)+1,a=o[i],l=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,s=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,l);if(s){null==n[t].start&&(n[t].start=l);for(var u=i;u<o.length;u+=1){var c=o[u],d=n[c].start||0;n[c].start=d+1}}return s}null!=e&&we.call(e.cssRules).forEach((e,o)=>{var i=e.cssText;if(i.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(ke)[1])}(e),n[t]={start:o,rules:[i]};else{var a=Ce(i);null!=a&&(r[a]=!0,n[t].rules.push(i))}});var i={getTextContent:()=>xe(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,i){var a=Number(i);if(null==n[a]){var l=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[l]},null!=e&&o(e,a,l)}var s=Ce(t);null!=s&&null==r[s]&&(r[s]=!0,n[a].rules.push(t),null!=e&&(o(e,a,t)||n[a].rules.pop()))}};return i}var ke=/["']/g;function xe(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var Ee=/\s*([,])\s*/g;function Ce(e){var t=e.split("{")[0].trim();return""!==t?t.replace(Ee,"$1"):null}var _e=new WeakMap,Re=[],Oe=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"],Pe=a(4336);var Te={},Ie={height:0,width:0},Me=e=>{var t=e.shadowColor,n=e.shadowOffset,r=e.shadowOpacity,o=e.shadowRadius,i=n||Ie,a=i.height,l=k(i.width),s=k(a),u=k(o||0),c=w(t||"black",r);if(null!=c&&null!=l&&null!=s&&null!=u)return l+" "+s+" "+u+" "+c},De=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+k(n,t)+")"},Ae=e=>e.map(De).join(" "),Ne={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},Le={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},je=function(e,t){void 0===t&&(t={});var n=e||Te,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){var o=Me(n);if(null!=o&&null==r.boxShadow){var i=n.boxShadow,a=i?i+", "+o:o;r.boxShadow=a}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){var l=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||Ie,i=o.height,a=o.width,l=r||0,s=k(a),u=k(i),c=k(l),d=k(t,"textShadowColor");if(d&&(0!==i||0!==a||0!==l)&&null!=s&&null!=u&&null!=c)return s+" "+u+" "+c+" "+d})(n);if(null!=l&&null==r.textShadow){var s=n.textShadow,u=s?s+", "+l:l;r.textShadow=u}}for(var c in n)if(null==Le[c]&&"shadowColor"!==c&&"shadowOffset"!==c&&"shadowOpacity"!==c&&"shadowRadius"!==c&&"textShadowColor"!==c&&"textShadowOffset"!==c&&"textShadowRadius"!==c){var d=n[c],f=Ne[c]||c,p=d;!Object.prototype.hasOwnProperty.call(n,c)||f!==c&&null!=n[f]||("aspectRatio"===f&&"number"==typeof p?r[f]=p.toString():"fontVariant"===f?(Array.isArray(p)&&p.length>0&&(p=p.join(" ")),r[f]=p):"textAlignVertical"===f?null==n.verticalAlign&&(r.verticalAlign="center"===p?"middle":p):"transform"===f?(Array.isArray(p)&&(p=Ae(p)),r.transform=p):r[f]=p)}return r},ze=a(3176),Fe=["writingDirection"],He=new WeakMap,Be=function(e,t){var n;if(void 0===t&&(t="react-native-stylesheet"),x){var r=document;if(0===Re.length)n=Se(be(t)),Oe.forEach(e=>{n.insert(e,0)}),_e.set(r,Re.length),Re.push(n);else{var o=_e.get(r);if(null==o){var i=Re[0],a=null!=i?i.getTextContent():"";n=Se(be(t,r,a)),_e.set(r,Re.length),Re.push(n)}else n=Re[o]}}else 0===Re.length?(n=Se(be(t)),Oe.forEach(e=>{n.insert(e,0)}),Re.push(n)):n=Re[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){Re.forEach(n=>{n.insert(e,t)})}}}(),We={shadow:!0,textShadow:!0};function Ue(e){e.forEach(e=>{var t=e[0],n=e[1];null!=Be&&t.forEach(e=>{Be.insert(e,n)})})}var Ve={position:"absolute",left:0,right:0,top:0,bottom:0},qe=Ye({x:h({},Ve)}).x;function Ye(e){return Object.keys(e).forEach(t=>{var n,o,i,a=e[t];null!=a&&!0!==a.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},i=[],a=e.animationKeyframes,l=r(e,K),s=ye("css",t,JSON.stringify(e)),u="."+s;if(null!=a){var c=ge(a),d=c[0],f=c[1];n=d.join(","),i.push(...f)}var p=me(h(h({},l),{},{animationName:n}));return i.push(""+u+p),o[s]=s,[o,[[i,1]]]}(e,t),o=n[0];return Ue(n[1]),o}(a,t.split("$raw")[0]):(o=function(e){var t={$$css:!0},n=[];function r(e,t,r){var o,i=function(e,t){var n=k(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),a=t+i,l=$.get(a);if(null!=l)o=l[0],n.push(l[1]);else{o=ye("r",e,e!==t?a:i);var s=X[e]||3,u=function(e,t,n){var r=[],o="."+e;switch(t){case"animationKeyframes":var i=ge(n),a=i[0],l=i[1],s=me({animationName:a.join(",")});r.push(""+o+s,...l);break;case"placeholderTextColor":var u=me({color:n,opacity:1});r.push(o+"::-webkit-input-placeholder"+u,o+"::-moz-placeholder"+u,o+":-ms-input-placeholder"+u,o+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=me({pointerEvents:"none"});r.push(o+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var f=me({pointerEvents:"auto"});r.push(o+">*"+f)}var p=me({pointerEvents:c});r.push(""+o+p);break;case"scrollbarWidth":"none"===n&&r.push(o+"::-webkit-scrollbar{display:none}");var h=me({scrollbarWidth:n});r.push(""+o+h);break;default:var v=me({[t]:n});r.push(""+o+v)}return r}(o,t,r),c=[u,s];n.push(c),$.set(a,[o,c])}return o}return Object.keys(e).sort().forEach(n=>{var o=e[n];if(null!=o){var i;if(ve.indexOf(n)>-1){var a=r(n,n,"left"),l=r(n,n,"right");"start"===o?i=[a,l]:"end"===o&&(i=[l,a])}var s=he[n];if(null!=s){var u=r(n,s,o),c=r(n,pe[s],o);i=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(o)?o:[o],f=[],p=0;p<d.length;p++){var h=d[p];"string"==typeof h&&null!=he[h]&&f.push(p)}if(f.length>0){var v=[...d],m=[...d];f.forEach(e=>{var t=v[e];if("string"==typeof t){var o=he[t],a=pe[o];v[e]=o,m[e]=a;var l=r(n,n,v),s=r(n,n,m);i=[l,s]}})}}null==i?i=r(n,n,o):t.$$css$localize=!0,t[n]=i}}),[t,n]}(je(a,We)),i=o[0],Ue(o[1]),n=i),He.set(a,n))}),e}function Ke(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,i=r(n,Fe),a="rtl"===o;return ze.P.factory({transform(e){var t=He.get(e);return null!=t?(0,Pe.n)(t,a):je(e,h(h({},We),i))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||G,r={},o={},i=function(){var e=n[a],i=a,l=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";ve.indexOf(a)>-1&&("start"===e?l=t?"right":"left":"end"===e&&(l=t?"left":"right"));var s=he[a];if(null!=s&&(i=t?pe[s]:s),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=he[e];null!=r&&(u[n]=t?pe[r]:r,l=u.join(" "))}})}r[i]||(o[i]=l),i===a&&(r[i]=!0)};for(var a in n)i();return O(o,!0)}(o[1],n)),o}Ke.absoluteFill=qe,Ke.absoluteFillObject=Ve,Ke.create=Ye,Ke.compose=function(e,t){return[e,t]},Ke.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),o={},i=0;i<r.length;i++){var a=r[i];null!=a&&"object"==typeof a&&Object.assign(o,a)}return o},Ke.getSheet=function(){return{id:Be.id,textContent:Be.getTextContent()}},Ke.hairlineWidth=1,x&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=Ke.flatten);const $e=Ke;var Ge=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],Xe={},Qe=Object.prototype.hasOwnProperty,Je=Array.isArray,Ze=/[A-Z]/g;function et(e){return"-"+e.toLowerCase()}function tt(e){return e.replace(Ze,et)}function nt(e){return Je(e)?e.join(" "):e}var rt=$e.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var ot=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),it=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),at=new Map,lt={direction:"ltr",locale:"en-US"},st=(0,n.createContext)(lt);function ut(e){return function(e){var t=at.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=ot.has(r)}catch(t){var o=e.split("-")[0];n=it.has(o)}else{var i=e.split("-")[0];n=it.has(i)}return at.set(e,n),n}(e)?"rtl":"ltr"}function ct(e){var t=e.direction,r=e.locale,o=e.children;return t||r?n.createElement(st.Provider,{children:o,value:{direction:r?ut(r):t,locale:r}}):o}function dt(){return(0,n.useContext)(st)}const ft=(e,t,o)=>{var i;e&&e.constructor===String&&(i=u(t));var a=i||e,l=((e,t,n)=>{t||(t=Xe);var o=t,i=o["aria-activedescendant"],a=o.accessibilityActiveDescendant,l=o["aria-atomic"],s=o.accessibilityAtomic,u=o["aria-autocomplete"],d=o.accessibilityAutoComplete,f=o["aria-busy"],p=o.accessibilityBusy,v=o["aria-checked"],m=o.accessibilityChecked,y=o["aria-colcount"],g=o.accessibilityColumnCount,b=o["aria-colindex"],w=o.accessibilityColumnIndex,S=o["aria-colspan"],k=o.accessibilityColumnSpan,x=o["aria-controls"],E=o.accessibilityControls,C=o["aria-current"],_=o.accessibilityCurrent,R=o["aria-describedby"],O=o.accessibilityDescribedBy,P=o["aria-details"],T=o.accessibilityDetails,I=o["aria-disabled"],M=o.accessibilityDisabled,D=o["aria-errormessage"],A=o.accessibilityErrorMessage,N=o["aria-expanded"],L=o.accessibilityExpanded,j=o["aria-flowto"],z=o.accessibilityFlowTo,F=o["aria-haspopup"],H=o.accessibilityHasPopup,B=o["aria-hidden"],W=o.accessibilityHidden,U=o["aria-invalid"],V=o.accessibilityInvalid,q=o["aria-keyshortcuts"],Y=o.accessibilityKeyShortcuts,K=o["aria-label"],$=o.accessibilityLabel,G=o["aria-labelledby"],X=o.accessibilityLabelledBy,Q=o["aria-level"],J=o.accessibilityLevel,Z=o["aria-live"],ee=o.accessibilityLiveRegion,te=o["aria-modal"],ne=o.accessibilityModal,re=o["aria-multiline"],oe=o.accessibilityMultiline,ie=o["aria-multiselectable"],ae=o.accessibilityMultiSelectable,le=o["aria-orientation"],se=o.accessibilityOrientation,ue=o["aria-owns"],ce=o.accessibilityOwns,de=o["aria-placeholder"],fe=o.accessibilityPlaceholder,pe=o["aria-posinset"],he=o.accessibilityPosInSet,ve=o["aria-pressed"],me=o.accessibilityPressed,ye=o["aria-readonly"],ge=o.accessibilityReadOnly,be=o["aria-required"],we=o.accessibilityRequired,Se=(o.role,o.accessibilityRole,o["aria-roledescription"]),ke=o.accessibilityRoleDescription,xe=o["aria-rowcount"],Ee=o.accessibilityRowCount,Ce=o["aria-rowindex"],_e=o.accessibilityRowIndex,Re=o["aria-rowspan"],Oe=o.accessibilityRowSpan,Pe=o["aria-selected"],Te=o.accessibilitySelected,Ie=o["aria-setsize"],Me=o.accessibilitySetSize,De=o["aria-sort"],Ae=o.accessibilitySort,Ne=o["aria-valuemax"],Le=o.accessibilityValueMax,je=o["aria-valuemin"],ze=o.accessibilityValueMin,Fe=o["aria-valuenow"],He=o.accessibilityValueNow,Be=o["aria-valuetext"],We=o.accessibilityValueText,Ue=o.dataSet,Ve=o.focusable,qe=o.id,Ye=o.nativeID,Ke=o.pointerEvents,Je=o.style,Ze=o.tabIndex,et=o.testID,ot=r(o,Ge),it=I||M,at=c(t),lt=null!=i?i:a;null!=lt&&(ot["aria-activedescendant"]=lt);var st=null!=l?i:s;null!=st&&(ot["aria-atomic"]=st);var ut=null!=u?u:d;null!=ut&&(ot["aria-autocomplete"]=ut);var ct=null!=f?f:p;null!=ct&&(ot["aria-busy"]=ct);var dt=null!=v?v:m;null!=dt&&(ot["aria-checked"]=dt);var ft=null!=y?y:g;null!=ft&&(ot["aria-colcount"]=ft);var pt=null!=b?b:w;null!=pt&&(ot["aria-colindex"]=pt);var ht=null!=S?S:k;null!=ht&&(ot["aria-colspan"]=ht);var vt=null!=x?x:E;null!=vt&&(ot["aria-controls"]=nt(vt));var mt=null!=C?C:_;null!=mt&&(ot["aria-current"]=mt);var yt=null!=R?R:O;null!=yt&&(ot["aria-describedby"]=nt(yt));var gt=null!=P?P:T;null!=gt&&(ot["aria-details"]=gt),!0===it&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var bt=null!=D?D:A;null!=bt&&(ot["aria-errormessage"]=bt);var wt=null!=N?N:L;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=j?j:z;null!=St&&(ot["aria-flowto"]=nt(St));var kt=null!=F?F:H;null!=kt&&(ot["aria-haspopup"]=kt);var xt=null!=B?B:W;!0===xt&&(ot["aria-hidden"]=xt);var Et=null!=U?U:V;null!=Et&&(ot["aria-invalid"]=Et);var Ct=null!=q?q:Y;null!=Ct&&(ot["aria-keyshortcuts"]=nt(Ct));var _t=null!=K?K:$;null!=_t&&(ot["aria-label"]=_t);var Rt=null!=G?G:X;null!=Rt&&(ot["aria-labelledby"]=nt(Rt));var Ot=null!=Q?Q:J;null!=Ot&&(ot["aria-level"]=Ot);var Pt=null!=Z?Z:ee;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var Tt=null!=te?te:ne;null!=Tt&&(ot["aria-modal"]=Tt);var It=null!=re?re:oe;null!=It&&(ot["aria-multiline"]=It);var Mt=null!=ie?ie:ae;null!=Mt&&(ot["aria-multiselectable"]=Mt);var Dt=null!=le?le:se;null!=Dt&&(ot["aria-orientation"]=Dt);var At=null!=ue?ue:ce;null!=At&&(ot["aria-owns"]=nt(At));var Nt=null!=de?de:fe;null!=Nt&&(ot["aria-placeholder"]=Nt);var Lt=null!=pe?pe:he;null!=Lt&&(ot["aria-posinset"]=Lt);var jt=null!=ve?ve:me;null!=jt&&(ot["aria-pressed"]=jt);var zt=null!=ye?ye:ge;null!=zt&&(ot["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var Ft=null!=be?be:we;null!=Ft&&(ot["aria-required"]=Ft,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=we)),null!=at&&(ot.role="none"===at?"presentation":at);var Ht=null!=Se?Se:ke;null!=Ht&&(ot["aria-roledescription"]=Ht);var Bt=null!=xe?xe:Ee;null!=Bt&&(ot["aria-rowcount"]=Bt);var Wt=null!=Ce?Ce:_e;null!=Wt&&(ot["aria-rowindex"]=Wt);var Ut=null!=Re?Re:Oe;null!=Ut&&(ot["aria-rowspan"]=Ut);var Vt=null!=Pe?Pe:Te;null!=Vt&&(ot["aria-selected"]=Vt);var qt=null!=Ie?Ie:Me;null!=qt&&(ot["aria-setsize"]=qt);var Yt=null!=De?De:Ae;null!=Yt&&(ot["aria-sort"]=Yt);var Kt=null!=Ne?Ne:Le;null!=Kt&&(ot["aria-valuemax"]=Kt);var $t=null!=je?je:ze;null!=$t&&(ot["aria-valuemin"]=$t);var Gt=null!=Fe?Fe:He;null!=Gt&&(ot["aria-valuenow"]=Gt);var Xt=null!=Be?Be:We;if(null!=Xt&&(ot["aria-valuetext"]=Xt),null!=Ue)for(var Qt in Ue)if(Qe.call(Ue,Qt)){var Jt=tt(Qt),Zt=Ue[Qt];null!=Zt&&(ot["data-"+Jt]=Zt)}0===Ze||"0"===Ze||-1===Ze||"-1"===Ze?ot.tabIndex=Ze:(!1===Ve&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Ve&&!0!==M||(ot.tabIndex="-1"):"button"===at||"checkbox"===at||"link"===at||"radio"===at||"textbox"===at||"switch"===at?!1!==Ve&&(ot.tabIndex="0"):!0===Ve&&(ot.tabIndex="0"));var en=$e([Je,Ke&&rt[Ke]],h({writingDirection:"ltr"},n)),tn=en[0],nn=en[1];tn&&(ot.className=tn),nn&&(ot.style=nn);var rn=null!=qe?qe:Ye;return null!=rn&&(ot.id=rn),null!=et&&(ot["data-testid"]=et),null==ot.type&&"button"===e&&(ot.type="button"),ot})(a,t,o),s=n.createElement(a,l);return l.dir?n.createElement(ct,{children:s,direction:l.dir,locale:l.lang}):s};var pt={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},ht={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},vt={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},mt={onBlur:!0,onFocus:!0},yt={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},gt={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},bt={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},wt={style:!0};function St(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}const kt=x?n.useLayoutEffect:n.useEffect,xt=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()};var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},Ct=["ms","Moz","O","Webkit"];Object.keys(Et).forEach(e=>{Ct.forEach(t=>{Et[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=Et[e]})});const _t=Et,Rt=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_t.hasOwnProperty(e)&&_t[e]?(""+t).trim():t+"px"},Ot=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--"),i=Rt(r,t[r],o);"float"===r&&(r="cssFloat"),o?n.setProperty(r,i):n[r]=i}};var Pt=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,o=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,o+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:o-=window.scrollY,left:r-=window.scrollX}},Tt=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=Pt(r),o=Pt(e),i=o.height,a=o.left,l=o.top,s=o.width,u=a-t.left,c=l-t.top;n(u,c,s,i,a,l)}},0)},It={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0},Mt={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==It[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){Tt(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=xt(e),r=n.height,o=n.left,i=n.top,a=n.width;t(o,i,a,r)},0)},measureLayout(e,t,n,r){Tt(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":Ot(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}};const Dt=Mt;var At="__reactLayoutHandler",Nt=null;function Lt(e,t){var n=(x&&void 0!==window.ResizeObserver&&null==Nt&&(Nt=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[At];"function"==typeof n&&Dt.measure(t,(t,r,o,i,a,l)=>{var s={nativeEvent:{layout:{x:t,y:r,width:o,height:i,left:a,top:l}},timeStamp:Date.now()};Object.defineProperty(s.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(s)})})})),Nt);kt(()=>{var n=e.current;null!=n&&(n[At]=t)},[e,t]),kt(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[At]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}function zt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo(()=>jt(...t),[...t])}var Ft="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function Ht(e){var t=n.useRef(Ft);return t.current===Ft&&(t.current=e()),t.current}function Bt(e){e.pointerEvents,e.style;var t=Ht(()=>e=>{null!=e&&(e.measure=t=>Dt.measure(e,t),e.measureLayout=(t,n,r)=>Dt.measureLayout(e,t,r,n),e.measureInWindow=t=>Dt.measureInWindow(e,t))});return t}var Wt=()=>{},Ut={},Vt=[];function qt(e){return e>20?e%20:e}function Yt(e,t){var n,r,o,i=!1,a=e.changedTouches,l=e.type,s=!0===e.metaKey,u=!0===e.shiftKey,c=a&&a[0].force||0,d=qt(a&&a[0].identifier||0),f=a&&a[0].clientX||e.clientX,p=a&&a[0].clientY||e.clientY,h=a&&a[0].pageX||e.pageX,v=a&&a[0].pageY||e.pageY,m="function"==typeof e.preventDefault?e.preventDefault.bind(e):Wt,y=e.timeStamp;function g(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:qt(e.identifier),get locationX(){return S(e.clientX)},get locationY(){return k(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:y}))}if(null!=a)r=g(a),o=g(e.touches);else{var b=[{force:c,identifier:d,get locationX(){return S(f)},get locationY(){return k(p)},pageX:h,pageY:v,target:e.target,timestamp:y}];r=b,o="mouseup"===l||"dragstart"===l?Vt:b}var w={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:Ut,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>i,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:s,shiftKey:u,changedTouches:r,force:c,identifier:d,get locationX(){return S(f)},get locationY(){return k(p)},pageX:h,pageY:v,target:e.target,timestamp:y,touches:o,type:l},persist:Wt,preventDefault:m,stopPropagation(){i=!0},target:e.target,timeStamp:y,touchHistory:t.touchHistory};function S(e){if(n=n||xt(w.currentTarget))return e-n.left}function k(e){if(n=n||xt(w.currentTarget))return e-n.top}return w}function Kt(e){return"touchstart"===e||"mousedown"===e}function $t(e){return"touchmove"===e||"mousemove"===e}function Gt(e){return"touchend"===e||"mouseup"===e||Xt(e)}function Xt(e){return"touchcancel"===e||"dragstart"===e}var Qt="__reactResponderId";function Jt(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function Zt(e){return null!=e?e[Qt]:null}function en(e){return e.timeStamp||e.timestamp}function tn(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function nn(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:en(e)})}function rn(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var on={},an=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],ln=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],sn={touchstart:an,mousedown:an,touchmove:ln,mousemove:ln,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},un={id:null,idPath:null,node:null},cn=new Map,dn=!1,fn=0,pn={id:null,node:null,idPath:null},hn=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if($t(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[tn(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=en(e),t.mostRecentTimeStamp=en(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+nn(e)+"\n","Touch Bank: "+rn(t))}(e,n));else if(Kt(e))t.changedTouches.forEach(e=>function(e,t){var n=tn(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=en(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=en(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=en(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:en(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:en(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:en(e)}}(e),t.mostRecentTimeStamp=en(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(Gt(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[tn(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=en(e),t.mostRecentTimeStamp=en(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+nn(e)+"\n","Touch Bank: "+rn(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,o=0;o<r.length;o++){var i=r[o];if(null!=i&&i.touchActive){n.indexOfSingleActiveTouch=o;break}}}get touchHistory(){return this._touchHistory}};function vn(e){pn=e}function mn(e){var t=cn.get(e);return null!=t?t:on}function yn(e){var t=e.type,n=e.target;if("touchstart"===t&&(dn=!0),("touchmove"===t||fn>1)&&(dn=!1),!("mousedown"===t&&dn||"mousemove"===t&&dn||"mousemove"===t&&fn<1))if(dn&&"mouseup"===t)0===fn&&(dn=!1);else{var r=Kt(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,o=e.ctrlKey,i=e.type,a=!1===t&&!1===o;return!!("touchstart"===i||"touchmove"===i||"mousedown"===i&&(0===n||1===r)&&a||"mousemove"===i&&1===r&&a)}(e),o=$t(t),i=Gt(t),a=function(e){return"scroll"===e}(t),l=function(e){return"select"===e||"selectionchange"===e}(t),s=Yt(e,hn);(r||o||i)&&(e.touches?fn=e.touches.length:r?fn=1:i&&(fn=0),hn.recordTouchTrack(t,s.nativeEvent));var u,c=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?Jt(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():Jt(e.target)}(e),o=0;o<r.length;o++){var i=r[o],a=Zt(i);null!=a&&(t.push(a),n.push(i))}return{idPath:t,nodePath:n}}(e),d=!1;if(r||o||a&&fn>0){var f=pn.idPath,p=c.idPath;if(null!=f&&null!=p){var h=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var o=e[0],i=0,a=t[0],l=0;n-r>0&&(o=e[i=n-r],n=r),r-n>0&&(a=t[l=r-n],r=n);for(var s=n;s--;){if(o===a)return o;o=e[i++],a=t[l++]}return null}(f,p);if(null!=h){var v=p.indexOf(h)+(h===pn.id?1:0);c={idPath:p.slice(v),nodePath:c.nodePath.slice(v)}}else c=null}null!=c&&(u=function(e,t,n){var r=sn[t.type];if(null!=r){for(var o=e.idPath,i=e.nodePath,a=r[0],l=r[1],s=r[2].bubbles,u=function(e,t,r){var i=mn(e)[r];if(null!=i&&(n.currentTarget=t,!0===i(n)))return{id:e,node:t,idPath:o.slice(o.indexOf(e))}},c=o.length-1;c>=0;c--){var d=u(o[c],i[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(s)for(var f=0;f<o.length;f++){var p=u(o[f],i[f],l);if(null!=p)return p;if(!0===n.isPropagationStopped())return}else{var h=o[0],v=i[0];if(t.target===v)return u(h,v,l)}}}(c,e,s),null!=u&&(function(e,t){var n=pn,r=n.id,o=n.node,i=t.id,a=t.node,l=mn(i),s=l.onResponderGrant,u=l.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=s&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",s(e)),vn(t);else{var c=mn(r),d=c.onResponderTerminate,f=c.onResponderTerminationRequest,p=!0;null!=f&&(e.currentTarget=o,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===f(e)&&(p=!1)),p?(null!=d&&(e.currentTarget=o,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=s&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",s(e)),vn(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(s,u),d=!0))}if(null!=pn.id&&null!=pn.node){var m=pn,y=m.id,g=m.node,b=mn(y),w=b.onResponderStart,S=b.onResponderMove,k=b.onResponderEnd,x=b.onResponderRelease,E=b.onResponderTerminate,C=b.onResponderTerminationRequest;if(s.bubbles=!1,s.cancelable=!1,s.currentTarget=g,r)null!=w&&(s.dispatchConfig.registrationName="onResponderStart",w(s));else if(o)null!=S&&(s.dispatchConfig.registrationName="onResponderMove",S(s));else{var _=Xt(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(g)&&e.relatedTarget!==g||a&&0===fn||a&&n.contains(g)&&n!==g||l&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,o=t.focusNode,i=r&&r.nodeType===window.Node.TEXT_NODE||o&&o.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&i):"select"===e.type;var t,n,r,o,i}(e),R=i&&!_&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(g,e.touches);if(i&&null!=k&&(s.dispatchConfig.registrationName="onResponderEnd",k(s)),R&&(null!=x&&(s.dispatchConfig.registrationName="onResponderRelease",x(s)),vn(un)),_){var O=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(d?O=!1:null!=C&&(s.dispatchConfig.registrationName="onResponderTerminationRequest",!1===C(s)&&(O=!1))),O&&(null!=E&&(s.dispatchConfig.registrationName="onResponderTerminate",E(s)),vn(un),dn=!1,fn=0)}}}}}var gn=["blur","scroll"],bn=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function wn(e){pn.id===e&&function(){var e=pn,t=e.id,n=e.node;if(null!=t&&null!=n){var r=mn(t).onResponderTerminate;if(null!=r){var o=Yt({},hn);o.currentTarget=n,r(o)}vn(un)}dn=!1,fn=0}(),cn.has(e)&&cn.delete(e)}var Sn={},kn=0;function xn(e,t){void 0===t&&(t=Sn);var r,o,i=(r=()=>kn++,null==(o=n.useRef(null)).current&&(o.current=r()),o.current),a=n.useRef(!1);n.useEffect(()=>(x&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",yn),bn.forEach(e=>{document.addEventListener(e,yn)}),gn.forEach(e=>{document.addEventListener(e,yn,!0)}),window.__reactResponderSystemActive=!0),()=>{wn(i)}),[i]),n.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,o=n.onMoveShouldSetResponderCapture,l=n.onScrollShouldSetResponder,s=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,f=n.onStartShouldSetResponderCapture,p=null!=r||null!=o||null!=l||null!=s||null!=u||null!=c||null!=d||null!=f,h=e.current;p?(function(e,t,n){!function(e,t){null!=e&&(e[Qt]=t)}(t,e),cn.set(e,n)}(i,h,t),a.current=!0):a.current&&(wn(i),a.current=!1)},[t,e,i]),n.useDebugValue({isResponder:e.current===pn.node}),n.useDebugValue(t)}const En=(0,n.createContext)(!1);var Cn=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],_n=Object.assign({},pt,ht,vt,mt,yt,gt,bt,wt,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),Rn=n.forwardRef((e,t)=>{var o=e.hrefAttrs,i=e.onLayout,a=e.onMoveShouldSetResponder,l=e.onMoveShouldSetResponderCapture,s=e.onResponderEnd,u=e.onResponderGrant,c=e.onResponderMove,d=e.onResponderReject,f=e.onResponderRelease,p=e.onResponderStart,h=e.onResponderTerminate,v=e.onResponderTerminationRequest,m=e.onScrollShouldSetResponder,y=e.onScrollShouldSetResponderCapture,g=e.onSelectionChangeShouldSetResponder,b=e.onSelectionChangeShouldSetResponderCapture,w=e.onStartShouldSetResponder,S=e.onStartShouldSetResponderCapture,k=r(e,Cn),x=n.useContext(En),E=n.useRef(null),C=dt().direction;Lt(E,i),xn(E,{onMoveShouldSetResponder:a,onMoveShouldSetResponderCapture:l,onResponderEnd:s,onResponderGrant:u,onResponderMove:c,onResponderReject:d,onResponderRelease:f,onResponderStart:p,onResponderTerminate:h,onResponderTerminationRequest:v,onScrollShouldSetResponder:m,onScrollShouldSetResponderCapture:y,onSelectionChangeShouldSetResponder:g,onSelectionChangeShouldSetResponderCapture:b,onStartShouldSetResponder:w,onStartShouldSetResponderCapture:S});var _="div",R=null!=e.lang?ut(e.lang):null,O=e.dir||R,P=O||C,T=(e=>St(e,_n))(k);if(T.dir=O,T.style=[On.view$raw,x&&On.inline,e.style],null!=e.href&&(_="a",null!=o)){var I=o.download,M=o.rel,D=o.target;null!=I&&(T.download=I),null!=M&&(T.rel=M),"string"==typeof D&&(T.target="_"!==D.charAt(0)?"_"+D:D)}var A=zt(E,Bt(T),t);return T.ref=A,ft(_,T,{writingDirection:P})});Rn.displayName="View";var On=$e.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const Pn=Rn,Tn={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}};var In=a(5338),Mn=a(1635);function Dn(){return"undefined"!=typeof process&&process.env?process.env:{}}var An=a(9456),Nn=a(2321);function Ln(e,t,n,r){var o,i=[e,t,n,r],a=(0,Nn.Qd)(e)?e.event:e;if(!a||!(0,Nn.Kg)(a))throw new Error("Event missing");var l=(0,Nn.Qd)(e)?null!==(o=e.properties)&&void 0!==o?o:{}:(0,Nn.Qd)(t)?t:{},s={};return(0,Nn.Tn)(n)||(s=null!=n?n:{}),(0,Nn.Qd)(e)&&!(0,Nn.Tn)(t)&&(s=null!=t?t:{}),[a,l,s,i.find(Nn.Tn)]}function jn(e,t,n,r,o){var i,a,l=null,s=null,u=[e,t,n,r,o],c=u.filter(Nn.Kg);1===c.length?(0,Nn.Kg)(u[1])?(s=u[1],l=null):(s=c[0],l=null):2===c.length&&("string"==typeof u[0]&&(l=u[0]),"string"==typeof u[1]&&(s=u[1]));var d=u.find(Nn.Tn),f=u.filter(Nn.Qd);return 1===f.length?(0,Nn.Qd)(u[2])?(a={},i=u[2]):(0,Nn.Qd)(u[3])?(i={},a=u[3]):(i=f[0],a={}):2===f.length&&(i=f[0],a=f[1]),[l,s,null!=i?i:i={},null!=a?a:a={},d]}var zn=function(e){return function(){for(var t,n,r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];for(var a={},l=["callback","options","traits","id"],s=0,u=o;s<u.length;s++){var c=u[s],d=l.pop();if("id"===d){if((0,Nn.Kg)(c)||(0,Nn.Et)(c)){a.id=c.toString();continue}if(null==c)continue;d=l.pop()}if("traits"!==d&&"options"!==d||null!=c&&!(0,Nn.Qd)(c)||(a[d]=c),(0,Nn.Tn)(c)){a.callback=c;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function Fn(e,t,n,r){(0,Nn.Et)(e)&&(e=e.toString()),(0,Nn.Et)(t)&&(t=t.toString());var o=[e,t,n,r],i=o.filter(Nn.Kg),a=i[0],l=void 0===a?e:a,s=i[1],u=void 0===s?null:s,c=o.filter(Nn.Qd)[0];return[l,u,void 0===c?{}:c,o.find(Nn.Tn)]}var Hn=a(7718),Bn=a(7977),Wn=a(6556);function Un(e,t,n,r){return(0,Mn.sH)(this,void 0,void 0,function(){var o,i;return(0,Mn.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),o=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return i=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:i=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,Wn.w_)(i,r.callback,(l=o,s=r.timeout,u=Date.now()-l,Math.max((null!=s?s:300)-u,0)))]:[3,6];case 5:i=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&i.flush(),[2,i]}var l,s,u})})}var Vn=a(2079),qn=a(6e3),Yn=function(e,t,n,r,o,i){return{__t:"bpc",c:t,p:r,u:e,s:n,t:o,r:i}},Kn=Object.keys(Yn("","","","","",""));var $n=function(e){var t,n,r=e.c,o=e.p,i=e.s,a=e.u,l=e.r,s=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):o,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,i):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:l,search:i,title:s,url:c}},Gn=function(){var e=document.querySelector("link[rel='canonical']");return Yn(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},Xn=function(e,t){void 0===t&&(t=$n(Gn()));var n,r,o,i=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,o=Object.keys(t),Object.assign.apply(Object,(0,Mn.fX)([{}],o.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,Mn.Cl)((0,Mn.Cl)((0,Mn.Cl)({},t),e.properties),e.name?{name:e.name}:{})),i.page=(0,Mn.Cl)((0,Mn.Cl)((0,Mn.Cl)({},t),n),i.page)},Qn=a(3172),Jn=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,Mn.C6)(t,e),t}(Error),Zn="is not a string",er="is not an object";var tr=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},nr=function(){function e(e){this.settings=new tr(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,Mn.Cl)({},n),integrations:(0,Mn.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,o){var i;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,Mn.Cl)({},n),options:(0,Mn.Cl)({},r),integrations:(0,Mn.Cl)({},o)};return null!==e&&(a.category=e,a.properties=null!==(i=a.properties)&&void 0!==i?i:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,o){this.settings.onEventMethodCall({type:"screen",options:r});var i={type:"screen",properties:(0,Mn.Cl)({},n),options:(0,Mn.Cl)({},r),integrations:(0,Mn.Cl)({},o)};return null!==e&&(i.category=e),null!==t&&(i.name=t),this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),i))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,Mn.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,Mn.Cl)({},n),integrations:(0,Mn.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:e,type:"alias",options:(0,Mn.Cl)({},n),integrations:(0,Mn.Cl)({},r)};return null!==t&&(o.previousId=t),void 0===e?this.normalize((0,Mn.Cl)((0,Mn.Cl)({},o),this.baseEvent())):this.normalize((0,Mn.Cl)((0,Mn.Cl)({},this.baseEvent()),o))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),o=null!==(t=e.context)&&void 0!==t?t:{},i={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,Qn.J)(i,t,e[t]):(0,Qn.J)(o,t,e[t]))}),[o,i]},e.prototype.normalize=function(e){var t,n,r,o,i=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,o;return(0,Mn.Cl)((0,Mn.Cl)({},t),((r={})[n]=Boolean(null===(o=e.integrations)||void 0===o?void 0:o[n]),r))},{});e.options=(r=e.options||{},o=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return o(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,Mn.Cl)((0,Mn.Cl)({},i),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],s=l[0],u=l[1],c=e.options,d=(0,Mn.Tt)(e,["options"]),f=(0,Mn.Cl)((0,Mn.Cl)((0,Mn.Cl)((0,Mn.Cl)({timestamp:new Date},d),{context:s,integrations:a}),u),{messageId:c.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(f),function(e){!function(e){if(!(0,Nn.t2)(e))throw new Jn("Event","is nil");if("object"!=typeof e)throw new Jn("Event",er)}(e),function(e){if(!(0,Nn.Kg)(e.type))throw new Jn(".type",Zn)}(e),function(e){if(!(0,Nn.Kg)(e.messageId))throw new Jn(".messageId",Zn)}(e),"track"===e.type&&(function(e){if(!(0,Nn.Kg)(e.event))throw new Jn(".event",Zn)}(e),function(e){if(!(0,Nn.Qd)(e.properties))throw new Jn(".properties",er)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,Nn.Qd)(e.traits))throw new Jn(".traits",er)}(e)}(f),f},e}(),rr=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,qn.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,Mn.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,o,i){var a=e.prototype.track.call(this,t,n,r,o);return Xn(a,i),a},t.prototype.page=function(t,n,r,o,i,a){var l=e.prototype.page.call(this,t,n,r,o,i);return Xn(l,a),l},t.prototype.screen=function(t,n,r,o,i,a){var l=e.prototype.screen.call(this,t,n,r,o,i);return Xn(l,a),l},t.prototype.identify=function(t,n,r,o,i){var a=e.prototype.identify.call(this,t,n,r,o);return Xn(a,i),a},t.prototype.group=function(t,n,r,o,i){var a=e.prototype.group.call(this,t,n,r,o);return Xn(a,i),a},t.prototype.alias=function(t,n,r,o,i){var a=e.prototype.alias.call(this,t,n,r,o);return Xn(a,i),a},t}(nr),or=function(e){return"addMiddleware"in e&&"destination"===e.type},ir=a(5881),ar=a(6115),lr=a(9952),sr=a(4980),ur=function(e){function t(t){var n,r,o,i=e.call(this)||this;return i.criticalTasks=(o=0,{done:function(){return n},run:function(e){var t,i=e();return"object"==typeof(t=i)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++o&&(n=new Promise(function(e){return r=e})),i.finally(function(){return 0===--o&&r()})),i}}),i.plugins=[],i.failedInitializations=[],i.flushing=!1,i.queue=t,i.queue.on(ar.g,function(){i.scheduleFlush(0)}),i}return(0,Mn.C6)(t,e),t.prototype.register=function(e,t,n){return(0,Mn.sH)(this,void 0,void 0,function(){var r,o,i=this;return(0,Mn.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){i.failedInitializations.push(t.name),i.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),i.plugins=i.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return o=a.sent(),r(o),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,Mn.sH)(this,void 0,void 0,function(){var r;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:o.sent(),o.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=o.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t;return(0,Mn.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t=this;return(0,Mn.YH)(this,function(n){return[2,new Promise(function(n){var r=function(o,i){o.isSame(e)&&(t.off("flush",r),n(o))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t=this;return(0,Mn.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o;return(0,Mn.YH)(this,function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),t=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=i.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw r=i.sent(),o=r,e.log("error","Failed to deliver",o),this.emit("delivery_failure",e,o),e.stats.increment("delivery_failed"),r;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof lr.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,Mn.sH)(this,void 0,void 0,function(){var e,t;return(0,Mn.YH)(this,function(n){switch(n.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,o;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var i=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(i=e[t])}),null!==(o=null!==(r=e[t.name])&&void 0!==r?r:i)&&void 0!==o?o:!1!==("Segment.io"===t.name||e.All)}),o=(t="type",n={},r.forEach(function(e){var r,o=void 0,i=e[t];void 0!==(o="string"!=typeof i?JSON.stringify(i):i)&&(n[o]=(0,Mn.fX)((0,Mn.fX)([],null!==(r=n[o])&&void 0!==r?r:[],!0),[e],!1))}),n),i=o.before,a=void 0===i?[]:i,l=o.enrichment,s=void 0===l?[]:l,u=o.destination,c=void 0===u?[]:u,d=o.after;return{before:a,enrichment:s,destinations:c,after:void 0===d?[]:d}},t.prototype.flushOne=function(e){var t,n;return(0,Mn.sH)(this,void 0,void 0,function(){var r,o,i,a,l,s,u,c,d,f,p,h,v,m;return(0,Mn.YH)(this,function(y){switch(y.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),o=r.before,i=r.enrichment,a=0,l=o,y.label=1;case 1:return a<l.length?(s=l[a],[4,(0,sr.D)(e,s)]):[3,4];case 2:(f=y.sent())instanceof lr.j&&(e=f),this.emit("message_enriched",e,s),y.label=3;case 3:return a++,[3,1];case 4:u=0,c=i,y.label=5;case 5:return u<c.length?(d=c[u],[4,(0,sr.C)(e,d)]):[3,8];case 6:(f=y.sent())instanceof lr.j&&(e=f),this.emit("message_enriched",e,d),y.label=7;case 7:return u++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),h=p.destinations,v=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=h.map(function(t){return(0,sr.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return y.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),m=v.map(function(t){return(0,sr.C)(e,t)}),[4,Promise.all(m)];case 10:return y.sent(),[2,e]}})})},t}(Vn.v),cr=function(e){function t(t){return e.call(this,"string"==typeof t?new ir.x(4,t):t)||this}return(0,Mn.C6)(t,e),t.prototype.flush=function(){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(t){return(0,Hn.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(ur);function dr(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var o=r[n];if("constructor"!==o){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o);i&&"function"==typeof i.value&&(e[o]=e[o].bind(e))}}return e}var fr={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},pr=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},hr=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var o=r[n];try{if(null!=(t=o.get(e)))return t}catch(t){pr(o,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){pr(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){pr(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),vr=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function mr(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(fr).includes(e)})}function yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}const gr=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=yr({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(r[l]=t.read(a,l),e===l)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",yr({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,yr({},this.attributes,t))},withConverter:function(t){return e(yr({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function br(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var o=t.length-2;o>=0;--o)r.push(t.slice(o).join("."));return r}(t),r=0;r<n.length;++r){var o="__tld__",i=n[r],a={domain:"."+i};try{if(gr.set(o,"1",a),gr.get(o))return gr.remove(o,a),i}catch(e){return}}}var wr=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,Mn.Cl)((0,Mn.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:br(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=gr.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?gr.set(e,t,this.opts()):null===t?gr.remove(e,this.opts()):gr.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return gr.remove(e,this.opts())},e}(),Sr=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function kr(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case fr.Cookie:return new wr(n);case fr.LocalStorage:return new Sr;case fr.Memory:return new vr;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function xr(e,t){return e.map(function(e){return t&&e===fr.Cookie?{name:e,settings:t}:e})}var Er={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Cr=function(){function e(e,t){void 0===e&&(e=Er);var n,r,o,i,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(Er.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,qn.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,Mn.Cl)((0,Mn.Cl)({},Er),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:Er.cookie.key,this.traitsKey=null!==(i=null===(o=e.localStorage)||void 0===o?void 0:o.key)&&void 0!==i?i:Er.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===fr.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==fr.Cookie});var l=this.legacyUserStore.get(Er.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),dr(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,Mn.Cl)((0,Mn.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[fr.LocalStorage,fr.Cookie,fr.Memory];return e.disable?new hr([]):e.persist?(void 0!==e.storage&&null!==e.storage&&mr(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==fr.LocalStorage})),n&&(r=r.filter(n)),new hr(kr(xr(r,t)))):new hr([new vr])},e.defaults=Er,e}(),_r={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},Rr=function(e){function t(t,n){void 0===t&&(t=_r);var r=e.call(this,(0,Mn.Cl)((0,Mn.Cl)({},_r),t),n)||this;return r.anonymousId=function(e){},dr(r),r}return(0,Mn.C6)(t,e),t}(Cr),Or=a(8167),Pr=a(2453),Tr=a(472),Ir=a(1298),Mr=function(e,t,n){n.getAndRemove(e).forEach(function(e){Br(t,e).catch(console.error)})},Dr=function(e,t){return(0,Mn.sH)(void 0,void 0,void 0,function(){var n,r,o;return(0,Mn.YH)(this,function(i){switch(i.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),i.label=1;case 1:return n<r.length?(o=r[n],[4,Br(e,o).catch(console.error)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},Ar=function(e,t){return(0,Mn.sH)(void 0,void 0,void 0,function(){var n,r,o;return(0,Mn.YH)(this,function(i){switch(i.label){case 0:n=0,r=t.getAndRemove("register"),i.label=1;case 1:return n<r.length?(o=r[n],[4,Br(e,o).catch(console.error)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},Nr=Mr.bind(void 0,"on"),Lr=Mr.bind(void 0,"setAnonymousId"),jr=function(e){if(zr(e)){var t=e.pop();return $n(t)}},zr=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!Kn.includes(n))return!1;return!0}(e[e.length-1])},Fr=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},Hr=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!zr(t.args)&&(t.args=(0,Mn.fX)((0,Mn.fX)([],t.args,!0),[Gn()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,Ir.X)()){var e=(0,Tr.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new Fr(t,n)});this.add.apply(this,t)}}},e}();function Br(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){var n,r;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(i=n=e[t.method].apply(e,t.args))&&null!==i&&"then"in i&&"function"==typeof i.then?[4,n]:[3,2]);case 1:o.sent(),o.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=o.sent(),t.reject(r),[3,4];case 4:return[2]}var i})})}var Wr=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=Or.r,this._preInitBuffer=new Hr,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.instance){var i=(n=t.instance)[e].apply(n,r);return Promise.resolve(i)}return new Promise(function(n,o){t._preInitBuffer.add(new Fr(e,r,n,o))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new Fr(e,r)),t)}},e}(),Ur=a(5791),Vr=a(524),qr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.retryTimeout=n,r.name="RateLimitError",r}return(0,Mn.C6)(t,e),t}(Error),Yr=function(e){return(0,Mn.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)};function Kr(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function $r(e,t,n,r,o){var i,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=o&&(o.attempts>1&&(t._metadata=(0,Mn.Cl)((0,Mn.Cl)({},t._metadata),{retryCount:o.attempts})),o.attempts++);var s=[],u=[];for(var c in r){var d=r[c];"Segment.io"===c&&s.push(c),"bundled"===d.bundlingStatus&&s.push(c),"unbundled"===d.bundlingStatus&&u.push(c)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var h=p[f];u.includes(h)||u.push(h)}var v=null!==(i=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==i?i:{},m=[];return s.sort().forEach(function(e){var t;(null!==(t=v[e])&&void 0!==t?t:[]).forEach(function(e){m.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,Mn.Cl)((0,Mn.Cl)({},t._metadata),{bundled:s.sort(),unbundled:u.sort(),bundledIds:m})),t}var Gr=a(2613);function Xr(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){var n,r=this;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return n=[],(0,Hn.a)()?[2,t]:[4,(0,Gr._)(function(){return t.length>0&&!(0,Hn.a)()},function(){return(0,Mn.sH)(r,void 0,void 0,function(){var r;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return(r=t.pop())?[4,(0,sr.C)(r,e)]:[2];case 1:return o.sent()instanceof Bn.o||n.push(r),[2]}})})})];case 1:return o.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function Qr(e,t,n,r){var o=this;e||setTimeout(function(){return(0,Mn.sH)(o,void 0,void 0,function(){var e,o;return(0,Mn.YH)(this,function(i){switch(i.label){case 0:return e=!0,[4,Xr(n,t)];case 1:return o=i.sent(),e=!1,t.todo>0&&r(e,o,n,r),[2]}})})},5e3*Math.random())}var Jr=a(7947),Zr=function(e){return"Segment.io"===e.name};function eo(e,t,n){var r,o,i;window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(u)),u.clear()});var a,l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",s=e.options.disableClientPersistence?new ar.M(e.queue.queue.maxAttempts,[]):new ir.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),u=new Set,c=!1,d=null!==(o=null==t?void 0:t.apiHost)&&void 0!==o?o:Jr.a,f=null!==(i=null==t?void 0:t.protocol)&&void 0!==i?i:"https",p="".concat(f,"://").concat(d),h=null==t?void 0:t.deliveryStrategy,v=h&&"strategy"in h&&"batching"===h.strategy?function(e,t){var n,r,o,i,a,l=[],s=!1,u=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,c=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3,d=0;function f(n){var r;if(0!==n.length){var o=null===(r=n[0])||void 0===r?void 0:r.writeKey,i=n.map(function(e){var t=e;return t.sentAt,(0,Mn.Tt)(t,["sentAt"])});return(0,Vr.h)("https://".concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||s,headers:Yr(null==t?void 0:t.headers),method:"post",body:JSON.stringify({writeKey:o,batch:i,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t;if(e.status>=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):c;throw new qr("Rate limit exceeded: ".concat(e.status),r)}})}}function p(e){var n;return void 0===e&&(e=1),(0,Mn.sH)(this,void 0,void 0,function(){var r;return(0,Mn.YH)(this,function(o){return l.length?(r=l,l=[],[2,null===(n=f(r))||void 0===n?void 0:n.catch(function(n){var o;Bn.o.system().log("error","Error sending batch",n),e<=(null!==(o=null==t?void 0:t.maxRetries)&&void 0!==o?o:10)&&("RateLimitError"===n.name&&(d=n.retryTimeout),l.push.apply(l,r),l.map(function(t){if("_metadata"in t){var n=t;n._metadata=(0,Mn.Cl)((0,Mn.Cl)({},n._metadata),{retryCount:e})}}),h(e+1))})]):[2]})})}function h(e){void 0===e&&(e=1),o||(o=setTimeout(function(){o=void 0,p(e).catch(console.error)},d||c),d=0)}return i=function(e){if((s=e)&&l.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Kr(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(l).map(f);Promise.all(t).catch(console.error)}},a=!1,window.addEventListener("pagehide",function(){a||i(a=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(a)return;a=!0}else a=!1;i(a)}),{dispatch:function(e,n){return(0,Mn.sH)(this,void 0,void 0,function(){var e;return(0,Mn.YH)(this,function(r){return l.push(n),e=l.length>=u||function(e){return Kr(e)>=450}(l)||(null==t?void 0:t.keepalive)&&function(e){return Kr(e)>=54}(l),[2,e||s?p():h()]})})}}}(d,h.config):(a=null==h?void 0:h.config,{dispatch:function(e,t){return(0,Vr.h)(e,{credentials:null==a?void 0:a.credentials,keepalive:null==a?void 0:a.keepalive,headers:Yr(null==a?void 0:a.headers),method:"post",body:JSON.stringify(t),priority:null==a?void 0:a.priority}).then(function(e){var t;if(e.status>=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new qr("Rate limit exceeded: ".concat(e.status),r)}})}});function m(r){return(0,Mn.sH)(this,void 0,void 0,function(){var o,i;return(0,Mn.YH)(this,function(a){return(0,Hn.a)()?(s.push(r),Qr(c,s,y,Qr),[2,r]):(u.add(r),o=r.event.type.charAt(0),i=(0,Ur.W)(r.event).json(),"track"===r.event.type&&delete i.traits,"alias"===r.event.type&&(i=function(e,t){var n,r,o,i,a=e.user();return t.previousId=null!==(o=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==o?o:a.anonymousId(),t.userId=null!==(i=t.userId)&&void 0!==i?i:t.to,delete t.from,delete t.to,t}(e,i)),s.getAttempts(r)>=s.maxAttempts?(u.delete(r),[2,r]):[2,v.dispatch("".concat(p,"/").concat(o),$r(e,i,t,n,r)).then(function(){return r}).catch(function(e){if(r.log("error","Error sending event",e),"RateLimitError"===e.name){var t=e.retryTimeout;s.pushWithBackoff(r,t)}else s.pushWithBackoff(r);return Qr(c,s,y,Qr),r}).finally(function(){u.delete(r)})])})})}var y={metadata:{writeKey:l,apiHost:d,protocol:f},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:m,identify:m,page:m,alias:m,group:m,screen:m};return s.todo&&Qr(c,s,y,Qr),y}var to="This is being deprecated and will be not be available in future releases of Analytics JS",no=(0,Pr.m)(),ro=null==no?void 0:no.analytics,oo=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Zr))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function io(){console.warn(to)}var ao,lo=function(e){function t(t,n,r,o,i){var a,l,s=this;(s=e.call(this)||this)._debug=!1,s.initialized=!1,s.user=function(){return s._user},s.init=s.initialize.bind(s),s.log=io,s.addIntegrationMiddleware=io,s.listeners=io,s.addEventListener=io,s.removeAllListeners=io,s.removeListener=io,s.removeEventListener=io,s.hasListeners=io,s.add=io,s.addIntegration=io;var u=null==n?void 0:n.cookie,c=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;s.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,o=n?new ar.M(r,[]):new ir.x(r,e);return new cr(o)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,c),s.settings=new oo(t,s.queue);var d=null==n?void 0:n.storage;return s._universalStorage=s.createStore(c,d,u),s._user=null!=o?o:new Cr((0,Mn.Cl)({persist:!c,storage:null==n?void 0:n.storage},null==n?void 0:n.user),u).load(),s._group=null!=i?i:new Rr((0,Mn.Cl)({persist:!c,storage:null==n?void 0:n.storage},null==n?void 0:n.group),u).load(),s.eventFactory=new rr(s._user),s.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},s.options=null!=n?n:{},dr(s),s}return(0,Mn.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new hr([new vr]):t&&mr(t)?new hr(kr(xr(t.stores,n))):new hr(kr([fr.LocalStorage,{name:fr.Cookie,settings:n},fr.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,l,s=this;return(0,Mn.YH)(this,function(u){return t=jr(e),n=Ln.apply(void 0,e),r=n[0],o=n[1],i=n[2],a=n[3],l=this.eventFactory.track(r,o,i,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return s.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,l,s,u=this;return(0,Mn.YH)(this,function(c){return t=jr(e),n=jn.apply(void 0,e),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=this.eventFactory.page(r,o,i,a,this.integrations,t),[2,this._dispatch(s,l).then(function(e){return u.emit("page",r,o,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,l,s=this;return(0,Mn.YH)(this,function(u){return t=jr(e),n=zn(this._user).apply(void 0,e),r=n[0],o=n[1],i=n[2],a=n[3],this._user.identify(r,o),l=this.eventFactory.identify(this._user.id(),this._user.traits(),i,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return s.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=jr(t);if(0===t.length)return this._group;var o=zn(this._group).apply(void 0,t),i=o[0],a=o[1],l=o[2],s=o[3];this._group.identify(i,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,l,this.integrations,r);return this._dispatch(d,s).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,l,s=this;return(0,Mn.YH)(this,function(u){return t=jr(e),n=Fn.apply(void 0,e),r=n[0],o=n[1],i=n[2],a=n[3],l=this.eventFactory.alias(r,o,i,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return s.emit("alias",r,o,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r,o,i,a,l,s,u=this;return(0,Mn.YH)(this,function(c){return t=jr(e),n=jn.apply(void 0,e),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=this.eventFactory.screen(r,o,i,a,this.integrations,t),[2,this._dispatch(s,l).then(function(e){return u.emit("screen",r,o,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n;return(0,Mn.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,Mn.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n;return(0,Mn.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,Mn.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n;return(0,Mn.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,Mn.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n;return(0,Mn.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,Mn.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return t=Bn.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return o.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Mn.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return t=Bn.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return o.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){var n;return(0,Mn.YH)(this,function(r){return(n=new Bn.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,Hn.a)()&&!this.options.retryQueue?[2,n]:[2,Un(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t=this;return(0,Mn.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,Mn.sH)(t,void 0,void 0,function(){var t,n,r;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=o.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return o.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(or).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(to),(0,Tr.Ud)(null!=ro?ro:this),this},t.prototype.normalize=function(e){return console.warn(to),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(to),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return Or.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(e){return console.warn(to),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(t){switch(t.label){case 0:return console.warn(to),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(to),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(to),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var o=r.Integration;return o?(e[t.name]=o,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(Vn.v),so=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,Mn.C6)(t,e),t}(lo),uo=a(1094),co=a(6251),fo=a(5770);function po(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t;return(0,Mn.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function ho(){if(ao)return ao;var e=br(window.location.href);return ao={expires:31536e6,secure:!1,path:"/"},e&&(ao.domain=e),ao}var vo,mo,yo=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,Mn.sH)(e,void 0,void 0,function(){var e;return(0,Mn.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,po(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,o=t.event.context,i=o.page.search||"",a="object"==typeof i?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(i):i;o.userAgent=navigator.userAgent,o.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===o.locale&&void 0!==l&&(o.locale=l),null!==(n=o.library)&&void 0!==n||(o.library={name:"analytics.js",version:"".concat("web"===(0,Ir.X)()?"next":"npm:next","-").concat(Or.r)}),a&&!o.campaign&&(o.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],o=n[1],i=void 0===o?"":o;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,fo.p)(i)}return e},{})}(a));var s=function(){var e=gr.get("_ga");if(e&&e.startsWith("amp"))return e}();s&&(o.amp={id:s}),function(e,t,n){var r,o=new hr(n?[]:[new wr(ho())]),i=o.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var o=r[n].split("="),i=o[0],a=o[1];if(t[i])return{id:a,type:t[i]}}}(e))&&void 0!==r?r:i;a&&(t&&(t.referrer=(0,Mn.Cl)((0,Mn.Cl)({},t.referrer),a)),o.set("s:context.referrer",a))}(a,o,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},go=a(3357),bo=a(5939),wo=a(4757),So=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,co.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,Mn.sH)(this,void 0,void 0,function(){var t;return(0,Mn.YH)(this,function(n){switch(n.label){case 0:return[4,(0,bo.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new lr.d({retry:!1,reason:"dropped by destination middleware"})),[2,new Bn.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,Mn.sH)(t,void 0,void 0,function(){var t,r;return(0,Mn.YH)(this,function(o){switch(o.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=o.sent(),o.label=2;case 2:return o.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!o.sent())throw new Error("Something prevented the destination from getting ready");return(0,wo.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return o.sent(),[3,6];case 5:throw r=o.sent(),(0,wo.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){var n,r,o,i;return(0,Mn.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,wo.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),o=(r=this.loadPromise).resolve,[4,n];case 2:return o.apply(r,[a.sent()]),[2,n];case 3:throw i=a.sent(),(0,wo.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(i),i;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function ko(e,t){return(0,Mn.sH)(this,void 0,void 0,function(){var n,r,o,i,a,l;return(0,Mn.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,An.I2)(),!t)return[3,6];o=e.url.split("/"),i=o[o.length-2],a=e.url.replace(i,btoa(i).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,go.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,go.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,go.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function xo(e,t,n,r,o,i){var a,l,s;return(0,Mn.sH)(this,void 0,void 0,function(){var u,c,d,f=this;return(0,Mn.YH)(this,function(p){switch(p.label){case 0:return u=[],c=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],d=(null!==(s=e.remotePlugins)&&void 0!==s?s:[]).map(function(e){return(0,Mn.sH)(f,void 0,void 0,function(){var a,l,s,d,f,p,h;return(0,Mn.YH)(this,function(v){switch(v.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];v.label=1;case 1:return v.trys.push([1,6,,7]),(l=null==i?void 0:i.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,ko(e,null==r?void 0:r.obfuscate)];case 2:l=v.sent(),v.label=3;case 3:return(a=l)?(s=n[e.name],[4,a((0,Mn.Cl)((0,Mn.Cl)({},e.settings),s))]):[3,5];case 4:d=v.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(d)?d:[d]),p=c.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new So(e.creationName,t);p.length&&o&&n.addMiddleware(o),u.push(n)}),v.label=5;case 5:return[3,7];case 6:return h=v.sent(),console.warn("Failed to load Remote Plugin",h),[3,7];case 7:return[2]}})})}),[4,Promise.all(d)];case 1:return p.sent(),[2,u.filter(Boolean)]}})})}var Eo=null!==(vo=(mo=(0,Pr.m)()).__SEGMENT_INSPECTOR__)&&void 0!==vo?vo:mo.__SEGMENT_INSPECTOR__={},Co=a(4568);function _o(e,t,n){return(0,Mn.sH)(this,void 0,void 0,function(){return(0,Mn.YH)(this,function(r){switch(r.label){case 0:return[4,Ro(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){Br(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var Ro=function(e,t){return(0,Mn.sH)(void 0,void 0,void 0,function(){return(0,Mn.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function Oo(e,t,n,r,o,i,l){var s,u,c;return void 0===o&&(o=[]),(0,Mn.sH)(this,void 0,void 0,function(){var d,f,p,h,v,m,y,g,b,w,S,k,x,E,C=this;return(0,Mn.YH)(this,function(_){switch(_.label){case 0:return function(e,t){Lr(e,t),Nr(e,t)}(n,l),d=null==o?void 0:o.filter(function(e){return"object"==typeof e}),f=null==o?void 0:o.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==Dn().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return h=_.sent(),[3,3];case 2:h=void 0,_.label=3;case 3:return p=h,R=t,"test"!==Dn().NODE_ENV&&Object.keys(R.integrations).length>1||i.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(o){return o.ajsDestinations(e,t,n.integrations,r,p,i)})]:[3,5];case 4:return m=_.sent(),[3,6];case 5:m=[],_.label=6;case 6:return v=m,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:_.sent(),_.label=8;case 8:return(null===(s=r.plan)||void 0===s?void 0:s.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return g=_.sent(),[3,11];case 10:g=void 0,_.label=11;case 11:return y=g,b=(0,uo.J)(t,r),[4,xo(t,n.integrations,b,r,p,f).catch(function(){return[]})];case 12:return w=_.sent(),S=(0,Mn.fX)((0,Mn.fX)([yo],v,!0),w,!0),y&&S.push(y),!1===(null===(u=r.integrations)||void 0===u?void 0:u.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(x=(k=S).push,[4,eo(n,b["Segment.io"],t.integrations)]);case 13:x.apply(k,[_.sent()]),_.label=14;case 14:return[4,n.register.apply(n,(0,Mn.fX)((0,Mn.fX)([],S,!1),d,!1))];case 15:return E=_.sent(),[4,Ar(n,l)];case 16:return _.sent(),Object.entries(null!==(c=t.enabledMiddleware)&&void 0!==c?c:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var o=e.remoteMiddlewares;return(0,Mn.sH)(C,void 0,void 0,function(){var e,i;return(0,Mn.YH)(this,function(a){switch(a.label){case 0:return[4,o(E,t,r.obfuscate)];case 1:return e=a.sent(),i=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(i)]}})})})]:[3,18];case 17:_.sent(),_.label=18;case 18:return[4,Dr(n,l)];case 19:return _.sent(),[2,E]}var R})})}var Po=function(e){function t(){var t=this,n=(0,co.u)(),r=n.promise,o=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,o,i,a,l,s,u,c,d;return void 0===t&&(t={}),(0,Mn.sH)(this,void 0,void 0,function(){var f,p,h,v,m,y,g,b,w,S;return(0,Mn.YH)(this,function(k){switch(k.label){case 0:return!0===t.disable?[2,[new so,Bn.o.system()]]:(t.globalAnalyticsKey&&(0,Tr.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,An.qQ)(e.cdnURL),t.initialPageview&&n.add(new Fr("page",[])),f=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),p=null!==(r=e.cdnURL)&&void 0!==r?r:(0,An.I2)(),null===(o=e.cdnSettings)||void 0===o?[3,1]:(v=o,[3,3]));case 1:return[4,(x=e.writeKey,E=p,(0,Vr.h)("".concat(E,"/v1/projects/").concat(x,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:v=k.sent(),k.label=3;case 3:return h=v,t.updateCDNSettings&&(h=t.updateCDNSettings(h)),"function"!=typeof t.disable?[3,5]:[4,t.disable(h)];case 4:if(k.sent())return[2,[new so,Bn.o.system()]];k.label=5;case 5:return m=null===(a=null===(i=h.integrations["Segment.io"])||void 0===i?void 0:i.retryQueue)||void 0===a||a,t=(0,Mn.Cl)({retryQueue:m},t),function(e){var t;null===(t=Eo.attach)||void 0===t||t.call(Eo,e)}(y=new lo((0,Mn.Cl)((0,Mn.Cl)({},e),{cdnSettings:h,cdnURL:p}),t)),g=null!==(l=e.plugins)&&void 0!==l?l:[],b=null!==(s=e.classicIntegrations)&&void 0!==s?s:[],w=null===(u=t.integrations)||void 0===u?void 0:u["Segment.io"],Co.U.initRemoteMetrics((0,Mn.Cl)((0,Mn.Cl)({},h.metrics),{host:null!==(c=null==w?void 0:w.apiHost)&&void 0!==c?c:null===(d=h.metrics)||void 0===d?void 0:d.host,protocol:null==w?void 0:w.protocol})),[4,Oo(e.writeKey,h,y,t,g,b,n)];case 6:return S=k.sent(),y.initialized=!0,y.emit("initialize",e,t),[4,_o(y,f,n)];case 7:return k.sent(),[2,[y,S]]}var x,E})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return o([e,t])},t}return(0,Mn.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(Wr);const To=(0,n.createContext)(void 0),Io=e=>{let{client:t,children:r}=e;return n.createElement(To.Provider,{value:t},r)};function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}var Do=["behavior","contentContainerStyle","keyboardVerticalOffset"];class Ao extends n.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,r(e,Do));return n.createElement(Pn,Mo({onLayout:this.onLayout},t))}}const No=Ao;var Lo=a(646),jo=a.n(Lo),zo={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},Fo={},Ho=x;function Bo(){if(x){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var o=n.document.documentElement;e=o.clientHeight,t=o.clientWidth}zo.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},zo.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function Wo(){Bo(),Array.isArray(Fo.change)&&Fo.change.forEach(e=>e(zo))}class Uo{static get(e){return Ho&&(Ho=!1,Bo()),jo()(zo[e],"No dimension set for key "+e),zo[e]}static set(e){e&&(x?jo()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(zo.screen=e.screen),null!=e.window&&(zo.window=e.window)))}static addEventListener(e,t){return Fo[e]=Fo[e]||[],Fo[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(Fo[e])&&(Fo[e]=Fo[e].filter(e=>e!==t))}}x&&(window.visualViewport?window.visualViewport.addEventListener("resize",Wo,!1):window.addEventListener("resize",Wo,!1));const Vo={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&Dt.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&Dt.blur(e))}};var qo=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function Yo(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var Ko=n.forwardRef((e,t)=>{var o=e.onScroll,i=e.onTouchMove,a=e.onWheel,l=e.scrollEnabled,s=void 0===l||l,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,p=e.style,h=r(e,qo),v=n.useRef({isScrolling:!1,scrollLastTick:0}),m=n.useRef(null),y=n.useRef(null);function g(e){return t=>{s&&e&&e(t)}}function b(e){v.current.scrollLastTick=Date.now(),o&&o(Yo(e))}var w=!1===d||!1===f;return n.createElement(Pn,Mo({},h,{onScroll:function(e){var t,n,r;e.stopPropagation(),e.target===y.current&&(e.persist(),null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{!function(e){v.current.isScrolling=!1,o&&o(Yo(e))}(e)},100),v.current.isScrolling?(t=v.current.scrollLastTick,n=c,r=Date.now()-t,n>0&&r>=n&&b(e)):function(e){v.current.isScrolling=!0,b(e)}(e))},onTouchMove:g(i),onWheel:g(a),ref:zt(y,t),style:[p,!s&&$o.scrollDisabled,w&&$o.hideScrollbar]}))}),$o=$e.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const Go=Ko;var Xo=a(4594),Qo=a.n(Xo),Jo=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],Zo={};class ei extends n.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=Vo.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),Vo.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Zo;e=r.x,t=r.y,n=r.animated}var o=this.getScrollableNode(),i=e||0,a=t||0;null!=o&&("function"==typeof o.scroll?o.scroll({top:a,left:i,behavior:n?"smooth":"auto"}):(o.scrollLeft=i,o.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==Tn.OS&&jo()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,Dt.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var o=Uo.get("window").height;this.keyboardWillOpenTo&&(o=this.keyboardWillOpenTo.endCoordinates.screenY);var i=t-o+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(i=Math.max(0,i)),this.scrollResponderScrollTo({x:0,y:i,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||Zo;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),o=n?r.scrollWidth:0,i=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:o,y:i,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&Vo.blurTextInput(Vo.currentlyFocusedField()),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),jt(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){Qo()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,o=e.horizontal,i=e.onContentSizeChange,a=e.refreshControl,l=e.stickyHeaderIndices,s=e.pagingEnabled,u=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),c=r(e,Jo),d={};i&&(d={onLayout:this._handleContentOnLayout});var f=!o&&Array.isArray(l),p=f||s?n.Children.map(this.props.children,(e,t)=>{var r=f&&l.indexOf(t)>-1;return null!=e&&(r||s)?n.createElement(Pn,{style:[r&&ni.stickyHeader,s&&ni.pagingEnabledChild]},e):e}):this.props.children,v=n.createElement(Pn,Mo({},d,{children:p,collapsable:!1,ref:this._setInnerViewRef,style:[o&&ni.contentContainerHorizontal,u&&ni.contentContainerCenterContent,t]})),m=o?ni.baseHorizontal:ni.baseVertical,y=o?ni.pagingEnabledHorizontal:ni.pagingEnabledVertical,g=h(h({},c),{},{style:[m,s&&y,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),b=Go;jo()(void 0!==b,"ScrollViewClass must not be undefined");var w=n.createElement(b,Mo({},g,{ref:this._setScrollNodeRef}),v);return a?n.cloneElement(a,{style:g.style},w):w}}var ti={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},ni=$e.create({baseVertical:h(h({},ti),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:h(h({},ti),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),ri=n.forwardRef((e,t)=>n.createElement(ei,Mo({},e,{forwardedRef:t})));ri.displayName="ScrollView";const oi=ri;var ii=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],ai=Object.assign({},pt,ht,vt,mt,yt,gt,bt,wt,{href:!0,lang:!0,pointerEvents:!0}),li=n.forwardRef((e,t)=>{var o=e.hrefAttrs,i=e.numberOfLines,a=e.onClick,l=e.onLayout,s=e.onPress,u=e.onMoveShouldSetResponder,c=e.onMoveShouldSetResponderCapture,d=e.onResponderEnd,f=e.onResponderGrant,p=e.onResponderMove,h=e.onResponderReject,v=e.onResponderRelease,m=e.onResponderStart,y=e.onResponderTerminate,g=e.onResponderTerminationRequest,b=e.onScrollShouldSetResponder,w=e.onScrollShouldSetResponderCapture,S=e.onSelectionChangeShouldSetResponder,k=e.onSelectionChangeShouldSetResponderCapture,x=e.onStartShouldSetResponder,E=e.onStartShouldSetResponderCapture,C=e.selectable,_=r(e,ii),R=n.useContext(En),O=n.useRef(null),P=dt().direction;Lt(O,l),xn(O,{onMoveShouldSetResponder:u,onMoveShouldSetResponderCapture:c,onResponderEnd:d,onResponderGrant:f,onResponderMove:p,onResponderReject:h,onResponderRelease:v,onResponderStart:m,onResponderTerminate:y,onResponderTerminationRequest:g,onScrollShouldSetResponder:b,onScrollShouldSetResponderCapture:w,onSelectionChangeShouldSetResponder:S,onSelectionChangeShouldSetResponderCapture:k,onStartShouldSetResponder:x,onStartShouldSetResponderCapture:E});var T=n.useCallback(e=>{null!=a?a(e):null!=s&&(e.stopPropagation(),s(e))},[a,s]),I=R?"span":"div",M=null!=e.lang?ut(e.lang):null,D=e.dir||M,A=D||P,N=(e=>St(e,ai))(_);if(N.dir=D,R||(N.dir=null!=D?D:"auto"),(a||s)&&(N.onClick=T),N.style=[null!=i&&i>1&&{WebkitLineClamp:i},!0===R?ui.textHasAncestor$raw:ui.text$raw,1===i&&ui.textOneLine,null!=i&&i>1&&ui.textMultiLine,e.style,!0===C&&ui.selectable,!1===C&&ui.notSelectable,s&&ui.pressable],null!=e.href&&(I="a",null!=o)){var L=o.download,j=o.rel,z=o.target;null!=L&&(N.download=L),null!=j&&(N.rel=j),"string"==typeof z&&(N.target="_"!==z.charAt(0)?"_"+z:z)}var F=zt(O,Bt(N),t);N.ref=F;var H=ft(I,N,{writingDirection:A});return R?H:n.createElement(En.Provider,{value:!0},H)});li.displayName="Text";var si={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},ui=$e.create({text$raw:si,textHasAncestor$raw:h(h({},si),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const ci=li;var di=[];function fi(e){return di[e-1]}var pi=/^data:/;class hi{static has(e){var t=hi._entries;return pi.test(e)||Boolean(t[e])}static add(e){var t=hi._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=hi._entries;t[e]&&(t[e].refCount-=1),hi._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=hi._entries,r=Object.keys(n);r.length+1>hi._maximumEntries&&(r.forEach(r=>{var o=n[r];(!t||o.lastUsedTimestamp<t.lastUsedTimestamp)&&0===o.refCount&&(e=r,t=o)}),e&&delete n[e])}}hi._maximumEntries=256,hi._entries={};var vi=0,mi={},yi={abort(e){var t=mi[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete mi[""+e])},getSize(e,t,n){var r=!1,o=setInterval(a,16),i=yi.load(e,a,function(){"function"==typeof n&&n(),yi.abort(i),clearInterval(o)});function a(){var e=mi[""+i];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(yi.abort(i),clearInterval(o))}},has:e=>hi.has(e),load(e,t,n){vi+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,mi[""+vi]=r,vi},prefetch:e=>new Promise((t,n)=>{yi.load(e,()=>{hi.add(e),hi.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{hi.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const gi=yi;class bi{static get(){return Uo.get("window").scale}static getFontScale(){return Uo.get("window").fontScale||bi.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*bi.get())}static roundToNearestPixel(e){var t=bi.get();return Math.round(e*t)/t}}var wi=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],Si="LOADED",ki="LOADING",xi=0,Ei=/^(data:image\/svg\+xml;utf8,)(.*)/;function Ci(e){var t=null;if("number"==typeof e){var n=fi(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var o=bi.get();r=n.scales.reduce((e,t)=>Math.abs(t-o)<Math.abs(e-o)?t:e)}var i=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+i+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(Ei);if(a){var l=a[1],s=a[2];return""+l+encodeURIComponent(s)}}return t}var _i=n.forwardRef((e,t)=>{var o=e["aria-label"],i=e.accessibilityLabel,a=e.blurRadius,l=e.defaultSource,s=e.draggable,u=e.onError,c=e.onLayout,d=e.onLoad,f=e.onLoadEnd,p=e.onLoadStart,h=e.pointerEvents,v=e.source,m=e.style,y=r(e,wi),g=o||i,b=n.useState(()=>{var e=Ci(v);return null!=e&&gi.has(e)?Si:"IDLE"}),w=b[0],S=b[1],k=n.useState({}),x=k[0],E=k[1],C=n.useContext(En),_=n.useRef(null),R=n.useRef(xi++),O=n.useRef(null),P=w===Si||w===ki&&null==l,T=function(e,t,n,r){var o=$e.flatten(e),i=o.filter,a=o.resizeMode,l=o.shadowOffset,s=o.tintColor;o.resizeMode,o.tintColor;var u=[],c=null;if(i&&u.push(i),t&&u.push("blur("+t+"px)"),l){var d=Me(o);d&&u.push("drop-shadow("+d+")")}return(r||s)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(c=u.join(" ")),[a,c,s]}(m,a,R.current,e.tintColor),I=T[0],M=T[1],D=T[2],A=e.resizeMode||I||"cover",N=e.tintColor||D,L=P?v:l,j=Ci(L),z=function(e){if("number"==typeof e){var t=fi(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(L),F=j?'url("'+j+'")':null,H=function(){if(null!=_.current&&("center"===A||"repeat"===A)){var e=_.current,t=e.naturalHeight,n=e.naturalWidth,r=x.height,o=x.width;if(t&&n&&r&&o){var i=Math.min(1,o/n,r/t);return Math.ceil(i*n)+"px "+Math.ceil(i*t)+"px"}}}(),B=j?ft("img",{alt:g||"",style:Oi.accessibilityImage$raw,draggable:s||!1,ref:_,src:j}):null,W=Ci(v);return n.useEffect(()=>{function e(){null!=O.current&&(gi.abort(O.current),O.current=null)}return e(),null!=W&&(S(ki),p&&p(),O.current=gi.load(W,function(e){S(Si),d&&d(e),f&&f()},function(){S("ERRORED"),u&&u({nativeEvent:{error:"Failed to load resource "+W}}),f&&f()})),e},[W,O,S,u,d,f,p]),n.createElement(Pn,Mo({},y,{"aria-label":g,onLayout:function(e){if("center"===A||"repeat"===A||c){var t=e.nativeEvent.layout;c&&c(e),E(t)}},pointerEvents:h,ref:t,style:[Oi.root,C&&Oi.inline,z,m,Oi.undo,{boxShadow:null}]}),n.createElement(Pn,{style:[Oi.image,Pi[A],{backgroundImage:F,filter:M},null!=H&&{backgroundSize:H}],suppressHydrationWarning:!0}),B,function(e,t){return e&&null!=t?n.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},n.createElement("defs",null,n.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},n.createElement("feFlood",{floodColor:""+e,key:e}),n.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(N,R.current))});_i.displayName="Image";var Ri=_i;Ri.getSize=function(e,t,n){gi.getSize(e,t,n)},Ri.prefetch=function(e){return gi.prefetch(e)},Ri.queryCache=function(e){return gi.queryCache(e)};var Oi=$e.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:h(h({},$e.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:h(h({},$e.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),Pi=$e.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const Ti=Ri;var Ii=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,o=t.start,i=t.end;return o!==r||i!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},Mi=Object.assign({},pt,ht,vt,mt,yt,gt,bt,wt,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),Di=null,Ai=n.forwardRef((e,t)=>{var r,o,i=e.autoCapitalize,a=void 0===i?"sentences":i,l=e.autoComplete,s=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,f=e.caretHidden,p=e.clearTextOnFocus,h=e.dir,v=e.editable,m=e.enterKeyHint,y=e.inputMode,g=e.keyboardType,b=e.multiline,w=void 0!==b&&b,S=e.numberOfLines,k=e.onBlur,x=e.onChange,E=e.onChangeText,C=e.onContentSizeChange,_=e.onFocus,R=e.onKeyPress,O=e.onLayout,P=e.onMoveShouldSetResponder,T=e.onMoveShouldSetResponderCapture,I=e.onResponderEnd,M=e.onResponderGrant,D=e.onResponderMove,A=e.onResponderReject,N=e.onResponderRelease,L=e.onResponderStart,j=e.onResponderTerminate,z=e.onResponderTerminationRequest,F=e.onScrollShouldSetResponder,H=e.onScrollShouldSetResponderCapture,B=e.onSelectionChange,W=e.onSelectionChangeShouldSetResponder,U=e.onSelectionChangeShouldSetResponderCapture,V=e.onStartShouldSetResponder,q=e.onStartShouldSetResponderCapture,Y=e.onSubmitEditing,K=e.placeholderTextColor,$=e.readOnly,G=void 0!==$&&$,X=e.returnKeyType,Q=e.rows,J=e.secureTextEntry,Z=void 0!==J&&J,ee=e.selection,te=e.selectTextOnFocus,ne=e.showSoftInputOnFocus,re=e.spellCheck;if(null!=y)o=y,r="email"===y?"email":"tel"===y?"tel":"search"===y?"search":"url"===y?"url":"text";else if(null!=g)switch(g){case"email-address":r="email";break;case"number-pad":case"numeric":o="numeric";break;case"decimal-pad":o="decimal";break;case"phone-pad":r="tel";break;case"search":case"web-search":r="search";break;case"url":r="url";break;default:r="text"}Z&&(r="password");var oe=n.useRef({height:null,width:null}),ie=n.useRef(null),ae=n.useRef(null),le=n.useRef(!1);n.useEffect(()=>{ie.current&&ae.current&&Ii(ie.current,ae.current),le.current=Z},[Z]);var se=n.useCallback(e=>{if(w&&C&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,C({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[w,C]),ue=n.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&Vo.currentlyFocusedField()===e},se(e))},[se]);kt(()=>{var e=ie.current;null!=e&&null!=ee&&Ii(e,ee),document.activeElement===e&&(Vo._currentlyFocusedNode=e)},[ie,ee]);var ce=w?"textarea":"input";Lt(ie,O),xn(ie,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:T,onResponderEnd:I,onResponderGrant:M,onResponderMove:D,onResponderReject:A,onResponderRelease:N,onResponderStart:L,onResponderTerminate:j,onResponderTerminationRequest:z,onScrollShouldSetResponder:F,onScrollShouldSetResponderCapture:H,onSelectionChangeShouldSetResponder:W,onSelectionChangeShouldSetResponderCapture:U,onStartShouldSetResponder:V,onStartShouldSetResponderCapture:q});var de=dt().direction,fe=(e=>St(e,Mi))(e);fe.autoCapitalize=a,fe.autoComplete=l||s||"on",fe.autoCorrect=c?"on":"off",fe.dir=void 0!==h?h:"auto",fe.enterKeyHint=m||X,fe.inputMode=o,fe.onBlur=function(e){Vo._currentlyFocusedNode=null,k&&(e.nativeEvent.text=e.target.value,k(e))},fe.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,se(t),x&&x(e),E&&E(n)},fe.onFocus=function(e){var t=e.target;_&&(e.nativeEvent.text=t.value,_(e)),null!=t&&(Vo._currentlyFocusedNode=t,p&&(t.value=""),te&&(null!=Di&&clearTimeout(Di),Di=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},fe.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!w:d,r=e.nativeEvent,o=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||o||e.isDefaultPrevented()||(!d&&w||!Y||(e.preventDefault(),r.text=e.target.value,Y(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},fe.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};B&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,B(e)),le.current===Z&&(ae.current=n)}catch(e){}},fe.readOnly=!0===G||!1===v,fe.rows=w?null!=Q?Q:S:1,fe.spellCheck=null!=re?re:c,fe.style=[{"--placeholderTextColor":K},Ni.textinput$raw,Ni.placeholder,e.style,f&&Ni.caretHidden],fe.type=w?void 0:r,fe.virtualkeyboardpolicy=!1===ne?"manual":"auto";var pe=Bt(fe),he=zt(ie,pe,ue,t);fe.ref=he;var ve=null!=e.lang?ut(e.lang):null,me=e.dir||ve;return ft(ce,fe,{writingDirection:me||de})});Ai.displayName="TextInput",Ai.State=Vo;var Ni=$e.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const Li=Ai;var ji="DELAY",zi="ERROR",Fi="LONG_PRESS_DETECTED",Hi="NOT_RESPONDER",Bi="RESPONDER_ACTIVE_LONG_PRESS_START",Wi="RESPONDER_ACTIVE_PRESS_START",Ui="RESPONDER_INACTIVE_PRESS_START",Vi="RESPONDER_RELEASE",qi="RESPONDER_TERMINATED",Yi=Object.freeze({NOT_RESPONDER:{DELAY:zi,RESPONDER_GRANT:Ui,RESPONDER_RELEASE:zi,RESPONDER_TERMINATED:zi,LONG_PRESS_DETECTED:zi},RESPONDER_INACTIVE_PRESS_START:{DELAY:Wi,RESPONDER_GRANT:zi,RESPONDER_RELEASE:Hi,RESPONDER_TERMINATED:Hi,LONG_PRESS_DETECTED:zi},RESPONDER_ACTIVE_PRESS_START:{DELAY:zi,RESPONDER_GRANT:zi,RESPONDER_RELEASE:Hi,RESPONDER_TERMINATED:Hi,LONG_PRESS_DETECTED:Bi},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:zi,RESPONDER_GRANT:zi,RESPONDER_RELEASE:Hi,RESPONDER_TERMINATED:Hi,LONG_PRESS_DETECTED:Bi},ERROR:{DELAY:Hi,RESPONDER_GRANT:Ui,RESPONDER_RELEASE:Hi,RESPONDER_TERMINATED:Hi,LONG_PRESS_DETECTED:Hi}}),Ki=e=>e.getAttribute("role"),$i=e=>e.tagName.toLowerCase(),Gi=e=>e===Wi||e===Bi,Xi=e=>"button"===Ki(e),Qi=e=>e===Ui||e===Wi||e===Bi,Ji=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,o="button"===$i(n)||Xi(n);return"Enter"===t||r&&o};class Zi{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=Hi,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=Hi,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=ea(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(ji,e)},n):this._receiveSignal(ji,e);var r=ea(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},r+n)},t=e=>{this._receiveSignal(Vi,e)},n=e=>{var r=this._config.onPress,o=e.target;if(this._touchState!==Hi&&Ji(e)){t(e),document.removeEventListener("keyup",n);var i=o.getAttribute("role"),a=$i(o),l="link"===i||"a"===a||"button"===a||"input"===a||"select"===a||"textarea"===a,s=this._responderElement===o;null!=r&&!l&&s&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&Xi(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,o=t.key,i=t.target;if(!r&&Ji(t)){this._touchState===Hi&&(e(t,!1),this._responderElement=i,document.addEventListener("keyup",n));var a=" "===o||"Spacebar"===o,l=Ki(i);a&&("button"===l||"menuitem"===l)&&"button"!==$i(i)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=ta(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(qi,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,o=t.onLongPress;return!(!r&&null!=o&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?Xi(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?Xi(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=Yi[n]&&(r=Yi[n][e]),this._touchState===Hi&&e===Vi||(null==r||r===zi?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===qi||e===Vi)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),Qi(e)&&n===Fi){var o=this._config.onLongPress;null!=o&&null==r.nativeEvent.key&&(o(r),this._longPressDispatched=!0)}var i=Gi(e),a=Gi(t);if(!i&&a?this._activate(r):i&&!a&&this._deactivate(r),Qi(e)&&n===Vi){var l=this._config,s=l.onLongPress;null!=l.onPress&&(null!=s&&e===Bi||a||i||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,o=ta(e);this._touchActivatePosition={pageX:o.pageX,pageY:o.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function o(){null!=r&&r(e),null!=n&&n(!1)}var i=ea(this._config.delayPressEnd);i>0?this._pressOutDelayTimeout=setTimeout(()=>{o()},i):o()}_handleLongPress(e){this._touchState!==Wi&&this._touchState!==Bi||this._receiveSignal(Fi,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function ea(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function ta(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}function na(e,t){var r=(0,n.useRef)(null);null==r.current&&(r.current=new Zi(t));var o=r.current;return(0,n.useEffect)(()=>{o.configure(t)},[t,o]),(0,n.useEffect)(()=>()=>{o.reset()},[o]),(0,n.useDebugValue)(t),o.getEventHandlers()}var ra=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function oa(e,t){var o=e.activeOpacity,i=e.delayPressIn,a=e.delayPressOut,l=e.delayLongPress,s=e.disabled,u=e.focusable,c=e.onLongPress,d=e.onPress,f=e.onPressIn,p=e.onPressOut,h=e.rejectResponderTermination,v=e.style,m=r(e,ra),y=zt(t,(0,n.useRef)(null)),g=(0,n.useState)("0s"),b=g[0],w=g[1],S=(0,n.useState)(null),k=S[0],x=S[1],E=(0,n.useCallback)((e,t)=>{x(e),w(t?t/1e3+"s":"0s")},[x,w]),C=(0,n.useCallback)(e=>{E(null!=o?o:.2,e)},[o,E]),_=(0,n.useCallback)(e=>{E(null,e)},[E]),R=na(0,(0,n.useMemo)(()=>({cancelable:!h,disabled:s,delayLongPress:l,delayPressStart:i,delayPressEnd:a,onLongPress:c,onPress:d,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;C(t?0:150),null!=f&&f(e)},onPressEnd(e){_(250),null!=p&&p(e)}}),[l,i,a,s,c,d,f,p,h,C,_]));return n.createElement(Pn,Mo({},m,R,{accessibilityDisabled:s,focusable:!s&&!1!==u,pointerEvents:s?"box-none":void 0,ref:y,style:[ia.root,!s&&ia.actionable,v,null!=k&&{opacity:k},{transitionDuration:b}]}))}var ia=$e.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),aa=n.memo(n.forwardRef(oa));aa.displayName="TouchableOpacity";const la=aa;function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach(function(t){ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ca(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let da=Ti;if("web"!==Tn.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(da=e)}catch(e){}const fa=e=>{let{disabled:t,isEmpty:r}=e;const o=t||r;return n.createElement(da,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:ua(ua({},ha.buttonIcon),{},{tintColor:o?"#ACACB3":"#020001",cursor:o?"auto":"pointer"})})},pa=e=>{let{value:t,onChangeText:r,onSend:o,disabled:i,placeholder:a,theme:l,inputRef:s}=e;return i||t.trim(),n.createElement(Pn,{style:[ha.inputContainer,"web"===Tn.OS?ha.webShadow:ha.nativeShadow]},n.createElement(Li,{ref:s,id:"chat-input",style:[ha.input,ha.inputWeb],placeholder:a||"What are you looking for?",placeholderTextColor:"#999",value:t,onChangeText:r,onSubmitEditing:o,editable:!i,autoFocus:!0}),n.createElement(la,{style:ha.button,onPress:o,disabled:i},n.createElement(fa,{disabled:i,isEmpty:""===t.trim()})))},ha=$e.create({inputContainer:{flexDirection:"row",paddingHorizontal:12,paddingVertical:16,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF",borderColor:"#ACACB3",borderWidth:1,height:56},webShadow:ua({},"web"===Tn.OS?{boxShadow:"2px 8px 24px -6px rgba(55, 54, 64, 0.26)"}:{}),nativeShadow:{shadowColor:"#373640",shadowOffset:{width:2,height:8},shadowOpacity:.26,shadowRadius:12,elevation:3},input:{flex:1,color:"#4F4E57",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:20,minHeight:20,maxHeight:120,paddingHorizontal:0,paddingVertical:0,backgroundColor:"transparent",borderWidth:0},inputWeb:ua({},"web"===Tn.OS?{outlineStyle:"none",outlineWidth:0,boxShadow:"none"}:{}),button:{marginLeft:0,padding:0,justifyContent:"center",alignItems:"center",height:24,aspectRatio:1,borderRadius:0,backgroundColor:"#FFFFFF"},buttonIcon:{height:24,width:24},sendIconText:{fontSize:18,fontWeight:"700",textAlign:"center"}}),va=e=>{let{suggestions:t,onSelect:r,variant:o="default"}=e;if(!t.length)return null;const i="inline"===o?Pn:oi;return n.createElement(i,{showsVerticalScrollIndicator:!1,contentContainerStyle:[ma.container,"inline"===o&&ma.containerInline],style:[ma.scroll,"inline"===o&&ma.scrollInline]},t.map((e,i)=>n.createElement(n.Fragment,null,n.createElement(la,{key:"".concat(e,"-").concat(i),style:[ma.chip,"inline"===o&&ma.chipInline],onPress:()=>r(e),activeOpacity:.75},n.createElement(ci,{style:ma.chipText},e)),i<t.length-1&&n.createElement(Pn,{style:ma.spacer}))))},ma=$e.create({scroll:{maxWidth:"80%",alignSelf:"flex-start",paddingHorizontal:8},scrollInline:{maxWidth:"100%",alignSelf:"stretch",paddingHorizontal:0},container:{paddingVertical:0,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch"},containerInline:{gap:6},chip:{backgroundColor:"#EDEDF2",borderRadius:6,paddingHorizontal:8,paddingVertical:6,width:"100%",alignSelf:"stretch",justifyContent:"center",alignItems:"flex-start"},chipInline:{backgroundColor:"#FFFFFF"},chipText:{fontSize:14,color:"#1A1A1A",fontWeight:"500",textAlign:"left"},spacer:{width:4,height:4}}),ya=(0,n.memo)(va),ga=e=>{let{message:t,theme:r,priceMode:o,handleFeedbackAction:i,onReloadResults:a,reloading:l,hasResults:s,totalResults:u,shownResults:c,onSuggestionSelect:d,isLatest:f,isTyping:p}=e;const h="user"===t.role;return n.createElement(Pn,{style:[wa.container,h?wa.alignRight:wa.alignLeft]},n.createElement(Pn,{style:[wa.bubble,{backgroundColor:h?r.userBubbleColor:r.botBubbleColor,borderRadius:r.borderRadius||8,borderBottomRightRadius:h?0:r.borderRadius,borderBottomLeftRadius:h?r.borderRadius:0}]},n.createElement(ci,{style:[wa.text,{color:h?r.userTextColor:r.botTextColor,fontFamily:r.fontFamily,fontSize:r.fontSize}]},t.text||"","assistant"===t.role&&s&&"number"==typeof u?" Found ".concat(Number(u).toLocaleString()," diamonds (showing first ").concat(c,")"):null),"assistant"===t.role&&Array.isArray(t.suggestions)&&t.suggestions.length>0&&f&&!p&&!(t.search_payload&&"object"==typeof t.search_payload&&Object.keys(t.search_payload).length>0)&&n.createElement(Pn,{style:wa.suggestionsWrapper},n.createElement(ya,{suggestions:t.suggestions,onSelect:e=>null==d?void 0:d(e),variant:"inline"}))))},ba=(0,n.memo)(ga),wa=$e.create({container:{paddingHorizontal:8,marginVertical:0,width:"100%"},alignRight:{alignItems:"flex-end"},alignLeft:{alignItems:"flex-start"},bubble:{maxWidth:"80%",paddingHorizontal:12,paddingVertical:8},text:{lineHeight:20},resultsInfo:{marginTop:4,fontSize:12,color:"#666"},suggestionsWrapper:{marginTop:8}});var Sa=()=>{},ka=function(){var e=!1;if(x)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function xa(){return this.cancelBubble}function Ea(){return this.defaultPrevented}function Ca(e,t,n,r){var o=function(e){return null!=e&&(ka?e:Boolean(e.capture))}(r),i=e=>{return n(((t=e).nativeEvent=t,t.persist=Sa,t.isDefaultPrevented=Ea,t.isPropagationStopped=xa,t));var t};return e.addEventListener(t,i,o),function(){null!=e&&e.removeEventListener(t,i,o)}}var _a,Ra,Oa="keyboard",Pa="keyboard",Ta=!1,Ia=new Set,Ma="keyboard",Da="mouse",Aa="touch",Na="contextmenu",La="mousedown",ja="mousemove",za="mouseup",Fa="pointerdown",Ha="pointermove",Ba="scroll",Wa="selectionchange",Ua="touchcancel",Va="touchmove",qa="touchstart",Ya={passive:!0},Ka={capture:!0,passive:!0};function $a(){null==_a&&null==Ra||(null!=_a&&(Pa=_a,_a=null),null!=Ra&&(Oa=Ra,Ra=null),Xa())}function Ga(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===Fa)return void(Oa!==e.pointerType&&(Pa=e.pointerType,Oa=e.pointerType,Xa()));if(t===Ha)return void(Pa!==e.pointerType&&(Pa=e.pointerType,Xa()))}else{if(Ta||(t===La&&Oa!==Da&&(Pa=Da,Oa=Da,Xa()),t===ja&&Pa!==Da&&(Pa=Da,Xa())),t===qa)return Ta=!0,e.touches&&e.touches.length>1&&(Ta=!1),void(Oa!==Aa&&(Pa=Aa,Oa=Aa,Xa()));t!==Na&&t!==za&&t!==Wa&&t!==Ba&&t!==Ua&&t!==Va||(Ta=!1)}}function Xa(){var e={activeModality:Oa,modality:Pa};Ia.forEach(t=>{t(e)})}function Qa(e,t){var n=Ht(()=>new Map),r=Ht(()=>(r,o)=>{var i=n.get(r);null!=i&&i(),null==o&&(n.delete(r),o=()=>{});var a=Ca(r,e,o,t);return n.set(r,a),a});return kt(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}x&&(Ca(window,"blur",function(){_a=Pa,Ra=Oa,Oa=Ma,Pa=Ma,Xa(),Ta=!1},Ya),Ca(window,"focus",function(){$a()},Ya),Ca(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||Pa!==Ma&&(Pa=Ma,Oa=Ma,Xa())},Ka),Ca(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&$a()},Ka),Ca(document,Fa,Ga,Ka),Ca(document,Ha,Ga,Ka),Ca(document,Na,Ga,Ka),Ca(document,La,Ga,Ka),Ca(document,ja,Ga,Ka),Ca(document,za,Ga,Ka),Ca(document,Ua,Ga,Ka),Ca(document,Va,Ga,Ka),Ca(document,qa,Ga,Ka),Ca(document,Wa,Ga,Ka),Ca(document,Ba,Ga,Ka));var Ja={},Za={passive:!0},el="react-gui:hover:lock",tl="react-gui:hover:unlock";function nl(e,t,n){var r=document.createEvent("CustomEvent"),o=n||Ja,i=o.bubbles,a=void 0===i||i,l=o.cancelable,s=void 0===l||l,u=o.detail;r.initCustomEvent(t,a,s,u),e.dispatchEvent(r)}function rl(e){var t=e.pointerType;return null!=t?t:Pa}var ol=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function il(e,t){var o=e.children,i=e.delayLongPress,a=e.delayPressIn,l=e.delayPressOut,s=e.disabled,u=e.onBlur,c=e.onContextMenu,d=e.onFocus,f=e.onHoverIn,p=e.onHoverOut,h=e.onKeyDown,v=e.onLongPress,m=e.onPress,y=e.onPressMove,g=e.onPressIn,b=e.onPressOut,w=e.style,S=e.tabIndex,k=e.testOnly_hovered,x=e.testOnly_pressed,E=r(e,ol),C=al(!0===k),_=C[0],R=C[1],O=al(!1),P=O[0],T=O[1],I=al(!0===x),M=I[0],D=I[1],A=(0,n.useRef)(null),N=zt(t,A),L=na(0,(0,n.useMemo)(()=>({delayLongPress:i,delayPressStart:a,delayPressEnd:l,disabled:s,onLongPress:v,onPress:m,onPressChange:D,onPressStart:g,onPressMove:y,onPressEnd:b}),[i,a,l,s,v,m,g,y,b,D])),j=L.onContextMenu,z=L.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,o=t.onHoverStart,i=t.onHoverChange,a=t.onHoverUpdate,l=t.onHoverEnd,s=!("undefined"==typeof window||null==window.PointerEvent),u=Qa(s?"pointermove":"mousemove",Za),c=Qa(s?"pointerenter":"mouseenter",Za),d=Qa(s?"pointerleave":"mouseleave",Za),f=Qa(el,Za),p=Qa(tl,Za);kt(()=>{var t=e.current;if(null!==t){var s=function(e){null!=l&&l(e),null!=i&&i(!1),u(t,null),d(t,null)},h=function(t){var r=e.current;null!=r&&"touch"!==rl(t)&&(n&&nl(r,tl),s(t))},v=function(e){"touch"!==rl(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},m=function(e){null!=o&&o(e),null!=i&&i(!0),null!=a&&u(t,r?null:v),d(t,r?null:h)};c(t,r?null:function(t){var o=e.current;null!=o&&"touch"!==rl(t)&&(n&&nl(o,el),m(t),f(o,r?null:function(e){e.target!==o&&s(t)}),p(o,r?null:function(e){e.target!==o&&m(t)}))})}},[c,u,d,f,p,n,r,o,i,a,l,e])}(A,{contain:!0,disabled:s,onHoverChange:R,onHoverStart:f,onHoverEnd:p});var F,H={hovered:_,focused:P,pressed:M},B=n.useCallback(e=>{e.nativeEvent.target===A.current&&(T(!1),null!=u&&u(e))},[A,T,u]),W=n.useCallback(e=>{e.nativeEvent.target===A.current&&(T(!0),null!=d&&d(e))},[A,T,d]),U=n.useCallback(e=>{null!=j&&j(e),null!=c&&c(e)},[c,j]),V=n.useCallback(e=>{null!=z&&z(e),null!=h&&h(e)},[h,z]);return F=void 0!==S?S:s?-1:0,n.createElement(Pn,Mo({},E,L,{"aria-disabled":s,onBlur:B,onContextMenu:U,onFocus:W,onKeyDown:V,ref:N,style:[s?ll.disabled:ll.active,"function"==typeof w?w(H):w],tabIndex:F}),"function"==typeof o?o(H):o)}function al(e){var t=(0,n.useState)(!1);return[t[0]||e,t[1]]}var ll=$e.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),sl=(0,n.memo)((0,n.forwardRef)(il));sl.displayName="Pressable";const ul=sl;function cl(){return"undefined"!=typeof window&&window.localStorage?window.localStorage:null}const dl={getItem:async e=>{try{if("persist:searchFilters"===e){const t="undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:null;return t?t.getItem(e):null}const t=cl();return t?t.getItem(e):null}catch(e){return null}},setItem:async(e,t)=>{try{const n=cl();n&&n.setItem(e,t)}catch(e){}},removeItem:async e=>{try{const t=cl();t&&t.removeItem(e)}catch(e){}}};let fl=!1;const pl={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function hl(){return"web"===Tn.OS?dl:(fl||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),fl=!0),pl)}const vl=async e=>hl().getItem(e),ml=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await hl().getItem(e);return n?JSON.parse(n):t}catch(e){return t}},yl=async(e,t)=>{try{await hl().setItem(e,JSON.stringify(t))}catch(e){}};var gl=a(7918),bl=a.n(gl),wl=a(5685);var Sl=a(5556),kl=a.n(Sl);const xl=kl().oneOfType([kl().string,kl().number]),El={all:kl().bool,grid:kl().bool,aural:kl().bool,braille:kl().bool,handheld:kl().bool,print:kl().bool,projection:kl().bool,screen:kl().bool,tty:kl().bool,tv:kl().bool,embossed:kl().bool},Cl={orientation:kl().oneOf(["portrait","landscape"]),scan:kl().oneOf(["progressive","interlace"]),aspectRatio:kl().string,deviceAspectRatio:kl().string,height:xl,deviceHeight:xl,width:xl,deviceWidth:xl,color:kl().bool,colorIndex:kl().bool,monochrome:kl().bool,resolution:xl,type:Object.keys(El)},{type:_l,...Rl}=Cl,Ol={minAspectRatio:kl().string,maxAspectRatio:kl().string,minDeviceAspectRatio:kl().string,maxDeviceAspectRatio:kl().string,minHeight:xl,maxHeight:xl,minDeviceHeight:xl,maxDeviceHeight:xl,minWidth:xl,maxWidth:xl,minDeviceWidth:xl,maxDeviceWidth:xl,minColor:kl().number,maxColor:kl().number,minColorIndex:kl().number,maxColorIndex:kl().number,minMonochrome:kl().number,maxMonochrome:kl().number,minResolution:xl,maxResolution:xl,...Rl};var Pl={all:{...El,...Ol},types:El,matchers:Cl,features:Ol};const Tl=(0,n.createContext)(void 0),Il=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,wl.default)(n)]=e[n],t),{})},Ml=()=>{const e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current=!0},[]),e.current},Dl=e=>{const t=()=>(e=>e.query||(e=>{const t=[];return Object.keys(Pl.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,wl.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,o]=(0,n.useState)(t);return(0,n.useEffect)(()=>{const e=t();r!==e&&o(e)},[e]),r},Al=(e,t,r)=>{const o=(e=>{const t=(0,n.useContext)(Tl),r=()=>Il(e)||Il(t),[o,i]=(0,n.useState)(r);return(0,n.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(let r=0;r<o;r++){const o=n[r];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0})(o,e)||i(e)},[e,t]),o})(t),i=Dl(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=((e,t)=>{const r=()=>bl()(e,t||{},!!t),[o,i]=(0,n.useState)(r),a=Ml();return(0,n.useEffect)(()=>{if(a){const e=r();return i(e),()=>{e&&e.dispose()}}},[e,t]),o})(i,o),l=(e=>{const[t,r]=(0,n.useState)(e.matches);return(0,n.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t})(a),s=Ml();return(0,n.useEffect)(()=>{s&&r&&r(l)},[l]),(0,n.useEffect)(()=>()=>{a&&a.dispose()},[]),l},Nl=Uo.get("window");function Ll(e){const t=new Date(e);let n=t.getHours();const r=t.getMinutes(),o=n>=12?"pm":"am";n%=12,n=n||12;const i=r<10?"0".concat(r):r;return"".concat(n,":").concat(i," ").concat(o)}let jl=function(e){return e.LIKE="1",e.DISLIKE="2",e.UNSET="0",e}({});const zl=async()=>{try{const e=await ml("persist:userInfo",{});if(null==e||!e.user)return null;if("string"==typeof e.user)try{return JSON.parse(e.user)}catch(e){return null}return e.user}catch(e){return null}};let Fl=function(e){return e.WEB="web",e.IOS="ios",e.ANDROID="android",e}({}),Hl=function(e){return e.WIDGET_OPENED="ai_chat_widget_opened",e.WIDGET_CLOSED="ai_chat_widget_closed",e.CHAT_CLEARED="ai_chat_cleared",e}({});let Bl=Ti;if("web"!==Tn.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Bl=e)}catch(e){}const Wl=$e.create({rowContainer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:6,marginHorizontal:8,marginTop:0,marginBottom:12},alignRight:{alignSelf:"flex-end"},alignLeft:{alignSelf:"flex-start"},likeDislikeContainer:{flexDirection:"row",gap:6},timeContainer:{margin:0},borderButton:{borderWidth:1,borderColor:"#D5D5DC",borderRadius:8,paddingHorizontal:4,paddingVertical:4},borderButtonHover:{backgroundColor:"#EDEDF2"},borderButtonLike:{backgroundColor:"#DBFFE4",borderColor:"#00B140"},borderButtonDislike:{backgroundColor:"#FFE2E0",borderColor:"#D0021B"},timeText:{fontSize:12,color:"#666"}}),Ul=e=>{let{message:t,priceMode:r,handleFeedbackAction:o,onReloadResults:i,reloading:a,hasResults:l}=e;const s="user"===t.role,[u,c]=n.useState(null);n.useEffect(()=>{(async()=>{const e=await(async e=>{var t;const n=await ml("vdbchat_conversations",{});if(!n)return null;let r=e;if(void 0===r){const e=await ml("persist:userInfo",{}),t=null==e?void 0:e.user;r=String(null==t?void 0:t.price_mode)||""}return(null===(t=n[r])||void 0===t?void 0:t.conversation_id)||null})(r);c(e)})()},[r]);const d="string"==typeof t.id&&t.id.length>0&&!t.id.startsWith("bot-loading-"),f="assistant"===t.role&&!t.isLoading&&d&&!!u;return n.createElement(Pn,{style:[Wl.rowContainer,s?Wl.alignRight:Wl.alignLeft]},n.createElement(Pn,{style:Wl.timeContainer},n.createElement(ci,{style:Wl.timeText},Ll(t.createdAt))),f?n.createElement(Pn,{style:Wl.likeDislikeContainer},n.createElement(ul,{style:e=>[Wl.borderButton,(null==e?void 0:e.hovered)&&Wl.borderButtonHover,t.reaction===jl.LIKE&&Wl.borderButtonLike],onPress:()=>o(jl.LIKE,String(u),t.id),disabled:!f},n.createElement(Bl,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/like.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:t.reaction===jl.LIKE?"#00B140":"#020001"}})),n.createElement(ul,{style:e=>[Wl.borderButton,(null==e?void 0:e.hovered)&&Wl.borderButtonHover,t.reaction===jl.DISLIKE&&Wl.borderButtonDislike],onPress:()=>o(jl.DISLIKE,String(u),t.id),disabled:!f},n.createElement(Bl,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/dislike.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:t.reaction===jl.DISLIKE?"#D0021B":"#020001"}}))):null)};function Vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(t){Yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kl={primaryColor:"#0b93f6",backgroundColor:"#ffffff",inputColor:"#FFF",inputBackgroundColor:"#FFFFFF",inputBorderRadius:8,inputTextColor:"#000000",userBubbleColor:"#4F4E57",userTextColor:"#ffffff",botBubbleColor:"#EDEDF2",botTextColor:"#000000",borderRadius:8,fontFamily:void 0,fontSize:16};function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Ql(){const e=await ml("persist:userInfo",{}),t=JSON.parse((null==e?void 0:e.user)||"{}"),n=(null==t?void 0:t.token)||"",r=await vl("persist:appState")||"{}";let o="";try{const e=JSON.parse(r);o=null!=e&&e.installationIdentifier?JSON.parse(e.installationIdentifier):""}catch(e){o=""}const i=await vl("session_cookie")||"";return{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",Authorization:"Token token=".concat(n,",installation_identifier=").concat(o),Cookie:"vdb-server_session=".concat(i)}}function Jl(e){const t=Array.isArray(e)?e:null==e?void 0:e.messages;return Array.isArray(t)?t.map((e,t)=>{var n,r,o,i,a,l;return{id:String(null!==(n=e.id)&&void 0!==n?n:"".concat(e.role,"-").concat(t,"-").concat(null!==(r=e.created_at)&&void 0!==r?r:Date.now())),role:"user"===e.role?"user":"assistant",text:String(null!==(o=null!==(i=e.content)&&void 0!==i?i:e.text)&&void 0!==o?o:""),createdAt:"string"==typeof e.created_at?Date.parse(e.created_at):"number"==typeof e.createdAt?e.createdAt:Date.now(),search_payload:null!==(a=e.search_payload)&&void 0!==a?a:{},reaction:String(null!==(l=e.reaction)&&void 0!==l?l:"0"),suggestions:Array.isArray(e.suggestions)?e.suggestions:void 0}}):[]}async function Zl(e,t,n){var r,o;const i=await ml("vdbchat_conversations",{}),a=null!==(r=null==i||null===(o=i[null!=n?n:""])||void 0===o?void 0:o.conversation_id)&&void 0!==r?r:null;if(void 0===n)return;const l={};a&&(l.conversation_id=Number.isNaN(Number(a))?a:Number(a));const s=await fetch(e,{method:"POST",headers:await Ql(),body:Object.keys(l).length?JSON.stringify(l):void 0});if(!s.ok)throw new Error("POST ".concat(e," failed with ").concat(s.status));const u=await s.json();if(u&&null!=u.conversation_id&&n){const e=i||{};e[n]={conversation_id:u.conversation_id},await yl("vdbchat_conversations",e)}return u}async function es(e,t){const n=await ml("persist:userInfo",{}),{activeProduct:r}=JSON.parse(await vl("persist:appState")||"{}"),o=JSON.parse((null==n?void 0:n.searchResultViewType)||"{}"),i=null==o?void 0:o[null!=r?r:"default"],a=JSON.parse(await vl("persist:searchFilters")||"{}"),l="string"==typeof(null==a?void 0:a.sectionName)?JSON.parse(a.sectionName):null==a?void 0:a.sectionName,s=JSON.parse(await vl("persist:root")||"{}");let u=("string"==typeof(null==s?void 0:s.selectedGroups)?JSON.parse(s.selectedGroups):(null==s?void 0:s.selectedGroups)||{})[null!=r?r:""],c=!1;u&&u.includes(0)&&(c=!0,u=u.filter(e=>0!==e));let d={};u&&u.length>0&&(d=Object.assign(d,{group_ids:u}));const f=await fetch("https://pdpdemo1.demo.customvirtual.app/v3/vdb/search_diamonds",{method:"POST",headers:await Ql(),body:JSON.stringify({vdb:Gl(Gl(Gl({},e),d),{},{page_size:5,price_mode:t,vdb_setting:c?"true":"false",results_view_type:i||"grid",featured:"false",pair:"Single Stones"===l?"other":"pair",with_available_items:!1,page_number:1})})});if(!f.ok)throw new Error("POST failed with ".concat(f.status));return await f.json()}const ts=$e.create({container:{alignSelf:"stretch",paddingVertical:6,paddingHorizontal:16,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"},text:{color:"#4F4E57",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:18,textAlign:"center"}}),ns=e=>{let{active:t}=e;return t?n.createElement(Pn,{style:ts.container},n.createElement(ci,{style:ts.text},"This AI feature is in beta and may make mistakes.")):null};let rs=Ti;if("web"!==Tn.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(rs=e)}catch(e){}const os=e=>{let{data:t,onViewAll:r,onItemPress:o}=e;return t&&t.length?n.createElement(Pn,{style:is.wrapper},n.createElement(oi,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:is.listContent},t.map(e=>n.createElement(la,{key:e.id,onPress:()=>{null==o||o(e)}},n.createElement(Pn,{key:e.id,style:is.card},e.image_thumb_url?n.createElement(rs,{style:is.image,source:{uri:e.image_thumb_url}}):null,n.createElement(Pn,{style:is.content},n.createElement(ci,{numberOfLines:2,style:is.title},e.short_title),n.createElement(ci,{style:is.price},"$",e.total_sales_price)))))),n.createElement(la,{style:is.button,activeOpacity:.8,onPress:r},n.createElement(ci,{style:is.buttonText},"View All ",">>"))):null},is=$e.create({wrapper:{paddingHorizontal:12,marginHorizontal:12,marginBottom:12,paddingTop:6,paddingBottom:14,backgroundColor:"#fff",borderRadius:8,borderWidth:1,borderColor:"#e8e8e8",elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},listContent:{gap:12,paddingVertical:6},card:{width:150,backgroundColor:"#fff",borderRadius:14,overflow:"hidden",borderColor:"#e8e8e8",borderWidth:1,elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},image:{width:"100%",height:120,borderBottomWidth:1,borderBottomColor:"#e8e8e8"},content:{padding:10,gap:4},title:{fontSize:13,color:"#222",fontWeight:"500"},price:{marginTop:4,fontSize:14,fontWeight:"700",color:"#000"},button:{marginTop:12,alignSelf:"center",paddingHorizontal:20,paddingVertical:8,backgroundColor:"#804195",borderRadius:20,width:300,alignItems:"center"},buttonText:{color:"#fff",fontSize:14,fontWeight:"600"}}),as=(0,n.memo)(os);let ls=null;if("web"!==Tn.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(ls=e)}catch(e){}const ss=e=>{let{data:t,totalResults:r,onViewAll:o,onItemPress:i,item:a}=e;if(!t||!t.length)return null;const[l,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async()=>{const e=await(async()=>{const e=await ml("persist:userInfo",{});return(null==e?void 0:e.user).currency_symbol||"$"})();s(e)})()},[]),n.createElement(Pn,{style:us.wrapper},n.createElement(oi,{showsVerticalScrollIndicator:!1,contentContainerStyle:us.listContent},t.map((e,t)=>{var r,o,a,s,u,c,d,f,p,h,v,m;return n.createElement(ul,{key:e.id,onPress:()=>null==i?void 0:i(e),style:e=>{let{hovered:t}=e;return[us.itemContainer,t&&us.itemHover]}},n.createElement(Pn,null,n.createElement(Pn,{style:us.left},n.createElement(Pn,{style:us.serialContainer},n.createElement(ci,{style:us.serial},t+1,".")),n.createElement(Pn,{style:us.tokens},n.createElement(ci,{style:us.textStyleOne},null!==(r=e.shape_long)&&void 0!==r?r:"-"),n.createElement(Pn,{style:{flexDirection:"row",alignItems:"center"}},n.createElement(ci,{style:us.textStyleTwo},null!==(o=e.size)&&void 0!==o?o:"-"),e.price_per_carat?n.createElement(ci,{style:us.textStyleOne},"ct"):n.createElement(n.Fragment,null)),n.createElement(ci,{style:us.textStyleOne},null!==(a=e.color)&&void 0!==a?a:"-"),n.createElement(ci,{style:us.textStyleOne},null!==(s=e.clarity_short)&&void 0!==s?s:"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(Pn,{style:{flexDirection:"row",alignItems:"center"}},n.createElement(ci,{style:us.textStyleOne},null!==(u=e.cut_short)&&void 0!==u?u:"-"),n.createElement(ci,{style:us.textStyleOne},"/"),n.createElement(ci,{style:us.textStyleOne},null!==(c=e.polish_short)&&void 0!==c?c:"-"),n.createElement(ci,{style:us.textStyleOne},"/"),n.createElement(ci,{style:us.textStyleOne},null!==(d=e.symmetry_short)&&void 0!==d?d:"-")),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(ci,{style:us.textStyleOne},null!==(f=e.fluorescence_intensity_short)&&void 0!==f?f:"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(ci,{style:us.textStyleOne},null!==(p=e.lab_short)&&void 0!==p?p:"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(ci,{style:us.textStyleTwo},e.discount_percent?e.discount_percent+"%":"-"),n.createElement(Pn,{style:us.lineBreak}),n.createElement(ci,{style:us.textStyleOne},"D"),n.createElement(ci,{style:us.textStyleTwo},e.depth_percent?e.depth_percent+"%":"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(ci,{style:us.textStyleOne},"T"),n.createElement(ci,{style:us.textStyleTwo},e.table_percent?e.table_percent+"%":"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(ci,{style:us.textStyleTwo},null!==(h=e.measurement)&&void 0!==h?h:"-"),n.createElement(ci,{style:us.textStyleOne},"·"),n.createElement(Pn,{style:{flexDirection:"row",alignItems:"center"}},e.price_per_carat?n.createElement(ci,{style:us.textStyleTwo},l||"$"):n.createElement(n.Fragment,null),n.createElement(ci,{style:us.textStyleTwo},null!==(v=e.price_per_carat)&&void 0!==v?v:"-"),n.createElement(ci,{style:us.textStyleOne},"PC")),n.createElement(Pn,{style:{flexDirection:"row",alignItems:"center"}},n.createElement(ci,{style:us.textStyleOne}," ="),e.total_sales_price?n.createElement(ci,{style:us.textStyleTwo},l||"$"):n.createElement(n.Fragment,null),n.createElement(ci,{style:us.textStyleTwo},null!==(m=e.total_sales_price)&&void 0!==m?m:"-"))))))})),n.createElement(la,{style:us.button,activeOpacity:.8,onPress:()=>o(a)},n.createElement(ci,{style:us.buttonText},"View All ".concat(r," Results")),n.createElement(Ti,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/right.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:"#fff"}})))},us=$e.create({wrapper:{paddingHorizontal:8},listContent:{gap:8},row:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:6,backgroundColor:"#fff"},left:{flexDirection:"row",alignItems:"flex-start",minWidth:0},serialContainer:{alignItems:"flex-start",justifyContent:"center",marginRight:4},tokens:{flexDirection:"row",flexWrap:"wrap",gap:2,flex:1,minWidth:0},lineBreak:{width:"100%",height:0},serial:{fontSize:13,color:"#020001",fontWeight:"500"},textStyleOne:{fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",color:"#4F4E57"},textStyleTwo:{fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"500",color:"#020001"},price:{fontSize:13,fontWeight:"500",color:"#020001",textAlign:"left"},priceContainer:{alignItems:"flex-start",justifyContent:"center"},itemContainer:{paddingVertical:2},itemHover:{backgroundColor:"#EDEDF2"},button:{marginTop:12,marginHorizontal:12,alignSelf:"center",paddingHorizontal:16,paddingVertical:6,backgroundColor:"#292735",borderRadius:8,alignItems:"center",gap:16,width:"100%",flexDirection:"row",justifyContent:"center",alignContent:"center"},buttonText:{color:"#fff",fontSize:14,fontWeight:"600"}}),cs=(0,n.memo)(ss),ds=e=>{let{data:t,onViewAll:r,onItemPress:o,variant:i="list",totalResults:a,item:l}=e;return t&&t.length?"list"===i?n.createElement(cs,{data:t,onViewAll:r,onItemPress:o,totalResults:a,item:l}):n.createElement(as,{data:t,onViewAll:r,onItemPress:o,totalResults:a,item:l}):null},fs=e=>{let{messageId:t,payload:r,onFetched:o,priceMode:i}=e;const{ref:a,inView:l}=function(){const e=(0,n.useRef)(null),[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if("web"!==Tn.OS)return void r(!0);const t=e.current;if(!t||"undefined"==typeof IntersectionObserver)return void r(!0);const n=new IntersectionObserver(e=>{const t=e[0];r(t.isIntersecting)},{root:null,rootMargin:"0px",threshold:.1});return n.observe(t),()=>{n.disconnect()}},[]),{ref:e,inView:t}}(),s=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{s.current||r&&"object"==typeof r&&l&&(s.current=!0,(async()=>{try{const e=await es(r,i);o(t,e)}catch(e){console.error("Lazy fetch products failed",e)}})())},[l,t,o,r,i]),n.createElement(Pn,{ref:a,style:{height:1}})};function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(t){vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ms=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(Tn.OS);return(e=>{switch(e){case Fl.WEB:return 0;case Fl.IOS:return 1;case Fl.ANDROID:default:return 2}})(t).toString()},ys=async()=>{var e,t,n,r;const o=await zl(),i="web"===Tn.OS?{system_type_enum:ms(null),platform_action_enum:"0"}:{};return hs({user_company_id:null==o||null===(e=o.company_id)||void 0===e?void 0:e.toString(),user_company_name:null==o?void 0:o.company,user_email:null==o?void 0:o.email,user_id:null==o||null===(t=o.id)||void 0===t?void 0:t.toString(),user_name:null!=o&&o.first_name?"".concat(null==o?void 0:o.first_name," ").concat(null==o?void 0:o.last_name):void 0,user_price_mode:null==o||null===(n=o.price_mode)||void 0===n?void 0:n.toString(),price_mode:null==o||null===(r=o.price_mode)||void 0===r?void 0:r.toString(),has_plan_details:!(null==o||!o.plan_details),userAgent:"web"===Tn.OS?navigator.userAgent:""},i)};function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ss=(0,n.forwardRef)((e,r)=>{let{apiUrl:o,userToken:i,priceMode:a,modalHeight:l,theme:s,initialMessages:u=[],placeholder:c,onClose:d,onClearChat:f,onViewAllPress:p,onItemPress:h,isBetaMode:v}=e;const[m,y]=(0,n.useState)(u),[g,b]=(0,n.useState)(""),[w,S]=(0,n.useState)(!1),[k,x]=(0,n.useState)(null),[E,C]=(0,n.useState)(null),[_,R]=(0,n.useState)(""),[O,P]=(0,n.useState)(0),[T,I]=(0,n.useState)(!0),[M,D]=(0,n.useState)({}),[A,N]=(0,n.useState)(new Set),[L,j]=(0,n.useState)(a||null),[z,F]=(0,n.useState)(i||""),H=(0,n.useRef)(null),B=(0,n.useRef)(null),W=(0,n.useMemo)(()=>{return e=s,ql(ql({},Kl),e||{});var e},[s]),{_identify:U}=(()=>{const e=(0,n.useContext)(To);return{trackEvent:async(t,n)=>{const r=await ys(),o=e||window.analytics;o&&await o.track(t,hs(hs({},r),n))},_identify:async(t,n)=>{const r=e||window.analytics;r&&await r.identify(t,n)},_track:async(t,n)=>{const r=await ys();if((o=null==r?void 0:r.userAgent)&&/^Mozilla\/5\.0 \([^;]+; CPU [^)]+ like Mac OS X\) AppleWebKit\/600\.1\.4 \(KHTML, like Gecko\) Version\/\d\.0 Mobile\/10B329 Safari\/8536\.25$/.test(o))return void console.warn("Skipping tracking for Segment user agent:",r.userAgent);var o;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e&&"web"===Tn.OS||[/bot/i,/crawl/i,/spider/i,/HeadlessChrome/i,/PhantomJS/i,/slurp/i,/curl/i,/wget/i,/httpclient/i].some(t=>t.test(e))}(null==r?void 0:r.userAgent))return void console.warn("Skipping tracking for bot user agent:",r.userAgent);const i=e||window.analytics;if(!i)return;const a=await zl();null!=a&&a.id?await i.identify("".concat(a.id),{name:"".concat(a.first_name," ").concat(a.last_name),email:a.email,country:a.country}):(console.error("Track Event tracked without user:",t,JSON.stringify(n)),console.error("Can't identify as user is not logged in",JSON.stringify(a))),await i.track(t,hs(hs({},r),n))}}})(),V=Boolean(v),{isTablet:q}=(()=>{const{width:e}=Nl,t=Al({maxWidth:767})||e<767,n=Al({minWidth:767,maxWidth:1279})||e>767&&e<=1279||(()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/iPad/.test(e)||/\bMac/.test(e)&&navigator.maxTouchPoints>0&&!/iPhone/.test(e)})(),r=Al({minWidth:1279})||e>1279;return{isMobile:t,isTablet:n,isDesktop:r,isLargeScreen:r&&!n&&!t}})(),Y="No results found for your search. Try adjusting your filters or query.";(0,n.useEffect)(()=>{(async()=>{try{if(!i){const e=await ml("persist:userInfo",{}),t=JSON.parse((null==e?void 0:e.user)||"{}"),n=(null==t?void 0:t.token)||"";n&&F(n)}}catch(e){console.error("Failed to load auth data from storage",e)}})()},[i]);const K=e=>{const t=JSON.stringify(null==e?void 0:e.search_payload),n=null==e?void 0:e.search_payload;if(!n)return;const r=o.split("v3"),i="".concat(r[0],"webapp/").concat("true"===n.lab_grown?"lab-grown-diamonds":"natural-diamonds","/search?priceMode=").concat(L,"&productType=").concat("true"===n.lab_grown?"lab_grown_diamond":"diamond","&fromNewFilterScreen=false&filterSplitStep=1&sectionName=Single%20Stones&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=").concat(t);p?p(i,n):"web"===Tn.OS&&window.open(i,"_parent")},$=(0,n.useCallback)(e=>{const t=o.split("v3"),n="".concat(t[0],"webapp/").concat("lab_grown_diamond"===e.type?"lab-grown-diamonds":"natural-diamonds","/item-detail/").concat(e.id,"?productType=").concat(e.type,"&priceMode=").concat(L,"&breadCrumbLabel=Stone%20Details");h?h(n,e):"web"===Tn.OS&&window.open(n,"_parent")},[o,L,h]),G=(0,n.useMemo)(()=>Boolean(z),[z]),X=(0,n.useMemo)(()=>({conversationId:z}),[z]),Q=(0,n.useCallback)(async(e,t,n)=>{try{let r="0";y(e=>{const t=e.find(e=>e.id===n);return r=(null==t?void 0:t.reaction)||"0",e});const o=r===e?jl.UNSET:e,i=await(async(e,t,n)=>{const r="https://pdpdemo1.demo.customvirtual.app/v3/agent_conversations/".concat(t,"/conversation_messages/").concat(n,"/reaction"),o={reaction:e};return await fetch(r,{method:"POST",headers:await Ql(),body:JSON.stringify(o)})})(o,t,n);i.ok?y(e=>e.map(e=>e.id===n?bs(bs({},e),{},{reaction:o}):e)):console.error("Feedback API failed",i.status)}catch(e){console.error("Feedback API error",e)}},[]);(0,n.useEffect)(()=>{let e=!1;return u.length||(async()=>{if(G)try{const t=await Zl(o,0,L);if(!e){const e=Jl(t).reverse();if(0===e.length){const e={id:"",role:"assistant",text:"Hello! How can I help you today?",createdAt:Date.now(),isLoading:!1,suggestions:["Search Natural Diamonds","Search Lab-Grown Diamonds"],search_payload:{},reaction:"0"};y([e]),setTimeout(()=>{var e;null===(e=H.current)||void 0===e||e.scrollToEnd({animated:!1})},0)}else y(e),setTimeout(()=>{var e;null===(e=H.current)||void 0===e||e.scrollToEnd({animated:!1})},0)}}catch(e){console.error("Failed to fetch initial messages",e)}})(),()=>{e=!0}},[o,X,u.length,G,L]);const J=(0,n.useCallback)(async e=>{const t=e.trim();if(!t||w)return;const n={id:"user-".concat(Date.now()),role:"user",text:t,createdAt:Date.now()},r="bot-loading-".concat(Date.now()),i={id:r,role:"assistant",text:"Thinking",createdAt:Date.now(),reaction:"0",isLoading:!0,search_payload:{}};y(e=>[...e,n,i]),x(r),S(!0);try{if(!G)return void y(e=>e.map(e=>e.id===r?bs(bs({},e),{},{text:"Chat is unavailable (missing user authentication).",isLoading:!1}):e));const e=await async function(e,t,n,r,o){var i,a;const l=await ml("vdbchat_conversations",{}),s=null!==(i=null==l||null===(a=l[o])||void 0===a?void 0:a.conversation_id)&&void 0!==i?i:null;if(void 0===o)return null;const u={query:t};s&&(u.conversation_id=Number.isNaN(Number(s))?s:Number(s));const c=await fetch(e,{method:"POST",headers:await Ql(),body:JSON.stringify(u)});if(!c.ok)throw new Error("POST ".concat(e," failed with ").concat(c.status));const d=await c.json();if(d&&null!=d.conversation_id&&o){const e=l||{};e[o]={conversation_id:d.conversation_id},await yl("vdbchat_conversations",e)}return d}(o,t,0,0,L),n=Jl(e).find(e=>"assistant"===e.role);if(null!=n&&n.text){if(null!=n&&n.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0){const e=await es(n.search_payload,L);var a;if(!(e&&e.response&&e.response.body&&Array.isArray(e.response.body.diamonds)&&e.response.body.diamonds.length>0))return x(null),C(null),R(""),y(e=>e.map(e=>{var t,o;return e.id===r?bs(bs({},e),{},{id:null!==(t=null==n?void 0:n.id)&&void 0!==t?t:e.id,text:Y,isLoading:!1,search_payload:null!==(o=n.search_payload)&&void 0!==o?o:{}}):e})),void(null===(a=B.current)||void 0===a||a.focus());D(t=>bs(bs({},t),{},{[n.id]:e}))}x(null),y(e=>e.map(e=>{var t;return e.id===r?bs(bs({},e),{},{id:n.id,text:"",isLoading:!1,suggestions:n.suggestions,search_payload:null!==(t=n.search_payload)&&void 0!==t?t:{}}):e})),setTimeout(()=>{var e;C(n.id),R(n.text),null===(e=H.current)||void 0===e||e.scrollToEnd({animated:!0})},50)}else y(e=>e.map(e=>e.id===r?bs(bs({},e),{},{isLoading:!1}):e))}catch(e){y(e=>e.map(e=>e.id===r?bs(bs({},e),{},{text:"Sorry, something went wrong. Please try again.",isLoading:!1}):e)),console.error(e)}finally{var l;S(!1),x(null),null===(l=B.current)||void 0===l||l.focus()}},[o,w,m,X,G,L,M]),Z=(0,n.useCallback)(async()=>{const e=g.trim();e&&(b(""),J(e))},[g,J]),ee=(0,n.useCallback)(e=>{J(e)},[J]),te=(0,n.useCallback)(async e=>{const t=e.id;try{N(e=>new Set(e).add(t));const n=null==e?void 0:e.search_payload;if(!n||0===Object.keys(n).length)return;const r=await es(n,L);D(e=>bs(bs({},e),{},{[t]:r}))}catch(e){console.error("Reload results failed",e)}finally{N(e=>{const n=new Set(e);return n.delete(t),n})}},[]);(0,n.useEffect)(()=>(t.addListener("clearChat",re),t.addListener("changePriceMode",e=>ne(e.priceMode)),ne(),(async()=>{var e;const t=await zl(),n=null==t?void 0:t.id,r=null!==(e=JSON.stringify(null==t?void 0:t.email))&&void 0!==e?e:void 0;n&&U("".concat(n),{email:r}).then()})(),()=>{t.removeAllListeners("clearChat"),t.removeAllListeners("changePriceMode")}),[]);const ne=async e=>{if(!e&&a&&(e=a),!e){var t;let n=await ml("persist:userInfo",{user:void 0});n=n&&n.user?JSON.parse(n.user):{},e=null===(t=n)||void 0===t?void 0:t.price_mode}j(void 0===e?null:String(e))},re=(0,n.useCallback)(async()=>{try{var e;const t=await ml("vdbchat_conversations",{});if(t&&(null===(e=t[L])||void 0===e?void 0:e.conversation_id)&&L){const e=null!=t?t:{};delete e[L],await yl("vdbchat_conversations",e)}y([]),D({}),N(new Set),S(!1),x(null),C(null),R("");const n=Jl(await Zl(o,0,L)).reverse();if(0===n.length){const e={id:"",role:"assistant",text:"Hello! How can I help you today?",createdAt:Date.now(),isLoading:!1,suggestions:["Search Natural Diamonds","Search Lab-Grown Diamonds"],reaction:"0",search_payload:{}};y([e])}else y(n);setTimeout(()=>{var e;null===(e=H.current)||void 0===e||e.scrollToEnd({animated:!1})},500),null==f||f()}catch(e){console.error("Failed to clear chat",e)}},[o,L]);(0,n.useEffect)(()=>{if(!k||E)return;let e=0;const t=setInterval(()=>{e=(e+1)%3;const t=".".repeat(e+1);y(e=>e.map(e=>e.id===k&&e.isLoading?bs(bs({},e),{},{text:"".concat("Thinking").concat(t)}):e))},500);return()=>{clearInterval(t)}},[k,E]),(0,n.useImperativeHandle)(r,()=>({clearChat:re}),[re]);const oe=(0,n.useRef)(0);return(0,n.useEffect)(()=>{if(!E||!_)return void(oe.current=0);oe.current=0;const e=_.length,t=E,n=_,r=setInterval(()=>{oe.current+=1;const o=oe.current,i=n.slice(0,o);y(e=>e.map(e=>e.id===t?bs(bs({},e),{},{text:i}):e)),o>=e&&(clearInterval(r),C(null),R(""),y(e=>e.map(e=>e.id===t?bs(bs({},e),{},{isLoading:!1}):e)))},25);return()=>{clearInterval(r)}},[E,_]),n.createElement(Pn,{style:[ks.container,{backgroundColor:W.backgroundColor}]},n.createElement(No,{style:{flex:1},behavior:"ios"===Tn.OS?"padding":"height",keyboardVerticalOffset:"ios"===Tn.OS?100:-16},n.createElement(oi,{ref:H,keyboardShouldPersistTaps:"handled",onScroll:e=>{const{contentOffset:t,contentSize:n,layoutMeasurement:r}=e.nativeEvent;P(t.y);const o=n.height-(r.height+t.y);I(o<48)},scrollEventThrottle:16,style:l?{height:l,backgroundColor:"#FFFFFF"}:{backgroundColor:"#FFFFFF"},contentContainerStyle:bs(bs({backgroundColor:(null==W?void 0:W.listContentBackgroundColor)||"#FFFFFF"},ks.listContent),{},{justifyContent:0===m.length?"center":"flex-end",minHeight:l||void 0},q?{maxWidth:608,alignSelf:"center",width:"100%"}:{}),onContentSizeChange:()=>{var e;T&&(null===(e=H.current)||void 0===e||e.scrollToEnd({animated:!1}))}},n.createElement(Pn,{style:ks.emptyContainer},n.createElement(ci,{style:ks.emptyText},0===m.length?"Start a conversation to Find the Perfect Diamond":"Chat Started at ".concat(Ll(m[0].createdAt)))),(()=>{const e=[...m];return e.map((t,r)=>{var o,i,a,l,s,u;const c=r===e.length-1,d=Boolean((null===(o=M[t.id])||void 0===o||null===(o=o.response)||void 0===o||null===(o=o.body)||void 0===o?void 0:o.diamonds)&&(null===(i=M[t.id])||void 0===i||null===(i=i.response)||void 0===i||null===(i=i.body)||void 0===i?void 0:i.diamonds.length)>0);return n.createElement(Pn,{key:t.id+r,style:{gap:12}},n.createElement(ba,{message:t,theme:W,priceMode:L,handleFeedbackAction:Q,onReloadResults:te,reloading:A.has(t.id),hasResults:d,totalResults:(null===(a=M[t.id])||void 0===a||null===(a=a.response)||void 0===a||null===(a=a.header)||void 0===a?void 0:a.total_diamonds_found)||0,shownResults:(null===(l=M[t.id])||void 0===l||null===(l=l.response)||void 0===l||null===(l=l.body)||void 0===l?void 0:l.diamonds.length)||0,onSuggestionSelect:ee,isLatest:c,isTyping:E===t.id}),"assistant"===t.role&&t.search_payload&&Object.keys(t.search_payload).length>0&&!M[t.id]&&n.createElement(fs,{priceMode:L,messageId:t.id,payload:t.search_payload,onFetched:(e,t)=>{var n;D(n=>bs(bs({},n),{},{[e]:t}));const r=null==t||null===(n=t.response)||void 0===n||null===(n=n.body)||void 0===n?void 0:n.diamonds;if(Array.isArray(r)&&r.length>0)try{var o;null===(o=H.current)||void 0===o||o.scrollTo({x:0,y:O+120,animated:!0})}catch(e){}else y(t=>t.map(t=>t.id===e?bs(bs({},t),{},{id:t.id,text:Y,isLoading:!1}):t))}}),"assistant"===t.role&&d&&n.createElement(ds,{data:(null===(s=M[t.id])||void 0===s||null===(s=s.response)||void 0===s||null===(s=s.body)||void 0===s?void 0:s.diamonds)||[],totalResults:(null===(u=M[t.id])||void 0===u||null===(u=u.response)||void 0===u||null===(u=u.header)||void 0===u?void 0:u.total_diamonds_found)||0,onViewAll:K,onItemPress:$,item:t}),n.createElement(Ul,{message:t,priceMode:L||"",handleFeedbackAction:Q,onReloadResults:te,reloading:A.has(t.id),hasResults:d}))})})()),n.createElement(Pn,{style:ks.borderTop}),n.createElement(Pn,{style:[ks.bottomContainer,q?{maxWidth:608,alignSelf:"center",width:"100%"}:{}]},n.createElement(pa,{value:g,onChangeText:b,onSend:Z,disabled:w,placeholder:c,theme:W,inputRef:B}),n.createElement(ns,{active:V}))))});Ss.displayName="ChatWidget";const ks=$e.create({container:{flex:1,width:"100%"},listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"},emptyContainer:{padding:16,alignItems:"center",justifyContent:"center",backgroundColor:"#FFFFFF"},emptyText:{fontSize:13,fontWeight:"400",color:"#4F4E57"},bottomContainer:{paddingVertical:12,paddingHorizontal:16,flexDirection:"column",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",gap:12},borderTop:{borderTopColor:"#E0E0E0",borderTopWidth:1}}),xs=$e.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:t="chat-widget",apiUrl:r,theme:o,height:i="500px",width:a="360px",button:l={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:s,isBetaMode:u}=e,c="".concat(t,"-modal"),d="".concat(t,"-launcher");let f=document.getElementById(d);var p,h,v,m;f||(f=document.createElement("button"),f.id=d,f.type="button",f.innerText=l.label||"",f.innerHTML=l.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",f.style.color=l.iconColor||"#ffffff",f.style.position="fixed",f.style.zIndex="2147483000",f.style.borderRadius="100px",f.style.padding="0",f.style.width="56px",f.style.height="56px",f.style.backgroundColor=l.backgroundColor||"transparent",f.style.color=l.labelColor||"transparent",f.style.border="none",f.style.cursor="pointer",f.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",f.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",f.style.fontSize="14px",f.style.bottom=(null===(p=l.buttonPosition)||void 0===p?void 0:p.bottom)||"24px",null!==(h=l.buttonPosition)&&void 0!==h&&h.top&&(f.style.top=l.buttonPosition.top),f.style.right=(null===(v=l.buttonPosition)||void 0===v?void 0:v.right)||"20px",null!==(m=l.buttonPosition)&&void 0!==m&&m.left&&(f.style.left=l.buttonPosition.left),document.body.appendChild(f));let y=document.getElementById(c);var g,b,w,S;y||(y=document.createElement("div"),y.id=c,y.style.position="fixed",y.style.zIndex="2147483000",y.style.bottom=(null===(g=l.modalPosition)||void 0===g?void 0:g.bottom)||"30px",null!==(b=l.modalPosition)&&void 0!==b&&b.top&&(y.style.top=l.modalPosition.top),y.style.right=(null===(w=l.modalPosition)||void 0===w?void 0:w.right)||"30px",null!==(S=l.modalPosition)&&void 0!==S&&S.left&&(y.style.left=l.modalPosition.left),y.style.width=a,y.style.height=i,y.style.maxWidth="30%",y.style.maxHeight="80%",y.style.backgroundColor="#ffffff",y.style.borderRadius="12px",y.style.overflow="hidden",y.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",y.style.display="none",y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",y.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(y)),function(e,t,r,o,i,a,l,s,u){const c=(0,In.H)(e),d=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),o=window.ReactNativeWebView;if(null!=o&&o.postMessage)o.postMessage(r);else{try{var i;null===(i=window.parent)||void 0===i||i.postMessage(n,"*")}catch(e){}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch(e){}}},f=n.createElement(Pn,{style:xs.root},n.createElement(Ss,{apiUrl:t,theme:r,onClose:o,onClearChat:()=>{},onViewAllPress:(e,t)=>{d("ai_view_all",{url:e,payload:t}),null==o||o()},onItemPress:(e,t)=>{d("ai_item_click",{url:e,item:t}),null==o||o()},isBetaMode:u}));if(c.render(f),"web"===Tn.OS&&a)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));Po.load({writeKey:a,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{var t,r,o;let[i]=e;null==i||null===(t=(r=i).debug)||void 0===t||t.call(r,!0),window.analytics=i,null===(o=i.page)||void 0===o||o.call(i);try{const e=await zl(),t=null==e?void 0:e.id;t&&i.identify(t)}catch(e){}const a=n.createElement(Io,{client:i},f);c.render(a)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(y,r,o,()=>x(!1),0,s,0,0,u);let k=!1;const x=e=>{k=e,e?(y.style.display="block",requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(y.style.opacity="0",y.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{k||(y.style.display="none")},230))};f.onclick=()=>{try{const o=window.analytics;var e,t,n,r;o&&(k?null===(e=(t=o.track(Hl.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""})).then)||void 0===e||e.call(t):null===(n=(r=o.track(Hl.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""})).then)||void 0===n||n.call(r))}catch(e){}x(!k)}},window.clearChat=function(){t.emit("clearChat")},window.changePriceMode=function(e){t.emit("changePriceMode",{priceMode:e})}})()})();
2
+ (()=>{var e,t,n,r,i={20:(e,t)=>{"use strict";t.A=function(e,t,r){if(Object.prototype.hasOwnProperty.call(n,e))for(var i=n[e],o=0,a=i.length;o<a;++o)r[i[o]]=t};var n={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]}},38:e=>{"use strict";class t{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}}e.exports=t,t.default=t},87:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(t=>{null!=t&&("function"!=typeof t?"object"!=typeof t?console.error("mergeRefs cannot handle Refs of type boolean, number or string, received ref "+String(t)):t.current=e:t(e))})}}n.d(t,{A:()=>r}),n(6540)},145:(e,t,n)=>{"use strict";let r,i,o=n(7793);class a extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a},197:()=>{},254:(e,t,n)=>{"use strict";function r(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&!0===t[r]&&(n[r]=e[r]);return n}n.d(t,{A:()=>r})},356:(e,t)=>{"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},396:(e,t,n)=>{"use strict";let r=n(7793);class i extends r{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)}}e.exports=i,i.default=i,r.registerAtRule(i)},472:(e,t,n)=>{"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},508:(e,t,n)=>{"use strict";t.A=function(e,t,n,a){if("string"==typeof t&&s.hasOwnProperty(e)){var u=function(e,t){if((0,i.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,a=n.length;o<a;++o){var s=n[o],u=[s];for(var c in t){var d=(0,r.default)(c);if(s.indexOf(d)>-1&&"order"!==d)for(var h=t[c],f=0,p=h.length;f<p;++f)u.unshift(s.replace(d,l[h[f]]+d))}n[o]=u.join(",")}return n.join(",")}(t,a),c=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return c;var d=u.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?d:(n["Webkit"+(0,o.default)(e)]=c,n["Moz"+(0,o.default)(e)]=d,u)}};var r=a(n(5721)),i=a(n(4014)),o=a(n(7091));function a(e){return e&&e.__esModule?e:{default:e}}var s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},524:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.d(t,{h:()=>o});var i=n(2453),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},728:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(2555),i=n(8168),o=n(8587),a=n(6540),s=n(3642),l=[];function u(e){return l[e-1]}var c=n(6927),d=/^data:/;class h{static has(e){var t=h._entries;return d.test(e)||Boolean(t[e])}static add(e){var t=h._entries,n=Date.now();t[e]?(t[e].lastUsedTimestamp=n,t[e].refCount+=1):t[e]={lastUsedTimestamp:n,refCount:1}}static remove(e){var t=h._entries;t[e]&&(t[e].refCount-=1),h._cleanUpIfNeeded()}static _cleanUpIfNeeded(){var e,t,n=h._entries,r=Object.keys(n);r.length+1>h._maximumEntries&&(r.forEach(r=>{var i=n[r];(!t||i.lastUsedTimestamp<t.lastUsedTimestamp)&&0===i.refCount&&(e=r,t=i)}),e&&delete n[e])}}h._maximumEntries=256,h._entries={};var f=0,p={},m={abort(e){var t=p[""+e];t&&(t.onerror=null,t.onload=null,t=null,delete p[""+e])},getSize(e,t,n){var r=!1,i=setInterval(a,16),o=m.load(e,a,function(){"function"==typeof n&&n(),m.abort(o),clearInterval(i)});function a(){var e=p[""+o];if(e){var n=e.naturalHeight,a=e.naturalWidth;n&&a&&(t(a,n),r=!0)}r&&(m.abort(o),clearInterval(i))}},has:e=>h.has(e),load(e,t,n){f+=1;var r=new window.Image;return r.onerror=n,r.onload=e=>{var n=()=>t({nativeEvent:e});"function"==typeof r.decode?r.decode().then(n,n):setTimeout(n,0)},r.src=e,p[""+f]=r,f},prefetch:e=>new Promise((t,n)=>{m.load(e,()=>{h.add(e),h.remove(e),t()},n)}),queryCache(e){var t={};return e.forEach(e=>{h.has(e)&&(t[e]="disk/memory")}),Promise.resolve(t)}};const v=m;var g=n(9518),y=n(8997),b=n(5243),_=n(9176),w=n(4078),S=["aria-label","accessibilityLabel","blurRadius","defaultSource","draggable","onError","onLayout","onLoad","onLoadEnd","onLoadStart","pointerEvents","source","style"],C="LOADED",E="LOADING",x=0,k=/^(data:image\/svg\+xml;utf8,)(.*)/;function A(e){var t=null;if("number"==typeof e){var n=u(e);if(null==n)throw new Error('Image: asset with ID "'+e+'" could not be found. Please check the image source or packager.');var r=n.scales[0];if(n.scales.length>1){var i=g.A.get();r=n.scales.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}var o=1!==r?"@"+r+"x":"";t=n?n.httpServerLocation+"/"+n.name+o+"."+n.type:""}else"string"==typeof e?t=e:e&&"string"==typeof e.uri&&(t=e.uri);if(t){var a=t.match(k);if(a){var s=a[1],l=a[2];return""+s+encodeURIComponent(l)}}return t}var R=a.forwardRef((e,t)=>{var n=e["aria-label"],r=e.accessibilityLabel,l=e.blurRadius,d=e.defaultSource,h=e.draggable,f=e.onError,p=e.onLayout,m=e.onLoad,g=e.onLoadEnd,k=e.onLoadStart,R=e.pointerEvents,T=e.source,I=e.style,N=(0,o.A)(e,S),L=n||r,M=a.useState(()=>{var e=A(T);return null!=e&&v.has(e)?C:"IDLE"}),D=M[0],F=M[1],j=a.useState({}),z=j[0],V=j[1],B=a.useContext(b.A),H=a.useRef(null),W=a.useRef(x++),U=a.useRef(null),Y=D===C||D===E&&null==d,q=function(e,t,n,r){var i=y.A.flatten(e),o=i.filter,a=i.resizeMode,s=i.shadowOffset,l=i.tintColor;i.resizeMode&&(0,w.m)("Image.style.resizeMode","Image: style.resizeMode is deprecated. Please use props.resizeMode."),i.tintColor&&(0,w.m)("Image.style.tintColor","Image: style.tintColor is deprecated. Please use props.tintColor.");var u=[],d=null;if(o&&u.push(o),t&&u.push("blur("+t+"px)"),s){var h=(0,c.l5)(i);h&&u.push("drop-shadow("+h+")")}return(r||l)&&null!=n&&u.push("url(#tint-"+n+")"),u.length>0&&(d=u.join(" ")),[a,d,l]}(I,l,W.current,e.tintColor),K=q[0],$=q[1],G=q[2],X=e.resizeMode||K||"cover",Q=e.tintColor||G,J=Y?T:d,Z=A(J),ee=function(e){if("number"==typeof e){var t=u(e);return{height:t.height,width:t.width}}if(null!=e&&!Array.isArray(e)&&"object"==typeof e)return{height:e.height,width:e.width}}(J),te=Z?'url("'+Z+'")':null,ne=function(){if(null!=H.current&&("center"===X||"repeat"===X)){var e=H.current,t=e.naturalHeight,n=e.naturalWidth,r=z.height,i=z.width;if(t&&n&&r&&i){var o=Math.min(1,i/n,r/t);return Math.ceil(o*n)+"px "+Math.ceil(o*t)+"px"}}}(),re=Z?(0,s.A)("img",{alt:L||"",style:P.accessibilityImage$raw,draggable:h||!1,ref:H,src:Z}):null,ie=A(T);return a.useEffect(()=>{function e(){null!=U.current&&(v.abort(U.current),U.current=null)}return e(),null!=ie&&(F(E),k&&k(),U.current=v.load(ie,function(e){F(C),m&&m(e),g&&g()},function(){F("ERRORED"),f&&f({nativeEvent:{error:"Failed to load resource "+ie}}),g&&g()})),e},[ie,U,F,f,m,g,k]),a.createElement(_.A,(0,i.A)({},N,{"aria-label":L,onLayout:function(e){if("center"===X||"repeat"===X||p){var t=e.nativeEvent.layout;p&&p(e),V(t)}},pointerEvents:R,ref:t,style:[P.root,B&&P.inline,ee,I,P.undo,{boxShadow:null}]}),a.createElement(_.A,{style:[P.image,O[X],{backgroundImage:te,filter:$},null!=ne&&{backgroundSize:ne}],suppressHydrationWarning:!0}),re,function(e,t){return e&&null!=t?a.createElement("svg",{style:{position:"absolute",height:0,visibility:"hidden",width:0}},a.createElement("defs",null,a.createElement("filter",{id:"tint-"+t,suppressHydrationWarning:!0},a.createElement("feFlood",{floodColor:""+e,key:e}),a.createElement("feComposite",{in2:"SourceAlpha",operator:"in"})))):null}(Q,W.current))});R.displayName="Image";var T=R;T.getSize=function(e,t,n){v.getSize(e,t,n)},T.prefetch=function(e){return v.prefetch(e)},T.queryCache=function(e){return v.queryCache(e)};var P=y.A.create({root:{flexBasis:"auto",overflow:"hidden",zIndex:0},inline:{display:"inline-flex"},undo:{blurRadius:null,shadowColor:null,shadowOpacity:null,shadowOffset:null,shadowRadius:null,tintColor:null,overlayColor:null,resizeMode:null},image:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{backgroundColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100%",width:"100%",zIndex:-1}),accessibilityImage$raw:(0,r.A)((0,r.A)({},y.A.absoluteFillObject),{},{height:"100%",opacity:0,width:"100%",zIndex:-1})}),O=y.A.create({center:{backgroundSize:"auto"},contain:{backgroundSize:"contain"},cover:{backgroundSize:"cover"},none:{backgroundPosition:"0",backgroundSize:"auto"},repeat:{backgroundPosition:"0",backgroundRepeat:"repeat",backgroundSize:"auto"},stretch:{backgroundSize:"100% 100%"}});const I=T},801:e=>{"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1042:(e,t)=>{"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},1094:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce(function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))},{})}},1099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)}},1106:(e,t,n)=>{"use strict";let{nanoid:r}=n(5042),{isAbsolute:i,resolve:o}=n(197),{SourceMapConsumer:a,SourceMapGenerator:s}=n(1866),{fileURLToPath:l,pathToFileURL:u}=n(2739),c=n(3614),d=n(3878),h=n(9746),f=Symbol("fromOffsetCache"),p=Boolean(a&&s),m=Boolean(o&&i);class v{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new 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&&(!m||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from)),m&&p){let e=new d(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 "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,o,i);return a=s?new c(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new c(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),a.input={column:n,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(u&&(a.input.url=u(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[f]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o,a,s=this.map.consumer(),c=s.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),a=i(c.source)?u(c.source):new URL(c.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let d={column:c.column,endColumn:o&&o.column,endLine:o&&o.line,line:c.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let h=s.sourceContentFor(c.source);return h&&(d.source=h),d}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}}e.exports=v,v.default=v,h&&h.registerInput&&h.registerInput(v)},1261:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("cross-fade("))return o.map(function(e){return t.replace(i,e+"cross-fade(")})};var r=n(5486),i=/cross-fade\(/g,o=["-webkit-",""]},1298:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r="npm";function i(){return r}},1420:(e,t,n)=>{"use strict";n.d(t,{YO:()=>c,il:()=>u,PZ:()=>d});var r=n(6540),i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","far","glk","he","iw","khw","ks","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),a=new Map,s={direction:"ltr",locale:"en-US"},l=(0,r.createContext)(s);function u(e){return function(e){var t=a.get(e);if(t)return t;var n=!1;if(Intl.Locale)try{var r=new Intl.Locale(e).maximize().script;n=i.has(r)}catch(t){var s=e.split("-")[0];n=o.has(s)}else{var l=e.split("-")[0];n=o.has(l)}return a.set(e,n),n}(e)?"rtl":"ltr"}function c(e){var t=e.direction,n=e.locale,i=e.children;return t||n?r.createElement(l.Provider,{children:i,value:{direction:n?u(n):t,locale:n}}):i}function d(){return(0,r.useContext)(l)}},1476:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(4500);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(2360);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(3335);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(7538);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var l=n(3863);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return l.Track}});var u=n(5525);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var c=n(2542);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var d=n(7697);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:l.Track,Page:u.Page,Screen:c.Screen,Delete:d.Delete})},1515:e=>{"use strict";function t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n(e,n,r){const i=r<.5?r*(1+n):r+n-r*n,o=2*r-i,a=t(o,i,e+1/3),s=t(o,i,e),l=t(o,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*l)<<8}const r="[-+]?\\d*\\.?\\d+",i=r+"%";function o(...e){return"\\(\\s*("+e.join(")\\s*,?\\s*(")+")\\s*\\)"}function a(...e){return"\\(\\s*("+e.slice(0,e.length-1).join(")\\s*,?\\s*(")+")\\s*/\\s*("+e[e.length-1]+")\\s*\\)"}function s(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let l;function u(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function c(e){return(parseFloat(e)%360+360)%360/360}function d(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function h(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}e.exports=function(e){if("number"==typeof e)return e>>>0===e&&e>=0&&e<=4294967295?e:null;if("string"!=typeof e)return null;const f=(void 0===l&&(l={rgb:new RegExp("rgb"+o(r,r,r)),rgba:new RegExp("rgba("+s(r,r,r,r)+"|"+a(r,r,r,r)+")"),hsl:new RegExp("hsl"+o(r,i,i)),hsla:new RegExp("hsla("+s(r,i,i,r)+"|"+a(r,i,i,r)+")"),hwb:new RegExp("hwb"+o(r,i,i)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),l);let p;if(p=f.hex6.exec(e))return parseInt(p[1]+"ff",16)>>>0;const m=function(e){switch(e){case"transparent":return 0;case"aliceblue":return 4042850303;case"antiquewhite":return 4209760255;case"aqua":case"cyan":return 16777215;case"aquamarine":return 2147472639;case"azure":return 4043309055;case"beige":return 4126530815;case"bisque":return 4293182719;case"black":return 255;case"blanchedalmond":return 4293643775;case"blue":return 65535;case"blueviolet":return 2318131967;case"brown":return 2771004159;case"burlywood":return 3736635391;case"burntsienna":return 3934150143;case"cadetblue":return 1604231423;case"chartreuse":return 2147418367;case"chocolate":return 3530104575;case"coral":return 4286533887;case"cornflowerblue":return 1687547391;case"cornsilk":return 4294499583;case"crimson":return 3692313855;case"darkblue":return 35839;case"darkcyan":return 9145343;case"darkgoldenrod":return 3095792639;case"darkgray":case"darkgrey":return 2846468607;case"darkgreen":return 6553855;case"darkkhaki":return 3182914559;case"darkmagenta":return 2332068863;case"darkolivegreen":return 1433087999;case"darkorange":return 4287365375;case"darkorchid":return 2570243327;case"darkred":return 2332033279;case"darksalmon":return 3918953215;case"darkseagreen":return 2411499519;case"darkslateblue":return 1211993087;case"darkslategray":case"darkslategrey":return 793726975;case"darkturquoise":return 13554175;case"darkviolet":return 2483082239;case"deeppink":return 4279538687;case"deepskyblue":return 12582911;case"dimgray":case"dimgrey":return 1768516095;case"dodgerblue":return 512819199;case"firebrick":return 2988581631;case"floralwhite":return 4294635775;case"forestgreen":return 579543807;case"fuchsia":case"magenta":return 4278255615;case"gainsboro":return 3705462015;case"ghostwhite":return 4177068031;case"gold":return 4292280575;case"goldenrod":return 3668254975;case"gray":case"grey":return 2155905279;case"green":return 8388863;case"greenyellow":return 2919182335;case"honeydew":return 4043305215;case"hotpink":return 4285117695;case"indianred":return 3445382399;case"indigo":return 1258324735;case"ivory":return 4294963455;case"khaki":return 4041641215;case"lavender":return 3873897215;case"lavenderblush":return 4293981695;case"lawngreen":return 2096890111;case"lemonchiffon":return 4294626815;case"lightblue":return 2916673279;case"lightcoral":return 4034953471;case"lightcyan":return 3774873599;case"lightgoldenrodyellow":return 4210742015;case"lightgray":case"lightgrey":return 3553874943;case"lightgreen":return 2431553791;case"lightpink":return 4290167295;case"lightsalmon":return 4288707327;case"lightseagreen":return 548580095;case"lightskyblue":return 2278488831;case"lightslategray":case"lightslategrey":return 2005441023;case"lightsteelblue":return 2965692159;case"lightyellow":return 4294959359;case"lime":return 16711935;case"limegreen":return 852308735;case"linen":return 4210091775;case"maroon":return 2147483903;case"mediumaquamarine":return 1724754687;case"mediumblue":return 52735;case"mediumorchid":return 3126187007;case"mediumpurple":return 2473647103;case"mediumseagreen":return 1018393087;case"mediumslateblue":return 2070474495;case"mediumspringgreen":return 16423679;case"mediumturquoise":return 1221709055;case"mediumvioletred":return 3340076543;case"midnightblue":return 421097727;case"mintcream":return 4127193855;case"mistyrose":return 4293190143;case"moccasin":return 4293178879;case"navajowhite":return 4292783615;case"navy":return 33023;case"oldlace":return 4260751103;case"olive":return 2155872511;case"olivedrab":return 1804477439;case"orange":return 4289003775;case"orangered":return 4282712319;case"orchid":return 3664828159;case"palegoldenrod":return 4008225535;case"palegreen":return 2566625535;case"paleturquoise":return 2951671551;case"palevioletred":return 3681588223;case"papayawhip":return 4293907967;case"peachpuff":return 4292524543;case"peru":return 3448061951;case"pink":return 4290825215;case"plum":return 3718307327;case"powderblue":return 2967529215;case"purple":return 2147516671;case"rebeccapurple":return 1714657791;case"red":return 4278190335;case"rosybrown":return 3163525119;case"royalblue":return 1097458175;case"saddlebrown":return 2336560127;case"salmon":return 4202722047;case"sandybrown":return 4104413439;case"seagreen":return 780883967;case"seashell":return 4294307583;case"sienna":return 2689740287;case"silver":return 3233857791;case"skyblue":return 2278484991;case"slateblue":return 1784335871;case"slategray":case"slategrey":return 1887473919;case"snow":return 4294638335;case"springgreen":return 16744447;case"steelblue":return 1182971135;case"tan":return 3535047935;case"teal":return 8421631;case"thistle":return 3636451583;case"tomato":return 4284696575;case"turquoise":return 1088475391;case"violet":return 4001558271;case"wheat":return 4125012991;case"white":return 4294967295;case"whitesmoke":return 4126537215;case"yellow":return 4294902015;case"yellowgreen":return 2597139199}return null}(e);return null!=m?m:(p=f.rgb.exec(e))?(u(p[1])<<24|u(p[2])<<16|u(p[3])<<8|255)>>>0:(p=f.rgba.exec(e))?void 0!==p[6]?(u(p[6])<<24|u(p[7])<<16|u(p[8])<<8|d(p[9]))>>>0:(u(p[2])<<24|u(p[3])<<16|u(p[4])<<8|d(p[5]))>>>0:(p=f.hex3.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+"ff",16)>>>0:(p=f.hex8.exec(e))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(e))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(e))?(255|n(c(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(e))?void 0!==p[6]?(n(c(p[6]),h(p[7]),h(p[8]))|d(p[9]))>>>0:(n(c(p[2]),h(p[3]),h(p[4]))|d(p[5]))>>>0:(p=f.hwb.exec(e))?(255|function(e,n,r){if(n+r>=1){const e=Math.round(255*n/(n+r));return e<<24|e<<16|e<<8}const i=t(0,1,e+1/3)*(1-n-r)+n,o=t(0,1,e)*(1-n-r)+n,a=t(0,1,e-1/3)*(1-n-r)+n;return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}(c(p[1]),h(p[2]),h(p[3])))>>>0:null}},1534:(e,t,n)=>{"use strict";let r=n(7793),i=n(1752);class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,r.registerRule(o)},1603:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(){this._registry={}}addListener(e,t,n){var r=function(e,t){var n=e[t];return null==n&&(n=new Set,e[t]=n),n}(this._registry,e),i={context:n,listener:t,remove(){r.delete(i)}};return r.add(i),i}emit(e){var t=this._registry[e];if(null!=t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=[...t];o<a.length;o++){var s=a[o];s.listener.apply(s.context,r)}}}removeAllListeners(e){null==e?this._registry={}:delete this._registry[e]}listenerCount(e){var t=this._registry[e];return null==t?0:t.size}}},1635:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1747:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},i=["ms","Moz","O","Webkit"];Object.keys(r).forEach(e=>{i.forEach(t=>{r[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=r[e]})});const o=r;var a=n(6610),s={backgroundColor:!0,borderColor:!0,borderTopColor:!0,borderRightColor:!0,borderBottomColor:!0,borderLeftColor:!0,color:!0,shadowColor:!0,textDecorationColor:!0,textShadowColor:!0};function l(e,t){var n=e;return null!=t&&o[t]||"number"!=typeof e?null!=t&&s[t]&&(n=(0,a.A)(e)):n=e+"px",n}},1752:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,a=0,s=!1,l="",u=!1;for(let n of e)u?u=!1:"\\"===n?u=!0:s?n===l&&(s=!1):'"'===n||"'"===n?(s=!0,l=n):"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},1804:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540),i=n(87);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>(0,i.A)(...t),[...t])}},1866:()=>{},1968:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{if(null!=e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect)return e.getBoundingClientRect()}},2008:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8425),i=n(8683),o=n(7162),a="__reactLayoutHandler",s=(o.A,null);function l(e,t){var n=(o.A&&void 0!==window.ResizeObserver&&null==s&&(s=new window.ResizeObserver(function(e){e.forEach(e=>{var t=e.target,n=t[a];"function"==typeof n&&i.A.measure(t,(t,r,i,o,a,s)=>{var l={nativeEvent:{layout:{x:t,y:r,width:i,height:o,left:a,top:s}},timeStamp:Date.now()};Object.defineProperty(l.nativeEvent,"target",{enumerable:!0,get:()=>e.target}),n(l)})})})),s);(0,r.A)(()=>{var n=e.current;null!=n&&(n[a]=t)},[e,t]),(0,r.A)(()=>{var t=e.current;return null!=t&&null!=n&&("function"==typeof t[a]?n.observe(t):n.unobserve(t)),()=>{null!=t&&null!=n&&n.unobserve(t)}},[e,n])}},2049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e[t];if(r&&n.hasOwnProperty(t))for(var o=(0,i.default)(t),a=0;a<r.length;++a){var s=r[a]+o;n[s]||(n[s]=n[t])}return n};var r,i=(r=n(7091))&&r.__esModule?r:{default:r}},2079:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter(function(e){return e!==t});return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach(function(e){e.apply(n,r)}),this},e}()},2321:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},2360:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},2453:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},2473:(e,t,n)=>{"use strict";e.exports=n(2510)},2510:e=>{"use strict";e.exports=JSON.parse('{"black":"#000000","silver":"#c0c0c0","gray":"#808080","white":"#ffffff","maroon":"#800000","red":"#ff0000","purple":"#800080","fuchsia":"#ff00ff","green":"#008000","lime":"#00ff00","olive":"#808000","yellow":"#ffff00","navy":"#000080","blue":"#0000ff","teal":"#008080","aqua":"#00ffff","orange":"#ffa500","aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","blanchedalmond":"#ffebcd","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","limegreen":"#32cd32","linen":"#faf0e6","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","oldlace":"#fdf5e6","olivedrab":"#6b8e23","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","whitesmoke":"#f5f5f5","yellowgreen":"#9acd32","rebeccapurple":"#663399"}')},2542:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(6698)),o=n(5525),a=n(3863);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},2551:(e,t,n)=>{"use strict";var r=n(6540),i=n(9982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var D,F=Object.assign;function j(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var z=!1;function V(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function B(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 1:return V(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case x:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ge=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Ee=null;function xe(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Se(e.stateNode,e.type,t))}}function ke(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Re(e,t){return e(t)}function Te(){}var Pe=!1;function Oe(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==Ce||null!==Ee)&&(Te(),Ae())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){Ne=!1}function Me(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var De=!1,Fe=null,je=!1,ze=null,Ve={onError:function(e){De=!0,Fe=e}};function Be(e,t,n,r,i,o,a,s,l){De=!1,Fe=null,Me.apply(Ve,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(o(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,Ct,Et,xt,kt=!1,At=[],Rt=null,Tt=null,Pt=null,Ot=new Map,It=new Map,Nt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Dt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void xt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){jt(e)&&n.delete(t)}function Vt(){kt=!1,null!==Rt&&jt(Rt)&&(Rt=null),null!==Tt&&jt(Tt)&&(Tt=null),null!==Pt&&jt(Pt)&&(Pt=null),Ot.forEach(zt),It.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&Bt(Rt,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),Ot.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Nt.shift()}var Wt=_.ReactCurrentBatchConfig,Ut=!0;function Yt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function qt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Kt(e,t,n,r){if(Ut){var i=Gt(e,t,n,r);if(null===i)Ur(e,t,r,$t,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Rt=Dt(Rt,e,t,n,r,i),!0;case"dragenter":return Tt=Dt(Tt,e,t,n,r,i),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,Dt(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Dt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Ur(e,t,r,$t,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var $t=null;function Gt(e,t,n,r){if($t=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),hn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(fn),mn=on(F({},fn,{dataTransfer:0})),vn=on(F({},dn,{relatedTarget:0})),gn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(F({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function xn(){return En}var kn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(kn),Rn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),Pn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(On),Nn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Mn,Fn=c&&(!Ln||Mn&&8<Mn&&11>=Mn),jn=String.fromCharCode(32),zn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Yn(e,t,n,r){ke(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function $n(e){jr(e,0)}function Gn(e){if(K(_i(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Kn)){var t=[];Yn(t,Kn,e,we(e)),Oe($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Kn)}function or(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==$(r)||(r="selectionStart"in(r=vr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Er={};function xr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=xr("animationend"),Ar=xr("animationiteration"),Rr=xr("animationstart"),Tr=xr("transitionend"),Pr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Pr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Or.length;Nr++){var Lr=Or[Nr];Ir(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Ar,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),De){if(!De)throw Error(o(198));var c=Fe;De=!1,Fe=null,je||(je=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fr(i,s,u),o=l}}}if(je)throw e=ze,je=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Dr.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Vr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var i=Yt;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=we(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case kr:case Ar:case Rr:l=gn;break;case Tr:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Ie(p,h))&&c.push(Yr(p,m,f))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:_i(l),f=null==u?s:_i(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,yi(i)===r&&((c=new c(h,p+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,p=0,f=c=l;f;f=Kr(f))p++;for(f=0,m=h;m;m=Kr(m))f++;for(;0<p-f;)c=Kr(c),p--;for(;0<f-p;)h=Kr(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Kr(c),h=Kr(h)}c=null}else c=null;null!==l&&$r(a,s,l,c,!1),null!==u&&null!==d&&$r(a,d,u,c,!0)}if("select"===(l=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Xn;else if(Un(s))if(Qn)v=ar;else{v=ir;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Yn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?_i(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(g=qr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:g}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,jn);case"textInput":return(e=t.data)===jn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Vn(e,t)?(e=en(),Zt=Jt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}jr(a,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Yr(e,o,i)),null!=(o=Ie(e,t))&&r.push(Yr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ie(n,o))&&a.unshift(Yr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Yr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,vi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[hi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[fi]||null}var Si=[],Ci=-1;function Ei(e){return{current:e}}function xi(e){0>Ci||(e.current=Si[Ci],Si[Ci]=null,Ci--)}function ki(e,t){Ci++,Si[Ci]=e.current,e.current=t}var Ai={},Ri=Ei(Ai),Ti=Ei(!1),Pi=Ai;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!=e.childContextTypes}function Ni(){xi(Ti),xi(Ri)}function Li(e,t,n){if(Ri.current!==Ai)throw Error(o(168));ki(Ri,t),ki(Ti,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return F({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ri.current,ki(Ri,e),ki(Ti,Ti.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Mi(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,xi(Ti),xi(Ri),ki(Ri,e)):xi(Ti),ki(Ti,n)}var ji=null,zi=!1,Vi=!1;function Bi(e){null===ji?ji=[e]:ji.push(e)}function Hi(){if(!Vi&&null!==ji){Vi=!0;var e=0,t=bt;try{var n=ji;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ji=null,zi=!1}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ke(Ze,Hi),t}finally{bt=t,Vi=!1}}return null}var Wi=[],Ui=0,Yi=null,qi=0,Ki=[],$i=0,Gi=null,Xi=1,Qi="";function Ji(e,t){Wi[Ui++]=qi,Wi[Ui++]=Yi,Yi=e,qi=t}function Zi(e,t,n){Ki[$i++]=Xi,Ki[$i++]=Qi,Ki[$i++]=Gi,Gi=e;var r=Xi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Xi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===Yi;)Yi=Wi[--Ui],Wi[Ui]=null,qi=Wi[--Ui],Wi[Ui]=null;for(;e===Gi;)Gi=Ki[--$i],Ki[$i]=null,Qi=Ki[--$i],Ki[$i]=null,Xi=Ki[--$i],Ki[$i]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Xi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=_.ReactCurrentBatchConfig;function go(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function _o(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&bo(o)===t.type)?((r=i(t,n.props)).ref=go(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=go(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=go(e,null,t),n.return=e,n;case S:return(t=ju(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=f(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return n(i,d),io&&Ji(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Ji(i,m),u}for(d=r(i,d);m<s.length;m++)null!==(v=p(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(i,e)}),io&&Ji(i,m),u}function v(i,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),io&&Ji(i,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=h(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return io&&Ji(i,v),c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=p(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Ji(i,v),c}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===C){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===C?((o=Mu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Lu(a.type,a.key,a.props,null,r.mode,l)).ref=go(r,o,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=ju(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(M(a))return v(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Fu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=_o(!0),So=_o(!1),Co=Ei(null),Eo=null,xo=null,ko=null;function Ao(){ko=xo=Eo=null}function Ro(e){var t=Co.current;xi(Co),e._currentValue=t}function To(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Eo=e,ko=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===Eo)throw Error(o(308));xo=e,Eo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Io=null;function No(e){null===Io?Io=[e]:Io.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Do=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rl){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mo(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mo(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wo(e,t,n,r){var i=e.updateQueue;Do=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=F({},d,h);break e;case 2:Do=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function Uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Yo={},qo=Ei(Yo),Ko=Ei(Yo),$o=Ei(Yo);function Go(e){if(e===Yo)throw Error(o(174));return e}function Xo(e,t){switch(ki($o,t),ki(Ko,e),ki(qo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(qo),ki(qo,t)}function Qo(){xi(qo),xi(Ko),xi($o)}function Jo(e){Go($o.current);var t=Go(qo.current),n=le(t,e.type);t!==n&&(ki(Ko,e),ki(qo,n))}function Zo(e){Ko.current===e&&(xi(qo),xi(Ko))}var ea=Ei(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=_.ReactCurrentDispatcher,oa=_.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=n(r,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ga(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function _a(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h,sa.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function Ea(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Da(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Oa(9,ka.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));30&aa||xa(n,t,i)}return i}function xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Ta(e)}function Aa(e,t,n){return n(function(){Ra(t)&&Ta(e)})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Ta(e){var t=Mo(e,1);null!==t&&nu(t,e,1,-1)}function Pa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t.queue=e,e=e.dispatch=$a.bind(null,sa,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}sa.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ma(e,t){return Na(8390656,8,e,t)}function Da(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function ja(e,t){return La(4,4,e,t)}function za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,za.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function qa(){return ba().memoizedState}function Ka(e,t,n){var r=tu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e)?Xa(t,n):null!==(n=Lo(e,t,n,r))&&(nu(n,e,r,eu()),Qa(n,t,r))}function $a(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Lo(e,t,i,r))&&(nu(n,e,r,i=eu()),Qa(n,t,r))}}function Ga(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Oo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Oo,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Na(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Ya.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));30&aa||xa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Tl.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=ha++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Da,useImperativeHandle:Va,useInsertionEffect:Fa,useLayoutEffect:ja,useMemo:Wa,useReducer:wa,useRef:Ia,useState:function(){return wa(_a)},useDebugValue:Ba,useDeferredValue:function(e){return Ua(ba(),la.memoizedState,e)},useTransition:function(){return[wa(_a)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1},ts={readContext:Oo,useCallback:Ha,useContext:Oo,useEffect:Da,useImperativeHandle:Va,useInsertionEffect:Fa,useLayoutEffect:ja,useMemo:Wa,useReducer:Sa,useRef:Ia,useState:function(){return Sa(_a)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ua(t,la.memoizedState,e)},useTransition:function(){return[Sa(_a)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:qa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=zo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(nu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=zo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(nu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=zo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Vo(e,i,r))&&(nu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ii(t)?Pi:Ri.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ii(t)?Pi:Ri.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Wo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Yl=r),ds(0,t)},n}function ps(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xu.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,Vo(n,t,1))),n.lanes|=1),e)}var ys=_.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?So(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=va(e,t,n,r,o,i),n=ga(),null===e||bs?(io&&n&&eo(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Iu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Us(e,t,i)}return t.flags|=1,(e=Nu(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Us(e,t,i);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Nl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Nl,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Nl,Il),Il|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Nl,Il),Il|=r;return _s(e,t,i,n),t.child}function xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Ii(n)?Pi:Ri.current;return o=Oi(t,o),Po(t,i),n=va(e,t,n,r,o,i),r=ga(),null===e||bs?(io&&r&&eo(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Us(e,t,i))}function As(e,t,n,r,i){if(Ii(n)){var o=!0;Di(t)}else o=!1;if(Po(t,i),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Oo(u):Oi(t,u=Ii(n)?Pi:Ri.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Do=!1;var h=t.memoizedState;a.state=h,Wo(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ti.current||Do?("function"==typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Do||os(t,n,s,r,h,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,jo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,h=a.context,l="object"==typeof(l=n.contextType)&&null!==l?Oo(l):Oi(t,l=Ii(n)?Pi:Ri.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,r,l),Do=!1,h=t.memoizedState,a.state=h,Wo(t,r,a,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||Do?("function"==typeof f&&(rs(t,n,f,r),p=t.memoizedState),(u=Do||os(t,n,u,r,h,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,o,i)}function Rs(e,t,n,r,i,o){xs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),Us(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):_s(e,t,s,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ps(e,t,n,r,i){return po(),mo(i),t.flags|=256,_s(e,t,n,r),t.child}var Os,Is,Ns,Ls,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Du(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ms,e):js(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Du({mode:"visible",children:r.children},i,0,null),(a=Mu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&wo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ms,a);if(!(1&t.mode))return zs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mo(e,i),nu(r,e,i,-1))}return mu(),zs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Au.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[$i++]=Xi,Ki[$i++]=Qi,Ki[$i++]=Gi,Xi=e.id,Qi=e.overflow,Gi=t),(t=js(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Nu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==r?s=Nu(r,s):(s=Mu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Nu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&mo(r),wo(t,e.child,null,n),(e=js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_s(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,n,t);else if(19===e.tag)Vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ys(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ii(t.type)&&Ni(),qs(t),null;case 3:return r=t.stateNode,Qo(),xi(Ti),xi(Ri),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),Is(e,t),qs(t),null;case 5:Zo(t);var i=Go($o.current);if(n=t.type,null!==e&&null!=t.stateNode)Ns(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=Go(qo.current),ho(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[fi]=a,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)zr(Mr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":q(r),Z(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)zr(Mr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":X(e,r),i=G(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":q(e),Z(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go($o.current),Go(qo.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return qs(t),null;case 13:if(xi(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Ll&&(Ll=3):mu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Qo(),Is(e,t),null===e&&Hr(t.stateNode.containerInfo),qs(t),null;case 10:return Ro(t.type._context),qs(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return qs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Ys(a,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ys(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hl&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ys(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Qe()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function $s(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),xi(Ti),xi(Ri),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return Qo(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ns=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go(qo.current);var o,a=null;switch(n){case"input":i=G(e,i),r=G(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Xs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[vi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xs||Zs(n,t);case 6:var r=cl,i=dl;cl=null,hl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&el(n,t,a),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Xs&&(Zs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,hl(e,t,n),Xs=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));fl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Eu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Eu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(ml(t,e),gl(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ve(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,c)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Qe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(c=Xs)||d,ml(t,e),Xs=c):ml(t,e),gl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Zs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:Zs(f,f.return);break;case 22:if(null!==f.memoizedState){wl(h);continue}}null!==p?(p.return=f,Js=p):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),gl(e),4&r&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Gs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Gs;var u=Xs;if(Gs=a,(Xs=l)&&!u)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Gs=s,Xs=u}_l(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):_l(e)}}function _l(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Uo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Uo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&il(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Eu(t,i,e)}}var o=t.return;try{il(t)}catch(e){Eu(t,o,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cl,El=Math.ceil,xl=_.ReactCurrentDispatcher,kl=_.ReactCurrentOwner,Al=_.ReactCurrentBatchConfig,Rl=0,Tl=null,Pl=null,Ol=0,Il=0,Nl=Ei(0),Ll=0,Ml=null,Dl=0,Fl=0,jl=0,zl=null,Vl=null,Bl=0,Hl=1/0,Wl=null,Ul=!1,Yl=null,ql=null,Kl=!1,$l=null,Gl=0,Xl=0,Ql=null,Jl=-1,Zl=0;function eu(){return 6&Rl?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 1&e.mode?2&Rl&&0!==Ol?Ol&-Ol:null!==vo.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nu(e,t,n,r){if(50<Xl)throw Xl=0,Ql=null,Error(o(185));gt(e,n,r),2&Rl&&e===Tl||(e===Tl&&(!(2&Rl)&&(Fl|=n),4===Ll&&su(e,Ol)),ru(e,r),1===n&&0===Rl&&!(1&t.mode)&&(Hl=Qe()+500,zi&&Hi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Tl?Ol:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(lu.bind(null,e)):Bi(lu.bind(null,e)),ai(function(){!(6&Rl)&&Hi()}),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Jl=-1,Zl=0,6&Rl)throw Error(o(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=ht(e,e===Tl?Ol:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var i=Rl;Rl|=2;var a=pu();for(Tl===e&&Ol===t||(Wl=null,Hl=Qe()+500,hu(e,t));;)try{yu();break}catch(t){fu(e,t)}Ao(),xl.current=a,Rl=i,null!==Pl?t=0:(Tl=null,Ol=0,t=Ll)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=ou(e,i)),1===t)throw n=Ml,hu(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=ou(e,a))),1!==t)))throw n=Ml,hu(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wu(e,Vl,Wl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bl+500-Qe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,Vl,Wl),t);break}wu(e,Vl,Wl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,Vl,Wl),r);break}wu(e,Vl,Wl);break;default:throw Error(o(329))}}}return ru(e,Qe()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Vl,Vl=n,null!==t&&au(t)),e}function au(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function su(e,t){for(t&=~jl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Rl)throw Error(o(327));Su();var t=ht(e,0);if(!(1&t))return ru(e,Qe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Ml,hu(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Vl,Wl),ru(e,Qe()),null}function uu(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Hl=Qe()+500,zi&&Hi())}}function cu(e){null!==$l&&0===$l.tag&&!(6&Rl)&&Su();var t=Rl;Rl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,!(6&(Rl=t))&&Hi()}}function du(){Il=Nl.current,xi(Nl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ni();break;case 3:Qo(),xi(Ti),xi(Ri),ra();break;case 5:Zo(r);break;case 4:Qo();break;case 13:case 19:xi(ea);break;case 10:Ro(r.type._context);break;case 22:case 23:du()}n=n.return}if(Tl=e,Pl=e=Nu(e.current,null),Ol=Il=t,Ll=0,Ml=null,jl=Fl=Dl=0,Vl=zl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Io=null}return e}function fu(e,t){for(;;){var n=Pl;try{if(Ao(),ia.current=Ja,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,ha=0,kl.current=null,null===n||null===n.return){Ll=1,Ml=t,Pl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ms(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(o(426))}else if(io&&1&l.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mo(us(u,l));break e}}a=u=us(u,l),4!==Ll&&(Ll=2),null===zl?zl=[a]:zl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==ql&&ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}_u(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function pu(){var e=xl.current;return xl.current=Ja,null===e?Ja:e}function mu(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Tl||!(268435455&Dl)&&!(268435455&Fl)||su(Tl,Ol)}function vu(e,t){var n=Rl;Rl|=2;var r=pu();for(Tl===e&&Ol===t||(Wl=null,hu(e,t));;)try{gu();break}catch(t){fu(e,t)}if(Ao(),Rl=n,xl.current=r,null!==Pl)throw Error(o(261));return Tl=null,Ol=0,Ll}function gu(){for(;null!==Pl;)bu(Pl)}function yu(){for(;null!==Pl&&!Ge();)bu(Pl)}function bu(e){var t=Cl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?_u(e):Pl=t,kl.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=$s(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Ll=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Il)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Ll&&(Ll=5)}function wu(e,t,n){var r=bt,i=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Su()}while(null!==$l);if(6&Rl)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Tl&&(Pl=Tl=null,Ol=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Tu(tt,function(){return Su(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Rl;Rl|=4,kl.current=null,function(e,t){if(ei=Ut,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++c===i&&(l=s),f===a&&++d===r&&(u=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),vl(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Xe(),Rl=l,bt=s,Al.transition=a}else e.current=n;if(Kl&&(Kl=!1,$l=e,Gl=i),0===(a=e.pendingLanes)&&(ql=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Yl,Yl=null,e;!!(1&Gl)&&0!==e.tag&&Su(),1&(a=e.pendingLanes)?e===Ql?Xl++:(Xl=0,Ql=e):Xl=0,Hi()}(e,t,n,r)}finally{Al.transition=i,bt=r}return null}function Su(){if(null!==$l){var e=_t(Gl),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===$l)var r=!1;else{if(e=$l,$l=null,Gl=0,6&Rl)throw Error(o(331));var i=Rl;for(Rl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(ol(d),d===c){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Rl=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function Cu(e,t,n){e=Vo(e,t=fs(0,t=us(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Vo(t,e=ps(t,e=us(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function xu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Ol&n)===n&&(4===Ll||3===Ll&&(130023424&Ol)===Ol&&500>Qe()-Bl?hu(e,0):jl|=n),ru(e,t)}function ku(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=eu();null!==(e=Mo(e,t))&&(gt(e,t,n),ru(e,n))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ku(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),ku(e,n)}function Tu(e,t){return Ke(e,t)}function Pu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Pu(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Iu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Mu(n.children,i,a,t);case E:s=8,i|=8;break;case x:return(e=Ou(12,n,t,2|i)).elementType=x,e.lanes=a,e;case T:return(e=Ou(13,n,t,i)).elementType=T,e.lanes=a,e;case P:return(e=Ou(19,n,t,i)).elementType=P,e.lanes=a,e;case N:return Du(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case A:s=9;break e;case R:s=11;break e;case O:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ou(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,i,o,a,s,l){return e=new zu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ou(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function Bu(e){if(!e)return Ai;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Mi(e,n,t)}return t}function Hu(e,t,n,r,i,o,a,s,l){return(e=Vu(n,r,!0,e,0,o,0,s,l)).context=Bu(null),n=e.current,(o=zo(r=eu(),i=tu(n))).callback=null!=t?t:null,Vo(n,o,i),e.current.lanes=i,gt(e,i,r),ru(e,r),e}function Wu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vo(i,t,a))&&(nu(e,i,a,o),Bo(e,i,a)),a}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)bs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),po();break;case 5:Jo(t);break;case 1:Ii(t.type)&&Di(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Co,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fs(e,t,n):(ki(ea,1&ea.current),null!==(e=Us(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Us(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Zi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var i=Oi(t,Ri.current);Po(t,n),i=va(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Di(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),_s(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,jo(e,t),Wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Us(e,t,n);break e}_s(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),xs(e,t),_s(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Fs(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_s(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return _s(e,t,t.pendingProps,n),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Co,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Us(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),To(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),To(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Oo(i)),t.flags|=1,_s(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Ws(e,t),t.tag=1,Ii(r)?(e=!0,Di(t)):e=!1,Po(t,n),as(t,r,i),ls(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Es(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function $u(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Zu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Uu(a);s.call(e)}}Wu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Uu(a);o.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Uu(l);s.call(e)}}var l=Vu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[pi]=l.current,Hr(8===e.nodeType?e.parentNode:e),cu(function(){Wu(t,l,n,r)}),l}(n,t,e,i,r);return Uu(a)}Gu.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wu(e,t,null,null)},Gu.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Wu(null,e,null,null)}),t[pi]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Rl)&&(Hl=Qe()+500,Hi()))}break;case 13:cu(function(){var t=Mo(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),qu(e,1)}},St=function(e){if(13===e.tag){var t=Mo(e,134217728);null!==t&&nu(t,e,134217728,eu()),qu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tu(e),n=Mo(e,t);null!==n&&nu(n,e,t,eu()),qu(e,t)}},Et=function(){return bt},xt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=uu,Te=cu;var ec={usingClientEntryPoint:!1,Events:[bi,_i,wi,ke,Ae,uu]},tc={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new $u(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(o(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(o(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[pi]=null})}),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zu(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2555:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>a})},2572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(6041));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},2613:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,function(){var n;return(0,r.YH)(this,function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,function(){var o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})}},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2739:()=>{},2833:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},2882:e=>{var t="-".charCodeAt(0),n="+".charCodeAt(0),r=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){var a,s,l,u=0,c=e.length;if(0===c||!function(e){var i,o=e.charCodeAt(0);if(o===n||o===t){if((i=e.charCodeAt(1))>=48&&i<=57)return!0;var a=e.charCodeAt(2);return i===r&&a>=48&&a<=57}return o===r?(i=e.charCodeAt(1))>=48&&i<=57:o>=48&&o<=57}(e))return!1;for((a=e.charCodeAt(u))!==n&&a!==t||u++;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),a===r&&s>=48&&s<=57)for(u+=2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;if(a=e.charCodeAt(u),s=e.charCodeAt(u+1),l=e.charCodeAt(u+2),(a===i||a===o)&&(s>=48&&s<=57||(s===n||s===t)&&l>=48&&l<=57))for(u+=s===n||s===t?3:2;u<c&&!((a=e.charCodeAt(u))<48||a>57);)u+=1;return{number:e.slice(0,u),unit:e.slice(u)}}},2895:(e,t,n)=>{"use strict";let r=n(396),i=n(9371),o=n(7793),a=n(3614),s=n(5238),l=n(145),u=n(3438),c=n(1106),d=n(6966),h=n(1752),f=n(3152),p=n(9577),m=n(6846),v=n(3717),g=n(5644),y=n(1534),b=n(3303),_=n(38);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new m(e)}w.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new m).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return w([i(n)]).process(e,t)},i},w.stringify=b,w.parse=p,w.fromJSON=u,w.list=h,w.comment=e=>new i(e),w.atRule=e=>new r(e),w.decl=e=>new s(e),w.rule=e=>new y(e),w.root=e=>new g(e),w.document=e=>new l(e),w.CssSyntaxError=a,w.Declaration=s,w.Container=o,w.Processor=m,w.Document=l,w.Comment=i,w.Warning=_,w.AtRule=r,w.Result=v,w.Input=c,w.Rule=y,w.Root=g,w.Node=f,d.registerPostcss(w),e.exports=w,w.default=w},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1515),i=n.n(r);const o=e=>{if(null==e)return e;var t=i()(e);return null!=t?t=(t<<24|t>>>8)>>>0:void 0}},3098:(e,t,n)=>{"use strict";n.d(t,{A:()=>Q});var r=n(6540),i=n(1968),o=()=>{},a={},s=[];function l(e){return e>20?e%20:e}function u(e,t){var n,r,u,c=!1,d=e.changedTouches,h=e.type,f=!0===e.metaKey,p=!0===e.shiftKey,m=d&&d[0].force||0,v=l(d&&d[0].identifier||0),g=d&&d[0].clientX||e.clientX,y=d&&d[0].clientY||e.clientY,b=d&&d[0].pageX||e.pageX,_=d&&d[0].pageY||e.pageY,w="function"==typeof e.preventDefault?e.preventDefault.bind(e):o,S=e.timeStamp;function C(e){return Array.prototype.slice.call(e).map(e=>({force:e.force,identifier:l(e.identifier),get locationX(){return k(e.clientX)},get locationY(){return A(e.clientY)},pageX:e.pageX,pageY:e.pageY,target:e.target,timestamp:S}))}if(null!=d)r=C(d),u=C(e.touches);else{var E=[{force:m,identifier:v,get locationX(){return k(g)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S}];r=E,u="mouseup"===h||"dragstart"===h?s:E}var x={bubbles:!0,cancelable:!0,currentTarget:null,defaultPrevented:e.defaultPrevented,dispatchConfig:a,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>c,isTrusted:e.isTrusted,nativeEvent:{altKey:!1,ctrlKey:!1,metaKey:f,shiftKey:p,changedTouches:r,force:m,identifier:v,get locationX(){return k(g)},get locationY(){return A(y)},pageX:b,pageY:_,target:e.target,timestamp:S,touches:u,type:h},persist:o,preventDefault:w,stopPropagation(){c=!0},target:e.target,timeStamp:S,touchHistory:t.touchHistory};function k(e){if(n=n||(0,i.A)(x.currentTarget))return e-n.left}function A(e){if(n=n||(0,i.A)(x.currentTarget))return e-n.top}return x}var c="mousedown",d="mousemove",h="mouseup",f="dragstart",p="touchstart",m="touchmove",v="touchend",g="touchcancel",y="scroll",b="select",_="selectionchange";function w(e){return e===p||e===c}function S(e){return e===m||e===d}function C(e){return e===v||e===h||E(e)}function E(e){return e===g||e===f}var x="__reactResponderId";function k(e){for(var t=[];null!=e&&e!==document.body;)t.push(e),e=e.parentNode;return t}function A(e){return null!=e?e[x]:null}function R(e){return e.timeStamp||e.timestamp}function T(e){var t=e.identifier;return null==t&&console.error("Touch object is missing identifier."),t}function P(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:R(e)})}function O(e){var t=e.touchBank,n=JSON.stringify(t.slice(0,20));return t.length>20&&(n+=" (original size: "+t.length+")"),n}var I=n(7162),N={},L=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],M=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],D={touchstart:L,mousedown:L,touchmove:M,mousemove:M,scroll:["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}]},F={id:null,idPath:null,node:null},j=new Map,z=!1,V=0,B={id:null,node:null,idPath:null},H=new class{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,t){var n=this._touchHistory;if(S(e))t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[T(e)];n?(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=R(e),t.mostRecentTimeStamp=R(e)):console.warn("Cannot record touch move without a touch start.\n","Touch Move: "+P(e)+"\n","Touch Bank: "+O(t))}(e,n));else if(w(e))t.changedTouches.forEach(e=>function(e,t){var n=T(e),r=t.touchBank[n];r?function(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=R(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=R(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=R(t)}(r,e):t.touchBank[n]=function(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:R(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:R(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:R(e)}}(e),t.mostRecentTimeStamp=R(e)}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches&&(n.indexOfSingleActiveTouch=t.touches[0].identifier);else if(C(e)&&(t.changedTouches.forEach(e=>function(e,t){var n=t.touchBank[T(e)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=R(e),t.mostRecentTimeStamp=R(e)):console.warn("Cannot record touch end without a touch start.\n","Touch End: "+P(e)+"\n","Touch Bank: "+O(t))}(e,n)),n.numberActiveTouches=t.touches.length,1===n.numberActiveTouches))for(var r=n.touchBank,i=0;i<r.length;i++){var o=r[i];if(null!=o&&o.touchActive){n.indexOfSingleActiveTouch=i;break}}}get touchHistory(){return this._touchHistory}};function W(e){B=e}function U(e){var t=j.get(e);return null!=t?t:N}function Y(e){var t=e.type,n=e.target;if("touchstart"===t&&(z=!0),("touchmove"===t||V>1)&&(z=!1),!("mousedown"===t&&z||"mousemove"===t&&z||"mousemove"===t&&V<1))if(z&&"mouseup"===t)0===V&&(z=!1);else{var r=w(t)&&function(e){var t=e.altKey,n=e.button,r=e.buttons,i=e.ctrlKey,o=e.type,a=!1===t&&!1===i;return!!("touchstart"===o||"touchmove"===o||"mousedown"===o&&(0===n||1===r)&&a||"mousemove"===o&&1===r&&a)}(e),i=S(t),o=C(t),a=function(e){return e===y}(t),s=function(e){return e===b||e===_}(t),l=u(e,H);(r||i||o)&&(e.touches?V=e.touches.length:r?V=1:o&&(V=0),H.recordTouchTrack(t,l.nativeEvent));var c,d=function(e){for(var t=[],n=[],r=function(e){return"selectionchange"===e.type?k(window.getSelection().anchorNode):null!=e.composedPath?e.composedPath():k(e.target)}(e),i=0;i<r.length;i++){var o=r[i],a=A(o);null!=a&&(t.push(a),n.push(o))}return{idPath:t,nodePath:n}}(e),h=!1;if(r||i||a&&V>0){var f=B.idPath,p=d.idPath;if(null!=f&&null!=p){var m=function(e,t){var n=e.length,r=t.length;if(0===n||0===r||e[n-1]!==t[r-1])return null;var i=e[0],o=0,a=t[0],s=0;n-r>0&&(i=e[o=n-r],n=r),r-n>0&&(a=t[s=r-n],r=n);for(var l=n;l--;){if(i===a)return i;i=e[o++],a=t[s++]}return null}(f,p);if(null!=m){var v=p.indexOf(m)+(m===B.id?1:0);d={idPath:p.slice(v),nodePath:d.nodePath.slice(v)}}else d=null}null!=d&&(c=function(e,t,n){var r=D[t.type];if(null!=r){for(var i=e.idPath,o=e.nodePath,a=r[0],s=r[1],l=r[2].bubbles,u=function(e,t,r){var o=U(e)[r];if(null!=o&&(n.currentTarget=t,!0===o(n)))return{id:e,node:t,idPath:i.slice(i.indexOf(e))}},c=i.length-1;c>=0;c--){var d=u(i[c],o[c],a);if(null!=d)return d;if(!0===n.isPropagationStopped())return}if(l)for(var h=0;h<i.length;h++){var f=u(i[h],o[h],s);if(null!=f)return f;if(!0===n.isPropagationStopped())return}else{var p=i[0],m=o[0];if(t.target===m)return u(p,m,s)}}}(d,e,l),null!=c&&(function(e,t){var n=B,r=n.id,i=n.node,o=t.id,a=t.node,s=U(o),l=s.onResponderGrant,u=s.onResponderReject;if(e.bubbles=!1,e.cancelable=!1,e.currentTarget=a,null==r)null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),W(t);else{var c=U(r),d=c.onResponderTerminate,h=c.onResponderTerminationRequest,f=!0;null!=h&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminationRequest",!1===h(e)&&(f=!1)),f?(null!=d&&(e.currentTarget=i,e.dispatchConfig.registrationName="onResponderTerminate",d(e)),null!=l&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderGrant",l(e)),W(t)):null!=u&&(e.currentTarget=a,e.dispatchConfig.registrationName="onResponderReject",u(e))}}(l,c),h=!0))}if(null!=B.id&&null!=B.node){var g=B,x=g.id,R=g.node,T=U(x),P=T.onResponderStart,O=T.onResponderMove,I=T.onResponderEnd,N=T.onResponderRelease,L=T.onResponderTerminate,M=T.onResponderTerminationRequest;if(l.bubbles=!1,l.cancelable=!1,l.currentTarget=R,r)null!=P&&(l.dispatchConfig.registrationName="onResponderStart",P(l));else if(i)null!=O&&(l.dispatchConfig.registrationName="onResponderMove",O(l));else{var j=E(t)||"contextmenu"===t||"blur"===t&&n===window||"blur"===t&&n.contains(R)&&e.relatedTarget!==R||a&&0===V||a&&n.contains(R)&&n!==R||s&&function(e){return"selectionchange"===e.type?(n=(t=window.getSelection()).toString(),r=t.anchorNode,i=t.focusNode,o=r&&r.nodeType===window.Node.TEXT_NODE||i&&i.nodeType===window.Node.TEXT_NODE,n.length>=1&&"\n"!==n&&o):"select"===e.type;var t,n,r,i,o}(e),Y=o&&!j&&!function(e,t){if(!t||0===t.length)return!1;for(var n=0;n<t.length;n++){var r=t[n].target;if(null!=r&&e.contains(r))return!0}return!1}(R,e.touches);if(o&&null!=I&&(l.dispatchConfig.registrationName="onResponderEnd",I(l)),Y&&(null!=N&&(l.dispatchConfig.registrationName="onResponderRelease",N(l)),W(F)),j){var q=!0;"contextmenu"!==t&&"scroll"!==t&&"selectionchange"!==t||(h?q=!1:null!=M&&(l.dispatchConfig.registrationName="onResponderTerminationRequest",!1===M(l)&&(q=!1))),q&&(null!=L&&(l.dispatchConfig.registrationName="onResponderTerminate",L(l)),W(F),z=!1,V=0)}}}}}var q=["blur","scroll"],K=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function $(e){B.id===e&&function(){var e=B,t=e.id,n=e.node;if(null!=t&&null!=n){var r=U(t).onResponderTerminate;if(null!=r){var i=u({},H);i.currentTarget=n,r(i)}W(F)}z=!1,V=0}(),j.has(e)&&j.delete(e)}var G={},X=0;function Q(e,t){void 0===t&&(t=G);var n,i,o=(n=()=>X++,null==(i=r.useRef(null)).current&&(i.current=n()),i.current),a=r.useRef(!1);r.useEffect(()=>(I.A&&null==window.__reactResponderSystemActive&&(window.addEventListener("blur",Y),K.forEach(e=>{document.addEventListener(e,Y)}),q.forEach(e=>{document.addEventListener(e,Y,!0)}),window.__reactResponderSystemActive=!0),()=>{$(o)}),[o]),r.useEffect(()=>{var n=t,r=n.onMoveShouldSetResponder,i=n.onMoveShouldSetResponderCapture,s=n.onScrollShouldSetResponder,l=n.onScrollShouldSetResponderCapture,u=n.onSelectionChangeShouldSetResponder,c=n.onSelectionChangeShouldSetResponderCapture,d=n.onStartShouldSetResponder,h=n.onStartShouldSetResponderCapture,f=null!=r||null!=i||null!=s||null!=l||null!=u||null!=c||null!=d||null!=h,p=e.current;f?(function(e,t,n){!function(e,t){null!=e&&(e[x]=t)}(t,e),j.set(e,n)}(o,p,t),a.current=!0):a.current&&($(o),a.current=!1)},[t,e,o]),r.useDebugValue({isResponder:e.current===B.node}),r.useDebugValue(t)}},3116:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8865);const i=()=>{r.A.blurTextInput(r.A.currentlyFocusedField())}},3152:(e,t,n)=>{"use strict";let r=n(3614),i=n(7668),o=n(3303),{isClean:a,my:s}=n(4151);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>l(e,n)):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}function u(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let o=0;o<e.length;o++){if(r===t.line&&n===t.column){i=o;break}"\n"===e[o]?(n=1,r+=1):n+=1}return i}class c{constructor(e={}){this.raws={},this[a]=!1,this[s]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}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=l(this);for(let n in e)t[n]=e[n];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}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.source.input.css.slice(u(this.source.input.css,this.source.start),u(this.source.input.css,this.source.end)).indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=u(this.source.input.css,this.source.start),i=r+e;for(let e=r;e<i;e++)"\n"===this.source.input.css[e]?(t=1,n+=1):t+=1;return{column:t,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},n=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 r=this.source.input.css.slice(u(this.source.input.css,this.source.start),u(this.source.input.css,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r),n=this.positionInside(r+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).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,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},3172:(e,t,n)=>{"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},3176:(e,t)=>{"use strict";t.P=void 0;var n=new WeakMap;function r(e){var t,r,i;return null!=e&&(t=!0===e.disableCache,r=!0===e.disableMix,i=e.transform),function(){for(var e=[],o="",a=null,s=t?null:n,l=new Array(arguments.length),u=0;u<arguments.length;u++)l[u]=arguments[u];for(;l.length>0;){var c=l.pop();if(null!=c&&!1!==c)if(Array.isArray(c))for(var d=0;d<c.length;d++)l.push(c[d]);else{var h=null!=i?i(c):c;if(h.$$css){var f="";if(null!=s&&s.has(h)){var p=s.get(h);null!=p&&(f=p[0],e.push.apply(e,p[1]),s=p[2])}else{var m=[];for(var v in h){var g=h[v];"$$css"!==v&&("string"==typeof g||null===g?e.includes(v)||(e.push(v),null!=s&&m.push(v),"string"==typeof g&&(f+=f?" "+g:g)):console.error("styleq: ".concat(v," typeof ").concat(String(g),' is not "string" or "null".')))}if(null!=s){var y=new WeakMap;s.set(h,[f,m,y]),s=y}}f&&(o=o?f+" "+o:f)}else if(r)null==a&&(a={}),a=Object.assign({},h,a);else{var b=null;for(var _ in h){var w=h[_];void 0!==w&&(e.includes(_)||(null!=w&&(null==a&&(a={}),null==b&&(b={}),b[_]=w),e.push(_),s=null))}null!=b&&(a=Object.assign(b,a))}}}return[o,a]}}var i=r();t.P=i,i.factory=r},3303:(e,t,n)=>{"use strict";let r=n(7668);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},3335:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(6698)),o=r(n(6659)),a=r(n(5316)),s=n(4500);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},3357:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var n=r(e);if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise(function(e,t){n.addEventListener("load",function(){return e(n)}),n.addEventListener("error",function(e){return t(e)})})}return new Promise(function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],u=l[0],c=l[1];o.setAttribute(u,c)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)})}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},3384:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(646),i=n.n(r),o=n(7162),a={window:{fontScale:1,height:0,scale:1,width:0},screen:{fontScale:1,height:0,scale:1,width:0}},s={},l=o.A;function u(){if(o.A){var e,t,n=window;if(n.visualViewport){var r=n.visualViewport;e=Math.round(r.height*r.scale),t=Math.round(r.width*r.scale)}else{var i=n.document.documentElement;e=i.clientHeight,t=i.clientWidth}a.window={fontScale:1,height:e,scale:n.devicePixelRatio||1,width:t},a.screen={fontScale:1,height:n.screen.height,scale:n.devicePixelRatio||1,width:n.screen.width}}}function c(){u(),Array.isArray(s.change)&&s.change.forEach(e=>e(a))}class d{static get(e){return l&&(l=!1,u()),i()(a[e],"No dimension set for key "+e),a[e]}static set(e){e&&(o.A?i()(!1,"Dimensions cannot be set in the browser"):(null!=e.screen&&(a.screen=e.screen),null!=e.window&&(a.window=e.window)))}static addEventListener(e,t){return s[e]=s[e]||[],s[e].push(t),{remove:()=>{this.removeEventListener(e,t)}}}static removeEventListener(e,t){Array.isArray(s[e])&&(s[e]=s[e].filter(e=>e!==t))}}o.A&&(window.visualViewport?window.visualViewport.addEventListener("resize",c,!1):window.addEventListener("resize",c,!1))},3438:(e,t,n)=>{"use strict";let r=n(396),i=n(9371),o=n(5238),a=n(1106),s=n(3878),l=n(5644),u=n(1534);function c(e,t){if(Array.isArray(e))return e.map(e=>c(e));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:s.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map(e=>c(e,t))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new o(d);if("rule"===d.type)return new u(d);if("comment"===d.type)return new i(d);if("atrule"===d.type)return new r(d);throw new Error("Unknown node type: "+e.type)}e.exports=c,c.default=c},3604:(e,t,n)=>{"use strict";let{dirname:r,relative:i,resolve:o,sep:a}=n(197),{SourceMapConsumer:s,SourceMapGenerator:l}=n(1866),{pathToFileURL:u}=n(2739),c=n(1106),d=Boolean(s&&l),h=Boolean(r&&o&&i&&a);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,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,n=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new s(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,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--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&d&&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=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({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(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,s.source&&s.source.start?(o.source=this.sourcePath(s),o.original.line=s.source.start.line,o.original.column=s.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=a.match(/\n/g),t?(n+=t.length,e=a.lastIndexOf("\n"),r=a.length-e):r+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(o.source=this.sourcePath(s),o.original.line=s.source.end.line,o.original.column=s.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let a=i(n,e);return this.memoizedPaths.set(e,a),a}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 c(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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},3614:(e,t,n)=>{"use strict";let r=n(8633),i=n(9746);class o extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}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){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,o=e=>e,a=e=>e;if(e){let{bold:e,gray:t,red:s}=r.createColors(!0);o=t=>e(s(t)),n=e=>t(e),i&&(a=e=>i(e))}let s=t.split(/\r?\n/),l=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),c=String(u).length;return s.slice(l,u).map((e,t)=>{let r=l+1+t,i=" "+(" "+r).slice(-c)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,s),u=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(i)+a(l)+"\n "+u+o("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+a(e)+"\n "+t+o("^")}return" "+n(i)+a(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},3642:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(8285),i=n(2555),o=n(8587),a=n(8997),s=n(4078),l=["aria-activedescendant","accessibilityActiveDescendant","aria-atomic","accessibilityAtomic","aria-autocomplete","accessibilityAutoComplete","aria-busy","accessibilityBusy","aria-checked","accessibilityChecked","aria-colcount","accessibilityColumnCount","aria-colindex","accessibilityColumnIndex","aria-colspan","accessibilityColumnSpan","aria-controls","accessibilityControls","aria-current","accessibilityCurrent","aria-describedby","accessibilityDescribedBy","aria-details","accessibilityDetails","aria-disabled","accessibilityDisabled","aria-errormessage","accessibilityErrorMessage","aria-expanded","accessibilityExpanded","aria-flowto","accessibilityFlowTo","aria-haspopup","accessibilityHasPopup","aria-hidden","accessibilityHidden","aria-invalid","accessibilityInvalid","aria-keyshortcuts","accessibilityKeyShortcuts","aria-label","accessibilityLabel","aria-labelledby","accessibilityLabelledBy","aria-level","accessibilityLevel","aria-live","accessibilityLiveRegion","aria-modal","accessibilityModal","aria-multiline","accessibilityMultiline","aria-multiselectable","accessibilityMultiSelectable","aria-orientation","accessibilityOrientation","aria-owns","accessibilityOwns","aria-placeholder","accessibilityPlaceholder","aria-posinset","accessibilityPosInSet","aria-pressed","accessibilityPressed","aria-readonly","accessibilityReadOnly","aria-required","accessibilityRequired","role","accessibilityRole","aria-roledescription","accessibilityRoleDescription","aria-rowcount","accessibilityRowCount","aria-rowindex","accessibilityRowIndex","aria-rowspan","accessibilityRowSpan","aria-selected","accessibilitySelected","aria-setsize","accessibilitySetSize","aria-sort","accessibilitySort","aria-valuemax","accessibilityValueMax","aria-valuemin","accessibilityValueMin","aria-valuenow","accessibilityValueNow","aria-valuetext","accessibilityValueText","dataSet","focusable","id","nativeID","pointerEvents","style","tabIndex","testID"],u={},c=Object.prototype.hasOwnProperty,d=Array.isArray,h=/[A-Z]/g;function f(e){return"-"+e.toLowerCase()}function p(e){return e.replace(h,f)}function m(e){return d(e)?e.join(" "):e}var v=a.A.create({auto:{pointerEvents:"auto"},"box-none":{pointerEvents:"box-none"},"box-only":{pointerEvents:"box-only"},none:{pointerEvents:"none"}});var g=n(6540),y=n(1420);const b=(e,t,n)=>{var d;e&&e.constructor===String&&(d=r.A.propsToAccessibilityComponent(t));var h=d||e,f=((e,t,n)=>{t||(t=u);var d=t,h=d["aria-activedescendant"],f=d.accessibilityActiveDescendant,g=d["aria-atomic"],y=d.accessibilityAtomic,b=d["aria-autocomplete"],_=d.accessibilityAutoComplete,w=d["aria-busy"],S=d.accessibilityBusy,C=d["aria-checked"],E=d.accessibilityChecked,x=d["aria-colcount"],k=d.accessibilityColumnCount,A=d["aria-colindex"],R=d.accessibilityColumnIndex,T=d["aria-colspan"],P=d.accessibilityColumnSpan,O=d["aria-controls"],I=d.accessibilityControls,N=d["aria-current"],L=d.accessibilityCurrent,M=d["aria-describedby"],D=d.accessibilityDescribedBy,F=d["aria-details"],j=d.accessibilityDetails,z=d["aria-disabled"],V=d.accessibilityDisabled,B=d["aria-errormessage"],H=d.accessibilityErrorMessage,W=d["aria-expanded"],U=d.accessibilityExpanded,Y=d["aria-flowto"],q=d.accessibilityFlowTo,K=d["aria-haspopup"],$=d.accessibilityHasPopup,G=d["aria-hidden"],X=d.accessibilityHidden,Q=d["aria-invalid"],J=d.accessibilityInvalid,Z=d["aria-keyshortcuts"],ee=d.accessibilityKeyShortcuts,te=d["aria-label"],ne=d.accessibilityLabel,re=d["aria-labelledby"],ie=d.accessibilityLabelledBy,oe=d["aria-level"],ae=d.accessibilityLevel,se=d["aria-live"],le=d.accessibilityLiveRegion,ue=d["aria-modal"],ce=d.accessibilityModal,de=d["aria-multiline"],he=d.accessibilityMultiline,fe=d["aria-multiselectable"],pe=d.accessibilityMultiSelectable,me=d["aria-orientation"],ve=d.accessibilityOrientation,ge=d["aria-owns"],ye=d.accessibilityOwns,be=d["aria-placeholder"],_e=d.accessibilityPlaceholder,we=d["aria-posinset"],Se=d.accessibilityPosInSet,Ce=d["aria-pressed"],Ee=d.accessibilityPressed,xe=d["aria-readonly"],ke=d.accessibilityReadOnly,Ae=d["aria-required"],Re=d.accessibilityRequired,Te=(d.role,d.accessibilityRole,d["aria-roledescription"]),Pe=d.accessibilityRoleDescription,Oe=d["aria-rowcount"],Ie=d.accessibilityRowCount,Ne=d["aria-rowindex"],Le=d.accessibilityRowIndex,Me=d["aria-rowspan"],De=d.accessibilityRowSpan,Fe=d["aria-selected"],je=d.accessibilitySelected,ze=d["aria-setsize"],Ve=d.accessibilitySetSize,Be=d["aria-sort"],He=d.accessibilitySort,We=d["aria-valuemax"],Ue=d.accessibilityValueMax,Ye=d["aria-valuemin"],qe=d.accessibilityValueMin,Ke=d["aria-valuenow"],$e=d.accessibilityValueNow,Ge=d["aria-valuetext"],Xe=d.accessibilityValueText,Qe=d.dataSet,Je=d.focusable,Ze=d.id,et=d.nativeID,tt=d.pointerEvents,nt=d.style,rt=d.tabIndex,it=d.testID,ot=(0,o.A)(d,l),at=z||V,st=r.A.propsToAriaRole(t),lt=null!=h?h:f;null!=lt&&(ot["aria-activedescendant"]=lt);var ut=null!=g?h:y;null!=ut&&(ot["aria-atomic"]=ut);var ct=null!=b?b:_;null!=ct&&(ot["aria-autocomplete"]=ct);var dt=null!=w?w:S;null!=dt&&(ot["aria-busy"]=dt);var ht=null!=C?C:E;null!=ht&&(ot["aria-checked"]=ht);var ft=null!=x?x:k;null!=ft&&(ot["aria-colcount"]=ft);var pt=null!=A?A:R;null!=pt&&(ot["aria-colindex"]=pt);var mt=null!=T?T:P;null!=mt&&(ot["aria-colspan"]=mt);var vt=null!=O?O:I;null!=vt&&(ot["aria-controls"]=m(vt));var gt=null!=N?N:L;null!=gt&&(ot["aria-current"]=gt);var yt=null!=M?M:D;null!=yt&&(ot["aria-describedby"]=m(yt));var bt=null!=F?F:j;null!=bt&&(ot["aria-details"]=bt),!0===at&&(ot["aria-disabled"]=!0,"button"!==e&&"form"!==e&&"input"!==e&&"select"!==e&&"textarea"!==e||(ot.disabled=!0));var _t=null!=B?B:H;null!=_t&&(ot["aria-errormessage"]=_t);var wt=null!=W?W:U;null!=wt&&(ot["aria-expanded"]=wt);var St=null!=Y?Y:q;null!=St&&(ot["aria-flowto"]=m(St));var Ct=null!=K?K:$;null!=Ct&&(ot["aria-haspopup"]=Ct);var Et=null!=G?G:X;!0===Et&&(ot["aria-hidden"]=Et);var xt=null!=Q?Q:J;null!=xt&&(ot["aria-invalid"]=xt);var kt=null!=Z?Z:ee;null!=kt&&(ot["aria-keyshortcuts"]=m(kt));var At=null!=te?te:ne;null!=At&&(ot["aria-label"]=At);var Rt=null!=re?re:ie;null!=Rt&&(ot["aria-labelledby"]=m(Rt));var Tt=null!=oe?oe:ae;null!=Tt&&(ot["aria-level"]=Tt);var Pt=null!=se?se:le;null!=Pt&&(ot["aria-live"]="none"===Pt?"off":Pt);var Ot=null!=ue?ue:ce;null!=Ot&&(ot["aria-modal"]=Ot);var It=null!=de?de:he;null!=It&&(ot["aria-multiline"]=It);var Nt=null!=fe?fe:pe;null!=Nt&&(ot["aria-multiselectable"]=Nt);var Lt=null!=me?me:ve;null!=Lt&&(ot["aria-orientation"]=Lt);var Mt=null!=ge?ge:ye;null!=Mt&&(ot["aria-owns"]=m(Mt));var Dt=null!=be?be:_e;null!=Dt&&(ot["aria-placeholder"]=Dt);var Ft=null!=we?we:Se;null!=Ft&&(ot["aria-posinset"]=Ft);var jt=null!=Ce?Ce:Ee;null!=jt&&(ot["aria-pressed"]=jt);var zt=null!=xe?xe:ke;null!=zt&&(ot["aria-readonly"]=zt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.readOnly=!0));var Vt=null!=Ae?Ae:Re;null!=Vt&&(ot["aria-required"]=Vt,"input"!==e&&"select"!==e&&"textarea"!==e||(ot.required=Re)),null!=st&&(ot.role="none"===st?"presentation":st);var Bt=null!=Te?Te:Pe;null!=Bt&&(ot["aria-roledescription"]=Bt);var Ht=null!=Oe?Oe:Ie;null!=Ht&&(ot["aria-rowcount"]=Ht);var Wt=null!=Ne?Ne:Le;null!=Wt&&(ot["aria-rowindex"]=Wt);var Ut=null!=Me?Me:De;null!=Ut&&(ot["aria-rowspan"]=Ut);var Yt=null!=Fe?Fe:je;null!=Yt&&(ot["aria-selected"]=Yt);var qt=null!=ze?ze:Ve;null!=qt&&(ot["aria-setsize"]=qt);var Kt=null!=Be?Be:He;null!=Kt&&(ot["aria-sort"]=Kt);var $t=null!=We?We:Ue;null!=$t&&(ot["aria-valuemax"]=$t);var Gt=null!=Ye?Ye:qe;null!=Gt&&(ot["aria-valuemin"]=Gt);var Xt=null!=Ke?Ke:$e;null!=Xt&&(ot["aria-valuenow"]=Xt);var Qt=null!=Ge?Ge:Xe;if(null!=Qt&&(ot["aria-valuetext"]=Qt),null!=Qe)for(var Jt in Qe)if(c.call(Qe,Jt)){var Zt=p(Jt),en=Qe[Jt];null!=en&&(ot["data-"+Zt]=en)}0===rt||"0"===rt||-1===rt||"-1"===rt?ot.tabIndex=rt:(!1===Je&&(ot.tabIndex="-1"),"a"===e||"button"===e||"input"===e||"select"===e||"textarea"===e?!1!==Je&&!0!==V||(ot.tabIndex="-1"):"button"===st||"checkbox"===st||"link"===st||"radio"===st||"textbox"===st||"switch"===st?!1!==Je&&(ot.tabIndex="0"):!0===Je&&(ot.tabIndex="0")),null!=tt&&(0,s.m)("pointerEvents","props.pointerEvents is deprecated. Use style.pointerEvents");var tn=(0,a.A)([nt,tt&&v[tt]],(0,i.A)({writingDirection:"ltr"},n)),nn=tn[0],rn=tn[1];nn&&(ot.className=nn),rn&&(ot.style=rn);var on=null!=Ze?Ze:et;return null!=on&&(ot.id=on),null!=it&&(ot["data-testid"]=it),null==ot.type&&"button"===e&&(ot.type="button"),ot})(h,t,n),b=g.createElement(h,f);return f.dir?g.createElement(y.YO,{children:b,direction:f.dir,locale:f.lang}):b}},3717:(e,t,n)=>{"use strict";let r=n(38);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},3748:(e,t,n)=>{"use strict";n.d(t,{_:()=>m});var r=n(7162);function i(e,t,n){if(r.A){var i=null!=t?t:document,o=i.getElementById(e);if(null==o)if((o=document.createElement("style")).setAttribute("id",e),"string"==typeof n&&o.appendChild(document.createTextNode(n)),i instanceof ShadowRoot)i.insertBefore(o,i.firstChild);else{var a=i.head;a&&a.insertBefore(o,a.firstChild)}return o.sheet}return null}var o=Array.prototype.slice;function a(e){var t,n={},r={};function i(e,t,r){var i=l(n),o=i.indexOf(t)+1,a=i[o],s=null!=a&&null!=n[a].start?n[a].start:e.cssRules.length,u=function(e,t,n){try{return e.insertRule(t,n),!0}catch(e){return!1}}(e,r,s);if(u){null==n[t].start&&(n[t].start=s);for(var c=o;c<i.length;c+=1){var d=i[c],h=n[d].start||0;n[d].start=h+1}}return u}null!=e&&o.call(e.cssRules).forEach((e,i)=>{var o=e.cssText;if(o.indexOf("stylesheet-group")>-1)t=function(e){return Number(e.selectorText.split(s)[1])}(e),n[t]={start:i,rules:[o]};else{var a=c(o);null!=a&&(r[a]=!0,n[t].rules.push(o))}});var a={getTextContent:()=>l(n).map(e=>{var t=n[e].rules,r=t.shift();return t.sort(),t.unshift(r),t.join("\n")}).join("\n"),insert(t,o){var a=Number(o);if(null==n[a]){var s=function(e){return'[stylesheet-group="'+e+'"]{}'}(a);n[a]={start:null,rules:[s]},null!=e&&i(e,a,s)}var l=c(t);null!=l&&null==r[l]&&(r[l]=!0,n[a].rules.push(t),null!=e&&(i(e,a,t)||n[a].rules.pop()))}};return a}var s=/["']/g;function l(e){return Object.keys(e).map(Number).sort((e,t)=>e>t?1:-1)}var u=/\s*([,])\s*/g;function c(e){var t=e.split("{")[0].trim();return""!==t?t.replace(u,"$1"):null}var d="react-native-stylesheet",h=new WeakMap,f=[],p=["html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}","body{margin:0;}","button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}","input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}"];function m(e,t){var n;if(void 0===t&&(t=d),r.A){var o=null!=e?e.getRootNode():document;if(0===f.length)n=a(i(t)),p.forEach(e=>{n.insert(e,0)}),h.set(o,f.length),f.push(n);else{var s=h.get(o);if(null==s){var l=f[0],u=null!=l?l.getTextContent():"";n=a(i(t,o,u)),h.set(o,f.length),f.push(n)}else n=f[s]}}else 0===f.length?(n=a(i(t)),p.forEach(e=>{n.insert(e,0)}),f.push(n)):n=f[0];return{getTextContent:()=>n.getTextContent(),id:t,insert(e,t){f.forEach(n=>{n.insert(e,t)})}}}},3863:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(6698)),o=n(4500),a=n(7538),s=r(n(6659)),l=r(n(6041));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},3878:(e,t,n)=>{"use strict";let{existsSync:r,readFileSync:i}=n(9977),{dirname:o,join:a}=n(197),{SourceMapConsumer:s,SourceMapGenerator:l}=n(1866);class u{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}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=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=o(e),r(e))return this.mapFile=e,i(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){if(t instanceof s)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(o(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)}}e.exports=u,u.default=u},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/},4078:(e,t,n)=>{"use strict";function r(e,t){}n.d(t,{m:()=>r})},4129:(e,t,n)=>{"use strict";n.d(t,{A:()=>te});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(7162),l=()=>{},u=function(){var e=!1;if(s.A)try{var t={};Object.defineProperty(t,"passive",{get:()=>(e=!0,!1)}),window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function c(){return this.cancelBubble}function d(){return this.defaultPrevented}function h(e,t,n,r){var i=function(e){return null!=e&&(u?e:Boolean(e.capture))}(r),o=e=>{return n(((t=e).nativeEvent=t,t.persist=l,t.isDefaultPrevented=d,t.isPropagationStopped=c,t));var t};return e.addEventListener(t,o,i),function(){null!=e&&e.removeEventListener(t,o,i)}}var f,p,m="keyboard",v="keyboard",g=!1,y=new Set,b="keyboard",_="mouse",w="touch",S="contextmenu",C="mousedown",E="mousemove",x="mouseup",k="pointerdown",A="pointermove",R="scroll",T="selectionchange",P="touchcancel",O="touchmove",I="touchstart",N={passive:!0},L={capture:!0,passive:!0};function M(){null==f&&null==p||(null!=f&&(v=f,f=null),null!=p&&(m=p,p=null),F())}function D(e){var t=e.type;if("undefined"!=typeof window&&null!=window.PointerEvent){if(t===k)return void(m!==e.pointerType&&(v=e.pointerType,m=e.pointerType,F()));if(t===A)return void(v!==e.pointerType&&(v=e.pointerType,F()))}else{if(g||(t===C&&m!==_&&(v=_,m=_,F()),t===E&&v!==_&&(v=_,F())),t===I)return g=!0,e.touches&&e.touches.length>1&&(g=!1),void(m!==w&&(v=w,m=w,F()));t!==S&&t!==x&&t!==T&&t!==R&&t!==P&&t!==O||(g=!1)}}function F(){var e={activeModality:m,modality:v};y.forEach(t=>{t(e)})}s.A&&(h(window,"blur",function(){f=v,p=m,m=b,v=b,F(),g=!1},N),h(window,"focus",function(){M()},N),h(document,"keydown",function(e){e.metaKey||e.altKey||e.ctrlKey||v!==b&&(v=b,m=b,F())},L),h(document,"visibilitychange",function(){"hidden"!==document.visibilityState&&M()},L),h(document,k,D,L),h(document,A,D,L),h(document,S,D,L),h(document,C,D,L),h(document,E,D,L),h(document,x,D,L),h(document,P,D,L),h(document,O,D,L),h(document,I,D,L),h(document,T,D,L),h(document,R,D,L));var j=n(8425),z=n(9241);function V(e,t){var n=(0,z.A)(()=>new Map),r=(0,z.A)(()=>(r,i)=>{var o=n.get(r);null!=o&&o(),null==i&&(n.delete(r),i=()=>{});var a=h(r,e,i,t);return n.set(r,a),a});return(0,j.A)(()=>()=>{n.forEach(e=>{e()}),n.clear()},[n]),r}var B={},H={passive:!0},W="react-gui:hover:lock",U="react-gui:hover:unlock";function Y(e,t,n){var r=document.createEvent("CustomEvent"),i=n||B,o=i.bubbles,a=void 0===o||o,s=i.cancelable,l=void 0===s||s,u=i.detail;r.initCustomEvent(t,a,l,u),e.dispatchEvent(r)}function q(e){var t=e.pointerType;return null!=t?t:v}var K=n(6533),$=n(8997),G=n(9176),X=["children","delayLongPress","delayPressIn","delayPressOut","disabled","onBlur","onContextMenu","onFocus","onHoverIn","onHoverOut","onKeyDown","onLongPress","onPress","onPressMove","onPressIn","onPressOut","style","tabIndex","testOnly_hovered","testOnly_pressed"];function Q(e,t){var n=e.children,s=e.delayLongPress,l=e.delayPressIn,u=e.delayPressOut,c=e.disabled,d=e.onBlur,h=e.onContextMenu,f=e.onFocus,p=e.onHoverIn,m=e.onHoverOut,v=e.onKeyDown,g=e.onLongPress,y=e.onPress,b=e.onPressMove,_=e.onPressIn,w=e.onPressOut,S=e.style,C=e.tabIndex,E=e.testOnly_hovered,x=e.testOnly_pressed,k=(0,i.A)(e,X),A=J(!0===E),R=A[0],T=A[1],P=J(!1),O=P[0],I=P[1],N=J(!0===x),L=N[0],M=N[1],D=(0,o.useRef)(null),F=(0,a.A)(t,D),z=(0,o.useMemo)(()=>({delayLongPress:s,delayPressStart:l,delayPressEnd:u,disabled:c,onLongPress:g,onPress:y,onPressChange:M,onPressStart:_,onPressMove:b,onPressEnd:w}),[s,l,u,c,g,y,_,b,w,M]),B=(0,K.A)(D,z),$=B.onContextMenu,Q=B.onKeyDown;!function(e,t){var n=t.contain,r=t.disabled,i=t.onHoverStart,o=t.onHoverChange,a=t.onHoverUpdate,s=t.onHoverEnd,l=!("undefined"==typeof window||null==window.PointerEvent),u=V(l?"pointermove":"mousemove",H),c=V(l?"pointerenter":"mouseenter",H),d=V(l?"pointerleave":"mouseleave",H),h=V(W,H),f=V(U,H);(0,j.A)(()=>{var t=e.current;if(null!==t){var l=function(e){null!=s&&s(e),null!=o&&o(!1),u(t,null),d(t,null)},p=function(t){var r=e.current;null!=r&&"touch"!==q(t)&&(n&&Y(r,U),l(t))},m=function(e){"touch"!==q(e)&&null!=a&&(null==e.x&&(e.x=e.clientX),null==e.y&&(e.y=e.clientY),a(e))},v=function(e){null!=i&&i(e),null!=o&&o(!0),null!=a&&u(t,r?null:m),d(t,r?null:p)};c(t,r?null:function(t){var i=e.current;null!=i&&"touch"!==q(t)&&(n&&Y(i,W),v(t),h(i,r?null:function(e){e.target!==i&&l(t)}),f(i,r?null:function(e){e.target!==i&&v(t)}))})}},[c,u,d,h,f,n,r,i,o,a,s,e])}(D,{contain:!0,disabled:c,onHoverChange:T,onHoverStart:p,onHoverEnd:m});var ee,te={hovered:R,focused:O,pressed:L},ne=o.useCallback(e=>{e.nativeEvent.target===D.current&&(I(!1),null!=d&&d(e))},[D,I,d]),re=o.useCallback(e=>{e.nativeEvent.target===D.current&&(I(!0),null!=f&&f(e))},[D,I,f]),ie=o.useCallback(e=>{null!=$&&$(e),null!=h&&h(e)},[h,$]),oe=o.useCallback(e=>{null!=Q&&Q(e),null!=v&&v(e)},[v,Q]);return ee=void 0!==C?C:c?-1:0,o.createElement(G.A,(0,r.A)({},k,B,{"aria-disabled":c,onBlur:ne,onContextMenu:ie,onFocus:re,onKeyDown:oe,ref:F,style:[c?Z.disabled:Z.active,"function"==typeof S?S(te):S],tabIndex:ee}),"function"==typeof n?n(te):n)}function J(e){var t=(0,o.useState)(!1);return[t[0]||e,t[1]]}var Z=$.A.create({active:{cursor:"pointer",touchAction:"manipulation"},disabled:{pointerEvents:"box-none"}}),ee=(0,o.memo)((0,o.forwardRef)(Q));ee.displayName="Pressable";const te=ee},4151:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},4211:(e,t,n)=>{"use strict";let r=n(3604),i=n(9577);const o=n(3717);let a=n(3303);n(6156);class s{constructor(e,t,n){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=a;this.result=new o(this._processor,i,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let u=new r(s,i,this._opts,t);if(u.isMap()){let[e,t]=u.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else u.clearAnnotation(),this.result.css=u.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(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},4217:(e,t)=>{"use strict";t.A=function(){return null}},4336:(e,t)=>{"use strict";t.n=function(e,t){if(null!=e[r]){var o=t?1:0;if(n.has(e)){var a=n.get(e),s=a[o];return null==s&&(s=i(e,t),a[o]=s,n.set(e,a)),s}var l=i(e,t),u=new Array(2);return u[o]=l,n.set(e,u),l}return e};var n=new WeakMap,r="$$css$localize";function i(e,t){var n={};for(var i in e)if(i!==r){var o=e[i];Array.isArray(o)?n[i]=t?o[1]:o[0]:n[i]=o}return n}},4385:(e,t)=>{"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},4500:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(2572)),o=n(4857),a=r(n(8822)),s=r(n(5316)),l=r(n(6041)),u=r(n(7631));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function h(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=l.default(n,t.join("."))),this.opts.clone?h(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?h(t):t},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||l.default(r,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},4568:(e,t,n)=>{"use strict";n.d(t,{U:()=>h});var r=n(1635),i=n(6490),o=n(524),a=n(8167),s=n(1298),l=n(7947);function u(e){console.error("Error sending segment performance metrics",e)}var c,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:l.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(c,a.flushTimer))};c()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,function(){var e=this;return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(t){u(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n;return(0,r.YH)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){c=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==c||c.increment(t,null!=r?r:[])},t}(i.p)},4594:(e,t,n)=>{"use strict";var r=n(9395);e.exports=r},4757:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},4857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},4951:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(2555),i=n(8168),o=n(8587),a=n(3384),s=n(3116),l=n(646),u=n.n(l),c=n(87),d=n(7862),h=n(6540),f=n(8997),p=n(9176),m=n(1804),v=["onScroll","onTouchMove","onWheel","scrollEnabled","scrollEventThrottle","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","style"];function g(e){return{nativeEvent:{contentOffset:{get x(){return e.target.scrollLeft},get y(){return e.target.scrollTop}},contentSize:{get height(){return e.target.scrollHeight},get width(){return e.target.scrollWidth}},layoutMeasurement:{get height(){return e.target.offsetHeight},get width(){return e.target.offsetWidth}}},timeStamp:Date.now()}}var y=h.forwardRef((e,t)=>{var n=e.onScroll,r=e.onTouchMove,a=e.onWheel,s=e.scrollEnabled,l=void 0===s||s,u=e.scrollEventThrottle,c=void 0===u?0:u,d=e.showsHorizontalScrollIndicator,f=e.showsVerticalScrollIndicator,y=e.style,_=(0,o.A)(e,v),w=h.useRef({isScrolling:!1,scrollLastTick:0}),S=h.useRef(null),C=h.useRef(null);function E(e){return t=>{l&&e&&e(t)}}function x(e){w.current.scrollLastTick=Date.now(),n&&n(g(e))}var k=!1===d||!1===f;return h.createElement(p.A,(0,i.A)({},_,{onScroll:function(e){var t,r,i;e.stopPropagation(),e.target===C.current&&(e.persist(),null!=S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{!function(e){w.current.isScrolling=!1,n&&n(g(e))}(e)},100),w.current.isScrolling?(t=w.current.scrollLastTick,r=c,i=Date.now()-t,r>0&&i>=r&&x(e)):function(e){w.current.isScrolling=!0,x(e)}(e))},onTouchMove:E(r),onWheel:E(a),ref:(0,m.A)(C,t),style:[y,!l&&b.scrollDisabled,k&&b.hideScrollbar]}))}),b=f.A.create({scrollDisabled:{overflowX:"hidden",overflowY:"hidden",touchAction:"none"},hideScrollbar:{scrollbarWidth:"none"}});const _=y;var w=n(8865),S=n(8683),C=n(4594),E=n.n(C),x=["contentContainerStyle","horizontal","onContentSizeChange","refreshControl","stickyHeaderIndices","pagingEnabled","forwardedRef","keyboardDismissMode","onScroll","centerContent"],k={};class A extends h.Component{constructor(){super(...arguments),this._scrollNodeRef=null,this._innerViewRef=null,this.isTouching=!1,this.lastMomentumScrollBeginTime=0,this.lastMomentumScrollEndTime=0,this.observedScrollSinceBecomingResponder=!1,this.becameResponderWhileAnimating=!1,this.scrollResponderHandleScrollShouldSetResponder=()=>this.isTouching,this.scrollResponderHandleStartShouldSetResponderCapture=e=>this.scrollResponderIsAnimating(),this.scrollResponderHandleTerminationRequest=()=>!this.observedScrollSinceBecomingResponder,this.scrollResponderHandleTouchEnd=e=>{var t=e.nativeEvent;this.isTouching=0!==t.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},this.scrollResponderHandleResponderRelease=e=>{this.props.onResponderRelease&&this.props.onResponderRelease(e);var t=w.A.currentlyFocusedField();this.props.keyboardShouldPersistTaps||null==t||e.target===t||this.observedScrollSinceBecomingResponder||this.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),w.A.blurTextInput(t))},this.scrollResponderHandleScroll=e=>{this.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},this.scrollResponderHandleResponderGrant=e=>{this.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},this.scrollResponderHandleScrollBeginDrag=e=>{this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this.scrollResponderHandleScrollEndDrag=e=>{this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this.scrollResponderHandleMomentumScrollBegin=e=>{this.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this.scrollResponderHandleMomentumScrollEnd=e=>{this.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this.scrollResponderHandleTouchStart=e=>{this.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},this.scrollResponderHandleTouchMove=e=>{this.props.onTouchMove&&this.props.onTouchMove(e)},this.scrollResponderIsAnimating=()=>Date.now()-this.lastMomentumScrollEndTime<16||this.lastMomentumScrollEndTime<this.lastMomentumScrollBeginTime,this.scrollResponderScrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;e=r.x,t=r.y,n=r.animated}var i=this.getScrollableNode(),o=e||0,a=t||0;null!=i&&("function"==typeof i.scroll?i.scroll({top:a,left:o,behavior:n?"smooth":"auto"}):(i.scrollLeft=o,i.scrollTop=a))},this.scrollResponderZoomTo=(e,t)=>{"ios"!==d.A.OS&&u()("zoomToRect is not implemented")},this.scrollResponderScrollNativeHandleToKeyboard=(e,t,n)=>{this.additionalScrollOffset=t||0,this.preventNegativeScrollOffset=!!n,S.A.measureLayout(e,this.getInnerViewNode(),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},this.scrollResponderInputMeasureAndScrollToKeyboard=(e,t,n,r)=>{var i=a.A.get("window").height;this.keyboardWillOpenTo&&(i=this.keyboardWillOpenTo.endCoordinates.screenY);var o=t-i+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(o=Math.max(0,o)),this.scrollResponderScrollTo({x:0,y:o,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},this.scrollResponderKeyboardWillShow=e=>{this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},this.scrollResponderKeyboardWillHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},this.scrollResponderKeyboardDidShow=e=>{e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},this.scrollResponderKeyboardDidHide=e=>{this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)},this.flashScrollIndicators=()=>{this.scrollResponderFlashScrollIndicators()},this.getScrollResponder=()=>this,this.getScrollableNode=()=>this._scrollNodeRef,this.getInnerViewRef=()=>this._innerViewRef,this.getInnerViewNode=()=>this._innerViewRef,this.getNativeScrollRef=()=>this._scrollNodeRef,this.scrollTo=(e,t,n)=>{if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||k;t=r.x,e=r.y,n=r.animated}this.scrollResponderScrollTo({x:t||0,y:e||0,animated:!1!==n})},this.scrollToEnd=e=>{var t=!1!==(e&&e.animated),n=this.props.horizontal,r=this.getScrollableNode(),i=n?r.scrollWidth:0,o=n?0:r.scrollHeight;this.scrollResponderScrollTo({x:i,y:o,animated:t})},this._handleContentOnLayout=e=>{var t=e.nativeEvent.layout,n=t.width,r=t.height;this.props.onContentSizeChange(n,r)},this._handleScroll=e=>{"on-drag"===this.props.keyboardDismissMode&&(0,s.A)(),this.scrollResponderHandleScroll(e)},this._setInnerViewRef=e=>{this._innerViewRef=e},this._setScrollNodeRef=e=>{this._scrollNodeRef=e,null!=e&&(e.getScrollResponder=this.getScrollResponder,e.getInnerViewNode=this.getInnerViewNode,e.getInnerViewRef=this.getInnerViewRef,e.getNativeScrollRef=this.getNativeScrollRef,e.getScrollableNode=this.getScrollableNode,e.scrollTo=this.scrollTo,e.scrollToEnd=this.scrollToEnd,e.flashScrollIndicators=this.flashScrollIndicators,e.scrollResponderZoomTo=this.scrollResponderZoomTo,e.scrollResponderScrollNativeHandleToKeyboard=this.scrollResponderScrollNativeHandleToKeyboard),(0,c.A)(this.props.forwardedRef)(e)}}scrollResponderHandleStartShouldSetResponder(){return!1}scrollResponderHandleResponderReject(){E()(!1,"ScrollView doesn't take rejection well - scrolls anyway")}scrollResponderFlashScrollIndicators(){}scrollResponderTextInputFocusError(e){console.error("Error measuring text field: ",e)}render(){var e=this.props,t=e.contentContainerStyle,n=e.horizontal,a=e.onContentSizeChange,s=e.refreshControl,l=e.stickyHeaderIndices,c=e.pagingEnabled,d=(e.forwardedRef,e.keyboardDismissMode,e.onScroll,e.centerContent),f=(0,o.A)(e,x),m={};a&&(m={onLayout:this._handleContentOnLayout});var v=!n&&Array.isArray(l),g=v||c?h.Children.map(this.props.children,(e,t)=>{var n=v&&l.indexOf(t)>-1;return null!=e&&(n||c)?h.createElement(p.A,{style:[n&&T.stickyHeader,c&&T.pagingEnabledChild]},e):e}):this.props.children,y=h.createElement(p.A,(0,i.A)({},m,{children:g,collapsable:!1,ref:this._setInnerViewRef,style:[n&&T.contentContainerHorizontal,d&&T.contentContainerCenterContent,t]})),b=n?T.baseHorizontal:T.baseVertical,w=n?T.pagingEnabledHorizontal:T.pagingEnabledVertical,S=(0,r.A)((0,r.A)({},f),{},{style:[b,c&&w,this.props.style],onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject}),C=_;u()(void 0!==C,"ScrollViewClass must not be undefined");var E=h.createElement(C,(0,i.A)({},S,{ref:this._setScrollNodeRef}),y);return s?h.cloneElement(s,{style:S.style},E):E}}var R={flexGrow:1,flexShrink:1,transform:"translateZ(0)",WebkitOverflowScrolling:"touch"},T=f.A.create({baseVertical:(0,r.A)((0,r.A)({},R),{},{flexDirection:"column",overflowX:"hidden",overflowY:"auto"}),baseHorizontal:(0,r.A)((0,r.A)({},R),{},{flexDirection:"row",overflowX:"auto",overflowY:"hidden"}),contentContainerHorizontal:{flexDirection:"row"},contentContainerCenterContent:{justifyContent:"center",flexGrow:1},stickyHeader:{position:"sticky",top:0,zIndex:10},pagingEnabledHorizontal:{scrollSnapType:"x mandatory"},pagingEnabledVertical:{scrollSnapType:"y mandatory"},pagingEnabledChild:{scrollSnapAlign:"start"}}),P=h.forwardRef((e,t)=>h.createElement(A,(0,i.A)({},e,{forwardedRef:t})));P.displayName="ScrollView";const O=P},4980:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(9952);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,function(){var n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}})})}().then(function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e}).catch(function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},5042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}},5129:(e,t)=>{"use strict";t.A=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},5194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessibilityInfo:()=>w,ActivityIndicator:()=>Gr,Alert:()=>S,Animated:()=>Kn,AppRegistry:()=>or,AppState:()=>hr,Appearance:()=>Xn,BackHandler:()=>pr,Button:()=>Zr,CheckBox:()=>ri,Clipboard:()=>vr,DeviceEventEmitter:()=>Ca.A,Dimensions:()=>gr.A,Easing:()=>xn,FlatList:()=>Fe,I18nManager:()=>yr,Image:()=>Dt.A,ImageBackground:()=>si,InteractionManager:()=>Z,Keyboard:()=>_r,KeyboardAvoidingView:()=>li.A,LayoutAnimation:()=>Er,Linking:()=>kr,LogBox:()=>Sa,Modal:()=>Ni,NativeEventEmitter:()=>Ar,NativeModules:()=>m,PanResponder:()=>zr,Picker:()=>zi,PixelRatio:()=>Vr.A,Platform:()=>E.A,Pressable:()=>Vi.A,ProgressBar:()=>Ui,RefreshControl:()=>D,SafeAreaView:()=>Gi,ScrollView:()=>F.A,SectionList:()=>Yt,Share:()=>Br,StatusBar:()=>Ji,StyleSheet:()=>T.A,Switch:()=>uo,Text:()=>Kt.A,TextInput:()=>So,Touchable:()=>na,TouchableHighlight:()=>ca,TouchableNativeFeedback:()=>pa,TouchableOpacity:()=>Xr.A,TouchableWithoutFeedback:()=>ya,UIManager:()=>p.A,Vibration:()=>Wr,View:()=>R.A,VirtualizedList:()=>ba,YellowBox:()=>wa,findNodeHandle:()=>o,processColor:()=>a.A,render:()=>f,unmountComponentAtNode:()=>l,unstable_createElement:()=>r.A,useColorScheme:()=>Ea,useLocaleContext:()=>xa,useWindowDimensions:()=>ka});var r=n(3642),i=n(961);const o=e=>{var t;try{t=(0,i.findDOMNode)(e)}catch(e){}return t};var a=n(2901),s=n(5338);const l=i.unmountComponentAtNode;var u=n(3748);function c(e,t){return(0,u._)(t),(0,s.c)(t,e)}function d(e,t){(0,u._)(t);var n=(0,s.H)(t);return n.render(e),n}function h(e,t,n){return(0,u._)(t),(0,i.hydrate)(e,t,n),{unmount:function(){return l(t)}}}function f(e,t,n){return(0,u._)(t),(0,i.render)(e,t,n),{unmount:function(){return l(t)}}}var p=n(8683);const m={UIManager:p.A};var v=n(7162);function g(){return new Promise((e,t)=>{e(!0)})}var y=v.A&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-reduced-motion: reduce)"):null,b={},_={isScreenReaderEnabled:g,isReduceMotionEnabled:function(){return new Promise((e,t)=>{e(!y||y.matches)})},fetch:g,addEventListener:function(e,t){if("reduceMotionChanged"===e){if(!y)return;var n=e=>{t(e.matches)};r=n,null!=y&&(null!=y.addEventListener?y.addEventListener("change",r):y.addListener(r)),b[t]=n}var r;return{remove:()=>_.removeEventListener(e,t)}},setAccessibilityFocus:function(e){},announceForAccessibility:function(e){},removeEventListener:function(e,t){if("reduceMotionChanged"===e){var n=b[t];if(!n||!y)return;r=n,null!=y&&(null!=y.removeEventListener?y.removeEventListener("change",r):y.removeListener(r))}var r}};const w=_,S=class{static alert(){}};var C=n(2555),E=n(7862),x=n(8168),k=n(6540),A=n(8587),R=n(9176),T=n(8997);const P=function e(t,n,r){if(void 0===r&&(r=-1),0===r)return!0;if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(n.length!==i)return!0;for(var o=0;o<i;o++)if(e(t[o],n[o],r-1))return!0}else{for(var a in t)if(e(t[a],n[a],r-1))return!0;for(var s in n)if(void 0===t[s]&&void 0!==n[s])return!0}return!1};var O=n(646),I=n.n(O);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var M=["colors","enabled","onRefresh","progressBackgroundColor","progressViewOffset","refreshing","size","tintColor","title","titleColor"];const D=function(e){e.colors,e.enabled,e.onRefresh,e.progressBackgroundColor,e.progressViewOffset,e.refreshing,e.size,e.tintColor,e.title,e.titleColor;var t=(0,A.A)(e,M);return k.createElement(R.A,t)};var F=n(4951);var j=n(1603),z=v.A&&void 0!==window.requestIdleCallback,V=z?window.requestIdleCallback:function(e,t){return setTimeout(()=>{var t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};z&&window.cancelIdleCallback;const B=V;var H=new j.A,W={Events:{interactionStart:"interactionStart",interactionComplete:"interactionComplete"},runAfterInteractions(e){var t=[],n=new Promise(n=>{Q(),e&&t.push(e),t.push({run:n,name:"resolve "+(e&&e.name||"?")}),K.enqueueTasks(t)});return{then:n.then.bind(n),done:n.then.bind(n),cancel:()=>{K.cancelTasks(t)}}},createInteractionHandle(){Q();var e=++G;return Y.add(e),e},clearInteractionHandle(e){I()(!!e,"Must provide a handle to clear."),Q(),Y.delete(e),q.add(e)},addListener:H.addListener.bind(H),setDeadline(e){X=e}},U=new Set,Y=new Set,q=new Set,K=new class{constructor(e){var t=e.onMoreTasks;this._onMoreTasks=t,this._queueStack=[{tasks:[],popable:!0}]}enqueue(e){this._getCurrentQueue().push(e)}enqueueTasks(e){e.forEach(e=>this.enqueue(e))}cancelTasks(e){this._queueStack=this._queueStack.map(t=>(0,C.A)((0,C.A)({},t),{},{tasks:t.tasks.filter(t=>-1===e.indexOf(t))})).filter((e,t)=>e.tasks.length>0||0===t)}hasTasksToProcess(){return this._getCurrentQueue().length>0}processNext(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{"object"==typeof t&&t.gen?this._genPromise(t):"object"==typeof t&&t.run?t.run():(I()("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}_getCurrentQueue(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&e>0?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}_genPromise(e){var t=this._queueStack.push({tasks:[],popable:!1})-1,n=this._queueStack[t];e.gen().then(()=>{n.popable=!0,this.hasTasksToProcess()&&this._onMoreTasks()}).catch(t=>{setTimeout(()=>{throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t},0)})}}({onMoreTasks:Q}),$=0,G=0,X=-1;function Q(){$||($=X>0?setTimeout(J):B(J))}function J(){$=0;var e=U.size;Y.forEach(e=>U.add(e)),q.forEach(e=>U.delete(e));var t=U.size;if(0!==e&&0===t?H.emit(W.Events.interactionComplete):0===e&&0!==t&&H.emit(W.Events.interactionStart),0===t)for(var n=Date.now();K.hasTasksToProcess();)if(K.processNext(),X>0&&Date.now()-n>=X){Q();break}Y.clear(),q.clear()}const Z=W,ee=class{constructor(e,t){this._delay=t,this._callback=e}dispose(e){void 0===e&&(e={abort:!1}),this._taskHandle&&(this._taskHandle.cancel(),e.abort||this._callback(),this._taskHandle=null)}schedule(){if(!this._taskHandle){var e=setTimeout(()=>{this._taskHandle=Z.runAfterInteractions(()=>{this._taskHandle=null,this._callback()})},this._delay);this._taskHandle={cancel:()=>clearTimeout(e)}}}},te=function(e,t,n){return t<e?e:t>n?n:t};class ne{constructor(e){I()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(I()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),n=t[0],r=t[1],i=this._findRegion(e.last),o=i[0],a=i[1];if(r!==a||n.isSpacer){var s=[],l=[],u=(0,C.A)((0,C.A)({},e),{},{isSpacer:!1});n.first<u.first&&(n.isSpacer?s.push({first:n.first,last:u.first-1,isSpacer:!0}):u.first=n.first),o.last>u.last&&(o.isSpacer?l.push({first:u.last+1,last:o.last,isSpacer:!0}):u.last=o.last);var c=[...s,u,...l],d=a-r+1;this._regions.splice(r,d,...c)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every((t,n)=>t.first===e._regions[n].first&&t.last===e._regions[n].last&&t.isSpacer===e._regions[n].isSpacer)}_findRegion(e){for(var t=0,n=this._regions.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this._regions[r];if(e>=i.first&&e<=i.last)return[i,r];e<i.first?n=r-1:e>i.last&&(t=r+1)}I()(!1,"A region was not found containing cellIdx "+e)}}class re{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var n;I()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var r=null!==(n=this._cellKeyToChildren.get(t))&&void 0!==n?n:new Set;r.add(e),this._cellKeyToChildren.set(t,r),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);I()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var n=this._cellKeyToChildren.get(t);I()(n,"_cellKeyToChildren should contain cellKey"),n.delete(e),0===n.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,n=L(this._cellKeyToChildren.values());!(t=n()).done;)for(var r,i=L(t.value);!(r=i()).done;)e(r.value)}forEachInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)t(r.value)}anyInCell(e,t){for(var n,r,i=L(null!==(n=this._cellKeyToChildren.get(e))&&void 0!==n?n:[]);!(r=i()).done;)if(t(r.value))return!0;return!1}size(){return this._childrenToCellKey.size}}class ie{constructor(){this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}}var oe=[],ae=10,se=null;const le=class{static addListener(e){return null===se&&console.warn("Call `FillRateHelper.setSampleRate` before `addListener`."),oe.push(e),{remove:()=>{oe=oe.filter(t=>e!==t)}}}static setSampleRate(e){se=e}static setMinSampleCount(e){ae=e}constructor(e){this._anyBlankStartTime=null,this._enabled=!1,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=e,this._enabled=(se||0)>Math.random(),this._resetData()}activate(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=n.g.performance.now())}deactivateAndFlush(){if(this._enabled){var e=this._samplesStartTime;if(null!=e)if(this._info.sample_count<ae)this._resetData();else{var t=n.g.performance.now()-e,r=(0,C.A)((0,C.A)({},this._info),{},{total_time_spent:t});oe.forEach(e=>e(r)),this._resetData()}}}computeBlankness(e,t,r){if(!this._enabled||0===e.getItemCount(e.data)||t.last<t.first||null==this._samplesStartTime)return 0;var i=r.dOffset,o=r.offset,a=r.velocity,s=r.visibleLength;this._info.sample_count++,this._info.pixels_sampled+=Math.round(s),this._info.pixels_scrolled+=Math.round(Math.abs(i));var l=Math.round(1e3*Math.abs(a)),u=n.g.performance.now();null!=this._anyBlankStartTime&&(this._info.any_blank_ms+=u-this._anyBlankStartTime),this._anyBlankStartTime=null,null!=this._mostlyBlankStartTime&&(this._info.mostly_blank_ms+=u-this._mostlyBlankStartTime),this._mostlyBlankStartTime=null;for(var c=0,d=t.first,h=this._getFrameMetrics(d,e);d<=t.last&&(!h||!h.inLayout);)h=this._getFrameMetrics(d,e),d++;h&&d>0&&(c=Math.min(s,Math.max(0,h.offset-o)));for(var f=0,p=t.last,m=this._getFrameMetrics(p,e);p>=t.first&&(!m||!m.inLayout);)m=this._getFrameMetrics(p,e),p--;if(m&&p<e.getItemCount(e.data)-1){var v=m.offset+m.length;f=Math.min(s,Math.max(0,o+s-v))}var g=Math.round(c+f),y=g/s;return y>0?(this._anyBlankStartTime=u,this._info.any_blank_speed_sum+=l,this._info.any_blank_count++,this._info.pixels_blank+=g,y>.5&&(this._mostlyBlankStartTime=u,this._info.mostly_blank_count++)):(l<.01||Math.abs(i)<1)&&this.deactivateAndFlush(),y}enabled(){return this._enabled}_resetData(){this._anyBlankStartTime=null,this._info=new ie,this._mostlyBlankStartTime=null,this._samplesStartTime=null}};class ue extends k.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState((t,n)=>{var r;this._inAsyncStateUpdate=!0;try{r=e(t,n)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return r},t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,n=this.state;Object.defineProperty(this,"props",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(I()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),n),set(e){n=e}})}}function ce(e,t,n,r,i,o){if(function(e,t,n){return e>=0&&t<=n&&t>e}(n,r,i))return!0;var a=function(e,t,n){var r=Math.min(t,n)-Math.max(e,0);return Math.max(0,r)}(n,r,i);return 100*(e?a/i:a/o)>=t}const de=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,n,r,i){var o=e.getItemCount(e.data),a=this._config,s=a.itemVisiblePercentThreshold,l=a.viewAreaCoveragePercentThreshold,u=null!=l,c=u?l:s;I()(null!=c&&null!=s!=(null!=l),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===o)return d;var h=-1,f=i||{first:0,last:o-1},p=f.first,m=f.last;if(m>=o)return console.warn("Invalid render range computing viewability "+JSON.stringify({renderRange:i,itemCount:o})),[];for(var v=p;v<=m;v++){var g=r(v,e);if(g){var y=g.offset-t,b=y+g.length;if(y<n&&b>0)h=v,ce(u,c,y,b,n,g.length)&&d.push(v);else if(h>=0)break}}return d}onUpdate(e,t,n,r,i,o,a){var s=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==s&&r(0,e)){var l=[];if(s&&(l=this.computeViewableItems(e,t,n,r,a)),this._viewableIndices.length!==l.length||!this._viewableIndices.every((e,t)=>e===l[t]))if(this._viewableIndices=l,this._config.minimumViewTime){var u=setTimeout(()=>{this._timers.delete(u),this._onUpdateSync(e,l,o,i)},this._config.minimumViewTime);this._timers.add(u)}else this._onUpdateSync(e,l,o,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,n,r){t=t.filter(e=>this._viewableIndices.includes(e));for(var i,o=this._viewableItems,a=new Map(t.map(t=>{var n=r(t,!0,e);return[n.key,n]})),s=[],l=L(a);!(i=l()).done;){var u=i.value,c=u[0],d=u[1];o.has(c)||s.push(d)}for(var h,f=L(o);!(h=f()).done;){var p=h.value,m=p[0],v=p[1];a.has(m)||s.push((0,C.A)((0,C.A)({},v),{},{isViewable:!1}))}s.length>0&&(this._viewableItems=a,n({viewableItems:Array.from(a.values()),changed:s,viewabilityConfig:this._config}))}};var he=k.createContext(null);function fe(e){var t=e.children,n=e.value,r=(0,k.useMemo)(()=>({cellKey:null,getScrollMetrics:n.getScrollMetrics,horizontal:n.horizontal,getOutermostParentListRef:n.getOutermostParentListRef,registerAsNestedChild:n.registerAsNestedChild,unregisterAsNestedChild:n.unregisterAsNestedChild}),[n.getScrollMetrics,n.horizontal,n.getOutermostParentListRef,n.registerAsNestedChild,n.unregisterAsNestedChild]);return k.createElement(he.Provider,{value:r},t)}function pe(e){var t=e.cellKey,n=e.children,r=(0,k.useContext)(he),i=(0,k.useMemo)(()=>null==r?null:(0,C.A)((0,C.A)({},r),{},{cellKey:t}),[r,t]);return k.createElement(he.Provider,{value:i},n)}class me extends k.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,n=e.prevCellKey;this.props.onUpdateSeparators([t,n],{highlighted:!1})},updateProps:(e,t)=>{var n=this.props,r=n.cellKey,i=n.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:r],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,C.A)((0,C.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState(t=>({separatorProps:(0,C.A)((0,C.A)({},t.separatorProps),e)}))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,n,r){return e&&t&&console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."),t?k.createElement(t,{item:n,index:r,separators:this._separators}):e?e({item:n,index:r,separators:this._separators}):void I()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,n=e.ItemSeparatorComponent,r=e.ListItemComponent,i=e.cellKey,o=e.horizontal,a=e.item,s=e.index,l=e.inversionStyle,u=e.onCellFocusCapture,c=e.onCellLayout,d=e.renderItem,h=this._renderElement(d,r,a,s),f=k.isValidElement(n)?n:n&&k.createElement(n,this.state.separatorProps),p=l?o?[ve.rowReverse,l]:[ve.columnReverse,l]:o?[ve.row,l]:l,m=t?k.createElement(t,(0,x.A)({cellKey:i,index:s,item:a,style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f):k.createElement(R.A,(0,x.A)({style:p,onFocusCapture:u},c&&{onLayout:this._onLayout}),h,f);return k.createElement(pe,{cellKey:this.props.cellKey},m)}}var ve=T.A.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}});function ge(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}var ye=n(801),be=n.n(ye),_e=!1,we="";function Se(e){return null!=e&&e}function Ce(e){return null!=e?e:10}function Ee(e){return null!=e?e:2}function xe(e,t){return e*t/2}function ke(e){return null!=e?e:21}class Ae extends ue{scrollToEnd(e){var t=!e||e.animated,n=this.props.getItemCount(this.props.data)-1;if(!(n<0)){var r=this.__getFrameMetricsApprox(n,this.props),i=Math.max(0,r.offset+r.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}}scrollToIndex(e){var t=this.props,n=t.data,r=t.horizontal,i=t.getItemCount,o=t.getItemLayout,a=t.onScrollToIndexFailed,s=e.animated,l=e.index,u=e.viewOffset,c=e.viewPosition;if(I()(l>=0,"scrollToIndex out of range: requested index "+l+" but minimum is 0"),I()(i(n)>=1,"scrollToIndex out of range: item length "+i(n)+" but minimum is 1"),I()(l<i(n),"scrollToIndex out of range: requested index "+l+" is out of 0 to "+(i(n)-1)),!o&&l>this._highestMeasuredFrameIndex)return I()(!!a,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void a({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:l});var d=this.__getFrameMetricsApprox(Math.floor(l),this.props),h=Math.max(0,this._getOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(r?{x:h,animated:s}:{y:h,animated:s}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}scrollToItem(e){for(var t=e.item,n=this.props,r=n.data,i=n.getItem,o=(0,n.getItemCount)(r),a=0;a<o;a++)if(i(r,a)===t){this.scrollToIndex((0,C.A)((0,C.A)({},e),{},{index:a}));break}}scrollToOffset(e){var t=e.animated,n=e.offset;null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(Se(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}recordInteraction(){this._nestedChildLists.forEach(e=>{e.recordInteraction()}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach(e=>{var n=null!=e&&this._cellRefs[e];n&&n.updateSeparatorProps(t)})},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new re,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,n=e.onRefresh;return this._isNestedWithSameOrientation()?k.createElement(R.A,e):n?(I()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),k.createElement(F.A,(0,x.A)({},e,{refreshControl:null==e.refreshControl?k.createElement(D,{refreshing:e.refreshing,onRefresh:n,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):k.createElement(F.A,e)},this._onCellLayout=(e,t,n)=>{var r=e.nativeEvent.layout,i={offset:this._selectOffset(r),length:this._selectLength(r),index:n,inLayout:!0},o=this._frames[t];o&&i.offset===o.offset&&i.length===o.length&&n===o.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(o?o.length:0),this._totalCellsMeasured+=o?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,n),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,C.A)((0,C.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:be()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,n=e.visibleLength,r=t-this._scrollMetrics.offset;return{visibleLength:n,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:r}},this._onScroll=e=>{this._nestedChildLists.forEach(t=>{t._onScroll(e)}),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,n=this._selectLength(e.nativeEvent.layoutMeasurement),r=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),o=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var a=this._convertParentScrollMetrics({visibleLength:n,offset:i});n=a.visibleLength,r=a.contentLength,i=a.offset,o=a.dOffset}var s=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,l=o/s;s>500&&this._scrollMetrics.dt>500&&r>5*n&&!this._hasWarned.perf&&(function(){console.log(...arguments)}("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:s,prevDt:this._scrollMetrics.dt,contentLength:r}),this._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:r,dt:s,dOffset:o,offset:i,timestamp:t,velocity:l,visibleLength:n,zoomScale:u},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==l&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollBeginDrag(e)}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.recordInteraction()}),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach(t=>{t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollBegin(e)}),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach(t=>{t._onMomentumScrollEnd(e)}),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState((e,t)=>{var n=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),r=Ae._createRenderMask(t,n,this._getNonViewportRenderRegions(t));return n.first===e.cellsAroundViewport.first&&n.last===e.cellsAroundViewport.last&&r.equals(e.renderMask)?null:{cellsAroundViewport:n,renderMask:r}})},this._createViewToken=(e,t,n)=>{var r=n.data,i=(0,n.getItem)(r,e);return{index:e,item:i,key:this._keyExtractor(i,e,n),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var n=this.__getFrameMetricsApprox(Math.floor(e),t),r=e-Math.floor(e);return n.offset+r*n.length},this.__getFrameMetricsApprox=(e,t)=>{var n=this._getFrameMetrics(e,t);if(n&&n.index===e)return n;var r=t.data,i=t.getItemCount,o=t.getItemLayout;return I()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e),I()(!o,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var n=t.data,r=t.getItem,i=t.getItemCount,o=t.getItemLayout;I()(e>=0&&e<i(n),"Tried to get frame for out of range index "+e);var a=r(n,e),s=this._frames[this._keyExtractor(a,e,t)];return s&&s.index===e||!o?s:o(n,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,n=e.getItemCount(e.data);if(t>=n||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var r=t,i=0,o=r-1;o>=0&&i<this._scrollMetrics.visibleLength;o--)r--,i+=this.__getFrameMetricsApprox(o,e).length;for(var a=t,s=0,l=a+1;l<n&&s<this._scrollMetrics.visibleLength;l++)a++,s+=this.__getFrameMetricsApprox(l,e).length;return[{first:r,last:a}]},this._checkProps(e),this._fillRateHelper=new le(this._getFrameMetrics),this._updateCellsToRenderBatcher=new ee(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityHelper:new de(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}));else{var n=this.props,r=n.onViewableItemsChanged,i=n.viewabilityConfig;r&&this._viewabilityTuples.push({viewabilityHelper:new de(i),onViewableItemsChanged:r})}var o=Ae._initialRenderRegion(e);this.state={cellsAroundViewport:o,renderMask:Ae._createRenderMask(e,o)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,n=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,r=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=n>r,o=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,a=o;i&&(a=o<0?Math.min(o+t,0):Math.max(o-(n-r-t),0));var s=o-a;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var l=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=s;var u=l.scrollLeft-a;l.scrollLeft=this.props.getItemLayout?u:Math.min(u,this._totalCellLength)}else{e.target.scrollTop+=s;var c=l.scrollTop-a;l.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,n=e.windowSize,r=e.getItemCount,i=e.data,o=e.initialScrollIndex;I()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),I()(ke(n)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),I()(r,'VirtualizedList: The "getItemCount" prop must be provided');var a=r(i);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||a>0&&o>=a)||this._hasWarned.initialScrollIndex||(console.warn('initialScrollIndex "'+o+'" is not valid (list has '+a+" items)"),this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,n){var r=e.getItemCount(e.data);I()(t.first>=0&&t.last>=t.first-1&&t.last<r,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new ne(r);if(r>0){for(var o=0,a=[t,...null!=n?n:[]];o<a.length;o++){var s=a[o];i.addCells(s)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var l=Ae._initialRenderRegion(e);i.addCells(l)}var u=new Set(e.stickyHeaderIndices);Ae._ensureClosestStickyHeader(e,u,i,t.first)}return i}static _initialRenderRegion(e){var t,n,r=e.getItemCount(e.data),i=Math.max(0,Math.min(r-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(r,i+(null!=(n=e.initialNumToRender)?n:10))-1}}static _ensureClosestStickyHeader(e,t,n,r){for(var i=e.ListHeaderComponent?1:0,o=r-1;o>=0;o--)if(t.has(o+i)){n.addCells({first:o,last:o});break}}_adjustCellsAroundViewport(e,t){var n,r=e.data,i=e.getItemCount,o=Ee(e.onEndReachedThreshold),a=this._scrollMetrics,s=a.contentLength,l=a.offset,u=a.visibleLength,c=s-u-l;if(u<=0||s<=0)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<o*u?Ce(e.maxToRenderPerBatch):0;n={first:0,last:Math.min(t.last+d,i(r)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(r)?Ae._constrainToItemCount(t,e):t;n=function(e,t,n,r,i,o){var a=e.getItemCount(e.data);if(0===a)return{first:0,last:-1};var s=o.offset,l=o.velocity,u=o.visibleLength,c=o.zoomScale,d=void 0===c?1:c,h=Math.max(0,s),f=h+u,p=(n-1)*u,m=l>1?"after":l<-1?"before":"none",v=Math.max(0,h-.5*p),g=Math.max(0,f+.5*p);if(i(a-1,e).offset*d<v)return{first:Math.max(0,a-1-t),last:a-1};var y=function(e,t,n,r){void 0===r&&(r=1);for(var i=t.getItemCount(t.data),o=[],a=0;a<e.length;a++)for(var s=e[a],l=0,u=i-1;l<=u;){var c=l+(u-l>>>1),d=n(c,t),h=d.offset*r,f=(d.offset+d.length)*r;if(0===c&&s<h||0!==c&&s<=h)u=c-1;else{if(!(s>f)){o[a]=c;break}l=c+1}}return o}([v,h,f,g],e,i,d),b=y[0],_=y[1],w=y[2],S=y[3];b=null==b?0:b,S=null==S?a-1:S;for(var C={first:_=null==_?Math.max(0,b):_,last:w=null==w?Math.min(S,_+t-1):w},E=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(r,C);!(_<=b&&w>=S);){var x=E>=t,k=_<=r.first||_>r.last,A=_>b&&(!x||!k),R=w>=r.last||w<r.first,T=w<S&&(!x||!R);if(x&&!A&&!T)break;!A||"after"===m&&T&&R||(k&&E++,_--),!T||"before"===m&&A&&k||(R&&E++,w++)}if(!(w>=_&&_>=0&&w<a&&_>=b&&w<=S&&_<=C.first&&w>=C.last))throw new Error("Bad window calculation "+JSON.stringify({first:_,last:w,itemCount:a,overscanFirst:b,overscanLast:S,visible:C}));return{first:_,last:w}}(e,Ce(e.maxToRenderPerBatch),ke(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),I()(n.last<i(r),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var h=this._findFirstChildWithMore(n.first,n.last);n.last=null!=h?h:n.last}return n}_findFirstChildWithMore(e,t){for(var n=e;n<=t;n++){var r=this._indicesToKeys.get(n);if(null!=r&&this._nestedChildLists.anyInCell(r,e=>e.hasMore()))return n}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout(()=>this.setupWebWheelHandler(),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var n=Ae._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:n,renderMask:Ae._createRenderMask(e,n)}}_pushCells(e,t,n,r,i,o){var a,s=this,l=this.props,u=l.CellRendererComponent,c=l.ItemSeparatorComponent,d=l.ListHeaderComponent,h=l.ListItemComponent,f=l.data,p=l.debug,m=l.getItem,v=l.getItemCount,g=l.getItemLayout,y=l.horizontal,b=l.renderItem,_=d?1:0,w=v(f)-1;i=Math.min(w,i);for(var S=function(){var r=m(f,C),i=s._keyExtractor(r,C,s.props);s._indicesToKeys.set(C,i),n.has(C+_)&&t.push(e.length);var l=null==g||p||s._fillRateHelper.enabled();e.push(k.createElement(me,(0,x.A)({CellRendererComponent:u,ItemSeparatorComponent:C<w?c:void 0,ListItemComponent:h,cellKey:i,horizontal:y,index:C,inversionStyle:o,item:r,key:i,prevCellKey:a,onUpdateSeparators:s._onUpdateSeparators,onCellFocusCapture:e=>s._onCellFocusCapture(i),onUnmount:s._onCellUnmount,ref:e=>{s._cellRefs[i]=e},renderItem:b},l&&{onCellLayout:s._onCellLayout}))),a=i},C=r;C<=i;C++)S()}static _constrainToItemCount(e,t){var n=t.getItemCount(t.data),r=Math.min(n-1,e.last),i=Ce(t.maxToRenderPerBatch);return{first:te(0,n-1-i,e.first),last:r}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==Se(this.props.horizontal))}_keyExtractor(e,t,n){if(null!=n.keyExtractor)return n.keyExtractor(e,t);var r=ge(e,t);return r===String(t)&&(_e=!0,e.type&&e.type.displayName&&(we=e.type.displayName)),r}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,n=e.ListFooterComponent,r=e.ListHeaderComponent,i=this.props,o=i.data,a=i.horizontal,s=this.props.inverted?Se(this.props.horizontal)?Re.horizontallyInverted:Re.verticallyInverted:null,l=[],u=new Set(this.props.stickyHeaderIndices),c=[];if(r){u.has(0)&&c.push(0);var d=k.isValidElement(r)?r:k.createElement(r,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-header",key:"$header"},k.createElement(R.A,{onLayout:this._onLayoutHeader,style:[s,this.props.ListHeaderComponentStyle]},d)))}var h=this.props.getItemCount(o);if(0===h&&t){var f=k.isValidElement(t)?t:k.createElement(t,null);l.push(k.createElement(pe,{cellKey:this._getCellKey()+"-empty",key:"$empty"},k.cloneElement(f,{onLayout:e=>{this._onLayoutEmpty(e),f.props.onLayout&&f.props.onLayout(e)},style:[s,f.props.style]})))}if(h>0){_e=!1,we="";for(var p,m=this._getSpacerKey(!a),v=this.state.renderMask.enumerateRegions(),g=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}(v,e=>e.isSpacer),y=L(v);!(p=y()).done;){var b=p.value;if(b.isSpacer){if(this.props.disableVirtualization)continue;var _=b!==g||this.props.getItemLayout?b.last:te(b.first-1,b.last,this._highestMeasuredFrameIndex),w=this.__getFrameMetricsApprox(b.first,this.props),S=this.__getFrameMetricsApprox(_,this.props),E=S.offset+S.length-w.offset;l.push(k.createElement(R.A,{key:"$spacer-"+b.first,style:{[m]:E}}))}else this._pushCells(l,c,u,b.first,b.last,s)}!this._hasWarned.keys&&_e&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",we),this._hasWarned.keys=!0)}if(n){var x=k.isValidElement(n)?n:k.createElement(n,null);l.push(k.createElement(pe,{cellKey:this._getFooterCellKey(),key:"$footer"},k.createElement(R.A,{onLayout:this._onLayoutFooter,style:[s,this.props.ListFooterComponentStyle]},x)))}var A,T=(0,C.A)((0,C.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(A=this.props.scrollEventThrottle,null!=A?A:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:c,style:s?[s,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<h-1;var P=k.createElement(fe,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:Se(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},k.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(T),{ref:this._captureScrollRef},l));return this.props.debug?k.createElement(R.A,{style:Re.debug},P,this._renderDebugOverlay()):P}componentDidUpdate(e){var t=this.props,n=t.data,r=t.extraData;n===e.data&&r===e.extraData||this._viewabilityTuples.forEach(e=>{e.viewabilityHelper.resetViewableIndices()});var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,e=>{e.measureLayoutRelativeToContainingList()})}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),(e,t,n,r)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:n,height:r});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach(e=>{e.measureLayoutRelativeToContainingList()}))},e=>{console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.")})}catch(e){console.warn("measureLayoutRelativeToContainingList threw an error",e.stack)}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],n=this.props.getItemCount(this.props.data),r=0;r<n;r++){var i=this.__getFrameMetricsApprox(r,this.props);i.inLayout&&t.push(i)}var o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,a=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),s=a.offset+a.length-o,l=this._scrollMetrics.offset,u=this._scrollMetrics.visibleLength;return k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlay]},t.map((t,n)=>k.createElement(R.A,{key:"f"+n,style:[Re.debugOverlayBase,Re.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]})),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameLast,{top:o*e,height:s*e}]}),k.createElement(R.A,{style:[Re.debugOverlayBase,Re.debugOverlayFrameVis,{top:l*e,height:u*e}]}))}_selectLength(e){return Se(this.props.horizontal)?e.width:e.height}_selectOffset(e){return Se(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,n=e.getItemCount,r=e.onStartReached,i=e.onStartReachedThreshold,o=e.onEndReached,a=e.onEndReachedThreshold,s=e.initialScrollIndex,l=this._scrollMetrics,u=l.contentLength,c=l.visibleLength,d=l.offset,h=d,f=u-c-d;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=i?i*c:2),m=f<=(null!=a?a*c:2);o&&this.state.cellsAroundViewport.last===n(t)-1&&m&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,o({distanceFromEnd:f})):null!=r&&0===this.state.cellsAroundViewport.first&&p&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?s&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,r({distanceFromStart:h})):(this._sentStartForContentLength=p?this._sentStartForContentLength:0,this._sentEndForContentLength=m?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,n=e.last,r=this._scrollMetrics,i=r.offset,o=r.visibleLength,a=r.velocity,s=this.props.getItemCount(this.props.data),l=!1,u=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=Ee(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;l=d<0||a<-2&&d<xe(u,o)}if(!l&&n>=0&&n<s-1){var h=this.__getFrameMetricsApprox(n,this.props).offset-(i+o);l=h<0||a>2&&h<xe(c,o)}if(l&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach(n=>{n.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,n.onViewableItemsChanged,t)})}}Ae.contextType=he;var Re=T.A.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const Te=Ae;var Pe=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Oe(e,t){return e===t||!(!Pe(e)||!Pe(t))}function Ie(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Oe(e[n],t[n]))return!1;return!0}var Ne=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function Le(e){return null!=e?e:1}class Me extends k.PureComponent{scrollToEnd(e){this._listRef&&this._listRef.scrollToEnd(e)}scrollToIndex(e){this._listRef&&this._listRef.scrollToIndex(e)}scrollToItem(e){this._listRef&&this._listRef.scrollToItem(e)}scrollToOffset(e){this._listRef&&this._listRef.scrollToOffset(e)}recordInteraction(){this._listRef&&this._listRef.recordInteraction()}flashScrollIndicators(){this._listRef&&this._listRef.flashScrollIndicators()}getScrollResponder(){if(this._listRef)return this._listRef.getScrollResponder()}getNativeScrollRef(){if(this._listRef)return this._listRef.getScrollRef()}getScrollableNode(){if(this._listRef)return this._listRef.getScrollableNode()}constructor(e){super(e),this._virtualizedListPairs=[],this._captureRef=e=>{this._listRef=e},this._getItem=(e,t)=>{var n=Le(this.props.numColumns);if(n>1){for(var r=[],i=0;i<n;i++){var o=t*n+i;if(o<e.length){var a=e[o];r.push(a)}}return r}return e[t]},this._getItemCount=e=>{if(null!=e&&function(e){return"number"==typeof Object(e).length}(e)){var t=Le(this.props.numColumns);return t>1?Math.ceil(e.length/t):e.length}return 0},this._keyExtractor=(e,t)=>{var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ge;return r>1?(I()(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((e,n)=>i(e,t*r+n)).join(":")):i(e,t)},this._renderer=(e,t,n,r,i)=>{var o=Le(r),a=n=>e?k.createElement(e,n):t?t(n):null,s=e=>{if(o>1){var t=e.item,r=e.index;return I()(Array.isArray(t),"Expected array of items with numColumns > 1"),k.createElement(R.A,{style:[De.row,n]},t.map((t,n)=>{var i=a({item:t,index:r*o+n,separators:e.separators});return null!=i?k.createElement(k.Fragment,{key:n},i):null}))}return a(e)};return e?{ListItemComponent:s}:{renderItem:s}},this._memoizedRenderer=function(e,t){void 0===t&&(t=Ie);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(this._renderer),this._checkProps(this.props),this.props.viewabilityConfigCallbackPairs?this._virtualizedListPairs=this.props.viewabilityConfigCallbackPairs.map(e=>({viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(e.onViewableItemsChanged)})):this.props.onViewableItemsChanged&&this._virtualizedListPairs.push({viewabilityConfig:this.props.viewabilityConfig,onViewableItemsChanged:this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)})}componentDidUpdate(e){I()(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),I()(e.onViewableItemsChanged===this.props.onViewableItemsChanged,"Changing onViewableItemsChanged on the fly is not supported"),I()(!P(e.viewabilityConfig,this.props.viewabilityConfig),"Changing viewabilityConfig on the fly is not supported"),I()(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,"Changing viewabilityConfigCallbackPairs on the fly is not supported"),this._checkProps(this.props)}_checkProps(e){var t=e.getItem,n=e.getItemCount,r=e.horizontal,i=e.columnWrapperStyle,o=e.onViewableItemsChanged,a=e.viewabilityConfigCallbackPairs,s=Le(this.props.numColumns);I()(!t&&!n,"FlatList does not support custom data formats."),s>1?I()(!r,"numColumns does not support horizontal."):I()(!i,"columnWrapperStyle not supported for single column lists"),I()(!(o&&a),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}_pushMultiColumnViewable(e,t){var n,r=Le(this.props.numColumns),i=null!==(n=this.props.keyExtractor)&&void 0!==n?n:ge;t.item.forEach((n,o)=>{I()(null!=t.index,"Missing index!");var a=t.index*r+o;e.push((0,C.A)((0,C.A)({},t),{},{item:n,key:i(n,a),index:a}))})}_createOnViewableItemsChanged(e){return t=>{var n=Le(this.props.numColumns);if(e)if(n>1){var r=[],i=[];t.viewableItems.forEach(e=>this._pushMultiColumnViewable(i,e)),t.changed.forEach(e=>this._pushMultiColumnViewable(r,e)),e({viewableItems:i,changed:r})}else e(t)}}render(){var e,t=this.props,n=t.numColumns,r=t.columnWrapperStyle,i=t.removeClippedSubviews,o=t.strictMode,a=void 0!==o&&o,s=(0,A.A)(t,Ne),l=a?this._memoizedRenderer:this._renderer;return k.createElement(Te,(0,x.A)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=i,null!=e?e:"android"===E.A.OS)},l(this.props.ListItemComponent,this.props.renderItem,r,n,this.props.extraData)))}}var De=T.A.create({row:{flexDirection:"row"}});const Fe=Me;var je=n(5725);class ze{constructor(e){"ios"===E.A.OS&&(I()(null!=e,"`new NativeEventEmitter()` requires a non-null argument."),this._nativeModule=e)}addListener(e,t,n){var r;null==(r=this._nativeModule)||r.addListener(e);var i=je.A.addListener(e,t,n);return{remove:()=>{var e;null!=i&&(null==(e=this._nativeModule)||e.removeListeners(1),i.remove(),i=null)}}}removeListener(e,t){var n;null==(n=this._nativeModule)||n.removeListeners(1),je.A.removeListener(e,t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];je.A.emit(e,...n)}removeAllListeners(e){var t;I()(null!=e,"`NativeEventEmitter.removeAllListener()` requires a non-null argument."),null==(t=this._nativeModule)||t.removeListeners(this.listenerCount(e)),je.A.removeAllListeners(e)}listenerCount(e){return je.A.listenerCount(e)}}const Ve=E.A,Be=()=>!1,He=()=>!1;var We,Ue=("ios"===Ve.OS&&n.g.RN$Bridgeless,null),Ye=1,qe=1,Ke=new Set,$e=!1,Ge=[];"android"===Ve.OS&&null!=Ue&&Ue.queueAndExecuteBatchedOperations&&He();var Xe=null,Qe=Ue,Je={getValue:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.getValue,e,t)},setWaitingForIdentifier:function(e){Ke.add(e),$e=!0,Be()&&Xe&&clearTimeout(Xe)},unsetWaitingForIdentifier:function(e){Ke.delete(e),0===Ke.size&&($e=!1,Je.disableQueue())},disableQueue:function(){I()(Qe,"Native animated module is not available"),Be()?(clearImmediate(Xe),Xe=setImmediate(Je.flushQueue)):Je.flushQueue()},flushQueue:function(){},queueOperation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];$e||0!==Ge.length?Ge.push(()=>e(...n)):e(...n)},createAnimatedNode:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.createAnimatedNode,e,t)},updateAnimatedNodeConfig:function(e,t){I()(Qe,"Native animated module is not available")},startListeningToAnimatedNodeValue:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.startListeningToAnimatedNodeValue,e)},stopListeningToAnimatedNodeValue:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.stopListeningToAnimatedNodeValue,e)},connectAnimatedNodes:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.connectAnimatedNodes,e,t)},disconnectAnimatedNodes:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.disconnectAnimatedNodes,e,t)},startAnimatingNode:function(e,t,n,r){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.startAnimatingNode,e,t,n,r)},stopAnimation:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.stopAnimation,e)},setAnimatedNodeValue:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.setAnimatedNodeValue,e,t)},setAnimatedNodeOffset:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.setAnimatedNodeOffset,e,t)},flattenAnimatedNodeOffset:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.flattenAnimatedNodeOffset,e)},extractAnimatedNodeOffset:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.extractAnimatedNodeOffset,e)},connectAnimatedNodeToView:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.connectAnimatedNodeToView,e,t)},disconnectAnimatedNodeFromView:function(e,t){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.disconnectAnimatedNodeFromView,e,t)},restoreDefaultValues:function(e){I()(Qe,"Native animated module is not available"),null!=Qe.restoreDefaultValues&&Je.queueOperation(Qe.restoreDefaultValues,e)},dropAnimatedNode:function(e){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.dropAnimatedNode,e)},addAnimatedEventToView:function(e,t,n){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.addAnimatedEventToView,e,t,n)},removeAnimatedEventFromView(e,t,n){I()(Qe,"Native animated module is not available"),Je.queueOperation(Qe.removeAnimatedEventFromView,e,t,n)}},Ze={backgroundColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderRightColor:!0,borderStartColor:!0,borderTopColor:!0,color:!0,tintColor:!0},et=(0,C.A)((0,C.A)({},Ze),{},{borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,opacity:!0,transform:!0,zIndex:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0}),tt={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,perspective:!0},nt={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};function rt(e){return et.hasOwnProperty(e)}function it(e){return tt.hasOwnProperty(e)}function ot(e){return nt.hasOwnProperty(e)}function at(){return qe++}var st=!1;function lt(e){return null==e.useNativeDriver&&console.warn("Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`"),!0!==e.useNativeDriver||Ue?e.useNativeDriver||!1:(st||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"),st=!0),!1)}const ut={API:Je,isSupportedColorStyleProp:function(e){return Ze.hasOwnProperty(e)},isSupportedStyleProp:rt,isSupportedTransformProp:it,isSupportedInterpolationParam:ot,addWhitelistedStyleProp:function(e){et[e]=!0},addWhitelistedTransformProp:function(e){tt[e]=!0},addWhitelistedInterpolationParam:function(e){nt[e]=!0},validateStyles:function(e){for(var t in e)if(!rt(t))throw new Error("Style property '"+t+"' is not supported by native animated module")},validateTransform:function(e){e.forEach(e=>{if(!it(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})},validateInterpolation:function(e){for(var t in e)if(!ot(t))throw new Error("Interpolation property '"+t+"' is not supported by native animated module")},generateNewNodeTag:function(){return Ye++},generateNewAnimationId:at,assertNativeAnimatedModule:function(){I()(Ue,"Native animated module is not available")},shouldUseNativeDriver:lt,transformDataType:function(e){return"string"!=typeof e?e:/deg$/.test(e)?(parseFloat(e)||0)*Math.PI/180:e},get nativeEventEmitter(){return We||(We=new ze("ios"!==Ve.OS?null:Ue)),We}};var ct=ut.API,dt=1;const ht=class{__attach(){}__detach(){this.__isNative&&null!=this.__nativeTag&&(ut.API.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}__getValue(){}__getAnimatedValue(){return this.__getValue()}__addChild(e){}__removeChild(e){}__getChildren(){return[]}constructor(){this._listeners={}}__makeNative(e){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node');this._platformConfig=e,this.hasListeners()&&this._startListeningToNativeValueUpdates()}addListener(e){var t=String(dt++);return this._listeners[t]=e,this.__isNative&&this._startListeningToNativeValueUpdates(),t}removeListener(e){delete this._listeners[e],this.__isNative&&!this.hasListeners()&&this._stopListeningForNativeValueUpdates()}removeAllListeners(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}hasListeners(){return!!Object.keys(this._listeners).length}_startListeningToNativeValueUpdates(){this.__nativeAnimatedValueListener&&!this.__shouldUpdateListenersForNewNativeTag||(this.__shouldUpdateListenersForNewNativeTag&&(this.__shouldUpdateListenersForNewNativeTag=!1,this._stopListeningForNativeValueUpdates()),ct.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=ut.nativeEventEmitter.addListener("onAnimatedValueUpdate",e=>{e.tag===this.__getNativeTag()&&this.__onAnimatedValueUpdateReceived(e.value)}))}__onAnimatedValueUpdateReceived(e){this.__callListeners(e)}__callListeners(e){for(var t in this._listeners)this._listeners[t]({value:e})}_stopListeningForNativeValueUpdates(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,ct.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}__getNativeTag(){var e;ut.assertNativeAnimatedModule(),I()(this.__isNative,'Attempt to get native tag from node not marked as "native"');var t=null!==(e=this.__nativeTag)&&void 0!==e?e:ut.generateNewNodeTag();if(null==this.__nativeTag){this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),ut.API.createAnimatedNode(t,n),this.__shouldUpdateListenersForNewNativeTag=!0}return t}__getNativeConfig(){throw new Error("This JS animated node type cannot be used as native animated node")}toJSON(){return this.__getValue()}__getPlatformConfig(){return this._platformConfig}__setPlatformConfig(e){this._platformConfig=e}},ft=class extends ht{constructor(){super(),this._children=[]}__makeNative(e){if(!this.__isNative){this.__isNative=!0;for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__makeNative(e),ut.API.connectAnimatedNodes(this.__getNativeTag(),r.__getNativeTag())}}super.__makeNative(e)}__addChild(e){0===this._children.length&&this.__attach(),this._children.push(e),this.__isNative&&(e.__makeNative(this.__getPlatformConfig()),ut.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()))}__removeChild(e){var t=this._children.indexOf(e);-1!==t?(this.__isNative&&e.__isNative&&ut.API.disconnectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag()),this._children.splice(t,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}__getChildren(){return this._children}__callListeners(e){if(super.__callListeners(e),!this.__isNative)for(var t,n=L(this._children);!(t=n()).done;){var r=t.value;r.__getValue&&r.__callListeners(r.__getValue())}}};var pt=n(1515),mt=n.n(pt),vt=e=>e;function gt(e){if(e.outputRange&&"string"==typeof e.outputRange[0])return function(e){var t=e.outputRange;I()(t.length>=2,"Bad output range"),function(e){for(var t=e[0].replace(bt,""),n=1;n<e.length;++n)I()(t===e[n].replace(bt,""),"invalid pattern "+e[0]+" and "+e[n])}(t=t.map(yt));var n=t[0].match(bt).map(()=>[]);t.forEach(e=>{e.match(bt).forEach((e,t)=>{n[t].push(+e)})});var r,i=t[0].match(bt).map((t,r)=>gt((0,C.A)((0,C.A)({},e),{},{outputRange:n[r]}))),o="string"==typeof(r=t[0])&&r.startsWith("rgb");return e=>{var n=0;return t[0].replace(bt,()=>{var t=+i[n++](e);return o&&(t=n<4?Math.round(t):Math.round(1e3*t)/1e3),String(t)})}}(e);var t=e.outputRange,n=e.inputRange,r=e.easing||vt,i="extend";void 0!==e.extrapolateLeft?i=e.extrapolateLeft:void 0!==e.extrapolate&&(i=e.extrapolate);var o="extend";return void 0!==e.extrapolateRight?o=e.extrapolateRight:void 0!==e.extrapolate&&(o=e.extrapolate),e=>{I()("number"==typeof e,"Cannot interpolation an input which is not a number");var a=function(e,t){var n;for(n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,n);return function(e,t,n,r,i,o,a,s){var l=e;if(l<t){if("identity"===a)return l;"clamp"===a&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}(e,n[a],n[a+1],t[a],t[a+1],r,i,o)}}function yt(e){var t=mt()(e);return null===t||"number"!=typeof t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var bt=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;class _t extends ft{constructor(e,t){super(),this._parent=e,this._config=t,this._interpolation=gt(t)}__makeNative(e){this._parent.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._parent.__getValue();return I()("number"==typeof e,"Cannot interpolate an input which is not a number."),this._interpolation(e)}interpolate(e){return new _t(this,e)}__attach(){this._parent.__addChild(this)}__detach(){this._parent.__removeChild(this),super.__detach()}__transformDataType(e){return e.map(ut.transformDataType)}__getNativeConfig(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}_t.__createInterpolation=gt;const wt=_t;var St=ut.API;const Ct=class extends ft{constructor(e,t){if(super(),"number"!=typeof e)throw new Error("AnimatedValue: Attempting to set value to undefined");this._startingValue=this._value=e,this._offset=0,this._animation=null,t&&t.useNativeDriver&&this.__makeNative()}__detach(){this.__isNative&&St.getValue(this.__getNativeTag(),e=>{this._value=e-this._offset}),this.stopAnimation(),super.__detach()}__getValue(){return this._value+this._offset}setValue(e){var t,n;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(e,!this.__isNative),this.__isNative&&(t=this.__getNativeTag().toString(),n=()=>St.setAnimatedNodeValue(this.__getNativeTag(),e),St.setWaitingForIdentifier(t),n(),St.unsetWaitingForIdentifier(t))}setOffset(e){this._offset=e,this.__isNative&&St.setAnimatedNodeOffset(this.__getNativeTag(),e)}flattenOffset(){this._value+=this._offset,this._offset=0,this.__isNative&&St.flattenAnimatedNodeOffset(this.__getNativeTag())}extractOffset(){this._offset+=this._value,this._value=0,this.__isNative&&St.extractAnimatedNodeOffset(this.__getNativeTag())}stopAnimation(e){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,e&&(this.__isNative?St.getValue(this.__getNativeTag(),e):e(this.__getValue()))}resetAnimation(e){this.stopAnimation(e),this._value=this._startingValue,this.__isNative&&St.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}__onAnimatedValueUpdateReceived(e){this._updateValue(e,!1)}interpolate(e){return new wt(this,e)}animate(e,t){var n=null;e.__isInteraction&&(n=Z.createInteractionHandle());var r=this._animation;this._animation&&this._animation.stop(),this._animation=e,e.start(this._value,e=>{this._updateValue(e,!0)},e=>{this._animation=null,null!==n&&Z.clearInteractionHandle(n),t&&t(e)},r,this)}stopTracking(){this._tracking&&this._tracking.__detach(),this._tracking=null}track(e){this.stopTracking(),this._tracking=e,this._tracking&&this._tracking.update()}_updateValue(e,t){if(void 0===e)throw new Error("AnimatedValue: Attempting to set value to undefined");var n;this._value=e,t&&(n=new Set,function e(t){"function"==typeof t.update?n.add(t):t.__getChildren().forEach(e)}(this),n.forEach(e=>e.update())),super.__callListeners(this.__getValue())}__getNativeConfig(){return{type:"value",value:this._value,offset:this._offset}}};function Et(e,t,n){var r=[],i=(e,t)=>{if(e instanceof Ct)e.__makeNative(),r.push({nativeEventPath:t,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)i(e[n],t.concat(n))};return I()(n[0]&&n[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),i(n[0].nativeEvent,[]),null!=e&&r.forEach(n=>{ut.API.addAnimatedEventToView(e,t,n)}),{detach(){null!=e&&r.forEach(n=>{ut.API.removeAnimatedEventFromView(e,t,n.animatedValueTag)})}}}class xt{constructor(e,t){this._listeners=[],this._argMapping=e,null==t&&(console.warn("Animated.event now requires a second argument for options"),t={useNativeDriver:!1}),t.listener&&this.__addListener(t.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=lt(t)}__addListener(e){this._listeners.push(e)}__removeListener(e){this._listeners=this._listeners.filter(t=>t!==e)}__attach(e,t){I()(this.__isNative,"Only native driven events need to be attached."),this._attachedEvent=Et(e,t,this._argMapping)}__detach(e,t){I()(this.__isNative,"Only native driven events need to be detached."),this._attachedEvent&&this._attachedEvent.detach()}__getHandler(){var e=this;return this.__isNative?this._callListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=(e,t,n)=>{if(e instanceof Ct)"number"==typeof t&&e.setValue(t);else if("object"==typeof e)for(var r in e)i(e[r],t[r],r)};e._argMapping.forEach((e,t)=>{i(e,n[t],"arg"+t)}),e._callListeners(...n)}}_callListeners(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._listeners.forEach(e=>e(...t))}}const kt=class extends ft{constructor(e){super(),this._transforms=e}__makeNative(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__makeNative()}}),super.__makeNative()}__getValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getValue():r}return t})}__getAnimatedValue(){return this._transforms.map(e=>{var t={};for(var n in e){var r=e[n];t[n]=r instanceof ht?r.__getAnimatedValue():r}return t})}__attach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__addChild(this)}})}__detach(){this._transforms.forEach(e=>{for(var t in e){var n=e[t];n instanceof ht&&n.__removeChild(this)}}),super.__detach()}__getNativeConfig(){var e=[];return this._transforms.forEach(t=>{for(var n in t){var r=t[n];r instanceof ht?e.push({type:"animated",property:n,nodeTag:r.__getNativeTag()}):e.push({type:"static",property:n,value:ut.transformDataType(r)})}}),ut.validateTransform(e),{type:"transform",transforms:e}}};var At=T.A.flatten;function Rt(e){var t=At(e),n={};for(var r in t){var i=t[r];"transform"===r&&Array.isArray(i)?n[r]=new kt(i):i instanceof ht?n[r]=i:i&&!Array.isArray(i)&&"object"==typeof i&&(n[r]=Rt(i))}return n}const Tt=class extends ft{constructor(e){super(),this._inputStyle=e,this._style=Rt(e)}_walkStyleAndGetValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?r.__isNative||(t[n]=r.__getValue()):r&&!Array.isArray(r)&&"object"==typeof r?t[n]=this._walkStyleAndGetValues(r):t[n]=r}return t}__getValue(){return[this._inputStyle,this._walkStyleAndGetValues(this._style)]}_walkStyleAndGetAnimatedValues(e){var t={};for(var n in e){var r=e[n];r instanceof ht?t[n]=r.__getAnimatedValue():r&&!Array.isArray(r)&&"object"==typeof r&&(t[n]=this._walkStyleAndGetAnimatedValues(r))}return t}__getAnimatedValue(){return this._walkStyleAndGetAnimatedValues(this._style)}__attach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}__makeNative(){for(var e in this._style){var t=this._style[e];t instanceof ht&&t.__makeNative()}super.__makeNative()}__getNativeConfig(){var e={};for(var t in this._style)if(this._style[t]instanceof ht){var n=this._style[t];n.__makeNative(),e[t]=n.__getNativeTag()}return ut.validateStyles(e),{type:"style",style:e}}},Pt=class extends ht{constructor(e,t){super(),e.style&&(e=(0,C.A)((0,C.A)({},e),{},{style:new Tt(e.style)})),this._props=e,this._callback=t,this.__attach()}__getValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht?(!n.__isNative||n instanceof Tt)&&(e[t]=n.__getValue()):e[t]=n instanceof xt?n.__getHandler():n}return e}__getAnimatedValue(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(e[t]=n.__getAnimatedValue())}return e}__attach(){for(var e in this._props){var t=this._props[e];t instanceof ht&&t.__addChild(this)}}__detach(){for(var e in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var t=this._props[e];t instanceof ht&&t.__removeChild(this)}super.__detach()}update(){this._callback()}__makeNative(){if(!this.__isNative){for(var e in this.__isNative=!0,this._props){var t=this._props[e];t instanceof ht&&t.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}setNativeView(e){this._animatedView!==e&&(this._animatedView=e,this.__isNative&&this.__connectAnimatedView())}__connectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.connectAnimatedNodeToView(this.__getNativeTag(),e)}__disconnectAnimatedView(){I()(this.__isNative,'Expected node to be marked as "native"');var e=this._animatedView;I()(null!=e,"Unable to locate attached view in the native tree"),ut.API.disconnectAnimatedNodeFromView(this.__getNativeTag(),e)}__restoreDefaultValues(){this.__isNative&&ut.API.restoreDefaultValues(this.__getNativeTag())}__getNativeConfig(){var e={};for(var t in this._props){var n=this._props[t];n instanceof ht&&(n.__makeNative(),e[t]=n.__getNativeTag())}return{type:"props",props:e}}};var Ot=n(8425);function It(e){return(0,C.A)((0,C.A)({},e.__getValue()),{},{collapsable:!1})}var Nt=["style"];function Lt(e){return k.forwardRef((t,n)=>{var r=function(e){var t=(0,k.useReducer)(e=>e+1,0)[1],n=(0,k.useRef)(null),r=(0,k.useMemo)(()=>new Pt(e,()=>null==n.current?void 0:n.current()),[e]);!function(e){var t=(0,k.useRef)(null),n=(0,k.useRef)(!1);(0,k.useEffect)(()=>{ut.API.flushQueue()}),(0,Ot.A)(()=>(n.current=!1,()=>{n.current=!0}),[]),(0,Ot.A)(()=>{if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return()=>{n.current?e.__detach():t.current=e}},[e])}(r);var i,o,a=(0,k.useCallback)(i=>{r.setNativeView(i),n.current=()=>{t()};var o=function(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}(i),a=[];for(var s in e){var l=e[s];l instanceof xt&&l.__isNative&&(l.__attach(o,s),a.push([s,l]))}return()=>{n.current=null;for(var e=0,t=a;e<t.length;e++){var r=t[e],i=r[0];r[1].__detach(o,i)}}},[e,r]),s=(i=a,o=(0,k.useRef)(void 0),(0,k.useCallback)(e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},[i]));return[It(r),s]}(t),i=r[0],o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,k.useCallback)(e=>{for(var n=0,r=t;n<r.length;n++){var i=r[n];null!=i&&("function"==typeof i?i(e):i.current=e)}},[...t])}(r[1],n),a=i.passthroughAnimatedPropExplicitValues,s=i.style,l=null!=a?a:{},u=l.style,c=(0,A.A)(l,Nt),d=[s,u];return k.createElement(e,(0,x.A)({},i,c,{style:d,ref:o}))})}const Mt=Lt(k.forwardRef((e,t)=>k.createElement(Fe,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Dt=n(728);const Ft=Lt(Dt.A),jt=Lt(k.forwardRef((e,t)=>k.createElement(F.A,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var zt=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class Vt extends k.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var n=this._subExtractor(t);return n&&n.key||String(t)},this._convertViewable=e=>{var t;I()(null!=e.index,"Received a broken ViewToken");var n=this._subExtractor(e.index);if(!n)return null;var r=n.section.keyExtractor,i=this.props.keyExtractor||ge,o=null!=r?r(e.item,n.index):i(e.item,null!==(t=n.index)&&void 0!==t?t:0);return(0,C.A)((0,C.A)({},e),{},{index:n.index,key:o,section:n.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,n=e.changed,r=this.props.onViewableItemsChanged;null!=r&&r({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:n.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var n=t.item,r=t.index,i=this._subExtractor(r);if(!i)return null;var o=i.index;if(null==o){var a=i.section;if(!0===i.header){var s=this.props.renderSectionHeader;return s?s({section:a}):null}var l=this.props.renderSectionFooter;return l?l({section:a}):null}var u=i.section.renderItem||this.props.renderItem,c=this._getSeparatorComponent(r,i,e);return I()(u,"no renderItem!"),k.createElement(Bt,{SeparatorComponent:c,LeadingSeparatorComponent:0===o?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:o,item:n,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(r-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:u,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var n=this._updatePropsMap[e];null!=n&&n(t)},this._updateHighlightFor=(e,t)=>{var n=this._updateHighlightMap[e];null!=n&&n(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,n=0;n<e.sectionIndex;n++)t+=this.props.getItemCount(this.props.sections[n].data)+2;var r=e.viewOffset||0;if(null!=this._listRef){e.itemIndex>0&&this.props.stickySectionHeadersEnabled&&(r+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length);var i=(0,C.A)((0,C.A)({},e),{},{viewOffset:r,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,n=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,A.A)(t,zt)),r=this.props.ListHeaderComponent?1:0,i=this.props.stickySectionHeadersEnabled?[]:void 0,o=0,a=L(this.props.sections);!(e=a()).done;){var s=e.value;null!=i&&i.push(o+r),o+=2,o+=this.props.getItemCount(s.data)}var l=this._renderItem(o);return k.createElement(Te,(0,x.A)({},n,{keyExtractor:this._keyExtractor,stickyHeaderIndices:i,renderItem:l,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>o,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,n){if(!t)return null;for(var r=n-1,i=0;i<t.length;i++){var o=t[i],a=o.data,s=e.getItemCount(a);if(-1===r||r===s)return o;if(r<s)return e.getItem(a,r);r-=s+2}return null}_subExtractor(e){for(var t=e,n=this.props,r=n.getItem,i=n.getItemCount,o=n.keyExtractor,a=n.sections,s=0;s<a.length;s++){var l=a[s],u=l.data,c=l.key||String(s);if(!((t-=1)>=i(u)+1))return-1===t?{section:l,key:c+":header",index:null,header:!0,trailingSection:a[s+1]}:t===i(u)?{section:l,key:c+":footer",index:null,header:!1,trailingSection:a[s+1]}:{section:l,key:c+":"+(l.keyExtractor||o||ge)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[s-1],trailingItem:r(u,t+1),trailingSection:a[s+1]};t-=i(u)+1}}_getSeparatorComponent(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}function Bt(e){var t=e.LeadingSeparatorComponent,n=e.SeparatorComponent,r=e.cellKey,i=e.prevCellKey,o=e.setSelfHighlightCallback,a=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,l=e.updatePropsFor,u=e.item,c=e.index,d=e.section,h=e.inverted,f=k.useState(!1),p=f[0],m=f[1],v=k.useState(!1),g=v[0],y=v[1],b=k.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),_=b[0],w=b[1],S=k.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),E=S[0],A=S[1];k.useEffect(()=>(o(r,y),s(r,A),()=>{s(r,null),o(r,null)}),[r,o,A,s]);var T={highlight:()=>{m(!0),y(!0),null!=i&&a(i,!0)},unhighlight:()=>{m(!1),y(!1),null!=i&&a(i,!1)},updateProps:(e,r)=>{"leading"===e?null!=t?w((0,C.A)((0,C.A)({},_),r)):null!=i&&l(i,(0,C.A)((0,C.A)({},_),r)):"trailing"===e&&null!=n&&A((0,C.A)((0,C.A)({},E),r))}},P=e.renderItem({item:u,index:c,section:d,separators:T}),O=null!=t&&k.createElement(t,(0,x.A)({highlighted:p},_)),I=null!=n&&k.createElement(n,(0,x.A)({highlighted:g},E));return O||I?k.createElement(R.A,null,!1===h?O:I,P,!1===h?I:O):P}const Ht=Vt;var Wt=["stickySectionHeadersEnabled"];class Ut extends k.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,n=(0,A.A)(e,Wt),r=null!=t?t:"ios"===E.A.OS;return k.createElement(Ht,(0,x.A)({},n,{stickySectionHeadersEnabled:r,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}const Yt=Ut,qt=Lt(k.forwardRef((e,t)=>k.createElement(Yt,(0,x.A)({scrollEventThrottle:1e-4},e,{ref:t}))));var Kt=n(8506);const $t=Lt(Kt.A),Gt=Lt(R.A),Xt=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()+this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Qt=class extends ft{constructor(e,t,n){super(),this._a=e,this._min=t,this._max=n,this._value=this._lastValue=this._a.__getValue()}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}interpolate(e){return new wt(this,e)}__getValue(){var e=this._a.__getValue(),t=e-this._lastValue;return this._lastValue=e,this._value=Math.min(Math.max(this._value+t,this._min),this._max),this._value}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}},Jt=class extends ft{constructor(e,t){super(),this._warnedAboutDivideByZero=!1,(0===t||t instanceof ht&&0===t.__getValue())&&console.error("Detected potential division by zero in AnimatedDivision"),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){var e=this._a.__getValue(),t=this._b.__getValue();return 0===t?(this._warnedAboutDivideByZero||(console.error("Detected division by zero in AnimatedDivision"),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,e/t)}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},Zt=class extends ft{constructor(e,t){super(),this._a=e,this._modulus=t}__makeNative(e){this._a.__makeNative(e),super.__makeNative(e)}__getValue(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this)}__detach(){this._a.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}},en=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()*this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},tn=class extends ft{constructor(e,t){super(),this._a="number"==typeof e?new Ct(e):e,this._b="number"==typeof t?new Ct(t):t}__makeNative(e){this._a.__makeNative(e),this._b.__makeNative(e),super.__makeNative(e)}__getValue(){return this._a.__getValue()-this._b.__getValue()}interpolate(e){return new wt(this,e)}__attach(){this._a.__addChild(this),this._b.__addChild(this)}__detach(){this._a.__removeChild(this),this._b.__removeChild(this),super.__detach()}__getNativeConfig(){return{type:"subtraction",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}},nn=class extends ht{constructor(e,t,n,r,i){super(),this._value=e,this._parent=t,this._animationClass=n,this._animationConfig=r,this._useNativeDriver=lt(r),this._callback=i,this.__attach()}__makeNative(){this.__isNative=!0,this._parent.__makeNative(),super.__makeNative(),this._value.__makeNative()}__getValue(){return this._parent.__getValue()}__attach(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}__detach(){this._parent.__removeChild(this),super.__detach()}update(){this._value.animate(new this._animationClass((0,C.A)((0,C.A)({},this._animationConfig),{},{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}__getNativeConfig(){var e=new this._animationClass((0,C.A)((0,C.A)({},this._animationConfig),{},{toValue:void 0})).__getNativeAnimationConfig();return{type:"tracking",animationId:at(),animationConfig:e,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}};var rn=1;const on=class extends ft{constructor(e){super();var t=e||{x:0,y:0};"number"==typeof t.x&&"number"==typeof t.y?(this.x=new Ct(t.x),this.y=new Ct(t.y)):(I()(t.x instanceof Ct&&t.y instanceof Ct,"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),this.x=t.x,this.y=t.y),this._listeners={}}setValue(e){this.x.setValue(e.x),this.y.setValue(e.y)}setOffset(e){this.x.setOffset(e.x),this.y.setOffset(e.y)}flattenOffset(){this.x.flattenOffset(),this.y.flattenOffset()}extractOffset(){this.x.extractOffset(),this.y.extractOffset()}__getValue(){return{x:this.x.__getValue(),y:this.y.__getValue()}}resetAnimation(e){this.x.resetAnimation(),this.y.resetAnimation(),e&&e(this.__getValue())}stopAnimation(e){this.x.stopAnimation(),this.y.stopAnimation(),e&&e(this.__getValue())}addListener(e){var t=String(rn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={x:this.x.addListener(n),y:this.y.addListener(n)},t}removeListener(e){this.x.removeListener(this._listeners[e].x),this.y.removeListener(this._listeners[e].y),delete this._listeners[e]}removeAllListeners(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}getLayout(){return{left:this.x,top:this.y}}getTranslateTransform(){return[{translateX:this.x},{translateY:this.y}]}};var an=1;const sn=class{start(e,t,n,r,i){}stop(){this.__nativeId&&ut.API.stopAnimation(this.__nativeId)}__getNativeAnimationConfig(){throw new Error("This animation type cannot be offloaded to native")}__debouncedOnEnd(e){var t=this.__onEnd;this.__onEnd=null,t&&t(e)}__startNativeAnimation(e){var t=an+":startAnimation";an+=1,ut.API.setWaitingForIdentifier(t);try{var n=this.__getNativeAnimationConfig();e.__makeNative(n.platformConfig),this.__nativeId=ut.generateNewAnimationId(),ut.API.startAnimatingNode(this.__nativeId,e.__getNativeTag(),n,this.__debouncedOnEnd.bind(this))}catch(e){throw e}finally{ut.API.unsetWaitingForIdentifier(t)}}},ln=class extends sn{constructor(e){var t,n,r;super(),this._deceleration=null!==(t=e.deceleration)&&void 0!==t?t:.998,this._velocity=e.velocity,this._useNativeDriver=lt(e),this.__isInteraction=null!==(n=e.isInteraction)&&void 0!==n?n:!this._useNativeDriver,this.__iterations=null!==(r=e.iterations)&&void 0!==r?r:1}__getNativeAnimationConfig(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}start(e,t,n,r,i){this.__active=!0,this._lastValue=e,this._fromValue=e,this._onUpdate=t,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}onUpdate(){var e=Date.now(),t=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(e-this._startTime)));this._onUpdate(t),Math.abs(this._lastValue-t)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=t,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}stop(){super.stop(),this.__active=!1,n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};function un(e){return 3.62*(e-30)+194}function cn(e){return 3*(e-8)+25}const dn=function(e,t){return{stiffness:un(e),damping:cn(t)}},hn=function(e,t){function n(e,t,n){return(e-t)/(n-t)}function r(e,t,n){return t+e*(n-t)}var i=n(e/1.7,0,20);i=r(i,0,.8);var o,a,s,l,u=r(n(t/1.7,0,20),.5,200),c=(s=i,l=(o=u)<=18?(a=o,7e-4*Math.pow(a,3)-.031*Math.pow(a,2)+.64*a+1.28):o>18&&o<=44?function(e){return 44e-6*Math.pow(e,3)-.006*Math.pow(e,2)+.36*e+2}(o):function(e){return 45e-8*Math.pow(e,3)-332e-6*Math.pow(e,2)+.1078*e+5.84}(o),function(e,t){return.01*e+(1-e)*t}(2*s-s*s,l));return{stiffness:un(u),damping:cn(c)}};class fn extends sn{constructor(e){var t,n,r,i,o,a,s,l,u,c,d;if(super(),this._overshootClamping=null!==(t=e.overshootClamping)&&void 0!==t&&t,this._restDisplacementThreshold=null!==(n=e.restDisplacementThreshold)&&void 0!==n?n:.001,this._restSpeedThreshold=null!==(r=e.restSpeedThreshold)&&void 0!==r?r:.001,this._initialVelocity=null!==(i=e.velocity)&&void 0!==i?i:0,this._lastVelocity=null!==(o=e.velocity)&&void 0!==o?o:0,this._toValue=e.toValue,this._delay=null!==(a=e.delay)&&void 0!==a?a:0,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(s=e.isInteraction)&&void 0!==s?s:!this._useNativeDriver,this.__iterations=null!==(l=e.iterations)&&void 0!==l?l:1,void 0!==e.stiffness||void 0!==e.damping||void 0!==e.mass)I()(void 0===e.bounciness&&void 0===e.speed&&void 0===e.tension&&void 0===e.friction,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one"),this._stiffness=null!==(u=e.stiffness)&&void 0!==u?u:100,this._damping=null!==(c=e.damping)&&void 0!==c?c:10,this._mass=null!==(d=e.mass)&&void 0!==d?d:1;else if(void 0!==e.bounciness||void 0!==e.speed){var h,f;I()(void 0===e.tension&&void 0===e.friction&&void 0===e.stiffness&&void 0===e.damping&&void 0===e.mass,"You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one");var p=hn(null!==(h=e.bounciness)&&void 0!==h?h:8,null!==(f=e.speed)&&void 0!==f?f:12);this._stiffness=p.stiffness,this._damping=p.damping,this._mass=1}else{var m,v,g=dn(null!==(m=e.tension)&&void 0!==m?m:40,null!==(v=e.friction)&&void 0!==v?v:7);this._stiffness=g.stiffness,this._damping=g.damping,this._mass=1}I()(this._stiffness>0,"Stiffness value must be greater than 0"),I()(this._damping>0,"Damping value must be greater than 0"),I()(this._mass>0,"Mass value must be greater than 0")}__getNativeAnimationConfig(){var e;return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!==(e=this._initialVelocity)&&void 0!==e?e:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){if(this.__active=!0,this._startPosition=e,this._lastPosition=this._startPosition,this._onUpdate=t,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,r instanceof fn){var o=r.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var a=()=>{this._useNativeDriver?this.__startNativeAnimation(i):this.onUpdate()};this._delay?this._timeout=setTimeout(a,this._delay):a()}getInternalState(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}onUpdate(){var e=Date.now();e>this._lastTime+64&&(e=this._lastTime+64);var t=(e-this._lastTime)/1e3;this._frameTime+=t;var n=this._damping,r=this._mass,i=this._stiffness,o=-this._initialVelocity,a=n/(2*Math.sqrt(i*r)),s=Math.sqrt(i/r),l=s*Math.sqrt(1-a*a),u=this._toValue-this._startPosition,c=0,d=0,h=this._frameTime;if(a<1){var f=Math.exp(-a*s*h);c=this._toValue-f*((o+a*s*u)/l*Math.sin(l*h)+u*Math.cos(l*h)),d=a*s*f*(Math.sin(l*h)*(o+a*s*u)/l+u*Math.cos(l*h))-f*(Math.cos(l*h)*(o+a*s*u)-l*u*Math.sin(l*h))}else{var p=Math.exp(-s*h);c=this._toValue-p*(u+(o+s*u)*h),d=p*(o*(h*s-1)+h*u*(s*s))}if(this._lastTime=e,this._lastPosition=c,this._lastVelocity=d,this._onUpdate(c),this.__active){var m=!1;this._overshootClamping&&0!==this._stiffness&&(m=this._startPosition<this._toValue?c>this._toValue:c<this._toValue);var v=Math.abs(d)<=this._restSpeedThreshold,g=!0;if(0!==this._stiffness&&(g=Math.abs(this._toValue-c)<=this._restDisplacementThreshold),m||v&&g)return 0!==this._stiffness&&(this._lastPosition=this._toValue,this._lastVelocity=0,this._onUpdate(this._toValue)),void this.__debouncedOnEnd({finished:!0});this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}const pn=fn;var mn,vn=.1,gn="function"==typeof Float32Array;function yn(e,t){return 1-3*t+3*e}function bn(e,t){return 3*t-6*e}function _n(e){return 3*e}function wn(e,t,n){return((yn(t,n)*e+bn(t,n))*e+_n(t))*e}function Sn(e,t,n){return 3*yn(t,n)*e*e+2*bn(t,n)*e+_n(t)}function Cn(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var i=gn?new Float32Array(11):new Array(11);if(e!==t||n!==r)for(var o=0;o<11;++o)i[o]=wn(o*vn,e,n);return function(o){return e===t&&n===r?o:0===o?0:1===o?1:wn(function(t){for(var r=0,o=1;10!==o&&i[o]<=t;++o)r+=vn;--o;var a=r+(t-i[o])/(i[o+1]-i[o])*vn,s=Sn(a,e,n);return s>=.001?function(e,t,n,r){for(var i=t,o=0;o<4;++o){var a=Sn(i,n,r);if(0===a)return i;i-=(wn(i,n,r)-e)/a}return i}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0,l=t,u=n;do{(o=wn(a=l+(u-l)/2,r,i)-e)>0?u=a:l=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+vn,e,n)}(o),t,r)}}class En{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return mn||(mn=En.bezier(.42,0,1,1)),mn(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>Math.pow(t,e)}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return Math.pow(2,10*(e-1))}static elastic(e){void 0===e&&(e=1);var t=e*Math.PI;return e=>1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*t)}static back(e){return void 0===e&&(e=1.70158),t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){var t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){var n=e-2.25/2.75;return 7.5625*n*n+.9375}var r=e-2.625/2.75;return 7.5625*r*r+.984375}static bezier(e,t,n,r){return Cn(e,t,n,r)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}const xn=En;var kn;const An=class extends sn{constructor(e){var t,n,r,i,o;super(),this._toValue=e.toValue,this._easing=null!==(t=e.easing)&&void 0!==t?t:(kn||(kn=xn.inOut(xn.ease)),kn),this._duration=null!==(n=e.duration)&&void 0!==n?n:500,this._delay=null!==(r=e.delay)&&void 0!==r?r:0,this.__iterations=null!==(i=e.iterations)&&void 0!==i?i:1,this._useNativeDriver=lt(e),this._platformConfig=e.platformConfig,this.__isInteraction=null!==(o=e.isInteraction)&&void 0!==o?o:!this._useNativeDriver}__getNativeAnimationConfig(){for(var e=[],t=Math.round(this._duration/(1e3/60)),n=0;n<t;n++)e.push(this._easing(n/t));return e.push(this._easing(1)),{type:"frames",frames:e,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}start(e,t,n,r,i){this.__active=!0,this._fromValue=e,this._onUpdate=t,this.__onEnd=n;var o=()=>{0!==this._duration||this._useNativeDriver?(this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(i):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))):(this._onUpdate(this._toValue),this.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}onUpdate(){var e=Date.now();if(e>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((e-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}stop(){super.stop(),this.__active=!1,clearTimeout(this._timeout),n.g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}};var Rn=ut.API,Tn={r:0,g:0,b:0,a:1},Pn=1;function On(e){if(null==e)return null;if(In(e))return e;var t=mt()(e);if(null==t)return null;if("object"==typeof t){if(null!=t)return t}else if("number"==typeof t)return{r:(4278190080&t)>>>24,g:(16711680&t)>>>16,b:(65280&t)>>>8,a:(255&t)/255};return null}function In(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}class Nn extends ft{constructor(e,t){super(),this._listeners={};var n=null!=e?e:Tn;if(function(e){return e&&e.r instanceof Ct&&e.g instanceof Ct&&e.b instanceof Ct&&e.a instanceof Ct}(n)){var r=n;this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a}else{var i,o=null!==(i=On(n))&&void 0!==i?i:Tn,a=Tn;In(o)?a=o:this.nativeColor=o,this.r=new Ct(a.r),this.g=new Ct(a.g),this.b=new Ct(a.b),this.a=new Ct(a.a)}(this.nativeColor||t&&t.useNativeDriver)&&this.__makeNative()}setValue(e){var t,n=!1;if(this.__isNative){var r=this.__getNativeTag();Rn.setWaitingForIdentifier(r.toString())}var i=null!==(t=On(e))&&void 0!==t?t:Tn;if(In(i)){var o=i;this.r.setValue(o.r),this.g.setValue(o.g),this.b.setValue(o.b),this.a.setValue(o.a),null!=this.nativeColor&&(this.nativeColor=null,n=!0)}else{var a=i;this.nativeColor!==a&&(this.nativeColor=a,n=!0)}if(this.__isNative){var s=this.__getNativeTag();n&&Rn.updateAnimatedNodeConfig(s,this.__getNativeConfig()),Rn.unsetWaitingForIdentifier(s.toString())}}setOffset(e){this.r.setOffset(e.r),this.g.setOffset(e.g),this.b.setOffset(e.b),this.a.setOffset(e.a)}flattenOffset(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}extractOffset(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}addListener(e){var t=String(Pn++),n=t=>{t.value,e(this.__getValue())};return this._listeners[t]={r:this.r.addListener(n),g:this.g.addListener(n),b:this.b.addListener(n),a:this.a.addListener(n)},t}removeListener(e){this.r.removeListener(this._listeners[e].r),this.g.removeListener(this._listeners[e].g),this.b.removeListener(this._listeners[e].b),this.a.removeListener(this._listeners[e].a),delete this._listeners[e]}removeAllListeners(){this.r.removeAllListeners(),this.g.removeAllListeners(),this.b.removeAllListeners(),this.a.removeAllListeners(),this._listeners={}}stopAnimation(e){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),e&&e(this.__getValue())}resetAnimation(e){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),e&&e(this.__getValue())}__getValue(){return null!=this.nativeColor?this.nativeColor:"rgba("+this.r.__getValue()+", "+this.g.__getValue()+", "+this.b.__getValue()+", "+this.a.__getValue()+")"}__attach(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),super.__attach()}__detach(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),super.__detach()}__makeNative(e){this.r.__makeNative(e),this.g.__makeNative(e),this.b.__makeNative(e),this.a.__makeNative(e),super.__makeNative(e)}__getNativeConfig(){return{type:"color",r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}var Ln=function(e,t){return e&&t.onComplete?function(){t.onComplete&&t.onComplete(...arguments),e&&e(...arguments)}:e||t.onComplete},Mn=function(e,t,n){if(e instanceof on){var r=(0,C.A)({},t),i=(0,C.A)({},t);for(var o in t){var a=t[o],s=a.x,l=a.y;void 0!==s&&void 0!==l&&(r[o]=s,i[o]=l)}var u=n(e.x,r),c=n(e.y,i);return jn([u,c],{stopTogether:!1})}if(e instanceof Nn){var d=(0,C.A)({},t),h=(0,C.A)({},t),f=(0,C.A)({},t),p=(0,C.A)({},t);for(var m in t){var v=t[m],g=v.r,y=v.g,b=v.b,_=v.a;void 0!==g&&void 0!==y&&void 0!==b&&void 0!==_&&(d[m]=g,h[m]=y,f[m]=b,p[m]=_)}var w=n(e.r,d),S=n(e.g,h),E=n(e.b,f),x=n(e.a,p);return jn([w,S,E,x],{stopTogether:!1})}return null},Dn=function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,An,i,n)):r.animate(new An(i),n)};return Mn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},Fn=function(e){var t=0;return{start:function(n){0===e.length?n&&n({finished:!0}):e[t].start(function r(i){i.finished&&++t!==e.length?e[t].start(r):n&&n(i)})},stop:function(){t<e.length&&e[t].stop()},reset:function(){e.forEach((e,n)=>{n<=t&&e.reset()}),t=0},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.sequence animations")},_isUsingNativeDriver:function(){return!1}}},jn=function(e,t){var n=0,r={},i=!(t&&!1===t.stopTogether),o={start:function(t){n!==e.length?e.forEach((a,s)=>{var l=function(a){if(r[s]=!0,++n===e.length)return n=0,void(t&&t(a));!a.finished&&i&&o.stop()};a?a.start(l):l({finished:!0})}):t&&t({finished:!0})},stop:function(){e.forEach((e,t)=>{!r[t]&&e.stop(),r[t]=!0})},reset:function(){e.forEach((e,t)=>{e.reset(),r[t]=!1,n=0})},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.parallel animations")},_isUsingNativeDriver:function(){return!1}};return o},zn=function(e){return Dn(new Ct(0),{toValue:0,delay:e,duration:0,useNativeDriver:!1})};const Vn={Value:Ct,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),r.animate(new ln(i),n)};return Mn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},timing:Dn,spring:function e(t,n){var r=function(e,t,n){n=Ln(n,t);var r=e,i=t;r.stopTracking(),t.toValue instanceof ht?r.track(new nn(r,t.toValue,pn,i,n)):r.animate(new pn(i),n)};return Mn(t,n,e)||{start:function(e){r(t,n,e)},stop:function(){t.stopAnimation()},reset:function(){t.resetAnimation()},_startNativeLoop:function(e){var i=(0,C.A)((0,C.A)({},n),{},{iterations:e});r(t,i)},_isUsingNativeDriver:function(){return n.useNativeDriver||!1}}},add:function(e,t){return new Xt(e,t)},subtract:function(e,t){return new tn(e,t)},divide:function(e,t){return new Jt(e,t)},multiply:function(e,t){return new en(e,t)},modulo:function(e,t){return new Zt(e,t)},diffClamp:function(e,t,n){return new Qt(e,t,n)},delay:zn,sequence:Fn,parallel:jn,stagger:function(e,t){return jn(t.map((t,n)=>Fn([zn(e*n),t])))},loop:function(e,t){var n=void 0===t?{}:t,r=n.iterations,i=void 0===r?-1:r,o=n.resetBeforeIteration,a=void 0===o||o,s=!1,l=0;return{start:function(t){e&&0!==i?e._isUsingNativeDriver()?e._startNativeLoop(i):function n(r){void 0===r&&(r={finished:!0}),s||l===i||!1===r.finished?t&&t(r):(l++,a&&e.reset(),e.start(n))}():t&&t({finished:!0})},stop:function(){s=!0,e.stop()},reset:function(){l=0,s=!1,e.reset()},_startNativeLoop:function(){throw new Error("Loops run using the native driver cannot contain Animated.loop animations")},_isUsingNativeDriver:function(){return e._isUsingNativeDriver()}}},event:function(e,t){var n=new xt(e,t);return n.__isNative?n:n.__getHandler()},createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:function(e,t){return e?e instanceof xt?(e.__addListener(t),e):function(){"function"==typeof e&&e(...arguments),t(...arguments)}:t},unforkEvent:function(e,t){e&&e instanceof xt&&e.__removeListener(t)},Event:xt};var Bn=!1;function Hn(e){return t=>{var n=null==t?t:function(){if(Bn)console.warn("Ignoring recursive animation callback when running mock animations");else{Bn=!0;try{t(...arguments)}finally{Bn=!1}}};e(n)}}var Wn={start:()=>{},stop:()=>{},reset:()=>{},_startNativeLoop:()=>{},_isUsingNativeDriver:()=>!1},Un=e=>(0,C.A)((0,C.A)({},Wn),{},{start:Hn(t=>{e.forEach(e=>e.start()),null==t||t({finished:!0})})});const Yn={Value:Ct,ValueXY:on,Color:Nn,Interpolation:wt,Node:ht,decay:function(e,t){return Wn},timing:function(e,t){var n=e;return(0,C.A)((0,C.A)({},Wn),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},spring:function(e,t){var n=e;return(0,C.A)((0,C.A)({},Wn),{},{start:Hn(e=>{n.setValue(t.toValue),null==e||e({finished:!0})})})},add:Vn.add,subtract:Vn.subtract,divide:Vn.divide,multiply:Vn.multiply,modulo:Vn.modulo,diffClamp:Vn.diffClamp,delay:function(e){return Wn},sequence:function(e){return Un(e)},parallel:function(e,t){return Un(e)},stagger:function(e,t){return Un(t)},loop:function(e,t){return(void 0===t?{}:t).iterations,Wn},event:Vn.event,createAnimatedComponent:Lt,attachNativeEvent:Et,forkEvent:Vn.forkEvent,unforkEvent:Vn.unforkEvent,Event:xt};var qn=E.A.isTesting?Yn:Vn;const Kn=(0,C.A)({FlatList:Mt,Image:Ft,ScrollView:jt,SectionList:qt,Text:$t,View:Gt},qn);var $n=v.A&&null!=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,Gn=new WeakMap;const Xn={getColorScheme:()=>$n&&$n.matches?"dark":"light",addChangeListener(e){var t=Gn.get(e);return t||(t=t=>{var n=t.matches;e({colorScheme:n?"dark":"light"})},Gn.set(e,t)),$n&&$n.addListener(t),{remove:function(){var t=Gn.get(e);$n&&t&&$n.removeListener(t),Gn.delete(e)}}}};var Qn=k.createContext(null),Jn=k.forwardRef((e,t)=>{var n=e.children,r=e.WrapperComponent,i=k.createElement(R.A,{children:n,key:1,style:tr.appContainer});return r&&(i=k.createElement(r,null,i)),k.createElement(Qn.Provider,{value:e.rootTag},k.createElement(R.A,{ref:t,style:tr.appContainer},i))});Jn.displayName="AppContainer";const Zn=Jn;var er,tr=T.A.create({appContainer:{flex:1,pointerEvents:"box-none"}}),nr={},rr={},ir=e=>e();class or{static getAppKeys(){return Object.keys(rr)}static getApplication(e,t){return I()(rr[e]&&rr[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),rr[e].getApplication(t)}static registerComponent(e,t){return rr[e]={getApplication:e=>{return n=ir(t),r=e?e.initialProps:nr,i=er&&er(e),{element:k.createElement(Zn,{WrapperComponent:i,rootTag:{}},k.createElement(n,r)),getStyleElement:e=>{var t=T.A.getSheet();return k.createElement("style",(0,x.A)({},e,{dangerouslySetInnerHTML:{__html:t.textContent},id:t.id}))}};var n,r,i},run:e=>{return n=ir(t),r=er&&er(e),i=e.callback,a=(o={hydrate:e.hydrate||!1,initialProps:e.initialProps||nr,mode:e.mode||"concurrent",rootTag:e.rootTag}).initialProps,s=o.mode,l=o.rootTag,u=o.hydrate?"concurrent"===s?c:h:"concurrent"===s?d:f,I()(l,"Expect to have a valid rootTag, instead got ",l),u(k.createElement(Zn,{WrapperComponent:r,ref:i,rootTag:l},k.createElement(n,a)),l);var n,r,i,o,a,s,l,u}},e}static registerConfig(e){e.forEach(e=>{var t=e.appKey,n=e.component,r=e.run;r?or.registerRunnable(t,r):(I()(n,"No component provider passed in"),or.registerComponent(t,n))})}static registerRunnable(e,t){return rr[e]={run:t},e}static runApplication(e,t){return I()(rr[e]&&rr[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),rr[e].run(t)}static setComponentProviderInstrumentationHook(e){ir=e}static setWrapperComponentProvider(e){er=e}static unmountApplicationComponentAtRootTag(e){l(e)}}var ar=v.A&&!document.hasOwnProperty("hidden")&&document.hasOwnProperty("webkitHidden"),sr=["change","memoryWarning"],lr=ar?"webkitvisibilitychange":"visibilitychange",ur=ar?"webkitVisibilityState":"visibilityState",cr="active",dr=null;class hr{static get currentState(){if(!hr.isAvailable)return cr;switch(document[ur]){case"hidden":case"prerender":case"unloaded":return"background";default:return cr}}static addEventListener(e,t){if(hr.isAvailable&&(I()(-1!==sr.indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e))return dr||(dr=new j.A,document.addEventListener(lr,()=>{dr&&dr.emit("change",hr.currentState)},!1)),dr.addListener(e,t)}}function fr(){}hr.isAvailable=v.A&&!!document[ur];const pr={exitApp:fr,addEventListener:()=>(console.error("BackHandler is not supported on web and should not be used."),{remove:fr}),removeEventListener:fr};var mr;class vr{static isAvailable(){return void 0===mr&&(mr="function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")),mr}static getString(){return Promise.resolve("")}static setString(e){var t=!1,n=document.body;if(n){var r=document.createElement("span");r.textContent=e,r.style.opacity="0",r.style.position="absolute",r.style.whiteSpace="pre-wrap",r.style.userSelect="auto",n.appendChild(r);var i=window.getSelection();i.removeAllRanges();var o=document.createRange();o.selectNodeContents(r),i.addRange(o);try{document.execCommand("copy"),t=!0}catch(e){}i.removeAllRanges(),n.removeChild(r)}return t}}var gr=n(3384);const yr={allowRTL(){},forceRTL(){},getConstants:()=>({isRTL:!1})};var br=n(3116);const _r={isVisible:()=>!1,addListener:()=>({remove:()=>{}}),dismiss(){(0,br.A)()},removeAllListeners(){},removeListener(){}};function wr(e,t){E.A.isTesting||p.A.configureNextLayoutAnimation(e,null!=t?t:function(){},function(){})}function Sr(e,t,n){return{duration:e,create:{type:t,property:n},update:{type:t},delete:{type:t,property:n}}}var Cr={easeInEaseOut:Sr(300,"easeInEaseOut","opacity"),linear:Sr(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const Er={configureNext:wr,create:Sr,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){console.error("LayoutAnimation.checkConfig(...) has been disabled.")},Presets:Cr,easeInEaseOut:wr.bind(null,Cr.easeInEaseOut),linear:wr.bind(null,Cr.linear),spring:wr.bind(null,Cr.spring)};var xr=v.A?window.location.href:"";const kr=new class{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this._eventCallbacks[e];null!=i&&Array.isArray(i)&&i.map(e=>{e(...n)})}addEventListener(e,t){var n=this;return n._eventCallbacks[e]||(n._eventCallbacks[e]=[t]),n._eventCallbacks[e].push(t),{remove(){var r=n._eventCallbacks[e].filter(e=>e.toString()!==t.toString());n._eventCallbacks[e]=r}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var n=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=n}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(xr)}openURL(e,t){1===arguments.length&&(t="_blank");try{return((e,t)=>{if(v.A){var n=new URL(e,window.location).toString();0===n.indexOf("tel:")?window.location=n:window.open(n,t,"noopener")}})(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){I()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),I()(e,"Invalid URL: cannot be empty")}},Ar=ze;var Rr={centroidDimension:function(e,t,n,r){var i=e.touchBank,o=0,a=0,s=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==s)s.touchActive&&s.currentTimeStamp>t&&(o+=r&&n?s.currentPageX:r&&!n?s.currentPageY:!r&&n?s.previousPageX:s.previousPageY,a=1);else for(var l=0;l<i.length;l++){var u=i[l];null!=u&&u.touchActive&&u.currentTimeStamp>=t&&(o+=r&&n?u.currentPageX:r&&!n?u.currentPageY:!r&&n?u.previousPageX:u.previousPageY,a++)}return a>0?o/a:Rr.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return Rr.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return Rr.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return Rr.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return Rr.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return Rr.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return Rr.centroidDimension(e,0,!1,!0)},noCentroid:-1};const Tr=Rr;var Pr=Tr.currentCentroidXOfTouchesChangedAfter,Or=Tr.currentCentroidYOfTouchesChangedAfter,Ir=Tr.previousCentroidXOfTouchesChangedAfter,Nr=Tr.previousCentroidYOfTouchesChangedAfter,Lr=Tr.currentCentroidX,Mr=Tr.currentCentroidY,Dr={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=Pr(t,e._accountsForMovesUpTo),e.moveY=Or(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,r=Ir(t,n),i=Pr(t,n),o=Nr(t,n),a=Or(t,n),s=e.dx+(i-r),l=e.dy+(a-o),u=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(s-e.dx)/u,e.vy=(l-e.dy)/u,e.dx=s,e.dy=l,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&Dr._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)),onMoveShouldSetResponderCapture(t){var r=t.touchHistory;return n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:r=>(t.handle||(t.handle=Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=Lr(r.touchHistory),n.y0=Mr(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)),onResponderReject(r){Fr(t,e.onPanResponderReject,r,n)},onResponderRelease(r){Fr(t,e.onPanResponderRelease,r,n),jr(t),Dr._initializeGestureState(n)},onResponderStart(t){var r=t.touchHistory;n.numberActiveTouches=r.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove(t){var r=t.touchHistory;n._accountsForMovesUpTo!==r.mostRecentTimeStamp&&(Dr._updateGestureStateOnMove(n,r),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd(r){var i=r.touchHistory;n.numberActiveTouches=i.numberActiveTouches,Fr(t,e.onPanResponderEnd,r,n)},onResponderTerminate(r){Fr(t,e.onPanResponderTerminate,r,n),jr(t),Dr._initializeGestureState(n)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function Fr(e,t,n,r){e.handle&&(Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function jr(e){e.timeout=setTimeout(()=>{e.shouldCancelClick=!1},250)}const zr=Dr;var Vr=n(9518);const Br=class{static share(e,t){return void 0===t&&(t={}),I()("object"==typeof e&&null!==e,"Content to share must be a valid object"),I()("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),I()("object"==typeof t&&null!==t,"Options must be a valid object"),I()(!e.title||"string"==typeof e.title,"Invalid title: title should be a string."),void 0!==window.navigator.share?window.navigator.share({title:e.title,text:e.message,url:e.url}):Promise.reject(new Error("Share is not supported in this browser"))}static get sharedAction(){return"sharedAction"}static get dismissedAction(){return"dismissedAction"}};var Hr=e=>{"vibrate"in window.navigator&&window.navigator.vibrate(e)};const Wr={cancel(){Hr(0)},vibrate(e){void 0===e&&(e=400),Hr(e)}};var Ur=["animating","color","hidesWhenStopped","size","style"],Yr=e=>k.createElement("circle",{cx:"16",cy:"16",fill:"none",r:"14",strokeWidth:"4",style:e}),qr=k.forwardRef((e,t)=>{var n=e.animating,r=void 0===n||n,i=e.color,o=void 0===i?"#1976D2":i,a=e.hidesWhenStopped,s=void 0===a||a,l=e.size,u=void 0===l?"small":l,c=e.style,d=(0,A.A)(e,Ur),h=k.createElement("svg",{height:"100%",viewBox:"0 0 32 32",width:"100%"},Yr({stroke:o,opacity:.2}),Yr({stroke:o,strokeDasharray:80,strokeDashoffset:60}));return k.createElement(R.A,(0,x.A)({},d,{"aria-valuemax":1,"aria-valuemin":0,ref:t,role:"progressbar",style:[Kr.container,c]}),k.createElement(R.A,{children:h,style:["number"==typeof u?{height:u,width:u}:$r[u],Kr.animation,!r&&Kr.animationPause,!r&&s&&Kr.hidesWhenStopped]}))});qr.displayName="ActivityIndicator";var Kr=T.A.create({container:{alignItems:"center",justifyContent:"center"},hidesWhenStopped:{visibility:"hidden"},animation:{animationDuration:"0.75s",animationKeyframes:[{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"},animationPause:{animationPlayState:"paused"}}),$r=T.A.create({small:{width:20,height:20},large:{width:36,height:36}});const Gr=qr;var Xr=n(6413),Qr=k.forwardRef((e,t)=>{var n=e.accessibilityLabel,r=e.color,i=e.disabled,o=e.onPress,a=e.testID,s=e.title;return k.createElement(Xr.A,{accessibilityLabel:n,accessibilityRole:"button",disabled:i,focusable:!i,onPress:o,ref:t,style:[Jr.button,r&&{backgroundColor:r},i&&Jr.buttonDisabled],testID:a},k.createElement(Kt.A,{style:[Jr.text,i&&Jr.textDisabled]},s))});Qr.displayName="Button";var Jr=T.A.create({button:{backgroundColor:"#2196F3",borderRadius:2},text:{color:"#fff",fontWeight:"500",padding:8,textAlign:"center",textTransform:"uppercase"},buttonDisabled:{backgroundColor:"#dfdfdf"},textDisabled:{color:"#a1a1a1"}});const Zr=Qr;var ei=["aria-readonly","color","disabled","onChange","onValueChange","readOnly","style","value"],ti=k.forwardRef((e,t)=>{var n=e["aria-readonly"],i=e.color,o=e.disabled,a=e.onChange,s=e.onValueChange,l=e.readOnly,u=e.style,c=e.value,d=(0,A.A)(e,ei),h=k.createElement(R.A,{style:[ni.fakeControl,c&&ni.fakeControlChecked,c&&i&&{backgroundColor:i,borderColor:i},o&&ni.fakeControlDisabled,c&&o&&ni.fakeControlCheckedAndDisabled]}),f=(0,r.A)("input",{checked:c,disabled:o,onChange:function(e){var t=e.nativeEvent.target.checked;e.nativeEvent.value=t,a&&a(e),s&&s(t)},readOnly:!0===l||!0===n||!0===d.accessibilityReadOnly,ref:t,style:[ni.nativeControl,ni.cursorInherit],type:"checkbox"});return k.createElement(R.A,(0,x.A)({},d,{"aria-disabled":o,"aria-readonly":n,style:[ni.root,u,o&&ni.cursorDefault]}),h,f)});ti.displayName="CheckBox";var ni=T.A.create({root:{cursor:"pointer",height:16,userSelect:"none",width:16},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},fakeControl:{alignItems:"center",backgroundColor:"#fff",borderColor:"#657786",borderRadius:2,borderStyle:"solid",borderWidth:2,height:"100%",justifyContent:"center",width:"100%"},fakeControlChecked:{backgroundColor:"#009688",backgroundImage:'url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K")',backgroundRepeat:"no-repeat",borderColor:"#009688"},fakeControlDisabled:{borderColor:"#CCD6DD"},fakeControlCheckedAndDisabled:{backgroundColor:"#AAB8C2",borderColor:"#AAB8C2"},nativeControl:(0,C.A)((0,C.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const ri=ti;var ii=["children","style","imageStyle","imageRef"],oi={},ai=(0,k.forwardRef)((e,t)=>{var n=e.children,r=e.style,i=void 0===r?oi:r,o=e.imageStyle,a=e.imageRef,s=(0,A.A)(e,ii),l=T.A.flatten(i),u=l.height,c=l.width;return k.createElement(R.A,{ref:t,style:i},k.createElement(Dt.A,(0,x.A)({},s,{ref:a,style:[{width:c,height:u,zIndex:-1},T.A.absoluteFill,o]})),n)});ai.displayName="ImageBackground";const si=ai;var li=n(5470);const ui=function(e){var t=e.children,n=k.useRef(null);if(v.A&&!n.current){var r=document.createElement("div");r&&document.body&&(document.body.appendChild(r),n.current=r)}return k.useEffect(()=>{if(v.A)return()=>{document.body&&n.current&&(document.body.removeChild(n.current),n.current=null)}},[]),n.current&&v.A?i.createPortal(t,n.current):null};function ci(e,t){return"slide"===e?t?hi:fi:"fade"===e?t?pi:mi:t?di.container:di.hidden}var di=T.A.create({container:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9999},animatedIn:{animationDuration:"300ms",animationTimingFunction:"ease-in"},animatedOut:{pointerEvents:"none",animationDuration:"300ms",animationTimingFunction:"ease-out"},fadeIn:{opacity:1,animationKeyframes:{"0%":{opacity:0},"100%":{opacity:1}}},fadeOut:{opacity:0,animationKeyframes:{"0%":{opacity:1},"100%":{opacity:0}}},slideIn:{transform:"translateY(0%)",animationKeyframes:{"0%":{transform:"translateY(100%)"},"100%":{transform:"translateY(0%)"}}},slideOut:{transform:"translateY(100%)",animationKeyframes:{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(100%)"}}},hidden:{opacity:0}}),hi=[di.container,di.animatedIn,di.slideIn],fi=[di.container,di.animatedOut,di.slideOut],pi=[di.container,di.animatedIn,di.fadeIn],mi=[di.container,di.animatedOut,di.fadeOut];const vi=function(e){var t=e.animationType,n=e.children,i=e.onDismiss,o=e.onShow,a=e.visible,s=k.useState(!1),l=s[0],u=s[1],c=k.useRef(!1),d=k.useRef(!1),h=t&&"none"!==t,f=k.useCallback(e=>{e&&e.currentTarget!==e.target||(a?o&&o():u(!1))},[o,a]);return k.useEffect(()=>{d.current&&!l&&i&&i(),d.current=l},[l,i]),k.useEffect(()=>{a&&u(!0),a===c.current||h||f(),c.current=a},[h,a,f]),l||a?(0,r.A)("div",{style:l?ci(t,a):di.hidden,onAnimationEnd:f,children:n}):null};var gi=["active","children","onRequestClose","transparent"],yi=k.forwardRef((e,t)=>{var n=e.active,r=e.children,i=e.onRequestClose,o=e.transparent,a=(0,A.A)(e,gi);k.useEffect(()=>{if(v.A){var e=e=>{n&&"Escape"===e.key&&(e.stopPropagation(),i&&i())};return document.addEventListener("keyup",e,!1),()=>document.removeEventListener("keyup",e,!1)}},[n,i]);var s=k.useMemo(()=>[bi.modal,o?bi.modalTransparent:bi.modalOpaque],[o]);return k.createElement(R.A,(0,x.A)({},a,{"aria-modal":!0,ref:t,role:n?"dialog":null,style:s}),k.createElement(R.A,{style:bi.container},r))}),bi=T.A.create({modal:{position:"fixed",top:0,right:0,bottom:0,left:0},modalTransparent:{backgroundColor:"transparent"},modalOpaque:{backgroundColor:"white"},container:{top:0,flex:1}});const _i=yi;var wi=()=>(0,r.A)("div",{role:"none",tabIndex:0,style:ki.focusBracket});function Si(e){if(!v.A)return!1;try{e.focus()}catch(e){}return document.activeElement===e}function Ci(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Si(n)||Ci(n))return!0}return!1}function Ei(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Si(n)||Ei(n))return!0}return!1}const xi=e=>{var t=e.active,n=e.children,r=k.useRef(),i=k.useRef({trapFocusInProgress:!1,lastFocusedElement:null});return k.useEffect(()=>{if(v.A){var e=()=>{if(null!=r.current&&!i.current.trapFocusInProgress&&t){try{if(i.current.trapFocusInProgress=!0,document.activeElement instanceof Node&&!r.current.contains(document.activeElement)){var e=Ci(r.current);i.current.lastFocusedElement===document.activeElement&&(e=Ei(r.current)),!e&&null!=r.current&&document.activeElement&&p.A.focus(r.current)}}finally{i.current.trapFocusInProgress=!1}i.current.lastFocusedElement=document.activeElement}};return e(),document.addEventListener("focus",e,!0),()=>document.removeEventListener("focus",e,!0)}},[t]),k.useEffect(function(){if(v.A){var e=document.activeElement;return function(){e&&document.contains(e)&&p.A.focus(e)}}},[]),k.createElement(k.Fragment,null,k.createElement(wi,null),k.createElement(R.A,{ref:r},n),k.createElement(wi,null))};var ki=T.A.create({focusBracket:{outlineStyle:"none"}}),Ai=["animationType","children","onDismiss","onRequestClose","onShow","transparent","visible"],Ri=0,Ti=[],Pi={};function Oi(){if(0!==Ti.length){var e=Ti[Ti.length-1];Ti.forEach(t=>{t in Pi&&Pi[t](t===e)})}}function Ii(e){e in Pi&&(Pi[e](!1),delete Pi[e]);var t=Ti.indexOf(e);-1!==t&&(Ti.splice(t,1),Oi())}const Ni=k.forwardRef((e,t)=>{var n=e.animationType,r=e.children,i=e.onDismiss,o=e.onRequestClose,a=e.onShow,s=e.transparent,l=e.visible,u=void 0===l||l,c=(0,A.A)(e,Ai),d=k.useMemo(()=>Ri++,[]),h=k.useState(!1),f=h[0],p=h[1],m=k.useCallback(()=>{Ii(d),i&&i()},[d,i]),v=k.useCallback(()=>{!function(e,t){Ii(e),Ti.push(e),Pi[e]=t,Oi()}(d,p),a&&a()},[d,a]);return k.useEffect(()=>()=>Ii(d),[d]),k.createElement(ui,null,k.createElement(vi,{animationType:n,onDismiss:m,onShow:v,visible:u},k.createElement(xi,{active:f},k.createElement(_i,(0,x.A)({},c,{active:f,onRequestClose:o,ref:t,transparent:s}),r))))});var Li=n(1804),Mi=n(6177),Di=["children","enabled","onValueChange","selectedValue","style","testID","itemStyle","mode","prompt"],Fi=k.forwardRef((e,t)=>{var n=e.children,i=e.enabled,o=e.onValueChange,a=e.selectedValue,s=e.style,l=e.testID,u=(e.itemStyle,e.mode,e.prompt,(0,A.A)(e,Di)),c=k.useRef(null),d=(0,C.A)({children:n,disabled:!1===i||void 0,onChange:function(e){var t=e.target,n=t.selectedIndex,r=t.value;o&&o(r,n)},style:[ji.initial,s],testID:l,value:a},u),h=(0,Mi.A)(d),f=(0,Li.A)(c,h,t);return d.ref=f,(0,r.A)("select",d)});Fi.Item=function(e){var t=e.color,n=e.label,i=e.testID,o=e.value,a={color:t};return(0,r.A)("option",{children:n,style:a,testID:i,value:o})};var ji=T.A.create({initial:{fontFamily:"System",fontSize:"inherit",margin:0}});const zi=Fi;var Vi=n(4129),Bi=["color","indeterminate","progress","trackColor","style"],Hi=k.forwardRef((e,t)=>{var n=e.color,r=void 0===n?"#1976D2":n,i=e.indeterminate,o=void 0!==i&&i,a=e.progress,s=void 0===a?0:a,l=e.trackColor,u=void 0===l?"transparent":l,c=e.style,d=(0,A.A)(e,Bi),h=100*s,f=o?"25%":h+"%";return k.createElement(R.A,(0,x.A)({},d,{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o?null:h,ref:t,role:"progressbar",style:[Wi.track,c,{backgroundColor:u}]}),k.createElement(R.A,{style:[{backgroundColor:r,width:f},Wi.progress,o&&Wi.animation]}))});Hi.displayName="ProgressBar";var Wi=T.A.create({track:{forcedColorAdjust:"none",height:5,overflow:"hidden",userSelect:"none",zIndex:0},progress:{forcedColorAdjust:"none",height:"100%",zIndex:-1},animation:{animationDuration:"1s",animationKeyframes:[{"0%":{transform:"translateX(-100%)"},"100%":{transform:"translateX(400%)"}}],animationTimingFunction:"linear",animationIterationCount:"infinite"}});const Ui=Hi;var Yi=["style"],qi=v.A&&window.CSS&&window.CSS.supports&&window.CSS.supports("top: constant(safe-area-inset-top)")?"constant":"env",Ki=k.forwardRef((e,t)=>{var n=e.style,r=(0,A.A)(e,Yi);return k.createElement(R.A,(0,x.A)({},r,{ref:t,style:[$i.root,n]}))});Ki.displayName="SafeAreaView";var $i=T.A.create({root:{paddingTop:qi+"(safe-area-inset-top)",paddingRight:qi+"(safe-area-inset-right)",paddingBottom:qi+"(safe-area-inset-bottom)",paddingLeft:qi+"(safe-area-inset-left)"}});const Gi=Ki;var Xi=()=>{};function Qi(){return null}Qi.setBackgroundColor=Xi,Qi.setBarStyle=Xi,Qi.setHidden=Xi,Qi.setNetworkActivityIndicatorVisible=Xi,Qi.setTranslucent=Xi;const Ji=Qi;var Zi=/^[+-]?\d*(?:\.\d+)?(?:[Ee][+-]?\d+)?(%|\w*)/;const eo=(e,t)=>{var n;return"string"==typeof e?""+parseFloat(e)*t+e.match(Zi)[1]:(n=e,!isNaN(parseFloat(n))&&isFinite(n)?e*t:void 0)};var to=["aria-label","accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"],no={},ro="0px 1px 3px rgba(0,0,0,0.5)",io=ro+", 0 0 0 10px rgba(0,0,0,0.1)",oo="#D5D5D5",ao="#BDBDBD",so=k.forwardRef((e,t)=>{var n=e["aria-label"],i=e.accessibilityLabel,o=e.activeThumbColor,a=e.activeTrackColor,s=e.disabled,l=void 0!==s&&s,u=e.onValueChange,c=e.style,d=void 0===c?no:c,h=e.thumbColor,f=e.trackColor,p=e.value,m=void 0!==p&&p,v=(0,A.A)(e,to),g=k.useRef(null);function y(e){var t="focus"===e.nativeEvent.type?io:ro;null!=g.current&&(g.current.style.boxShadow=t)}var b=T.A.flatten(d),_=b.height,w=b.width,S=_||"20px",C=eo(S,2),E=w>C?w:C,P=eo(S,.5),O=!0===m?null!=f&&"object"==typeof f?f.true:null!=a?a:"#A3D3CF":null!=f&&"object"==typeof f?f.false:null!=f?f:"#939393",I=m?null!=o?o:"#009688":null!=h?h:"#FAFAFA",N=S,L=N,M=[lo.root,d,l&&lo.cursorDefault,{height:S,width:E}],D=!0===m?"string"==typeof a&&null!=a||"object"==typeof f&&null!=f&&f.true?O:oo:"string"==typeof f&&null!=f||"object"==typeof f&&null!=f&&f.false?O:oo,F=!0===m?null==o?ao:I:null==h?ao:I,j=[lo.track,{backgroundColor:l?D:O,borderRadius:P}],z=[lo.thumb,m&&lo.thumbActive,{backgroundColor:l?F:I,height:N,marginStart:m?eo(L,-1):0,width:L}],V=(0,r.A)("input",{"aria-label":n||i,checked:m,disabled:l,onBlur:y,onChange:function(e){null!=u&&u(e.nativeEvent.target.checked)},onFocus:y,ref:t,style:[lo.nativeControl,lo.cursorInherit],type:"checkbox",role:"switch"});return k.createElement(R.A,(0,x.A)({},v,{style:M}),k.createElement(R.A,{style:j}),k.createElement(R.A,{ref:g,style:z}),V)});so.displayName="Switch";var lo=T.A.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:(0,C.A)((0,C.A)({forcedColorAdjust:"none"},T.A.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:ro,start:"0%",transform:"translateZ(0)",transitionDuration:"0.1s"},thumbActive:{insetInlineStart:"100%"},nativeControl:(0,C.A)((0,C.A)({},T.A.absoluteFillObject),{},{height:"100%",margin:0,appearance:"none",padding:0,width:"100%"})});const uo=so;var co=n(8697),ho=n(254),fo=n(2008),po=n(3098),mo=n(1420),vo=n(8865),go=(e,t)=>{if(((e,t)=>{var n=e.selectionEnd,r=e.selectionStart,i=t.start,o=t.end;return i!==r||o!==n})(e,t)){var n=t.start,r=t.end;try{e.setSelectionRange(n,r||n)}catch(e){}}},yo=Object.assign({},co.Gs,co.Fh,co.DY,co.l3,co.Aw,co.k2,co.CD,co.eO,{autoCapitalize:!0,autoComplete:!0,autoCorrect:!0,autoFocus:!0,defaultValue:!0,disabled:!0,lang:!0,maxLength:!0,onChange:!0,onScroll:!0,placeholder:!0,pointerEvents:!0,readOnly:!0,rows:!0,spellCheck:!0,value:!0,type:!0}),bo=null,_o=k.forwardRef((e,t)=>{var n,i,o=e.autoCapitalize,a=void 0===o?"sentences":o,s=e.autoComplete,l=e.autoCompleteType,u=e.autoCorrect,c=void 0===u||u,d=e.blurOnSubmit,h=e.caretHidden,f=e.clearTextOnFocus,p=e.dir,m=e.editable,v=e.enterKeyHint,g=e.inputMode,y=e.keyboardType,b=e.multiline,_=void 0!==b&&b,w=e.numberOfLines,S=e.onBlur,C=e.onChange,E=e.onChangeText,x=e.onContentSizeChange,A=e.onFocus,R=e.onKeyPress,T=e.onLayout,P=e.onMoveShouldSetResponder,O=e.onMoveShouldSetResponderCapture,I=e.onResponderEnd,N=e.onResponderGrant,L=e.onResponderMove,M=e.onResponderReject,D=e.onResponderRelease,F=e.onResponderStart,j=e.onResponderTerminate,z=e.onResponderTerminationRequest,V=e.onScrollShouldSetResponder,B=e.onScrollShouldSetResponderCapture,H=e.onSelectionChange,W=e.onSelectionChangeShouldSetResponder,U=e.onSelectionChangeShouldSetResponderCapture,Y=e.onStartShouldSetResponder,q=e.onStartShouldSetResponderCapture,K=e.onSubmitEditing,$=e.placeholderTextColor,G=e.readOnly,X=void 0!==G&&G,Q=e.returnKeyType,J=e.rows,Z=e.secureTextEntry,ee=void 0!==Z&&Z,te=e.selection,ne=e.selectTextOnFocus,re=e.showSoftInputOnFocus,ie=e.spellCheck;if(null!=g)i=g,n="email"===g?"email":"tel"===g?"tel":"search"===g?"search":"url"===g?"url":"text";else if(null!=y)switch(y){case"email-address":n="email";break;case"number-pad":case"numeric":i="numeric";break;case"decimal-pad":i="decimal";break;case"phone-pad":n="tel";break;case"search":case"web-search":n="search";break;case"url":n="url";break;default:n="text"}ee&&(n="password");var oe=k.useRef({height:null,width:null}),ae=k.useRef(null),se=k.useRef(null),le=k.useRef(!1);k.useEffect(()=>{ae.current&&se.current&&go(ae.current,se.current),le.current=ee},[ee]);var ue=k.useCallback(e=>{if(_&&x&&null!=e){var t=e.scrollHeight,n=e.scrollWidth;t===oe.current.height&&n===oe.current.width||(oe.current.height=t,oe.current.width=n,x({nativeEvent:{contentSize:{height:oe.current.height,width:oe.current.width}}}))}},[_,x]),ce=k.useMemo(()=>e=>{null!=e&&(e.clear=function(){null!=e&&(e.value="")},e.isFocused=function(){return null!=e&&vo.A.currentlyFocusedField()===e},ue(e))},[ue]);(0,Ot.A)(()=>{var e=ae.current;null!=e&&null!=te&&go(e,te),document.activeElement===e&&(vo.A._currentlyFocusedNode=e)},[ae,te]);var de=_?"textarea":"input";(0,fo.A)(ae,T),(0,po.A)(ae,{onMoveShouldSetResponder:P,onMoveShouldSetResponderCapture:O,onResponderEnd:I,onResponderGrant:N,onResponderMove:L,onResponderReject:M,onResponderRelease:D,onResponderStart:F,onResponderTerminate:j,onResponderTerminationRequest:z,onScrollShouldSetResponder:V,onScrollShouldSetResponderCapture:B,onSelectionChangeShouldSetResponder:W,onSelectionChangeShouldSetResponderCapture:U,onStartShouldSetResponder:Y,onStartShouldSetResponderCapture:q});var he=(0,mo.PZ)().direction,fe=(e=>(0,ho.A)(e,yo))(e);fe.autoCapitalize=a,fe.autoComplete=s||l||"on",fe.autoCorrect=c?"on":"off",fe.dir=void 0!==p?p:"auto",fe.enterKeyHint=v||Q,fe.inputMode=i,fe.onBlur=function(e){vo.A._currentlyFocusedNode=null,S&&(e.nativeEvent.text=e.target.value,S(e))},fe.onChange=function(e){var t=e.target,n=t.value;e.nativeEvent.text=n,ue(t),C&&C(e),E&&E(n)},fe.onFocus=function(e){var t=e.target;A&&(e.nativeEvent.text=t.value,A(e)),null!=t&&(vo.A._currentlyFocusedNode=t,f&&(t.value=""),ne&&(null!=bo&&clearTimeout(bo),bo=setTimeout(()=>{null!=t&&document.activeElement===t&&t.select()},0)))},fe.onKeyDown=function(e){var t=e.target;e.stopPropagation();var n=null==d?!_:d,r=e.nativeEvent,i=function(e){return e.isComposing||229===e.keyCode}(r);R&&R(e),"Enter"!==e.key||e.shiftKey||i||e.isDefaultPrevented()||(!d&&_||!K||(e.preventDefault(),r.text=e.target.value,K(e)),n&&null!=t&&setTimeout(()=>t.blur(),0))},fe.onSelect=function(e){try{var t=e.target,n={start:t.selectionStart,end:t.selectionEnd};H&&(e.nativeEvent.selection=n,e.nativeEvent.text=e.target.value,H(e)),le.current===ee&&(se.current=n)}catch(e){}},fe.readOnly=!0===X||!1===m,fe.rows=_?null!=J?J:w:1,fe.spellCheck=null!=ie?ie:c,fe.style=[{"--placeholderTextColor":$},wo.textinput$raw,wo.placeholder,e.style,h&&wo.caretHidden],fe.type=_?void 0:n,fe.virtualkeyboardpolicy=!1===re?"manual":"auto";var pe=(0,Mi.A)(fe),me=(0,Li.A)(ae,pe,ce,t);fe.ref=me;var ve=null!=e.lang?(0,mo.il)(e.lang):null,ge=e.dir||ve||he;return(0,r.A)(de,fe,{writingDirection:ge})});_o.displayName="TextInput",_o.State=vo.A;var wo=T.A.create({textinput$raw:{MozAppearance:"textfield",WebkitAppearance:"none",backgroundColor:"transparent",border:"0 solid black",borderRadius:0,boxSizing:"border-box",font:"14px System",margin:0,padding:0,resize:"none"},placeholder:{placeholderTextColor:"var(--placeholderTextColor)"},caretHidden:{caretColor:"transparent"}});const So=_o;var Co=n(8285),Eo=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},xo=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},ko=Eo;const Ao=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||ko,n.poolSize||(n.poolSize=10),n.release=xo,n},Ro=Eo;var To=Ro;function Po(e,t){this.width=e,this.height=t}Po.prototype.destructor=function(){this.width=null,this.height=null},Po.getPooledFromElement=function(e){return Po.getPooled(e.offsetWidth,e.offsetHeight)},Ao(Po,To);const Oo=Po;var Io=Ro;function No(e,t){this.left=e,this.top=t}No.prototype.destructor=function(){this.left=null,this.top=null},Ao(No,Io);const Lo=No;var Mo=n(4078),Do=e=>{var t=e.touches,n=e.changedTouches,r=t&&t.length>0,i=n&&n.length>0;return!r&&i?n[0]:r?t[0]:e},Fo="NOT_RESPONDER",jo="RESPONDER_INACTIVE_PRESS_IN",zo="RESPONDER_INACTIVE_PRESS_OUT",Vo="RESPONDER_ACTIVE_PRESS_IN",Bo="RESPONDER_ACTIVE_PRESS_OUT",Ho="RESPONDER_ACTIVE_LONG_PRESS_IN",Wo="RESPONDER_ACTIVE_LONG_PRESS_OUT",Uo="ERROR",Yo={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},qo=(0,C.A)((0,C.A)({},Yo),{},{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),Ko=(0,C.A)((0,C.A)({},Yo),{},{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),$o=(0,C.A)((0,C.A)({},Yo),{},{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),Go="RESPONDER_RELEASE",Xo="RESPONDER_TERMINATED",Qo="LONG_PRESS_DETECTED",Jo={NOT_RESPONDER:{DELAY:Uo,RESPONDER_GRANT:jo,RESPONDER_RELEASE:Uo,RESPONDER_TERMINATED:Uo,ENTER_PRESS_RECT:Uo,LEAVE_PRESS_RECT:Uo,LONG_PRESS_DETECTED:Uo},RESPONDER_INACTIVE_PRESS_IN:{DELAY:Vo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:jo,LEAVE_PRESS_RECT:zo,LONG_PRESS_DETECTED:Uo},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:Bo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:jo,LEAVE_PRESS_RECT:zo,LONG_PRESS_DETECTED:Uo},RESPONDER_ACTIVE_PRESS_IN:{DELAY:Uo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Bo,LONG_PRESS_DETECTED:Ho},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:Uo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:Vo,LEAVE_PRESS_RECT:Bo,LONG_PRESS_DETECTED:Uo},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:Uo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:Ho,LEAVE_PRESS_RECT:Wo,LONG_PRESS_DETECTED:Ho},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:Uo,RESPONDER_GRANT:Uo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:Ho,LEAVE_PRESS_RECT:Wo,LONG_PRESS_DETECTED:Uo},error:{DELAY:Fo,RESPONDER_GRANT:jo,RESPONDER_RELEASE:Fo,RESPONDER_TERMINATED:Fo,ENTER_PRESS_RECT:Fo,LEAVE_PRESS_RECT:Fo,LONG_PRESS_DETECTED:Fo}},Zo={componentDidMount:function(){(0,Mo.m)("TouchableMixin","TouchableMixin is deprecated. Please use Pressable.");var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&(this._touchableBlurListener=e=>{this._isTouchableKeyboardActive&&(this.state.touchable.touchState&&this.state.touchable.touchState!==Fo&&this.touchableHandleResponderTerminate({nativeEvent:e}),this._isTouchableKeyboardActive=!1)},e.addEventListener("blur",this._touchableBlurListener))},componentWillUnmount:function(){var e=this.getTouchableNode&&this.getTouchableNode();e&&e.addEventListener&&e.removeEventListener("blur",this._touchableBlurListener),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressInLocation=null,this.state.touchable.responderID=null},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(e){var t=e.currentTarget;e.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=Fo,this.state.touchable.responderID=t,this._receiveSignal("RESPONDER_GRANT",e);var n=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(n=isNaN(n)?130:n)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,e),n):this._handleDelay(e);var r=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;r=isNaN(r)?370:r,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,e),r+n)},touchableHandleResponderRelease:function(e){this.pressInLocation=null,this._receiveSignal(Go,e)},touchableHandleResponderTerminate:function(e){this.pressInLocation=null,this._receiveSignal(Xo,e)},touchableHandleResponderMove:function(e){if(this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,n=this.state.touchable.dimensionsOnActivate,r=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=r.left,o=r.top,a=r.right,s=r.bottom,l=this.touchableGetHitSlop?this.touchableGetHitSlop():null;l&&(i+=l.left||0,o+=l.top||0,a+=l.right||0,s+=l.bottom||0);var u=Do(e.nativeEvent),c=u&&u.pageX,d=u&&u.pageY;if(this.pressInLocation&&this._getDistanceBetweenPoints(c,d,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout(),c>t.left-i&&d>t.top-o&&c<t.left+n.width+a&&d<t.top+n.height+s){var h=this.state.touchable.touchState;this._receiveSignal("ENTER_PRESS_RECT",e),this.state.touchable.touchState===jo&&h!==jo&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal("LEAVE_PRESS_RECT",e)}},touchableHandleFocus:function(e){this.props.onFocus&&this.props.onFocus(e)},touchableHandleBlur:function(e){this.props.onBlur&&this.props.onBlur(e)},_remeasureMetricsOnActivation:function(){var e=this.state.touchable.responderID;null!=e&&p.A.measure(e,this._handleQueryLayout)},_handleQueryLayout:function(e,t,n,r,i,o){(e||t||n||r||i||o)&&(this.state.touchable.positionOnActivate&&Lo.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&Oo.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=Lo.getPooled(i,o),this.state.touchable.dimensionsOnActivate=Oo.getPooled(n,r))},_handleDelay:function(e){this.touchableDelayTimeout=null,this._receiveSignal("DELAY",e)},_handleLongDelay:function(e){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==Vo&&t!==Ho?console.error("Attempted to transition from state `"+t+"` to `"+Ho+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(Qo,e)},_receiveSignal:function(e,t){var n=this.state.touchable.responderID,r=this.state.touchable.touchState,i=Jo[r]&&Jo[r][e];if(n||e!==Go){if(!i)throw new Error("Unrecognized signal `"+e+"` or state `"+r+"` for Touchable responder `"+n+"`");if(i===Uo)throw new Error("Touchable cannot transition from `"+r+"` to `"+e+"` for responder `"+n+"`");r!==i&&(this._performSideEffectsForTransition(r,i,e,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(e){return e===Vo||e===Ho},_savePressInLocation:function(e){var t=Do(e.nativeEvent),n=t&&t.pageX,r=t&&t.pageY,i=t&&t.locationX,o=t&&t.locationY;this.pressInLocation={pageX:n,pageY:r,locationX:i,locationY:o}},_getDistanceBetweenPoints:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},_performSideEffectsForTransition:function(e,t,n,r){var i=this._isHighlight(e),o=this._isHighlight(t);(n===Xo||n===Go)&&this._cancelLongPressDelayTimeout();var a=e===Fo&&t===jo,s=!qo[e]&&qo[t];if((a||s)&&this._remeasureMetricsOnActivation(),Ko[e]&&n===Qo&&this.touchableHandleLongPress&&this.touchableHandleLongPress(r),o&&!i?this._startHighlight(r):!o&&i&&this._endHighlight(r),Ko[e]&&n===Go){var l=!!this.props.onLongPress,u=$o[e]&&(!l||!this.touchableLongPressCancelsPress());(!$o[e]||u)&&this.touchableHandlePress&&(o||i||(this._startHighlight(r),this._endHighlight(r)),this.touchableHandlePress(r))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_playTouchSound:function(){p.A.playTouchSound()},_startHighlight:function(e){this._savePressInLocation(e),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(e)},_endHighlight:function(e){this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(()=>{this.touchableHandleActivePressOut(e)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(e))},touchableHandleKeyEvent:function(e){var t=e.type,n=e.key;"Enter"!==n&&" "!==n||("keydown"===t?this._isTouchableKeyboardActive||this.state.touchable.touchState&&this.state.touchable.touchState!==Fo||(this.touchableHandleResponderGrant(e),this._isTouchableKeyboardActive=!0):"keyup"===t&&this._isTouchableKeyboardActive&&this.state.touchable.touchState&&this.state.touchable.touchState!==Fo&&(this.touchableHandleResponderRelease(e),this._isTouchableKeyboardActive=!1),e.stopPropagation(),"Enter"===n&&"link"===Co.A.propsToAriaRole(this.props)||e.preventDefault())},withoutDefaultFocusAndBlur:{}},ea=(Zo.touchableHandleFocus,Zo.touchableHandleBlur,(0,A.A)(Zo,["touchableHandleFocus","touchableHandleBlur"]));Zo.withoutDefaultFocusAndBlur=ea;var ta={Mixin:Zo,TOUCH_TARGET_DEBUG:!1,renderDebugView:e=>{var t=e.color,n=e.hitSlop;if(!ta.TOUCH_TARGET_DEBUG)return null;var r={};for(var i in n=n||{top:0,bottom:0,left:0,right:0})r[i]=-n[i];var o=mt()(t);if("number"!=typeof o)return null;var a="#"+("00000000"+o.toString(16)).substr(-8);return k.createElement(R.A,{pointerEvents:"none",style:(0,C.A)({position:"absolute",borderColor:a.slice(0,-2)+"55",borderWidth:1,borderStyle:"dashed",backgroundColor:a.slice(0,-2)+"0F"},r)})}};const na=ta;var ra=n(6533),ia=["activeOpacity","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onLongPress","onPress","onPressIn","onPressOut","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","underlayColor"];function oa(e,t){return{child:{opacity:null!=e?e:.85},underlay:{backgroundColor:void 0===t?"black":t}}}function aa(e){return null!=e.onPress||null!=e.onPressIn||null!=e.onPressOut||null!=e.onLongPress}function sa(e,t){var n=e.activeOpacity,r=e.children,i=e.delayPressIn,o=e.delayPressOut,a=e.delayLongPress,s=e.disabled,l=e.focusable,u=e.onHideUnderlay,c=e.onLongPress,d=e.onPress,h=e.onPressIn,f=e.onPressOut,p=e.onShowUnderlay,m=e.rejectResponderTermination,v=e.style,g=e.testOnly_pressed,y=e.underlayColor,b=(0,A.A)(e,ia),_=(0,k.useRef)(null),w=(0,Li.A)(t,_),S=(0,k.useState)(!0===g?oa(n,y):null),C=S[0],E=S[1],T=(0,k.useCallback)(()=>{aa(e)&&(E(oa(n,y)),null!=p&&p())},[n,p,e,y]),P=(0,k.useCallback)(()=>{!0!==g&&aa(e)&&(E(null),null!=u&&u())},[u,e,g]),O=(0,k.useMemo)(()=>({cancelable:!m,disabled:s,delayLongPress:a,delayPressStart:i,delayPressEnd:o,onLongPress:c,onPress:d,onPressStart(e){T(),null!=h&&h(e)},onPressEnd(e){P(),null!=f&&f(e)}}),[a,i,o,s,c,d,h,f,m,T,P]),I=(0,ra.A)(_,O),N=k.Children.only(r);return k.createElement(R.A,(0,x.A)({},b,I,{accessibilityDisabled:s,focusable:!s&&!1!==l,pointerEvents:s?"box-none":void 0,ref:w,style:[la.root,v,!s&&la.actionable,C&&C.underlay]}),k.cloneElement(N,{style:[N.props.style,C&&C.child]}))}var la=T.A.create({root:{userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),ua=k.memo(k.forwardRef(sa));ua.displayName="TouchableHighlight";const ca=ua;var da=["style"],ha={};const fa=function(e){var t=e.style,n=(0,A.A)(e,da);return k.createElement(R.A,(0,x.A)({},n,{style:[ha,t]}))},pa=fa;var ma={accessibilityDisabled:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,children:!0,disabled:!0,focusable:!0,nativeID:!0,onBlur:!0,onFocus:!0,onLayout:!0,testID:!0};function va(e,t){(0,Mo.m)("TouchableWithoutFeedback","TouchableWithoutFeedback is deprecated. Please use Pressable.");var n=e.delayPressIn,r=e.delayPressOut,i=e.delayLongPress,o=e.disabled,a=e.focusable,s=e.onLongPress,l=e.onPress,u=e.onPressIn,c=e.onPressOut,d=e.rejectResponderTermination,h=(0,k.useRef)(null),f=(0,k.useMemo)(()=>({cancelable:!d,disabled:o,delayLongPress:i,delayPressStart:n,delayPressEnd:r,onLongPress:s,onPress:l,onPressStart:u,onPressEnd:c}),[o,n,r,i,s,l,u,c,d]),p=(0,ra.A)(h,f),m=k.Children.only(e.children),v=[m.props.children],g=(e=>(0,ho.A)(e,ma))(e);g.accessibilityDisabled=o,g.focusable=!o&&!1!==a,g.ref=(0,Li.A)(t,h,m.ref);var y=Object.assign(g,p);return k.cloneElement(m,y,...v)}var ga=k.memo(k.forwardRef(va));ga.displayName="TouchableWithoutFeedback";const ya=ga,ba=Te;function _a(e){return k.createElement(fa,e)}_a.ignoreWarnings=()=>{};const wa=_a,Sa={ignoreLogs(){},ignoreAllLogs(){},uninstall(){},install(){}};var Ca=n(9697);function Ea(){var e=k.useState(Xn.getColorScheme()),t=e[0],n=e[1];return k.useEffect(()=>Xn.addChangeListener(function(e){n(e.colorScheme)}).remove),t}const xa=mo.PZ;function ka(){var e=(0,k.useState)(()=>gr.A.get("window")),t=e[0],n=e[1];return(0,k.useEffect)(()=>{function e(e){var t=e.window;null!=t&&n(t)}return gr.A.addEventListener("change",e),n(gr.A.get("window")),()=>{gr.A.removeEventListener("change",e)}},[]),t}},5238:(e,t,n)=>{"use strict";let r=n(3152);class i extends r{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]}}e.exports=i,i.default=i},5243:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(6540).createContext)(!1)},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,m(_,g.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:C.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+R(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+R(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+R(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:C};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},5316:(e,t,n)=>{"use strict";var r=n(1042),i=n(356),o=n(4385),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},5338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,t.c=r.hydrateRoot},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(8168),i=n(8587),o=n(6540),a=n(9176),s=["behavior","contentContainerStyle","keyboardVerticalOffset"];class l extends o.Component{constructor(){super(...arguments),this.frame=null,this.onLayout=e=>{this.frame=e.nativeEvent.layout}}relativeKeyboardHeight(e){var t=this.frame;if(!t||!e)return 0;var n=e.screenY-(this.props.keyboardVerticalOffset||0);return Math.max(t.y+t.height-n,0)}onKeyboardChange(e){}render(){var e=this.props,t=(e.behavior,e.contentContainerStyle,e.keyboardVerticalOffset,(0,i.A)(e,s));return o.createElement(a.A,(0,r.A)({onLayout:this.onLayout},t))}}const u=l},5482:(e,t,n)=>{var r=n(8809),i=n(8449),o=n(9063);function a(e){return this instanceof a?(this.nodes=r(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=n(2882),a.walk=i,a.stringify=o,e.exports=a},5486:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return e.filter(function(t,n){return e.lastIndexOf(t)===n})}function s(e){for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;++t){var o=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var l in o){var u=o[l],c=e[l];if(c&&u){if(Array.isArray(c)){e[l]=a(c.concat(u));continue}if(Array.isArray(u)){e[l]=a([c].concat(i(u)));continue}if("object"===r(u)){e[l]=s({},c,u);continue}}e[l]=u}}return e}n.r(t),n.d(t,{assignStyle:()=>s,camelCaseProperty:()=>h,cssifyDeclaration:()=>m,cssifyObject:()=>v,hyphenateProperty:()=>p,isPrefixedProperty:()=>y,isPrefixedValue:()=>_,isUnitlessProperty:()=>O,normalizeProperty:()=>L,resolveArrayValue:()=>M,unprefixProperty:()=>N,unprefixValue:()=>F});var l=/-([a-z])/g,u=/^Ms/g,c={};function d(e){return e[1].toUpperCase()}function h(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(l,d).replace(u,"ms");return c[e]=t,t}var f=n(5685);function p(e){return(0,f.default)(e)}function m(e,t){return p(e)+":"+t}function v(e){var t="";for(var n in e){var r=e[n];"string"!=typeof r&&"number"!=typeof r||(t&&(t+=";"),t+=m(n,r))}return t}var g=/^(Webkit|Moz|O|ms)/;function y(e){return g.test(e)}var b=/-webkit-|-moz-|-ms-/;function _(e){return"string"==typeof e&&b.test(e)}var w={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],C=["Webkit","ms","Moz","O"];function E(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}for(var x=0,k=S.length;x<k;++x){var A=S[x];w[A]=!0;for(var R=0,T=C.length;R<T;++R)w[E(C[R],A)]=!0}for(var P in w)w[p(P)]=!0;function O(e){return w.hasOwnProperty(e)}var I=/^(ms|Webkit|Moz|O)/;function N(e){var t=e.replace(I,"");return t.charAt(0).toLowerCase()+t.slice(1)}function L(e){return N(h(e))}function M(e,t){return t.join(";"+p(e)+":")}var D=/(-ms-|-webkit-|-moz-|-o-)/g;function F(e){return"string"==typeof e?e.replace(D,""):e}},5493:e=>{"use strict";function t(e){return e&&"object"==typeof e?i(e)||o(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}(e,t):function(e,t,n){if(e.reduce)return e.reduce(t,n);for(var r=0;r<e.length;r++)n=t(n,e[r]);return n}(s(e),function(r,i){return r[n(i)]=t(e[i]),r},{}):e}function n(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?n(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object Date]"===Object.prototype.toString.call(e)},o=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},a=Object.prototype.hasOwnProperty,s=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},5525:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(6698)),o=n(4500),a=n(3863),s=r(n(6659));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},5556:(e,t,n)=>{e.exports=n(2694)()},5644:(e,t,n)=>{"use strict";let r,i,o=n(7793);class a extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)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 r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a,o.registerRoot(a)},5685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},5721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e)};var r,i=(r=n(5685))&&r.__esModule?r:{default:r}},5725:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=new(n(1603).A)},5770:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},5781:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),l="\t".charCodeAt(0),u="\r".charCodeAt(0),c="[".charCodeAt(0),d="]".charCodeAt(0),h="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),m="}".charCodeAt(0),v=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),_=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,C=/[\da-f]/i;e.exports=function(e,E={}){let x,k,A,R,T,P,O,I,N,L,M=e.css.valueOf(),D=E.ignoreErrors,F=M.length,j=0,z=[],V=[];function B(t){throw e.error("Unclosed "+t,j)}return{back:function(e){V.push(e)},endOfFile:function(){return 0===V.length&&j>=F},nextToken:function(e){if(V.length)return V.pop();if(j>=F)return;let E=!!e&&e.ignoreUnclosed;switch(x=M.charCodeAt(j),x){case o:case a:case l:case u:case s:R=j;do{R+=1,x=M.charCodeAt(R)}while(x===a||x===o||x===l||x===u||x===s);P=["space",M.slice(j,R)],j=R-1;break;case c:case d:case p:case m:case y:case v:case f:{let e=String.fromCharCode(x);P=[e,e,j];break}case h:if(L=z.length?z.pop()[1]:"",N=M.charCodeAt(j+1),"url"===L&&N!==t&&N!==n&&N!==a&&N!==o&&N!==l&&N!==s&&N!==u){R=j;do{if(O=!1,R=M.indexOf(")",R+1),-1===R){if(D||E){R=j;break}B("bracket")}for(I=R;M.charCodeAt(I-1)===r;)I-=1,O=!O}while(O);P=["brackets",M.slice(j,R+1),j,R],j=R}else R=M.indexOf(")",j+1),k=M.slice(j,R+1),-1===R||S.test(k)?P=["(","(",j]:(P=["brackets",k,j,R],j=R);break;case t:case n:T=x===t?"'":'"',R=j;do{if(O=!1,R=M.indexOf(T,R+1),-1===R){if(D||E){R=j+1;break}B("string")}for(I=R;M.charCodeAt(I-1)===r;)I-=1,O=!O}while(O);P=["string",M.slice(j,R+1),j,R],j=R;break;case b:_.lastIndex=j+1,_.test(M),R=0===_.lastIndex?M.length-1:_.lastIndex-2,P=["at-word",M.slice(j,R+1),j,R],j=R;break;case r:for(R=j,A=!0;M.charCodeAt(R+1)===r;)R+=1,A=!A;if(x=M.charCodeAt(R+1),A&&x!==i&&x!==a&&x!==o&&x!==l&&x!==u&&x!==s&&(R+=1,C.test(M.charAt(R)))){for(;C.test(M.charAt(R+1));)R+=1;M.charCodeAt(R+1)===a&&(R+=1)}P=["word",M.slice(j,R+1),j,R],j=R;break;default:x===i&&M.charCodeAt(j+1)===g?(R=M.indexOf("*/",j+2)+1,0===R&&(D||E?R=M.length:B("comment")),P=["comment",M.slice(j,R+1),j,R],j=R):(w.lastIndex=j+1,w.test(M),R=0===w.lastIndex?M.length-1:w.lastIndex-2,P=["word",M.slice(j,R+1),j,R],z.push(P),j=R)}return j++,P},position:function(){return j}}}},5791:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(1476);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},5881:(e,t,n)=>{"use strict";n.d(t,{x:()=>h});var r=n(1635),i=n(6115),o=n(7977),a=n(9839),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],f={};return d(n,function(){try{h=l(o),f=u(a),c(o),c(a),i.queue=(0,r.fX)((0,r.fX)([],h,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,function(){!function(e,t){var n=l(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce(function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))},{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)})}catch(e){console.error(e)}}}),i}return(0,r.C6)(t,e),t}(i.M)},5939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(9952),o=n(5791);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,function(){var i,a,s;return(0,r.YH)(this,function(l){switch(l.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return l.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}})})}var a,s,l,u,c;return(0,r.YH)(this,function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,e.label=1;case 1:return s<l.length?(u=l[s],[4,i(a,u)]):[3,4];case 2:if(null===(c=e.sent()))return[2,null];a=c,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}})})}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,function(){var a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},6e3:(e,t,n)=>{"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},6041:e=>{function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var l=!1;!l;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(l=!0):n.length?void(t=i):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},6115:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(2079),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map(function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e,t){var n=this;if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var r=this.updateAttempts(e);if(r>this.maxAttempts||this.includes(e))return!1;var i=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),l)}({attempt:r-1});return t>0&&i<t&&(i=t),setTimeout(function(){n.queue.push(e),n.future=n.future.filter(function(t){return t.id!==e.id}),n.emit(o)},i),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find(function(t){return t.id===e.id}))||Boolean(this.future.find(function(t){return t.id===e.id}))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},6156:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},6177:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8683),i=n(9241);function o(e){return e.pointerEvents,e.style,(0,i.A)(()=>e=>{null!=e&&(e.measure=t=>r.A.measure(e,t),e.measureLayout=(t,n,i)=>r.A.measureLayout(e,t,i,n),e.measureInWindow=t=>r.A.measureInWindow(e,t))})}},6251:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise(function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}});return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},6413:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(8168),i=n(8587),o=n(6540),a=n(1804),s=n(6533),l=n(8997),u=n(9176),c=["activeOpacity","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","rejectResponderTermination","style"];function d(e,t){var n=e.activeOpacity,l=e.delayPressIn,d=e.delayPressOut,f=e.delayLongPress,p=e.disabled,m=e.focusable,v=e.onLongPress,g=e.onPress,y=e.onPressIn,b=e.onPressOut,_=e.rejectResponderTermination,w=e.style,S=(0,i.A)(e,c),C=(0,o.useRef)(null),E=(0,a.A)(t,C),x=(0,o.useState)("0s"),k=x[0],A=x[1],R=(0,o.useState)(null),T=R[0],P=R[1],O=(0,o.useCallback)((e,t)=>{P(e),A(t?t/1e3+"s":"0s")},[P,A]),I=(0,o.useCallback)(e=>{O(null!=n?n:.2,e)},[n,O]),N=(0,o.useCallback)(e=>{O(null,e)},[O]),L=(0,o.useMemo)(()=>({cancelable:!_,disabled:p,delayLongPress:f,delayPressStart:l,delayPressEnd:d,onLongPress:v,onPress:g,onPressStart(e){var t=null!=e.dispatchConfig?"onResponderGrant"===e.dispatchConfig.registrationName:"keydown"===e.type;I(t?0:150),null!=y&&y(e)},onPressEnd(e){N(250),null!=b&&b(e)}}),[f,l,d,p,v,g,y,b,_,I,N]),M=(0,s.A)(C,L);return o.createElement(u.A,(0,r.A)({},S,M,{accessibilityDisabled:p,focusable:!p&&!1!==m,pointerEvents:p?"box-none":void 0,ref:E,style:[h.root,!p&&h.actionable,w,null!=T&&{opacity:T},{transitionDuration:k}]}))}var h=l.A.create({root:{transitionProperty:"opacity",transitionDuration:"0.15s",userSelect:"none"},actionable:{cursor:"pointer",touchAction:"manipulation"}}),f=o.memo(o.forwardRef(d));f.displayName="TouchableOpacity";const p=f},6485:(e,t,n)=>{"use strict";t.A=function(e){var t=e.prefixMap,n=e.plugins;return function e(s){for(var l in s){var u=s[l];if((0,a.default)(u))s[l]=e(u);else if(Array.isArray(u)){for(var c=[],d=0,h=u.length;d<h;++d){var f=(0,i.default)(n,l,u[d],s,t);(0,o.default)(c,f||u[d])}c.length>0&&(s[l]=c)}else{var p=(0,i.default)(n,l,u,s,t);p&&(s[l]=p),s=(0,r.default)(t,l,s)}}return s}};var r=s(n(2049)),i=s(n(7971)),o=s(n(9863)),a=s(n(1099));function s(e){return e&&e.__esModule?e:{default:e}}},6490:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t})},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},6533:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r="DELAY",i="ERROR",o="LONG_PRESS_DETECTED",a="NOT_RESPONDER",s="RESPONDER_ACTIVE_LONG_PRESS_START",l="RESPONDER_ACTIVE_PRESS_START",u="RESPONDER_INACTIVE_PRESS_START",c="RESPONDER_RELEASE",d="RESPONDER_TERMINATED",h=Object.freeze({NOT_RESPONDER:{DELAY:i,RESPONDER_GRANT:u,RESPONDER_RELEASE:i,RESPONDER_TERMINATED:i,LONG_PRESS_DETECTED:i},RESPONDER_INACTIVE_PRESS_START:{DELAY:l,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:i},RESPONDER_ACTIVE_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},RESPONDER_ACTIVE_LONG_PRESS_START:{DELAY:i,RESPONDER_GRANT:i,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:s},ERROR:{DELAY:a,RESPONDER_GRANT:u,RESPONDER_RELEASE:a,RESPONDER_TERMINATED:a,LONG_PRESS_DETECTED:a}}),f=e=>e.getAttribute("role"),p=e=>e.tagName.toLowerCase(),m=e=>e===l||e===s,v=e=>"button"===f(e),g=e=>e===u||e===l||e===s,y=e=>{var t=e.key,n=e.target,r=" "===t||"Spacebar"===t,i="button"===p(n)||v(n);return"Enter"===t||r&&i};class b{constructor(e){this._eventHandlers=null,this._isPointerTouch=!1,this._longPressDelayTimeout=null,this._longPressDispatched=!1,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._touchState=a,this._responderElement=null,this.configure(e)}configure(e){this._config=e}reset(){this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout()}getEventHandlers(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}_createEventHandlers(){var e=(e,t)=>{e.persist(),this._cancelPressOutDelayTimeout(),this._longPressDispatched=!1,this._selectionTerminated=!1,this._touchState=a,this._isPointerTouch="touchstart"===e.nativeEvent.type,this._receiveSignal("RESPONDER_GRANT",e);var n=_(this._config.delayPressStart,0,50);!1!==t&&n>0?this._pressDelayTimeout=setTimeout(()=>{this._receiveSignal(r,e)},n):this._receiveSignal(r,e);var i=_(this._config.delayLongPress,10,450);this._longPressDelayTimeout=setTimeout(()=>{this._handleLongPress(e)},i+n)},t=e=>{this._receiveSignal(c,e)},n=e=>{var r=this._config.onPress,i=e.target;if(this._touchState!==a&&y(e)){t(e),document.removeEventListener("keyup",n);var o=i.getAttribute("role"),s=p(i),l="link"===o||"a"===s||"button"===s||"input"===s||"select"===s||"textarea"===s,u=this._responderElement===i;null!=r&&!l&&u&&r(e),this._responderElement=null}};return{onStartShouldSetResponder:e=>{var t=this._config.disabled;return t&&v(e.currentTarget)&&e.stopPropagation(),null==t||!t},onKeyDown:t=>{var r=this._config.disabled,i=t.key,o=t.target;if(!r&&y(t)){this._touchState===a&&(e(t,!1),this._responderElement=o,document.addEventListener("keyup",n));var s=" "===i||"Spacebar"===i,l=f(o);s&&("button"===l||"menuitem"===l)&&"button"!==p(o)&&t.preventDefault(),t.stopPropagation()}},onResponderGrant:t=>e(t),onResponderMove:e=>{null!=this._config.onPressMove&&this._config.onPressMove(e);var t=w(e);if(null!=this._touchActivatePosition){var n=this._touchActivatePosition.pageX-t.pageX,r=this._touchActivatePosition.pageY-t.pageY;Math.hypot(n,r)>10&&this._cancelLongPressDelayTimeout()}},onResponderRelease:e=>t(e),onResponderTerminate:e=>{"selectionchange"===e.nativeEvent.type&&(this._selectionTerminated=!0),this._receiveSignal(d,e)},onResponderTerminationRequest:e=>{var t=this._config,n=t.cancelable,r=t.disabled,i=t.onLongPress;return!(!r&&null!=i&&this._isPointerTouch&&"contextmenu"===e.nativeEvent.type)&&(null==n||n)},onClick:e=>{var t=this._config,n=t.disabled,r=t.onPress;n?v(e.currentTarget)&&e.stopPropagation():(e.stopPropagation(),this._longPressDispatched||this._selectionTerminated?e.preventDefault():null!=r&&!1===e.altKey&&r(e))},onContextMenu:e=>{var t=this._config,n=t.disabled,r=t.onLongPress;n?v(e.currentTarget)&&e.stopPropagation():null!=r&&this._isPointerTouch&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation())}}}_receiveSignal(e,t){var n=this._touchState,r=null;null!=h[n]&&(r=h[n][e]),this._touchState===a&&e===c||(null==r||r===i?console.error("PressResponder: Invalid signal "+e+" for state "+n+" on responder"):n!==r&&(this._performTransitionSideEffects(n,r,e,t),this._touchState=r))}_performTransitionSideEffects(e,t,n,r){if((e=>e===d||e===c)(n)&&(setTimeout(()=>{this._isPointerTouch=!1},0),this._touchActivatePosition=null,this._cancelLongPressDelayTimeout()),g(e)&&n===o){var i=this._config.onLongPress;null!=i&&null==r.nativeEvent.key&&(i(r),this._longPressDispatched=!0)}var a=m(e),l=m(t);if(!a&&l?this._activate(r):a&&!l&&this._deactivate(r),g(e)&&n===c){var u=this._config,h=u.onLongPress;null!=u.onPress&&(null!=h&&e===s||l||a||(this._activate(r),this._deactivate(r)))}this._cancelPressDelayTimeout()}_activate(e){var t=this._config,n=t.onPressChange,r=t.onPressStart,i=w(e);this._touchActivatePosition={pageX:i.pageX,pageY:i.pageY},null!=r&&r(e),null!=n&&n(!0)}_deactivate(e){var t=this._config,n=t.onPressChange,r=t.onPressEnd;function i(){null!=r&&r(e),null!=n&&n(!1)}var o=_(this._config.delayPressEnd);o>0?this._pressOutDelayTimeout=setTimeout(()=>{i()},o):i()}_handleLongPress(e){this._touchState!==l&&this._touchState!==s||this._receiveSignal(o,e)}_cancelLongPressDelayTimeout(){null!=this._longPressDelayTimeout&&(clearTimeout(this._longPressDelayTimeout),this._longPressDelayTimeout=null)}_cancelPressDelayTimeout(){null!=this._pressDelayTimeout&&(clearTimeout(this._pressDelayTimeout),this._pressDelayTimeout=null)}_cancelPressOutDelayTimeout(){null!=this._pressOutDelayTimeout&&(clearTimeout(this._pressOutDelayTimeout),this._pressOutDelayTimeout=null)}}function _(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Math.max(t,null!=e?e:n)}function w(e){var t=e.nativeEvent,n=t.changedTouches,r=t.touches;return null!=r&&r.length>0?r[0]:null!=n&&n.length>0?n[0]:e.nativeEvent}var S=n(6540);function C(e,t){var n=(0,S.useRef)(null);null==n.current&&(n.current=new b(t));var r=n.current;return(0,S.useEffect)(()=>{r.configure(t)},[t,r]),(0,S.useEffect)(()=>()=>{r.reset()},[r]),(0,S.useDebugValue)(t),r.getEventHandlers()}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6556:(e,t,n)=>{"use strict";function r(e,t){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),n(e)}).catch(r)})}function i(e,t,n){var i;return(i=n,new Promise(function(e){return setTimeout(e,i)})).then(function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}n.d(t,{s2:()=>r,w_:()=>i})},6610:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2901);const i=function(e,t){if(void 0===t&&(t=1),null!=e){if("string"==typeof e&&(e=>"currentcolor"===e||"currentColor"===e||"inherit"===e||0===e.indexOf("var("))(e))return e;var n=(0,r.A)(e);if(null!=n)return"rgba("+(n>>16&255)+","+(n>>8&255)+","+(255&n)+","+((n>>24&255)/255*t).toFixed(2)+")"}}},6659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6846:(e,t,n)=>{"use strict";let r=n(145),i=n(6966),o=n(4211),a=n(5644);class s{constructor(e=[]){this.version="8.4.49",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new o(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,a.registerProcessor(s),r.registerProcessor(s)},6852:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,i.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,i=(r=n(4014))&&r.__esModule?r:{default:r},o=["-webkit-",""]},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6927:(e,t,n)=>{"use strict";n.d(t,{l5:()=>l,vk:()=>f});var r=n(6610),i=n(1747),o=n(4078),a={},s={height:0,width:0},l=e=>{var t=e.shadowColor,n=e.shadowOffset,o=e.shadowOpacity,a=e.shadowRadius,l=n||s,u=l.height,c=l.width,d=(0,i.A)(c),h=(0,i.A)(u),f=(0,i.A)(a||0),p=(0,r.A)(t||"black",o);if(null!=p&&null!=d&&null!=h&&null!=f)return d+" "+h+" "+f+" "+p},u=e=>{var t=Object.keys(e)[0],n=e[t];return"matrix"===t||"matrix3d"===t?t+"("+n.join(",")+")":t+"("+(0,i.A)(n,t)+")"},c=e=>e.map(u).join(" "),d={borderBottomEndRadius:"borderEndEndRadius",borderBottomStartRadius:"borderEndStartRadius",borderTopEndRadius:"borderStartEndRadius",borderTopStartRadius:"borderStartStartRadius",borderEndColor:"borderInlineEndColor",borderEndStyle:"borderInlineEndStyle",borderEndWidth:"borderInlineEndWidth",borderStartColor:"borderInlineStartColor",borderStartStyle:"borderInlineStartStyle",borderStartWidth:"borderInlineStartWidth",end:"insetInlineEnd",marginEnd:"marginInlineEnd",marginHorizontal:"marginInline",marginStart:"marginInlineStart",marginVertical:"marginBlock",paddingEnd:"paddingInlineEnd",paddingHorizontal:"paddingInline",paddingStart:"paddingInlineStart",paddingVertical:"paddingBlock",start:"insetInlineStart"},h={elevation:!0,overlayColor:!0,resizeMode:!0,tintColor:!0},f=function(e,t){void 0===t&&(t={});var n=e||a,r={};if(t.shadow,null!=n.shadowColor||null!=n.shadowOffset||null!=n.shadowOpacity||null!=n.shadowRadius){(0,o.m)("shadowStyles",'"shadow*" style props are deprecated. Use "boxShadow".');var u=l(n);if(null!=u&&null==r.boxShadow){var f=n.boxShadow,p=f?f+", "+u:u;r.boxShadow=p}}if(t.textShadow,null!=n.textShadowColor||null!=n.textShadowOffset||null!=n.textShadowRadius){(0,o.m)("textShadowStyles",'"textShadow*" style props are deprecated. Use "textShadow".');var m=(e=>{var t=e.textShadowColor,n=e.textShadowOffset,r=e.textShadowRadius,o=n||s,a=o.height,l=o.width,u=r||0,c=(0,i.A)(l),d=(0,i.A)(a),h=(0,i.A)(u),f=(0,i.A)(t,"textShadowColor");if(f&&(0!==a||0!==l||0!==u)&&null!=c&&null!=d&&null!=h)return c+" "+d+" "+h+" "+f})(n);if(null!=m&&null==r.textShadow){var v=n.textShadow,g=v?v+", "+m:m;r.textShadow=g}}for(var y in n)if(null==h[y]&&"shadowColor"!==y&&"shadowOffset"!==y&&"shadowOpacity"!==y&&"shadowRadius"!==y&&"textShadowColor"!==y&&"textShadowOffset"!==y&&"textShadowRadius"!==y){var b=n[y],_=d[y]||y,w=b;!Object.prototype.hasOwnProperty.call(n,y)||_!==y&&null!=n[_]||("aspectRatio"===_&&"number"==typeof w?r[_]=w.toString():"fontVariant"===_?(Array.isArray(w)&&w.length>0&&(w=w.join(" ")),r[_]=w):"textAlignVertical"===_?null==n.verticalAlign&&(r.verticalAlign="center"===w?"middle":w):"transform"===_?(Array.isArray(w)&&(w=c(w)),r.transform=w):r[_]=w)}return r}},6966:(e,t,n)=>{"use strict";let r=n(7793),i=n(145),o=n(3604),a=n(9577),s=n(3717),l=n(5644),u=n(3303),{isClean:c,my:d}=n(4151);n(6156);const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={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},p={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function v(e){let t=!1,n=h[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:v(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[c]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}let b={};class _{constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof _||t instanceof s)i=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=a;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[d]&&r.rebuild(i)}else i=y(t);this.result=new s(e,i,n),this.helpers={...b,postcss:b,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 new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}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],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[c];){e[c]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(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));return m(t[0])?Promise.all(t):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=u;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[c];)e[c]=!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[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[c])return r[c]=!0,void e.push(g(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[c]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[c]=!0;let t=v(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[c]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,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"}}_.registerPostcss=e=>{b=e},e.exports=_,_.default=_,l.registerLazyResult(_),i.registerLazyResult(_)},7033:(e,t,n)=>{"use strict";t.A=function(e,t){if("string"==typeof t&&!(0,r.isPrefixedValue)(t)&&-1!==t.indexOf("filter("))return o.map(function(e){return t.replace(i,e+"filter(")})};var r=n(5486),i=/filter\(/g,o=["-webkit-",""]},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},7162:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,f=3,p=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(v=!1,_(e),!m)if(null!==r(u))m=!0,N(S);else{var t=r(c);null!==t&&L(w,t.startTime-e)}}function S(e,n){m=!1,v&&(v=!1,y(k),k=-1),p=!0;var o=f;try{for(_(n),h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!T());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===r(u)&&i(u),_(n)}else i(u);h=r(u)}if(null!==h)var l=!0;else{var d=r(c);null!==d&&L(w,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,E=!1,x=null,k=-1,A=5,R=-1;function T(){return!(t.unstable_now()-R<A)}function P(){if(null!==x){var e=t.unstable_now();R=e;var n=!0;try{n=x(!0,e)}finally{n?C():(E=!1,x=null)}}else E=!1}if("function"==typeof b)C=function(){b(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,I=O.port2;O.port1.onmessage=P,C=function(){I.postMessage(null)}}else C=function(){g(P,0)};function N(e){x=e,E||(E=!0,C())}function L(e,n){k=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(v?(y(k),k=-1):v=!0,L(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,N(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7538:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(4500),o=r(n(6041)),a=r(n(6698)),s=r(n(6659)),l=r(n(5316)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},7608:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(5482),o=r(i),a=r(n(5493)),s=r(n(2473)),l=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,u=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,c=function(e){return function(t){return e(t)?"<token>":null}},d=function(e,t){return void 0===t&&(t=String),function(n){if("word"!==n.type)return null;var r=n.value.match(e);return null===r?null:t(r[1])}},h=c(function(e){return"space"===e.type}),f=c(function(e){return"div"===e.type&&"/"===e.value}),p=c(function(e){return"div"===e.type&&","===e.value}),m=function(e){return"word"===e.type?e.value:null},v=d(/^(none)$/i),g=d(/^(auto)$/i),y=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,Number),b=d(/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,Number),_=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i),w=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,function(e){return e.toLowerCase()}),S=d(/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i),C=d(/(^-?[_a-z][_a-z0-9-]*$)/i),E=function(e){return"string"!==e.type?null:e.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}).replace(/\\/g,"")},x=function(e){return"word"===e.type&&(l.test(e.value)||e.value in s||"transparent"===e.value)?e.value:"function"===e.type&&u.test(e.value)?i.stringify(e):null},k=d(/^(none|underline|line-through)$/i),A=d(/^(solid|dashed|dotted)$/),R=function(e){var t=e.types,n=void 0===t?[b,_,S]:t,r=e.directions,i=void 0===r?["Top","Right","Bottom","Left"]:r,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;return function(e){var t,r=[];for(r.push(e.expect.apply(e,n));r.length<4&&e.hasTokens();)e.expect(h),r.push(e.expect.apply(e,n));e.expectEmpty();var o=r[0],s=r[1],u=void 0===s?o:s,c=r[2],d=void 0===c?o:c,f=r[3],p=void 0===f?u:f,m=function(e){return""+a+i[e]+l};return(t={})[m(0)]=o,t[m(1)]=u,t[m(2)]=d,t[m(3)]=p,t}},T=function(e){var t=e.expect(b),n=e.matches(h)?e.expect(b):t;return e.expectEmpty(),{width:t,height:n}},P=function(e){var t,n,r,i;if(e.matches(v))return e.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};for(var o=!1;e.hasTokens();)o&&e.expect(h),void 0===t&&e.matches(b,_)?(t=e.lastValue,e.expect(h),n=e.expect(b,_),e.saveRewindPoint(),e.matches(h)&&e.matches(b,_)?r=e.lastValue:e.rewind()):void 0===i&&e.matches(x)?i=e.lastValue:e.throw(),o=!0;return void 0===t&&e.throw(),{offset:{width:t,height:n},radius:void 0!==r?r:0,color:void 0!==i?i:"black"}},O=d(/(nowrap|wrap|wrap-reverse)/),I=d(/(row|row-reverse|column|column-reverse)/),N=function(e){var t;if(e.matches(E))t=e.lastValue;else for(t=e.expect(C);e.hasTokens();)e.expect(h),t+=" "+e.expect(C);return e.expectEmpty(),{fontFamily:t}},L=d(/^(normal)$/),M=d(/^(italic)$/),D=d(/^([1-9]00|bold)$/),F=d(/^(small-caps)$/),j=[],z=d(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),V=d(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),B=d(/^(solid|double|dotted|dashed)$/),H=function(e){return function(t){var n=t.expect(e);return t.expectEmpty(),n}},W=H(y),U=H(b),Y=H(w),q=function(e){return function(t,n){return function(r){var i,o,a,s=r.expect(e);if(r.hasTokens())r.expect(p),a=r.expect(e);else{if(void 0===n)return s;a=n}return r.expectEmpty(),[(i={},i[t+"Y"]=a,i),(o={},o[t+"X"]=s,o)]}}},K=q(y),$=q(b),G=q(w),X={perspective:W,scale:K("scale"),scaleX:W,scaleY:W,translate:$("translate",0),translateX:U,translateY:U,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,skewX:Y,skewY:Y,skew:G("skew","0deg")},Q=R({types:[x],prefix:"border",suffix:"Color"}),J=R({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),Z=R({prefix:"border",suffix:"Width"}),ee=R({types:[b,_,S,g],prefix:"margin"}),te=R({prefix:"padding"}),ne={aspectRatio:function(e){var t=e.expect(y);return e.hasTokens()&&(e.expect(f),t/=e.expect(y)),{aspectRatio:t}},background:function(e){return{backgroundColor:e.expect(x)}},border:function(e){var t,n,r;if(e.matches(v))return e.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};for(var i=0;i<3&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(b,_)?t=e.lastValue:void 0===n&&e.matches(x)?n=e.lastValue:void 0===r&&e.matches(A)?r=e.lastValue:e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n="black"),void 0===r&&(r="solid"),{borderWidth:t,borderColor:n,borderStyle:r}},borderColor:Q,borderRadius:J,borderWidth:Z,boxShadow:function(e){var t=P(e);return{shadowOffset:t.offset,shadowRadius:t.radius,shadowColor:t.color,shadowOpacity:1}},flex:function(e){var t,n,r;if(e.matches(v))return e.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(e.saveRewindPoint(),e.matches(g)&&!e.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};e.rewind();for(var i=0;i<2&&e.hasTokens();)0!==i&&e.expect(h),void 0===t&&e.matches(y)?(t=e.lastValue,e.saveRewindPoint(),e.matches(h)&&e.matches(y)?n=e.lastValue:e.rewind()):void 0===r&&e.matches(b,_,S)?r=e.lastValue:void 0===r&&e.matches(g)?r="auto":e.throw(),i+=1;return e.expectEmpty(),void 0===t&&(t=1),void 0===n&&(n=1),void 0===r&&(r=0),{flexGrow:t,flexShrink:n,flexBasis:r}},flexFlow:function(e){for(var t,n,r=0;r<2&&e.hasTokens();)0!==r&&e.expect(h),void 0===t&&e.matches(O)?t=e.lastValue:void 0===n&&e.matches(I)?n=e.lastValue:e.throw(),r+=1;return e.expectEmpty(),void 0===t&&(t="nowrap"),void 0===n&&(n="row"),{flexWrap:t,flexDirection:n}},font:function(e){for(var t,n,r,i,o=0;o<3&&e.hasTokens();){if(e.matches(L));else if(void 0===t&&e.matches(M))t=e.lastValue;else if(void 0===n&&e.matches(D))n=e.lastValue;else{if(void 0!==r||!e.matches(F))break;r=[e.lastValue]}e.expect(h),o+=1}var a=e.expect(b,_);e.matches(f)&&(i=e.expect(b,_)),e.expect(h);var s=N(e).fontFamily;void 0===t&&(t="normal"),void 0===n&&(n="normal"),void 0===r&&(r=j);var l={fontStyle:t,fontWeight:n,fontVariant:r,fontSize:a,fontFamily:s};return void 0!==i&&(l.lineHeight=i),l},fontFamily:N,fontVariant:function(e){for(var t=[e.expect(C)];e.hasTokens();)e.expect(h),t.push(e.expect(C));return{fontVariant:t}},fontWeight:function(e){return{fontWeight:e.expect(m)}},margin:ee,padding:te,placeContent:function(e){var t,n=e.expect(z);return e.hasTokens()?(e.expect(h),t=e.expect(V)):t="stretch",e.expectEmpty(),{alignContent:n,justifyContent:t}},shadowOffset:function(e){return{shadowOffset:T(e)}},textShadow:function(e){var t=P(e);return{textShadowOffset:t.offset,textShadowRadius:t.radius,textShadowColor:t.color}},textShadowOffset:function(e){return{textShadowOffset:T(e)}},textDecoration:function(e){for(var t,n,r,i=!1;e.hasTokens();){if(i&&e.expect(h),void 0===t&&e.matches(k)){var o=[e.lastValue.toLowerCase()];e.saveRewindPoint(),"none"!==o[0]&&e.matches(h)&&e.matches(k)?(o.push(e.lastValue.toLowerCase()),o.sort().reverse()):e.rewind(),t=o.join(" ")}else void 0===n&&e.matches(B)?n=e.lastValue:void 0===r&&e.matches(x)?r=e.lastValue:e.throw();i=!0}return{textDecorationLine:void 0!==t?t:"none",textDecorationColor:void 0!==r?r:"black",textDecorationStyle:void 0!==n?n:"solid"}},textDecorationLine:function(e){for(var t=[],n=!1;e.hasTokens();)n&&e.expect(h),t.push(e.expect(k).toLowerCase()),n=!0;return t.sort().reverse(),{textDecorationLine:t.join(" ")}},transform:function(e){for(var t=[],n=!1;e.hasTokens();){n&&e.expect(h);var r,i=e.expectFunction(),o=i.functionName,a=X[o](i);Array.isArray(a)||(a=[(r={},r[o]=a,r)]),t=a.concat(t),n=!0}return{transform:t}}},re="SYMBOL_MATCH",ie=function(){function e(e,t){this.index=0,this.nodes=e,this.functionName=null!=t?t.value:null,this.lastValue=null,this.rewindIndex=-1}var t=e.prototype;return t.hasTokens=function(){return this.index<=this.nodes.length-1},t[re]=function(){if(!this.hasTokens())return null;for(var e=this.nodes[this.index],t=0;t<arguments.length;t+=1){var n=(t<0||arguments.length<=t?void 0:arguments[t])(e);if(null!==n)return this.index+=1,this.lastValue=n,n}return null},t.matches=function(){return null!==this[re].apply(this,arguments)},t.expect=function(){var e=this[re].apply(this,arguments);return null!==e?e:this.throw()},t.matchesFunction=function(){var t=this.nodes[this.index];if("function"!==t.type)return null;var n=new e(t.nodes,t);return this.index+=1,this.lastValue=null,n},t.expectFunction=function(){var e=this.matchesFunction();return null!==e?e:this.throw()},t.expectEmpty=function(){this.hasTokens()&&this.throw()},t.throw=function(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},t.saveRewindPoint=function(){this.rewindIndex=this.index},t.rewind=function(){if(-1===this.rewindIndex)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},e}(),oe=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ae=/^true|false$/i,se=/^null$/i,le=/^undefined$/i,ue=function(e,t,n){var r,i=!1===n||!(e in ne),a=t.trim();return i?((r={})[e]=function(e,t){var n=t.match(oe);if(null!==n)return Number(n[1]);var r=t.match(ae);return null!==r?"true"===r[0].toLowerCase():null!==t.match(se)?null:null===t.match(le)?t:void 0}(0,a),r):function(e,t){var n=o(t),r=new ie(n.nodes);return ne[e](r)}(e,a)};t.Ay=function(e,t){return void 0===t&&(t=[]),e.reduce(function(e,n){var r,i=(r=n[0],/^--\w+/.test(r)?r:a(r)),o=n[1],s=-1===t.indexOf(i);return Object.assign(e,ue(i,o,s))},{})}},7631:(e,t,n)=>{"use strict";var r=n(1042);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach(function(r){t[r]=e(t[r],n)}),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach(function(r,i){t[i]=e(r,n)}),t}(t,n):r.is(t,n)?r.parse(t):t}},7668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="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 r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],void 0!==i))return i;let o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[r];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[r])return a.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[t]?i=this[t](a,e):a.walk(e=>{if(i=e.raws[n],void 0!==i)return!1})}var s;return void 0===i&&(i=t[r]),a.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,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.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&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},7697:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(6698)),o=n(4500);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},7718:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(9839);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},7793:(e,t,n)=>{"use strict";let r,i,o,a,s=n(9371),l=n(5238),u=n(3152),{isClean:c,my:d}=n(4151);function h(e){return e.map(e=>(e.nodes&&(e.nodes=h(e.nodes)),delete e.source,e))}function f(e){if(e[c]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class p extends u{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}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)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"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 n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=h(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new a(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new s(e)]}return e.map(e=>(e[d]||p.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[c]&&f(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){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;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}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]}}p.registerParse=e=>{i=e},p.registerRule=e=>{a=e},p.registerAtRule=e=>{r=e},p.registerRoot=e=>{o=e},e.exports=p,p.default=p,p.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,a.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,s.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[d]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}},7862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={OS:"web",select:e=>"web"in e?e.web:e.default,get isTesting(){return!1}}},7918:(e,t,n)=>{"use strict";var r=n(8907).Y,i="undefined"!=typeof window?window.matchMedia:null;function o(e,t,n){var o,a=this;function s(e){a.matches=e.matches,a.media=e.media}i&&!n&&(o=i.call(window,e)),o?(this.matches=o.matches,this.media=o.media,o.addListener(s)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){o&&o.addListener(e)},this.removeListener=function(e){o&&o.removeListener(e)},this.dispose=function(){o&&o.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},7947:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},7971:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}},7977:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(1635),i=n(9952),o=n(4568),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},8041:(e,t)=>{"use strict";t.A=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0}},8167:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var r="1.81.1"},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8285:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r={adjustable:"slider",button:"button",header:"heading",image:"img",imagebutton:null,keyboardkey:null,label:null,link:"link",none:"presentation",search:"search",summary:"region",text:null};const i=e=>{var t=e.accessibilityRole,n=e.role||t;if(n){var i=r[n];if(null!==i)return i||n}};var o={article:"article",banner:"header",blockquote:"blockquote",button:"button",code:"code",complementary:"aside",contentinfo:"footer",deletion:"del",emphasis:"em",figure:"figure",insertion:"ins",form:"form",list:"ul",listitem:"li",main:"main",navigation:"nav",paragraph:"p",region:"section",strong:"strong"},a={};const s={isDisabled:e=>e.disabled||Array.isArray(e.accessibilityStates)&&e.accessibilityStates.indexOf("disabled")>-1,propsToAccessibilityComponent:function(e){if(void 0===e&&(e=a),"label"===(e.role||e.accessibilityRole))return"label";var t=i(e);if(t){if("heading"===t){var n=e.accessibilityLevel||e["aria-level"];return null!=n?"h"+n:"h1"}return o[t]}},propsToAriaRole:i}},8339:(e,t,n)=>{"use strict";let r=n(396),i=n(9371),o=n(5238),a=n(5644),s=n(1534),l=n(5781);const u={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,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,n,i,o=new r;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let a=!1,s=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),a&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,a]of e.entries()){if(n=a,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(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(),":"===r[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 a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==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(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(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 s;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,n=null,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[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,n,r){let i,o,a,s,l=n.length,c="",d=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(s=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",u[s]||u[a]||","===c.slice(-1)?d=!1:c+=i[1]):c+=i[1]:d=!1;if(!d){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}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})}}},8425:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);const i=n(7162).A?r.useLayoutEffect:r.useEffect},8449:e=>{e.exports=function e(t,n,r){var i,o,a,s;for(i=0,o=t.length;i<o;i+=1)a=t[i],r||(s=n(a,i,t)),!1!==s&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,n,r),r&&n(a,i,t)}},8506:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(2555),i=n(8587),o=n(6540),a=n(3642),s=n(8697),l=n(254),u=n(2008),c=n(1804),d=n(6177),h=n(3098),f=n(8997),p=n(5243),m=n(1420),v=["hrefAttrs","numberOfLines","onClick","onLayout","onPress","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","selectable"],g=Object.assign({},s.Gs,s.Fh,s.DY,s.l3,s.Aw,s.k2,s.CD,s.eO,{href:!0,lang:!0,pointerEvents:!0}),y=o.forwardRef((e,t)=>{var n=e.hrefAttrs,r=e.numberOfLines,s=e.onClick,f=e.onLayout,y=e.onPress,b=e.onMoveShouldSetResponder,w=e.onMoveShouldSetResponderCapture,S=e.onResponderEnd,C=e.onResponderGrant,E=e.onResponderMove,x=e.onResponderReject,k=e.onResponderRelease,A=e.onResponderStart,R=e.onResponderTerminate,T=e.onResponderTerminationRequest,P=e.onScrollShouldSetResponder,O=e.onScrollShouldSetResponderCapture,I=e.onSelectionChangeShouldSetResponder,N=e.onSelectionChangeShouldSetResponderCapture,L=e.onStartShouldSetResponder,M=e.onStartShouldSetResponderCapture,D=e.selectable,F=(0,i.A)(e,v),j=o.useContext(p.A),z=o.useRef(null),V=(0,m.PZ)().direction;(0,u.A)(z,f),(0,h.A)(z,{onMoveShouldSetResponder:b,onMoveShouldSetResponderCapture:w,onResponderEnd:S,onResponderGrant:C,onResponderMove:E,onResponderReject:x,onResponderRelease:k,onResponderStart:A,onResponderTerminate:R,onResponderTerminationRequest:T,onScrollShouldSetResponder:P,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:N,onStartShouldSetResponder:L,onStartShouldSetResponderCapture:M});var B=o.useCallback(e=>{null!=s?s(e):null!=y&&(e.stopPropagation(),y(e))},[s,y]),H=j?"span":"div",W=null!=e.lang?(0,m.il)(e.lang):null,U=e.dir||W,Y=U||V,q=(e=>(0,l.A)(e,g))(F);if(q.dir=U,j||(q.dir=null!=U?U:"auto"),(s||y)&&(q.onClick=B),q.style=[null!=r&&r>1&&{WebkitLineClamp:r},!0===j?_.textHasAncestor$raw:_.text$raw,1===r&&_.textOneLine,null!=r&&r>1&&_.textMultiLine,e.style,!0===D&&_.selectable,!1===D&&_.notSelectable,y&&_.pressable],null!=e.href&&(H="a",null!=n)){var K=n.download,$=n.rel,G=n.target;null!=K&&(q.download=K),null!=$&&(q.rel=$),"string"==typeof G&&(q.target="_"!==G.charAt(0)?"_"+G:G)}var X=(0,d.A)(q),Q=(0,c.A)(z,X,t);q.ref=Q;var J=(0,a.A)(H,q,{writingDirection:Y});return j?J:o.createElement(p.A.Provider,{value:!0},J)});y.displayName="Text";var b={backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",color:"black",display:"inline",font:"14px System",listStyle:"none",margin:0,padding:0,position:"relative",textAlign:"start",textDecoration:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},_=f.A.create({text$raw:b,textHasAncestor$raw:(0,r.A)((0,r.A)({},b),{},{color:"inherit",font:"inherit",textAlign:"inherit",whiteSpace:"inherit"}),textOneLine:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},textMultiLine:{display:"-webkit-box",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",WebkitBoxOrient:"vertical"},notSelectable:{userSelect:"none"},selectable:{userSelect:"text"},pressable:{cursor:"pointer"}});const w=y},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8633:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},8683:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(1968),i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},o=["ms","Moz","O","Webkit"];Object.keys(i).forEach(e=>{o.forEach(t=>{i[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(t,e)]=i[e]})});const a=i,s=function(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||a.hasOwnProperty(e)&&a[e]?(""+t).trim():t+"px"},l=function(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--"),o=s(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}};var u=e=>{var t=e.offsetHeight,n=e.offsetWidth,r=e.offsetLeft,i=e.offsetTop;for(e=e.offsetParent;e&&1===e.nodeType;)r+=e.offsetLeft+e.clientLeft-e.scrollLeft,i+=e.offsetTop+e.clientTop-e.scrollTop,e=e.offsetParent;return{width:n,height:t,top:i-=window.scrollY,left:r-=window.scrollX}},c=(e,t,n)=>{var r=t||e&&e.parentNode;e&&r&&setTimeout(()=>{if(e.isConnected&&r.isConnected){var t=u(r),i=u(e),o=i.height,a=i.left,s=i.top,l=i.width,c=a-t.left,d=s-t.top;n(c,d,l,o,a,s)}},0)},d={A:!0,BODY:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};const h={blur(e){try{e.blur()}catch(e){}},focus(e){try{var t=e.nodeName;null==e.getAttribute("tabIndex")&&!0!==e.isContentEditable&&null==d[t]&&e.setAttribute("tabIndex","-1"),e.focus()}catch(e){}},measure(e,t){c(e,null,t)},measureInWindow(e,t){e&&setTimeout(()=>{var n=(0,r.A)(e),i=n.height,o=n.left,a=n.top,s=n.width;t(o,a,s,i)},0)},measureLayout(e,t,n,r){c(e,t,r)},updateView(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];switch(n){case"style":l(e,r);break;case"class":case"className":e.setAttribute("class",r);break;case"text":case"value":e.value=r;break;default:e.setAttribute(n,r)}}},configureNextLayoutAnimation(e,t){t()},setLayoutAnimationEnabledExperimental(){}}},8697:(e,t,n)=>{"use strict";n.d(t,{Aw:()=>s,CD:()=>u,DY:()=>o,Fh:()=>i,Gs:()=>r,eO:()=>c,k2:()=>l,l3:()=>a});var r={children:!0,dataSet:!0,dir:!0,id:!0,ref:!0,suppressHydrationWarning:!0,tabIndex:!0,testID:!0,focusable:!0,nativeID:!0},i={"aria-activedescendant":!0,"aria-atomic":!0,"aria-autocomplete":!0,"aria-busy":!0,"aria-checked":!0,"aria-colcount":!0,"aria-colindex":!0,"aria-colspan":!0,"aria-controls":!0,"aria-current":!0,"aria-describedby":!0,"aria-details":!0,"aria-disabled":!0,"aria-errormessage":!0,"aria-expanded":!0,"aria-flowto":!0,"aria-haspopup":!0,"aria-hidden":!0,"aria-invalid":!0,"aria-keyshortcuts":!0,"aria-label":!0,"aria-labelledby":!0,"aria-level":!0,"aria-live":!0,"aria-modal":!0,"aria-multiline":!0,"aria-multiselectable":!0,"aria-orientation":!0,"aria-owns":!0,"aria-placeholder":!0,"aria-posinset":!0,"aria-pressed":!0,"aria-readonly":!0,"aria-required":!0,role:!0,"aria-roledescription":!0,"aria-rowcount":!0,"aria-rowindex":!0,"aria-rowspan":!0,"aria-selected":!0,"aria-setsize":!0,"aria-sort":!0,"aria-valuemax":!0,"aria-valuemin":!0,"aria-valuenow":!0,"aria-valuetext":!0,accessibilityActiveDescendant:!0,accessibilityAtomic:!0,accessibilityAutoComplete:!0,accessibilityBusy:!0,accessibilityChecked:!0,accessibilityColumnCount:!0,accessibilityColumnIndex:!0,accessibilityColumnSpan:!0,accessibilityControls:!0,accessibilityCurrent:!0,accessibilityDescribedBy:!0,accessibilityDetails:!0,accessibilityDisabled:!0,accessibilityErrorMessage:!0,accessibilityExpanded:!0,accessibilityFlowTo:!0,accessibilityHasPopup:!0,accessibilityHidden:!0,accessibilityInvalid:!0,accessibilityKeyShortcuts:!0,accessibilityLabel:!0,accessibilityLabelledBy:!0,accessibilityLevel:!0,accessibilityLiveRegion:!0,accessibilityModal:!0,accessibilityMultiline:!0,accessibilityMultiSelectable:!0,accessibilityOrientation:!0,accessibilityOwns:!0,accessibilityPlaceholder:!0,accessibilityPosInSet:!0,accessibilityPressed:!0,accessibilityReadOnly:!0,accessibilityRequired:!0,accessibilityRole:!0,accessibilityRoleDescription:!0,accessibilityRowCount:!0,accessibilityRowIndex:!0,accessibilityRowSpan:!0,accessibilitySelected:!0,accessibilitySetSize:!0,accessibilitySort:!0,accessibilityValueMax:!0,accessibilityValueMin:!0,accessibilityValueNow:!0,accessibilityValueText:!0},o={onClick:!0,onAuxClick:!0,onContextMenu:!0,onGotPointerCapture:!0,onLostPointerCapture:!0,onPointerCancel:!0,onPointerDown:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOut:!0,onPointerOver:!0,onPointerUp:!0},a={onBlur:!0,onFocus:!0},s={onKeyDown:!0,onKeyDownCapture:!0,onKeyUp:!0,onKeyUpCapture:!0},l={onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOver:!0,onMouseOut:!0,onMouseUp:!0},u={onTouchCancel:!0,onTouchCancelCapture:!0,onTouchEnd:!0,onTouchEndCapture:!0,onTouchMove:!0,onTouchMoveCapture:!0,onTouchStart:!0,onTouchStartCapture:!0},c={style:!0}},8809:e=>{var t="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),s=",".charCodeAt(0),l=":".charCodeAt(0),u="*".charCodeAt(0),c="u".charCodeAt(0),d="U".charCodeAt(0),h="+".charCodeAt(0),f=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var p,m,v,g,y,b,_,w,S,C=[],E=e,x=0,k=E.charCodeAt(x),A=E.length,R=[{nodes:C}],T=0,P="",O="",I="";x<A;)if(k<=32){p=x;do{p+=1,k=E.charCodeAt(p)}while(k<=32);g=E.slice(x,p),v=C[C.length-1],k===n&&T?I=g:v&&"div"===v.type?(v.after=g,v.sourceEndIndex+=g.length):k===s||k===l||k===a&&E.charCodeAt(p+1)!==u&&(!S||S&&"function"===S.type&&"calc"!==S.value)?O=g:C.push({type:"space",sourceIndex:x,sourceEndIndex:p,value:g}),x=p}else if(k===r||k===i){p=x,g={type:"string",sourceIndex:x,quote:m=k===r?"'":'"'};do{if(y=!1,~(p=E.indexOf(m,p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=m).length-1,g.unclosed=!0}while(y);g.value=E.slice(x+1,p),g.sourceEndIndex=g.unclosed?p:p+1,C.push(g),x=p+1,k=E.charCodeAt(x)}else if(k===a&&E.charCodeAt(x+1)===u)g={type:"comment",sourceIndex:x,sourceEndIndex:(p=E.indexOf("*/",x))+2},-1===p&&(g.unclosed=!0,p=E.length,g.sourceEndIndex=p),g.value=E.slice(x+2,p),C.push(g),x=p+2,k=E.charCodeAt(x);else if(k!==a&&k!==u||!S||"function"!==S.type||"calc"!==S.value)if(k===a||k===s||k===l)g=E[x],C.push({type:"div",sourceIndex:x-O.length,sourceEndIndex:x+g.length,value:g,before:O,after:""}),O="",x+=1,k=E.charCodeAt(x);else if(t===k){p=x;do{p+=1,k=E.charCodeAt(p)}while(k<=32);if(w=x,g={type:"function",sourceIndex:x-P.length,value:P,before:E.slice(w+1,p)},x=p,"url"===P&&k!==r&&k!==i){p-=1;do{if(y=!1,~(p=E.indexOf(")",p+1)))for(b=p;E.charCodeAt(b-1)===o;)b-=1,y=!y;else p=(E+=")").length-1,g.unclosed=!0}while(y);_=p;do{_-=1,k=E.charCodeAt(_)}while(k<=32);w<_?(g.nodes=x!==_+1?[{type:"word",sourceIndex:x,sourceEndIndex:_+1,value:E.slice(x,_+1)}]:[],g.unclosed&&_+1!==p?(g.after="",g.nodes.push({type:"space",sourceIndex:_+1,sourceEndIndex:p,value:E.slice(_+1,p)})):(g.after=E.slice(_+1,p),g.sourceEndIndex=p)):(g.after="",g.nodes=[]),x=p+1,g.sourceEndIndex=g.unclosed?p:x,k=E.charCodeAt(x),C.push(g)}else T+=1,g.after="",g.sourceEndIndex=x+1,C.push(g),R.push(g),C=g.nodes=[],S=g;P=""}else if(n===k&&T)x+=1,k=E.charCodeAt(x),S.after=I,S.sourceEndIndex+=I.length,I="",T-=1,R[R.length-1].sourceEndIndex=x,R.pop(),C=(S=R[T]).nodes;else{p=x;do{k===o&&(p+=1),p+=1,k=E.charCodeAt(p)}while(p<A&&!(k<=32||k===r||k===i||k===s||k===l||k===a||k===t||k===u&&S&&"function"===S.type&&"calc"===S.value||k===a&&"function"===S.type&&"calc"===S.value||k===n&&T));g=E.slice(x,p),t===k?P=g:c!==g.charCodeAt(0)&&d!==g.charCodeAt(0)||h!==g.charCodeAt(1)||!f.test(g.slice(2))?C.push({type:"word",sourceIndex:x,sourceEndIndex:p,value:g}):C.push({type:"unicode-range",sourceIndex:x,sourceEndIndex:p,value:g}),x=p}else g=E[x],C.push({type:"word",sourceIndex:x-O.length,sourceEndIndex:x+g.length,value:g}),x+=1,k=E.charCodeAt(x);for(x=R.length-1;x;x-=1)R[x].unclosed=!0,R[x].sourceEndIndex=E.length;return R[0].nodes}},8822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},8865:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8683);const i={_currentlyFocusedNode:null,currentlyFocusedField(){return document.activeElement!==this._currentlyFocusedNode&&(this._currentlyFocusedNode=null),this._currentlyFocusedNode},focusTextInput(e){null!==e&&(this._currentlyFocusedNode=e,document.activeElement!==e&&r.A.focus(e))},blurTextInput(e){null!==e&&(this._currentlyFocusedNode=null,document.activeElement===e&&r.A.blur(e))}}},8907:(e,t)=>{"use strict";t.Y=function(e,t){return function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map(function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}}),l})}(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every(function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),o=u(o);break;case"resolution":i=l(i),o=l(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),o=s(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}});return i&&!n||!i&&n})};var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function l(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},8997:(e,t,n)=>{"use strict";n.d(t,{A:()=>me});var r=n(2555),i=n(8587),o=n(1747),a=n(7162),s={},l=!a.A||null!=window.CSS&&null!=window.CSS.supports&&(window.CSS.supports("text-decoration-line","none")||window.CSS.supports("-webkit-text-decoration-line","none")),u='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif',c={borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderBlockColor:["borderTopColor","borderBottomColor"],borderInlineColor:["borderRightColor","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderStyle:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderInlineStyle:["borderRightStyle","borderLeftStyle"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderInlineWidth:["borderRightWidth","borderLeftWidth"],insetBlock:["top","bottom"],insetInline:["left","right"],marginBlock:["marginTop","marginBottom"],marginInline:["marginRight","marginLeft"],paddingBlock:["paddingTop","paddingBottom"],paddingInline:["paddingRight","paddingLeft"],overflow:["overflowX","overflowY"],overscrollBehavior:["overscrollBehaviorX","overscrollBehaviorY"],borderBlockStartColor:["borderTopColor"],borderBlockStartStyle:["borderTopStyle"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndColor:["borderBottomColor"],borderBlockEndStyle:["borderBottomStyle"],borderBlockEndWidth:["borderBottomWidth"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],insetBlockEnd:["bottom"],insetBlockStart:["top"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"]};const d=(e,t)=>{if(!e)return s;var n={},r=function(){var r=e[i];if(null==r)return"continue";if("backgroundClip"===i)"text"===r&&(n.backgroundClip=r,n.WebkitBackgroundClip=r);else if("flex"===i)-1===r?(n.flexGrow=0,n.flexShrink=1,n.flexBasis="auto"):n.flex=r;else if("font"===i)n[i]=r.replace("System",u);else if("fontFamily"===i)if(r.indexOf("System")>-1){var a=r.split(/,\s*/);a[a.indexOf("System")]=u,n[i]=a.join(",")}else n[i]="monospace"===r?"monospace,monospace":r;else if("textDecorationLine"===i)l?n.textDecorationLine=r:n.textDecoration=r;else if("writingDirection"===i)n.direction=r;else{var s=(0,o.A)(e[i],i),d=c[i];t&&"inset"===i?(null==e.insetInline&&(n.left=s,n.right=s),null==e.insetBlock&&(n.top=s,n.bottom=s)):t&&"margin"===i?(null==e.marginInline&&(n.marginLeft=s,n.marginRight=s),null==e.marginBlock&&(n.marginTop=s,n.marginBottom=s)):t&&"padding"===i?(null==e.paddingInline&&(n.paddingLeft=s,n.paddingRight=s),null==e.paddingBlock&&(n.paddingTop=s,n.paddingBottom=s)):d?d.forEach((t,r)=>{null==e[t]&&(n[t]=s)}):n[i]=s}};for(var i in e)r();return n};var h=/[A-Z]/g,f=/^ms-/,p={};function m(e){return"-"+e.toLowerCase()}var v=n(6485),g=n(4217),y=n(1261),b=n(8041),_=n(7033),w=n(6852),S=n(20),C=n(9996),E=n(5129),x=n(508),k=["Webkit"],A=["Webkit","ms"];const R={plugins:[g.A,y.A,b.A,_.A,w.A,S.A,C.A,E.A,x.A],prefixMap:{appearance:["Webkit","Moz","ms"],userSelect:["Webkit","Moz"],textEmphasisPosition:A,textEmphasis:A,textEmphasisStyle:A,textEmphasisColor:A,boxDecorationBreak:A,clipPath:k,maskImage:A,maskMode:A,maskRepeat:A,maskPosition:A,maskClip:A,maskOrigin:A,maskSize:A,maskComposite:A,mask:A,maskBorderSource:A,maskBorderMode:A,maskBorderSlice:A,maskBorderWidth:A,maskBorderOutset:A,maskBorderRepeat:A,maskBorder:A,maskType:A,textDecorationStyle:k,textDecorationSkip:k,textDecorationLine:k,textDecorationColor:k,filter:k,breakAfter:k,breakBefore:k,breakInside:k,columnCount:k,columnFill:k,columnGap:k,columnRule:k,columnRuleColor:k,columnRuleStyle:k,columnRuleWidth:k,columns:k,columnSpan:k,columnWidth:k,backdropFilter:k,hyphens:k,flowInto:k,flowFrom:k,regionFragment:k,textOrientation:k,tabSize:["Moz"],fontKerning:k,textSizeAdjust:k}},T=(0,v.A)(R);var P=["animationKeyframes"],O=new Map,I={},N={borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,inset:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,insetBlock:2.1,insetInline:2.1,marginInline:2.1,marginBlock:2.1,paddingInline:2.1,paddingBlock:2.1,borderBlockStartColor:2.2,borderBlockStartStyle:2.2,borderBlockStartWidth:2.2,borderBlockEndColor:2.2,borderBlockEndStyle:2.2,borderBlockEndWidth:2.2,borderInlineStartColor:2.2,borderInlineStartStyle:2.2,borderInlineStartWidth:2.2,borderInlineEndColor:2.2,borderInlineEndStyle:2.2,borderInlineEndWidth:2.2,borderEndStartRadius:2.2,borderEndEndRadius:2.2,borderStartStartRadius:2.2,borderStartEndRadius:2.2,insetBlockEnd:2.2,insetBlockStart:2.2,insetInlineEnd:2.2,insetInlineStart:2.2,marginBlockStart:2.2,marginBlockEnd:2.2,marginInlineStart:2.2,marginInlineEnd:2.2,paddingBlockStart:2.2,paddingBlockEnd:2.2,paddingInlineStart:2.2,paddingInlineEnd:2.2},L="borderTopLeftRadius",M="borderTopRightRadius",D="borderBottomLeftRadius",F="borderBottomRightRadius",j="borderLeftColor",z="borderLeftStyle",V="borderLeftWidth",B="borderRightColor",H="borderRightStyle",W="borderRightWidth",U="right",Y="marginLeft",q="marginRight",K="paddingLeft",$="paddingRight",G="left",X={[L]:M,[M]:L,[D]:F,[F]:D,[j]:B,[z]:H,[V]:W,[B]:j,[H]:z,[W]:V,[G]:U,[Y]:q,[q]:Y,[K]:$,[$]:K,[U]:G},Q={borderStartStartRadius:L,borderStartEndRadius:M,borderEndStartRadius:D,borderEndEndRadius:F,borderInlineStartColor:j,borderInlineStartStyle:z,borderInlineStartWidth:V,borderInlineEndColor:B,borderInlineEndStyle:H,borderInlineEndWidth:W,insetInlineEnd:U,insetInlineStart:G,marginInlineStart:Y,marginInlineEnd:q,paddingInlineStart:K,paddingInlineEnd:$},J=["clear","float","textAlign"];function Z(e){var t=T(d(e));return"{"+Object.keys(t).map(e=>{var n=t[e],r=function(e){if(e in p)return p[e];var t=e.replace(h,m);return p[e]=f.test(t)?"-"+t:t}(e);return Array.isArray(n)?n.map(e=>r+":"+e).join(";"):r+":"+n}).sort().join(";")+";}"}function ee(e,t,n){return e+"-"+function(e){for(var t,n=e.length,r=1^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}(t+n).toString(36)}function te(e){if("number"==typeof e)throw new Error("Invalid CSS keyframes type: "+typeof e);var t=[],n=[];return(Array.isArray(e)?e:[e]).forEach(e=>{if("string"==typeof e)t.push(e);else{var r=function(e){var t=ee("r","animation",JSON.stringify(e)),n="{"+Object.keys(e).map(t=>""+t+Z(e[t])).join("")+"}",r=["-webkit-",""].map(e=>"@"+e+"keyframes "+t+n);return[t,r]}(e),i=r[0],o=r[1];t.push(i),n.push(...o)}}),[t,n]}var ne=n(3748),re=n(4336),ie=n(6927),oe=n(3176),ae=["writingDirection"],se=new WeakMap,le=(0,ne._)(),ue={shadow:!0,textShadow:!0};function ce(e){e.forEach(e=>{var t=e[0],n=e[1];null!=le&&t.forEach(e=>{le.insert(e,n)})})}var de={position:"absolute",left:0,right:0,top:0,bottom:0},he=fe({x:(0,r.A)({},de)}).x;function fe(e){return Object.keys(e).forEach(t=>{var n,a,s,l,u=e[t];null!=u&&!0!==u.$$css&&(t.indexOf("$raw")>-1?n=function(e,t){var n=function(e,t){var n,o={$$css:!0},a=[],s=e.animationKeyframes,l=(0,i.A)(e,P),u=ee("css",t,JSON.stringify(e)),c="."+u;if(null!=s){var d=te(s),h=d[0],f=d[1];n=h.join(","),a.push(...f)}var p=Z((0,r.A)((0,r.A)({},l),{},{animationName:n}));return a.push(""+c+p),o[u]=u,[o,[[a,1]]]}(e,t),o=n[0];return ce(n[1]),o}(u,t.split("$raw")[0]):(a=u,s=function(e){var t={$$css:!0},n=[];function r(e,t,r){var i,a=function(e,t){var n=(0,o.A)(e,t);return"string"!=typeof n?JSON.stringify(n||""):n}(r,t),s=t+a,l=O.get(s);if(null!=l)i=l[0],n.push(l[1]);else{i=ee("r",e,e!==t?s:a);var u=N[e]||3,c=function(e,t,n){var r=[],i="."+e;switch(t){case"animationKeyframes":var o=te(n),a=o[0],s=o[1],l=Z({animationName:a.join(",")});r.push(""+i+l,...s);break;case"placeholderTextColor":var u=Z({color:n,opacity:1});r.push(i+"::-webkit-input-placeholder"+u,i+"::-moz-placeholder"+u,i+":-ms-input-placeholder"+u,i+"::placeholder"+u);break;case"pointerEvents":var c=n;if("auto"===n||"box-only"===n){if(c="auto!important","box-only"===n){var d=Z({pointerEvents:"none"});r.push(i+">*"+d)}}else if(("none"===n||"box-none"===n)&&(c="none!important","box-none"===n)){var h=Z({pointerEvents:"auto"});r.push(i+">*"+h)}var f=Z({pointerEvents:c});r.push(""+i+f);break;case"scrollbarWidth":"none"===n&&r.push(i+"::-webkit-scrollbar{display:none}");var p=Z({scrollbarWidth:n});r.push(""+i+p);break;default:var m=Z({[t]:n});r.push(""+i+m)}return r}(i,t,r),d=[c,u];n.push(d),O.set(s,[i,d])}return i}return Object.keys(e).sort().forEach(n=>{var i=e[n];if(null!=i){var o;if(J.indexOf(n)>-1){var a=r(n,n,"left"),s=r(n,n,"right");"start"===i?o=[a,s]:"end"===i&&(o=[s,a])}var l=Q[n];if(null!=l){var u=r(n,l,i),c=r(n,X[l],i);o=[u,c]}if("transitionProperty"===n){for(var d=Array.isArray(i)?i:[i],h=[],f=0;f<d.length;f++){var p=d[f];"string"==typeof p&&null!=Q[p]&&h.push(f)}if(h.length>0){var m=[...d],v=[...d];h.forEach(e=>{var t=m[e];if("string"==typeof t){var i=Q[t],a=X[i];m[e]=i,v[e]=a;var s=r(n,n,m),l=r(n,n,v);o=[s,l]}})}}null==o?o=r(n,n,i):t.$$css$localize=!0,t[n]=o}}),[t,n]}((0,ie.vk)(a,ue)),l=s[0],ce(s[1]),n=l),se.set(u,n))}),e}function pe(e,t){void 0===t&&(t={});var n="rtl"===t.writingDirection,o=function(e,t){void 0===t&&(t={});var n=t,o=n.writingDirection,a=(0,i.A)(n,ae),s="rtl"===o;return oe.P.factory({transform(e){var t=se.get(e);return null!=t?(0,re.n)(t,s):(0,ie.vk)(e,(0,r.A)((0,r.A)({},ue),a))}})(e)}(e,t);return Array.isArray(o)&&null!=o[1]&&(o[1]=function(e,t){var n=e||I,r={},i={},o=function(){var e=n[a],o=a,s=e;if(!Object.prototype.hasOwnProperty.call(n,a)||null==e)return"continue";J.indexOf(a)>-1&&("start"===e?s=t?"right":"left":"end"===e&&(s=t?"left":"right"));var l=Q[a];if(null!=l&&(o=t?X[l]:l),"transitionProperty"===a){var u=Array.isArray(e)?e:[e];u.forEach((e,n)=>{if("string"==typeof e){var r=Q[e];null!=r&&(u[n]=t?X[r]:r,s=u.join(" "))}})}r[o]||(i[o]=s),o===a&&(r[o]=!0)};for(var a in n)o();return d(i,!0)}(o[1],n)),o}pe.absoluteFill=he,pe.absoluteFillObject=de,pe.create=fe,pe.compose=function(e,t){return[e,t]},pe.flatten=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.flat(1/0),i={},o=0;o<r.length;o++){var a=r[o];null!=a&&"object"==typeof a&&Object.assign(i,a)}return i},pe.getSheet=function(){return{id:le.id,textContent:le.getTextContent()}},pe.hairlineWidth=1,a.A&&window.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.resolveRNStyle=pe.flatten);const me=pe},9063:e=>{function t(e,t){var r,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(r=e.quote||"")+a+(e.unclosed?"":r):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(r=n(e.nodes,t),"function"!==o?r:a+"("+(e.before||"")+r+(e.after||"")+(e.unclosed?"":")")):a}function n(e,n){var r,i;if(Array.isArray(e)){for(r="",i=e.length-1;~i;i-=1)r=t(e[i],n)+r;return r}return t(e,n)}e.exports=n},9176:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(8587),i=n(6540),o=n(3642),a=n(8697),s=n(254),l=n(2008),u=n(1804),c=n(6177),d=n(3098),h=n(8997),f=n(5243),p=n(1420),m=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],v=Object.assign({},a.Gs,a.Fh,a.DY,a.l3,a.Aw,a.k2,a.CD,a.eO,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),g=i.forwardRef((e,t)=>{var n=e.hrefAttrs,a=e.onLayout,h=e.onMoveShouldSetResponder,g=e.onMoveShouldSetResponderCapture,b=e.onResponderEnd,_=e.onResponderGrant,w=e.onResponderMove,S=e.onResponderReject,C=e.onResponderRelease,E=e.onResponderStart,x=e.onResponderTerminate,k=e.onResponderTerminationRequest,A=e.onScrollShouldSetResponder,R=e.onScrollShouldSetResponderCapture,T=e.onSelectionChangeShouldSetResponder,P=e.onSelectionChangeShouldSetResponderCapture,O=e.onStartShouldSetResponder,I=e.onStartShouldSetResponderCapture,N=(0,r.A)(e,m),L=i.useContext(f.A),M=i.useRef(null),D=(0,p.PZ)().direction;(0,l.A)(M,a),(0,d.A)(M,{onMoveShouldSetResponder:h,onMoveShouldSetResponderCapture:g,onResponderEnd:b,onResponderGrant:_,onResponderMove:w,onResponderReject:S,onResponderRelease:C,onResponderStart:E,onResponderTerminate:x,onResponderTerminationRequest:k,onScrollShouldSetResponder:A,onScrollShouldSetResponderCapture:R,onSelectionChangeShouldSetResponder:T,onSelectionChangeShouldSetResponderCapture:P,onStartShouldSetResponder:O,onStartShouldSetResponderCapture:I});var F="div",j=null!=e.lang?(0,p.il)(e.lang):null,z=e.dir||j,V=z||D,B=(e=>(0,s.A)(e,v))(N);if(B.dir=z,B.style=[y.view$raw,L&&y.inline,e.style],null!=e.href&&(F="a",null!=n)){var H=n.download,W=n.rel,U=n.target;null!=H&&(B.download=H),null!=W&&(B.rel=W),"string"==typeof U&&(B.target="_"!==U.charAt(0)?"_"+U:U)}var Y=(0,c.A)(B),q=(0,u.A)(M,Y,t);return B.ref=q,(0,o.A)(F,B,{writingDirection:V})});g.displayName="View";var y=h.A.create({view$raw:{alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}});const b=g},9241:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540),i="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():Object.freeze({});function o(e){var t=r.useRef(i);return t.current===i&&(t.current=e()),t.current}},9371:(e,t,n)=>{"use strict";let r=n(3152);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},9395:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},9456:(e,t,n)=>{"use strict";n.d(t,{I2:()=>s,YM:()=>l,qQ:()=>a});var r,i=n(472),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])}),n);return a||"https://cdn.segment.com"},l=function(){var e=s();return"".concat(e,"/next-integrations")}},9518:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3384);class i{static get(){return r.A.get("window").scale}static getFontScale(){return r.A.get("window").fontScale||i.get()}static getPixelSizeForLayoutSize(e){return Math.round(e*i.get())}static roundToNearestPixel(e){var t=i.get();return Math.round(e*t)/t}}},9577:(e,t,n)=>{"use strict";let r=n(7793),i=n(1106),o=n(8339);function a(e,t){let n=new i(e,t),r=new o(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=a,a.default=a,r.registerParse(a)},9697:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5725).A},9746:()=>{},9839:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},9863:(e,t)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)}},9952:(e,t,n)=>{"use strict";n.d(t,{d:()=>l,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),s=n(6490),l=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new l({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},9977:()=>{},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},9996:(e,t)=>{"use strict";t.A=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".chat-widget.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="vdb-ai-chat:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkvdb_ai_chat=self.webpackChunkvdb_ai_chat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,(()=>{"use strict";var e=a(9697),t=a(6540),n=a(9176),r=a(7862),i=a(8997),o=a(5338),s=a(1635);function l(){return"undefined"!=typeof process&&process.env?process.env:{}}var u=a(9456),c=a(2321);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,c.Qd)(e)?e.event:e;if(!a||!(0,c.Kg)(a))throw new Error("Event missing");var s=(0,c.Qd)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,c.Qd)(t)?t:{},l={};return(0,c.Tn)(n)||(l=null!=n?n:{}),(0,c.Qd)(e)&&!(0,c.Tn)(t)&&(l=null!=t?t:{}),[a,s,l,o.find(c.Tn)]}function h(e,t,n,r,i){var o,a,s=null,l=null,u=[e,t,n,r,i],d=u.filter(c.Kg);1===d.length?(0,c.Kg)(u[1])?(l=u[1],s=null):(l=d[0],s=null):2===d.length&&("string"==typeof u[0]&&(s=u[0]),"string"==typeof u[1]&&(l=u[1]));var h=u.find(c.Tn),f=u.filter(c.Qd);return 1===f.length?(0,c.Qd)(u[2])?(a={},o=u[2]):(0,c.Qd)(u[3])?(o={},a=u[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[s,l,null!=o?o:o={},null!=a?a:a={},h]}var f=function(e){return function(){for(var t,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],l=0,u=i;l<u.length;l++){var d=u[l],h=s.pop();if("id"===h){if((0,c.Kg)(d)||(0,c.Et)(d)){a.id=d.toString();continue}if(null==d)continue;h=s.pop()}if("traits"!==h&&"options"!==h||null!=d&&!(0,c.Qd)(d)||(a[h]=d),(0,c.Tn)(d)){a.callback=d;break}}return[null!==(t=a.id)&&void 0!==t?t:e.id(),null!==(n=a.traits)&&void 0!==n?n:{},null!==(r=a.options)&&void 0!==r?r:{},a.callback]}};function p(e,t,n,r){(0,c.Et)(e)&&(e=e.toString()),(0,c.Et)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(c.Kg),a=o[0],s=void 0===a?e:a,l=o[1],u=void 0===l?null:l,d=i.filter(c.Qd)[0];return[s,u,void 0===d?{}:d,i.find(c.Tn)]}var m=a(7718),v=a(7977),g=a(6556);function y(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,(0,g.w_)(o,r.callback,(s=i,l=r.timeout,u=Date.now()-s,Math.max((null!=l?l:300)-u,0)))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&o.flush(),[2,o]}var s,l,u})})}var b=a(2079),_=a(6e3),w=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},S=Object.keys(w("","","","","",""));var C=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,l=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,c=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:l,url:c}},E=function(){var e=document.querySelector("link[rel='canonical']");return w(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},x=function(e,t){void 0===t&&(t=C(E()));var n,r,i,o=e.context;"page"===e.type&&(n=e.properties&&(r=e.properties,i=Object.keys(t),Object.assign.apply(Object,(0,s.fX)([{}],i.map(function(e){var t;if(r&&Object.prototype.hasOwnProperty.call(r,e))return(t={})[e]=r[e],t}),!1))),e.properties=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),e.properties),e.name?{name:e.name}:{})),o.page=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),n),o.page)},k=a(3172),A=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,s.C6)(t,e),t}(Error),R="is not a string",T="is not an object";var P=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},O=function(){function e(e){this.settings=new P(e)}return e.prototype.track=function(e,t,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o;this.settings.onEventMethodCall({type:"page",options:r});var a={type:"page",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(a.category=e,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,s.Cl)({},n),options:(0,s.Cl)({},r),integrations:(0,s.Cl)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:r}))},e.prototype.group=function(e,t,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:e,type:"alias",options:(0,s.Cl)({},n),integrations:(0,s.Cl)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,s.Cl)((0,s.Cl)({},i),this.baseEvent())):this.normalize((0,s.Cl)((0,s.Cl)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach(function(t){"context"!==t&&(n.includes(t)?(0,k.J)(o,t,e[t]):(0,k.J)(i,t,e[t]))}),[i,o]},e.prototype.normalize=function(e){var t,n,r,i,o=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce(function(t,n){var r,i;return(0,s.Cl)((0,s.Cl)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))},{});e.options=(r=e.options||{},i=function(e,t){return void 0!==t},Object.keys(r).filter(function(e){return i(0,r[e])}).reduce(function(e,t){return e[t]=r[t],e},{}));var a=(0,s.Cl)((0,s.Cl)({},o),null===(n=e.options)||void 0===n?void 0:n.integrations),l=e.options?this.context(e.options):[],u=l[0],d=l[1],h=e.options,f=(0,s.Tt)(e,["options"]),p=(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({timestamp:new Date},f),{context:u,integrations:a}),d),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),function(e){!function(e){if(!(0,c.t2)(e))throw new A("Event","is nil");if("object"!=typeof e)throw new A("Event",T)}(e),function(e){if(!(0,c.Kg)(e.type))throw new A(".type",R)}(e),function(e){if(!(0,c.Kg)(e.messageId))throw new A(".messageId",R)}(e),"track"===e.type&&(function(e){if(!(0,c.Kg)(e.event))throw new A(".event",R)}(e),function(e){if(!(0,c.Qd)(e.properties))throw new A(".properties",T)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,c.Qd)(e.traits))throw new A(".traits",T)}(e)}(p),p},e}(),I=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,_.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,s.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return x(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return x(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return x(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return x(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return x(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return x(a,o),a},t}(O),N=function(e){return"addMiddleware"in e&&"destination"===e.type},L=a(5881),M=a(6115),D=a(9952),F=a(4980),j=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1===++i&&(n=new Promise(function(e){return r=e})),o.finally(function(){return 0===--i&&r()})),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(M.g,function(){o.scheduleFlush(0)}),o}return(0,s.C6)(t,e),t.prototype.register=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r,i,o=this;return(0,s.YH)(this,function(a){switch(a.label){case 0:return this.plugins.push(t),r=function(n){o.failedInitializations.push(t.name),o.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),o.plugins=o.plugins.filter(function(e){return e!==t})},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(r),[3,4]);case 1:return a.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},t.prototype.subscribeToDelivery=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)})]})})},t.prototype.dispatchSingle=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)})]})})},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},t.prototype.deliver=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),t=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=o.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw r=o.sent(),i=r,e.log("error","Failed to deliver",i),this.emit("delivery_failure",e,i),e.stats.increment("delivery_failed"),r;case 5:return[2]}})})},t.prototype.enqueuRetry=function(e,t){return!(e instanceof D.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t;return(0,s.YH)(this,function(n){switch(n.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,r=this.plugins.filter(function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}),i=(t="type",n={},r.forEach(function(e){var r,i=void 0,o=e[t];void 0!==(i="string"!=typeof o?JSON.stringify(o):o)&&(n[i]=(0,s.fX)((0,s.fX)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))}),n),o=i.before,a=void 0===o?[]:o,l=i.enrichment,u=void 0===l?[]:l,c=i.destination,d=void 0===c?[]:c,h=i.after;return{before:a,enrichment:u,destinations:d,after:void 0===h?[]:h}},t.prototype.flushOne=function(e){var t,n;return(0,s.sH)(this,void 0,void 0,function(){var r,i,o,a,l,u,c,d,h,f,p,m,v,g;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,l=i,s.label=1;case 1:return a<l.length?(u=l[a],[4,(0,F.D)(e,u)]):[3,4];case 2:(f=s.sent())instanceof D.j&&(e=f),this.emit("message_enriched",e,u),s.label=3;case 3:return a++,[3,1];case 4:c=0,d=o,s.label=5;case 5:return c<d.length?(h=d[c],[4,(0,F.C)(e,h)]):[3,8];case 6:(f=s.sent())instanceof D.j&&(e=f),this.emit("message_enriched",e,h),s.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),m=p.destinations,v=p.after,[4,new Promise(function(t,n){setTimeout(function(){var r=m.map(function(t){return(0,F.C)(e,t)});Promise.all(r).then(t).catch(n)},0)})];case 9:return s.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),g=v.map(function(t){return(0,F.C)(e,t)}),[4,Promise.all(g)];case 10:return s.sent(),[2,e]}})})},t}(b.v),z=function(e){function t(t){return e.call(this,"string"==typeof t?new L.x(4,t):t)||this}return(0,s.C6)(t,e),t.prototype.flush=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return(0,m.a)()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(j);function V(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},H=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},W=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){H(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach(function(n){try{n.set(e,t)}catch(t){H(n,"set",e,t)}})},e.prototype.clear=function(e){this.stores.forEach(function(t){try{t.remove(e)}catch(n){H(t,"remove",e,n)}})},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),U=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function Y(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(e){return Object.values(B).includes(e)})}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}const K=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=q({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",q({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,q({},this.attributes,t))},withConverter:function(t){return e(q({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function $(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(K.set(i,"1",a),K.get(i))return K.remove(i,a),o}catch(e){return}}}var G=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,s.Cl)((0,s.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:$(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=K.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?K.set(e,t,this.opts()):null===t?K.remove(e,this.opts()):K.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return K.remove(e,this.opts())},e}(),X=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function Q(e){var t=e.map(function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case B.Cookie:return new G(n);case B.LocalStorage:return new X;case B.Memory:return new U;default:throw new Error("Unknown Store Type: ".concat(e))}});return t}function J(e,t){return e.map(function(e){return t&&e===B.Cookie?{name:e,settings:t}:e})}var Z={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},ee=function(){function e(e,t){void 0===e&&(e=Z);var n,r,i,o,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(Z.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:(0,_.v4)()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=(0,s.Cl)((0,s.Cl)({},Z),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:Z.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:Z.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,function(e){return e===B.Cookie}),this.traitsStore=this.createStorage(this.options,t,function(e){return e!==B.Cookie});var l=this.legacyUserStore.get(Z.cookie.oldKey);l&&"object"==typeof l&&(l.id&&this.id(l.id),l.traits&&this.traits(l.traits)),V(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,s.Cl)((0,s.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return e.disable?new W([]):e.persist?(void 0!==e.storage&&null!==e.storage&&Y(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter(function(e){return e!==B.LocalStorage})),n&&(r=r.filter(n)),new W(Q(J(r,t)))):new W([new U])},e.defaults=Z,e}(),te={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},ne=function(e){function t(t,n){void 0===t&&(t=te);var r=e.call(this,(0,s.Cl)((0,s.Cl)({},te),t),n)||this;return r.anonymousId=function(e){},V(r),r}return(0,s.C6)(t,e),t}(ee),re=a(8167),ie=a(2453),oe=a(472),ae=a(1298),se=function(e,t,n){n.getAndRemove(e).forEach(function(e){ve(t,e).catch(console.error)})},le=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ue=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){var n,r,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:n=0,r=t.getAndRemove("register"),o.label=1;case 1:return n<r.length?(i=r[n],[4,ve(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},ce=se.bind(void 0,"on"),de=se.bind(void 0,"setAnonymousId"),he=function(e){if(fe(e)){var t=e.pop();return C(t)}},fe=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!S.includes(n))return!1;return!0}(e[e.length-1])},pe=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},me=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!fe(t.args)&&(t.args=(0,s.fX)((0,s.fX)([],t.args,!0),[E()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,ae.X)()){var e=(0,oe.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map(function(e){var t=e[0],n=e.slice(1);return new pe(t,n)});this.add.apply(this,t)}}},e}();function ve(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o})})}var ge=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=re.r,this._preInitBuffer=new me,this._promise=e(this._preInitBuffer),this._promise.then(function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r}).catch(function(){})}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise(function(n,i){t._preInitBuffer.add(new pe(e,r,n,i))})}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new pe(e,r)),t)}},e}(),ye=a(5791),be=a(524),_e=function(e){function t(t,n){var r=e.call(this,t)||this;return r.retryTimeout=n,r.name="RateLimitError",r}return(0,s.C6)(t,e),t}(Error),we=function(e){return(0,s.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)};function Se(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function Ce(e,t,n,r,i){var o,a=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var l=e.queue.failedInitializations||[];l.length>0&&(t._metadata={failedInitializations:l}),null!=i&&(i.attempts>1&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{retryCount:i.attempts})),i.attempts++);var u=[],c=[];for(var d in r){var h=r[d];"Segment.io"===d&&u.push(d),"bundled"===h.bundlingStatus&&u.push(d),"unbundled"===h.bundlingStatus&&c.push(d)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var m=p[f];c.includes(m)||c.push(m)}var v=null!==(o=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==o?o:{},g=[];return u.sort().forEach(function(e){var t;(null!==(t=v[e])&&void 0!==t?t:[]).forEach(function(e){g.push(e)})}),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,s.Cl)((0,s.Cl)({},t._metadata),{bundled:u.sort(),unbundled:c.sort(),bundledIds:g})),t}var Ee=a(2613);function xe(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return n=[],(0,m.a)()?[2,t]:[4,(0,Ee._)(function(){return t.length>0&&!(0,m.a)()},function(){return(0,s.sH)(r,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(r=t.pop())?[4,(0,F.C)(r,e)]:[2];case 1:return i.sent()instanceof v.o||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}function ke(e,t,n,r){var i=this;e||setTimeout(function(){return(0,s.sH)(i,void 0,void 0,function(){var e,i;return(0,s.YH)(this,function(o){switch(o.label){case 0:return e=!0,[4,xe(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}})})},5e3*Math.random())}var Ae=a(7947),Re=function(e){return"Segment.io"===e.name};function Te(e,t,n){var r,i,o;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()});var a,l=null!==(r=null==t?void 0:t.apiKey)&&void 0!==r?r:"",u=e.options.disableClientPersistence?new M.M(e.queue.queue.maxAttempts,[]):new L.x(e.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),c=new Set,d=!1,h=null!==(i=null==t?void 0:t.apiHost)&&void 0!==i?i:Ae.a,f=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",p="".concat(f,"://").concat(h),g=null==t?void 0:t.deliveryStrategy,y=g&&"strategy"in g&&"batching"===g.strategy?function(e,t){var n,r,i,o,a,l=[],u=!1,c=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,d=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3,h=0;function f(n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.writeKey,o=n.map(function(e){var t=e;return t.sentAt,(0,s.Tt)(t,["sentAt"])});return(0,be.h)("https://".concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||u,headers:we(null==t?void 0:t.headers),method:"post",body:JSON.stringify({writeKey:i,batch:o,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then(function(e){var t;if(e.status>=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):d;throw new _e("Rate limit exceeded: ".concat(e.status),r)}})}}function p(e){var n;return void 0===e&&(e=1),(0,s.sH)(this,void 0,void 0,function(){var r;return(0,s.YH)(this,function(i){return l.length?(r=l,l=[],[2,null===(n=f(r))||void 0===n?void 0:n.catch(function(n){var i;v.o.system().log("error","Error sending batch",n),e<=(null!==(i=null==t?void 0:t.maxRetries)&&void 0!==i?i:10)&&("RateLimitError"===n.name&&(h=n.retryTimeout),l.push.apply(l,r),l.map(function(t){if("_metadata"in t){var n=t;n._metadata=(0,s.Cl)((0,s.Cl)({},n._metadata),{retryCount:e})}}),m(e+1))})]):[2]})})}function m(e){void 0===e&&(e=1),i||(i=setTimeout(function(){i=void 0,p(e).catch(console.error)},h||d),h=0)}return o=function(e){if((u=e)&&l.length){var t=function(e){var t=[],n=0;return e.forEach(function(e){Se(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]}),t}(l).map(f);Promise.all(t).catch(console.error)}},a=!1,window.addEventListener("pagehide",function(){a||o(a=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(a)return;a=!0}else a=!1;o(a)}),{dispatch:function(e,n){return(0,s.sH)(this,void 0,void 0,function(){var e;return(0,s.YH)(this,function(r){return l.push(n),e=l.length>=c||function(e){return Se(e)>=450}(l)||(null==t?void 0:t.keepalive)&&function(e){return Se(e)>=54}(l),[2,e||u?p():m()]})})}}}(h,g.config):(a=null==g?void 0:g.config,{dispatch:function(e,t){return(0,be.h)(e,{credentials:null==a?void 0:a.credentials,keepalive:null==a?void 0:a.keepalive,headers:we(null==a?void 0:a.headers),method:"post",body:JSON.stringify(t),priority:null==a?void 0:a.priority}).then(function(e){var t;if(e.status>=500)throw new Error("Bad response from server: ".concat(e.status));if(429===e.status){var n=null===(t=e.headers)||void 0===t?void 0:t.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new _e("Rate limit exceeded: ".concat(e.status),r)}})}});function b(r){return(0,s.sH)(this,void 0,void 0,function(){var i,o;return(0,s.YH)(this,function(a){return(0,m.a)()?(u.push(r),ke(d,u,_,ke),[2,r]):(c.add(r),i=r.event.type.charAt(0),o=(0,ye.W)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),u.getAttempts(r)>=u.maxAttempts?(c.delete(r),[2,r]):[2,y.dispatch("".concat(p,"/").concat(i),Ce(e,o,t,n,r)).then(function(){return r}).catch(function(e){if(r.log("error","Error sending event",e),"RateLimitError"===e.name){var t=e.retryTimeout;u.pushWithBackoff(r,t)}else u.pushWithBackoff(r);return ke(d,u,_,ke),r}).finally(function(){c.delete(r)})])})})}var _={metadata:{writeKey:l,apiHost:h,protocol:f},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:b,identify:b,page:b,alias:b,group:b,screen:b};return u.todo&&ke(d,u,_,ke),_}var Pe="This is being deprecated and will be not be available in future releases of Analytics JS",Oe=(0,ie.m)(),Ie=null==Oe?void 0:Oe.analytics,Ne=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Re))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function Le(){console.warn(Pe)}var Me,De=function(e){function t(t,n,r,i,o){var a,l,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=Le,u.addIntegrationMiddleware=Le,u.listeners=Le,u.addEventListener=Le,u.removeAllListeners=Le,u.removeListener=Le,u.removeEventListener=Le,u.hasListeners=Le,u.add=Le,u.addIntegration=Le;var c=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;u.queue=null!=r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new M.M(r,[]):new L.x(r,e);return new z(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Ne(t,u.queue);var h=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,h,c),u._user=null!=i?i:new ee((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),c).load(),u._group=null!=o?o:new ne((0,s.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),c).load(),u.eventFactory=new I(u._user),u.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},u.options=null!=n?n:{},V(u),u}return(0,s.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new W([new U]):t&&Y(t)?new W(Q(J(t.stores,n))):new W(Q([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=d.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.track(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("track",r,e.event.properties,e.event.options),e})]})})},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=he(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.page(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("page",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=f(this._user).apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],this._user.identify(r,i),l=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e})]})})},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=he(t);if(0===t.length)return this._group;var i=f(this._group).apply(void 0,t),o=i[0],a=i[1],s=i[2],l=i[3];this._group.identify(o,a);var u=this._group.id(),c=this._group.traits(),d=this.eventFactory.group(u,c,s,this.integrations,r);return this._dispatch(d,l).then(function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t})},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u=this;return(0,s.YH)(this,function(s){return t=he(e),n=p.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=this.eventFactory.alias(r,i,o,this.integrations,t),[2,this._dispatch(l,a).then(function(e){return u.emit("alias",r,i,e.event.options),e})]})})},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r,i,o,a,l,u,c=this;return(0,s.YH)(this,function(s){return t=he(e),n=h.apply(void 0,e),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=this.eventFactory.screen(r,i,o,a,this.integrations,t),[2,this._dispatch(u,l).then(function(e){return c.emit("screen",r,i,e.event.properties,e.event.options),e})]})})},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n;return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,a.e(248).then(a.bind(a,2432))];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,(0,s.fX)([this],e,!1))]}})})},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=v.o.system(),n=e.map(function(e){return r.queue.register(t,e,r)}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.sH)(this,void 0,void 0,function(){var t,n,r=this;return(0,s.YH)(this,function(i){switch(i.label){case 0:return t=v.o.system(),n=e.map(function(e){var n=r.queue.plugins.find(function(t){return t.name===e});if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))}),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}})})},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n;return(0,s.YH)(this,function(r){return(n=new v.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,m.a)()&&!this.options.retryQueue?[2,n]:[2,y(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t=this;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,s.sH)(t,void 0,void 0,function(){var t,n,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(a.bind(a,5939))];case 1:return t=i.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach(function(e){if("destination"===e.type)return n[e.name]=!0}),r=t(e,n),[4,this.register(r)];case 2:return i.sent(),[2]}})})})];case 1:return n.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(N).forEach(function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,a.e(538).then(a.bind(a,2552))];case 1:return[2,(0,t.sent().queryString)(this,e)]}})})},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){return[2,Promise.all(this.queue.plugins.map(function(e){return e.ready?e.ready():Promise.resolve()})).then(function(t){return e(t),t})]})})},t.prototype.noConflict=function(){return console.warn(Pe),(0,oe.Ud)(null!=Ie?Ie:this),this},t.prototype.normalize=function(e){return console.warn(Pe),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Pe),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return re.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return console.warn(Pe),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(e){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return console.warn(Pe),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Pe),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Pe),this.queue.plugins.filter(function(e){return"destination"===e.type}).reduce(function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)},{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(b.v),Fe=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,s.C6)(t,e),t}(De),je=a(1094),ze=a(6251),Ve=a(5770);function Be(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}function He(){if(Me)return Me;var e=$(window.location.href);return Me={expires:31536e6,secure:!1,path:"/"},e&&(Me.domain=e),Me}var We,Ue,Ye=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,Be(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var n,r,i=t.event.context,o=i.page.search||"",a="object"==typeof o?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach(function(e){return t.append(n,e)}):t.append(n,r)}),t.toString()}catch(e){return""}}(o):o;i.userAgent=navigator.userAgent,i.userAgentData=e.userAgentData;var l=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==l&&(i.locale=l),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,ae.X)()?"next":"npm:next","-").concat(re.r)}),a&&!i.campaign&&(i.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,Ve.p)(o)}return e},{})}(a));var u=function(){var e=K.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(i.amp={id:u}),function(e,t,n){var r,i=new W(n?[]:[new G(He())]),o=i.get("s:context.referrer"),a=null!==(r=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==r?r:o;a&&(t&&(t.referrer=(0,s.Cl)((0,s.Cl)({},t.referrer),a)),i.set("s:context.referrer",a))}(a,i,null!==(r=e.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},qe=a(3357),Ke=a(5939),$e=a(4757),Ge=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,ze.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,s.sH)(this,void 0,void 0,function(){var t;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,(0,Ke.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new D.d({retry:!1,reason:"dropped by destination middleware"})),[2,new v.o(t)]}})})},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,s.sH)(t,void 0,void 0,function(){var t,r;return(0,s.YH)(this,function(i){switch(i.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw new Error("Something prevented the destination from getting ready");return(0,$e.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,$e.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];a.label=1;case 1:return a.trys.push([1,3,,4]),(0,$e.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[a.sent()]),[2,n];case 3:throw o=a.sent(),(0,$e.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(o),o;case 4:return[2]}})})},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function Xe(e,t){return(0,s.sH)(this,void 0,void 0,function(){var n,r,i,o,a,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),r=(0,u.I2)(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(0,qe.k)(a.replace(n,r))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,(0,qe.k)(e.url.replace(n,r))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,qe.k)(e.url.replace(n,r))];case 7:s.sent(),s.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw l=s.sent(),console.error("Failed to create PluginFactory",e),l;case 10:return[2]}})})}function Qe(e,t,n,r,i,o){var a,l,u;return(0,s.sH)(this,void 0,void 0,function(){var c,d,h,f=this;return(0,s.YH)(this,function(p){switch(p.label){case 0:return c=[],d=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],h=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,s.sH)(f,void 0,void 0,function(){var a,l,u,h,f,p,m;return(0,s.YH)(this,function(v){switch(v.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];v.label=1;case 1:return v.trys.push([1,6,,7]),(l=null==o?void 0:o.find(function(t){return t.pluginName===e.name}))?[3,3]:[4,Xe(e,null==r?void 0:r.obfuscate)];case 2:l=v.sent(),v.label=3;case 3:return(a=l)?(u=n[e.name],[4,a((0,s.Cl)((0,s.Cl)({},e.settings),u))]):[3,5];case 4:h=v.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})}(f=Array.isArray(h)?h:[h]),p=d.filter(function(t){return t.destinationName===e.creationName}),f.forEach(function(t){var n=new Ge(e.creationName,t);p.length&&i&&n.addMiddleware(i),c.push(n)}),v.label=5;case 5:return[3,7];case 6:return m=v.sent(),console.warn("Failed to load Remote Plugin",m),[3,7];case 7:return[2]}})})}),[4,Promise.all(h)];case 1:return p.sent(),[2,c.filter(Boolean)]}})})}var Je=null!==(We=(Ue=(0,ie.m)()).__SEGMENT_INSPECTOR__)&&void 0!==We?We:Ue.__SEGMENT_INSPECTOR__={},Ze=a(4568);function et(e,t,n){return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){switch(r.label){case 0:return[4,tt(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach(function(n){t.getAndRemove(n).forEach(function(t){setTimeout(function(){ve(e,t).catch(console.error)},0)})})}(e,n),[2]}})})}var tt=function(e,t){return(0,s.sH)(void 0,void 0,void 0,function(){return(0,s.YH)(this,function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})};function nt(e,t,n,r,i,o,u){var c,d,h;return void 0===i&&(i=[]),(0,s.sH)(this,void 0,void 0,function(){var f,p,m,v,g,y,b,_,w,S,C,E,x,k,A=this;return(0,s.YH)(this,function(R){switch(R.label){case 0:return function(e,t){de(e,t),ce(e,t)}(n,u),f=null==i?void 0:i.filter(function(e){return"object"==typeof e}),p=null==i?void 0:i.filter(function(e){return"function"==typeof e&&"string"==typeof e.pluginName}),function(e){var t,n,r;return"test"!==l().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,a.e(10).then(a.bind(a,6834)).then(function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return v=R.sent(),[3,3];case 2:v=void 0,R.label=3;case 3:return m=v,T=t,"test"!==l().NODE_ENV&&Object.keys(T.integrations).length>1||o.length>0?[4,a.e(50).then(a.bind(a,365)).then(function(i){return i.ajsDestinations(e,t,n.integrations,r,m,o)})]:[3,5];case 4:return y=R.sent(),[3,6];case 5:y=[],R.label=6;case 6:return g=y,t.legacyVideoPluginsEnabled?[4,a.e(694).then(a.bind(a,4503)).then(function(e){return e.loadLegacyVideoPlugins(n)})]:[3,8];case 7:R.sent(),R.label=8;case 8:return(null===(c=r.plan)||void 0===c?void 0:c.track)?[4,a.e(104).then(a.bind(a,681)).then(function(e){var n;return e.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,t)})]:[3,10];case 9:return _=R.sent(),[3,11];case 10:_=void 0,R.label=11;case 11:return b=_,w=(0,je.J)(t,r),[4,Qe(t,n.integrations,w,r,m,p).catch(function(){return[]})];case 12:return S=R.sent(),C=(0,s.fX)((0,s.fX)([Ye],g,!0),S,!0),b&&C.push(b),!1===(null===(d=r.integrations)||void 0===d?void 0:d.All)&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]?[3,14]:(x=(E=C).push,[4,Te(n,w["Segment.io"],t.integrations)]);case 13:x.apply(E,[R.sent()]),R.label=14;case 14:return[4,n.register.apply(n,(0,s.fX)((0,s.fX)([],C,!1),f,!1))];case 15:return k=R.sent(),[4,ue(n,u)];case 16:return R.sent(),Object.entries(null!==(h=t.enabledMiddleware)&&void 0!==h?h:{}).some(function(e){return e[1]})?[4,a.e(521).then(a.bind(a,6904)).then(function(e){var i=e.remoteMiddlewares;return(0,s.sH)(A,void 0,void 0,function(){var e,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,i(k,t,r.obfuscate)];case 1:return e=a.sent(),o=e.map(function(e){return n.addSourceMiddleware(e)}),[2,Promise.all(o)]}})})})]:[3,18];case 17:R.sent(),R.label=18;case 18:return[4,le(n,u)];case 19:return R.sent(),[2,k]}var T})})}var rt=function(e){function t(){var t=this,n=(0,ze.u)(),r=n.promise,i=n.resolve;return t=e.call(this,function(e){return r.then(function(t){return function(e,t,n){var r,i,o,a,l,c,d,h,f;return void 0===t&&(t={}),(0,s.sH)(this,void 0,void 0,function(){var p,m,g,y,b,_,w,S,C,E;return(0,s.YH)(this,function(x){switch(x.label){case 0:return!0===t.disable?[2,[new Fe,v.o.system()]]:(t.globalAnalyticsKey&&(0,oe.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,u.qQ)(e.cdnURL),t.initialPageview&&n.add(new pe("page",[])),p=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),m=null!==(r=e.cdnURL)&&void 0!==r?r:(0,u.I2)(),null===(i=e.cdnSettings)||void 0===i?[3,1]:(y=i,[3,3]));case 1:return[4,(k=e.writeKey,A=m,(0,be.h)("".concat(A,"/v1/projects/").concat(k,"/settings")).then(function(e){return e.ok?e.json():e.text().then(function(e){throw new Error(e)})}).catch(function(e){throw console.error(e.message),e}))];case 2:y=x.sent(),x.label=3;case 3:return g=y,t.updateCDNSettings&&(g=t.updateCDNSettings(g)),"function"!=typeof t.disable?[3,5]:[4,t.disable(g)];case 4:if(x.sent())return[2,[new Fe,v.o.system()]];x.label=5;case 5:return b=null===(a=null===(o=g.integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===a||a,t=(0,s.Cl)({retryQueue:b},t),function(e){var t;null===(t=Je.attach)||void 0===t||t.call(Je,e)}(_=new De((0,s.Cl)((0,s.Cl)({},e),{cdnSettings:g,cdnURL:m}),t)),w=null!==(l=e.plugins)&&void 0!==l?l:[],S=null!==(c=e.classicIntegrations)&&void 0!==c?c:[],C=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],Ze.U.initRemoteMetrics((0,s.Cl)((0,s.Cl)({},g.metrics),{host:null!==(h=null==C?void 0:C.apiHost)&&void 0!==h?h:null===(f=g.metrics)||void 0===f?void 0:f.host,protocol:null==C?void 0:C.protocol})),[4,nt(e.writeKey,g,_,t,w,S,n)];case 6:return E=x.sent(),_.initialized=!0,_.emit("initialize",e,t),[4,et(_,p,n)];case 7:return x.sent(),[2,[_,E]]}var k,A})})}(t[0],t[1],e)})})||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,s.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then(function(e){return e[0]})},t}(ge);const it=(0,t.createContext)(void 0),ot=e=>{let{client:n,children:r}=e;return t.createElement(it.Provider,{value:n},r)};var at=a(5470),st=a(4951),lt=a(728),ut=a(7608),ct=a(2895);ct.stringify,ct.fromJSON,ct.plugin;const dt=ct.parse;ct.list,ct.document,ct.comment,ct.atRule,ct.rule,ct.decl,ct.root,ct.CssSyntaxError,ct.Declaration,ct.Container,ct.Processor,ct.Document,ct.Comment,ct.Warning,ct.AtRule,ct.Result,ct.Input,ct.Rule,ct.Root,ct.Node;var ht=function(){return ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ht.apply(this,arguments)};function ft(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,a(2833);var pt="-ms-",mt="-moz-",vt="-webkit-",gt="comm",yt="rule",bt="decl",_t="@keyframes",wt=Math.abs,St=String.fromCharCode,Ct=Object.assign;function Et(e){return e.trim()}function xt(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function At(e,t,n){return e.indexOf(t,n)}function Rt(e,t){return 0|e.charCodeAt(t)}function Tt(e,t,n){return e.slice(t,n)}function Pt(e){return e.length}function Ot(e){return e.length}function It(e,t){return t.push(e),e}function Nt(e,t){return e.filter(function(e){return!xt(e,t)})}var Lt=1,Mt=1,Dt=0,Ft=0,jt=0,zt="";function Vt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Lt,column:Mt,length:a,return:"",siblings:s}}function Bt(e,t){return Ct(Vt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ht(e){for(;e.root;)e=Bt(e.root,{children:[e]});It(e,e.siblings)}function Wt(){return jt=Ft>0?Rt(zt,--Ft):0,Mt--,10===jt&&(Mt=1,Lt--),jt}function Ut(){return jt=Ft<Dt?Rt(zt,Ft++):0,Mt++,10===jt&&(Mt=1,Lt++),jt}function Yt(){return Rt(zt,Ft)}function qt(){return Ft}function Kt(e,t){return Tt(zt,e,t)}function $t(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gt(e){return Et(Kt(Ft-1,Jt(91===e?e+2:40===e?e+1:e)))}function Xt(e){for(;(jt=Yt())&&jt<33;)Ut();return $t(e)>2||$t(jt)>3?"":" "}function Qt(e,t){for(;--t&&Ut()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Kt(e,qt()+(t<6&&32==Yt()&&32==Ut()))}function Jt(e){for(;Ut();)switch(jt){case e:return Ft;case 34:case 39:34!==e&&39!==e&&Jt(jt);break;case 40:41===e&&Jt(e);break;case 92:Ut()}return Ft}function Zt(e,t){for(;Ut()&&e+jt!==57&&(e+jt!==84||47!==Yt()););return"/*"+Kt(t,Ft-1)+"*"+St(47===e?e:Ut())}function en(e){for(;!$t(Yt());)Ut();return Kt(e,Ft)}function tn(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bt:return e.return=e.return||e.value;case gt:return"";case _t:return e.return=e.value+"{"+tn(e.children,r)+"}";case yt:if(!Pt(e.value=e.props.join(",")))return""}return Pt(n=tn(e.children,r))?e.return=e.value+"{"+n+"}":""}function rn(e,t,n){switch(function(e,t){return 45^Rt(e,0)?(((t<<2^Rt(e,0))<<2^Rt(e,1))<<2^Rt(e,2))<<2^Rt(e,3):0}(e,t)){case 5103:return vt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return vt+e+e;case 4789:return mt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vt+e+mt+e+pt+e+e;case 5936:switch(Rt(e,t+11)){case 114:return vt+e+pt+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+pt+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+pt+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return vt+e+pt+e+e;case 6165:return vt+e+pt+"flex-"+e+e;case 5187:return vt+e+kt(e,/(\w+).+(:[^]+)/,vt+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return vt+e+pt+"flex-item-"+kt(e,/flex-|-self/g,"")+(xt(e,/flex-|baseline/)?"":pt+"grid-row-"+kt(e,/flex-|-self/g,""))+e;case 4675:return vt+e+pt+"flex-line-pack"+kt(e,/align-content|flex-|-self/g,"")+e;case 5548:return vt+e+pt+kt(e,"shrink","negative")+e;case 5292:return vt+e+pt+kt(e,"basis","preferred-size")+e;case 6060:return vt+"box-"+kt(e,"-grow","")+vt+e+pt+kt(e,"grow","positive")+e;case 4554:return vt+kt(e,/([^-])(transform)/g,"$1"+vt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,vt+"$1"),/(image-set)/,vt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,vt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,vt+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vt+e+e;case 4200:if(!xt(e,/flex-|baseline/))return pt+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return pt+kt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,xt(e.props,/grid-\w+-end/)})?~At(e+(n=n[t].value),"span",0)?e:pt+kt(e,"-start","")+e+pt+"grid-row-span:"+(~At(n,"span",0)?xt(n,/\d+/):+xt(n,/\d+/)-+xt(e,/\d+/))+";":pt+kt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return xt(e.props,/grid-\w+-start/)})?e:pt+kt(kt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,vt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pt(e)-1-t>6)switch(Rt(e,t+1)){case 109:if(45!==Rt(e,t+4))break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+mt+(108==Rt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~At(e,"stretch",0)?rn(kt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return kt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,a,s){return pt+n+":"+r+s+(i?pt+n+"-span:"+(o?a:+a-+r)+s:"")+e});case 4949:if(121===Rt(e,t+6))return kt(e,":",":"+vt)+e;break;case 6444:switch(Rt(e,45===Rt(e,14)?18:11)){case 120:return kt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+vt+(45===Rt(e,14)?"inline-":"")+"box$3$1"+vt+"$2$3$1"+pt+"$2box$3")+e;case 100:return kt(e,":",":"+pt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return kt(e,"scroll-","scroll-snap-")+e}return e}function on(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bt:return void(e.return=rn(e.value,e.length,n));case _t:return tn([Bt(e,{value:kt(e.value,"@","@"+vt)})],r);case yt:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(xt(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ht(Bt(e,{props:[kt(t,/:(read-\w+)/,":-moz-$1")]})),Ht(Bt(e,{props:[t]})),Ct(e,{props:Nt(n,r)});break;case"::placeholder":Ht(Bt(e,{props:[kt(t,/:(plac\w+)/,":"+vt+"input-$1")]})),Ht(Bt(e,{props:[kt(t,/:(plac\w+)/,":-moz-$1")]})),Ht(Bt(e,{props:[kt(t,/:(plac\w+)/,pt+"input-$1")]})),Ht(Bt(e,{props:[t]})),Ct(e,{props:Nt(n,r)})}return""})}}function an(e){return function(e){return zt="",e}(sn("",null,null,null,[""],e=function(e){return Lt=Mt=1,Dt=Pt(zt=e),Ft=0,[]}(e),0,[0],e))}function sn(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,f=0,p=0,m=1,v=1,g=1,y=0,b="",_=i,w=o,S=r,C=b;v;)switch(p=y,y=Ut()){case 40:if(108!=p&&58==Rt(C,d-1)){-1!=At(C+=kt(Gt(y),"&","&\f"),"&\f",wt(u?s[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=Gt(y);break;case 9:case 10:case 13:case 32:C+=Xt(p);break;case 92:C+=Qt(qt()-1,7);continue;case 47:switch(Yt()){case 42:case 47:It(un(Zt(Ut(),qt()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[u++]=Pt(C)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(C=kt(C,/\f/g,"")),f>0&&Pt(C)-d&&It(f>32?cn(C+";",r,n,d-1,l):cn(kt(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(It(S=ln(C,t,n,u,c,i,s,b,_=[],w=[],d,o),o),123===y)if(0===c)sn(C,t,S,S,_,o,d,s,w);else switch(99===h&&110===Rt(C,3)?100:h){case 100:case 108:case 109:case 115:sn(e,S,S,r&&It(ln(e,S,S,0,0,i,s,b,i,_=[],d,w),w),i,w,d,s,r?_:w);break;default:sn(C,S,S,S,[""],w,0,s,w)}}u=c=f=0,m=g=1,b=C="",d=a;break;case 58:d=1+Pt(C),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Wt())continue;switch(C+=St(y),y*m){case 38:g=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Pt(C)-1)*g,g=1;break;case 64:45===Yt()&&(C+=Gt(Ut())),h=Yt(),c=d=Pt(b=C+=en(qt())),y++;break;case 45:45===p&&2==Pt(C)&&(m=0)}}return o}function ln(e,t,n,r,i,o,a,s,l,u,c,d){for(var h=i-1,f=0===i?o:[""],p=Ot(f),m=0,v=0,g=0;m<r;++m)for(var y=0,b=Tt(e,h+1,h=wt(v=a[m])),_=e;y<p;++y)(_=Et(v>0?f[y]+" "+b:kt(b,/&\f/g,f[y])))&&(l[g++]=_);return Vt(e,t,n,0===i?yt:s,l,u,c,d)}function un(e,t,n,r){return Vt(e,t,n,gt,St(jt),Tt(e,2,-2),0,r)}function cn(e,t,n,r,i){return Vt(e,t,n,bt,Tt(e,0,r),Tt(e,r+1,-1),r,i)}var dn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hn=Object.freeze([]),fn=Object.freeze({});function pn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}function mn(e,t){Object.defineProperty(e,"toString",{value:t})}var vn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",gn="active",yn="data-styled-version",bn="6.1.19",_n="/*!sc*/\n",wn="undefined"!=typeof window&&"undefined"!=typeof document,Sn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Cn=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw pn(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(_n);return t},e}(),En=new Map,xn=new Map,kn=1,An=function(e){if(En.has(e))return En.get(e);for(;xn.has(kn);)kn++;var t=kn++;return En.set(e,t),xn.set(t,e),t},Rn=function(e,t){kn=t+1,En.set(e,t),xn.set(t,e)},Tn="style[".concat(vn,"][").concat(yn,'="').concat(bn,'"]'),Pn=new RegExp("^".concat(vn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),On=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},In=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(_n),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(Pn);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Rn(c,u),On(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(s)}}},Nn=function(e){for(var t=document.querySelectorAll(Tn),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(vn)!==gn&&(In(e,i),i.parentNode&&i.parentNode.removeChild(i))}},Ln=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(vn,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(vn,gn),r.setAttribute(yn,bn);var s=a.nc;return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},Mn=function(){function e(e){this.element=Ln(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw pn(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Dn=function(){function e(e){this.element=Ln(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Fn=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),jn=wn,zn={isServer:!wn,useCSSOMInjection:!Sn},Vn=function(){function e(e,t,n){void 0===e&&(e=fn),void 0===t&&(t={});var r=this;this.options=ht(ht({},zn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&wn&&jn&&(jn=!1,Nn(this)),mn(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return xn.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(vn,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(_n)},o=0;o<n;o++)i(o);return r}(r)})}return e.registerId=function(e){return An(e)},e.prototype.rehydrate=function(){!this.server&&wn&&Nn(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ht(ht({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Fn(n):t?new Mn(n):new Dn(n)}(this.options),new Cn(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(An(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(An(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(An(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Bn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Hn=/&/g,Wn=/^\s*\/\/.*$/gm;function Un(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Un(e.children,t)),e})}var Yn=new Vn,qn=function(){var e,t,n,r=fn.options,i=void 0===r?fn:r,o=fn.plugins,a=void 0===o?hn:o,s=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=a.slice();l.push(function(e){e.type===yt&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Hn,t).replace(n,s))}),i.prefix&&l.push(on),l.push(nn);var u=function(r,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(Wn,""),c=an(a||o?"".concat(a," ").concat(o," { ").concat(u," }"):u);i.namespace&&(c=Un(c,i.namespace));var d,h,f=[];return tn(c,(d=l.concat(function(e){e.root||(e=e.return)&&function(e){f.push(e)}(e)}),h=Ot(d),function(e,t,n,r){for(var i="",o=0;o<h;o++)i+=d[o](e,t,n,r)||"";return i})),f};return u.hash=a.length?a.reduce(function(e,t){return t.name||pn(15),Bn(e,t.name)},5381).toString():"",u}(),Kn=(t.createContext({shouldForwardProp:void 0,styleSheet:Yn,stylis:qn}),t.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=qn);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,mn(this,function(){throw pn(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=qn),this.name+e.hash},e}());var $n=function(e){return e>="A"&&e<="Z"};function Gn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;$n(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function Xn(e){return"function"==typeof e}function Qn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Jn(e){return"object"==typeof e&&"styledComponentId"in e}var Zn=function(e){return null==e||!1===e||""===e},er=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!Zn(o)&&(Array.isArray(o)&&o.isCss||Xn(o)?r.push("".concat(Gn(i),":"),o,";"):Qn(o)?r.push.apply(r,ft(ft(["".concat(i," {")],er(o),!1),["}"],!1)):r.push("".concat(Gn(i),": ").concat((t=i,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in dn||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function tr(e,t,n,r){return Zn(e)?[]:Jn(e)?[".".concat(e.styledComponentId)]:Xn(e)?!Xn(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:tr(e(t),t,n,r):e instanceof Kn?n?(e.inject(n,r),[e.getName(r)]):[e]:Qn(e)?er(e):Array.isArray(e)?Array.prototype.concat.apply(hn,e.map(function(e){return tr(e,t,n,r)})):[e.toString()];var i}function nr(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var rr=function(e){return Object.assign(e,{isCss:!0})};function ir(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Xn(e)||Qn(e))return rr(tr(nr(hn,ft([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?tr(r):rr(tr(nr(r,t)))}function or(e,t,n){if(void 0===n&&(n=fn),!t)throw pn(1,t);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e(t,n,ir.apply(void 0,ft([r],i,!1)))};return r.attrs=function(r){return or(e,t,ht(ht({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return or(e,t,ht(ht({},n),r))},r}var ar,sr=t.createContext(void 0);function lr(){var e=(0,t.useContext)(sr);if(!e)throw pn(18);return e}function ur(e){var n=t.useContext(sr),r=(0,t.useMemo)(function(){return function(e,t){if(!e)throw pn(14);if(Xn(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw pn(8);return t?ht(ht({},t),e):e}(e.theme,n)},[e.theme,n]);return e.children?t.createElement(sr.Provider,{value:r},e.children):null}sr.Consumer;var cr="function"==typeof Symbol&&Symbol.for,dr=cr?Symbol.for("react.memo"):60115,hr=cr?Symbol.for("react.forward_ref"):60112,fr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vr=((ar={})[hr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ar[dr]=mr,ar);function gr(e){return("type"in(t=e)&&t.type.$$typeof)===dr?mr:"$$typeof"in e?vr[e.$$typeof]:fr;var t}var yr=Object.defineProperty,br=Object.getOwnPropertyNames,_r=Object.getOwnPropertySymbols,wr=Object.getOwnPropertyDescriptor,Sr=Object.getPrototypeOf,Cr=Object.prototype;function Er(e,t,n){if("string"!=typeof t){if(Cr){var r=Sr(t);r&&r!==Cr&&Er(e,r,n)}var i=br(t);_r&&(i=i.concat(_r(t)));for(var o=gr(e),a=gr(t),s=0;s<i.length;++s){var l=i[s];if(!(l in pr||n&&n[l]||a&&l in a||o&&l in o)){var u=wr(t,l);try{yr(e,l,u)}catch(e){}}}}return e}var xr=/(a)(d)/gi,kr=function(e){return String.fromCharCode(e+(e>25?39:97))};var Ar=["fit-content","min-content","max-content"],Rr={};function Tr(e,t,n){if(void 0===n&&(n=!1),!n&&!Qn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Tr(e[r],t[r]);else if(Qn(t))for(var r in t)e[r]=Tr(e[r],t[r]);return e}var Pr,Or,Ir,Nr,Lr,Mr=a(5194),Dr=(Pr=Mr.StyleSheet,Or=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var t=function(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}(tr(this.rules,e)),n=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=kr(t%52)+n;return(kr(t%52)+n).replace(xr,"$1-$2")}(Bn(5381,t)>>>0);if(!Rr[n]){var r=dt(t),i=[];r.each(function(e){if("decl"===e.type){if(Ar.includes(e.value))return;i.push([e.prop,e.value])}});var o=(0,ut.Ay)(i,["borderWidth","borderColor"]),a=Pr.create({generated:o});Rr[n]=a.generated}return Rr[n]},e}(),function(e,n,r){var i=Jn(e),o=e,a=n.displayName,s=void 0===a?function(e){return function(e){return"string"==typeof e&&!0}(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):a,l=n.attrs,u=void 0===l?hn:l,c=i&&o.attrs?o.attrs.concat(u).filter(Boolean):u,d=n.shouldForwardProp;if(i&&o.shouldForwardProp){var h=o.shouldForwardProp;if(n.shouldForwardProp){var f=n.shouldForwardProp;d=function(e,t){return h(e,t)&&f(e,t)}}else d=h}var p=function(e,n){return function(e,n,r){var i=e.attrs,o=e.inlineStyle,a=e.defaultProps,s=e.shouldForwardProp,l=e.target,u=t.useContext(sr),c=function(e,t,n){void 0===e&&(e=fn);var r=ht(ht({},t),{theme:e}),i={};return n.forEach(function(e){var t,n=Xn(e)?e(r):e;for(t in n)r[t]=i[t]=n[t]}),[r,i]}(function(e,t,n){return void 0===n&&(n=fn),e.theme!==n.theme&&e.theme||t||n.theme}(n,u,a)||fn,n,i),d=c[1],h=o.generateStyleObject(c[0]),f=r,p=d.as||n.as||l,m=d!==n?ht(ht({},n),d):n,v={};for(var g in m)"$"!==g[0]&&"as"!==g&&("forwardedAs"===g?v.as=m[g]:s&&!s(g,p)||(v[g]=m[g]));return v.style=(0,t.useMemo)(function(){return Xn(n.style)?function(e){return[h].concat(n.style(e))}:n.style?[h].concat(n.style):h},[n.style,h]),r&&(v.ref=f),(0,t.createElement)(p,v)}(m,e,n)};p.displayName=s;var m=t.forwardRef(p);return m.attrs=c,m.inlineStyle=new Or(i?o.inlineStyle.rules.concat(r):r),m.displayName=s,m.shouldForwardProp=d,m.styledComponentId=!0,m.target=i?o.target:e,Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)Tr(e,i[r],!0);return e}({},o.defaultProps,e):e}}),Er(m,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),m}),Fr=function(e){return or(Dr,e)};function jr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach(function(t){Br(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Br(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty(Fr,e,{enumerable:!0,configurable:!1,get:function(){if(e in Mr&&Mr[e])return Fr(Mr[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});let Hr=lt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(Hr=e)}catch(e){Hr=lt.A}const Wr=e=>{let{disabled:n,isEmpty:r}=e;const i=n||r,o=lr();return t.createElement(Hr,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/send.svg"},resizeMode:"contain",style:Vr(Vr({},$r.buttonIcon),{},{tintColor:i?o["core-04"]||"#ACACB3":o["core-05"]||"#020001",cursor:i?"auto":"pointer"})})},Ur=e=>{let{value:n,onChangeText:i,onSend:o,disabled:a,placeholder:s,inputRef:l}=e;const u=lr();return t.createElement(Yr,{theme:u,style:["web"===r.A.OS?$r.webShadow:$r.nativeShadow]},t.createElement(qr,{ref:l,id:"chat-input",style:[$r.inputWeb],placeholder:s||"What are you looking for?",placeholderTextColor:u["core-06"]||"#999",value:n,onChangeText:i,onSubmitEditing:o,editable:!a,autoFocus:!0}),t.createElement(Kr,{onPress:o,disabled:a},t.createElement(Wr,{disabled:a,isEmpty:""===n.trim()})))},Yr=Fr.View(Ir||(Ir=jr(["\n flex-direction: row;\n padding-horizontal: 12px;\n padding-vertical: 16px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n border-radius: 8px;\n background-color: ",";\n border-color: ",";\n border-width: 1;\n height: 56px;\n"])),e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"},e=>{let{theme:t}=e;return t["core-04"]||"#ACACB3"}),qr=Fr.TextInput(Nr||(Nr=jr(["\n flex: 1;\n color: ",';\n font-family: "Roboto";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n min-height: 20px;\n max-height: 120px;\n padding-horizontal: 0;\n padding-vertical: 0;\n background-color: transparent;\n border-width: 0;\n'])),e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}),Kr=Fr.TouchableOpacity(Lr||(Lr=jr(["\n margin-left: 0;\n padding: 0;\n justify-content: center;\n align-items: center;\n height: 24;\n aspect-ratio: 1;\n border-radius: 0px;\n background-color: ",";\n"])),e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}),$r=i.A.create({webShadow:Vr({},"web"===r.A.OS?{boxShadow:"2px 8px 24px -6px rgba(55, 54, 64, 0.26)"}:{}),nativeShadow:{shadowColor:"#373640",shadowOffset:{width:2,height:8},shadowOpacity:.26,shadowRadius:12,elevation:3},inputWeb:Vr({},"web"===r.A.OS?{outlineStyle:"none",outlineWidth:0,boxShadow:"none"}:{}),buttonIcon:{height:24,width:24},sendIconText:{fontSize:18,fontWeight:"700",textAlign:"center"}});var Gr,Xr;function Qr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Jr=e=>{let{suggestions:r,onSelect:i,variant:o="default"}=e;if(!r.length)return null;const a="inline"===o?n.A:st.A,s=lr();return t.createElement(a,{showsVerticalScrollIndicator:!1,contentContainerStyle:[ti.container,"inline"===o&&ti.containerInline],style:[ti.scroll,"inline"===o&&ti.scrollInline]},r.map((e,a)=>t.createElement(t.Fragment,null,t.createElement(Zr,{key:"".concat(e,"-").concat(a),theme:s,variant:o,onPress:()=>i(e),activeOpacity:.75},t.createElement(ei,null,e)),a<r.length-1&&t.createElement(n.A,{style:ti.spacer}))))},Zr=Fr.TouchableOpacity(Gr||(Gr=Qr(["\n background-color: ",";\n border-radius: 6px;\n padding-horizontal: 8px;\n padding-vertical: 6px;\n width: 100%;\n align-self: stretch;\n justify-content: center;\n align-items: flex-start;\n"])),e=>{let{theme:t,variant:n}=e;return"inline"===n?t["core-01"]||"#FFFFFF":t["core-02"]||"#EDEDF2"}),ei=Fr.Text(Xr||(Xr=Qr(["\n color: ",";\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n"])),e=>{let{theme:t}=e;return t["core-05"]||"#1A1A1A"}),ti=i.A.create({scroll:{maxWidth:"80%",alignSelf:"flex-start",paddingHorizontal:8},scrollInline:{maxWidth:"100%",alignSelf:"stretch",paddingHorizontal:0},container:{paddingVertical:0,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch"},containerInline:{gap:6},spacer:{width:4,height:4}}),ni=(0,t.memo)(Jr);var ri,ii,oi,ai,si,li;function ui(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const ci=e=>{let{message:n,userTheme:r,hasResults:i,totalResults:o,shownResults:a,onSuggestionSelect:s,isLatest:l,isTyping:u}=e;const c="user"===n.role,d=lr();return t.createElement(hi,{theme:d,userTheme:r,isUser:c},t.createElement(fi,{theme:d,userTheme:r,isUser:c},t.createElement(pi,{isUser:c,userTheme:r,theme:d},n.text||"","assistant"===n.role&&i&&"number"==typeof o?" Found ".concat(Number(o).toLocaleString()," diamonds (showing first ").concat(a,")"):null),"assistant"===n.role&&Array.isArray(n.suggestions)&&n.suggestions.length>0&&l&&!u&&!(n.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0)&&t.createElement(mi,{theme:d},t.createElement(ni,{suggestions:n.suggestions,onSelect:e=>null==s?void 0:s(e),variant:"inline"}))))},di=(0,t.memo)(ci),hi=Fr.View(ri||(ri=ui(["\n padding-horizontal: 8px;\n margin-vertical: 0;\n width: 100%;\n ","\n"])),e=>{let{isUser:t}=e;return ir(t?ii||(ii=ui(["\n align-items: flex-end;\n "])):oi||(oi=ui(["\n align-items: flex-start;\n "])))}),fi=Fr.View(ai||(ai=ui(["\n max-width: 80%;\n padding-horizontal: 12px;\n padding-vertical: 8px;\n background-color: ",";\n border-radius: ","px;\n border-bottom-right-radius: ","px;\n border-bottom-left-radius: ","px;\n"])),e=>{let{userTheme:t,theme:n,isUser:r}=e;return r?n["core-06"]||t.userBubbleColor||"#EDEDF2":n["core-02"]||t.botBubbleColor||"#EDEDF2"},e=>{let{userTheme:t}=e;return t.borderRadius||8},e=>{let{isUser:t,userTheme:n}=e;return t?0:n.borderRadius},e=>{let{isUser:t,userTheme:n}=e;return t?n.borderRadius:0}),pi=Fr.Text(si||(si=ui(["\n color: ",";\n font-family: ",";\n font-size: ","px;\n line-height: 20px;\n"])),e=>{let{userTheme:t,theme:n,isUser:r}=e;return r?n["core-01"]||t.userTextColor||"#FFFFFF":n["core-05"]||t.botTextColor||"#000000"},e=>{let{userTheme:t}=e;return t.fontFamily||"Roboto"},e=>{let{userTheme:t}=e;return t.fontSize||16}),mi=Fr.View(li||(li=ui(["\n margin-top: 8px;\n"])));var vi=a(3384);function gi(){return"undefined"!=typeof window&&window.localStorage?window.localStorage:null}const yi={getItem:async e=>{try{if("persist:searchFilters"===e){const t="undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:null;return t?t.getItem(e):null}const t=gi();return t?t.getItem(e):null}catch(e){return null}},setItem:async(e,t)=>{try{const n=gi();n&&n.setItem(e,t)}catch(e){}},removeItem:async e=>{try{const t=gi();t&&t.removeItem(e)}catch(e){}}};let bi=!1;const _i={getItem:async()=>null,setItem:async()=>{},removeItem:async()=>{}};function wi(){return"web"===r.A.OS?yi:(bi||(console.warn("[vdb-ai-chat] AsyncStorage not initialized. Call initStorage(AsyncStorage) at app startup."),bi=!0),_i)}const Si=async e=>wi().getItem(e),Ci=async e=>wi().removeItem(e),Ei=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{const n=await wi().getItem(e);return n?JSON.parse(n):t}catch(e){return t}},xi=async(e,t)=>{try{await wi().setItem(e,JSON.stringify(t))}catch(e){}},ki=vi.A.get("window");function Ai(e){const t=new Date(e);let n=t.getHours();const r=t.getMinutes(),i=n>=12?"pm":"am";n%=12,n=n||12;const o=r<10?"0".concat(r):r;return"".concat(n,":").concat(o," ").concat(i)}let Ri=function(e){return e.LIKE="1",e.DISLIKE="2",e.UNSET="0",e}({});const Ti=async()=>{try{const e=await Ei("persist:userInfo",{});if(null==e||!e.user)return null;if("string"==typeof e.user)try{return JSON.parse(e.user)}catch(e){return null}return e.user}catch(e){return null}};let Pi=function(e){return e.WEB="web",e.IOS="ios",e.ANDROID="android",e}({}),Oi=function(e){return e.WIDGET_OPENED="ai_chat_widget_opened",e.WIDGET_CLOSED="ai_chat_widget_closed",e.CHAT_CLEARED="ai_chat_cleared",e}({});const Ii=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/iPad/.test(e)||/\bMac/.test(e)&&navigator.maxTouchPoints>0&&!/iPhone/.test(e)};var Ni,Li,Mi,Di,Fi;function ji(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}let zi=lt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(zi=e)}catch(e){}const Vi=Fr.Pressable(Ni||(Ni=ji(["\n border-width: 1;\n border-radius: 8px;\n padding-horizontal: 4px;\n padding-vertical: 4px;\n ","\n"])),e=>{let{reaction:t,type:n}=e;return t===Ri.LIKE&&"like"===n?ir(Li||(Li=ji(["\n background-color: ",";\n border-color: ",";\n "])),e=>{let{theme:t}=e;return t["success-02"]||"#DBFFE4"},e=>{let{theme:t}=e;return t["success-01"]||"#00B140"}):t===Ri.DISLIKE&&"dislike"===n?ir(Mi||(Mi=ji(["\n background-color: ",";\n border-color: ",";\n "])),e=>{let{theme:t}=e;return t["error-02"]||"#FFE2E0"},e=>{let{theme:t}=e;return t["error-01"]||"#D0021B"}):ir(Di||(Di=ji(["\n border-color: ",";\n "])),e=>{let{theme:t}=e;return t["core-03"]||"#D5D5DC"})}),Bi=Fr.Text(Fi||(Fi=ji(["\n font-size: 12px;\n color: ",";\n"])),e=>{let{theme:t}=e;return t["core-06"]||"#666"}),Hi=i.A.create({rowContainer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:6,marginHorizontal:8,marginTop:0,marginBottom:12},alignRight:{alignSelf:"flex-end"},alignLeft:{alignSelf:"flex-start"},likeDislikeContainer:{flexDirection:"row",gap:6},timeContainer:{margin:0},borderButtonHover:{backgroundColor:"#EDEDF2"}}),Wi=e=>{let{message:r,priceMode:i,handleFeedbackAction:o}=e;const a=lr(),s="user"===r.role,[l,u]=t.useState(null);t.useEffect(()=>{(async()=>{const e=await(async e=>{var t;const n=await async function(){const e=await Ei("persist:userInfo",{}),t=JSON.parse((null==e?void 0:e.user)||"{}");return(null==t?void 0:t.token)||""}(),r=await Ei("vdbchat_conversations",null);if(!r||r.token!==n)return null;const i=r.conversations||{};let o=e;if(void 0===o){const e=await Ei("persist:userInfo",{}),t=null==e?void 0:e.user;o=String(null==t?void 0:t.price_mode)||""}return String(null===(t=i[o])||void 0===t?void 0:t.conversation_id)||null})(i);u(e)})()},[i]);const c="string"==typeof r.id&&r.id.length>0&&!r.id.startsWith("bot-loading-"),d="assistant"===r.role&&!r.isLoading&&c&&!!l;return t.createElement(n.A,{style:[Hi.rowContainer,s?Hi.alignRight:Hi.alignLeft]},t.createElement(n.A,{style:Hi.timeContainer},t.createElement(Bi,{theme:a},Ai(r.createdAt))),d?t.createElement(n.A,{style:Hi.likeDislikeContainer},t.createElement(Vi,{type:"like",style:e=>[(null==e?void 0:e.hovered)&&Hi.borderButtonHover],reaction:r.reaction,onPress:()=>o(Ri.LIKE,String(l),r.id),disabled:!d},t.createElement(zi,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/like.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===Ri.LIKE?a["success-01"]||"#00B140":a["core-05"]||"#020001"}})),t.createElement(Vi,{type:"dislike",style:e=>[(null==e?void 0:e.hovered)&&Hi.borderButtonHover],reaction:r.reaction,onPress:()=>o(Ri.DISLIKE,String(l),r.id),disabled:!d},t.createElement(zi,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/dislike.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:r.reaction===Ri.DISLIKE?a["error-01"]||"#D0021B":a["core-05"]||"#020001"}}))):null)};function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ki={primaryColor:"#0b93f6",backgroundColor:"#ffffff",inputColor:"#FFF",inputBackgroundColor:"#FFFFFF",inputBorderRadius:8,inputTextColor:"#000000",userBubbleColor:"#4F4E57",userTextColor:"#ffffff",botBubbleColor:"#EDEDF2",botTextColor:"#000000",borderRadius:8,fontFamily:void 0,fontSize:16};function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(t){Xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Qi(){const e=await Ei("persist:userInfo",{}),t=JSON.parse((null==e?void 0:e.user)||"{}");return(null==t?void 0:t.token)||""}async function Ji(){const e=await Qi(),t=await Si("persist:appState")||"{}";let n="";try{const e=JSON.parse(t);n=null!=e&&e.installationIdentifier?JSON.parse(e.installationIdentifier):""}catch(e){n=""}const r=await Si("session_cookie")||"";return{"Content-Type":"application/json",Accept:"application/json, text/plain, */*",Authorization:"Token token=".concat(e,",installation_identifier=").concat(n),Cookie:"vdb-server_session=".concat(r)}}async function Zi(){const e=await Qi(),t=await Ei("vdbchat_conversations",null);return t&&t.token===e?t.conversations||{}:(await Ci("vdbchat_conversations"),{})}async function eo(e){const t={token:await Qi(),conversations:e};await xi("vdbchat_conversations",t)}function to(e){const t=Array.isArray(e)?e:null==e?void 0:e.messages;return Array.isArray(t)?t.map((e,t)=>{var n,r,i,o,a,s;return{id:String(null!==(n=e.id)&&void 0!==n?n:"".concat(e.role,"-").concat(t,"-").concat(null!==(r=e.created_at)&&void 0!==r?r:Date.now())),role:"user"===e.role?"user":"assistant",text:String(null!==(i=null!==(o=e.content)&&void 0!==o?o:e.text)&&void 0!==i?i:""),createdAt:"string"==typeof e.created_at?Date.parse(e.created_at):"number"==typeof e.createdAt?e.createdAt:Date.now(),search_payload:null!==(a=e.search_payload)&&void 0!==a?a:{},reaction:String(null!==(s=e.reaction)&&void 0!==s?s:"0"),suggestions:Array.isArray(e.suggestions)?e.suggestions:void 0}}):[]}async function no(e,t,n){var r,i;const o=await Zi(),a=null!==(r=null==o||null===(i=o[null!=n?n:""])||void 0===i?void 0:i.conversation_id)&&void 0!==r?r:null;if(void 0===n)return;const s={};a&&(s.conversation_id=Number.isNaN(Number(a))?a:Number(a));const l=await fetch(e,{method:"POST",headers:await Ji(),body:Object.keys(s).length?JSON.stringify(s):void 0});if(!l.ok)throw new Error("POST ".concat(e," failed with ").concat(l.status));const u=await l.json();if(u&&null!=u.conversation_id&&n){const e=Gi({},o);e[n]={conversation_id:u.conversation_id},await eo(e)}return u}async function ro(e,t){const n=await Ei("persist:userInfo",{}),{activeProduct:r}=JSON.parse(await Si("persist:appState")||"{}"),i=JSON.parse((null==n?void 0:n.searchResultViewType)||"{}"),o=null==i?void 0:i[null!=r?r:"default"],a=JSON.parse(await Si("persist:searchFilters")||"{}"),s="string"==typeof(null==a?void 0:a.sectionName)?JSON.parse(a.sectionName):null==a?void 0:a.sectionName,l=JSON.parse(await Si("persist:root")||"{}");let u=("string"==typeof(null==l?void 0:l.selectedGroups)?JSON.parse(l.selectedGroups):(null==l?void 0:l.selectedGroups)||{})[null!=r?r:""],c=!1;u&&u.includes(0)&&(c=!0,u=u.filter(e=>0!==e));let d={};u&&u.length>0&&(d=Object.assign(d,{group_ids:u}));const h=await fetch("https://pdpdemo1.demo.customvirtual.app/v3/vdb/search_diamonds",{method:"POST",headers:await Ji(),body:JSON.stringify({vdb:Gi(Gi(Gi({},e),d),{},{page_size:5,price_mode:t,vdb_setting:c?"true":"false",results_view_type:o||"grid",featured:"false",pair:"Single Stones"===s?"other":"pair",with_available_items:!1,page_number:1})})});if(!h.ok)throw new Error("POST failed with ".concat(h.status));return await h.json()}var io;const oo=Fr.Text(io||(lo=["\n color: ",';\n font-family: "Roboto";\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n text-align: center;\n'],uo||(uo=lo.slice(0)),io=Object.freeze(Object.defineProperties(lo,{raw:{value:Object.freeze(uo)}}))),e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}),ao=i.A.create({container:{alignSelf:"stretch",paddingVertical:6,paddingHorizontal:16,backgroundColor:"transparent",alignItems:"center",justifyContent:"center"}}),so=e=>{let{active:r}=e;return r?t.createElement(n.A,{style:ao.container},t.createElement(oo,null,"This AI feature is in beta and may make mistakes.")):null};var lo,uo,co=a(6413),ho=a(8506);let fo=lt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(fo=e)}catch(e){}const po=e=>{let{data:r,onViewAll:i,onItemPress:o}=e;return r&&r.length?t.createElement(n.A,{style:mo.wrapper},t.createElement(st.A,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:mo.listContent},r.map(e=>t.createElement(co.A,{key:e.id,onPress:()=>{null==o||o(e)}},t.createElement(n.A,{key:e.id,style:mo.card},e.image_thumb_url?t.createElement(fo,{style:mo.image,source:{uri:e.image_thumb_url}}):null,t.createElement(n.A,{style:mo.content},t.createElement(ho.A,{numberOfLines:2,style:mo.title},e.short_title),t.createElement(ho.A,{style:mo.price},"$",e.total_sales_price)))))),t.createElement(co.A,{style:mo.button,activeOpacity:.8,onPress:i},t.createElement(ho.A,{style:mo.buttonText},"View All ",">>"))):null},mo=i.A.create({wrapper:{paddingHorizontal:12,marginHorizontal:12,marginBottom:12,paddingTop:6,paddingBottom:14,backgroundColor:"#fff",borderRadius:8,borderWidth:1,borderColor:"#e8e8e8",elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},listContent:{gap:12,paddingVertical:6},card:{width:150,backgroundColor:"#fff",borderRadius:14,overflow:"hidden",borderColor:"#e8e8e8",borderWidth:1,elevation:3,shadowColor:"#000",shadowOpacity:.08,shadowOffset:{width:0,height:2},shadowRadius:6},image:{width:"100%",height:120,borderBottomWidth:1,borderBottomColor:"#e8e8e8"},content:{padding:10,gap:4},title:{fontSize:13,color:"#222",fontWeight:"500"},price:{marginTop:4,fontSize:14,fontWeight:"700",color:"#000"},button:{marginTop:12,alignSelf:"center",paddingHorizontal:20,paddingVertical:8,backgroundColor:"#804195",borderRadius:20,width:300,alignItems:"center"},buttonText:{color:"#fff",fontSize:14,fontWeight:"600"}}),vo=(0,t.memo)(po);var go,yo,bo,_o,wo,So,Co=a(4129);function Eo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}let xo=lt.A;if("web"!==r.A.OS)try{const e=Object(function(){var e=new Error("Cannot find module 'expo-image'");throw e.code="MODULE_NOT_FOUND",e}());e&&(xo=e)}catch(e){}const ko=[{type:"field",field:"shape_long",style:"primary"},{type:"fieldWithSuffix",field:"size",style:"secondary",suffix:"ct",showCurrencyIf:"price_per_carat"},{type:"field",field:"color",style:"primary"},{type:"field",field:"clarity_short",style:"primary"},{type:"separator"},{type:"group",items:[{type:"field",field:"cut_short",style:"primary"},{type:"field",field:"polish_short",style:"primary",prefix:"/"},{type:"field",field:"symmetry_short",style:"primary",prefix:"/"}]},{type:"separator"},{type:"field",field:"fluorescence_intensity_short",style:"primary"},{type:"separator"},{type:"field",field:"lab_short",style:"primary"},{type:"separator"},{type:"field",field:"discount_percent",style:"secondary",format:"percent"},{type:"lineBreak"},{type:"field",field:"depth_percent",style:"secondary",prefix:"D",format:"percent"},{type:"separator"},{type:"field",field:"table_percent",style:"secondary",prefix:"T",format:"percent"},{type:"separator"},{type:"field",field:"measurement",style:"secondary"},{type:"separator"},{type:"priceField",field:"price_per_carat",style:"secondary",suffix:"PC"},{type:"priceField",field:"total_sales_price",style:"secondary",prefix:" ="}],Ao=(e,r,i,o)=>{var a;const s="secondary"===e.style?Io:Oo,l=i||"$",u=lr();switch(e.type){case"separator":return t.createElement(s,{key:o,theme:u},"·");case"lineBreak":return t.createElement(n.A,{key:o,style:Mo.lineBreak});case"field":{var c;let n=null!==(c=r[e.field])&&void 0!==c?c:"-";return"percent"===e.format&&"-"!==n&&(n="".concat(n,"%")),t.createElement(t.Fragment,{key:o},e.prefix&&t.createElement(s,{theme:u},e.prefix),t.createElement(s,{theme:u},n))}case"fieldWithSuffix":{var d;const i=null!==(d=r[e.field])&&void 0!==d?d:"-",a=!e.showCurrencyIf||r[e.showCurrencyIf];return t.createElement(n.A,{key:o,style:Mo.rowCenter},t.createElement(s,{theme:u},i),a&&e.suffix&&t.createElement(s,{theme:u},e.suffix))}case"priceField":{const i=r[e.field];return t.createElement(n.A,{key:o,style:Mo.rowCenter},e.prefix&&t.createElement(s,{theme:u},e.prefix),i&&t.createElement(s,{theme:u},l),t.createElement(s,{theme:u},null!=i?i:"-"),e.suffix&&t.createElement(s,{theme:u},e.suffix))}case"group":return t.createElement(n.A,{key:o,style:Mo.rowCenter},null===(a=e.items)||void 0===a?void 0:a.map((e,t)=>Ao(e,r,i,t)));default:return null}},Ro=e=>{let{data:r,totalResults:i,onViewAll:o,onItemPress:a,item:s}=e;if(!r||!r.length)return null;const l=lr(),[u,c]=(0,t.useState)(null);return(0,t.useEffect)(()=>{(async()=>{const e=await(async()=>{const e=await Ei("persist:userInfo",{});return(null==e?void 0:e.user).currency_symbol||"$"})();c(e)})()},[]),t.createElement(To,{theme:l},t.createElement(st.A,{showsVerticalScrollIndicator:!1,contentContainerStyle:Mo.listContent},r.map((e,r)=>t.createElement(Co.A,{key:e.id,onPress:()=>null==a?void 0:a(e),style:e=>{let{hovered:t}=e;return[Mo.itemContainer,t&&Mo.itemHover]}},t.createElement(n.A,{style:Mo.left},t.createElement(n.A,{style:Mo.serialContainer},t.createElement(Po,null,r+1,".")),t.createElement(n.A,{style:Mo.tokens},ko.map((t,n)=>Ao(t,e,u,n))))))),t.createElement(No,{activeOpacity:.8,onPress:()=>o(s)},t.createElement(Lo,null,"View All ".concat(i," Results")),t.createElement(xo,{source:{uri:"https://cdn.vdbapp.com/ai/chat-widget/assets/img/right.svg"},resizeMode:"contain",style:{width:20,height:20,tintColor:l["primary-cont"]||"#ffffff"}})))},To=Fr.View(go||(go=Eo(["\n padding-horizontal: 8px;\n"]))),Po=Fr.Text(yo||(yo=Eo(["\n font-size: 13px;\n color: ",";\n font-weight: 500;\n"])),e=>{let{theme:t}=e;return t["core-05"]||"#020001"}),Oo=Fr.Text(bo||(bo=Eo(["\n font-size: 13px;\n color: ",';\n font-weight: 400;\n font-family: "Roboto";\n font-style: normal;\n'])),e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}),Io=Fr.Text(_o||(_o=Eo(["\n font-size: 13px;\n color: ",';\n font-weight: 500;\n font-family: "Roboto";\n font-style: normal;\n'])),e=>{let{theme:t}=e;return t["core-05"]||"#020001"}),No=Fr.TouchableOpacity(wo||(wo=Eo(["\n margin-top: 12px;\n margin-horizontal: 12px;\n align-self: center;\n padding-horizontal: 16px;\n padding-vertical: 6px;\n background-color: ",";\n border-radius: 8px;\n align-items: center;\n gap: 16px;\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n"])),e=>{let{theme:t}=e;return t["primary-bg-static"]||"#292735"}),Lo=Fr.Text(So||(So=Eo(["\n color: ",";\n font-size: 14px;\n font-weight: 600;\n"])),e=>{let{theme:t}=e;return t["primary-cont"]||"#ffffff"}),Mo=i.A.create({listContent:{gap:8},left:{flexDirection:"row",alignItems:"flex-start",minWidth:0},serialContainer:{alignItems:"flex-start",justifyContent:"center",marginRight:4},tokens:{flexDirection:"row",flexWrap:"wrap",gap:2,flex:1,minWidth:0},lineBreak:{width:"100%",height:0},rowCenter:{flexDirection:"row",alignItems:"center"},priceContainer:{alignItems:"flex-start",justifyContent:"center"},itemContainer:{paddingVertical:2},itemHover:{backgroundColor:"#EDEDF2"}}),Do=(0,t.memo)(Ro),Fo=e=>{let{data:n,onViewAll:r,onItemPress:i,variant:o="list",totalResults:a,item:s}=e;return n&&n.length?"list"===o?t.createElement(Do,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s}):t.createElement(vo,{data:n,onViewAll:r,onItemPress:i,totalResults:a,item:s}):null},jo=e=>{let{messageId:i,payload:o,onFetched:a,priceMode:s}=e;const{ref:l,inView:u}=function(){const e=(0,t.useRef)(null),[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if("web"!==r.A.OS)return void i(!0);const t=e.current;if(!t||"undefined"==typeof IntersectionObserver)return void i(!0);const n=new IntersectionObserver(e=>{const t=e[0];i(t.isIntersecting)},{root:null,rootMargin:"0px",threshold:.1});return n.observe(t),()=>{n.disconnect()}},[]),{ref:e,inView:n}}(),c=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{c.current||o&&"object"==typeof o&&u&&(c.current=!0,(async()=>{try{const e=await ro(o,s);a(i,e)}catch(e){console.error("Lazy fetch products failed",e)}})())},[u,i,a,o,s]),t.createElement(n.A,{ref:l,style:{height:1}})};function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){Bo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ho=e=>{let t="web";if(e)switch(e){case"Linux":t="android";break;case"iPhone":t="ios";break;default:t="web"}else t=String(r.A.OS);return(e=>{switch(e){case Pi.WEB:return 0;case Pi.IOS:return 1;case Pi.ANDROID:default:return 2}})(t).toString()},Wo=async()=>{var e,t,n,i;const o=await Ti(),a="web"===r.A.OS?{system_type_enum:Ho(null),platform_action_enum:"0"}:{};return Vo({user_company_id:null==o||null===(e=o.company_id)||void 0===e?void 0:e.toString(),user_company_name:null==o?void 0:o.company,user_email:null==o?void 0:o.email,user_id:null==o||null===(t=o.id)||void 0===t?void 0:t.toString(),user_name:null!=o&&o.first_name?"".concat(null==o?void 0:o.first_name," ").concat(null==o?void 0:o.last_name):void 0,user_price_mode:null==o||null===(n=o.price_mode)||void 0===n?void 0:n.toString(),price_mode:null==o||null===(i=o.price_mode)||void 0===i?void 0:i.toString(),has_plan_details:!(null==o||!o.plan_details),userAgent:"web"===r.A.OS?navigator.userAgent:""},a)};var Uo=a(7918),Yo=a.n(Uo),qo=a(5685);var Ko=a(5556),$o=a.n(Ko);const Go=$o().oneOfType([$o().string,$o().number]),Xo={all:$o().bool,grid:$o().bool,aural:$o().bool,braille:$o().bool,handheld:$o().bool,print:$o().bool,projection:$o().bool,screen:$o().bool,tty:$o().bool,tv:$o().bool,embossed:$o().bool},Qo={orientation:$o().oneOf(["portrait","landscape"]),scan:$o().oneOf(["progressive","interlace"]),aspectRatio:$o().string,deviceAspectRatio:$o().string,height:Go,deviceHeight:Go,width:Go,deviceWidth:Go,color:$o().bool,colorIndex:$o().bool,monochrome:$o().bool,resolution:Go,type:Object.keys(Xo)},{type:Jo,...Zo}=Qo,ea={minAspectRatio:$o().string,maxAspectRatio:$o().string,minDeviceAspectRatio:$o().string,maxDeviceAspectRatio:$o().string,minHeight:Go,maxHeight:Go,minDeviceHeight:Go,maxDeviceHeight:Go,minWidth:Go,maxWidth:Go,minDeviceWidth:Go,maxDeviceWidth:Go,minColor:$o().number,maxColor:$o().number,minColorIndex:$o().number,maxColorIndex:$o().number,minMonochrome:$o().number,maxMonochrome:$o().number,minResolution:Go,maxResolution:Go,...Zo};var ta={all:{...Xo,...ea},types:Xo,matchers:Qo,features:ea};const na=(0,t.createContext)(void 0),ra=e=>{if(e)return Object.keys(e).reduce((t,n)=>(t[(0,qo.default)(n)]=e[n],t),{})},ia=()=>{const e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current=!0},[]),e.current},oa=e=>{const n=()=>(e=>e.query||(e=>{const t=[];return Object.keys(ta.all).forEach(n=>{const r=e[n];null!=r&&t.push(((e,t)=>{const n=(0,qo.default)(e);return"number"==typeof t&&(t=`${t}px`),!0===t?n:!1===t?`not ${n}`:`(${n}: ${t})`})(n,r))}),t.join(" and ")})(e))(e),[r,i]=(0,t.useState)(n);return(0,t.useEffect)(()=>{const e=n();r!==e&&i(e)},[e]),r},aa=(e,n,r)=>{const i=(e=>{const n=(0,t.useContext)(na),r=()=>ra(e)||ra(n),[i,o]=(0,t.useState)(r);return(0,t.useEffect)(()=>{const e=r();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0})(i,e)||o(e)},[e,n]),i})(n),o=oa(e);if(!o)throw new Error("Invalid or missing MediaQuery!");const a=((e,n)=>{const r=()=>Yo()(e,n||{},!!n),[i,o]=(0,t.useState)(r),a=ia();return(0,t.useEffect)(()=>{if(a){const e=r();return o(e),()=>{e&&e.dispose()}}},[e,n]),i})(o,i),s=(e=>{const[n,r]=(0,t.useState)(e.matches);return(0,t.useEffect)(()=>{const t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),n})(a),l=ia();return(0,t.useEffect)(()=>{l&&r&&r(s)},[s]),(0,t.useEffect)(()=>()=>{a&&a.dispose()},[]),s},sa={transparent:"transparent","main-01":"#292735","main-02":"#37363F","main-03":"#E3E3E9","main-04":"#3378F6","main-05":"#ffffff","main-06":"#292735","diam-01":"#804195","diam-02":"#713782","diam-03":"#EEE1F3","diam-04":"#9138AE","diam-05":"#ffffff","diam-06":"#9138AE","core-01":"#ffffff","core-02":"#EDEDF2","core-03":"#D5D5DC","core-04":"#ACACB3","core-05":"#020001","core-06":"#4F4E57","extra-01":"#A1A0AB","extra-02":"#292735","extra-03":"#E4E4EC","extra-04":"#DADAE0","extra-05":"#ffffff","extra-06":"#4F4E57","gem-01":"#3B72CC","gem-02":"#3C62A0","gem-03":"#DCE6F6","gem-04":"#3E76D2","gem-05":"#ffffff","gem-06":"#3E76D2","jewelry-01":"#58B8A5","jewelry-02":"#4CA191","jewelry-03":"#D6F1ED","jewelry-04":"#27AC92","jewelry-05":"#ffffff","jewelry-06":"#27AC92","lab-01":"#E97F5B","lab-02":"#DA704B","lab-03":"#F9E2D9","lab-04":"#E87B56","lab-05":"#ffffff","lab-06":"#E87B56","over-01":"#000000b3","over-02":"rgba(55,54,64,0.3)","over-03":"rgba(255,255,255,0.7)","over-04":"#ffffff","cont-00":"#ffffff","success-02":"#DBFFE4","success-01":"#00B140","error-02":"#FFE2E0","error-01":"#D0021B","warn-02":"#FFF8DB","warn-01":"#FFA500","primary-bg-static":"#292735","primary-bg-hover":"#37363F","primary-bg-disabled":"#D5D5DC","primary-cont":"#ffffff","primary-cont-disabled":"#ACACB3","secondary-bor-disabled":"#D5D5DC","secondary-cont-disabled":"#ACACB3","secondary-bg-hover":"#E3E3E9","secondary-bor-hover":"#37363F","secondary-bor-static":"#292735","secondary-cont":"#292735","tertiary-bg-static":"#E3E3E9","tertiary-bg-disabled":"#D5D5DC","tertiary-cont":"#292735","tertiary-cont-disabled":"#ACACB3","link-static":"#3378F6","link-hover":"#292735","option-bg-static":"#E4E4EC","option-bg-hover":"#DADAE0","option-bg-active":"#A1A0AB","option-cont":"#4F4E57","option-cont-active":"#ffffff","knob-bg-hover":"#E4E4EC","knob-bg-active":"#292735","knob-cont":"#ffffff","knob-bor":"#292735","toggle-bg-static":"#DADAE0","toggle-bg-on":"#292735","toggle-cont":"#ffffff","option-bg-disabled":"#D5D5DC","option-cont-disabled":"#ACACB3","knob-bg-disabled-off":"#EDEDF2","knob-bg-disabled-on":"#D5D5DC","knob-cont-disabled-on":"#ffffff","toggle-bg-disabled":"#D5D5DC","toggle-cont-disabled":"#EDEDF2","header-cont":"#ffffff","header-btn-cont":"#ffffff","header-bg-static":"#37363F","header-btn-bg-hover":"#37363F","header-btn-bg-active":"#E3E3E9","header-btn-bg-static":"#292735","header-btn-bor-hover":"#292735","header-btn-cont-active":"#292735","knob-bg-static":"#ffffff",Shadows:{Huge:{x:"2",y:"16",blur:"32",type:"dropShadow",color:"#37364066",spread:"-8"},Gentle:{x:"1",y:"2",blur:"4",type:"dropShadow",color:"#37364014",spread:"-2"},Normal:{x:"2",y:"8",blur:"24",type:"dropShadow",color:"#37364042",spread:"-6"},"Bottom-scroll":{x:"0",y:"-8",blur:"24",type:"dropShadow",color:"#37364029",spread:"-8"}}};function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ca(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let da=null;if("web"!==r.A.OS)try{da=a(Object(function(){var e=new Error("Cannot find module 'expo-device'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){}const ha=e=>{var n,i;let{children:o}=e;const[a,s]=(0,t.useState)(sa);if((0,t.useEffect)(()=>{(async()=>{try{const e=JSON.parse(await Si("persist:root")||"{}"),t=e.theme?JSON.parse(e.theme):null;t&&s(t)}catch(e){}})()},[]),"web"===r.A.OS&&window.matchMedia("print").matches)return null;const l=aa({maxWidth:767}),u=aa({minWidth:767,maxWidth:1279}),c=aa({minWidth:1279}),{width:d}=ki,h=l||d<=767,f=u||d>767&&d<=1279||"iPadOS"===(null===(n=da)||void 0===n?void 0:n.osName)||Ii(),p=(c||d>1279)&&!("iPadOS"===(null===(i=da)||void 0===i?void 0:i.osName)||Ii()),m=p&&!f&&!h,v={isMobile:h,isTablet:f,isDesktop:p,isLargeScreen:m},g=(0,t.useMemo)(()=>ua(ua({},a),v),[a,h,f,p,m]);return t.createElement(ur,{theme:g},o)};var fa,pa,ma,va,ga,ya;function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ca=(0,t.forwardRef)((i,o)=>{var a;let{apiUrl:s,userToken:l,priceMode:u,modalHeight:c,theme:d,initialMessages:h=[],placeholder:f,onClose:p,onClearChat:m,onViewAllPress:v,onItemPress:g,isBetaMode:y}=i;const[b,_]=(0,t.useState)(h),[w,S]=(0,t.useState)(""),[C,E]=(0,t.useState)(!1),[x,k]=(0,t.useState)(null),[A,R]=(0,t.useState)(null),[T,P]=(0,t.useState)(""),[O,I]=(0,t.useState)(0),[N,L]=(0,t.useState)(!0),[M,D]=(0,t.useState)({}),[F,j]=(0,t.useState)(new Set),[z,V]=(0,t.useState)(u||null),[B,H]=(0,t.useState)(l||""),W=(0,t.useRef)(null),U=(0,t.useRef)(null),Y=(0,t.useMemo)(()=>{return e=d,Yi(Yi({},Ki),e||{});var e},[d]),{_identify:q}=(()=>{const e=(0,t.useContext)(it);return{trackEvent:async(t,n)=>{const r=await Wo(),i=e||window.analytics;i&&await i.track(t,Vo(Vo({},r),n))},_identify:async(t,n)=>{const r=e||window.analytics;r&&await r.identify(t,n)},_track:async(t,n)=>{const i=await Wo();if((o=null==i?void 0:i.userAgent)&&/^Mozilla\/5\.0 \([^;]+; CPU [^)]+ like Mac OS X\) AppleWebKit\/600\.1\.4 \(KHTML, like Gecko\) Version\/\d\.0 Mobile\/10B329 Safari\/8536\.25$/.test(o))return void console.warn("Skipping tracking for Segment user agent:",i.userAgent);var o;if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!e&&"web"===r.A.OS||[/bot/i,/crawl/i,/spider/i,/HeadlessChrome/i,/PhantomJS/i,/slurp/i,/curl/i,/wget/i,/httpclient/i].some(t=>t.test(e))}(null==i?void 0:i.userAgent))return void console.warn("Skipping tracking for bot user agent:",i.userAgent);const a=e||window.analytics;if(!a)return;const s=await Ti();null!=s&&s.id?await a.identify("".concat(s.id),{name:"".concat(s.first_name," ").concat(s.last_name),email:s.email,country:s.country}):(console.error("Track Event tracked without user:",t,JSON.stringify(n)),console.error("Can't identify as user is not logged in",JSON.stringify(s))),await a.track(t,Vo(Vo({},i),n))}}})(),K=Boolean(y),$=lr(),G=$.isTablet,X="No results found for your search. Try adjusting your filters or query.";(0,t.useEffect)(()=>{(async()=>{try{if(!l){const e=await Ei("persist:userInfo",{}),t=JSON.parse((null==e?void 0:e.user)||"{}"),n=(null==t?void 0:t.token)||"";n&&H(n)}}catch(e){console.error("Failed to load auth data from storage",e)}})()},[l]);const Q=e=>{const t=JSON.stringify(null==e?void 0:e.search_payload),n=null==e?void 0:e.search_payload;if(!n)return;const i=s.split("v3"),o="".concat(i[0],"webapp/").concat("true"===n.lab_grown?"lab-grown-diamonds":"natural-diamonds","/search?priceMode=").concat(z,"&productType=").concat("true"===n.lab_grown?"lab_grown_diamond":"diamond","&fromNewFilterScreen=false&filterSplitStep=1&sectionName=Single%20Stones&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=").concat(t);v?v(o,n):"web"===r.A.OS&&window.open(o,"_parent")},J=(0,t.useCallback)(e=>{const t=s.split("v3"),n="".concat(t[0],"webapp/").concat("lab_grown_diamond"===e.type?"lab-grown-diamonds":"natural-diamonds","/item-detail/").concat(e.id,"?productType=").concat(e.type,"&priceMode=").concat(z,"&breadCrumbLabel=Stone%20Details");g?g(n,e):"web"===r.A.OS&&window.open(n,"_parent")},[s,z,g]),Z=(0,t.useMemo)(()=>Boolean(B),[B]),ee=(0,t.useMemo)(()=>({conversationId:B}),[B]),te=(0,t.useCallback)(async(e,t,n)=>{try{let r="0";_(e=>{const t=e.find(e=>e.id===n);return r=(null==t?void 0:t.reaction)||"0",e});const i=r===e?Ri.UNSET:e,o=await(async(e,t,n)=>{const r="https://pdpdemo1.demo.customvirtual.app/v3/agent_conversations/".concat(t,"/conversation_messages/").concat(n,"/reaction"),i={reaction:e};return await fetch(r,{method:"POST",headers:await Ji(),body:JSON.stringify(i)})})(i,t,n);o.ok?_(e=>e.map(e=>e.id===n?wa(wa({},e),{},{reaction:i}):e)):console.error("Feedback API failed",o.status)}catch(e){console.error("Feedback API error",e)}},[]);(0,t.useEffect)(()=>{let e=!1;return h.length||(async()=>{if(Z)try{const t=await no(s,0,z);if(!e){const e=to(t).reverse();if(0===e.length){const e={id:"",role:"assistant",text:"Hello! How can I help you today?",createdAt:Date.now(),isLoading:!1,suggestions:["Search Natural Diamonds","Search Lab-Grown Diamonds"],search_payload:{},reaction:"0"};_([e]),setTimeout(()=>{var e;null===(e=W.current)||void 0===e||e.scrollToEnd({animated:!1})},0)}else _(e),setTimeout(()=>{var e;null===(e=W.current)||void 0===e||e.scrollToEnd({animated:!1})},0)}}catch(e){console.error("Failed to fetch initial messages",e)}})(),()=>{e=!0}},[s,ee,h.length,Z,z]);const ne=(0,t.useCallback)(async e=>{const t=e.trim();if(!t||C)return;const n={id:"user-".concat(Date.now()),role:"user",text:t,createdAt:Date.now()},r="bot-loading-".concat(Date.now()),i={id:r,role:"assistant",text:"Thinking",createdAt:Date.now(),reaction:"0",isLoading:!0,search_payload:{}};_(e=>[...e,n,i]),k(r),E(!0);try{if(!Z)return void _(e=>e.map(e=>e.id===r?wa(wa({},e),{},{text:"Chat is unavailable (missing user authentication).",isLoading:!1}):e));const e=await async function(e,t,n,r,i){var o,a;const s=await Zi(),l=null!==(o=null==s||null===(a=s[i])||void 0===a?void 0:a.conversation_id)&&void 0!==o?o:null;if(void 0===i)return null;const u={query:t};l&&(u.conversation_id=Number.isNaN(Number(l))?l:Number(l));const c=await fetch(e,{method:"POST",headers:await Ji(),body:JSON.stringify(u)});if(!c.ok)throw new Error("POST ".concat(e," failed with ").concat(c.status));const d=await c.json();if(d&&null!=d.conversation_id&&i){const e=Gi({},s);e[i]={conversation_id:d.conversation_id},await eo(e)}return d}(s,t,0,0,z),n=to(e).find(e=>"assistant"===e.role);if(null!=n&&n.text){if(null!=n&&n.search_payload&&"object"==typeof n.search_payload&&Object.keys(n.search_payload).length>0){const e=await ro(n.search_payload,z);var o;if(!(e&&e.response&&e.response.body&&Array.isArray(e.response.body.diamonds)&&e.response.body.diamonds.length>0))return k(null),R(null),P(""),_(e=>e.map(e=>{var t,i;return e.id===r?wa(wa({},e),{},{id:null!==(t=null==n?void 0:n.id)&&void 0!==t?t:e.id,text:X,isLoading:!1,search_payload:null!==(i=n.search_payload)&&void 0!==i?i:{}}):e})),void(null===(o=U.current)||void 0===o||o.focus());D(t=>wa(wa({},t),{},{[n.id]:e}))}k(null),_(e=>e.map(e=>{var t;return e.id===r?wa(wa({},e),{},{id:n.id,text:"",isLoading:!1,suggestions:n.suggestions,search_payload:null!==(t=n.search_payload)&&void 0!==t?t:{}}):e})),setTimeout(()=>{var e;R(n.id),P(n.text),null===(e=W.current)||void 0===e||e.scrollToEnd({animated:!0})},50)}else _(e=>e.map(e=>e.id===r?wa(wa({},e),{},{isLoading:!1}):e))}catch(e){_(e=>e.map(e=>e.id===r?wa(wa({},e),{},{text:"Sorry, something went wrong. Please try again.",isLoading:!1}):e)),console.error(e)}finally{var a;E(!1),k(null),null===(a=U.current)||void 0===a||a.focus()}},[s,C,b,ee,Z,z,M]),re=(0,t.useCallback)(async()=>{const e=w.trim();e&&(S(""),ne(e))},[w,ne]),ie=(0,t.useCallback)(e=>{ne(e)},[ne]),oe=(0,t.useCallback)(async e=>{const t=e.id;try{j(e=>new Set(e).add(t));const n=null==e?void 0:e.search_payload;if(!n||0===Object.keys(n).length)return;const r=await ro(n,z);D(e=>wa(wa({},e),{},{[t]:r}))}catch(e){console.error("Reload results failed",e)}finally{j(e=>{const n=new Set(e);return n.delete(t),n})}},[]);(0,t.useEffect)(()=>(e.A.addListener("clearChat",se),e.A.addListener("changePriceMode",e=>ae(e.priceMode)),ae(),(async()=>{var e;const t=await Ti(),n=null==t?void 0:t.id,r=null!==(e=JSON.stringify(null==t?void 0:t.email))&&void 0!==e?e:void 0;n&&q("".concat(n),{email:r}).then()})(),()=>{e.A.removeAllListeners("clearChat"),e.A.removeAllListeners("changePriceMode")}),[]);const ae=async e=>{if(!e&&u&&(e=u),!e){var t;let n=await Ei("persist:userInfo",{user:void 0});n=n&&n.user?JSON.parse(n.user):{},e=null===(t=n)||void 0===t?void 0:t.price_mode}V(void 0===e?null:String(e))},se=(0,t.useCallback)(async()=>{try{var e;const t=await Ei("vdbchat_conversations",null);if(t&&z&&null!==(e=t.conversations)&&void 0!==e&&e[z]){const e=wa({},t.conversations);delete e[z],await xi("vdbchat_conversations",{token:t.token,conversations:e})}_([]),D({}),j(new Set),E(!1),k(null),R(null),P("");const n=to(await no(s,0,z)).reverse();if(0===n.length){const e={id:"",role:"assistant",text:"Hello! How can I help you today?",createdAt:Date.now(),isLoading:!1,suggestions:["Search Natural Diamonds","Search Lab-Grown Diamonds"],reaction:"0",search_payload:{}};_([e])}else _(n);setTimeout(()=>{var e;null===(e=W.current)||void 0===e||e.scrollToEnd({animated:!1})},500),null==m||m()}catch(e){console.error("Failed to clear chat",e)}},[s,z]);(0,t.useEffect)(()=>{if(!x||A)return;let e=0;const t=setInterval(()=>{e=(e+1)%3;const t=".".repeat(e+1);_(e=>e.map(e=>e.id===x&&e.isLoading?wa(wa({},e),{},{text:"".concat("Thinking").concat(t)}):e))},500);return()=>{clearInterval(t)}},[x,A]),(0,t.useImperativeHandle)(o,()=>({clearChat:se}),[se]);const le=(0,t.useRef)(0);return(0,t.useEffect)(()=>{if(!A||!T)return void(le.current=0);le.current=0;const e=T.length,t=A,n=T,r=setInterval(()=>{le.current+=1;const i=le.current,o=n.slice(0,i);_(e=>e.map(e=>e.id===t?wa(wa({},e),{},{text:o}):e)),i>=e&&(clearInterval(r),R(null),P(""),_(e=>e.map(e=>e.id===t?wa(wa({},e),{},{isLoading:!1}):e)))},25);return()=>{clearInterval(r)}},[A,T]),t.createElement(ha,null,t.createElement(Ea,{theme:$},t.createElement(at.A,{style:{flex:1},behavior:"ios"===r.A.OS?"padding":"height",keyboardVerticalOffset:100},t.createElement(st.A,{ref:W,keyboardShouldPersistTaps:"handled",onScroll:e=>{const{contentOffset:t,contentSize:n,layoutMeasurement:r}=e.nativeEvent;I(t.y);const i=n.height-(r.height+t.y);L(i<48)},scrollEventThrottle:16,style:c?{height:c,backgroundColor:$["core-01"]||"#FFFFFF"}:{backgroundColor:$["core-01"]||"#FFFFFF"},contentContainerStyle:wa(wa({backgroundColor:$["core-01"]||(null==Y?void 0:Y.listContentBackgroundColor)||"#FFFFFF"},Ta.listContent),{},{justifyContent:0===b.length?"center":"flex-end",minHeight:c||void 0},G?{maxWidth:608,alignSelf:"center",width:"100%"}:{}),onContentSizeChange:()=>{var e;N&&(null===(e=W.current)||void 0===e||e.scrollToEnd({animated:!1}))}},(null==b||null===(a=b[0])||void 0===a?void 0:a.createdAt)&&t.createElement(xa,{theme:$},t.createElement(ka,{theme:$},"Chat Started at ".concat(Ai(b[0].createdAt)))),(()=>{const e=[...b];return e.map((r,i)=>{var o,a,s,l,u,c;const d=i===e.length-1,h=Boolean((null===(o=M[r.id])||void 0===o||null===(o=o.response)||void 0===o||null===(o=o.body)||void 0===o?void 0:o.diamonds)&&(null===(a=M[r.id])||void 0===a||null===(a=a.response)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.diamonds.length)>0);return t.createElement(n.A,{key:r.id+i,style:{gap:12}},t.createElement(di,{message:r,userTheme:Y,priceMode:z,handleFeedbackAction:te,onReloadResults:oe,reloading:F.has(r.id),hasResults:h,totalResults:(null===(s=M[r.id])||void 0===s||null===(s=s.response)||void 0===s||null===(s=s.header)||void 0===s?void 0:s.total_diamonds_found)||0,shownResults:(null===(l=M[r.id])||void 0===l||null===(l=l.response)||void 0===l||null===(l=l.body)||void 0===l?void 0:l.diamonds.length)||0,onSuggestionSelect:ie,isLatest:d,isTyping:A===r.id}),"assistant"===r.role&&r.search_payload&&Object.keys(r.search_payload).length>0&&!M[r.id]&&t.createElement(jo,{priceMode:z,messageId:r.id,payload:r.search_payload,onFetched:(e,t)=>{var n;D(n=>wa(wa({},n),{},{[e]:t}));const r=null==t||null===(n=t.response)||void 0===n||null===(n=n.body)||void 0===n?void 0:n.diamonds;if(Array.isArray(r)&&r.length>0)try{var i;null===(i=W.current)||void 0===i||i.scrollTo({x:0,y:O+120,animated:!0})}catch(e){}else _(t=>t.map(t=>t.id===e?wa(wa({},t),{},{id:t.id,text:X,isLoading:!1}):t))}}),"assistant"===r.role&&h&&t.createElement(Fo,{data:(null===(u=M[r.id])||void 0===u||null===(u=u.response)||void 0===u||null===(u=u.body)||void 0===u?void 0:u.diamonds)||[],totalResults:(null===(c=M[r.id])||void 0===c||null===(c=c.response)||void 0===c||null===(c=c.header)||void 0===c?void 0:c.total_diamonds_found)||0,onViewAll:Q,onItemPress:J,item:r}),t.createElement(Wi,{message:r,priceMode:z||"",handleFeedbackAction:te,onReloadResults:oe,reloading:F.has(r.id),hasResults:h}))})})()),t.createElement(Ra,null),t.createElement(Aa,{theme:$},t.createElement(Ur,{value:w,onChangeText:S,onSend:re,disabled:C,placeholder:f,theme:Y,inputRef:U}),t.createElement(so,{active:K})))))});Ca.displayName="ChatWidget";const Ea=Fr.View(fa||(fa=ba(["\n background-color: ",";\n flex: 1;\n width: 100%;\n"])),e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}),xa=Fr.View(pa||(pa=ba(["\n padding: 16px;\n align-items: center;\n justify-content: center;\n background-color: ",";\n"])),e=>{let{theme:t}=e;return t["core-01"]||"#FFFFFF"}),ka=Fr.Text(ma||(ma=ba(["\n font-size: 13px;\n font-weight: 400;\n color: ",";\n"])),e=>{let{theme:t}=e;return t["core-06"]||"#4F4E57"}),Aa=Fr.View(va||(va=ba(["\n padding-vertical: 12px;\n padding-horizontal: 16px;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n gap: 12px;\n ","\n"])),e=>{let{theme:t}=e;return t.isTablet&&ir(ga||(ga=ba(["\n maxWidth: 608,\n align-self: center;\n width: 100%;\n "])))}),Ra=Fr.View(ya||(ya=ba(["\n border-top-color: ",";\n border-top-width: 1;\n"])),e=>{let{theme:t}=e;return t["core-03"]||"#E0E0E0"}),Ta=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),Pa=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h}=e,f="".concat(i,"-modal"),p="".concat(i,"-launcher");let m=document.getElementById(p);var v,g,y,b;m||(m=document.createElement("button"),m.id=p,m.type="button",m.innerText=c.label||"",m.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",m.style.color=c.iconColor||"#ffffff",m.style.position="fixed",m.style.zIndex="2147483000",m.style.borderRadius="100px",m.style.padding="0",m.style.width="56px",m.style.height="56px",m.style.backgroundColor=c.backgroundColor||"transparent",m.style.color=c.labelColor||"transparent",m.style.border="none",m.style.cursor="pointer",m.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",m.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",m.style.fontSize="14px",m.style.bottom=(null===(v=c.buttonPosition)||void 0===v?void 0:v.bottom)||"24px",null!==(g=c.buttonPosition)&&void 0!==g&&g.top&&(m.style.top=c.buttonPosition.top),m.style.right=(null===(y=c.buttonPosition)||void 0===y?void 0:y.right)||"20px",null!==(b=c.buttonPosition)&&void 0!==b&&b.left&&(m.style.left=c.buttonPosition.left),document.body.appendChild(m));let _=document.getElementById(f);var w,S,C,E;_||(_=document.createElement("div"),_.id=f,_.style.position="fixed",_.style.zIndex="2147483000",_.style.bottom=(null===(w=c.modalPosition)||void 0===w?void 0:w.bottom)||"30px",null!==(S=c.modalPosition)&&void 0!==S&&S.top&&(_.style.top=c.modalPosition.top),_.style.right=(null===(C=c.modalPosition)||void 0===C?void 0:C.right)||"30px",null!==(E=c.modalPosition)&&void 0!==E&&E.left&&(_.style.left=c.modalPosition.left),_.style.width=u,_.style.height=l,_.style.maxWidth="30%",_.style.maxHeight="80%",_.style.backgroundColor="#ffffff",_.style.borderRadius="12px",_.style.overflow="hidden",_.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",_.style.display="none",_.style.opacity="0",_.style.transform="translateY(16px) scale(0.98)",_.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(_)),function(e,i,a,s,l,u,c,d,h){const f=(0,o.H)(e),p=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(null!=i&&i.postMessage)i.postMessage(r);else{try{var o;null===(o=window.parent)||void 0===o||o.postMessage(n,"*")}catch(e){}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch(e){}}},m=t.createElement(n.A,{style:Pa.root},t.createElement(Ca,{apiUrl:i,theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{p("ai_view_all",{url:e,payload:t}),null==s||s()},onItemPress:(e,t)=>{p("ai_item_click",{url:e,item:t}),null==s||s()},isBetaMode:h}));if(f.render(m),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));rt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{var n,r,i;let[o]=e;null==o||null===(n=(r=o).debug)||void 0===n||n.call(r,!0),window.analytics=o,null===(i=o.page)||void 0===i||i.call(o);try{const e=await Ti(),t=null==e?void 0:e.id;t&&o.identify(t)}catch(e){}const a=t.createElement(ot,{client:o},m);f.render(a)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(_,a,s,()=>k(!1),0,d,0,0,h);let x=!1;const k=e=>{x=e,e?(_.style.display="block",requestAnimationFrame(()=>{_.style.opacity="1",_.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(_.style.opacity="0",_.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{x||(_.style.display="none")},230))};m.onclick=()=>{try{const i=window.analytics;var e,t,n,r;i&&(x?null===(e=(t=i.track(Oi.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""})).then)||void 0===e||e.call(t):null===(n=(r=i.track(Oi.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""})).then)||void 0===n||n.call(r))}catch(e){}k(!x)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})}})()})();