@alistigo/artifact-list 0.2.7 → 0.2.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.
- package/dist/index.umd.js +17 -32
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -12
package/dist/index.umd.js
CHANGED
|
@@ -1,42 +1,27 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:Inter, ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--color-bg:var(--color-bg-app);--color-bg-subtle:var(--color-bg-subtle-app);--color-fg:var(--color-fg-app);--color-fg-muted:var(--color-fg-muted-app);--color-border:var(--color-border-app);--color-primary-9:var(--color-primary-9-app);--color-primary-10:var(--color-primary-10-app);--color-primary-fg:var(--color-primary-fg-app);--color-danger-9:var(--color-danger-9-app);--color-danger-10:var(--color-danger-10-app)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.flex{display:flex}.inline{display:inline}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.min-h-dvh{min-height:100dvh}.w-11{width:calc(var(--spacing) * 11)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-\\[var\\(--radius\\)\\]{border-radius:var(--radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--color-border\\)\\]{border-color:var(--color-border)}.bg-\\[var\\(--color-bg\\)\\]{background-color:var(--color-bg)}.bg-\\[var\\(--color-danger-9\\)\\]{background-color:var(--color-danger-9)}.bg-\\[var\\(--color-primary-9\\)\\]{background-color:var(--color-primary-9)}.bg-transparent{background-color:#0000}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--color-fg\\)\\]{color:var(--color-fg)}.text-\\[var\\(--color-fg-muted\\)\\]{color:var(--color-fg-muted)}.text-\\[var\\(--color-primary-fg\\)\\]{color:var(--color-primary-fg)}.text-white{color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background\\,color\\,opacity\\]{transition-property:background,color,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.placeholder\\:text-\\[var\\(--color-fg-muted\\)\\]::placeholder{color:var(--color-fg-muted)}@media(hover:hover){.hover\\:bg-\\[var\\(--color-bg-subtle\\)\\]:hover{background-color:var(--color-bg-subtle)}.hover\\:bg-\\[var\\(--color-danger-10\\)\\]:hover{background-color:var(--color-danger-10)}.hover\\:bg-\\[var\\(--color-primary-10\\)\\]:hover{background-color:var(--color-primary-10)}}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[var\\(--color-primary-9\\)\\]:focus-visible{--tw-ring-color:var(--color-primary-9)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-\\[var\\(--color-bg\\)\\]:focus-visible{--tw-ring-offset-color:var(--color-bg)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}}:root,.light,.light-theme{--gray-1:#fcfcfc;--gray-2:#f9f9f9;--gray-3:#f0f0f0;--gray-4:#e8e8e8;--gray-5:#e0e0e0;--gray-6:#d9d9d9;--gray-7:#cecece;--gray-8:#bbb;--gray-9:#8d8d8d;--gray-10:#838383;--gray-11:#646464;--gray-12:#202020}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-1:color(display-p3 .988 .988 .988);--gray-2:color(display-p3 .975 .975 .975);--gray-3:color(display-p3 .939 .939 .939);--gray-4:color(display-p3 .908 .908 .908);--gray-5:color(display-p3 .88 .88 .88);--gray-6:color(display-p3 .849 .849 .849);--gray-7:color(display-p3 .807 .807 .807);--gray-8:color(display-p3 .732 .732 .732);--gray-9:color(display-p3 .553 .553 .553);--gray-10:color(display-p3 .512 .512 .512);--gray-11:color(display-p3 .392 .392 .392);--gray-12:color(display-p3 .125 .125 .125)}}}.dark,.dark-theme{--gray-1:#111;--gray-2:#191919;--gray-3:#222;--gray-4:#2a2a2a;--gray-5:#313131;--gray-6:#3a3a3a;--gray-7:#484848;--gray-8:#606060;--gray-9:#6e6e6e;--gray-10:#7b7b7b;--gray-11:#b4b4b4;--gray-12:#eee}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--gray-1:color(display-p3 .067 .067 .067);--gray-2:color(display-p3 .098 .098 .098);--gray-3:color(display-p3 .135 .135 .135);--gray-4:color(display-p3 .163 .163 .163);--gray-5:color(display-p3 .192 .192 .192);--gray-6:color(display-p3 .228 .228 .228);--gray-7:color(display-p3 .283 .283 .283);--gray-8:color(display-p3 .375 .375 .375);--gray-9:color(display-p3 .431 .431 .431);--gray-10:color(display-p3 .484 .484 .484);--gray-11:color(display-p3 .706 .706 .706);--gray-12:color(display-p3 .933 .933 .933)}}}:root,.light,.light-theme{--gray-a1:#00000003;--gray-a2:#00000006;--gray-a3:#0000000f;--gray-a4:#00000017;--gray-a5:#0000001f;--gray-a6:#00000026;--gray-a7:#00000031;--gray-a8:#0004;--gray-a9:#00000072;--gray-a10:#0000007c;--gray-a11:#0000009b;--gray-a12:#000000df}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-a1:color(display-p3 0 0 0/.012);--gray-a2:color(display-p3 0 0 0/.024);--gray-a3:color(display-p3 0 0 0/.063);--gray-a4:color(display-p3 0 0 0/.09);--gray-a5:color(display-p3 0 0 0/.122);--gray-a6:color(display-p3 0 0 0/.153);--gray-a7:color(display-p3 0 0 0/.192);--gray-a8:color(display-p3 0 0 0/.267);--gray-a9:color(display-p3 0 0 0/.447);--gray-a10:color(display-p3 0 0 0/.486);--gray-a11:color(display-p3 0 0 0/.608);--gray-a12:color(display-p3 0 0 0/.875)}}}:root,.light,.light-theme{--violet-1:#fdfcfe;--violet-2:#faf8ff;--violet-3:#f4f0fe;--violet-4:#ebe4ff;--violet-5:#e1d9ff;--violet-6:#d4cafe;--violet-7:#c2b5f5;--violet-8:#aa99ec;--violet-9:#6e56cf;--violet-10:#654dc4;--violet-11:#6550b9;--violet-12:#2f265f}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--violet-1:color(display-p3 .991 .988 .995);--violet-2:color(display-p3 .978 .974 .998);--violet-3:color(display-p3 .953 .943 .993);--violet-4:color(display-p3 .916 .897 1);--violet-5:color(display-p3 .876 .851 1);--violet-6:color(display-p3 .825 .793 .981);--violet-7:color(display-p3 .752 .712 .943);--violet-8:color(display-p3 .654 .602 .902);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .381 .306 .741);--violet-11:color(display-p3 .383 .317 .702);--violet-12:color(display-p3 .179 .15 .359)}}}.dark,.dark-theme{--violet-1:#14121f;--violet-2:#1b1525;--violet-3:#291f43;--violet-4:#33255b;--violet-5:#3c2e69;--violet-6:#473876;--violet-7:#56468b;--violet-8:#6958ad;--violet-9:#6e56cf;--violet-10:#7d66d9;--violet-11:#baa7ff;--violet-12:#e2ddfe}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--violet-1:color(display-p3 .077 .071 .118);--violet-2:color(display-p3 .101 .084 .141);--violet-3:color(display-p3 .154 .123 .256);--violet-4:color(display-p3 .191 .148 .345);--violet-5:color(display-p3 .226 .182 .396);--violet-6:color(display-p3 .269 .223 .449);--violet-7:color(display-p3 .326 .277 .53);--violet-8:color(display-p3 .399 .346 .656);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .477 .402 .823);--violet-11:color(display-p3 .72 .65 1);--violet-12:color(display-p3 .883 .867 .986)}}}:root,.light,.light-theme{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}:root{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10)}[data-theme=dark]{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10);color-scheme:dark}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark}}html,body{background:var(--color-bg);color:var(--color-fg);font-family:var(--font-sans)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
(function(In){typeof define=="function"&&define.amd?define(In):In()})((function(){"use strict";try{let In=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Ga=new In.Error().stack;Ga&&(In._sentryDebugIds=In._sentryDebugIds||{},In._sentryDebugIds[Ga]="9dfd0ead-c128-4050-a355-ea5af0b015c1",In._sentryDebugIdIdentifier="sentry-dbid-9dfd0ead-c128-4050-a355-ea5af0b015c1")}catch{}function In(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(r,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"a56834d5c3440af56c01ee30c3ef49e14286285e"}}function Ga(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ya={exports:{}},Qf,Wv;function WA(){if(Wv)return Qf;Wv=1;function t(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}Qf=e;function e(n,r,o){var u=o&&o.stringify||t,c=1;if(typeof n=="object"&&n!==null){var f=r.length+c;if(f===1)return n;var h=new Array(f);h[0]=u(n);for(var g=1;g<f;g++)h[g]=u(r[g]);return h.join(" ")}if(typeof n!="string")return n;var m=r.length;if(m===0)return n;for(var v="",_=1-c,b=-1,x=n&&n.length||0,E=0;E<x;){if(n.charCodeAt(E)===37&&E+1<x){switch(b=b>-1?b:0,n.charCodeAt(E+1)){case 100:case 102:if(_>=m||r[_]==null)break;b<E&&(v+=n.slice(b,E)),v+=Number(r[_]),b=E+2,E++;break;case 105:if(_>=m||r[_]==null)break;b<E&&(v+=n.slice(b,E)),v+=Math.floor(Number(r[_])),b=E+2,E++;break;case 79:case 111:case 106:if(_>=m||r[_]===void 0)break;b<E&&(v+=n.slice(b,E));var M=typeof r[_];if(M==="string"){v+="'"+r[_]+"'",b=E+2,E++;break}if(M==="function"){v+=r[_].name||"<anonymous>",b=E+2,E++;break}v+=u(r[_]),b=E+2,E++;break;case 115:if(_>=m)break;b<E&&(v+=n.slice(b,E)),v+=String(r[_]),b=E+2,E++;break;case 37:b<E&&(v+=n.slice(b,E)),v+="%",b=E+2,E++,_--;break}++_}++E}return b===-1?n:(b<x&&(v+=n.slice(b)),v)}return Qf}var ey;function e5(){if(ey)return Ya.exports;ey=1;const t=WA();Ya.exports=m;const e=ye().console||{},n={mapHttpRequest:P,mapHttpResponse:P,wrapRequestSerializer:I,wrapResponseSerializer:I,wrapErrorSerializer:I,req:P,res:P,err:U,errWithCause:U};function r(L,A){return L==="silent"?1/0:A.levels.values[L]}const o=Symbol("pino.logFuncs"),u=Symbol("pino.hierarchy"),c={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function f(L,A){const N={logger:A,parent:L[u]};A[u]=N}function h(L,A,N){const J={};A.forEach(te=>{J[te]=N[te]?N[te]:e[te]||e[c[te]||"log"]||$}),L[o]=J}function g(L,A){return Array.isArray(L)?L.filter(function(J){return J!=="!stdSerializers.err"}):L===!0?Object.keys(A):!1}function m(L){L=L||{},L.browser=L.browser||{};const A=L.browser.transmit;if(A&&typeof A.send!="function")throw Error("pino: transmit option must have a send function");const N=L.browser.write||e;L.browser.write&&(L.browser.asObject=!0);const J=L.serializers||{},te=g(L.browser.serialize,J);let ue=L.browser.serialize;Array.isArray(L.browser.serialize)&&L.browser.serialize.indexOf("!stdSerializers.err")>-1&&(ue=!1);const T=Object.keys(L.customLevels||{}),j=["error","fatal","warn","info","debug","trace"].concat(T);typeof N=="function"&&j.forEach(function(it){N[it]=N}),(L.enabled===!1||L.browser.disabled)&&(L.level="silent");const W=L.level||"info",H=Object.create(N);H.log||(H.log=$),h(H,j,N),f({},H),Object.defineProperty(H,"levelVal",{get:ge}),Object.defineProperty(H,"level",{get:Me,set:je});const oe={transmit:A,serialize:te,asObject:L.browser.asObject,asObjectBindingsOnly:L.browser.asObjectBindingsOnly,formatters:L.browser.formatters,levels:j,timestamp:Q(L),messageKey:L.messageKey||"msg",onChild:L.onChild||$};H.levels=v(L),H.level=W,H.isLevelEnabled=function(it){return this.levels.values[it]?this.levels.values[it]>=this.levels.values[this.level]:!1},H.setMaxListeners=H.getMaxListeners=H.emit=H.addListener=H.on=H.prependListener=H.once=H.prependOnceListener=H.removeListener=H.removeAllListeners=H.listeners=H.listenerCount=H.eventNames=H.write=H.flush=$,H.serializers=J,H._serialize=te,H._stdErrSerialize=ue,H.child=function(...it){return Ue.call(this,oe,...it)},A&&(H._logEvent=K());function ge(){return r(this.level,this)}function Me(){return this._level}function je(it){if(it!=="silent"&&!this.levels.values[it])throw Error("unknown level "+it);this._level=it,x(this,oe,H,"error"),x(this,oe,H,"fatal"),x(this,oe,H,"warn"),x(this,oe,H,"info"),x(this,oe,H,"debug"),x(this,oe,H,"trace"),T.forEach(Ft=>{x(this,oe,H,Ft)})}function Ue(it,Ft,At){if(!Ft)throw new Error("missing bindings for child Pino");At=At||{},te&&Ft.serializers&&(At.serializers=Ft.serializers);const tr=At.serializers;if(te&&tr){var Qt=Object.assign({},J,tr),ss=L.browser.serialize===!0?Object.keys(Qt):te;delete Ft.serializers,q([Ft],ss,Qt,this._stdErrSerialize)}function Yt(ti){this._childLevel=(ti._childLevel|0)+1,this.bindings=Ft,Qt&&(this.serializers=Qt,this._serialize=ss),A&&(this._logEvent=K([].concat(ti._logEvent.bindings,Ft)))}Yt.prototype=this;const Ei=new Yt(this);return f(this,Ei),Ei.child=function(...ti){return Ue.call(this,it,...ti)},Ei.level=At.level||this.level,it.onChild(Ei),Ei}return H}function v(L){const A=L.customLevels||{},N=Object.assign({},m.levels.values,A),J=Object.assign({},m.levels.labels,_(A));return{values:N,labels:J}}function _(L){const A={};return Object.keys(L).forEach(function(N){A[L[N]]=N}),A}m.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},m.stdSerializers=n,m.stdTimeFunctions=Object.assign({},{nullTime:ee,epochTime:le,unixTime:ie,isoTime:he});function b(L){const A=[];L.bindings&&A.push(L.bindings);let N=L[u];for(;N.parent;)N=N.parent,N.logger.bindings&&A.push(N.logger.bindings);return A.reverse()}function x(L,A,N,J){if(Object.defineProperty(L,J,{value:r(L.level,N)>r(J,N)?$:N[o][J],writable:!0,enumerable:!0,configurable:!0}),L[J]===$){if(!A.transmit)return;const ue=A.transmit.level||L.level,T=r(ue,N);if(r(J,N)<T)return}L[J]=M(L,A,N,J);const te=b(L);te.length!==0&&(L[J]=E(te,L[J]))}function E(L,A){return function(){return A.apply(this,[...L,...arguments])}}function M(L,A,N,J){return(function(te){return function(){const T=A.timestamp(),j=new Array(arguments.length),W=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var H=0;H<j.length;H++)j[H]=arguments[H];var oe=!1;if(A.serialize&&(q(j,this._serialize,this.serializers,this._stdErrSerialize),oe=!0),A.asObject||A.formatters?te.call(W,...R(this,J,j,T,A)):te.apply(W,j),A.transmit){const ge=A.transmit.level||L._level,Me=r(ge,N),je=r(J,N);if(je<Me)return;F(this,{ts:T,methodLevel:J,methodValue:je,transmitValue:N.levels.values[A.transmit.level||L._level],send:A.transmit.send,val:r(L._level,N)},j,oe)}}})(L[o][J])}function R(L,A,N,J,te){const{level:ue,log:T=ge=>ge}=te.formatters||{},j=N.slice();let W=j[0];const H={};let oe=(L._childLevel|0)+1;if(oe<1&&(oe=1),J&&(H.time=J),ue){const ge=ue(A,L.levels.values[A]);Object.assign(H,ge)}else H.level=L.levels.values[A];if(te.asObjectBindingsOnly){if(W!==null&&typeof W=="object")for(;oe--&&typeof j[0]=="object";)Object.assign(H,j.shift());return[T(H),...j]}else{if(W!==null&&typeof W=="object"){for(;oe--&&typeof j[0]=="object";)Object.assign(H,j.shift());W=j.length?t(j.shift(),j):void 0}else typeof W=="string"&&(W=t(j.shift(),j));return W!==void 0&&(H[te.messageKey]=W),[T(H)]}}function q(L,A,N,J){for(const te in L)if(J&&L[te]instanceof Error)L[te]=m.stdSerializers.err(L[te]);else if(typeof L[te]=="object"&&!Array.isArray(L[te])&&A)for(const ue in L[te])A.indexOf(ue)>-1&&ue in N&&(L[te][ue]=N[ue](L[te][ue]))}function F(L,A,N,J=!1){const te=A.send,ue=A.ts,T=A.methodLevel,j=A.methodValue,W=A.val,H=L._logEvent.bindings;J||q(N,L._serialize||Object.keys(L.serializers),L.serializers,L._stdErrSerialize===void 0?!0:L._stdErrSerialize),L._logEvent.ts=ue,L._logEvent.messages=N.filter(function(oe){return H.indexOf(oe)===-1}),L._logEvent.level.label=T,L._logEvent.level.value=j,te(T,L._logEvent,W),L._logEvent=K(H)}function K(L){return{ts:0,messages:[],bindings:L||[],level:{label:"",value:0}}}function U(L){const A={type:L.constructor.name,msg:L.message,stack:L.stack};for(const N in L)A[N]===void 0&&(A[N]=L[N]);return A}function Q(L){return typeof L.timestamp=="function"?L.timestamp:L.timestamp===!1?ee:le}function P(){return{}}function I(L){return L}function $(){}function ee(){return!1}function le(){return Date.now()}function ie(){return Math.round(Date.now()/1e3)}function he(){return new Date(Date.now()).toISOString()}function ye(){function L(A){return typeof A<"u"&&A}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return L(self)||L(window)||L(this)||{}}}return Ya.exports.default=m,Ya.exports.pino=m,Ya.exports}var t5=e5();const ty=Ga(t5)({level:"silent",browser:{asObject:!0}}),n5=t=>{ty.level=t},qi=(t,e)=>ty.child({module:t,...e}),Jf={version:"0.2.7"},Pi=t=>typeof t=="string",i5=t=>typeof t=="function",ny=new Map,iy="en";function Wf(t){return[...Array.isArray(t)?t:[t],iy]}function ed(t,e,n){const r=Wf(t);n||(n="default");let o;if(typeof n=="string")switch(o={day:"numeric",month:"short",year:"numeric"},n){case"full":o.weekday="long";case"long":o.month="long";break;case"short":o.month="numeric";break}else o=n;return Zl(()=>Ql("date",r,n),()=>new Intl.DateTimeFormat(r,o)).format(Pi(e)?new Date(e):e)}function s5(t,e,n){let r;if(n||(n="default"),typeof n=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=n;return ed(t,e,r)}function td(t,e,n){const r=Wf(t);return Zl(()=>Ql("number",r,n),()=>new Intl.NumberFormat(r,n)).format(e)}function sy(t,e,n,{offset:r=0,...o}){const u=Wf(t),c=e?Zl(()=>Ql("plural-ordinal",u),()=>new Intl.PluralRules(u,{type:"ordinal"})):Zl(()=>Ql("plural-cardinal",u),()=>new Intl.PluralRules(u,{type:"cardinal"}));return o[n]??o[c.select(n-r)]??o.other}function Zl(t,e){const n=t();let r=ny.get(n);return r||(r=e(),ny.set(n,r)),r}function Ql(t,e,n){const r=e.join("-");return`${t}-${r}-${JSON.stringify(n)}`}const ry=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ay=t=>t.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,n,r)=>{if(n){const o=parseInt(n,16);return String.fromCharCode(o)}else{const o=parseInt(r,16);return String.fromCharCode(o)}}),oy="%__lingui_octothorpe__%",r5=(t,e,n={})=>{const r=e||t,o=c=>typeof c=="object"?c:n[c],u=(c,f)=>{const h=Object.keys(n).length?o("number"):void 0,g=td(r,c,h);return f.replace(new RegExp(oy,"g"),g)};return{plural:(c,f)=>{const{offset:h=0}=f,g=sy(r,!1,c,f);return u(c-h,g)},selectordinal:(c,f)=>{const{offset:h=0}=f,g=sy(r,!0,c,f);return u(c-h,g)},select:a5,number:(c,f)=>td(r,c,o(f)||{style:f}),date:(c,f)=>ed(r,c,o(f)||f),time:(c,f)=>s5(r,c,o(f)||f)}},a5=(t,e)=>e[t]??e.other;function o5(t,e,n){return(r={},o)=>{const u=r5(e,n,o),c=(h,g=!1)=>Array.isArray(h)?h.reduce((m,v)=>{if(v==="#"&&g)return m+oy;if(Pi(v))return m+v;const[_,b,x]=v;let E={};b==="plural"||b==="selectordinal"||b==="select"?Object.entries(x).forEach(([R,q])=>{E[R]=c(q,b==="plural"||b==="selectordinal")}):E=x;let M;if(b){const R=u[b];M=R(r[_],E)}else M=r[_];return M==null?m:m+M},""):h,f=c(t);return Pi(f)&&ry.test(f)?ay(f):Pi(f)?f:f?String(f):""}}class l5{_events={};on(e,n){return this._events[e]??=new Set,this._events[e].add(n),()=>this.removeListener(e,n)}removeListener(e,n){const r=this._events[e];r?.delete(n),r?.size===0&&delete this._events[e]}emit(e,...n){const r=this._events[e];if(r)for(const o of[...r])o.apply(this,n)}}class u5 extends l5{_locale="";_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),(typeof e.locale=="string"||e.locales)&&this.activate(e.locale??iy,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,n){const r=this._messages[e];r?Object.assign(r,n):this._messages[e]=n}load(e,n){typeof e=="string"&&typeof n=="object"?this._load(e,n):Object.entries(e).forEach(([r,o])=>this._load(r,o)),this.emit("change")}loadAndActivate({locale:e,locales:n,messages:r}){this._locale=e,this._locales=n||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,n){this._locale=e,this._locales=n,this.emit("change")}_(e,n,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=r?.message;e||(e=""),Pi(e)||(n=e.values||n,o=e.message,e=e.id);const u=this.messages[e],c=u===void 0,f=this._missing;if(f&&c)return i5(f)?f(this._locale,e):f;c&&this.emit("missing",{id:e,locale:this._locale});let h=u||o||e;return Pi(h)&&(this._messageCompiler?h=this._messageCompiler(h):console.warn(`Uncompiled message detected! Message:
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:Inter, ui-sans-serif, system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--color-bg:var(--color-bg-app);--color-bg-subtle:var(--color-bg-subtle-app);--color-fg:var(--color-fg-app);--color-fg-muted:var(--color-fg-muted-app);--color-border:var(--color-border-app);--color-primary-9:var(--color-primary-9-app);--color-primary-10:var(--color-primary-10-app);--color-primary-fg:var(--color-primary-fg-app);--color-danger-9:var(--color-danger-9-app);--color-danger-10:var(--color-danger-10-app)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.static{position:static}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.flex{display:flex}.inline{display:inline}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.min-h-dvh{min-height:100dvh}.w-11{width:calc(var(--spacing) * 11)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-\\[var\\(--radius\\)\\]{border-radius:var(--radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\[var\\(--color-border\\)\\]{border-color:var(--color-border)}.bg-\\[var\\(--color-bg\\)\\]{background-color:var(--color-bg)}.bg-\\[var\\(--color-danger-9\\)\\]{background-color:var(--color-danger-9)}.bg-\\[var\\(--color-primary-9\\)\\]{background-color:var(--color-primary-9)}.bg-transparent{background-color:#0000}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--color-fg\\)\\]{color:var(--color-fg)}.text-\\[var\\(--color-fg-muted\\)\\]{color:var(--color-fg-muted)}.text-\\[var\\(--color-primary-fg\\)\\]{color:var(--color-primary-fg)}.text-white{color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background\\,color\\,opacity\\]{transition-property:background,color,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.placeholder\\:text-\\[var\\(--color-fg-muted\\)\\]::placeholder{color:var(--color-fg-muted)}@media(hover:hover){.hover\\:bg-\\[var\\(--color-bg-subtle\\)\\]:hover{background-color:var(--color-bg-subtle)}.hover\\:bg-\\[var\\(--color-danger-10\\)\\]:hover{background-color:var(--color-danger-10)}.hover\\:bg-\\[var\\(--color-primary-10\\)\\]:hover{background-color:var(--color-primary-10)}}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[var\\(--color-primary-9\\)\\]:focus-visible{--tw-ring-color:var(--color-primary-9)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-\\[var\\(--color-bg\\)\\]:focus-visible{--tw-ring-offset-color:var(--color-bg)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}}:root,.light,.light-theme{--gray-1:#fcfcfc;--gray-2:#f9f9f9;--gray-3:#f0f0f0;--gray-4:#e8e8e8;--gray-5:#e0e0e0;--gray-6:#d9d9d9;--gray-7:#cecece;--gray-8:#bbb;--gray-9:#8d8d8d;--gray-10:#838383;--gray-11:#646464;--gray-12:#202020}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-1:color(display-p3 .988 .988 .988);--gray-2:color(display-p3 .975 .975 .975);--gray-3:color(display-p3 .939 .939 .939);--gray-4:color(display-p3 .908 .908 .908);--gray-5:color(display-p3 .88 .88 .88);--gray-6:color(display-p3 .849 .849 .849);--gray-7:color(display-p3 .807 .807 .807);--gray-8:color(display-p3 .732 .732 .732);--gray-9:color(display-p3 .553 .553 .553);--gray-10:color(display-p3 .512 .512 .512);--gray-11:color(display-p3 .392 .392 .392);--gray-12:color(display-p3 .125 .125 .125)}}}.dark,.dark-theme{--gray-1:#111;--gray-2:#191919;--gray-3:#222;--gray-4:#2a2a2a;--gray-5:#313131;--gray-6:#3a3a3a;--gray-7:#484848;--gray-8:#606060;--gray-9:#6e6e6e;--gray-10:#7b7b7b;--gray-11:#b4b4b4;--gray-12:#eee}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--gray-1:color(display-p3 .067 .067 .067);--gray-2:color(display-p3 .098 .098 .098);--gray-3:color(display-p3 .135 .135 .135);--gray-4:color(display-p3 .163 .163 .163);--gray-5:color(display-p3 .192 .192 .192);--gray-6:color(display-p3 .228 .228 .228);--gray-7:color(display-p3 .283 .283 .283);--gray-8:color(display-p3 .375 .375 .375);--gray-9:color(display-p3 .431 .431 .431);--gray-10:color(display-p3 .484 .484 .484);--gray-11:color(display-p3 .706 .706 .706);--gray-12:color(display-p3 .933 .933 .933)}}}:root,.light,.light-theme{--gray-a1:#00000003;--gray-a2:#00000006;--gray-a3:#0000000f;--gray-a4:#00000017;--gray-a5:#0000001f;--gray-a6:#00000026;--gray-a7:#00000031;--gray-a8:#0004;--gray-a9:#00000072;--gray-a10:#0000007c;--gray-a11:#0000009b;--gray-a12:#000000df}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--gray-a1:color(display-p3 0 0 0/.012);--gray-a2:color(display-p3 0 0 0/.024);--gray-a3:color(display-p3 0 0 0/.063);--gray-a4:color(display-p3 0 0 0/.09);--gray-a5:color(display-p3 0 0 0/.122);--gray-a6:color(display-p3 0 0 0/.153);--gray-a7:color(display-p3 0 0 0/.192);--gray-a8:color(display-p3 0 0 0/.267);--gray-a9:color(display-p3 0 0 0/.447);--gray-a10:color(display-p3 0 0 0/.486);--gray-a11:color(display-p3 0 0 0/.608);--gray-a12:color(display-p3 0 0 0/.875)}}}:root,.light,.light-theme{--violet-1:#fdfcfe;--violet-2:#faf8ff;--violet-3:#f4f0fe;--violet-4:#ebe4ff;--violet-5:#e1d9ff;--violet-6:#d4cafe;--violet-7:#c2b5f5;--violet-8:#aa99ec;--violet-9:#6e56cf;--violet-10:#654dc4;--violet-11:#6550b9;--violet-12:#2f265f}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--violet-1:color(display-p3 .991 .988 .995);--violet-2:color(display-p3 .978 .974 .998);--violet-3:color(display-p3 .953 .943 .993);--violet-4:color(display-p3 .916 .897 1);--violet-5:color(display-p3 .876 .851 1);--violet-6:color(display-p3 .825 .793 .981);--violet-7:color(display-p3 .752 .712 .943);--violet-8:color(display-p3 .654 .602 .902);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .381 .306 .741);--violet-11:color(display-p3 .383 .317 .702);--violet-12:color(display-p3 .179 .15 .359)}}}.dark,.dark-theme{--violet-1:#14121f;--violet-2:#1b1525;--violet-3:#291f43;--violet-4:#33255b;--violet-5:#3c2e69;--violet-6:#473876;--violet-7:#56468b;--violet-8:#6958ad;--violet-9:#6e56cf;--violet-10:#7d66d9;--violet-11:#baa7ff;--violet-12:#e2ddfe}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--violet-1:color(display-p3 .077 .071 .118);--violet-2:color(display-p3 .101 .084 .141);--violet-3:color(display-p3 .154 .123 .256);--violet-4:color(display-p3 .191 .148 .345);--violet-5:color(display-p3 .226 .182 .396);--violet-6:color(display-p3 .269 .223 .449);--violet-7:color(display-p3 .326 .277 .53);--violet-8:color(display-p3 .399 .346 .656);--violet-9:color(display-p3 .417 .341 .784);--violet-10:color(display-p3 .477 .402 .823);--violet-11:color(display-p3 .72 .65 1);--violet-12:color(display-p3 .883 .867 .986)}}}:root,.light,.light-theme{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){:root,.light,.light-theme{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media(color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}:root{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10)}[data-theme=dark]{--color-bg-app:var(--gray-1);--color-bg-subtle-app:var(--gray-3);--color-fg-app:var(--gray-12);--color-fg-muted-app:var(--gray-11);--color-border-app:var(--gray-6);--color-primary-9-app:var(--violet-9);--color-primary-10-app:var(--violet-10);--color-primary-fg-app:white;--color-danger-9-app:var(--red-9);--color-danger-10-app:var(--red-10);color-scheme:dark}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark}}html,body{background:var(--color-bg);color:var(--color-fg);font-family:var(--font-sans)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
(function(ts){typeof define=="function"&&define.amd?define(ts):ts()})((function(){"use strict";function ts(i,a){for(var s=0;s<a.length;s++){const r=a[s];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in i)){const d=Object.getOwnPropertyDescriptor(r,c);d&&Object.defineProperty(i,c,d.get?d:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}function kf(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ja={exports:{}},Wr,Jf;function K0(){if(Jf)return Wr;Jf=1;function i(s){try{return JSON.stringify(s)}catch{return'"[Circular]"'}}Wr=a;function a(s,r,c){var d=c&&c.stringify||i,f=1;if(typeof s=="object"&&s!==null){var m=r.length+f;if(m===1)return s;var g=new Array(m);g[0]=d(s);for(var p=1;p<m;p++)g[p]=d(r[p]);return g.join(" ")}if(typeof s!="string")return s;var v=r.length;if(v===0)return s;for(var b="",S=1-f,M=-1,L=s&&s.length||0,w=0;w<L;){if(s.charCodeAt(w)===37&&w+1<L){switch(M=M>-1?M:0,s.charCodeAt(w+1)){case 100:case 102:if(S>=v||r[S]==null)break;M<w&&(b+=s.slice(M,w)),b+=Number(r[S]),M=w+2,w++;break;case 105:if(S>=v||r[S]==null)break;M<w&&(b+=s.slice(M,w)),b+=Math.floor(Number(r[S])),M=w+2,w++;break;case 79:case 111:case 106:if(S>=v||r[S]===void 0)break;M<w&&(b+=s.slice(M,w));var H=typeof r[S];if(H==="string"){b+="'"+r[S]+"'",M=w+2,w++;break}if(H==="function"){b+=r[S].name||"<anonymous>",M=w+2,w++;break}b+=d(r[S]),M=w+2,w++;break;case 115:if(S>=v)break;M<w&&(b+=s.slice(M,w)),b+=String(r[S]),M=w+2,w++;break;case 37:M<w&&(b+=s.slice(M,w)),b+="%",M=w+2,w++,S--;break}++S}++w}return M===-1?s:(M<L&&(b+=s.slice(M)),b)}return Wr}var Ff;function k0(){if(Ff)return ja.exports;Ff=1;const i=K0();ja.exports=v;const a=$t().console||{},s={mapHttpRequest:F,mapHttpResponse:F,wrapRequestSerializer:I,wrapResponseSerializer:I,wrapErrorSerializer:I,req:F,res:F,err:k,errWithCause:k};function r(N,A){return N==="silent"?1/0:A.levels.values[N]}const c=Symbol("pino.logFuncs"),d=Symbol("pino.hierarchy"),f={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function m(N,A){const _={logger:A,parent:N[d]};A[d]=_}function g(N,A,_){const X={};A.forEach(J=>{X[J]=_[J]?_[J]:a[J]||a[f[J]||"log"]||mt}),N[c]=X}function p(N,A){return Array.isArray(N)?N.filter(function(X){return X!=="!stdSerializers.err"}):N===!0?Object.keys(A):!1}function v(N){N=N||{},N.browser=N.browser||{};const A=N.browser.transmit;if(A&&typeof A.send!="function")throw Error("pino: transmit option must have a send function");const _=N.browser.write||a;N.browser.write&&(N.browser.asObject=!0);const X=N.serializers||{},J=p(N.browser.serialize,X);let lt=N.browser.serialize;Array.isArray(N.browser.serialize)&&N.browser.serialize.indexOf("!stdSerializers.err")>-1&&(lt=!1);const x=Object.keys(N.customLevels||{}),V=["error","fatal","warn","info","debug","trace"].concat(x);typeof _=="function"&&V.forEach(function(kt){_[kt]=_}),(N.enabled===!1||N.browser.disabled)&&(N.level="silent");const Z=N.level||"info",q=Object.create(_);q.log||(q.log=mt),g(q,V,_),m({},q),Object.defineProperty(q,"levelVal",{get:ot}),Object.defineProperty(q,"level",{get:St,set:Kt});const tt={transmit:A,serialize:J,asObject:N.browser.asObject,asObjectBindingsOnly:N.browser.asObjectBindingsOnly,formatters:N.browser.formatters,levels:V,timestamp:it(N),messageKey:N.messageKey||"msg",onChild:N.onChild||mt};q.levels=b(N),q.level=Z,q.isLevelEnabled=function(kt){return this.levels.values[kt]?this.levels.values[kt]>=this.levels.values[this.level]:!1},q.setMaxListeners=q.getMaxListeners=q.emit=q.addListener=q.on=q.prependListener=q.once=q.prependOnceListener=q.removeListener=q.removeAllListeners=q.listeners=q.listenerCount=q.eventNames=q.write=q.flush=mt,q.serializers=X,q._serialize=J,q._stdErrSerialize=lt,q.child=function(...kt){return Nt.call(this,tt,...kt)},A&&(q._logEvent=$());function ot(){return r(this.level,this)}function St(){return this._level}function Kt(kt){if(kt!=="silent"&&!this.levels.values[kt])throw Error("unknown level "+kt);this._level=kt,L(this,tt,q,"error"),L(this,tt,q,"fatal"),L(this,tt,q,"warn"),L(this,tt,q,"info"),L(this,tt,q,"debug"),L(this,tt,q,"trace"),x.forEach(me=>{L(this,tt,q,me)})}function Nt(kt,me,un){if(!me)throw new Error("missing bindings for child Pino");un=un||{},J&&me.serializers&&(un.serializers=me.serializers);const rl=un.serializers;if(J&&rl){var Ue=Object.assign({},X,rl),Fi=N.browser.serialize===!0?Object.keys(Ue):J;delete me.serializers,Q([me],Fi,Ue,this._stdErrSerialize)}function Pi(vi){this._childLevel=(vi._childLevel|0)+1,this.bindings=me,Ue&&(this.serializers=Ue,this._serialize=Fi),A&&(this._logEvent=$([].concat(vi._logEvent.bindings,me)))}Pi.prototype=this;const yi=new Pi(this);return m(this,yi),yi.child=function(...vi){return Nt.call(this,kt,...vi)},yi.level=un.level||this.level,kt.onChild(yi),yi}return q}function b(N){const A=N.customLevels||{},_=Object.assign({},v.levels.values,A),X=Object.assign({},v.levels.labels,S(A));return{values:_,labels:X}}function S(N){const A={};return Object.keys(N).forEach(function(_){A[N[_]]=_}),A}v.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},v.stdSerializers=s,v.stdTimeFunctions=Object.assign({},{nullTime:_t,epochTime:Ut,unixTime:ct,isoTime:he});function M(N){const A=[];N.bindings&&A.push(N.bindings);let _=N[d];for(;_.parent;)_=_.parent,_.logger.bindings&&A.push(_.logger.bindings);return A.reverse()}function L(N,A,_,X){if(Object.defineProperty(N,X,{value:r(N.level,_)>r(X,_)?mt:_[c][X],writable:!0,enumerable:!0,configurable:!0}),N[X]===mt){if(!A.transmit)return;const lt=A.transmit.level||N.level,x=r(lt,_);if(r(X,_)<x)return}N[X]=H(N,A,_,X);const J=M(N);J.length!==0&&(N[X]=w(J,N[X]))}function w(N,A){return function(){return A.apply(this,[...N,...arguments])}}function H(N,A,_,X){return(function(J){return function(){const x=A.timestamp(),V=new Array(arguments.length),Z=Object.getPrototypeOf&&Object.getPrototypeOf(this)===a?a:this;for(var q=0;q<V.length;q++)V[q]=arguments[q];var tt=!1;if(A.serialize&&(Q(V,this._serialize,this.serializers,this._stdErrSerialize),tt=!0),A.asObject||A.formatters?J.call(Z,...Y(this,X,V,x,A)):J.apply(Z,V),A.transmit){const ot=A.transmit.level||N._level,St=r(ot,_),Kt=r(X,_);if(Kt<St)return;K(this,{ts:x,methodLevel:X,methodValue:Kt,transmitValue:_.levels.values[A.transmit.level||N._level],send:A.transmit.send,val:r(N._level,_)},V,tt)}}})(N[c][X])}function Y(N,A,_,X,J){const{level:lt,log:x=ot=>ot}=J.formatters||{},V=_.slice();let Z=V[0];const q={};let tt=(N._childLevel|0)+1;if(tt<1&&(tt=1),X&&(q.time=X),lt){const ot=lt(A,N.levels.values[A]);Object.assign(q,ot)}else q.level=N.levels.values[A];if(J.asObjectBindingsOnly){if(Z!==null&&typeof Z=="object")for(;tt--&&typeof V[0]=="object";)Object.assign(q,V.shift());return[x(q),...V]}else{if(Z!==null&&typeof Z=="object"){for(;tt--&&typeof V[0]=="object";)Object.assign(q,V.shift());Z=V.length?i(V.shift(),V):void 0}else typeof Z=="string"&&(Z=i(V.shift(),V));return Z!==void 0&&(q[J.messageKey]=Z),[x(q)]}}function Q(N,A,_,X){for(const J in N)if(X&&N[J]instanceof Error)N[J]=v.stdSerializers.err(N[J]);else if(typeof N[J]=="object"&&!Array.isArray(N[J])&&A)for(const lt in N[J])A.indexOf(lt)>-1&< in _&&(N[J][lt]=_[lt](N[J][lt]))}function K(N,A,_,X=!1){const J=A.send,lt=A.ts,x=A.methodLevel,V=A.methodValue,Z=A.val,q=N._logEvent.bindings;X||Q(_,N._serialize||Object.keys(N.serializers),N.serializers,N._stdErrSerialize===void 0?!0:N._stdErrSerialize),N._logEvent.ts=lt,N._logEvent.messages=_.filter(function(tt){return q.indexOf(tt)===-1}),N._logEvent.level.label=x,N._logEvent.level.value=V,J(x,N._logEvent,Z),N._logEvent=$(q)}function $(N){return{ts:0,messages:[],bindings:N||[],level:{label:"",value:0}}}function k(N){const A={type:N.constructor.name,msg:N.message,stack:N.stack};for(const _ in N)A[_]===void 0&&(A[_]=N[_]);return A}function it(N){return typeof N.timestamp=="function"?N.timestamp:N.timestamp===!1?_t:Ut}function F(){return{}}function I(N){return N}function mt(){}function _t(){return!1}function Ut(){return Date.now()}function ct(){return Math.round(Date.now()/1e3)}function he(){return new Date(Date.now()).toISOString()}function $t(){function N(A){return typeof A<"u"&&A}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return N(self)||N(window)||N(this)||{}}}return ja.exports.default=v,ja.exports.pino=v,ja.exports}var J0=k0();const Pf=kf(J0)({level:"silent",browser:{asObject:!0}}),F0=i=>{Pf.level=i},oi=(i,a)=>Pf.child({module:i,...a}),P0=0;function W0(i){return`https://cdn.jsdelivr.net/npm/${i}@${P0}/dist/index.js`}async function $0(i){return(await import(W0(i))).default}function I0(){const i=new Map;return{on:(r,c)=>{let d=i.get(r);d===void 0&&(d=new Set,i.set(r,d));const f=c;return d.add(f),()=>{i.get(r)?.delete(f)}},emit:(r,c)=>{const d=i.get(r);if(d!==void 0)for(const f of d)f(c)}}}function tb(i,a,s,r){const c=I0();function d(m){return{config:r[m.name]??{},host:a,logger:s,on:c.on,emit:c.emit}}async function f(m){for(const g of i){const p=g[m];if(p!==void 0)try{await p(d(g))}catch(v){s.error({err:v,plugin:g.name,hook:m},"plugin hook failed")}}}return{bus:c,loadedPluginNames:i.map(m=>m.name),setup:()=>f("setup"),beforeMount:()=>f("beforeMount"),mounted:()=>f("mounted"),destroy:()=>f("destroy"),wrapRoot(m){let g=m;for(const p of i)if(p.wrapRoot!==void 0)try{g=p.wrapRoot(g,d(p))}catch(v){s.error({err:v,plugin:p.name,hook:"wrapRoot"},"plugin hook failed")}return g}}}const zn=i=>typeof i=="string",eb=i=>typeof i=="function",Wf=new Map,$f="en";function $r(i){return[...Array.isArray(i)?i:[i],$f]}function Ir(i,a,s){const r=$r(i);s||(s="default");let c;if(typeof s=="string")switch(c={day:"numeric",month:"short",year:"numeric"},s){case"full":c.weekday="long";case"long":c.month="long";break;case"short":c.month="numeric";break}else c=s;return es(()=>ns("date",r,s),()=>new Intl.DateTimeFormat(r,c)).format(zn(a)?new Date(a):a)}function nb(i,a,s){let r;if(s||(s="default"),typeof s=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},s){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=s;return Ir(i,a,r)}function to(i,a,s){const r=$r(i);return es(()=>ns("number",r,s),()=>new Intl.NumberFormat(r,s)).format(a)}function If(i,a,s,{offset:r=0,...c}){const d=$r(i),f=a?es(()=>ns("plural-ordinal",d),()=>new Intl.PluralRules(d,{type:"ordinal"})):es(()=>ns("plural-cardinal",d),()=>new Intl.PluralRules(d,{type:"cardinal"}));return c[s]??c[f.select(s-r)]??c.other}function es(i,a){const s=i();let r=Wf.get(s);return r||(r=a(),Wf.set(s,r)),r}function ns(i,a,s){const r=a.join("-");return`${i}-${r}-${JSON.stringify(s)}`}const td=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ed=i=>i.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(a,s,r)=>{if(s){const c=parseInt(s,16);return String.fromCharCode(c)}else{const c=parseInt(r,16);return String.fromCharCode(c)}}),nd="%__lingui_octothorpe__%",ib=(i,a,s={})=>{const r=a||i,c=f=>typeof f=="object"?f:s[f],d=(f,m)=>{const g=Object.keys(s).length?c("number"):void 0,p=to(r,f,g);return m.replace(new RegExp(nd,"g"),p)};return{plural:(f,m)=>{const{offset:g=0}=m,p=If(r,!1,f,m);return d(f-g,p)},selectordinal:(f,m)=>{const{offset:g=0}=m,p=If(r,!0,f,m);return d(f-g,p)},select:ab,number:(f,m)=>to(r,f,c(m)||{style:m}),date:(f,m)=>Ir(r,f,c(m)||m),time:(f,m)=>nb(r,f,c(m)||m)}},ab=(i,a)=>a[i]??a.other;function lb(i,a,s){return(r={},c)=>{const d=ib(a,s,c),f=(g,p=!1)=>Array.isArray(g)?g.reduce((v,b)=>{if(b==="#"&&p)return v+nd;if(zn(b))return v+b;const[S,M,L]=b;let w={};M==="plural"||M==="selectordinal"||M==="select"?Object.entries(L).forEach(([Y,Q])=>{w[Y]=f(Q,M==="plural"||M==="selectordinal")}):w=L;let H;if(M){const Y=d[M];H=Y(r[S],w)}else H=r[S];return H==null?v:v+H},""):g,m=f(i);return zn(m)&&td.test(m)?ed(m):zn(m)?m:m?String(m):""}}class sb{_events={};on(a,s){return this._events[a]??=new Set,this._events[a].add(s),()=>this.removeListener(a,s)}removeListener(a,s){const r=this._events[a];r?.delete(s),r?.size===0&&delete this._events[a]}emit(a,...s){const r=this._events[a];if(r)for(const c of[...r])c.apply(this,s)}}class rb extends sb{_locale="";_locales;_messages={};_missing;_messageCompiler;constructor(a){super(),a.missing!=null&&(this._missing=a.missing),a.messages!=null&&this.load(a.messages),(typeof a.locale=="string"||a.locales)&&this.activate(a.locale??$f,a.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(a){return this._messageCompiler=a,this}_load(a,s){const r=this._messages[a];r?Object.assign(r,s):this._messages[a]=s}load(a,s){typeof a=="string"&&typeof s=="object"?this._load(a,s):Object.entries(a).forEach(([r,c])=>this._load(r,c)),this.emit("change")}loadAndActivate({locale:a,locales:s,messages:r}){this._locale=a,this._locales=s||void 0,this._messages[this._locale]=r,this.emit("change")}activate(a,s){this._locale=a,this._locales=s,this.emit("change")}_(a,s,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let c=r?.message;a||(a=""),zn(a)||(s=a.values||s,c=a.message,a=a.id);const d=this.messages[a],f=d===void 0,m=this._missing;if(m&&f)return eb(m)?m(this._locale,a):m;f&&this.emit("missing",{id:a,locale:this._locale});let g=d||c||a;return zn(g)&&(this._messageCompiler?g=this._messageCompiler(g):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
|
-
> ${
|
|
4
|
+
> ${g}
|
|
5
5
|
|
|
6
6
|
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),Pi(h)&&ry.test(h)?ay(h):Pi(h)?h:o5(h,this._locale,this._locales)(n,r?.formats)}t=this._.bind(this);date(e,n){return ed(this._locales||this._locale,e,n)}number(e,n){return td(this._locales||this._locale,e,n)}}function c5(t={}){return new u5(t)}const nd=c5();var id={exports:{}},Xa={};var ly;function f5(){if(ly)return Xa;ly=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:t,type:r,key:c,ref:o!==void 0?o:null,props:u}}return Xa.Fragment=e,Xa.jsx=n,Xa.jsxs=n,Xa}var uy;function d5(){return uy||(uy=1,id.exports=f5()),id.exports}var ve=d5(),sd={exports:{}},xe={};var cy;function h5(){if(cy)return xe;cy=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=_&&T[_]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function R(T,j,W){this.props=T,this.context=j,this.refs=M,this.updater=W||x}R.prototype.isReactComponent={},R.prototype.setState=function(T,j){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,j,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function q(){}q.prototype=R.prototype;function F(T,j,W){this.props=T,this.context=j,this.refs=M,this.updater=W||x}var K=F.prototype=new q;K.constructor=F,E(K,R.prototype),K.isPureReactComponent=!0;var U=Array.isArray;function Q(){}var P={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function $(T,j,W){var H=W.ref;return{$$typeof:t,type:T,key:j,ref:H!==void 0?H:null,props:W}}function ee(T,j){return $(T.type,j,T.props)}function le(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function ie(T){var j={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return j[W]})}var he=/\/+/g;function ye(T,j){return typeof T=="object"&&T!==null&&T.key!=null?ie(""+T.key):j.toString(36)}function L(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Q,Q):(T.status="pending",T.then(function(j){T.status==="pending"&&(T.status="fulfilled",T.value=j)},function(j){T.status==="pending"&&(T.status="rejected",T.reason=j)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function A(T,j,W,H,oe){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var Me=!1;if(T===null)Me=!0;else switch(ge){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(T.$$typeof){case t:case e:Me=!0;break;case m:return Me=T._init,A(Me(T._payload),j,W,H,oe)}}if(Me)return oe=oe(T),Me=H===""?"."+ye(T,0):H,U(oe)?(W="",Me!=null&&(W=Me.replace(he,"$&/")+"/"),A(oe,j,W,"",function(it){return it})):oe!=null&&(le(oe)&&(oe=ee(oe,W+(oe.key==null||T&&T.key===oe.key?"":(""+oe.key).replace(he,"$&/")+"/")+Me)),j.push(oe)),1;Me=0;var je=H===""?".":H+":";if(U(T))for(var Ue=0;Ue<T.length;Ue++)H=T[Ue],ge=je+ye(H,Ue),Me+=A(H,j,W,ge,oe);else if(Ue=b(T),typeof Ue=="function")for(T=Ue.call(T),Ue=0;!(H=T.next()).done;)H=H.value,ge=je+ye(H,Ue++),Me+=A(H,j,W,ge,oe);else if(ge==="object"){if(typeof T.then=="function")return A(L(T),j,W,H,oe);throw j=String(T),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Me}function N(T,j,W){if(T==null)return T;var H=[],oe=0;return A(T,H,"","",function(ge){return j.call(W,ge,oe++)}),H}function J(T){if(T._status===-1){var j=T._result;j=j(),j.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=j)}if(T._status===1)return T._result.default;throw T._result}var te=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ue={map:N,forEach:function(T,j,W){N(T,function(){j.apply(this,arguments)},W)},count:function(T){var j=0;return N(T,function(){j++}),j},toArray:function(T){return N(T,function(j){return j})||[]},only:function(T){if(!le(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return xe.Activity=v,xe.Children=ue,xe.Component=R,xe.Fragment=n,xe.Profiler=o,xe.PureComponent=F,xe.StrictMode=r,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,xe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return P.H.useMemoCache(T)}},xe.cache=function(T){return function(){return T.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(T,j,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var H=E({},T.props),oe=T.key;if(j!=null)for(ge in j.key!==void 0&&(oe=""+j.key),j)!I.call(j,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&j.ref===void 0||(H[ge]=j[ge]);var ge=arguments.length-2;if(ge===1)H.children=W;else if(1<ge){for(var Me=Array(ge),je=0;je<ge;je++)Me[je]=arguments[je+2];H.children=Me}return $(T.type,oe,H)},xe.createContext=function(T){return T={$$typeof:c,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:u,_context:T},T},xe.createElement=function(T,j,W){var H,oe={},ge=null;if(j!=null)for(H in j.key!==void 0&&(ge=""+j.key),j)I.call(j,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(oe[H]=j[H]);var Me=arguments.length-2;if(Me===1)oe.children=W;else if(1<Me){for(var je=Array(Me),Ue=0;Ue<Me;Ue++)je[Ue]=arguments[Ue+2];oe.children=je}if(T&&T.defaultProps)for(H in Me=T.defaultProps,Me)oe[H]===void 0&&(oe[H]=Me[H]);return $(T,ge,oe)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(T){return{$$typeof:f,render:T}},xe.isValidElement=le,xe.lazy=function(T){return{$$typeof:m,_payload:{_status:-1,_result:T},_init:J}},xe.memo=function(T,j){return{$$typeof:g,type:T,compare:j===void 0?null:j}},xe.startTransition=function(T){var j=P.T,W={};P.T=W;try{var H=T(),oe=P.S;oe!==null&&oe(W,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(Q,te)}catch(ge){te(ge)}finally{j!==null&&W.types!==null&&(j.types=W.types),P.T=j}},xe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},xe.use=function(T){return P.H.use(T)},xe.useActionState=function(T,j,W){return P.H.useActionState(T,j,W)},xe.useCallback=function(T,j){return P.H.useCallback(T,j)},xe.useContext=function(T){return P.H.useContext(T)},xe.useDebugValue=function(){},xe.useDeferredValue=function(T,j){return P.H.useDeferredValue(T,j)},xe.useEffect=function(T,j){return P.H.useEffect(T,j)},xe.useEffectEvent=function(T){return P.H.useEffectEvent(T)},xe.useId=function(){return P.H.useId()},xe.useImperativeHandle=function(T,j,W){return P.H.useImperativeHandle(T,j,W)},xe.useInsertionEffect=function(T,j){return P.H.useInsertionEffect(T,j)},xe.useLayoutEffect=function(T,j){return P.H.useLayoutEffect(T,j)},xe.useMemo=function(T,j){return P.H.useMemo(T,j)},xe.useOptimistic=function(T,j){return P.H.useOptimistic(T,j)},xe.useReducer=function(T,j,W){return P.H.useReducer(T,j,W)},xe.useRef=function(T){return P.H.useRef(T)},xe.useState=function(T){return P.H.useState(T)},xe.useSyncExternalStore=function(T,j,W){return P.H.useSyncExternalStore(T,j,W)},xe.useTransition=function(){return P.H.useTransition()},xe.version="19.2.5",xe}var fy;function rd(){return fy||(fy=1,sd.exports=h5()),sd.exports}var Y=rd();const p5=In({__proto__:null,default:Ga(Y)},[Y]),g5=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,m5={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,menuitem:!0};function dy(t,e={}){const n=t.split(g5);if(n.length===1)return t;const r=v5(0,"$lingui$"),o=[],u=n.shift();u&&o.push(u);for(const[c,f,h]of hy(n)){let g=typeof c<"u"?e[c]:void 0;(!g||m5[g.type]&&f)&&(console.error(g?`${g.type} is a void element tag therefore it must have no children`:`Can't use element at index '${c}' as it is not declared in the original translation`),g=ve.jsx(ve.Fragment,{})),Array.isArray(g)&&(g=ve.jsx(ve.Fragment,{children:g})),o.push(Y.cloneElement(g,{key:r()},f?dy(f,e):g.props.children)),h&&o.push(h)}return o.length===1?o[0]:o}function hy(t){if(!t.length)return[];const[e,n,r,o]=t.slice(0,4);return[[e||r,n||"",o]].concat(hy(t.slice(4,t.length)))}const v5=(t=0,e="")=>()=>`${e}_${t++}`;function y5(t){const{render:e,component:n,id:r,message:o,formats:u,lingui:{i18n:c,defaultComponent:f}}=t,{values:h,components:g}=b5(t),m=c&&typeof c._=="function"?c._(r,h,{message:o,formats:u}):r,v=m?dy(m,g):null;if(e===null||n===null)return v;const _=f||_5,b={id:r,message:o,translation:v,children:v};if(e&&n)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(e&&typeof e!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${e}`);else if(n&&typeof n!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${n}`),ve.jsx(_,{...b,children:v});if(typeof e=="function")return e(b);const x=n||_;return ve.jsx(x,{...b,children:v})}const _5=({children:t})=>t,b5=t=>{if(!t.values)return{values:void 0,components:t.components};const e={...t.values},n={...t.components};return Object.entries(t.values).forEach(([r,o])=>{if(typeof o=="string"||typeof o=="number")return;const u=Object.keys(n).length;n[u]=ve.jsx(ve.Fragment,{children:o}),e[r]=`<${u}/>`}),{values:e,components:n}},py=Y.createContext(null),gy=t=>Y.useContext(py);function my(){return gy()}const S5=({i18n:t,defaultComponent:e,children:n})=>{const r=Y.useRef(t.locale||null),o=Y.useCallback(()=>({i18n:new Proxy(t,{}),defaultComponent:e,_:t.t.bind(t)}),[t,e]),[u,c]=Y.useState(o);return Y.useEffect(()=>{const f=()=>{r.current=t.locale||null,c(o())},h=t.on("change",f);return r.current!==t.locale&&f(),h},[t,o]),r.current===null?null:ve.jsx(py.Provider,{value:u,children:n})};function ad(t){const e=gy();return ve.jsx(y5,{...t,lingui:e})}const Ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ye=globalThis,Rs="9.47.1";function Jl(){return Wl(Ye),Ye}function Wl(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Rs,e[Rs]=e[Rs]||{}}function Ka(t,e,n=Ye){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[Rs]=r[Rs]||{};return o[t]||(o[t]=e())}const E5=["debug","info","warn","error","log","assert","trace"],x5="Sentry Logger ",eu={};function Sr(t){if(!("console"in Ye))return t();const e=Ye.console,n={},r=Object.keys(eu);r.forEach(o=>{const u=eu[o];n[o]=e[o],e[o]=u});try{return t()}finally{r.forEach(o=>{e[o]=n[o]})}}function T5(){ld().enabled=!0}function w5(){ld().enabled=!1}function vy(){return ld().enabled}function A5(...t){od("log",...t)}function C5(...t){od("warn",...t)}function M5(...t){od("error",...t)}function od(t,...e){Ce&&vy()&&Sr(()=>{Ye.console[t](`${x5}[${t}]:`,...e)})}function ld(){return Ce?Ka("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Se={enable:T5,disable:w5,isEnabled:vy,log:A5,warn:C5,error:M5},yy=50,Ds="?",_y=/\(error: (.*)\)/,by=/captureMessage|captureException/;function Sy(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const u=[],c=n.split(`
|
|
11
|
-
`)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Error:`,o)}}let cd=null;function D5(t){const e="error";ks(e,t),Ls(e,k5)}function k5(){cd=Ye.onerror,Ye.onerror=function(t,e,n,r,o){return qn("error",{column:r,error:o,line:n,msg:t,url:e}),cd?cd.apply(this,arguments):!1},Ye.onerror.__SENTRY_INSTRUMENTED__=!0}let fd=null;function L5(t){const e="unhandledrejection";ks(e,t),Ls(e,N5)}function N5(){fd=Ye.onunhandledrejection,Ye.onunhandledrejection=function(t){return qn("unhandledrejection",t),fd?fd.apply(this,arguments):!0},Ye.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ty=Object.prototype.toString;function iu(t){switch(Ty.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Fi(t,Error)}}function Er(t,e){return Ty.call(t)===`[object ${e}]`}function wy(t){return Er(t,"ErrorEvent")}function Ay(t){return Er(t,"DOMError")}function z5(t){return Er(t,"DOMException")}function ai(t){return Er(t,"String")}function dd(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function hd(t){return t===null||dd(t)||typeof t!="object"&&typeof t!="function"}function Za(t){return Er(t,"Object")}function su(t){return typeof Event<"u"&&Fi(t,Event)}function j5(t){return typeof Element<"u"&&Fi(t,Element)}function U5(t){return Er(t,"RegExp")}function ru(t){return!!(t?.then&&typeof t.then=="function")}function B5(t){return Za(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Fi(t,e){try{return t instanceof e}catch{return!1}}function Cy(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function V5(t){return typeof Request<"u"&&Fi(t,Request)}const pd=Ye,I5=80;function My(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let u=0,c=0;const f=" > ",h=f.length;let g;const m=Array.isArray(e)?e:e.keyAttrs,v=!Array.isArray(e)&&e.maxStringLength||I5;for(;n&&u++<r&&(g=q5(n,m),!(g==="html"||u>1&&c+o.length*h+g.length>=v));)o.push(g),c+=g.length,n=n.parentNode;return o.reverse().join(f)}catch{return"<unknown>"}}function q5(t,e){const n=t,r=[];if(!n?.tagName)return"";if(pd.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=e?.length?e.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o?.length)o.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const c=n.className;if(c&&ai(c)){const f=c.split(/\s+/);for(const h of f)r.push(`.${h}`)}}const u=["aria-label","type","name","title","alt"];for(const c of u){const f=n.getAttribute(c);f&&r.push(`[${c}="${f}"]`)}return r.join("")}function gd(){try{return pd.document.location.href}catch{return""}}function P5(t){if(!pd.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function au(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Oy(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const o=t[r];try{Cy(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function H5(t,e,n=!1){return ai(t)?U5(e)?e.test(t):ai(e)?n?t===e:t.includes(e):!1:!1}function ou(t,e=[],n=!1){return e.some(r=>H5(t,r,n))}function an(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&Ry(o,r);try{t[e]=o}catch{Ce&&Se.log(`Failed to replace method "${e}" in object`,t)}}function Ns(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Ce&&Se.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Ry(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Ns(t,"__sentry_original__",e)}catch{}}function md(t){return t.__sentry_original__}function Dy(t){if(iu(t))return{message:t.message,name:t.name,stack:t.stack,...Ly(t)};if(su(t)){const e={type:t.type,target:ky(t.target),currentTarget:ky(t.currentTarget),...Ly(t)};return typeof CustomEvent<"u"&&Fi(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function ky(t){try{return j5(t)?My(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Ly(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function F5(t,e=40){const n=Object.keys(Dy(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return au(r,e);for(let o=n.length;o>0;o--){const u=n.slice(0,o).join(", ");if(!(u.length>e))return o===n.length?u:au(u,e)}return""}function $5(){const t=Ye;return t.crypto||t.msCrypto}function Tn(t=$5()){let e=()=>Math.random()*16;try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function Ny(t){return t.exception?.values?.[0]}function zs(t){const{message:e,event_id:n}=t;if(e)return e;const r=Ny(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function vd(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],u=o[0]=o[0]||{};u.value||(u.value=e||""),u.type||(u.type="Error")}function xr(t,e){const n=Ny(t);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...e},e&&"data"in e){const u={...o?.data,...e.data};n.mechanism.data=u}}function zy(t){if(G5(t))return!0;try{Ns(t,"__sentry_captured__",!0)}catch{}return!1}function G5(t){try{return t.__sentry_captured__}catch{}}const jy=1e3;function Qa(){return Date.now()/jy}function Y5(){const{performance:t}=Ye;if(!t?.now||!t.timeOrigin)return Qa;const e=t.timeOrigin;return()=>(e+t.now())/jy}let Uy;function oi(){return(Uy??(Uy=Y5()))()}function X5(t){const e=oi(),n={sid:Tn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Z5(n)};return t&&Tr(n,t),n}function Tr(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||oi(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Tn()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function K5(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Tr(t,n)}function Z5(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Ja(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Ja(r[o],e[o],n-1));return r}function By(){return Tn()}function Vy(){return Tn().substring(16)}const yd="_sentrySpan";function Iy(t,e){e?Ns(t,yd,e):delete t[yd]}function qy(t){return t[yd]}const Q5=100;class Xn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:By(),sampleRand:Math.random()}}clone(){const e=new Xn;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Iy(e,qy(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Tr(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof Xn?n.getScopeData():Za(n)?e:void 0,{tags:o,extra:u,user:c,contexts:f,level:h,fingerprint:g=[],propagationContext:m}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...u},this._contexts={...this._contexts,...f},c&&Object.keys(c).length&&(this._user=c),h&&(this._level=h),g.length&&(this._fingerprint=g),m&&(this._propagationContext=m),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Iy(this,void 0),this._attachments=[],this.setPropagationContext({traceId:By(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Q5;if(r<=0)return this;const o={timestamp:Qa(),...e,message:e.message?au(e.message,2048):e.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qy(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Ja(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||Tn();if(!this._client)return Ce&&Se.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureMessage(e,n,r){const o=r?.event_id||Tn();if(!this._client)return Ce&&Se.warn("No client configured on scope - will not capture message!"),o;const u=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:u,...r,event_id:o},this),o}captureEvent(e,n){const r=n?.event_id||Tn();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Ce&&Se.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function J5(){return Ka("defaultCurrentScope",()=>new Xn)}function W5(){return Ka("defaultIsolationScope",()=>new Xn)}class eC{constructor(e,n){let r;e?r=e:r=new Xn;let o;n?o=n:o=new Xn,this._stack=[{scope:r}],this._isolationScope=o}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(o){throw this._popScope(),o}return ru(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function wr(){const t=Jl(),e=Wl(t);return e.stack=e.stack||new eC(J5(),W5())}function tC(t){return wr().withScope(t)}function nC(t,e){const n=wr();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Py(t){return wr().withScope(()=>t(wr().getIsolationScope()))}function iC(){return{withIsolationScope:Py,withScope:tC,withSetScope:nC,withSetIsolationScope:(t,e)=>Py(e),getCurrentScope:()=>wr().getScope(),getIsolationScope:()=>wr().getIsolationScope()}}function _d(t){const e=Wl(t);return e.acs?e.acs:iC()}function li(){const t=Jl();return _d(t).getCurrentScope()}function Ar(){const t=Jl();return _d(t).getIsolationScope()}function sC(){return Ka("globalScope",()=>new Xn)}function bd(...t){const e=Jl(),n=_d(e);if(t.length===2){const[r,o]=t;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(t[0])}function Ot(){return li().getClient()}function rC(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=e,u={trace_id:n,span_id:o||Vy()};return r&&(u.parent_span_id=r),u}const aC="sentry.source",oC="sentry.sample_rate",lC="sentry.previous_trace_sample_rate",uC="sentry.op",cC="sentry.origin",Hy="sentry.profile_id",Fy="sentry.exclusive_time",fC=0,dC=1,hC="_sentryScope",pC="_sentryIsolationScope";function $y(t){return{scope:t[hC],isolationScope:t[pC]}}const gC="sentry-",mC=/^sentry-/;function vC(t){const e=yC(t);if(!e)return;const n=Object.entries(e).reduce((r,[o,u])=>{if(o.match(mC)){const c=o.slice(gC.length);r[c]=u}return r},{});if(Object.keys(n).length>0)return n}function yC(t){if(!(!t||!ai(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Gy(n);return Object.entries(r).forEach(([o,u])=>{e[o]=u}),e},{}):Gy(t)}function Gy(t){return t.split(",").map(e=>e.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function _C(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const Yy=1;let Xy=!1;function bC(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),o=r?e:Sd(t).parent_span_id,u=$y(t).scope,c=r?u?.getPropagationContext().propagationSpanId||Vy():e;return{parent_span_id:o,span_id:c,trace_id:n}}function SC(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...o},attributes:u})=>({span_id:e,trace_id:n,sampled:r===Yy,attributes:u,...o}))}function Ky(t){return typeof t=="number"?Zy(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Zy(t.getTime()):oi()}function Zy(t){return t>9999999999?t/1e3:t}function Sd(t){if(xC(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(EC(t)){const{attributes:r,startTime:o,name:u,endTime:c,status:f,links:h}=t,g="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:u,parent_span_id:g,start_timestamp:Ky(o),timestamp:Ky(c)||void 0,status:wC(f),op:r[uC],origin:r[cC],links:SC(h)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function EC(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function xC(t){return typeof t.getSpanJSON=="function"}function TC(t){const{traceFlags:e}=t.spanContext();return e===Yy}function wC(t){if(!(!t||t.code===fC))return t.code===dC?"ok":t.message||"unknown_error"}const AC="_sentryRootSpan";function Qy(t){return t[AC]||t}function Jy(){Xy||(Sr(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Xy=!0)}function CC(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||Ot()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Ed="production",MC=/^o(\d+)\./,OC=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function RC(t){return t==="http"||t==="https"}function Wa(t,e=!1){const{host:n,path:r,pass:o,port:u,projectId:c,protocol:f,publicKey:h}=t;return`${f}://${h}${e&&o?`:${o}`:""}@${n}${u?`:${u}`:""}/${r&&`${r}/`}${c}`}function DC(t){const e=OC.exec(t);if(!e){Sr(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,o="",u="",c="",f=""]=e.slice(1);let h="",g=f;const m=g.split("/");if(m.length>1&&(h=m.slice(0,-1).join("/"),g=m.pop()),g){const v=g.match(/^\d+/);v&&(g=v[0])}return Wy({host:u,pass:o,path:h,projectId:g,port:c,protocol:n,publicKey:r})}function Wy(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function kC(t){if(!Ce)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(c=>t[c]?!1:(Se.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?RC(r)?e&&isNaN(parseInt(e,10))?(Se.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Se.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function LC(t){return t.match(MC)?.[1]}function e_(t){const e=typeof t=="string"?DC(t):Wy(t);if(!(!e||!kC(e)))return e}const NC="_frozenDsc";function t_(t,e){const n=e.getOptions(),{publicKey:r,host:o}=e.getDsn()||{};let u;n.orgId?u=String(n.orgId):o&&(u=LC(o));const c={environment:n.environment||Ed,release:n.release,public_key:r,trace_id:t,org_id:u};return e.emit("createDsc",c),c}function zC(t,e){const n=e.getPropagationContext();return n.dsc||t_(n.traceId,t)}function jC(t){const e=Ot();if(!e)return{};const n=Qy(t),r=Sd(n),o=r.data,u=n.spanContext().traceState,c=u?.get("sentry.sample_rate")??o[oC]??o[lC];function f(x){return(typeof c=="number"||typeof c=="string")&&(x.sample_rate=`${c}`),x}const h=n[NC];if(h)return f(h);const g=u?.get("sentry.dsc"),m=g&&vC(g);if(m)return f(m);const v=t_(t.spanContext().traceId,e),_=o[aC],b=r.description;return _!=="url"&&b&&(v.transaction=b),CC()&&(v.sampled=String(TC(n)),v.sample_rand=u?.get("sentry.sample_rand")??$y(n).scope?.getPropagationContext().sampleRand.toString()),f(v),e.emit("createDsc",v,n),v}function ui(t,e=100,n=1/0){try{return xd("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function n_(t,e=3,n=100*1024){const r=ui(t,e);return IC(r)>n?n_(t,e-1,n):r}function xd(t,e,n=1/0,r=1/0,o=qC()){const[u,c]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const f=UC(t,e);if(!f.startsWith("[object "))return f;if(e.__sentry_skip_normalization__)return e;const h=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(h===0)return f.replace("object ","");if(u(e))return"[Circular ~]";const g=e;if(g&&typeof g.toJSON=="function")try{const b=g.toJSON();return xd("",b,h-1,r,o)}catch{}const m=Array.isArray(e)?[]:{};let v=0;const _=Dy(e);for(const b in _){if(!Object.prototype.hasOwnProperty.call(_,b))continue;if(v>=r){m[b]="[MaxProperties ~]";break}const x=_[b];m[b]=xd(b,x,h-1,r,o),v++}return c(e),m}function UC(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Cy(e))return"[VueViewModel]";if(B5(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Hi(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=BC(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function BC(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function VC(t){return~-encodeURI(t).split(/%..|./).length}function IC(t){return VC(JSON.stringify(t))}function qC(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function eo(t,e=[]){return[t,e]}function PC(t,e){const[n,r]=t;return[n,[...r,e]]}function i_(t,e){const n=t[1];for(const r of n){const o=r[0].type;if(e(r,o))return!0}return!1}function Td(t){const e=Wl(Ye);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function HC(t){const[e,n]=t;let r=JSON.stringify(e);function o(u){typeof r=="string"?r=typeof u=="string"?r+u:[Td(r),u]:r.push(typeof u=="string"?Td(u):u)}for(const u of n){const[c,f]=u;if(o(`
|
|
15
|
-
|
|
16
|
-
`),typeof f=="string"||f instanceof Uint8Array)o(f);else{let h;try{h=JSON.stringify(f)}catch{h=JSON.stringify(ui(f))}o(h)}}return typeof r=="string"?r:FC(r)}function FC(t){const e=t.reduce((o,u)=>o+u.length,0),n=new Uint8Array(e);let r=0;for(const o of t)n.set(o,r),r+=o.length;return n}function $C(t){const e=typeof t.data=="string"?Td(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const GC={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function s_(t){return GC[t]}function r_(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function YC(t,e,n,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Wa(r)},...o&&{trace:o}}}function XC(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function KC(t,e,n,r){const o=r_(n),u={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:Wa(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return eo(u,[c])}function ZC(t,e,n,r){const o=r_(n),u=t.type&&t.type!=="replay_event"?t.type:"event";XC(t,n?.sdk);const c=YC(t,o,r,e);return delete t.sdkProcessingMetadata,eo(c,[[{type:u},t]])}const wd=0,a_=1,o_=2;function js(t){return new $i(e=>{e(t)})}function lu(t){return new $i((e,n)=>{n(t)})}class $i{constructor(e){this._state=wd,this._handlers=[],this._runExecutor(e)}then(e,n){return new $i((r,o)=>{this._handlers.push([!1,u=>{if(!e)r(u);else try{r(e(u))}catch(c){o(c)}},u=>{if(!n)o(u);else try{r(n(u))}catch(c){o(c)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new $i((n,r)=>{let o,u;return this.then(c=>{u=!1,o=c,e&&e()},c=>{u=!0,o=c,e&&e()}).then(()=>{if(u){r(o);return}n(o)})})}_executeHandlers(){if(this._state===wd)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===a_&&n[1](this._value),this._state===o_&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(u,c)=>{if(this._state===wd){if(ru(c)){c.then(r,o);return}this._state=u,this._value=c,this._executeHandlers()}},r=u=>{n(a_,u)},o=u=>{n(o_,u)};try{e(r,o)}catch(u){o(u)}}}function Ad(t,e,n,r=0){return new $i((o,u)=>{const c=t[r];if(e===null||typeof c!="function")o(e);else{const f=c({...e},n);Ce&&c.id&&f===null&&Se.log(`Event processor "${c.id}" dropped event`),ru(f)?f.then(h=>Ad(t,h,n,r+1).then(o)).then(null,u):Ad(t,f,n,r+1).then(o).then(null,u)}})}function QC(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:u}=e;JC(t,e),r&&tM(t,r),nM(t,n),WC(t,o),eM(t,u)}function l_(t,e){const{extra:n,tags:r,user:o,contexts:u,level:c,sdkProcessingMetadata:f,breadcrumbs:h,fingerprint:g,eventProcessors:m,attachments:v,propagationContext:_,transactionName:b,span:x}=e;uu(t,"extra",n),uu(t,"tags",r),uu(t,"user",o),uu(t,"contexts",u),t.sdkProcessingMetadata=Ja(t.sdkProcessingMetadata,f,2),c&&(t.level=c),b&&(t.transactionName=b),x&&(t.span=x),h.length&&(t.breadcrumbs=[...t.breadcrumbs,...h]),g.length&&(t.fingerprint=[...t.fingerprint,...g]),m.length&&(t.eventProcessors=[...t.eventProcessors,...m]),v.length&&(t.attachments=[...t.attachments,...v]),t.propagationContext={...t.propagationContext,..._}}function uu(t,e,n){t[e]=Ja(t[e],n,1)}function JC(t,e){const{extra:n,tags:r,user:o,contexts:u,level:c,transactionName:f}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(o).length&&(t.user={...o,...t.user}),Object.keys(u).length&&(t.contexts={...u,...t.contexts}),c&&(t.level=c),f&&t.type!=="transaction"&&(t.transaction=f)}function WC(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function eM(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function tM(t,e){t.contexts={trace:bC(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:jC(e),...t.sdkProcessingMetadata};const n=Qy(e),r=Sd(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function nM(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let cu,u_,fu;function iM(t){const e=Ye._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return fu&&n.length===u_||(u_=n.length,fu=n.reduce((r,o)=>{cu||(cu={});const u=cu[o];if(u)r[u[0]]=u[1];else{const c=t(o);for(let f=c.length-1;f>=0;f--){const g=c[f]?.filename,m=e[o];if(g&&m){r[g]=m,cu[o]=[g,m];break}}}return r},{})),fu}function sM(t,e,n,r,o,u){const{normalizeDepth:c=3,normalizeMaxBreadth:f=1e3}=t,h={...e,event_id:e.event_id||n.event_id||Tn(),timestamp:e.timestamp||Qa()},g=n.integrations||t.integrations.map(M=>M.name);rM(h,t),lM(h,g),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&aM(h,t.stackParser);const m=cM(r,n.captureContext);n.mechanism&&xr(h,n.mechanism);const v=o?o.getEventProcessors():[],_=sC().getScopeData();if(u){const M=u.getScopeData();l_(_,M)}if(m){const M=m.getScopeData();l_(_,M)}const b=[...n.attachments||[],..._.attachments];b.length&&(n.attachments=b),QC(h,_);const x=[...v,..._.eventProcessors];return Ad(x,h,n).then(M=>(M&&oM(M),typeof c=="number"&&c>0?uM(M,c,f):M))}function rM(t,e){const{environment:n,release:r,dist:o,maxValueLength:u=250}=e;t.environment=t.environment||n||Ed,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o);const c=t.request;c?.url&&(c.url=au(c.url,u))}function aM(t,e){const n=iM(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function oM(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function lM(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function uM(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:ui(o.data,e,n)}}))},...t.user&&{user:ui(t.user,e,n)},...t.contexts&&{contexts:ui(t.contexts,e,n)},...t.extra&&{extra:ui(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ui(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(o=>({...o,...o.data&&{data:ui(o.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=ui(t.contexts.flags,3,n)),r}function cM(t,e){if(!e)return t;const n=t?t.clone():new Xn;return n.update(e),n}function fM(t){if(t)return dM(t)?{captureContext:t}:pM(t)?{captureContext:t}:t}function dM(t){return t instanceof Xn||typeof t=="function"}const hM=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function pM(t){return Object.keys(t).some(e=>hM.includes(e))}function c_(t,e){return li().captureException(t,fM(e))}function f_(t,e){return li().captureEvent(t,e)}function gM(){return Ar().lastEventId()}function d_(t){const e=Ar(),n=li(),{userAgent:r}=Ye.navigator||{},o=X5({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),u=e.getSession();return u?.status==="ok"&&Tr(u,{status:"exited"}),h_(),e.setSession(o),o}function h_(){const t=Ar(),n=li().getSession()||t.getSession();n&&K5(n),p_(),t.setSession()}function p_(){const t=Ar(),e=Ot(),n=t.getSession();n&&e&&e.captureSession(n)}function g_(t=!1){if(t){h_();return}p_()}const mM="7";function m_(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function vM(t){return`${m_(t)}${t.projectId}/envelope/`}function yM(t,e){const n={sentry_version:mM};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function _M(t,e,n){return e||`${vM(t)}?${yM(t,n)}`}function bM(t,e){const n=e_(t);if(!n)return"";const r=`${m_(n)}embed/error-page/`;let o=`dsn=${Wa(n)}`;for(const u in e)if(u!=="dsn"&&u!=="onClose")if(u==="user"){const c=e.user;if(!c)continue;c.name&&(o+=`&name=${encodeURIComponent(c.name)}`),c.email&&(o+=`&email=${encodeURIComponent(c.email)}`)}else o+=`&${encodeURIComponent(u)}=${encodeURIComponent(e[u])}`;return`${r}?${o}`}const v_=[];function SM(t){const e={};return t.forEach(n=>{const{name:r}=n,o=e[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function EM(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const o=n(e);r=Array.isArray(o)?o:[o]}else r=e;return SM(r)}function xM(t,e){const n={};return e.forEach(r=>{r&&__(t,r,n)}),n}function y_(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function __(t,e,n){if(n[e.name]){Ce&&Se.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,v_.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),v_.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,u)=>r(o,u,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),o=Object.assign((u,c)=>r(u,c,t),{id:e.name});t.addEventProcessor(o)}Ce&&Se.log(`Integration installed: ${e.name}`)}function sV(t){return t}function TM(t,e,n){const r=[{type:"client_report"},{timestamp:Qa(),discarded_events:t}];return eo(e?{dsn:e}:{},[r])}function b_(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function wM(t){const{trace_id:e,parent_span_id:n,span_id:r,status:o,origin:u,data:c,op:f}=t.contexts?.trace??{};return{data:c??{},description:t.transaction,op:f,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:e??"",origin:u,profile_id:c?.[Hy],exclusive_time:c?.[Fy],measurements:t.measurements,is_segment:!0}}function AM(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[Hy]:t.profile_id},...t.exclusive_time&&{[Fy]:t.exclusive_time}}}},measurements:t.measurements}}const S_="Not capturing exception because it's already been captured.",E_="Discarded session because of missing or non-string release",x_=Symbol.for("SentryInternalError"),T_=Symbol.for("SentryDoNotSendEventError");function du(t){return{message:t,[x_]:!0}}function Cd(t){return{message:t,[T_]:!0}}function w_(t){return!!t&&typeof t=="object"&&x_ in t}function A_(t){return!!t&&typeof t=="object"&&T_ in t}class CM{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=e_(e.dsn):Ce&&Se.warn("No DSN provided, client will not send events."),this._dsn){const n=_M(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){const o=Tn();if(zy(e))return Ce&&Se.log(S_),o;const u={event_id:o,...n};return this._process(this.eventFromException(e,u).then(c=>this._captureEvent(c,u,r))),u.event_id}captureMessage(e,n,r,o){const u={event_id:Tn(),...r},c=dd(e)?e:String(e),f=hd(e)?this.eventFromMessage(c,n,u):this.eventFromException(e,u);return this._process(f.then(h=>this._captureEvent(h,u,o))),u.event_id}captureEvent(e,n,r){const o=Tn();if(n?.originalException&&zy(n.originalException))return Ce&&Se.log(S_),o;const u={event_id:o,...n},c=e.sdkProcessingMetadata||{},f=c.capturedSpanScope,h=c.capturedSpanIsolationScope;return this._process(this._captureEvent(e,u,f||r,h)),u.event_id}captureSession(e){this.sendSession(e),Tr(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(o=>r&&o))):js(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];__(this,e,this._integrations),n||y_(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ZC(e,this._dsn,this._options._metadata,this._options.tunnel);for(const u of n.attachments||[])r=PC(r,$C(u));const o=this.sendEnvelope(r);o&&o.then(u=>this.emit("afterSendEvent",e,u),null)}sendSession(e){const{release:n,environment:r=Ed}=this._options;if("aggregates"in e){const u=e.attrs||{};if(!u.release&&!n){Ce&&Se.warn(E_);return}u.release=u.release||n,u.environment=u.environment||r,e.attrs=u}else{if(!e.release&&!n){Ce&&Se.warn(E_);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const o=KC(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const o=`${e}:${n}`;Ce&&Se.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(o=>o(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(Ce&&Se.error("Error while sending envelope:",n),n)):(Ce&&Se.error("Transport disabled"),js({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=xM(this,e),y_(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",o=!1;const u=n.exception?.values;if(u){o=!0;for(const h of u)if(h.mechanism?.handled===!1){r=!0;break}}const c=e.status==="ok";(c&&e.errors===0||c&&r)&&(Tr(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new $i(n=>{let r=0;const o=1,u=setInterval(()=>{this._numProcessing==0?(clearInterval(u),n(!0)):(r+=o,e&&r>=e&&(clearInterval(u),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,o){const u=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c?.length&&(n.integrations=c),this.emit("preprocessEvent",e,n),e.type||o.setLastEventId(e.event_id||n.event_id),sM(u,e,n,r,this,o).then(f=>{if(f===null)return f;this.emit("postprocessEvent",f,n),f.contexts={trace:rC(r),...f.contexts};const h=zC(this,r);return f.sdkProcessingMetadata={dynamicSamplingContext:h,...f.sdkProcessingMetadata},f})}_captureEvent(e,n={},r=li(),o=Ar()){return Ce&&Md(e)&&Se.log(`Captured error event \`${b_(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,o).then(u=>u.event_id,u=>{Ce&&(A_(u)?Se.log(u.message):w_(u)?Se.warn(u.message):Se.warn(u))})}_processEvent(e,n,r,o){const u=this.getOptions(),{sampleRate:c}=u,f=C_(e),h=Md(e),g=e.type||"error",m=`before send for type \`${g}\``,v=typeof c>"u"?void 0:_C(c);if(h&&typeof v=="number"&&Math.random()>v)return this.recordDroppedEvent("sample_rate","error"),lu(Cd(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const _=g==="replay_event"?"replay":g;return this._prepareEvent(e,n,r,o).then(b=>{if(b===null)throw this.recordDroppedEvent("event_processor",_),Cd("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return b;const E=OM(this,u,b,n);return MM(E,m)}).then(b=>{if(b===null){if(this.recordDroppedEvent("before_send",_),f){const R=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw Cd(`${m} returned \`null\`, will not send event.`)}const x=r.getSession()||o.getSession();if(h&&x&&this._updateSessionFromEvent(x,b),f){const M=b.sdkProcessingMetadata?.spanCountBeforeProcessing||0,R=b.spans?b.spans.length:0,q=M-R;q>0&&this.recordDroppedEvent("before_send","span",q)}const E=b.transaction_info;if(f&&E&&b.transaction!==e.transaction){const M="custom";b.transaction_info={...E,source:M}}return this.sendEvent(b,n),b}).then(null,b=>{throw A_(b)||w_(b)?b:(this.captureException(b,{data:{__sentry__:!0},originalException:b}),du(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
17
|
-
Reason: ${b}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[o,u]=n.split(":");return{reason:o,category:u,quantity:r}})}_flushOutcomes(){Ce&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Ce&&Se.log("No outcomes to send");return}if(!this._dsn){Ce&&Se.log("No dsn provided, will not send outcomes");return}Ce&&Se.log("Sending outcomes:",e);const n=TM(e,this._options.tunnel&&Wa(this._dsn));this.sendEnvelope(n)}}function MM(t,e){const n=`${e} must return \`null\` or a valid event.`;if(ru(t))return t.then(r=>{if(!Za(r)&&r!==null)throw du(n);return r},r=>{throw du(`${e} rejected with ${r}`)});if(!Za(t)&&t!==null)throw du(n);return t}function OM(t,e,n,r){const{beforeSend:o,beforeSendTransaction:u,beforeSendSpan:c}=e;let f=n;if(Md(f)&&o)return o(f,r);if(C_(f)){if(c){const h=c(wM(f));if(h?f=Ja(n,AM(h)):Jy(),f.spans){const g=[];for(const m of f.spans){const v=c(m);v?g.push(v):(Jy(),g.push(m))}f.spans=g}}if(u){if(f.spans){const h=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return u(f,r)}}return f}function Md(t){return t.type===void 0}function C_(t){return t.type==="transaction"}function RM(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function DM(t,e,n,r){const o={};return e?.sdk&&(o.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(o.dsn=Wa(r)),eo(o,[RM(t)])}function Od(t,e){const n=kM(t)??[];if(n.length===0)return;const r=t.getOptions(),o=DM(n,r._metadata,r.tunnel,t.getDsn());M_().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(o)}function kM(t){return M_().get(t)}function M_(){return Ka("clientToLogBufferMap",()=>new WeakMap)}function LM(t,e){e.debug===!0&&(Ce?Se.enable():Sr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),li().update(e.initialScope);const r=new t(e);return NM(r),r.init(),r}function NM(t){li().setClient(t)}const O_=Symbol.for("SentryBufferFullError");function zM(t){const e=[];function n(){return t===void 0||e.length<t}function r(c){return e.splice(e.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return lu(O_);const f=c();return e.indexOf(f)===-1&&e.push(f),f.then(()=>r(f)).then(null,()=>r(f).then(null,()=>{})),f}function u(c){return new $i((f,h)=>{let g=e.length;if(!g)return f(!0);const m=setTimeout(()=>{c&&c>0&&f(!1)},c);e.forEach(v=>{js(v).then(()=>{--g||(clearTimeout(m),f(!0))},h)})})}return{$:e,add:o,drain:u}}const jM=60*1e3;function UM(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?jM:r-e}function BM(t,e){return t[e]||t.all||0}function VM(t,e,n=Date.now()){return BM(t,e)>n}function IM(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},u=n?.["x-sentry-rate-limits"],c=n?.["retry-after"];if(u)for(const f of u.trim().split(",")){const[h,g,,,m]=f.split(":",5),v=parseInt(h,10),_=(isNaN(v)?60:v)*1e3;if(!g)o.all=r+_;else for(const b of g.split(";"))b==="metric_bucket"?(!m||m.split(";").includes("custom"))&&(o[b]=r+_):o[b]=r+_}else c?o.all=r+UM(c,r):e===429&&(o.all=r+60*1e3);return o}const qM=64;function PM(t,e,n=zM(t.bufferSize||qM)){let r={};const o=c=>n.drain(c);function u(c){const f=[];if(i_(c,(v,_)=>{const b=s_(_);VM(r,b)?t.recordDroppedEvent("ratelimit_backoff",b):f.push(v)}),f.length===0)return js({});const h=eo(c[0],f),g=v=>{i_(h,(_,b)=>{t.recordDroppedEvent(v,s_(b))})},m=()=>e({body:HC(h)}).then(v=>(v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&Ce&&Se.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),r=IM(r,v),v),v=>{throw g("network_error"),Ce&&Se.error("Encountered error running transport request:",v),v});return n.add(m).then(v=>v,v=>{if(v===O_)return Ce&&Se.error("Skipped sending event because buffer is full."),g("queue_overflow"),js({});throw v})}return{send:u,flush:o}}function HM(t){t.user?.ip_address===void 0&&(t.user={...t.user,ip_address:"{{auto}}"})}function FM(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function $M(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map(u=>({name:`${r}:@sentry/${u}`,version:Rs})),version:Rs}),t._metadata=o}const GM=100;function Us(t,e){const n=Ot(),r=Ar();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:u=GM}=n.getOptions();if(u<=0)return;const f={timestamp:Qa(),...t},h=o?Sr(()=>o(f,e)):f;h!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",h,e),r.addBreadcrumb(h,u))}let R_;const YM="FunctionToString",D_=new WeakMap,XM=(()=>({name:YM,setupOnce(){R_=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=md(this),n=D_.has(Ot())&&e!==void 0?e:this;return R_.apply(n,t)}}catch{}},setup(t){D_.set(t,!0)}})),KM=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ZM="EventFilters",QM=(t={})=>{let e;return{name:ZM,setup(n){const r=n.getOptions();e=k_(t,r)},processEvent(n,r,o){if(!e){const u=o.getOptions();e=k_(t,u)}return WM(n,e)?null:n}}},JM=((t={})=>({...QM(t),name:"InboundFilters"}));function k_(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:KM],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function WM(t,e){if(t.type){if(t.type==="transaction"&&tO(t,e.ignoreTransactions))return Ce&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
18
|
-
Event: ${zs(t)}`),!0}else{if(eO(t,e.ignoreErrors))return Ce&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
19
|
-
Event: ${zs(t)}`),!0;if(rO(t))return Ce&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
20
|
-
Event: ${zs(t)}`),!0;if(nO(t,e.denyUrls))return Ce&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
21
|
-
Event: ${zs(t)}.
|
|
22
|
-
Url: ${hu(t)}`),!0;if(!iO(t,e.allowUrls))return Ce&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
23
|
-
Event: ${zs(t)}.
|
|
24
|
-
Url: ${hu(t)}`),!0}return!1}function eO(t,e){return e?.length?b_(t).some(n=>ou(n,e)):!1}function tO(t,e){if(!e?.length)return!1;const n=t.transaction;return n?ou(n,e):!1}function nO(t,e){if(!e?.length)return!1;const n=hu(t);return n?ou(n,e):!1}function iO(t,e){if(!e?.length)return!0;const n=hu(t);return n?ou(n,e):!0}function sO(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function hu(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?sO(n):null}catch{return Ce&&Se.error(`Cannot extract url for event ${zs(t)}`),null}}function rO(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function aO(t,e,n,r,o,u){if(!o.exception?.values||!u||!Fi(u.originalException,Error))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=Rd(t,e,r,u.originalException,n,o.exception.values,c,0))}function Rd(t,e,n,r,o,u,c,f){if(u.length>=n+1)return u;let h=[...u];if(Fi(r[o],Error)){L_(c,f);const g=t(e,r[o]),m=h.length;N_(g,o,m,f),h=Rd(t,e,n,r[o],o,[g,...h],g,m)}return Array.isArray(r.errors)&&r.errors.forEach((g,m)=>{if(Fi(g,Error)){L_(c,f);const v=t(e,g),_=h.length;N_(v,`errors[${m}]`,_,f),h=Rd(t,e,n,g,o,[v,...h],v,_)}}),h}function L_(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function N_(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function oO(t){const e="console";ks(e,t),Ls(e,lO)}function lO(){"console"in Ye&&E5.forEach(function(t){t in Ye.console&&an(Ye.console,t,function(e){return eu[t]=e,function(...n){qn("console",{args:n,level:t}),eu[t]?.apply(Ye.console,n)}})})}function uO(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const cO="Dedupe",fO=(()=>{let t;return{name:cO,processEvent(e){if(e.type)return e;try{if(dO(e,t))return Ce&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function dO(t,e){return e?!!(hO(t,e)||pO(t,e)):!1}function hO(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!j_(t,e)||!z_(t,e))}function pO(t,e){const n=U_(e),r=U_(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!j_(t,e)||!z_(t,e))}function z_(t,e){let n=Ey(t),r=Ey(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const u=r[o],c=n[o];if(u.filename!==c.filename||u.lineno!==c.lineno||u.colno!==c.colno||u.function!==c.function)return!1}return!0}function j_(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function U_(t){return t.exception?.values?.[0]}function Dd(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function B_(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const to=Ye;function gO(){return"history"in to&&!!to.history}function mO(){if(!("fetch"in to))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function kd(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function vO(){if(typeof EdgeRuntime=="string")return!0;if(!mO())return!1;if(kd(to.fetch))return!0;let t=!1;const e=to.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=kd(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Ce&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function yO(t,e){const n="fetch";ks(n,t),Ls(n,()=>_O(void 0,e))}function _O(t,e=!1){e&&!vO()||an(Ye,"fetch",function(n){return function(...r){const o=new Error,{method:u,url:c}=bO(r),f={args:r,fetchData:{method:u,url:c},startTimestamp:oi()*1e3,virtualError:o,headers:SO(r)};return qn("fetch",{...f}),n.apply(Ye,r).then(async h=>(qn("fetch",{...f,endTimestamp:oi()*1e3,response:h}),h),h=>{if(qn("fetch",{...f,endTimestamp:oi()*1e3,error:h}),iu(h)&&h.stack===void 0&&(h.stack=o.stack,Ns(h,"framesToPop",1)),h instanceof TypeError&&(h.message==="Failed to fetch"||h.message==="Load failed"||h.message==="NetworkError when attempting to fetch resource."))try{const g=new URL(f.fetchData.url);h.message=`${h.message} (${g.host})`}catch{}throw h})}})}function Ld(t,e){return!!t&&typeof t=="object"&&!!t[e]}function V_(t){return typeof t=="string"?t:t?Ld(t,"url")?t.url:t.toString?t.toString():"":""}function bO(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:V_(n),method:Ld(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:V_(e),method:Ld(e,"method")?String(e.method).toUpperCase():"GET"}}function SO(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(V5(e))return new Headers(e.headers)}catch{}}function EO(){return"npm"}const Je=Ye;let Nd=0;function I_(){return Nd>0}function xO(){Nd++,setTimeout(()=>{Nd--})}function Cr(t,e={}){function n(o){return typeof o=="function"}if(!n(t))return t;try{const o=t.__sentry_wrapped__;if(o)return typeof o=="function"?o:t;if(md(t))return t}catch{return t}const r=function(...o){try{const u=o.map(c=>Cr(c,e));return t.apply(this,u)}catch(u){throw xO(),bd(c=>{c.addEventProcessor(f=>(e.mechanism&&(vd(f,void 0),xr(f,e.mechanism)),f.extra={...f.extra,arguments:o},f)),c_(u)}),u}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch{}Ry(r,t),Ns(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function TO(){const t=gd(),{referrer:e}=Je.document||{},{userAgent:n}=Je.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function zd(t,e){const n=Ud(t,e),r={type:OO(e),value:RO(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function wO(t,e,n,r){const u=Ot()?.getOptions().normalizeDepth,c=zO(e),f={__serialized__:n_(e,u)};if(c)return{exception:{values:[zd(t,c)]},extra:f};const h={exception:{values:[{type:su(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:LO(e,{isUnhandledRejection:r})}]},extra:f};if(n){const g=Ud(t,n);g.length&&(h.exception.values[0].stacktrace={frames:g})}return h}function jd(t,e){return{exception:{values:[zd(t,e)]}}}function Ud(t,e){const n=e.stacktrace||e.stack||"",r=CO(e),o=MO(e);try{return t(n,r,o)}catch{}return[]}const AO=/Minified React error #\d+;/i;function CO(t){return t&&AO.test(t.message)?1:0}function MO(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function q_(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function OO(t){const e=t?.name;return!e&&q_(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function RO(t){const e=t?.message;return q_(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function DO(t,e,n,r){const o=n?.syntheticException||void 0,u=Bd(t,e,o,r);return xr(u),u.level="error",n?.event_id&&(u.event_id=n.event_id),js(u)}function kO(t,e,n="info",r,o){const u=r?.syntheticException||void 0,c=Vd(t,e,u,o);return c.level=n,r?.event_id&&(c.event_id=r.event_id),js(c)}function Bd(t,e,n,r,o){let u;if(wy(e)&&e.error)return jd(t,e.error);if(Ay(e)||z5(e)){const c=e;if("stack"in e)u=jd(t,e);else{const f=c.name||(Ay(c)?"DOMError":"DOMException"),h=c.message?`${f}: ${c.message}`:f;u=Vd(t,h,n,r),vd(u,h)}return"code"in c&&(u.tags={...u.tags,"DOMException.code":`${c.code}`}),u}return iu(e)?jd(t,e):Za(e)||su(e)?(u=wO(t,e,n,o),xr(u,{synthetic:!0}),u):(u=Vd(t,e,n,r),vd(u,`${e}`),xr(u,{synthetic:!0}),u)}function Vd(t,e,n,r){const o={};if(r&&n){const u=Ud(t,n);u.length&&(o.exception={values:[{value:e,stacktrace:{frames:u}}]}),xr(o,{synthetic:!0})}if(dd(e)){const{__sentry_template_string__:u,__sentry_template_values__:c}=e;return o.logentry={message:u,params:c},o}return o.message=e,o}function LO(t,{isUnhandledRejection:e}){const n=F5(t),r=e?"promise rejection":"exception";return wy(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:su(t)?`Event \`${NO(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function NO(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function zO(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}const jO=5e3;class UO extends CM{constructor(e){const n=BO(e),r=Je.SENTRY_SDK_SOURCE||EO();$M(n,"browser",["browser"],r),super(n);const{sendDefaultPii:o,sendClientReports:u,enableLogs:c,_experiments:f}=this._options,h=c??f?.enableLogs;Je.document&&(u||h)&&Je.document.addEventListener("visibilitychange",()=>{Je.document.visibilityState==="hidden"&&(u&&this._flushOutcomes(),h&&Od(this))}),h&&(this.on("flush",()=>{Od(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Od(this)},jO)})),o&&(this.on("postprocessEvent",HM),this.on("beforeSendSession",FM))}eventFromException(e,n){return DO(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return kO(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,o){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,o)}}function BO(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Je.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const VO=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$t=Ye,IO=1e3;let P_,Id,qd;function qO(t){ks("dom",t),Ls("dom",PO)}function PO(){if(!$t.document)return;const t=qn.bind(null,"dom"),e=H_(t,!0);$t.document.addEventListener("click",e,!1),$t.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const o=$t[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(an(o,"addEventListener",function(u){return function(c,f,h){if(c==="click"||c=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=g[c]=g[c]||{refCount:0};if(!m.handler){const v=H_(t);m.handler=v,u.call(this,c,v,h)}m.refCount++}catch{}return u.call(this,c,f,h)}}),an(o,"removeEventListener",function(u){return function(c,f,h){if(c==="click"||c=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},m=g[c];m&&(m.refCount--,m.refCount<=0&&(u.call(this,c,m.handler,h),m.handler=void 0,delete g[c]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,c,f,h)}}))})}function HO(t){if(t.type!==Id)return!1;try{if(!t.target||t.target._sentryId!==qd)return!1}catch{}return!0}function FO(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function H_(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=$O(n);if(FO(n.type,r))return;Ns(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ns(r,"_sentryId",Tn());const o=n.type==="keypress"?"input":n.type;HO(n)||(t({event:n,name:o,global:e}),Id=n.type,qd=r?r._sentryId:void 0),clearTimeout(P_),P_=$t.setTimeout(()=>{qd=void 0,Id=void 0},IO)}}function $O(t){try{return t.target}catch{return null}}let pu;function F_(t){const e="history";ks(e,t),Ls(e,GO)}function GO(){if($t.addEventListener("popstate",()=>{const e=$t.location.href,n=pu;if(pu=e,n===e)return;qn("history",{from:n,to:e})}),!gO())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=pu,u=YO(String(r));if(pu=u,o===u)return e.apply(this,n);qn("history",{from:o,to:u})}return e.apply(this,n)}}an($t.history,"pushState",t),an($t.history,"replaceState",t)}function YO(t){try{return new URL(t,$t.location.origin).toString()}catch{return t}}const gu={};function XO(t){const e=gu[t];if(e)return e;let n=$t[t];if(kd(n))return gu[t]=n.bind($t);const r=$t.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const u=o.contentWindow;u?.[t]&&(n=u[t]),r.head.removeChild(o)}catch(o){VO&&Se.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,o)}return n&&(gu[t]=n.bind($t))}function $_(t){gu[t]=void 0}const no="__sentry_xhr_v3__";function KO(t){ks("xhr",t),Ls("xhr",ZO)}function ZO(){if(!$t.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const o=new Error,u=oi()*1e3,c=ai(r[0])?r[0].toUpperCase():void 0,f=QO(r[1]);if(!c||!f)return e.apply(n,r);n[no]={method:c,url:f,request_headers:{}},c==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const h=()=>{const g=n[no];if(g&&n.readyState===4){try{g.status_code=n.status}catch{}const m={endTimestamp:oi()*1e3,startTimestamp:u,xhr:n,virtualError:o};qn("xhr",m)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(g,m,v){return h(),g.apply(m,v)}}):n.addEventListener("readystatechange",h),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(g,m,v){const[_,b]=v,x=m[no];return x&&ai(_)&&ai(b)&&(x.request_headers[_.toLowerCase()]=b),g.apply(m,v)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const o=n[no];if(!o)return e.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const u={startTimestamp:oi()*1e3,xhr:n};return qn("xhr",u),e.apply(n,r)}})}function QO(t){if(ai(t))return t;try{return t.toString()}catch{}}function JO(t,e=XO("fetch")){let n=0,r=0;function o(u){const c=u.body.length;n+=c,r++;const f={body:u.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return $_("fetch"),lu("No fetch implementation available");try{return e(t.url,f).then(h=>(n-=c,r--,{statusCode:h.status,headers:{"x-sentry-rate-limits":h.headers.get("X-Sentry-Rate-Limits"),"retry-after":h.headers.get("Retry-After")}}))}catch(h){return $_("fetch"),n-=c,r--,lu(h)}}return PM(t,o)}const WO=30,eR=50;function Pd(t,e,n,r){const o={filename:t,function:e==="<anonymous>"?Ds:e,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const tR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iR=/\((\S*)(?::(\d+))(?::(\d+))\)/,sR=[WO,t=>{const e=tR.exec(t);if(e){const[,r,o,u]=e;return Pd(r,Ds,+o,+u)}const n=nR.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=iR.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,u]=G_(n[1]||Ds,n[2]);return Pd(u,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oR=Sy(...[sR,[eR,t=>{const e=rR.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const u=aR.exec(e[3]);u&&(e[1]=e[1]||"eval",e[3]=u[1],e[4]=u[2],e[5]="")}let r=e[3],o=e[1]||Ds;return[o,r]=G_(o,r),Pd(r,o,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),G_=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Ds,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Mr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mu=1024,lR="Breadcrumbs",uR=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:lR,setup(n){e.console&&oO(dR(n)),e.dom&&qO(fR(n,e.dom)),e.xhr&&KO(hR(n)),e.fetch&&yO(pR(n)),e.history&&F_(gR(n)),e.sentry&&n.on("beforeSendEvent",cR(n))}}});function cR(t){return function(n){Ot()===t&&Us({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:zs(n)},{event:n})}}function fR(t,e){return function(r){if(Ot()!==t)return;let o,u,c=typeof e=="object"?e.serializeAttribute:void 0,f=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;f&&f>mu&&(Mr&&Se.warn(`\`dom.maxStringLength\` cannot exceed ${mu}, but a value of ${f} was configured. Sentry will use ${mu} instead.`),f=mu),typeof c=="string"&&(c=[c]);try{const g=r.event,m=mR(g)?g.target:g;o=My(m,{keyAttrs:c,maxStringLength:f}),u=P5(m)}catch{o="<unknown>"}if(o.length===0)return;const h={category:`ui.${r.name}`,message:o};u&&(h.data={"ui.component_name":u}),Us(h,{event:r.event,name:r.name,global:r.global})}}function dR(t){return function(n){if(Ot()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:uO(n.level),message:Oy(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Oy(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Us(r,{input:n.args,level:n.level})}}function hR(t){return function(n){if(Ot()!==t)return;const{startTimestamp:r,endTimestamp:o}=n,u=n.xhr[no];if(!r||!o||!u)return;const{method:c,url:f,status_code:h,body:g}=u,m={method:c,url:f,status_code:h},v={xhr:n.xhr,input:g,startTimestamp:r,endTimestamp:o},_={category:"xhr",data:m,type:"http",level:B_(h)};t.emit("beforeOutgoingRequestBreadcrumb",_,v),Us(_,v)}}function pR(t){return function(n){if(Ot()!==t)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const u=n.fetchData,c={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},f={category:"fetch",data:u,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",f,c),Us(f,c)}else{const u=n.response,c={...n.fetchData,status_code:u?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,u?.status;const f={input:n.args,response:u,startTimestamp:r,endTimestamp:o},h={category:"fetch",data:c,type:"http",level:B_(c.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",h,f),Us(h,f)}}}function gR(t){return function(n){if(Ot()!==t)return;let r=n.from,o=n.to;const u=Dd(Je.location.href);let c=r?Dd(r):void 0;const f=Dd(o);c?.path||(c=u),u.protocol===f.protocol&&u.host===f.host&&(o=f.relative),u.protocol===c.protocol&&u.host===c.host&&(r=c.relative),Us({category:"navigation",data:{from:r,to:o}})}}function mR(t){return!!t&&!!t.target}const vR=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],yR="BrowserApiErrors",_R=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:yR,setupOnce(){e.setTimeout&&an(Je,"setTimeout",Y_),e.setInterval&&an(Je,"setInterval",Y_),e.requestAnimationFrame&&an(Je,"requestAnimationFrame",bR),e.XMLHttpRequest&&"XMLHttpRequest"in Je&&an(XMLHttpRequest.prototype,"send",SR);const n=e.eventTarget;n&&(Array.isArray(n)?n:vR).forEach(o=>ER(o,e))}}});function Y_(t){return function(...e){const n=e[0];return e[0]=Cr(n,{mechanism:{data:{function:Hi(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function bR(t){return function(e){return t.apply(this,[Cr(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Hi(t)},handled:!1,type:"instrument"}})])}}function SR(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&an(n,o,function(u){const c={mechanism:{data:{function:o,handler:Hi(u)},handled:!1,type:"instrument"}},f=md(u);return f&&(c.mechanism.data.handler=Hi(f)),Cr(u,c)})}),t.apply(this,e)}}function ER(t,e){const r=Je[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(an(r,"addEventListener",function(o){return function(u,c,f){try{xR(c)&&(c.handleEvent=Cr(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Hi(c),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&TR(this,u,c),o.apply(this,[u,Cr(c,{mechanism:{data:{function:"addEventListener",handler:Hi(c),target:t},handled:!1,type:"instrument"}}),f])}}),an(r,"removeEventListener",function(o){return function(u,c,f){try{const h=c.__sentry_wrapped__;h&&o.call(this,u,h,f)}catch{}return o.call(this,u,c,f)}}))}function xR(t){return typeof t.handleEvent=="function"}function TR(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const wR=()=>({name:"BrowserSession",setupOnce(){if(typeof Je.document>"u"){Mr&&Se.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}d_({ignoreDuration:!0}),g_(),F_(({from:t,to:e})=>{t!==void 0&&t!==e&&(d_({ignoreDuration:!0}),g_())})}}),AR="GlobalHandlers",CR=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:AR,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(MR(n),X_("onerror")),e.onunhandledrejection&&(OR(n),X_("onunhandledrejection"))}}});function MR(t){D5(e=>{const{stackParser:n,attachStacktrace:r}=K_();if(Ot()!==t||I_())return;const{msg:o,url:u,line:c,column:f,error:h}=e,g=kR(Bd(n,h||o,void 0,r,!1),u,c,f);g.level="error",f_(g,{originalException:h,mechanism:{handled:!1,type:"onerror"}})})}function OR(t){L5(e=>{const{stackParser:n,attachStacktrace:r}=K_();if(Ot()!==t||I_())return;const o=RR(e),u=hd(o)?DR(o):Bd(n,o,void 0,r,!0);u.level="error",f_(u,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function RR(t){if(hd(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function DR(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function kR(t,e,n,r){const o=t.exception=t.exception||{},u=o.values=o.values||[],c=u[0]=u[0]||{},f=c.stacktrace=c.stacktrace||{},h=f.frames=f.frames||[],g=r,m=n,v=ai(e)&&e.length>0?e:gd();return h.length===0&&h.push({colno:g,filename:v,function:Ds,in_app:!0,lineno:m}),t}function X_(t){Mr&&Se.log(`Global Handler attached: ${t}`)}function K_(){return Ot()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const LR=()=>({name:"HttpContext",preprocessEvent(t){if(!Je.navigator&&!Je.location&&!Je.document)return;const e=TO(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}),NR="cause",zR=5,jR="LinkedErrors",UR=((t={})=>{const e=t.limit||zR,n=t.key||NR;return{name:jR,preprocessEvent(r,o,u){const c=u.getOptions();aO(zd,c.stackParser,n,e,r,o)}}});function BR(){return VR()?(Mr&&Sr(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function VR(){if(typeof Je.window>"u")return!1;const t=Je;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=gd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Je===Je.top&&r.some(u=>n.startsWith(`${u}://`)))}function IR(t){return[JM(),XM(),_R(),uR(),CR(),UR(),fO(),LR(),wR()]}function qR(t={}){const e=!t.skipBrowserExtensionCheck&&BR(),n={...t,enabled:e?!1:t.enabled,stackParser:O5(t.stackParser||oR),integrations:EM({integrations:t.integrations,defaultIntegrations:t.defaultIntegrations==null?IR():t.defaultIntegrations}),transport:t.transport||JO};return LM(UO,n)}function Z_(t={}){const e=Je.document,n=e?.head||e?.body;if(!n){Mr&&Se.error("[showReportDialog] Global document not defined");return}const r=li(),u=Ot()?.getDsn();if(!u){Mr&&Se.error("[showReportDialog] DSN not configured");return}const c={...t,user:{...r.getUser(),...t.user},eventId:t.eventId||gM()},f=Je.document.createElement("script");f.async=!0,f.crossOrigin="anonymous",f.src=bM(u,c);const{onLoad:h,onClose:g}=c;if(h&&(f.onload=h),g){const m=v=>{if(v.data==="__sentry_reportdialog_closed__")try{g()}finally{Je.removeEventListener("message",m)}};Je.addEventListener("message",m)}n.appendChild(f)}function PR(t){const e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function HR(t,e){const n=new WeakSet;function r(o,u){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,u);o.cause=u}}r(t,e)}function FR(t,{componentStack:e},n){if(PR(Y.version)&&iu(t)&&e){const r=new Error(t.message);r.name=`React ErrorBoundary ${t.name}`,r.stack=e,HR(t,r)}return bd(r=>(r.setContext("react",{componentStack:e}),c_(t,n)))}const $R=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Hd={componentStack:null,error:null,eventId:null};class GR extends Y.Component{constructor(e){super(e),this.state=Hd,this._openFallbackReportDialog=!0;const n=Ot();n&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Z_({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,n){const{componentStack:r}=n,{beforeCapture:o,onError:u,showDialog:c,dialogOptions:f}=this.props;bd(h=>{o&&o(h,e,r);const g=this.props.handled!=null?this.props.handled:!!this.props.fallback,m=FR(e,n,{mechanism:{handled:g}});u&&u(e,r,m),c&&(this._lastEventId=m,this._openFallbackReportDialog&&Z_({...f,eventId:m})),this.setState({error:e,componentStack:r,eventId:m})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&(this.state===Hd?o(null,null,null):o(e,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:n,componentStack:r,eventId:o}=this.state;e&&e(n,r,o),this.setState(Hd)}render(){const{fallback:e,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof e=="function"?Y.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return Y.isValidElement(o)?o:(e&&$R&&Se.warn("fallback did not produce a valid ReactElement"),null)}}var Fd={exports:{}},io={},$d={exports:{}},Gd={};var Q_;function YR(){return Q_||(Q_=1,(function(t){function e(A,N){var J=A.length;A.push(N);e:for(;0<J;){var te=J-1>>>1,ue=A[te];if(0<o(ue,N))A[te]=N,A[J]=ue,J=te;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var N=A[0],J=A.pop();if(J!==N){A[0]=J;e:for(var te=0,ue=A.length,T=ue>>>1;te<T;){var j=2*(te+1)-1,W=A[j],H=j+1,oe=A[H];if(0>o(W,J))H<ue&&0>o(oe,W)?(A[te]=oe,A[H]=J,te=H):(A[te]=W,A[j]=J,te=j);else if(H<ue&&0>o(oe,J))A[te]=oe,A[H]=J,te=H;else break e}}return N}function o(A,N){var J=A.sortIndex-N.sortIndex;return J!==0?J:A.id-N.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var h=[],g=[],m=1,v=null,_=3,b=!1,x=!1,E=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function K(A){for(var N=n(g);N!==null;){if(N.callback===null)r(g);else if(N.startTime<=A)r(g),N.sortIndex=N.expirationTime,e(h,N);else break;N=n(g)}}function U(A){if(E=!1,K(A),!x)if(n(h)!==null)x=!0,Q||(Q=!0,ie());else{var N=n(g);N!==null&&L(U,N.startTime-A)}}var Q=!1,P=-1,I=5,$=-1;function ee(){return M?!0:!(t.unstable_now()-$<I)}function le(){if(M=!1,Q){var A=t.unstable_now();$=A;var N=!0;try{e:{x=!1,E&&(E=!1,q(P),P=-1),b=!0;var J=_;try{t:{for(K(A),v=n(h);v!==null&&!(v.expirationTime>A&&ee());){var te=v.callback;if(typeof te=="function"){v.callback=null,_=v.priorityLevel;var ue=te(v.expirationTime<=A);if(A=t.unstable_now(),typeof ue=="function"){v.callback=ue,K(A),N=!0;break t}v===n(h)&&r(h),K(A)}else r(h);v=n(h)}if(v!==null)N=!0;else{var T=n(g);T!==null&&L(U,T.startTime-A),N=!1}}break e}finally{v=null,_=J,b=!1}N=void 0}}finally{N?ie():Q=!1}}}var ie;if(typeof F=="function")ie=function(){F(le)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ye=he.port2;he.port1.onmessage=le,ie=function(){ye.postMessage(null)}}else ie=function(){R(le,0)};function L(A,N){P=R(function(){A(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(A){A.callback=null},t.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(A){switch(_){case 1:case 2:case 3:var N=3;break;default:N=_}var J=_;_=N;try{return A()}finally{_=J}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(A,N){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=_;_=A;try{return N()}finally{_=J}},t.unstable_scheduleCallback=function(A,N,J){var te=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?te+J:te):J=te,A){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=J+ue,A={id:m++,callback:N,priorityLevel:A,startTime:J,expirationTime:ue,sortIndex:-1},J>te?(A.sortIndex=J,e(g,A),n(h)===null&&A===n(g)&&(E?(q(P),P=-1):E=!0,L(U,J-te))):(A.sortIndex=ue,e(h,A),x||b||(x=!0,Q||(Q=!0,ie()))),A},t.unstable_shouldYield=ee,t.unstable_wrapCallback=function(A){var N=_;return function(){var J=_;_=N;try{return A.apply(this,arguments)}finally{_=J}}}})(Gd)),Gd}var J_;function XR(){return J_||(J_=1,$d.exports=YR()),$d.exports}var Yd={exports:{}},It={};var W_;function KR(){if(W_)return It;W_=1;var t=rd();function e(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)g+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(h,g,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:g,implementation:m}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,It.createPortal=function(h,g){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return u(h,g,null,m)},It.flushSync=function(h){var g=c.T,m=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=g,r.p=m,r.d.f()}},It.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(h,g))},It.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},It.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var m=g.as,v=f(m,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,b=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;m==="style"?r.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:b}):m==="script"&&r.d.X(h,{crossOrigin:v,integrity:_,fetchPriority:b,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},It.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var m=f(g.as,g.crossOrigin);r.d.M(h,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(h)},It.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var m=g.as,v=f(m,g.crossOrigin);r.d.L(h,m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},It.preloadModule=function(h,g){if(typeof h=="string")if(g){var m=f(g.as,g.crossOrigin);r.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(h)},It.requestFormReset=function(h){r.d.r(h)},It.unstable_batchedUpdates=function(h,g){return h(g)},It.useFormState=function(h,g,m){return c.H.useFormState(h,g,m)},It.useFormStatus=function(){return c.H.useHostTransitionStatus()},It.version="19.2.5",It}var e0;function ZR(){if(e0)return Yd.exports;e0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Yd.exports=KR(),Yd.exports}var t0;function QR(){if(t0)return io;t0=1;var t=XR(),e=rd(),n=ZR();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)s+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function u(i){var s=i,a=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(a=s.return),i=s.return;while(i)}return s.tag===3?a:null}function c(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function h(i){if(u(i)!==i)throw Error(r(188))}function g(i){var s=i.alternate;if(!s){if(s=u(i),s===null)throw Error(r(188));return s!==i?null:i}for(var a=i,l=s;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),i;if(p===l)return h(d),s;p=p.sibling}throw Error(r(188))}if(a.return!==l.return)a=d,l=p;else{for(var y=!1,S=d.child;S;){if(S===a){y=!0,a=d,l=p;break}if(S===l){y=!0,l=d,a=p;break}S=S.sibling}if(!y){for(S=p.child;S;){if(S===a){y=!0,a=p,l=d;break}if(S===l){y=!0,l=p,a=d;break}S=S.sibling}if(!y)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ie(i){return i===null||typeof i!="object"?null:(i=le&&i[le]||i["@@iterator"],typeof i=="function"?i:null)}var he=Symbol.for("react.client.reference");function ye(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===he?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case E:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case U:return"Suspense";case Q:return"SuspenseList";case $:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case x:return"Portal";case F:return i.displayName||"Context";case q:return(i._context.displayName||"Context")+".Consumer";case K:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case P:return s=i.displayName||null,s!==null?s:ye(i.type)||"Memo";case I:s=i._payload,i=i._init;try{return ye(i(s))}catch{}}return null}var L=Array.isArray,A=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},te=[],ue=-1;function T(i){return{current:i}}function j(i){0>ue||(i.current=te[ue],te[ue]=null,ue--)}function W(i,s){ue++,te[ue]=i.current,i.current=s}var H=T(null),oe=T(null),ge=T(null),Me=T(null);function je(i,s){switch(W(ge,s),W(oe,i),W(H,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?EA(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=EA(s),i=xA(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}j(H),W(H,i)}function Ue(){j(H),j(oe),j(ge)}function it(i){i.memoizedState!==null&&W(Me,i);var s=H.current,a=xA(s,i.type);s!==a&&(W(oe,i),W(H,a))}function Ft(i){oe.current===i&&(j(H),j(oe)),Me.current===i&&(j(Me),Gl._currentValue=J)}var At,tr;function Qt(i){if(At===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);At=s&&s[1]||"",tr=-1<a.stack.indexOf(`
|
|
25
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
26
|
-
`+At+i+tr}var ss=!1;function Yt(i,s){if(!i||ss)return"";ss=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(s){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(V){var z=V}Reflect.construct(i,[],Z)}else{try{Z.call()}catch(V){z=V}i.call(Z.prototype)}}else{try{throw Error()}catch(V){z=V}(Z=i())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(V){if(V&&z&&typeof V.stack=="string")return[V.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),y=p[0],S=p[1];if(y&&S){var w=y.split(`
|
|
27
|
-
`),k=S.split(`
|
|
28
|
-
`);for(d=l=0;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;for(;d<k.length&&!k[d].includes("DetermineComponentFrameRoot");)d++;if(l===w.length||d===k.length)for(l=w.length-1,d=k.length-1;1<=l&&0<=d&&w[l]!==k[d];)d--;for(;1<=l&&0<=d;l--,d--)if(w[l]!==k[d]){if(l!==1||d!==1)do if(l--,d--,0>d||w[l]!==k[d]){var G=`
|
|
29
|
-
`+w[l].replace(" at new "," at ");return i.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",i.displayName)),G}while(1<=l&&0<=d);break}}}finally{ss=!1,Error.prepareStackTrace=a}return(a=i?i.displayName||i.name:"")?Qt(a):""}function Ei(i,s){switch(i.tag){case 26:case 27:case 5:return Qt(i.type);case 16:return Qt("Lazy");case 13:return i.child!==s&&s!==null?Qt("Suspense Fallback"):Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 15:return Yt(i.type,!1);case 11:return Yt(i.type.render,!1);case 1:return Yt(i.type,!0);case 31:return Qt("Activity");default:return""}}function ti(i){try{var s="",a=null;do s+=Ei(i,a),a=i,i=i.return;while(i);return s}catch(l){return`
|
|
10
|
+
`)),zn(g)&&td.test(g)?ed(g):zn(g)?g:lb(g,this._locale,this._locales)(s,r?.formats)}t=this._.bind(this);date(a,s){return Ir(this._locales||this._locale,a,s)}number(a,s){return to(this._locales||this._locale,a,s)}}function ob(i={}){return new rb(i)}const eo=ob();var no={exports:{}},Ua={};var id;function ub(){if(id)return Ua;id=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(r,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:i,type:r,key:f,ref:c!==void 0?c:null,props:d}}return Ua.Fragment=a,Ua.jsx=s,Ua.jsxs=s,Ua}var ad;function cb(){return ad||(ad=1,no.exports=ub()),no.exports}var at=cb(),io={exports:{}},ut={};var ld;function fb(){if(ld)return ut;ld=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=S&&x[S]||x["@@iterator"],typeof x=="function"?x:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,H={};function Y(x,V,Z){this.props=x,this.context=V,this.refs=H,this.updater=Z||L}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,V){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,V,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Q(){}Q.prototype=Y.prototype;function K(x,V,Z){this.props=x,this.context=V,this.refs=H,this.updater=Z||L}var $=K.prototype=new Q;$.constructor=K,w($,Y.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function it(){}var F={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function mt(x,V,Z){var q=Z.ref;return{$$typeof:i,type:x,key:V,ref:q!==void 0?q:null,props:Z}}function _t(x,V){return mt(x.type,V,x.props)}function Ut(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function ct(x){var V={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Z){return V[Z]})}var he=/\/+/g;function $t(x,V){return typeof x=="object"&&x!==null&&x.key!=null?ct(""+x.key):V.toString(36)}function N(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(it,it):(x.status="pending",x.then(function(V){x.status==="pending"&&(x.status="fulfilled",x.value=V)},function(V){x.status==="pending"&&(x.status="rejected",x.reason=V)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,V,Z,q,tt){var ot=typeof x;(ot==="undefined"||ot==="boolean")&&(x=null);var St=!1;if(x===null)St=!0;else switch(ot){case"bigint":case"string":case"number":St=!0;break;case"object":switch(x.$$typeof){case i:case a:St=!0;break;case v:return St=x._init,A(St(x._payload),V,Z,q,tt)}}if(St)return tt=tt(x),St=q===""?"."+$t(x,0):q,k(tt)?(Z="",St!=null&&(Z=St.replace(he,"$&/")+"/"),A(tt,V,Z,"",function(kt){return kt})):tt!=null&&(Ut(tt)&&(tt=_t(tt,Z+(tt.key==null||x&&x.key===tt.key?"":(""+tt.key).replace(he,"$&/")+"/")+St)),V.push(tt)),1;St=0;var Kt=q===""?".":q+":";if(k(x))for(var Nt=0;Nt<x.length;Nt++)q=x[Nt],ot=Kt+$t(q,Nt),St+=A(q,V,Z,ot,tt);else if(Nt=M(x),typeof Nt=="function")for(x=Nt.call(x),Nt=0;!(q=x.next()).done;)q=q.value,ot=Kt+$t(q,Nt++),St+=A(q,V,Z,ot,tt);else if(ot==="object"){if(typeof x.then=="function")return A(N(x),V,Z,q,tt);throw V=String(x),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return St}function _(x,V,Z){if(x==null)return x;var q=[],tt=0;return A(x,q,"","",function(ot){return V.call(Z,ot,tt++)}),q}function X(x){if(x._status===-1){var V=x._result;V=V(),V.then(function(Z){(x._status===0||x._status===-1)&&(x._status=1,x._result=Z)},function(Z){(x._status===0||x._status===-1)&&(x._status=2,x._result=Z)}),x._status===-1&&(x._status=0,x._result=V)}if(x._status===1)return x._result.default;throw x._result}var J=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},lt={map:_,forEach:function(x,V,Z){_(x,function(){V.apply(this,arguments)},Z)},count:function(x){var V=0;return _(x,function(){V++}),V},toArray:function(x){return _(x,function(V){return V})||[]},only:function(x){if(!Ut(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ut.Activity=b,ut.Children=lt,ut.Component=Y,ut.Fragment=s,ut.Profiler=c,ut.PureComponent=K,ut.StrictMode=r,ut.Suspense=g,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ut.__COMPILER_RUNTIME={__proto__:null,c:function(x){return F.H.useMemoCache(x)}},ut.cache=function(x){return function(){return x.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(x,V,Z){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var q=w({},x.props),tt=x.key;if(V!=null)for(ot in V.key!==void 0&&(tt=""+V.key),V)!I.call(V,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&V.ref===void 0||(q[ot]=V[ot]);var ot=arguments.length-2;if(ot===1)q.children=Z;else if(1<ot){for(var St=Array(ot),Kt=0;Kt<ot;Kt++)St[Kt]=arguments[Kt+2];q.children=St}return mt(x.type,tt,q)},ut.createContext=function(x){return x={$$typeof:f,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ut.createElement=function(x,V,Z){var q,tt={},ot=null;if(V!=null)for(q in V.key!==void 0&&(ot=""+V.key),V)I.call(V,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(tt[q]=V[q]);var St=arguments.length-2;if(St===1)tt.children=Z;else if(1<St){for(var Kt=Array(St),Nt=0;Nt<St;Nt++)Kt[Nt]=arguments[Nt+2];tt.children=Kt}if(x&&x.defaultProps)for(q in St=x.defaultProps,St)tt[q]===void 0&&(tt[q]=St[q]);return mt(x,ot,tt)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(x){return{$$typeof:m,render:x}},ut.isValidElement=Ut,ut.lazy=function(x){return{$$typeof:v,_payload:{_status:-1,_result:x},_init:X}},ut.memo=function(x,V){return{$$typeof:p,type:x,compare:V===void 0?null:V}},ut.startTransition=function(x){var V=F.T,Z={};F.T=Z;try{var q=x(),tt=F.S;tt!==null&&tt(Z,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(it,J)}catch(ot){J(ot)}finally{V!==null&&Z.types!==null&&(V.types=Z.types),F.T=V}},ut.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ut.use=function(x){return F.H.use(x)},ut.useActionState=function(x,V,Z){return F.H.useActionState(x,V,Z)},ut.useCallback=function(x,V){return F.H.useCallback(x,V)},ut.useContext=function(x){return F.H.useContext(x)},ut.useDebugValue=function(){},ut.useDeferredValue=function(x,V){return F.H.useDeferredValue(x,V)},ut.useEffect=function(x,V){return F.H.useEffect(x,V)},ut.useEffectEvent=function(x){return F.H.useEffectEvent(x)},ut.useId=function(){return F.H.useId()},ut.useImperativeHandle=function(x,V,Z){return F.H.useImperativeHandle(x,V,Z)},ut.useInsertionEffect=function(x,V){return F.H.useInsertionEffect(x,V)},ut.useLayoutEffect=function(x,V){return F.H.useLayoutEffect(x,V)},ut.useMemo=function(x,V){return F.H.useMemo(x,V)},ut.useOptimistic=function(x,V){return F.H.useOptimistic(x,V)},ut.useReducer=function(x,V,Z){return F.H.useReducer(x,V,Z)},ut.useRef=function(x){return F.H.useRef(x)},ut.useState=function(x){return F.H.useState(x)},ut.useSyncExternalStore=function(x,V,Z){return F.H.useSyncExternalStore(x,V,Z)},ut.useTransition=function(){return F.H.useTransition()},ut.version="19.2.5",ut}var sd;function ao(){return sd||(sd=1,io.exports=fb()),io.exports}var U=ao();const db=ts({__proto__:null,default:kf(U)},[U]),hb=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,mb={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,menuitem:!0};function rd(i,a={}){const s=i.split(hb);if(s.length===1)return i;const r=pb(0,"$lingui$"),c=[],d=s.shift();d&&c.push(d);for(const[f,m,g]of od(s)){let p=typeof f<"u"?a[f]:void 0;(!p||mb[p.type]&&m)&&(console.error(p?`${p.type} is a void element tag therefore it must have no children`:`Can't use element at index '${f}' as it is not declared in the original translation`),p=at.jsx(at.Fragment,{})),Array.isArray(p)&&(p=at.jsx(at.Fragment,{children:p})),c.push(U.cloneElement(p,{key:r()},m?rd(m,a):p.props.children)),g&&c.push(g)}return c.length===1?c[0]:c}function od(i){if(!i.length)return[];const[a,s,r,c]=i.slice(0,4);return[[a||r,s||"",c]].concat(od(i.slice(4,i.length)))}const pb=(i=0,a="")=>()=>`${a}_${i++}`;function gb(i){const{render:a,component:s,id:r,message:c,formats:d,lingui:{i18n:f,defaultComponent:m}}=i,{values:g,components:p}=vb(i),v=f&&typeof f._=="function"?f._(r,g,{message:c,formats:d}):r,b=v?rd(v,p):null;if(a===null||s===null)return b;const S=m||yb,M={id:r,message:c,translation:b,children:b};if(a&&s)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(a&&typeof a!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${a}`);else if(s&&typeof s!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${s}`),at.jsx(S,{...M,children:b});if(typeof a=="function")return a(M);const L=s||S;return at.jsx(L,{...M,children:b})}const yb=({children:i})=>i,vb=i=>{if(!i.values)return{values:void 0,components:i.components};const a={...i.values},s={...i.components};return Object.entries(i.values).forEach(([r,c])=>{if(typeof c=="string"||typeof c=="number")return;const d=Object.keys(s).length;s[d]=at.jsx(at.Fragment,{children:c}),a[r]=`<${d}/>`}),{values:a,components:s}},ud=U.createContext(null),cd=i=>U.useContext(ud);function fd(){return cd()}const bb=({i18n:i,defaultComponent:a,children:s})=>{const r=U.useRef(i.locale||null),c=U.useCallback(()=>({i18n:new Proxy(i,{}),defaultComponent:a,_:i.t.bind(i)}),[i,a]),[d,f]=U.useState(c);return U.useEffect(()=>{const m=()=>{r.current=i.locale||null,f(c())},g=i.on("change",m);return r.current!==i.locale&&m(),g},[i,c]),r.current===null?null:at.jsx(ud.Provider,{value:d,children:s})};function lo(i){const a=cd();return at.jsx(gb,{...i,lingui:a})}var so={exports:{}},Na={},ro={exports:{}},oo={};var dd;function Sb(){return dd||(dd=1,(function(i){function a(A,_){var X=A.length;A.push(_);t:for(;0<X;){var J=X-1>>>1,lt=A[J];if(0<c(lt,_))A[J]=_,A[X]=lt,X=J;else break t}}function s(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var _=A[0],X=A.pop();if(X!==_){A[0]=X;t:for(var J=0,lt=A.length,x=lt>>>1;J<x;){var V=2*(J+1)-1,Z=A[V],q=V+1,tt=A[q];if(0>c(Z,X))q<lt&&0>c(tt,Z)?(A[J]=tt,A[q]=X,J=q):(A[J]=Z,A[V]=X,J=V);else if(q<lt&&0>c(tt,X))A[J]=tt,A[q]=X,J=q;else break t}}return _}function c(A,_){var X=A.sortIndex-_.sortIndex;return X!==0?X:A.id-_.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();i.unstable_now=function(){return f.now()-m}}var g=[],p=[],v=1,b=null,S=3,M=!1,L=!1,w=!1,H=!1,Y=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function $(A){for(var _=s(p);_!==null;){if(_.callback===null)r(p);else if(_.startTime<=A)r(p),_.sortIndex=_.expirationTime,a(g,_);else break;_=s(p)}}function k(A){if(w=!1,$(A),!L)if(s(g)!==null)L=!0,it||(it=!0,ct());else{var _=s(p);_!==null&&N(k,_.startTime-A)}}var it=!1,F=-1,I=5,mt=-1;function _t(){return H?!0:!(i.unstable_now()-mt<I)}function Ut(){if(H=!1,it){var A=i.unstable_now();mt=A;var _=!0;try{t:{L=!1,w&&(w=!1,Q(F),F=-1),M=!0;var X=S;try{e:{for($(A),b=s(g);b!==null&&!(b.expirationTime>A&&_t());){var J=b.callback;if(typeof J=="function"){b.callback=null,S=b.priorityLevel;var lt=J(b.expirationTime<=A);if(A=i.unstable_now(),typeof lt=="function"){b.callback=lt,$(A),_=!0;break e}b===s(g)&&r(g),$(A)}else r(g);b=s(g)}if(b!==null)_=!0;else{var x=s(p);x!==null&&N(k,x.startTime-A),_=!1}}break t}finally{b=null,S=X,M=!1}_=void 0}}finally{_?ct():it=!1}}}var ct;if(typeof K=="function")ct=function(){K(Ut)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,$t=he.port2;he.port1.onmessage=Ut,ct=function(){$t.postMessage(null)}}else ct=function(){Y(Ut,0)};function N(A,_){F=Y(function(){A(i.unstable_now())},_)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(A){A.callback=null},i.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(A){switch(S){case 1:case 2:case 3:var _=3;break;default:_=S}var X=S;S=_;try{return A()}finally{S=X}},i.unstable_requestPaint=function(){H=!0},i.unstable_runWithPriority=function(A,_){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var X=S;S=A;try{return _()}finally{S=X}},i.unstable_scheduleCallback=function(A,_,X){var J=i.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?J+X:J):X=J,A){case 1:var lt=-1;break;case 2:lt=250;break;case 5:lt=1073741823;break;case 4:lt=1e4;break;default:lt=5e3}return lt=X+lt,A={id:v++,callback:_,priorityLevel:A,startTime:X,expirationTime:lt,sortIndex:-1},X>J?(A.sortIndex=X,a(p,A),s(g)===null&&A===s(p)&&(w?(Q(F),F=-1):w=!0,N(k,X-J))):(A.sortIndex=lt,a(g,A),L||M||(L=!0,it||(it=!0,ct()))),A},i.unstable_shouldYield=_t,i.unstable_wrapCallback=function(A){var _=S;return function(){var X=S;S=_;try{return A.apply(this,arguments)}finally{S=X}}}})(oo)),oo}var hd;function Tb(){return hd||(hd=1,ro.exports=Sb()),ro.exports}var uo={exports:{}},ue={};var md;function xb(){if(md)return ue;md=1;var i=ao();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:p,implementation:v}}var f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ue.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return d(g,p,null,v)},ue.flushSync=function(g){var p=f.T,v=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.T=p,r.p=v,r.d.f()}},ue.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},ue.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},ue.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,b=m(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:M}):v==="script"&&r.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ue.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},ue.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=m(v,p.crossOrigin);r.d.L(g,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ue.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},ue.requestFormReset=function(g){r.d.r(g)},ue.unstable_batchedUpdates=function(g,p){return g(p)},ue.useFormState=function(g,p,v){return f.H.useFormState(g,p,v)},ue.useFormStatus=function(){return f.H.useHostTransitionStatus()},ue.version="19.2.5",ue}var pd;function Eb(){if(pd)return uo.exports;pd=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),uo.exports=xb(),uo.exports}var gd;function Ab(){if(gd)return Na;gd=1;var i=Tb(),a=ao(),s=Eb();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return g(o),t;if(u===l)return g(o),e;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=u;else{for(var h=!1,y=o.child;y;){if(y===n){h=!0,n=o,l=u;break}if(y===l){h=!0,l=o,n=u;break}y=y.sibling}if(!h){for(y=u.child;y;){if(y===n){h=!0,n=u,l=o;break}if(y===l){h=!0,l=u,n=o;break}y=y.sibling}if(!h)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),mt=Symbol.for("react.activity"),_t=Symbol.for("react.memo_cache_sentinel"),Ut=Symbol.iterator;function ct(t){return t===null||typeof t!="object"?null:(t=Ut&&t[Ut]||t["@@iterator"],typeof t=="function"?t:null)}var he=Symbol.for("react.client.reference");function $t(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===he?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case Y:return"Profiler";case H:return"StrictMode";case k:return"Suspense";case it:return"SuspenseList";case mt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case K:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:$t(t.type)||"Memo";case I:e=t._payload,t=t._init;try{return $t(t(e))}catch{}}return null}var N=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},J=[],lt=-1;function x(t){return{current:t}}function V(t){0>lt||(t.current=J[lt],J[lt]=null,lt--)}function Z(t,e){lt++,J[lt]=t.current,t.current=e}var q=x(null),tt=x(null),ot=x(null),St=x(null);function Kt(t,e){switch(Z(ot,e),Z(tt,t),Z(q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?p0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=p0(e),t=g0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(q),Z(q,t)}function Nt(){V(q),V(tt),V(ot)}function kt(t){t.memoizedState!==null&&Z(St,t);var e=q.current,n=g0(e,t.type);e!==n&&(Z(tt,t),Z(q,n))}function me(t){tt.current===t&&(V(q),V(tt)),St.current===t&&(V(St),Pl._currentValue=X)}var un,rl;function Ue(t){if(un===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);un=e&&e[1]||"",rl=-1<n.stack.indexOf(`
|
|
11
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
12
|
+
`+un+t+rl}var Fi=!1;function Pi(t,e){if(!t||Fi)return"";Fi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(R){var O=R}Reflect.construct(t,[],G)}else{try{G.call()}catch(R){O=R}t.call(G.prototype)}}else{try{throw Error()}catch(R){O=R}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(R){if(R&&O&&typeof R.stack=="string")return[R.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),h=u[0],y=u[1];if(h&&y){var T=h.split(`
|
|
13
|
+
`),z=y.split(`
|
|
14
|
+
`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===z.length)for(l=T.length-1,o=z.length-1;1<=l&&0<=o&&T[l]!==z[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==z[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==z[o]){var j=`
|
|
15
|
+
`+T[l].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=l&&0<=o);break}}}finally{Fi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ue(n):""}function yi(t,e){switch(t.tag){case 26:case 27:case 5:return Ue(t.type);case 16:return Ue("Lazy");case 13:return t.child!==e&&e!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return Pi(t.type,!1);case 11:return Pi(t.type.render,!1);case 1:return Pi(t.type,!0);case 31:return Ue("Activity");default:return""}}function vi(t){try{var e="",n=null;do e+=yi(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
30
16
|
Error generating stack: `+l.message+`
|
|
31
|
-
`+l.stack}}var nr=Object.prototype.hasOwnProperty,aa=t.unstable_scheduleCallback,oa=t.unstable_cancelCallback,kc=t.unstable_shouldYield,il=t.unstable_requestPaint,pn=t.unstable_now,zU=t.unstable_getCurrentPriorityLevel,eT=t.unstable_ImmediatePriority,tT=t.unstable_UserBlockingPriority,Lc=t.unstable_NormalPriority,jU=t.unstable_LowPriority,nT=t.unstable_IdlePriority,UU=t.log,BU=t.unstable_setDisableYieldValue,sl=null,gn=null;function rs(i){if(typeof UU=="function"&&BU(i),gn&&typeof gn.setStrictMode=="function")try{gn.setStrictMode(sl,i)}catch{}}var mn=Math.clz32?Math.clz32:qU,VU=Math.log,IU=Math.LN2;function qU(i){return i>>>=0,i===0?32:31-(VU(i)/IU|0)|0}var Nc=256,zc=262144,jc=4194304;function ir(i){var s=i&42;if(s!==0)return s;switch(i&-i){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Uc(i,s,a){var l=i.pendingLanes;if(l===0)return 0;var d=0,p=i.suspendedLanes,y=i.pingedLanes;i=i.warmLanes;var S=l&134217727;return S!==0?(l=S&~p,l!==0?d=ir(l):(y&=S,y!==0?d=ir(y):a||(a=S&~i,a!==0&&(d=ir(a))))):(S=l&~p,S!==0?d=ir(S):y!==0?d=ir(y):a||(a=l&~i,a!==0&&(d=ir(a)))),d===0?0:s!==0&&s!==d&&(s&p)===0&&(p=d&-d,a=s&-s,p>=a||p===32&&(a&4194048)!==0)?s:d}function rl(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function PU(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iT(){var i=jc;return jc<<=1,(jc&62914560)===0&&(jc=4194304),i}function qg(i){for(var s=[],a=0;31>a;a++)s.push(i);return s}function al(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function HU(i,s,a,l,d,p){var y=i.pendingLanes;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=a,i.entangledLanes&=a,i.errorRecoveryDisabledLanes&=a,i.shellSuspendCounter=0;var S=i.entanglements,w=i.expirationTimes,k=i.hiddenUpdates;for(a=y&~a;0<a;){var G=31-mn(a),Z=1<<G;S[G]=0,w[G]=-1;var z=k[G];if(z!==null)for(k[G]=null,G=0;G<z.length;G++){var V=z[G];V!==null&&(V.lane&=-536870913)}a&=~Z}l!==0&&sT(i,l,0),p!==0&&d===0&&i.tag!==0&&(i.suspendedLanes|=p&~(y&~s))}function sT(i,s,a){i.pendingLanes|=s,i.suspendedLanes&=~s;var l=31-mn(s);i.entangledLanes|=s,i.entanglements[l]=i.entanglements[l]|1073741824|a&261930}function rT(i,s){var a=i.entangledLanes|=s;for(i=i.entanglements;a;){var l=31-mn(a),d=1<<l;d&s|i[l]&s&&(i[l]|=s),a&=~d}}function aT(i,s){var a=s&-s;return a=(a&42)!==0?1:Pg(a),(a&(i.suspendedLanes|s))!==0?0:a}function Pg(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Hg(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function oT(){var i=N.p;return i!==0?i:(i=window.event,i===void 0?32:GA(i.type))}function lT(i,s){var a=N.p;try{return N.p=i,s()}finally{N.p=a}}var as=Math.random().toString(36).slice(2),zt="__reactFiber$"+as,Jt="__reactProps$"+as,la="__reactContainer$"+as,Fg="__reactEvents$"+as,FU="__reactListeners$"+as,$U="__reactHandles$"+as,uT="__reactResources$"+as,ol="__reactMarker$"+as;function $g(i){delete i[zt],delete i[Jt],delete i[Fg],delete i[FU],delete i[$U]}function ua(i){var s=i[zt];if(s)return s;for(var a=i.parentNode;a;){if(s=a[la]||a[zt]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(i=RA(i);i!==null;){if(a=i[zt])return a;i=RA(i)}return s}i=a,a=i.parentNode}return null}function ca(i){if(i=i[zt]||i[la]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function ll(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function fa(i){var s=i[uT];return s||(s=i[uT]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ct(i){i[ol]=!0}var cT=new Set,fT={};function sr(i,s){da(i,s),da(i+"Capture",s)}function da(i,s){for(fT[i]=s,i=0;i<s.length;i++)cT.add(s[i])}var GU=RegExp("^[: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]*$"),dT={},hT={};function YU(i){return nr.call(hT,i)?!0:nr.call(dT,i)?!1:GU.test(i)?hT[i]=!0:(dT[i]=!0,!1)}function Bc(i,s,a){if(YU(s))if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var l=s.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+a)}}function Vc(i,s,a){if(a===null)i.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+a)}}function xi(i,s,a,l){if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttributeNS(s,a,""+l)}}function Rn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function pT(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function XU(i,s,a){var l=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,p=l.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(i,s,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Gg(i){if(!i._valueTracker){var s=pT(i)?"checked":"value";i._valueTracker=XU(i,s,""+i[s])}}function gT(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var a=s.getValue(),l="";return i&&(l=pT(i)?i.checked?"true":"false":i.value),i=l,i!==a?(s.setValue(i),!0):!1}function Ic(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var KU=/[\n"\\]/g;function Dn(i){return i.replace(KU,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Yg(i,s,a,l,d,p,y,S){i.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?i.type=y:i.removeAttribute("type"),s!=null?y==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Rn(s)):i.value!==""+Rn(s)&&(i.value=""+Rn(s)):y!=="submit"&&y!=="reset"||i.removeAttribute("value"),s!=null?Xg(i,y,Rn(s)):a!=null?Xg(i,y,Rn(a)):l!=null&&i.removeAttribute("value"),d==null&&p!=null&&(i.defaultChecked=!!p),d!=null&&(i.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.name=""+Rn(S):i.removeAttribute("name")}function mT(i,s,a,l,d,p,y,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(i.type=p),s!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){Gg(i);return}a=a!=null?""+Rn(a):"",s=s!=null?""+Rn(s):a,S||s===i.value||(i.value=s),i.defaultValue=s}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,i.checked=S?i.checked:!!l,i.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(i.name=y),Gg(i)}function Xg(i,s,a){s==="number"&&Ic(i.ownerDocument)===i||i.defaultValue===""+a||(i.defaultValue=""+a)}function ha(i,s,a,l){if(i=i.options,s){s={};for(var d=0;d<a.length;d++)s["$"+a[d]]=!0;for(a=0;a<i.length;a++)d=s.hasOwnProperty("$"+i[a].value),i[a].selected!==d&&(i[a].selected=d),d&&l&&(i[a].defaultSelected=!0)}else{for(a=""+Rn(a),s=null,d=0;d<i.length;d++){if(i[d].value===a){i[d].selected=!0,l&&(i[d].defaultSelected=!0);return}s!==null||i[d].disabled||(s=i[d])}s!==null&&(s.selected=!0)}}function vT(i,s,a){if(s!=null&&(s=""+Rn(s),s!==i.value&&(i.value=s),a==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=a!=null?""+Rn(a):""}function yT(i,s,a,l){if(s==null){if(l!=null){if(a!=null)throw Error(r(92));if(L(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),s=a}a=Rn(s),i.defaultValue=a,l=i.textContent,l===a&&l!==""&&l!==null&&(i.value=l),Gg(i)}function pa(i,s){if(s){var a=i.firstChild;if(a&&a===i.lastChild&&a.nodeType===3){a.nodeValue=s;return}}i.textContent=s}var ZU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _T(i,s,a){var l=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":l?i.setProperty(s,a):typeof a!="number"||a===0||ZU.has(s)?s==="float"?i.cssFloat=a:i[s]=(""+a).trim():i[s]=a+"px"}function bT(i,s,a){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||s!=null&&s.hasOwnProperty(l)||(l.indexOf("--")===0?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="");for(var d in s)l=s[d],s.hasOwnProperty(d)&&a[d]!==l&&_T(i,d,l)}else for(var p in s)s.hasOwnProperty(p)&&_T(i,p,s[p])}function Kg(i){if(i.indexOf("-")===-1)return!1;switch(i){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 QU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),JU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qc(i){return JU.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ti(){}var Zg=null;function Qg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ga=null,ma=null;function ST(i){var s=ca(i);if(s&&(i=s.stateNode)){var a=i[Jt]||null;e:switch(i=s.stateNode,s.type){case"input":if(Yg(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=i;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Dn(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var l=a[s];if(l!==i&&l.form===i.form){var d=l[Jt]||null;if(!d)throw Error(r(90));Yg(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(s=0;s<a.length;s++)l=a[s],l.form===i.form&&gT(l)}break e;case"textarea":vT(i,a.value,a.defaultValue);break e;case"select":s=a.value,s!=null&&ha(i,!!a.multiple,s,!1)}}}var Jg=!1;function ET(i,s,a){if(Jg)return i(s,a);Jg=!0;try{var l=i(s);return l}finally{if(Jg=!1,(ga!==null||ma!==null)&&(Of(),ga&&(s=ga,i=ma,ma=ga=null,ST(s),i)))for(s=0;s<i.length;s++)ST(i[s])}}function ul(i,s){var a=i.stateNode;if(a===null)return null;var l=a[Jt]||null;if(l===null)return null;a=l[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(i=i.type,l=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!l;break e;default:i=!1}if(i)return null;if(a&&typeof a!="function")throw Error(r(231,s,typeof a));return a}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wg=!1;if(wi)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Wg=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Wg=!1}var os=null,em=null,Pc=null;function xT(){if(Pc)return Pc;var i,s=em,a=s.length,l,d="value"in os?os.value:os.textContent,p=d.length;for(i=0;i<a&&s[i]===d[i];i++);var y=a-i;for(l=1;l<=y&&s[a-l]===d[p-l];l++);return Pc=d.slice(i,1<l?1-l:void 0)}function Hc(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Fc(){return!0}function TT(){return!1}function Wt(i){function s(a,l,d,p,y){this._reactName=a,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var S in i)i.hasOwnProperty(S)&&(a=i[S],this[S]=a?a(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Fc:TT,this.isPropagationStopped=TT,this}return v(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),s}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$c=Wt(rr),fl=v({},rr,{view:0,detail:0}),WU=Wt(fl),tm,nm,dl,Gc=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==dl&&(dl&&i.type==="mousemove"?(tm=i.screenX-dl.screenX,nm=i.screenY-dl.screenY):nm=tm=0,dl=i),tm)},movementY:function(i){return"movementY"in i?i.movementY:nm}}),wT=Wt(Gc),e6=v({},Gc,{dataTransfer:0}),t6=Wt(e6),n6=v({},fl,{relatedTarget:0}),im=Wt(n6),i6=v({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),s6=Wt(i6),r6=v({},rr,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),a6=Wt(r6),o6=v({},rr,{data:0}),AT=Wt(o6),l6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u6={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"},c6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f6(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=c6[i])?!!s[i]:!1}function sm(){return f6}var d6=v({},fl,{key:function(i){if(i.key){var s=l6[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Hc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?u6[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sm,charCode:function(i){return i.type==="keypress"?Hc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Hc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),h6=Wt(d6),p6=v({},Gc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CT=Wt(p6),g6=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sm}),m6=Wt(g6),v6=v({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),y6=Wt(v6),_6=v({},Gc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),b6=Wt(_6),S6=v({},rr,{newState:0,oldState:0}),E6=Wt(S6),x6=[9,13,27,32],rm=wi&&"CompositionEvent"in window,hl=null;wi&&"documentMode"in document&&(hl=document.documentMode);var T6=wi&&"TextEvent"in window&&!hl,MT=wi&&(!rm||hl&&8<hl&&11>=hl),OT=" ",RT=!1;function DT(i,s){switch(i){case"keyup":return x6.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kT(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var va=!1;function w6(i,s){switch(i){case"compositionend":return kT(s);case"keypress":return s.which!==32?null:(RT=!0,OT);case"textInput":return i=s.data,i===OT&&RT?null:i;default:return null}}function A6(i,s){if(va)return i==="compositionend"||!rm&&DT(i,s)?(i=xT(),Pc=em=os=null,va=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return MT&&s.locale!=="ko"?null:s.data;default:return null}}var C6={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 LT(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!C6[i.type]:s==="textarea"}function NT(i,s,a,l){ga?ma?ma.push(l):ma=[l]:ga=l,s=jf(s,"onChange"),0<s.length&&(a=new $c("onChange","change",null,a,l),i.push({event:a,listeners:s}))}var pl=null,gl=null;function M6(i){mA(i,0)}function Yc(i){var s=ll(i);if(gT(s))return i}function zT(i,s){if(i==="change")return s}var jT=!1;if(wi){var am;if(wi){var om="oninput"in document;if(!om){var UT=document.createElement("div");UT.setAttribute("oninput","return;"),om=typeof UT.oninput=="function"}am=om}else am=!1;jT=am&&(!document.documentMode||9<document.documentMode)}function BT(){pl&&(pl.detachEvent("onpropertychange",VT),gl=pl=null)}function VT(i){if(i.propertyName==="value"&&Yc(gl)){var s=[];NT(s,gl,i,Qg(i)),ET(M6,s)}}function O6(i,s,a){i==="focusin"?(BT(),pl=s,gl=a,pl.attachEvent("onpropertychange",VT)):i==="focusout"&&BT()}function R6(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Yc(gl)}function D6(i,s){if(i==="click")return Yc(s)}function k6(i,s){if(i==="input"||i==="change")return Yc(s)}function L6(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var vn=typeof Object.is=="function"?Object.is:L6;function ml(i,s){if(vn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var a=Object.keys(i),l=Object.keys(s);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var d=a[l];if(!nr.call(s,d)||!vn(i[d],s[d]))return!1}return!0}function IT(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qT(i,s){var a=IT(i);i=0;for(var l;a;){if(a.nodeType===3){if(l=i+a.textContent.length,i<=s&&l>=s)return{node:a,offset:s-i};i=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=IT(a)}}function PT(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?PT(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function HT(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Ic(i.document);s instanceof i.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)i=s.contentWindow;else break;s=Ic(i.document)}return s}function lm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var N6=wi&&"documentMode"in document&&11>=document.documentMode,ya=null,um=null,vl=null,cm=!1;function FT(i,s,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cm||ya==null||ya!==Ic(l)||(l=ya,"selectionStart"in l&&lm(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vl&&ml(vl,l)||(vl=l,l=jf(um,"onSelect"),0<l.length&&(s=new $c("onSelect","select",null,s,a),i.push({event:s,listeners:l}),s.target=ya)))}function ar(i,s){var a={};return a[i.toLowerCase()]=s.toLowerCase(),a["Webkit"+i]="webkit"+s,a["Moz"+i]="moz"+s,a}var _a={animationend:ar("Animation","AnimationEnd"),animationiteration:ar("Animation","AnimationIteration"),animationstart:ar("Animation","AnimationStart"),transitionrun:ar("Transition","TransitionRun"),transitionstart:ar("Transition","TransitionStart"),transitioncancel:ar("Transition","TransitionCancel"),transitionend:ar("Transition","TransitionEnd")},fm={},$T={};wi&&($T=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function or(i){if(fm[i])return fm[i];if(!_a[i])return i;var s=_a[i],a;for(a in s)if(s.hasOwnProperty(a)&&a in $T)return fm[i]=s[a];return i}var GT=or("animationend"),YT=or("animationiteration"),XT=or("animationstart"),z6=or("transitionrun"),j6=or("transitionstart"),U6=or("transitioncancel"),KT=or("transitionend"),ZT=new Map,dm="abort auxClick beforeToggle 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(" ");dm.push("scrollEnd");function $n(i,s){ZT.set(i,s),sr(s,[i])}var Xc=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},kn=[],ba=0,hm=0;function Kc(){for(var i=ba,s=hm=ba=0;s<i;){var a=kn[s];kn[s++]=null;var l=kn[s];kn[s++]=null;var d=kn[s];kn[s++]=null;var p=kn[s];if(kn[s++]=null,l!==null&&d!==null){var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}p!==0&&QT(a,d,p)}}function Zc(i,s,a,l){kn[ba++]=i,kn[ba++]=s,kn[ba++]=a,kn[ba++]=l,hm|=l,i.lanes|=l,i=i.alternate,i!==null&&(i.lanes|=l)}function pm(i,s,a,l){return Zc(i,s,a,l),Qc(i)}function lr(i,s){return Zc(i,null,null,s),Qc(i)}function QT(i,s,a){i.lanes|=a;var l=i.alternate;l!==null&&(l.lanes|=a);for(var d=!1,p=i.return;p!==null;)p.childLanes|=a,l=p.alternate,l!==null&&(l.childLanes|=a),p.tag===22&&(i=p.stateNode,i===null||i._visibility&1||(d=!0)),i=p,p=p.return;return i.tag===3?(p=i.stateNode,d&&s!==null&&(d=31-mn(a),i=p.hiddenUpdates,l=i[d],l===null?i[d]=[s]:l.push(s),s.lane=a|536870912),p):null}function Qc(i){if(50<Vl)throw Vl=0,xv=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Sa={};function B6(i,s,a,l){this.tag=i,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(i,s,a,l){return new B6(i,s,a,l)}function gm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ai(i,s){var a=i.alternate;return a===null?(a=yn(i.tag,s,i.key,i.mode),a.elementType=i.elementType,a.type=i.type,a.stateNode=i.stateNode,a.alternate=i,i.alternate=a):(a.pendingProps=s,a.type=i.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=i.flags&65011712,a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,s=i.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=i.sibling,a.index=i.index,a.ref=i.ref,a.refCleanup=i.refCleanup,a}function JT(i,s){i.flags&=65011714;var a=i.alternate;return a===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,s=a.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Jc(i,s,a,l,d,p){var y=0;if(l=i,typeof i=="function")gm(i)&&(y=1);else if(typeof i=="string")y=HB(i,a,H.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case $:return i=yn(31,a,s,d),i.elementType=$,i.lanes=p,i;case E:return ur(a.children,d,p,s);case M:y=8,d|=24;break;case R:return i=yn(12,a,s,d|2),i.elementType=R,i.lanes=p,i;case U:return i=yn(13,a,s,d),i.elementType=U,i.lanes=p,i;case Q:return i=yn(19,a,s,d),i.elementType=Q,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case F:y=10;break e;case q:y=9;break e;case K:y=11;break e;case P:y=14;break e;case I:y=16,l=null;break e}y=29,a=Error(r(130,i===null?"null":typeof i,"")),l=null}return s=yn(y,a,s,d),s.elementType=i,s.type=l,s.lanes=p,s}function ur(i,s,a,l){return i=yn(7,i,l,s),i.lanes=a,i}function mm(i,s,a){return i=yn(6,i,null,s),i.lanes=a,i}function WT(i){var s=yn(18,null,null,0);return s.stateNode=i,s}function vm(i,s,a){return s=yn(4,i.children!==null?i.children:[],i.key,s),s.lanes=a,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var ew=new WeakMap;function Ln(i,s){if(typeof i=="object"&&i!==null){var a=ew.get(i);return a!==void 0?a:(s={value:i,source:s,stack:ti(s)},ew.set(i,s),s)}return{value:i,source:s,stack:ti(s)}}var Ea=[],xa=0,Wc=null,yl=0,Nn=[],zn=0,ls=null,ni=1,ii="";function Ci(i,s){Ea[xa++]=yl,Ea[xa++]=Wc,Wc=i,yl=s}function tw(i,s,a){Nn[zn++]=ni,Nn[zn++]=ii,Nn[zn++]=ls,ls=i;var l=ni;i=ii;var d=32-mn(l)-1;l&=~(1<<d),a+=1;var p=32-mn(s)+d;if(30<p){var y=d-d%5;p=(l&(1<<y)-1).toString(32),l>>=y,d-=y,ni=1<<32-mn(s)+d|a<<d|l,ii=p+i}else ni=1<<p|a<<d|l,ii=i}function ym(i){i.return!==null&&(Ci(i,1),tw(i,1,0))}function _m(i){for(;i===Wc;)Wc=Ea[--xa],Ea[xa]=null,yl=Ea[--xa],Ea[xa]=null;for(;i===ls;)ls=Nn[--zn],Nn[zn]=null,ii=Nn[--zn],Nn[zn]=null,ni=Nn[--zn],Nn[zn]=null}function nw(i,s){Nn[zn++]=ni,Nn[zn++]=ii,Nn[zn++]=ls,ni=s.id,ii=s.overflow,ls=i}var jt=null,st=null,ze=!1,us=null,jn=!1,bm=Error(r(519));function cs(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(Ln(s,i)),bm}function iw(i){var s=i.stateNode,a=i.type,l=i.memoizedProps;switch(s[zt]=i,s[Jt]=l,a){case"dialog":ke("cancel",s),ke("close",s);break;case"iframe":case"object":case"embed":ke("load",s);break;case"video":case"audio":for(a=0;a<ql.length;a++)ke(ql[a],s);break;case"source":ke("error",s);break;case"img":case"image":case"link":ke("error",s),ke("load",s);break;case"details":ke("toggle",s);break;case"input":ke("invalid",s),mT(s,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",s);break;case"textarea":ke("invalid",s),yT(s,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||l.suppressHydrationWarning===!0||bA(s.textContent,a)?(l.popover!=null&&(ke("beforetoggle",s),ke("toggle",s)),l.onScroll!=null&&ke("scroll",s),l.onScrollEnd!=null&&ke("scrollend",s),l.onClick!=null&&(s.onclick=Ti),s=!0):s=!1,s||cs(i,!0)}function sw(i){for(jt=i.return;jt;)switch(jt.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:jt=jt.return}}function Ta(i){if(i!==jt)return!1;if(!ze)return sw(i),ze=!0,!1;var s=i.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=i.type,a=!(a!=="form"&&a!=="button")||Bv(i.type,i.memoizedProps)),a=!a),a&&st&&cs(i),sw(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));st=OA(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));st=OA(i)}else s===27?(s=st,Ts(i.type)?(i=Hv,Hv=null,st=i):st=s):st=jt?Bn(i.stateNode.nextSibling):null;return!0}function cr(){st=jt=null,ze=!1}function Sm(){var i=us;return i!==null&&(sn===null?sn=i:sn.push.apply(sn,i),us=null),i}function _l(i){us===null?us=[i]:us.push(i)}var Em=T(null),fr=null,Mi=null;function fs(i,s,a){W(Em,s._currentValue),s._currentValue=a}function Oi(i){i._currentValue=Em.current,j(Em)}function xm(i,s,a){for(;i!==null;){var l=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,l!==null&&(l.childLanes|=s)):l!==null&&(l.childLanes&s)!==s&&(l.childLanes|=s),i===a)break;i=i.return}}function Tm(i,s,a,l){var d=i.child;for(d!==null&&(d.return=i);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=d;for(var w=0;w<s.length;w++)if(S.context===s[w]){p.lanes|=a,S=p.alternate,S!==null&&(S.lanes|=a),xm(p.return,a,i),l||(y=null);break e}p=S.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(r(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),xm(y,a,i),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===i){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function wa(i,s,a,l){i=null;for(var d=s,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var S=d.type;vn(d.pendingProps.value,y.value)||(i!==null?i.push(S):i=[S])}}else if(d===Me.current){if(y=d.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(i!==null?i.push(Gl):i=[Gl])}d=d.return}i!==null&&Tm(s,i,a,l),s.flags|=262144}function ef(i){for(i=i.firstContext;i!==null;){if(!vn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function dr(i){fr=i,Mi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Ut(i){return rw(fr,i)}function tf(i,s){return fr===null&&dr(i),rw(i,s)}function rw(i,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},Mi===null){if(i===null)throw Error(r(308));Mi=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Mi=Mi.next=s;return a}var V6=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(a,l){i.push(l)}};this.abort=function(){s.aborted=!0,i.forEach(function(a){return a()})}},I6=t.unstable_scheduleCallback,q6=t.unstable_NormalPriority,_t={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wm(){return{controller:new V6,data:new Map,refCount:0}}function bl(i){i.refCount--,i.refCount===0&&I6(q6,function(){i.controller.abort()})}var Sl=null,Am=0,Aa=0,Ca=null;function P6(i,s){if(Sl===null){var a=Sl=[];Am=0,Aa=Ov(),Ca={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Am++,s.then(aw,aw),s}function aw(){if(--Am===0&&Sl!==null){Ca!==null&&(Ca.status="fulfilled");var i=Sl;Sl=null,Aa=0,Ca=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function H6(i,s){var a=[],l={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return i.then(function(){l.status="fulfilled",l.value=s;for(var d=0;d<a.length;d++)(0,a[d])(s)},function(d){for(l.status="rejected",l.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),l}var ow=A.S;A.S=function(i,s){F2=pn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&P6(i,s),ow!==null&&ow(i,s)};var hr=T(null);function Cm(){var i=hr.current;return i!==null?i:Ke.pooledCache}function nf(i,s){s===null?W(hr,hr.current):W(hr,s.pool)}function lw(){var i=Cm();return i===null?null:{parent:_t._currentValue,pool:i}}var Ma=Error(r(460)),Mm=Error(r(474)),sf=Error(r(542)),rf={then:function(){}};function uw(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cw(i,s,a){switch(a=i[a],a===void 0?i.push(s):a!==s&&(s.then(Ti,Ti),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,dw(i),i;default:if(typeof s.status=="string")s.then(Ti,Ti);else{if(i=Ke,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(l){if(s.status==="pending"){var d=s;d.status="fulfilled",d.value=l}},function(l){if(s.status==="pending"){var d=s;d.status="rejected",d.reason=l}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,dw(i),i}throw gr=s,Ma}}function pr(i){try{var s=i._init;return s(i._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gr=a,Ma):a}}var gr=null;function fw(){if(gr===null)throw Error(r(459));var i=gr;return gr=null,i}function dw(i){if(i===Ma||i===sf)throw Error(r(483))}var Oa=null,El=0;function af(i){var s=El;return El+=1,Oa===null&&(Oa=[]),cw(Oa,i,s)}function xl(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function of(i,s){throw s.$$typeof===_?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function hw(i){function s(O,C){if(i){var D=O.deletions;D===null?(O.deletions=[C],O.flags|=16):D.push(C)}}function a(O,C){if(!i)return null;for(;C!==null;)s(O,C),C=C.sibling;return null}function l(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function d(O,C){return O=Ai(O,C),O.index=0,O.sibling=null,O}function p(O,C,D){return O.index=D,i?(D=O.alternate,D!==null?(D=D.index,D<C?(O.flags|=67108866,C):D):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function y(O){return i&&O.alternate===null&&(O.flags|=67108866),O}function S(O,C,D,X){return C===null||C.tag!==6?(C=mm(D,O.mode,X),C.return=O,C):(C=d(C,D),C.return=O,C)}function w(O,C,D,X){var me=D.type;return me===E?G(O,C,D.props.children,X,D.key):C!==null&&(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===I&&pr(me)===C.type)?(C=d(C,D.props),xl(C,D),C.return=O,C):(C=Jc(D.type,D.key,D.props,null,O.mode,X),xl(C,D),C.return=O,C)}function k(O,C,D,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=vm(D,O.mode,X),C.return=O,C):(C=d(C,D.children||[]),C.return=O,C)}function G(O,C,D,X,me){return C===null||C.tag!==7?(C=ur(D,O.mode,X,me),C.return=O,C):(C=d(C,D),C.return=O,C)}function Z(O,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=mm(""+C,O.mode,D),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return D=Jc(C.type,C.key,C.props,null,O.mode,D),xl(D,C),D.return=O,D;case x:return C=vm(C,O.mode,D),C.return=O,C;case I:return C=pr(C),Z(O,C,D)}if(L(C)||ie(C))return C=ur(C,O.mode,D,null),C.return=O,C;if(typeof C.then=="function")return Z(O,af(C),D);if(C.$$typeof===F)return Z(O,tf(O,C),D);of(O,C)}return null}function z(O,C,D,X){var me=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return me!==null?null:S(O,C,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case b:return D.key===me?w(O,C,D,X):null;case x:return D.key===me?k(O,C,D,X):null;case I:return D=pr(D),z(O,C,D,X)}if(L(D)||ie(D))return me!==null?null:G(O,C,D,X,null);if(typeof D.then=="function")return z(O,C,af(D),X);if(D.$$typeof===F)return z(O,C,tf(O,D),X);of(O,D)}return null}function V(O,C,D,X,me){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(D)||null,S(C,O,""+X,me);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case b:return O=O.get(X.key===null?D:X.key)||null,w(C,O,X,me);case x:return O=O.get(X.key===null?D:X.key)||null,k(C,O,X,me);case I:return X=pr(X),V(O,C,D,X,me)}if(L(X)||ie(X))return O=O.get(D)||null,G(C,O,X,me,null);if(typeof X.then=="function")return V(O,C,D,af(X),me);if(X.$$typeof===F)return V(O,C,D,tf(C,X),me);of(C,X)}return null}function ce(O,C,D,X){for(var me=null,Be=null,de=C,Ae=C=0,Ne=null;de!==null&&Ae<D.length;Ae++){de.index>Ae?(Ne=de,de=null):Ne=de.sibling;var Ve=z(O,de,D[Ae],X);if(Ve===null){de===null&&(de=Ne);break}i&&de&&Ve.alternate===null&&s(O,de),C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve,de=Ne}if(Ae===D.length)return a(O,de),ze&&Ci(O,Ae),me;if(de===null){for(;Ae<D.length;Ae++)de=Z(O,D[Ae],X),de!==null&&(C=p(de,C,Ae),Be===null?me=de:Be.sibling=de,Be=de);return ze&&Ci(O,Ae),me}for(de=l(de);Ae<D.length;Ae++)Ne=V(de,O,Ae,D[Ae],X),Ne!==null&&(i&&Ne.alternate!==null&&de.delete(Ne.key===null?Ae:Ne.key),C=p(Ne,C,Ae),Be===null?me=Ne:Be.sibling=Ne,Be=Ne);return i&&de.forEach(function(Os){return s(O,Os)}),ze&&Ci(O,Ae),me}function _e(O,C,D,X){if(D==null)throw Error(r(151));for(var me=null,Be=null,de=C,Ae=C=0,Ne=null,Ve=D.next();de!==null&&!Ve.done;Ae++,Ve=D.next()){de.index>Ae?(Ne=de,de=null):Ne=de.sibling;var Os=z(O,de,Ve.value,X);if(Os===null){de===null&&(de=Ne);break}i&&de&&Os.alternate===null&&s(O,de),C=p(Os,C,Ae),Be===null?me=Os:Be.sibling=Os,Be=Os,de=Ne}if(Ve.done)return a(O,de),ze&&Ci(O,Ae),me;if(de===null){for(;!Ve.done;Ae++,Ve=D.next())Ve=Z(O,Ve.value,X),Ve!==null&&(C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve);return ze&&Ci(O,Ae),me}for(de=l(de);!Ve.done;Ae++,Ve=D.next())Ve=V(de,O,Ae,Ve.value,X),Ve!==null&&(i&&Ve.alternate!==null&&de.delete(Ve.key===null?Ae:Ve.key),C=p(Ve,C,Ae),Be===null?me=Ve:Be.sibling=Ve,Be=Ve);return i&&de.forEach(function(eV){return s(O,eV)}),ze&&Ci(O,Ae),me}function Ge(O,C,D,X){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case b:e:{for(var me=D.key;C!==null;){if(C.key===me){if(me=D.type,me===E){if(C.tag===7){a(O,C.sibling),X=d(C,D.props.children),X.return=O,O=X;break e}}else if(C.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===I&&pr(me)===C.type){a(O,C.sibling),X=d(C,D.props),xl(X,D),X.return=O,O=X;break e}a(O,C);break}else s(O,C);C=C.sibling}D.type===E?(X=ur(D.props.children,O.mode,X,D.key),X.return=O,O=X):(X=Jc(D.type,D.key,D.props,null,O.mode,X),xl(X,D),X.return=O,O=X)}return y(O);case x:e:{for(me=D.key;C!==null;){if(C.key===me)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(O,C.sibling),X=d(C,D.children||[]),X.return=O,O=X;break e}else{a(O,C);break}else s(O,C);C=C.sibling}X=vm(D,O.mode,X),X.return=O,O=X}return y(O);case I:return D=pr(D),Ge(O,C,D,X)}if(L(D))return ce(O,C,D,X);if(ie(D)){if(me=ie(D),typeof me!="function")throw Error(r(150));return D=me.call(D),_e(O,C,D,X)}if(typeof D.then=="function")return Ge(O,C,af(D),X);if(D.$$typeof===F)return Ge(O,C,tf(O,D),X);of(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(O,C.sibling),X=d(C,D),X.return=O,O=X):(a(O,C),X=mm(D,O.mode,X),X.return=O,O=X),y(O)):a(O,C)}return function(O,C,D,X){try{El=0;var me=Ge(O,C,D,X);return Oa=null,me}catch(de){if(de===Ma||de===sf)throw de;var Be=yn(29,de,null,O.mode);return Be.lanes=X,Be.return=O,Be}}}var mr=hw(!0),pw=hw(!1),ds=!1;function Om(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rm(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function hs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ps(i,s,a){var l=i.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var d=l.pending;return d===null?s.next=s:(s.next=d.next,d.next=s),l.pending=s,s=Qc(i),QT(i,null,a),s}return Zc(i,l,s,a),Qc(i)}function Tl(i,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var l=s.lanes;l&=i.pendingLanes,a|=l,s.lanes=a,rT(i,a)}}function Dm(i,s){var a=i.updateQueue,l=i.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=s:p=p.next=s}else d=p=s;a={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},i.updateQueue=a;return}i=a.lastBaseUpdate,i===null?a.firstBaseUpdate=s:i.next=s,a.lastBaseUpdate=s}var km=!1;function wl(){if(km){var i=Ca;if(i!==null)throw i}}function Al(i,s,a,l){km=!1;var d=i.updateQueue;ds=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var w=S,k=w.next;w.next=null,y===null?p=k:y.next=k,y=w;var G=i.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==y&&(S===null?G.firstBaseUpdate=k:S.next=k,G.lastBaseUpdate=w))}if(p!==null){var Z=d.baseState;y=0,G=k=w=null,S=p;do{var z=S.lane&-536870913,V=z!==S.lane;if(V?(Le&z)===z:(l&z)===z){z!==0&&z===Aa&&(km=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ce=i,_e=S;z=s;var Ge=a;switch(_e.tag){case 1:if(ce=_e.payload,typeof ce=="function"){Z=ce.call(Ge,Z,z);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=_e.payload,z=typeof ce=="function"?ce.call(Ge,Z,z):ce,z==null)break e;Z=v({},Z,z);break e;case 2:ds=!0}}z=S.callback,z!==null&&(i.flags|=64,V&&(i.flags|=8192),V=d.callbacks,V===null?d.callbacks=[z]:V.push(z))}else V={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(k=G=V,w=Z):G=G.next=V,y|=z;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;V=S,S=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);G===null&&(w=Z),d.baseState=w,d.firstBaseUpdate=k,d.lastBaseUpdate=G,p===null&&(d.shared.lanes=0),_s|=y,i.lanes=y,i.memoizedState=Z}}function gw(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function mw(i,s){var a=i.callbacks;if(a!==null)for(i.callbacks=null,i=0;i<a.length;i++)gw(a[i],s)}var Ra=T(null),lf=T(0);function vw(i,s){i=Bi,W(lf,i),W(Ra,s),Bi=i|s.baseLanes}function Lm(){W(lf,Bi),W(Ra,Ra.current)}function Nm(){Bi=lf.current,j(Ra),j(lf)}var _n=T(null),Un=null;function gs(i){var s=i.alternate;W(vt,vt.current&1),W(_n,i),Un===null&&(s===null||Ra.current!==null||s.memoizedState!==null)&&(Un=i)}function zm(i){W(vt,vt.current),W(_n,i),Un===null&&(Un=i)}function yw(i){i.tag===22?(W(vt,vt.current),W(_n,i),Un===null&&(Un=i)):ms()}function ms(){W(vt,vt.current),W(_n,_n.current)}function bn(i){j(_n),Un===i&&(Un=null),j(vt)}var vt=T(0);function uf(i){for(var s=i;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||qv(a)||Pv(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ri=0,Te=null,Fe=null,bt=null,cf=!1,Da=!1,vr=!1,ff=0,Cl=0,ka=null,F6=0;function pt(){throw Error(r(321))}function jm(i,s){if(s===null)return!1;for(var a=0;a<s.length&&a<i.length;a++)if(!vn(i[a],s[a]))return!1;return!0}function Um(i,s,a,l,d,p){return Ri=p,Te=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,A.H=i===null||i.memoizedState===null?t2:Jm,vr=!1,p=a(l,d),vr=!1,Da&&(p=bw(s,a,l,d)),_w(i),p}function _w(i){A.H=Rl;var s=Fe!==null&&Fe.next!==null;if(Ri=0,bt=Fe=Te=null,cf=!1,Cl=0,ka=null,s)throw Error(r(300));i===null||St||(i=i.dependencies,i!==null&&ef(i)&&(St=!0))}function bw(i,s,a,l){Te=i;var d=0;do{if(Da&&(ka=null),Cl=0,Da=!1,25<=d)throw Error(r(301));if(d+=1,bt=Fe=null,i.updateQueue!=null){var p=i.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}A.H=n2,p=s(a,l)}while(Da);return p}function $6(){var i=A.H,s=i.useState()[0];return s=typeof s.then=="function"?Ml(s):s,i=i.useState()[0],(Fe!==null?Fe.memoizedState:null)!==i&&(Te.flags|=1024),s}function Bm(){var i=ff!==0;return ff=0,i}function Vm(i,s,a){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~a}function Im(i){if(cf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}cf=!1}Ri=0,bt=Fe=Te=null,Da=!1,Cl=ff=0,ka=null}function Xt(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Te.memoizedState=bt=i:bt=bt.next=i,bt}function yt(){if(Fe===null){var i=Te.alternate;i=i!==null?i.memoizedState:null}else i=Fe.next;var s=bt===null?Te.memoizedState:bt.next;if(s!==null)bt=s,Fe=i;else{if(i===null)throw Te.alternate===null?Error(r(467)):Error(r(310));Fe=i,i={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},bt===null?Te.memoizedState=bt=i:bt=bt.next=i}return bt}function df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(i){var s=Cl;return Cl+=1,ka===null&&(ka=[]),i=cw(ka,i,s),s=Te,(bt===null?s.memoizedState:bt.next)===null&&(s=s.alternate,A.H=s===null||s.memoizedState===null?t2:Jm),i}function hf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ml(i);if(i.$$typeof===F)return Ut(i)}throw Error(r(438,String(i)))}function qm(i){var s=null,a=Te.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var l=Te.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(s={data:l.data.map(function(d){return d.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=df(),Te.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(i),l=0;l<i;l++)a[l]=ee;return s.index++,a}function Di(i,s){return typeof s=="function"?s(i):s}function pf(i){var s=yt();return Pm(s,Fe,i)}function Pm(i,s,a){var l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var d=i.baseQueue,p=l.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}s.baseQueue=d=p,l.pending=null}if(p=i.baseState,d===null)i.memoizedState=p;else{s=d.next;var S=y=null,w=null,k=s,G=!1;do{var Z=k.lane&-536870913;if(Z!==k.lane?(Le&Z)===Z:(Ri&Z)===Z){var z=k.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),Z===Aa&&(G=!0);else if((Ri&z)===z){k=k.next,z===Aa&&(G=!0);continue}else Z={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(S=w=Z,y=p):w=w.next=Z,Te.lanes|=z,_s|=z;Z=k.action,vr&&a(p,Z),p=k.hasEagerState?k.eagerState:a(p,Z)}else z={lane:Z,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(S=w=z,y=p):w=w.next=z,Te.lanes|=Z,_s|=Z;k=k.next}while(k!==null&&k!==s);if(w===null?y=p:w.next=S,!vn(p,i.memoizedState)&&(St=!0,G&&(a=Ca,a!==null)))throw a;i.memoizedState=p,i.baseState=y,i.baseQueue=w,l.lastRenderedState=p}return d===null&&(l.lanes=0),[i.memoizedState,l.dispatch]}function Hm(i){var s=yt(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=i;var l=a.dispatch,d=a.pending,p=s.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=i(p,y.action),y=y.next;while(y!==d);vn(p,s.memoizedState)||(St=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),a.lastRenderedState=p}return[p,l]}function Sw(i,s,a){var l=Te,d=yt(),p=ze;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=s();var y=!vn((Fe||d).memoizedState,a);if(y&&(d.memoizedState=a,St=!0),d=d.queue,Gm(Tw.bind(null,l,d,i),[i]),d.getSnapshot!==s||y||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,La(9,{destroy:void 0},xw.bind(null,l,d,a,s),null),Ke===null)throw Error(r(349));p||(Ri&127)!==0||Ew(l,s,a)}return a}function Ew(i,s,a){i.flags|=16384,i={getSnapshot:s,value:a},s=Te.updateQueue,s===null?(s=df(),Te.updateQueue=s,s.stores=[i]):(a=s.stores,a===null?s.stores=[i]:a.push(i))}function xw(i,s,a,l){s.value=a,s.getSnapshot=l,ww(s)&&Aw(i)}function Tw(i,s,a){return a(function(){ww(s)&&Aw(i)})}function ww(i){var s=i.getSnapshot;i=i.value;try{var a=s();return!vn(i,a)}catch{return!0}}function Aw(i){var s=lr(i,2);s!==null&&rn(s,i,2)}function Fm(i){var s=Xt();if(typeof i=="function"){var a=i;if(i=a(),vr){rs(!0);try{a()}finally{rs(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:i},s}function Cw(i,s,a,l){return i.baseState=a,Pm(i,Fe,typeof l=="function"?l:Di)}function G6(i,s,a,l,d){if(vf(i))throw Error(r(485));if(i=s.action,i!==null){var p={payload:d,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};A.T!==null?a(!0):p.isTransition=!1,l(p),a=s.pending,a===null?(p.next=s.pending=p,Mw(s,p)):(p.next=a.next,s.pending=a.next=p)}}function Mw(i,s){var a=s.action,l=s.payload,d=i.state;if(s.isTransition){var p=A.T,y={};A.T=y;try{var S=a(d,l),w=A.S;w!==null&&w(y,S),Ow(i,s,S)}catch(k){$m(i,s,k)}finally{p!==null&&y.types!==null&&(p.types=y.types),A.T=p}}else try{p=a(d,l),Ow(i,s,p)}catch(k){$m(i,s,k)}}function Ow(i,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Rw(i,s,l)},function(l){return $m(i,s,l)}):Rw(i,s,a)}function Rw(i,s,a){s.status="fulfilled",s.value=a,Dw(s),i.state=a,s=i.pending,s!==null&&(a=s.next,a===s?i.pending=null:(a=a.next,s.next=a,Mw(i,a)))}function $m(i,s,a){var l=i.pending;if(i.pending=null,l!==null){l=l.next;do s.status="rejected",s.reason=a,Dw(s),s=s.next;while(s!==l)}i.action=null}function Dw(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function kw(i,s){return s}function Lw(i,s){if(ze){var a=Ke.formState;if(a!==null){e:{var l=Te;if(ze){if(st){t:{for(var d=st,p=jn;d.nodeType!==8;){if(!p){d=null;break t}if(d=Bn(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){st=Bn(d.nextSibling),l=d.data==="F!";break e}}cs(l)}l=!1}l&&(s=a[0])}}return a=Xt(),a.memoizedState=a.baseState=s,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kw,lastRenderedState:s},a.queue=l,a=Jw.bind(null,Te,l),l.dispatch=a,l=Fm(!1),p=Qm.bind(null,Te,!1,l.queue),l=Xt(),d={state:s,dispatch:null,action:i,pending:null},l.queue=d,a=G6.bind(null,Te,d,p,a),d.dispatch=a,l.memoizedState=i,[s,a,!1]}function Nw(i){var s=yt();return zw(s,Fe,i)}function zw(i,s,a){if(s=Pm(i,s,kw)[0],i=pf(Di)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var l=Ml(s)}catch(y){throw y===Ma?sf:y}else l=s;s=yt();var d=s.queue,p=d.dispatch;return a!==s.memoizedState&&(Te.flags|=2048,La(9,{destroy:void 0},Y6.bind(null,d,a),null)),[l,p,i]}function Y6(i,s){i.action=s}function jw(i){var s=yt(),a=Fe;if(a!==null)return zw(s,a,i);yt(),s=s.memoizedState,a=yt();var l=a.queue.dispatch;return a.memoizedState=i,[s,l,!1]}function La(i,s,a,l){return i={tag:i,create:a,deps:l,inst:s,next:null},s=Te.updateQueue,s===null&&(s=df(),Te.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=i.next=i:(l=a.next,a.next=i,i.next=l,s.lastEffect=i),i}function Uw(){return yt().memoizedState}function gf(i,s,a,l){var d=Xt();Te.flags|=i,d.memoizedState=La(1|s,{destroy:void 0},a,l===void 0?null:l)}function mf(i,s,a,l){var d=yt();l=l===void 0?null:l;var p=d.memoizedState.inst;Fe!==null&&l!==null&&jm(l,Fe.memoizedState.deps)?d.memoizedState=La(s,p,a,l):(Te.flags|=i,d.memoizedState=La(1|s,p,a,l))}function Bw(i,s){gf(8390656,8,i,s)}function Gm(i,s){mf(2048,8,i,s)}function X6(i){Te.flags|=4;var s=Te.updateQueue;if(s===null)s=df(),Te.updateQueue=s,s.events=[i];else{var a=s.events;a===null?s.events=[i]:a.push(i)}}function Vw(i){var s=yt().memoizedState;return X6({ref:s,nextImpl:i}),function(){if((Ie&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Iw(i,s){return mf(4,2,i,s)}function qw(i,s){return mf(4,4,i,s)}function Pw(i,s){if(typeof s=="function"){i=i();var a=s(i);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Hw(i,s,a){a=a!=null?a.concat([i]):null,mf(4,4,Pw.bind(null,s,i),a)}function Ym(){}function Fw(i,s){var a=yt();s=s===void 0?null:s;var l=a.memoizedState;return s!==null&&jm(s,l[1])?l[0]:(a.memoizedState=[i,s],i)}function $w(i,s){var a=yt();s=s===void 0?null:s;var l=a.memoizedState;if(s!==null&&jm(s,l[1]))return l[0];if(l=i(),vr){rs(!0);try{i()}finally{rs(!1)}}return a.memoizedState=[l,s],l}function Xm(i,s,a){return a===void 0||(Ri&1073741824)!==0&&(Le&261930)===0?i.memoizedState=s:(i.memoizedState=a,i=G2(),Te.lanes|=i,_s|=i,a)}function Gw(i,s,a,l){return vn(a,s)?a:Ra.current!==null?(i=Xm(i,a,l),vn(i,s)||(St=!0),i):(Ri&42)===0||(Ri&1073741824)!==0&&(Le&261930)===0?(St=!0,i.memoizedState=a):(i=G2(),Te.lanes|=i,_s|=i,s)}function Yw(i,s,a,l,d){var p=N.p;N.p=p!==0&&8>p?p:8;var y=A.T,S={};A.T=S,Qm(i,!1,s,a);try{var w=d(),k=A.S;if(k!==null&&k(S,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var G=H6(w,l);Ol(i,s,G,xn(i))}else Ol(i,s,l,xn(i))}catch(Z){Ol(i,s,{then:function(){},status:"rejected",reason:Z},xn())}finally{N.p=p,y!==null&&S.types!==null&&(y.types=S.types),A.T=y}}function K6(){}function Km(i,s,a,l){if(i.tag!==5)throw Error(r(476));var d=Xw(i).queue;Yw(i,d,s,J,a===null?K6:function(){return Kw(i),a(l)})}function Xw(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:J},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:a},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function Kw(i){var s=Xw(i);s.next===null&&(s=i.alternate.memoizedState),Ol(i,s.next.queue,{},xn())}function Zm(){return Ut(Gl)}function Zw(){return yt().memoizedState}function Qw(){return yt().memoizedState}function Z6(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var a=xn();i=hs(a);var l=ps(s,i,a);l!==null&&(rn(l,s,a),Tl(l,s,a)),s={cache:wm()},i.payload=s;return}s=s.return}}function Q6(i,s,a){var l=xn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vf(i)?Ww(s,a):(a=pm(i,s,a,l),a!==null&&(rn(a,i,l),e2(a,s,l)))}function Jw(i,s,a){var l=xn();Ol(i,s,a,l)}function Ol(i,s,a,l){var d={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(vf(i))Ww(s,d);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var y=s.lastRenderedState,S=p(y,a);if(d.hasEagerState=!0,d.eagerState=S,vn(S,y))return Zc(i,s,d,0),Ke===null&&Kc(),!1}catch{}if(a=pm(i,s,d,l),a!==null)return rn(a,i,l),e2(a,s,l),!0}return!1}function Qm(i,s,a,l){if(l={lane:2,revertLane:Ov(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vf(i)){if(s)throw Error(r(479))}else s=pm(i,a,l,2),s!==null&&rn(s,i,2)}function vf(i){var s=i.alternate;return i===Te||s!==null&&s===Te}function Ww(i,s){Da=cf=!0;var a=i.pending;a===null?s.next=s:(s.next=a.next,a.next=s),i.pending=s}function e2(i,s,a){if((a&4194048)!==0){var l=s.lanes;l&=i.pendingLanes,a|=l,s.lanes=a,rT(i,a)}}var Rl={readContext:Ut,use:hf,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};Rl.useEffectEvent=pt;var t2={readContext:Ut,use:hf,useCallback:function(i,s){return Xt().memoizedState=[i,s===void 0?null:s],i},useContext:Ut,useEffect:Bw,useImperativeHandle:function(i,s,a){a=a!=null?a.concat([i]):null,gf(4194308,4,Pw.bind(null,s,i),a)},useLayoutEffect:function(i,s){return gf(4194308,4,i,s)},useInsertionEffect:function(i,s){gf(4,2,i,s)},useMemo:function(i,s){var a=Xt();s=s===void 0?null:s;var l=i();if(vr){rs(!0);try{i()}finally{rs(!1)}}return a.memoizedState=[l,s],l},useReducer:function(i,s,a){var l=Xt();if(a!==void 0){var d=a(s);if(vr){rs(!0);try{a(s)}finally{rs(!1)}}}else d=s;return l.memoizedState=l.baseState=d,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:d},l.queue=i,i=i.dispatch=Q6.bind(null,Te,i),[l.memoizedState,i]},useRef:function(i){var s=Xt();return i={current:i},s.memoizedState=i},useState:function(i){i=Fm(i);var s=i.queue,a=Jw.bind(null,Te,s);return s.dispatch=a,[i.memoizedState,a]},useDebugValue:Ym,useDeferredValue:function(i,s){var a=Xt();return Xm(a,i,s)},useTransition:function(){var i=Fm(!1);return i=Yw.bind(null,Te,i.queue,!0,!1),Xt().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,a){var l=Te,d=Xt();if(ze){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),Ke===null)throw Error(r(349));(Le&127)!==0||Ew(l,s,a)}d.memoizedState=a;var p={value:a,getSnapshot:s};return d.queue=p,Bw(Tw.bind(null,l,p,i),[i]),l.flags|=2048,La(9,{destroy:void 0},xw.bind(null,l,p,a,s),null),a},useId:function(){var i=Xt(),s=Ke.identifierPrefix;if(ze){var a=ii,l=ni;a=(l&~(1<<32-mn(l)-1)).toString(32)+a,s="_"+s+"R_"+a,a=ff++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=F6++,s="_"+s+"r_"+a.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Zm,useFormState:Lw,useActionState:Lw,useOptimistic:function(i){var s=Xt();s.memoizedState=s.baseState=i;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=Qm.bind(null,Te,!0,a),a.dispatch=s,[i,s]},useMemoCache:qm,useCacheRefresh:function(){return Xt().memoizedState=Z6.bind(null,Te)},useEffectEvent:function(i){var s=Xt(),a={impl:i};return s.memoizedState=a,function(){if((Ie&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Jm={readContext:Ut,use:hf,useCallback:Fw,useContext:Ut,useEffect:Gm,useImperativeHandle:Hw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:$w,useReducer:pf,useRef:Uw,useState:function(){return pf(Di)},useDebugValue:Ym,useDeferredValue:function(i,s){var a=yt();return Gw(a,Fe.memoizedState,i,s)},useTransition:function(){var i=pf(Di)[0],s=yt().memoizedState;return[typeof i=="boolean"?i:Ml(i),s]},useSyncExternalStore:Sw,useId:Zw,useHostTransitionStatus:Zm,useFormState:Nw,useActionState:Nw,useOptimistic:function(i,s){var a=yt();return Cw(a,Fe,i,s)},useMemoCache:qm,useCacheRefresh:Qw};Jm.useEffectEvent=Vw;var n2={readContext:Ut,use:hf,useCallback:Fw,useContext:Ut,useEffect:Gm,useImperativeHandle:Hw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:$w,useReducer:Hm,useRef:Uw,useState:function(){return Hm(Di)},useDebugValue:Ym,useDeferredValue:function(i,s){var a=yt();return Fe===null?Xm(a,i,s):Gw(a,Fe.memoizedState,i,s)},useTransition:function(){var i=Hm(Di)[0],s=yt().memoizedState;return[typeof i=="boolean"?i:Ml(i),s]},useSyncExternalStore:Sw,useId:Zw,useHostTransitionStatus:Zm,useFormState:jw,useActionState:jw,useOptimistic:function(i,s){var a=yt();return Fe!==null?Cw(a,Fe,i,s):(a.baseState=i,[i,a.queue.dispatch])},useMemoCache:qm,useCacheRefresh:Qw};n2.useEffectEvent=Vw;function Wm(i,s,a,l){s=i.memoizedState,a=a(l,s),a=a==null?s:v({},s,a),i.memoizedState=a,i.lanes===0&&(i.updateQueue.baseState=a)}var ev={enqueueSetState:function(i,s,a){i=i._reactInternals;var l=xn(),d=hs(l);d.payload=s,a!=null&&(d.callback=a),s=ps(i,d,l),s!==null&&(rn(s,i,l),Tl(s,i,l))},enqueueReplaceState:function(i,s,a){i=i._reactInternals;var l=xn(),d=hs(l);d.tag=1,d.payload=s,a!=null&&(d.callback=a),s=ps(i,d,l),s!==null&&(rn(s,i,l),Tl(s,i,l))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var a=xn(),l=hs(a);l.tag=2,s!=null&&(l.callback=s),s=ps(i,l,a),s!==null&&(rn(s,i,a),Tl(s,i,a))}};function i2(i,s,a,l,d,p,y){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(l,p,y):s.prototype&&s.prototype.isPureReactComponent?!ml(a,l)||!ml(d,p):!0}function s2(i,s,a,l){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,l),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,l),s.state!==i&&ev.enqueueReplaceState(s,s.state,null)}function yr(i,s){var a=s;if("ref"in s){a={};for(var l in s)l!=="ref"&&(a[l]=s[l])}if(i=i.defaultProps){a===s&&(a=v({},a));for(var d in i)a[d]===void 0&&(a[d]=i[d])}return a}function r2(i){Xc(i)}function a2(i){console.error(i)}function o2(i){Xc(i)}function yf(i,s){try{var a=i.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(l){setTimeout(function(){throw l})}}function l2(i,s,a){try{var l=i.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function tv(i,s,a){return a=hs(a),a.tag=3,a.payload={element:null},a.callback=function(){yf(i,s)},a}function u2(i){return i=hs(i),i.tag=3,i}function c2(i,s,a,l){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=l.value;i.payload=function(){return d(p)},i.callback=function(){l2(s,a,l)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(i.callback=function(){l2(s,a,l),typeof d!="function"&&(bs===null?bs=new Set([this]):bs.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function J6(i,s,a,l,d){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(s=a.alternate,s!==null&&wa(s,a,d,!0),a=_n.current,a!==null){switch(a.tag){case 31:case 13:return Un===null?Rf():a.alternate===null&>===0&&(gt=3),a.flags&=-257,a.flags|=65536,a.lanes=d,l===rf?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([l]):s.add(l),Av(i,l,d)),!1;case 22:return a.flags|=65536,l===rf?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([l]):a.add(l)),Av(i,l,d)),!1}throw Error(r(435,a.tag))}return Av(i,l,d),Rf(),!1}if(ze)return s=_n.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=d,l!==bm&&(i=Error(r(422),{cause:l}),_l(Ln(i,a)))):(l!==bm&&(s=Error(r(423),{cause:l}),_l(Ln(s,a))),i=i.current.alternate,i.flags|=65536,d&=-d,i.lanes|=d,l=Ln(l,a),d=tv(i.stateNode,l,d),Dm(i,d),gt!==4&&(gt=2)),!1;var p=Error(r(520),{cause:l});if(p=Ln(p,a),Bl===null?Bl=[p]:Bl.push(p),gt!==4&&(gt=2),s===null)return!0;l=Ln(l,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,i=d&-d,a.lanes|=i,i=tv(a.stateNode,l,i),Dm(a,i),!1;case 1:if(s=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(bs===null||!bs.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=u2(d),c2(d,i,a,l),Dm(a,d),!1}a=a.return}while(a!==null);return!1}var nv=Error(r(461)),St=!1;function Bt(i,s,a,l){s.child=i===null?pw(s,null,a,l):mr(s,i.child,a,l)}function f2(i,s,a,l,d){a=a.render;var p=s.ref;if("ref"in l){var y={};for(var S in l)S!=="ref"&&(y[S]=l[S])}else y=l;return dr(s),l=Um(i,s,a,y,p,d),S=Bm(),i!==null&&!St?(Vm(i,s,d),ki(i,s,d)):(ze&&S&&ym(s),s.flags|=1,Bt(i,s,l,d),s.child)}function d2(i,s,a,l,d){if(i===null){var p=a.type;return typeof p=="function"&&!gm(p)&&p.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=p,h2(i,s,p,l,d)):(i=Jc(a.type,null,l,s,s.mode,d),i.ref=s.ref,i.return=s,s.child=i)}if(p=i.child,!cv(i,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:ml,a(y,l)&&i.ref===s.ref)return ki(i,s,d)}return s.flags|=1,i=Ai(p,l),i.ref=s.ref,i.return=s,s.child=i}function h2(i,s,a,l,d){if(i!==null){var p=i.memoizedProps;if(ml(p,l)&&i.ref===s.ref)if(St=!1,s.pendingProps=l=p,cv(i,d))(i.flags&131072)!==0&&(St=!0);else return s.lanes=i.lanes,ki(i,s,d)}return iv(i,s,a,l,d)}function p2(i,s,a,l){var d=l.children,p=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,i!==null){for(l=s.child=i.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~p}else l=0,s.child=null;return g2(i,s,p,a,l)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&nf(s,p!==null?p.cachePool:null),p!==null?vw(s,p):Lm(),yw(s);else return l=s.lanes=536870912,g2(i,s,p!==null?p.baseLanes|a:a,a,l)}else p!==null?(nf(s,p.cachePool),vw(s,p),ms(),s.memoizedState=null):(i!==null&&nf(s,null),Lm(),ms());return Bt(i,s,d,a),s.child}function Dl(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function g2(i,s,a,l,d){var p=Cm();return p=p===null?null:{parent:_t._currentValue,pool:p},s.memoizedState={baseLanes:a,cachePool:p},i!==null&&nf(s,null),Lm(),yw(s),i!==null&&wa(i,s,l,!0),s.childLanes=d,null}function _f(i,s){return s=Sf({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function m2(i,s,a){return mr(s,i.child,null,a),i=_f(s,s.pendingProps),i.flags|=2,bn(s),s.memoizedState=null,i}function W6(i,s,a){var l=s.pendingProps,d=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(ze){if(l.mode==="hidden")return i=_f(s,l),s.lanes=536870912,Dl(null,i);if(zm(s),(i=st)?(i=MA(i,jn),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:ls!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=WT(i),a.return=s,s.child=a,jt=s,st=null)):i=null,i===null)throw cs(s);return s.lanes=536870912,null}return _f(s,l)}var p=i.memoizedState;if(p!==null){var y=p.dehydrated;if(zm(s),d)if(s.flags&256)s.flags&=-257,s=m2(i,s,a);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(St||wa(i,s,a,!1),d=(a&i.childLanes)!==0,St||d){if(l=Ke,l!==null&&(y=aT(l,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,lr(i,y),rn(l,i,y),nv;Rf(),s=m2(i,s,a)}else i=p.treeContext,st=Bn(y.nextSibling),jt=s,ze=!0,us=null,jn=!1,i!==null&&nw(s,i),s=_f(s,l),s.flags|=4096;return s}return i=Ai(i.child,{mode:l.mode,children:l.children}),i.ref=s.ref,s.child=i,i.return=s,i}function bf(i,s){var a=s.ref;if(a===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(i===null||i.ref!==a)&&(s.flags|=4194816)}}function iv(i,s,a,l,d){return dr(s),a=Um(i,s,a,l,void 0,d),l=Bm(),i!==null&&!St?(Vm(i,s,d),ki(i,s,d)):(ze&&l&&ym(s),s.flags|=1,Bt(i,s,a,d),s.child)}function v2(i,s,a,l,d,p){return dr(s),s.updateQueue=null,a=bw(s,l,a,d),_w(i),l=Bm(),i!==null&&!St?(Vm(i,s,p),ki(i,s,p)):(ze&&l&&ym(s),s.flags|=1,Bt(i,s,a,p),s.child)}function y2(i,s,a,l,d){if(dr(s),s.stateNode===null){var p=Sa,y=a.contextType;typeof y=="object"&&y!==null&&(p=Ut(y)),p=new a(l,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ev,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=l,p.state=s.memoizedState,p.refs={},Om(s),y=a.contextType,p.context=typeof y=="object"&&y!==null?Ut(y):Sa,p.state=s.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Wm(s,a,y,l),p.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&ev.enqueueReplaceState(p,p.state,null),Al(s,l,p,d),wl(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),l=!0}else if(i===null){p=s.stateNode;var S=s.memoizedProps,w=yr(a,S);p.props=w;var k=p.context,G=a.contextType;y=Sa,typeof G=="object"&&G!==null&&(y=Ut(G));var Z=a.getDerivedStateFromProps;G=typeof Z=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=s.pendingProps!==S,G||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||k!==y)&&s2(s,p,l,y),ds=!1;var z=s.memoizedState;p.state=z,Al(s,l,p,d),wl(),k=s.memoizedState,S||z!==k||ds?(typeof Z=="function"&&(Wm(s,a,Z,l),k=s.memoizedState),(w=ds||i2(s,a,w,l,z,k,y))?(G||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=l,s.memoizedState=k),p.props=l,p.state=k,p.context=y,l=w):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),l=!1)}else{p=s.stateNode,Rm(i,s),y=s.memoizedProps,G=yr(a,y),p.props=G,Z=s.pendingProps,z=p.context,k=a.contextType,w=Sa,typeof k=="object"&&k!==null&&(w=Ut(k)),S=a.getDerivedStateFromProps,(k=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==Z||z!==w)&&s2(s,p,l,w),ds=!1,z=s.memoizedState,p.state=z,Al(s,l,p,d),wl();var V=s.memoizedState;y!==Z||z!==V||ds||i!==null&&i.dependencies!==null&&ef(i.dependencies)?(typeof S=="function"&&(Wm(s,a,S,l),V=s.memoizedState),(G=ds||i2(s,a,G,l,z,V,w)||i!==null&&i.dependencies!==null&&ef(i.dependencies))?(k||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,V,w),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,V,w)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=1024),s.memoizedProps=l,s.memoizedState=V),p.props=l,p.state=V,p.context=w,l=G):(typeof p.componentDidUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===i.memoizedProps&&z===i.memoizedState||(s.flags|=1024),l=!1)}return p=l,bf(i,s),l=(s.flags&128)!==0,p||l?(p=s.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,i!==null&&l?(s.child=mr(s,i.child,null,d),s.child=mr(s,null,a,d)):Bt(i,s,a,d),s.memoizedState=p.state,i=s.child):i=ki(i,s,d),i}function _2(i,s,a,l){return cr(),s.flags|=256,Bt(i,s,a,l),s.child}var sv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rv(i){return{baseLanes:i,cachePool:lw()}}function av(i,s,a){return i=i!==null?i.childLanes&~a:0,s&&(i|=En),i}function b2(i,s,a){var l=s.pendingProps,d=!1,p=(s.flags&128)!==0,y;if((y=p)||(y=i!==null&&i.memoizedState===null?!1:(vt.current&2)!==0),y&&(d=!0,s.flags&=-129),y=(s.flags&32)!==0,s.flags&=-33,i===null){if(ze){if(d?gs(s):ms(),(i=st)?(i=MA(i,jn),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:ls!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},a=WT(i),a.return=s,s.child=a,jt=s,st=null)):i=null,i===null)throw cs(s);return Pv(i)?s.lanes=32:s.lanes=536870912,null}var S=l.children;return l=l.fallback,d?(ms(),d=s.mode,S=Sf({mode:"hidden",children:S},d),l=ur(l,d,a,null),S.return=s,l.return=s,S.sibling=l,s.child=S,l=s.child,l.memoizedState=rv(a),l.childLanes=av(i,y,a),s.memoizedState=sv,Dl(null,l)):(gs(s),ov(s,S))}var w=i.memoizedState;if(w!==null&&(S=w.dehydrated,S!==null)){if(p)s.flags&256?(gs(s),s.flags&=-257,s=lv(i,s,a)):s.memoizedState!==null?(ms(),s.child=i.child,s.flags|=128,s=null):(ms(),S=l.fallback,d=s.mode,l=Sf({mode:"visible",children:l.children},d),S=ur(S,d,a,null),S.flags|=2,l.return=s,S.return=s,l.sibling=S,s.child=l,mr(s,i.child,null,a),l=s.child,l.memoizedState=rv(a),l.childLanes=av(i,y,a),s.memoizedState=sv,s=Dl(null,l));else if(gs(s),Pv(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var k=y.dgst;y=k,l=Error(r(419)),l.stack="",l.digest=y,_l({value:l,source:null,stack:null}),s=lv(i,s,a)}else if(St||wa(i,s,a,!1),y=(a&i.childLanes)!==0,St||y){if(y=Ke,y!==null&&(l=aT(y,a),l!==0&&l!==w.retryLane))throw w.retryLane=l,lr(i,l),rn(y,i,l),nv;qv(S)||Rf(),s=lv(i,s,a)}else qv(S)?(s.flags|=192,s.child=i.child,s=null):(i=w.treeContext,st=Bn(S.nextSibling),jt=s,ze=!0,us=null,jn=!1,i!==null&&nw(s,i),s=ov(s,l.children),s.flags|=4096);return s}return d?(ms(),S=l.fallback,d=s.mode,w=i.child,k=w.sibling,l=Ai(w,{mode:"hidden",children:l.children}),l.subtreeFlags=w.subtreeFlags&65011712,k!==null?S=Ai(k,S):(S=ur(S,d,a,null),S.flags|=2),S.return=s,l.return=s,l.sibling=S,s.child=l,Dl(null,l),l=s.child,S=i.child.memoizedState,S===null?S=rv(a):(d=S.cachePool,d!==null?(w=_t._currentValue,d=d.parent!==w?{parent:w,pool:w}:d):d=lw(),S={baseLanes:S.baseLanes|a,cachePool:d}),l.memoizedState=S,l.childLanes=av(i,y,a),s.memoizedState=sv,Dl(i.child,l)):(gs(s),a=i.child,i=a.sibling,a=Ai(a,{mode:"visible",children:l.children}),a.return=s,a.sibling=null,i!==null&&(y=s.deletions,y===null?(s.deletions=[i],s.flags|=16):y.push(i)),s.child=a,s.memoizedState=null,a)}function ov(i,s){return s=Sf({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Sf(i,s){return i=yn(22,i,null,s),i.lanes=0,i}function lv(i,s,a){return mr(s,i.child,null,a),i=ov(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function S2(i,s,a){i.lanes|=s;var l=i.alternate;l!==null&&(l.lanes|=s),xm(i.return,s,a)}function uv(i,s,a,l,d,p){var y=i.memoizedState;y===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function E2(i,s,a){var l=s.pendingProps,d=l.revealOrder,p=l.tail;l=l.children;var y=vt.current,S=(y&2)!==0;if(S?(y=y&1|2,s.flags|=128):y&=1,W(vt,y),Bt(i,s,l,a),l=ze?yl:0,!S&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&S2(i,a,s);else if(i.tag===19)S2(i,a,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(d){case"forwards":for(a=s.child,d=null;a!==null;)i=a.alternate,i!==null&&uf(i)===null&&(d=a),a=a.sibling;a=d,a===null?(d=s.child,s.child=null):(d=a.sibling,a.sibling=null),uv(s,!1,d,a,p,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=s.child,s.child=null;d!==null;){if(i=d.alternate,i!==null&&uf(i)===null){s.child=d;break}i=d.sibling,d.sibling=a,a=d,d=i}uv(s,!0,a,null,p,l);break;case"together":uv(s,!1,null,null,void 0,l);break;default:s.memoizedState=null}return s.child}function ki(i,s,a){if(i!==null&&(s.dependencies=i.dependencies),_s|=s.lanes,(a&s.childLanes)===0)if(i!==null){if(wa(i,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,a=Ai(i,i.pendingProps),s.child=a,a.return=s;i.sibling!==null;)i=i.sibling,a=a.sibling=Ai(i,i.pendingProps),a.return=s;a.sibling=null}return s.child}function cv(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&ef(i)))}function eB(i,s,a){switch(s.tag){case 3:je(s,s.stateNode.containerInfo),fs(s,_t,i.memoizedState.cache),cr();break;case 27:case 5:it(s);break;case 4:je(s,s.stateNode.containerInfo);break;case 10:fs(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,zm(s),null;break;case 13:var l=s.memoizedState;if(l!==null)return l.dehydrated!==null?(gs(s),s.flags|=128,null):(a&s.child.childLanes)!==0?b2(i,s,a):(gs(s),i=ki(i,s,a),i!==null?i.sibling:null);gs(s);break;case 19:var d=(i.flags&128)!==0;if(l=(a&s.childLanes)!==0,l||(wa(i,s,a,!1),l=(a&s.childLanes)!==0),d){if(l)return E2(i,s,a);s.flags|=128}if(d=s.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(vt,vt.current),l)break;return null;case 22:return s.lanes=0,p2(i,s,a,s.pendingProps);case 24:fs(s,_t,i.memoizedState.cache)}return ki(i,s,a)}function x2(i,s,a){if(i!==null)if(i.memoizedProps!==s.pendingProps)St=!0;else{if(!cv(i,a)&&(s.flags&128)===0)return St=!1,eB(i,s,a);St=(i.flags&131072)!==0}else St=!1,ze&&(s.flags&1048576)!==0&&tw(s,yl,s.index);switch(s.lanes=0,s.tag){case 16:e:{var l=s.pendingProps;if(i=pr(s.elementType),s.type=i,typeof i=="function")gm(i)?(l=yr(i,l),s.tag=1,s=y2(null,s,i,l,a)):(s.tag=0,s=iv(null,s,i,l,a));else{if(i!=null){var d=i.$$typeof;if(d===K){s.tag=11,s=f2(null,s,i,l,a);break e}else if(d===P){s.tag=14,s=d2(null,s,i,l,a);break e}}throw s=ye(i)||i,Error(r(306,s,""))}}return s;case 0:return iv(i,s,s.type,s.pendingProps,a);case 1:return l=s.type,d=yr(l,s.pendingProps),y2(i,s,l,d,a);case 3:e:{if(je(s,s.stateNode.containerInfo),i===null)throw Error(r(387));l=s.pendingProps;var p=s.memoizedState;d=p.element,Rm(i,s),Al(s,l,null,a);var y=s.memoizedState;if(l=y.cache,fs(s,_t,l),l!==p.cache&&Tm(s,[_t],a,!0),wl(),l=y.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:y.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=_2(i,s,l,a);break e}else if(l!==d){d=Ln(Error(r(424)),s),_l(d),s=_2(i,s,l,a);break e}else for(i=s.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,st=Bn(i.firstChild),jt=s,ze=!0,us=null,jn=!0,a=pw(s,null,l,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(cr(),l===d){s=ki(i,s,a);break e}Bt(i,s,l,a)}s=s.child}return s;case 26:return bf(i,s),i===null?(a=NA(s.type,null,s.pendingProps,null))?s.memoizedState=a:ze||(a=s.type,i=s.pendingProps,l=Uf(ge.current).createElement(a),l[zt]=s,l[Jt]=i,Vt(l,a,i),Ct(l),s.stateNode=l):s.memoizedState=NA(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return it(s),i===null&&ze&&(l=s.stateNode=DA(s.type,s.pendingProps,ge.current),jt=s,jn=!0,d=st,Ts(s.type)?(Hv=d,st=Bn(l.firstChild)):st=d),Bt(i,s,s.pendingProps.children,a),bf(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&ze&&((d=l=st)&&(l=RB(l,s.type,s.pendingProps,jn),l!==null?(s.stateNode=l,jt=s,st=Bn(l.firstChild),jn=!1,d=!0):d=!1),d||cs(s)),it(s),d=s.type,p=s.pendingProps,y=i!==null?i.memoizedProps:null,l=p.children,Bv(d,p)?l=null:y!==null&&Bv(d,y)&&(s.flags|=32),s.memoizedState!==null&&(d=Um(i,s,$6,null,null,a),Gl._currentValue=d),bf(i,s),Bt(i,s,l,a),s.child;case 6:return i===null&&ze&&((i=a=st)&&(a=DB(a,s.pendingProps,jn),a!==null?(s.stateNode=a,jt=s,st=null,i=!0):i=!1),i||cs(s)),null;case 13:return b2(i,s,a);case 4:return je(s,s.stateNode.containerInfo),l=s.pendingProps,i===null?s.child=mr(s,null,l,a):Bt(i,s,l,a),s.child;case 11:return f2(i,s,s.type,s.pendingProps,a);case 7:return Bt(i,s,s.pendingProps,a),s.child;case 8:return Bt(i,s,s.pendingProps.children,a),s.child;case 12:return Bt(i,s,s.pendingProps.children,a),s.child;case 10:return l=s.pendingProps,fs(s,s.type,l.value),Bt(i,s,l.children,a),s.child;case 9:return d=s.type._context,l=s.pendingProps.children,dr(s),d=Ut(d),l=l(d),s.flags|=1,Bt(i,s,l,a),s.child;case 14:return d2(i,s,s.type,s.pendingProps,a);case 15:return h2(i,s,s.type,s.pendingProps,a);case 19:return E2(i,s,a);case 31:return W6(i,s,a);case 22:return p2(i,s,a,s.pendingProps);case 24:return dr(s),l=Ut(_t),i===null?(d=Cm(),d===null&&(d=Ke,p=wm(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),s.memoizedState={parent:l,cache:d},Om(s),fs(s,_t,d)):((i.lanes&a)!==0&&(Rm(i,s),Al(s,null,null,a),wl()),d=i.memoizedState,p=s.memoizedState,d.parent!==l?(d={parent:l,cache:l},s.memoizedState=d,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=d),fs(s,_t,l)):(l=p.cache,fs(s,_t,l),l!==d.cache&&Tm(s,[_t],a,!0))),Bt(i,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Li(i){i.flags|=4}function fv(i,s,a,l,d){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(d&335544128)===d)if(i.stateNode.complete)i.flags|=8192;else if(Z2())i.flags|=8192;else throw gr=rf,Mm}else i.flags&=-16777217}function T2(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!VA(s))if(Z2())i.flags|=8192;else throw gr=rf,Mm}function Ef(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?iT():536870912,i.lanes|=s,Ua|=s)}function kl(i,s){if(!ze)switch(i.tailMode){case"hidden":s=i.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i.tail=null:a.sibling=null;break;case"collapsed":a=i.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:l.sibling=null}}function rt(i){var s=i.alternate!==null&&i.alternate.child===i.child,a=0,l=0;if(s)for(var d=i.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=i,d=d.sibling;else for(d=i.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=i,d=d.sibling;return i.subtreeFlags|=l,i.childLanes=a,s}function tB(i,s,a){var l=s.pendingProps;switch(_m(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(s),null;case 1:return rt(s),null;case 3:return a=s.stateNode,l=null,i!==null&&(l=i.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Oi(_t),Ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(Ta(s)?Li(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Sm())),rt(s),null;case 26:var d=s.type,p=s.memoizedState;return i===null?(Li(s),p!==null?(rt(s),T2(s,p)):(rt(s),fv(s,d,null,l,a))):p?p!==i.memoizedState?(Li(s),rt(s),T2(s,p)):(rt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==l&&Li(s),rt(s),fv(s,d,i,l,a)),null;case 27:if(Ft(s),a=ge.current,d=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return rt(s),null}i=H.current,Ta(s)?iw(s):(i=DA(d,l,a),s.stateNode=i,Li(s))}return rt(s),null;case 5:if(Ft(s),d=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return rt(s),null}if(p=H.current,Ta(s))iw(s);else{var y=Uf(ge.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof l.is=="string"?y.createElement("select",{is:l.is}):y.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?y.createElement(d,{is:l.is}):y.createElement(d)}}p[zt]=s,p[Jt]=l;e:for(y=s.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===s)break e;for(;y.sibling===null;){if(y.return===null||y.return===s)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}s.stateNode=p;e:switch(Vt(p,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Li(s)}}return rt(s),fv(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,a),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==l&&Li(s);else{if(typeof l!="string"&&s.stateNode===null)throw Error(r(166));if(i=ge.current,Ta(s)){if(i=s.stateNode,a=s.memoizedProps,l=null,d=jt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}i[zt]=s,i=!!(i.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||bA(i.nodeValue,a)),i||cs(s,!0)}else i=Uf(i).createTextNode(l),i[zt]=s,s.stateNode=i}return rt(s),null;case 31:if(a=s.memoizedState,i===null||i.memoizedState!==null){if(l=Ta(s),a!==null){if(i===null){if(!l)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[zt]=s}else cr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;rt(s),i=!1}else a=Sm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=a),i=!0;if(!i)return s.flags&256?(bn(s),s):(bn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return rt(s),null;case 13:if(l=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(d=Ta(s),l!==null&&l.dehydrated!==null){if(i===null){if(!d)throw Error(r(318));if(d=s.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[zt]=s}else cr(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;rt(s),d=!1}else d=Sm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=d),d=!0;if(!d)return s.flags&256?(bn(s),s):(bn(s),null)}return bn(s),(s.flags&128)!==0?(s.lanes=a,s):(a=l!==null,i=i!==null&&i.memoizedState!==null,a&&(l=s.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048)),a!==i&&a&&(s.child.flags|=8192),Ef(s,s.updateQueue),rt(s),null);case 4:return Ue(),i===null&&Lv(s.stateNode.containerInfo),rt(s),null;case 10:return Oi(s.type),rt(s),null;case 19:if(j(vt),l=s.memoizedState,l===null)return rt(s),null;if(d=(s.flags&128)!==0,p=l.rendering,p===null)if(d)kl(l,!1);else{if(gt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(p=uf(i),p!==null){for(s.flags|=128,kl(l,!1),i=p.updateQueue,s.updateQueue=i,Ef(s,i),s.subtreeFlags=0,i=a,a=s.child;a!==null;)JT(a,i),a=a.sibling;return W(vt,vt.current&1|2),ze&&Ci(s,l.treeForkCount),s.child}i=i.sibling}l.tail!==null&&pn()>Cf&&(s.flags|=128,d=!0,kl(l,!1),s.lanes=4194304)}else{if(!d)if(i=uf(p),i!==null){if(s.flags|=128,d=!0,i=i.updateQueue,s.updateQueue=i,Ef(s,i),kl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!ze)return rt(s),null}else 2*pn()-l.renderingStartTime>Cf&&a!==536870912&&(s.flags|=128,d=!0,kl(l,!1),s.lanes=4194304);l.isBackwards?(p.sibling=s.child,s.child=p):(i=l.last,i!==null?i.sibling=p:s.child=p,l.last=p)}return l.tail!==null?(i=l.tail,l.rendering=i,l.tail=i.sibling,l.renderingStartTime=pn(),i.sibling=null,a=vt.current,W(vt,d?a&1|2:a&1),ze&&Ci(s,l.treeForkCount),i):(rt(s),null);case 22:case 23:return bn(s),Nm(),l=s.memoizedState!==null,i!==null?i.memoizedState!==null!==l&&(s.flags|=8192):l&&(s.flags|=8192),l?(a&536870912)!==0&&(s.flags&128)===0&&(rt(s),s.subtreeFlags&6&&(s.flags|=8192)):rt(s),a=s.updateQueue,a!==null&&Ef(s,a.retryQueue),a=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==a&&(s.flags|=2048),i!==null&&j(hr),null;case 24:return a=null,i!==null&&(a=i.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),Oi(_t),rt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function nB(i,s){switch(_m(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Oi(_t),Ue(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Ft(s),null;case 31:if(s.memoizedState!==null){if(bn(s),s.alternate===null)throw Error(r(340));cr()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(bn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));cr()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return j(vt),null;case 4:return Ue(),null;case 10:return Oi(s.type),null;case 22:case 23:return bn(s),Nm(),i!==null&&j(hr),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Oi(_t),null;case 25:return null;default:return null}}function w2(i,s){switch(_m(s),s.tag){case 3:Oi(_t),Ue();break;case 26:case 27:case 5:Ft(s);break;case 4:Ue();break;case 31:s.memoizedState!==null&&bn(s);break;case 13:bn(s);break;case 19:j(vt);break;case 10:Oi(s.type);break;case 22:case 23:bn(s),Nm(),i!==null&&j(hr);break;case 24:Oi(_t)}}function Ll(i,s){try{var a=s.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var d=l.next;a=d;do{if((a.tag&i)===i){l=void 0;var p=a.create,y=a.inst;l=p(),y.destroy=l}a=a.next}while(a!==d)}}catch(S){Pe(s,s.return,S)}}function vs(i,s,a){try{var l=s.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&i)===i){var y=l.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,d=s;var w=a,k=S;try{k()}catch(G){Pe(d,w,G)}}}l=l.next}while(l!==p)}}catch(G){Pe(s,s.return,G)}}function A2(i){var s=i.updateQueue;if(s!==null){var a=i.stateNode;try{mw(s,a)}catch(l){Pe(i,i.return,l)}}}function C2(i,s,a){a.props=yr(i.type,i.memoizedProps),a.state=i.memoizedState;try{a.componentWillUnmount()}catch(l){Pe(i,s,l)}}function Nl(i,s){try{var a=i.ref;if(a!==null){switch(i.tag){case 26:case 27:case 5:var l=i.stateNode;break;case 30:l=i.stateNode;break;default:l=i.stateNode}typeof a=="function"?i.refCleanup=a(l):a.current=l}}catch(d){Pe(i,s,d)}}function si(i,s){var a=i.ref,l=i.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(d){Pe(i,s,d)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Pe(i,s,d)}else a.current=null}function M2(i){var s=i.type,a=i.memoizedProps,l=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(d){Pe(i,i.return,d)}}function dv(i,s,a){try{var l=i.stateNode;TB(l,i.type,a,s),l[Jt]=s}catch(d){Pe(i,i.return,d)}}function O2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ts(i.type)||i.tag===4}function hv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||O2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ts(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function pv(i,s,a){var l=i.tag;if(l===5||l===6)i=i.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(i),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=Ti));else if(l!==4&&(l===27&&Ts(i.type)&&(a=i.stateNode,s=null),i=i.child,i!==null))for(pv(i,s,a),i=i.sibling;i!==null;)pv(i,s,a),i=i.sibling}function xf(i,s,a){var l=i.tag;if(l===5||l===6)i=i.stateNode,s?a.insertBefore(i,s):a.appendChild(i);else if(l!==4&&(l===27&&Ts(i.type)&&(a=i.stateNode),i=i.child,i!==null))for(xf(i,s,a),i=i.sibling;i!==null;)xf(i,s,a),i=i.sibling}function R2(i){var s=i.stateNode,a=i.memoizedProps;try{for(var l=i.type,d=s.attributes;d.length;)s.removeAttributeNode(d[0]);Vt(s,l,a),s[zt]=i,s[Jt]=a}catch(p){Pe(i,i.return,p)}}var Ni=!1,Et=!1,gv=!1,D2=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function iB(i,s){if(i=i.containerInfo,jv=Ff,i=HT(i),lm(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{a=(a=i.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var y=0,S=-1,w=-1,k=0,G=0,Z=i,z=null;t:for(;;){for(var V;Z!==a||d!==0&&Z.nodeType!==3||(S=y+d),Z!==p||l!==0&&Z.nodeType!==3||(w=y+l),Z.nodeType===3&&(y+=Z.nodeValue.length),(V=Z.firstChild)!==null;)z=Z,Z=V;for(;;){if(Z===i)break t;if(z===a&&++k===d&&(S=y),z===p&&++G===l&&(w=y),(V=Z.nextSibling)!==null)break;Z=z,z=Z.parentNode}Z=V}a=S===-1||w===-1?null:{start:S,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uv={focusedElem:i,selectionRange:a},Ff=!1,Mt=s;Mt!==null;)if(s=Mt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Mt=i;else for(;Mt!==null;){switch(s=Mt,p=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(a=0;a<i.length;a++)d=i[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&p!==null){i=void 0,a=s,d=p.memoizedProps,p=p.memoizedState,l=a.stateNode;try{var ce=yr(a.type,d);i=l.getSnapshotBeforeUpdate(ce,p),l.__reactInternalSnapshotBeforeUpdate=i}catch(_e){Pe(a,a.return,_e)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,a=i.nodeType,a===9)Iv(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Iv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Mt=i;break}Mt=s.return}}function k2(i,s,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ji(i,a),l&4&&Ll(5,a);break;case 1:if(ji(i,a),l&4)if(i=a.stateNode,s===null)try{i.componentDidMount()}catch(y){Pe(a,a.return,y)}else{var d=yr(a.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(d,s,i.__reactInternalSnapshotBeforeUpdate)}catch(y){Pe(a,a.return,y)}}l&64&&A2(a),l&512&&Nl(a,a.return);break;case 3:if(ji(i,a),l&64&&(i=a.updateQueue,i!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{mw(i,s)}catch(y){Pe(a,a.return,y)}}break;case 27:s===null&&l&4&&R2(a);case 26:case 5:ji(i,a),s===null&&l&4&&M2(a),l&512&&Nl(a,a.return);break;case 12:ji(i,a);break;case 31:ji(i,a),l&4&&z2(i,a);break;case 13:ji(i,a),l&4&&j2(i,a),l&64&&(i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(a=dB.bind(null,a),kB(i,a))));break;case 22:if(l=a.memoizedState!==null||Ni,!l){s=s!==null&&s.memoizedState!==null||Et,d=Ni;var p=Et;Ni=l,(Et=s)&&!p?Ui(i,a,(a.subtreeFlags&8772)!==0):ji(i,a),Ni=d,Et=p}break;case 30:break;default:ji(i,a)}}function L2(i){var s=i.alternate;s!==null&&(i.alternate=null,L2(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&$g(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var lt=null,en=!1;function zi(i,s,a){for(a=a.child;a!==null;)N2(i,s,a),a=a.sibling}function N2(i,s,a){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(sl,a)}catch{}switch(a.tag){case 26:Et||si(a,s),zi(i,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||si(a,s);var l=lt,d=en;Ts(a.type)&&(lt=a.stateNode,en=!1),zi(i,s,a),Hl(a.stateNode),lt=l,en=d;break;case 5:Et||si(a,s);case 6:if(l=lt,d=en,lt=null,zi(i,s,a),lt=l,en=d,lt!==null)if(en)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(p){Pe(a,s,p)}else try{lt.removeChild(a.stateNode)}catch(p){Pe(a,s,p)}break;case 18:lt!==null&&(en?(i=lt,AA(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.stateNode),$a(i)):AA(lt,a.stateNode));break;case 4:l=lt,d=en,lt=a.stateNode.containerInfo,en=!0,zi(i,s,a),lt=l,en=d;break;case 0:case 11:case 14:case 15:vs(2,a,s),Et||vs(4,a,s),zi(i,s,a);break;case 1:Et||(si(a,s),l=a.stateNode,typeof l.componentWillUnmount=="function"&&C2(a,s,l)),zi(i,s,a);break;case 21:zi(i,s,a);break;case 22:Et=(l=Et)||a.memoizedState!==null,zi(i,s,a),Et=l;break;default:zi(i,s,a)}}function z2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{$a(i)}catch(a){Pe(s,s.return,a)}}}function j2(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{$a(i)}catch(a){Pe(s,s.return,a)}}function sB(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new D2),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new D2),s;default:throw Error(r(435,i.tag))}}function Tf(i,s){var a=sB(i);s.forEach(function(l){if(!a.has(l)){a.add(l);var d=hB.bind(null,i,l);l.then(d,d)}})}function tn(i,s){var a=s.deletions;if(a!==null)for(var l=0;l<a.length;l++){var d=a[l],p=i,y=s,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Ts(S.type)){lt=S.stateNode,en=!1;break e}break;case 5:lt=S.stateNode,en=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,en=!0;break e}S=S.return}if(lt===null)throw Error(r(160));N2(p,y,d),lt=null,en=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)U2(s,i),s=s.sibling}var Gn=null;function U2(i,s){var a=i.alternate,l=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:tn(s,i),nn(i),l&4&&(vs(3,i,i.return),Ll(3,i),vs(5,i,i.return));break;case 1:tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),l&64&&Ni&&(i=i.updateQueue,i!==null&&(l=i.callbacks,l!==null&&(a=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var d=Gn;if(tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),l&4){var p=a!==null?a.memoizedState:null;if(l=i.memoizedState,a===null)if(l===null)if(i.stateNode===null){e:{l=i.type,a=i.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":p=d.getElementsByTagName("title")[0],(!p||p[ol]||p[zt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(l),d.head.insertBefore(p,d.querySelector("head > title"))),Vt(p,l,a),p[zt]=i,Ct(p),l=p;break e;case"link":var y=UA("link","href",d).get(l+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(p=y[S],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break t}}p=d.createElement(l),Vt(p,l,a),d.head.appendChild(p);break;case"meta":if(y=UA("meta","content",d).get(l+(a.content||""))){for(S=0;S<y.length;S++)if(p=y[S],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break t}}p=d.createElement(l),Vt(p,l,a),d.head.appendChild(p);break;default:throw Error(r(468,l))}p[zt]=i,Ct(p),l=p}i.stateNode=l}else BA(d,i.type,i.stateNode);else i.stateNode=jA(d,l,i.memoizedProps);else p!==l?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,l===null?BA(d,i.type,i.stateNode):jA(d,l,i.memoizedProps)):l===null&&i.stateNode!==null&&dv(i,i.memoizedProps,a.memoizedProps)}break;case 27:tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),a!==null&&l&4&&dv(i,i.memoizedProps,a.memoizedProps);break;case 5:if(tn(s,i),nn(i),l&512&&(Et||a===null||si(a,a.return)),i.flags&32){d=i.stateNode;try{pa(d,"")}catch(ce){Pe(i,i.return,ce)}}l&4&&i.stateNode!=null&&(d=i.memoizedProps,dv(i,d,a!==null?a.memoizedProps:d)),l&1024&&(gv=!0);break;case 6:if(tn(s,i),nn(i),l&4){if(i.stateNode===null)throw Error(r(162));l=i.memoizedProps,a=i.stateNode;try{a.nodeValue=l}catch(ce){Pe(i,i.return,ce)}}break;case 3:if(If=null,d=Gn,Gn=Bf(s.containerInfo),tn(s,i),Gn=d,nn(i),l&4&&a!==null&&a.memoizedState.isDehydrated)try{$a(s.containerInfo)}catch(ce){Pe(i,i.return,ce)}gv&&(gv=!1,B2(i));break;case 4:l=Gn,Gn=Bf(i.stateNode.containerInfo),tn(s,i),nn(i),Gn=l;break;case 12:tn(s,i),nn(i);break;case 31:tn(s,i),nn(i),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 13:tn(s,i),nn(i),i.child.flags&8192&&i.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Af=pn()),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 22:d=i.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,k=Ni,G=Et;if(Ni=k||d,Et=G||w,tn(s,i),Et=G,Ni=k,nn(i),l&8192)e:for(s=i.stateNode,s._visibility=d?s._visibility&-2:s._visibility|1,d&&(a===null||w||Ni||Et||_r(i)),a=null,s=i;;){if(s.tag===5||s.tag===26){if(a===null){w=a=s;try{if(p=w.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=w.stateNode;var Z=w.memoizedProps.style,z=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ce){Pe(w,w.return,ce)}}}else if(s.tag===6){if(a===null){w=s;try{w.stateNode.nodeValue=d?"":w.memoizedProps}catch(ce){Pe(w,w.return,ce)}}}else if(s.tag===18){if(a===null){w=s;try{var V=w.stateNode;d?CA(V,!0):CA(w.stateNode,!1)}catch(ce){Pe(w,w.return,ce)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}l&4&&(l=i.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Tf(i,a))));break;case 19:tn(s,i),nn(i),l&4&&(l=i.updateQueue,l!==null&&(i.updateQueue=null,Tf(i,l)));break;case 30:break;case 21:break;default:tn(s,i),nn(i)}}function nn(i){var s=i.flags;if(s&2){try{for(var a,l=i.return;l!==null;){if(O2(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var d=a.stateNode,p=hv(i);xf(i,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(pa(y,""),a.flags&=-33);var S=hv(i);xf(i,S,y);break;case 3:case 4:var w=a.stateNode.containerInfo,k=hv(i);pv(i,k,w);break;default:throw Error(r(161))}}catch(G){Pe(i,i.return,G)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function B2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;B2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function ji(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)k2(i,s.alternate,s),s=s.sibling}function _r(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:vs(4,s,s.return),_r(s);break;case 1:si(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&C2(s,s.return,a),_r(s);break;case 27:Hl(s.stateNode);case 26:case 5:si(s,s.return),_r(s);break;case 22:s.memoizedState===null&&_r(s);break;case 30:_r(s);break;default:_r(s)}i=i.sibling}}function Ui(i,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var l=s.alternate,d=i,p=s,y=p.flags;switch(p.tag){case 0:case 11:case 15:Ui(d,p,a),Ll(4,p);break;case 1:if(Ui(d,p,a),l=p,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(k){Pe(l,l.return,k)}if(l=p,d=l.updateQueue,d!==null){var S=l.stateNode;try{var w=d.shared.hiddenCallbacks;if(w!==null)for(d.shared.hiddenCallbacks=null,d=0;d<w.length;d++)gw(w[d],S)}catch(k){Pe(l,l.return,k)}}a&&y&64&&A2(p),Nl(p,p.return);break;case 27:R2(p);case 26:case 5:Ui(d,p,a),a&&l===null&&y&4&&M2(p),Nl(p,p.return);break;case 12:Ui(d,p,a);break;case 31:Ui(d,p,a),a&&y&4&&z2(d,p);break;case 13:Ui(d,p,a),a&&y&4&&j2(d,p);break;case 22:p.memoizedState===null&&Ui(d,p,a),Nl(p,p.return);break;case 30:break;default:Ui(d,p,a)}s=s.sibling}}function mv(i,s){var a=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==a&&(i!=null&&i.refCount++,a!=null&&bl(a))}function vv(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&bl(i))}function Yn(i,s,a,l){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)V2(i,s,a,l),s=s.sibling}function V2(i,s,a,l){var d=s.flags;switch(s.tag){case 0:case 11:case 15:Yn(i,s,a,l),d&2048&&Ll(9,s);break;case 1:Yn(i,s,a,l);break;case 3:Yn(i,s,a,l),d&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&bl(i)));break;case 12:if(d&2048){Yn(i,s,a,l),i=s.stateNode;try{var p=s.memoizedProps,y=p.id,S=p.onPostCommit;typeof S=="function"&&S(y,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(w){Pe(s,s.return,w)}}else Yn(i,s,a,l);break;case 31:Yn(i,s,a,l);break;case 13:Yn(i,s,a,l);break;case 23:break;case 22:p=s.stateNode,y=s.alternate,s.memoizedState!==null?p._visibility&2?Yn(i,s,a,l):zl(i,s):p._visibility&2?Yn(i,s,a,l):(p._visibility|=2,Na(i,s,a,l,(s.subtreeFlags&10256)!==0||!1)),d&2048&&mv(y,s);break;case 24:Yn(i,s,a,l),d&2048&&vv(s.alternate,s);break;default:Yn(i,s,a,l)}}function Na(i,s,a,l,d){for(d=d&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=i,y=s,S=a,w=l,k=y.flags;switch(y.tag){case 0:case 11:case 15:Na(p,y,S,w,d),Ll(8,y);break;case 23:break;case 22:var G=y.stateNode;y.memoizedState!==null?G._visibility&2?Na(p,y,S,w,d):zl(p,y):(G._visibility|=2,Na(p,y,S,w,d)),d&&k&2048&&mv(y.alternate,y);break;case 24:Na(p,y,S,w,d),d&&k&2048&&vv(y.alternate,y);break;default:Na(p,y,S,w,d)}s=s.sibling}}function zl(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=i,l=s,d=l.flags;switch(l.tag){case 22:zl(a,l),d&2048&&mv(l.alternate,l);break;case 24:zl(a,l),d&2048&&vv(l.alternate,l);break;default:zl(a,l)}s=s.sibling}}var jl=8192;function za(i,s,a){if(i.subtreeFlags&jl)for(i=i.child;i!==null;)I2(i,s,a),i=i.sibling}function I2(i,s,a){switch(i.tag){case 26:za(i,s,a),i.flags&jl&&i.memoizedState!==null&&FB(a,Gn,i.memoizedState,i.memoizedProps);break;case 5:za(i,s,a);break;case 3:case 4:var l=Gn;Gn=Bf(i.stateNode.containerInfo),za(i,s,a),Gn=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=jl,jl=16777216,za(i,s,a),jl=l):za(i,s,a));break;default:za(i,s,a)}}function q2(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Ul(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];Mt=l,H2(l,i)}q2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)P2(i),i=i.sibling}function P2(i){switch(i.tag){case 0:case 11:case 15:Ul(i),i.flags&2048&&vs(9,i,i.return);break;case 3:Ul(i);break;case 12:Ul(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,wf(i)):Ul(i);break;default:Ul(i)}}function wf(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var l=s[a];Mt=l,H2(l,i)}q2(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:vs(8,s,s.return),wf(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,wf(s));break;default:wf(s)}i=i.sibling}}function H2(i,s){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:vs(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:bl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Mt=l;else e:for(a=i;Mt!==null;){l=Mt;var d=l.sibling,p=l.return;if(L2(l),l===a){Mt=null;break e}if(d!==null){d.return=p,Mt=d;break e}Mt=p}}}var rB={getCacheForType:function(i){var s=Ut(_t),a=s.data.get(i);return a===void 0&&(a=i(),s.data.set(i,a)),a},cacheSignal:function(){return Ut(_t).controller.signal}},aB=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ke=null,De=null,Le=0,qe=0,Sn=null,ys=!1,ja=!1,yv=!1,Bi=0,gt=0,_s=0,br=0,_v=0,En=0,Ua=0,Bl=null,sn=null,bv=!1,Af=0,F2=0,Cf=1/0,Mf=null,bs=null,Tt=0,Ss=null,Ba=null,Vi=0,Sv=0,Ev=null,$2=null,Vl=0,xv=null;function xn(){return(Ie&2)!==0&&Le!==0?Le&-Le:A.T!==null?Ov():oT()}function G2(){if(En===0)if((Le&536870912)===0||ze){var i=zc;zc<<=1,(zc&3932160)===0&&(zc=262144),En=i}else En=536870912;return i=_n.current,i!==null&&(i.flags|=32),En}function rn(i,s,a){(i===Ke&&(qe===2||qe===9)||i.cancelPendingCommit!==null)&&(Va(i,0),Es(i,Le,En,!1)),al(i,a),((Ie&2)===0||i!==Ke)&&(i===Ke&&((Ie&2)===0&&(br|=a),gt===4&&Es(i,Le,En,!1)),ri(i))}function Y2(i,s,a){if((Ie&6)!==0)throw Error(r(327));var l=!a&&(s&127)===0&&(s&i.expiredLanes)===0||rl(i,s),d=l?uB(i,s):wv(i,s,!0),p=l;do{if(d===0){ja&&!l&&Es(i,s,0,!1);break}else{if(a=i.current.alternate,p&&!oB(a)){d=wv(i,s,!1),p=!1;continue}if(d===2){if(p=s,i.errorRecoveryDisabledLanes&p)var y=0;else y=i.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){s=y;e:{var S=i;d=Bl;var w=S.current.memoizedState.isDehydrated;if(w&&(Va(S,y).flags|=256),y=wv(S,y,!1),y!==2){if(yv&&!w){S.errorRecoveryDisabledLanes|=p,br|=p,d=4;break e}p=sn,sn=d,p!==null&&(sn===null?sn=p:sn.push.apply(sn,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){Va(i,0),Es(i,s,0,!0);break}e:{switch(l=i,p=d,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Es(l,s,En,!ys);break e;case 2:sn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(d=Af+300-pn(),10<d)){if(Es(l,s,En,!ys),Uc(l,0,!0)!==0)break e;Vi=s,l.timeoutHandle=TA(X2.bind(null,l,a,sn,Mf,bv,s,En,br,Ua,ys,p,"Throttled",-0,0),d);break e}X2(l,a,sn,Mf,bv,s,En,br,Ua,ys,p,null,-0,0)}}break}while(!0);ri(i)}function X2(i,s,a,l,d,p,y,S,w,k,G,Z,z,V){if(i.timeoutHandle=-1,Z=s.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ti},I2(s,p,Z);var ce=(p&62914560)===p?Af-pn():(p&4194048)===p?F2-pn():0;if(ce=$B(Z,ce),ce!==null){Vi=p,i.cancelPendingCommit=ce(nA.bind(null,i,s,p,a,l,d,y,S,w,G,Z,null,z,V)),Es(i,p,y,!k);return}}nA(i,s,p,a,l,d,y,S,w)}function oB(i){for(var s=i;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var d=a[l],p=d.getSnapshot;d=d.value;try{if(!vn(p(),d))return!1}catch{return!1}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Es(i,s,a,l){s&=~_v,s&=~br,i.suspendedLanes|=s,i.pingedLanes&=~s,l&&(i.warmLanes|=s),l=i.expirationTimes;for(var d=s;0<d;){var p=31-mn(d),y=1<<p;l[p]=-1,d&=~y}a!==0&&sT(i,a,s)}function Of(){return(Ie&6)===0?(Il(0),!1):!0}function Tv(){if(De!==null){if(qe===0)var i=De.return;else i=De,Mi=fr=null,Im(i),Oa=null,El=0,i=De;for(;i!==null;)w2(i.alternate,i),i=i.return;De=null}}function Va(i,s){var a=i.timeoutHandle;a!==-1&&(i.timeoutHandle=-1,CB(a)),a=i.cancelPendingCommit,a!==null&&(i.cancelPendingCommit=null,a()),Vi=0,Tv(),Ke=i,De=a=Ai(i.current,null),Le=s,qe=0,Sn=null,ys=!1,ja=rl(i,s),yv=!1,Ua=En=_v=br=_s=gt=0,sn=Bl=null,bv=!1,(s&8)!==0&&(s|=s&32);var l=i.entangledLanes;if(l!==0)for(i=i.entanglements,l&=s;0<l;){var d=31-mn(l),p=1<<d;s|=i[d],l&=~p}return Bi=s,Kc(),a}function K2(i,s){Te=null,A.H=Rl,s===Ma||s===sf?(s=fw(),qe=3):s===Mm?(s=fw(),qe=4):qe=s===nv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Sn=s,De===null&&(gt=1,yf(i,Ln(s,i.current)))}function Z2(){var i=_n.current;return i===null?!0:(Le&4194048)===Le?Un===null:(Le&62914560)===Le||(Le&536870912)!==0?i===Un:!1}function Q2(){var i=A.H;return A.H=Rl,i===null?Rl:i}function J2(){var i=A.A;return A.A=rB,i}function Rf(){gt=4,ys||(Le&4194048)!==Le&&_n.current!==null||(ja=!0),(_s&134217727)===0&&(br&134217727)===0||Ke===null||Es(Ke,Le,En,!1)}function wv(i,s,a){var l=Ie;Ie|=2;var d=Q2(),p=J2();(Ke!==i||Le!==s)&&(Mf=null,Va(i,s)),s=!1;var y=gt;e:do try{if(qe!==0&&De!==null){var S=De,w=Sn;switch(qe){case 8:Tv(),y=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(s=!0);var k=qe;if(qe=0,Sn=null,Ia(i,S,w,k),a&&ja){y=0;break e}break;default:k=qe,qe=0,Sn=null,Ia(i,S,w,k)}}lB(),y=gt;break}catch(G){K2(i,G)}while(!0);return s&&i.shellSuspendCounter++,Mi=fr=null,Ie=l,A.H=d,A.A=p,De===null&&(Ke=null,Le=0,Kc()),y}function lB(){for(;De!==null;)W2(De)}function uB(i,s){var a=Ie;Ie|=2;var l=Q2(),d=J2();Ke!==i||Le!==s?(Mf=null,Cf=pn()+500,Va(i,s)):ja=rl(i,s);e:do try{if(qe!==0&&De!==null){s=De;var p=Sn;t:switch(qe){case 1:qe=0,Sn=null,Ia(i,s,p,1);break;case 2:case 9:if(uw(p)){qe=0,Sn=null,eA(s);break}s=function(){qe!==2&&qe!==9||Ke!==i||(qe=7),ri(i)},p.then(s,s);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:uw(p)?(qe=0,Sn=null,eA(s)):(qe=0,Sn=null,Ia(i,s,p,7));break;case 5:var y=null;switch(De.tag){case 26:y=De.memoizedState;case 5:case 27:var S=De;if(y?VA(y):S.stateNode.complete){qe=0,Sn=null;var w=S.sibling;if(w!==null)De=w;else{var k=S.return;k!==null?(De=k,Df(k)):De=null}break t}}qe=0,Sn=null,Ia(i,s,p,5);break;case 6:qe=0,Sn=null,Ia(i,s,p,6);break;case 8:Tv(),gt=6;break e;default:throw Error(r(462))}}cB();break}catch(G){K2(i,G)}while(!0);return Mi=fr=null,A.H=l,A.A=d,Ie=a,De!==null?0:(Ke=null,Le=0,Kc(),gt)}function cB(){for(;De!==null&&!kc();)W2(De)}function W2(i){var s=x2(i.alternate,i,Bi);i.memoizedProps=i.pendingProps,s===null?Df(i):De=s}function eA(i){var s=i,a=s.alternate;switch(s.tag){case 15:case 0:s=v2(a,s,s.pendingProps,s.type,void 0,Le);break;case 11:s=v2(a,s,s.pendingProps,s.type.render,s.ref,Le);break;case 5:Im(s);default:w2(a,s),s=De=JT(s,Bi),s=x2(a,s,Bi)}i.memoizedProps=i.pendingProps,s===null?Df(i):De=s}function Ia(i,s,a,l){Mi=fr=null,Im(s),Oa=null,El=0;var d=s.return;try{if(J6(i,d,s,a,Le)){gt=1,yf(i,Ln(a,i.current)),De=null;return}}catch(p){if(d!==null)throw De=d,p;gt=1,yf(i,Ln(a,i.current)),De=null;return}s.flags&32768?(ze||l===1?i=!0:ja||(Le&536870912)!==0?i=!1:(ys=i=!0,(l===2||l===9||l===3||l===6)&&(l=_n.current,l!==null&&l.tag===13&&(l.flags|=16384))),tA(s,i)):Df(s)}function Df(i){var s=i;do{if((s.flags&32768)!==0){tA(s,ys);return}i=s.return;var a=tB(s.alternate,s,Bi);if(a!==null){De=a;return}if(s=s.sibling,s!==null){De=s;return}De=s=i}while(s!==null);gt===0&&(gt=5)}function tA(i,s){do{var a=nB(i.alternate,i);if(a!==null){a.flags&=32767,De=a;return}if(a=i.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(i=i.sibling,i!==null)){De=i;return}De=i=a}while(i!==null);gt=6,De=null}function nA(i,s,a,l,d,p,y,S,w){i.cancelPendingCommit=null;do kf();while(Tt!==0);if((Ie&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(p=s.lanes|s.childLanes,p|=hm,HU(i,a,p,y,S,w),i===Ke&&(De=Ke=null,Le=0),Ba=s,Ss=i,Vi=a,Sv=p,Ev=d,$2=l,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,pB(Lc,function(){return oA(),null})):(i.callbackNode=null,i.callbackPriority=0),l=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,d=N.p,N.p=2,y=Ie,Ie|=4;try{iB(i,s,a)}finally{Ie=y,N.p=d,A.T=l}}Tt=1,iA(),sA(),rA()}}function iA(){if(Tt===1){Tt=0;var i=Ss,s=Ba,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=N.p;N.p=2;var d=Ie;Ie|=4;try{U2(s,i);var p=Uv,y=HT(i.containerInfo),S=p.focusedElem,w=p.selectionRange;if(y!==S&&S&&S.ownerDocument&&PT(S.ownerDocument.documentElement,S)){if(w!==null&&lm(S)){var k=w.start,G=w.end;if(G===void 0&&(G=k),"selectionStart"in S)S.selectionStart=k,S.selectionEnd=Math.min(G,S.value.length);else{var Z=S.ownerDocument||document,z=Z&&Z.defaultView||window;if(z.getSelection){var V=z.getSelection(),ce=S.textContent.length,_e=Math.min(w.start,ce),Ge=w.end===void 0?_e:Math.min(w.end,ce);!V.extend&&_e>Ge&&(y=Ge,Ge=_e,_e=y);var O=qT(S,_e),C=qT(S,Ge);if(O&&C&&(V.rangeCount!==1||V.anchorNode!==O.node||V.anchorOffset!==O.offset||V.focusNode!==C.node||V.focusOffset!==C.offset)){var D=Z.createRange();D.setStart(O.node,O.offset),V.removeAllRanges(),_e>Ge?(V.addRange(D),V.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),V.addRange(D))}}}}for(Z=[],V=S;V=V.parentNode;)V.nodeType===1&&Z.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var X=Z[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ff=!!jv,Uv=jv=null}finally{Ie=d,N.p=l,A.T=a}}i.current=s,Tt=2}}function sA(){if(Tt===2){Tt=0;var i=Ss,s=Ba,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=N.p;N.p=2;var d=Ie;Ie|=4;try{k2(i,s.alternate,s)}finally{Ie=d,N.p=l,A.T=a}}Tt=3}}function rA(){if(Tt===4||Tt===3){Tt=0,il();var i=Ss,s=Ba,a=Vi,l=$2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Tt=5:(Tt=0,Ba=Ss=null,aA(i,i.pendingLanes));var d=i.pendingLanes;if(d===0&&(bs=null),Hg(a),s=s.stateNode,gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(sl,s,void 0,(s.current.flags&128)===128)}catch{}if(l!==null){s=A.T,d=N.p,N.p=2,A.T=null;try{for(var p=i.onRecoverableError,y=0;y<l.length;y++){var S=l[y];p(S.value,{componentStack:S.stack})}}finally{A.T=s,N.p=d}}(Vi&3)!==0&&kf(),ri(i),d=i.pendingLanes,(a&261930)!==0&&(d&42)!==0?i===xv?Vl++:(Vl=0,xv=i):Vl=0,Il(0)}}function aA(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,bl(s)))}function kf(){return iA(),sA(),rA(),oA()}function oA(){if(Tt!==5)return!1;var i=Ss,s=Sv;Sv=0;var a=Hg(Vi),l=A.T,d=N.p;try{N.p=32>a?32:a,A.T=null,a=Ev,Ev=null;var p=Ss,y=Vi;if(Tt=0,Ba=Ss=null,Vi=0,(Ie&6)!==0)throw Error(r(331));var S=Ie;if(Ie|=4,P2(p.current),V2(p,p.current,y,a),Ie=S,Il(0,!1),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(sl,p)}catch{}return!0}finally{N.p=d,A.T=l,aA(i,s)}}function lA(i,s,a){s=Ln(a,s),s=tv(i.stateNode,s,2),i=ps(i,s,2),i!==null&&(al(i,2),ri(i))}function Pe(i,s,a){if(i.tag===3)lA(i,i,a);else for(;s!==null;){if(s.tag===3){lA(s,i,a);break}else if(s.tag===1){var l=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(bs===null||!bs.has(l))){i=Ln(a,i),a=u2(2),l=ps(s,a,2),l!==null&&(c2(a,l,s,i),al(l,2),ri(l));break}}s=s.return}}function Av(i,s,a){var l=i.pingCache;if(l===null){l=i.pingCache=new aB;var d=new Set;l.set(s,d)}else d=l.get(s),d===void 0&&(d=new Set,l.set(s,d));d.has(a)||(yv=!0,d.add(a),i=fB.bind(null,i,s,a),s.then(i,i))}function fB(i,s,a){var l=i.pingCache;l!==null&&l.delete(s),i.pingedLanes|=i.suspendedLanes&a,i.warmLanes&=~a,Ke===i&&(Le&a)===a&&(gt===4||gt===3&&(Le&62914560)===Le&&300>pn()-Af?(Ie&2)===0&&Va(i,0):_v|=a,Ua===Le&&(Ua=0)),ri(i)}function uA(i,s){s===0&&(s=iT()),i=lr(i,s),i!==null&&(al(i,s),ri(i))}function dB(i){var s=i.memoizedState,a=0;s!==null&&(a=s.retryLane),uA(i,a)}function hB(i,s){var a=0;switch(i.tag){case 31:case 13:var l=i.stateNode,d=i.memoizedState;d!==null&&(a=d.retryLane);break;case 19:l=i.stateNode;break;case 22:l=i.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(s),uA(i,a)}function pB(i,s){return aa(i,s)}var Lf=null,qa=null,Cv=!1,Nf=!1,Mv=!1,xs=0;function ri(i){i!==qa&&i.next===null&&(qa===null?Lf=qa=i:qa=qa.next=i),Nf=!0,Cv||(Cv=!0,mB())}function Il(i,s){if(!Mv&&Nf){Mv=!0;do for(var a=!1,l=Lf;l!==null;){if(i!==0){var d=l.pendingLanes;if(d===0)var p=0;else{var y=l.suspendedLanes,S=l.pingedLanes;p=(1<<31-mn(42|i)+1)-1,p&=d&~(y&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,hA(l,p))}else p=Le,p=Uc(l,l===Ke?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||rl(l,p)||(a=!0,hA(l,p));l=l.next}while(a);Mv=!1}}function gB(){cA()}function cA(){Nf=Cv=!1;var i=0;xs!==0&&AB()&&(i=xs);for(var s=pn(),a=null,l=Lf;l!==null;){var d=l.next,p=fA(l,s);p===0?(l.next=null,a===null?Lf=d:a.next=d,d===null&&(qa=a)):(a=l,(i!==0||(p&3)!==0)&&(Nf=!0)),l=d}Tt!==0&&Tt!==5||Il(i),xs!==0&&(xs=0)}function fA(i,s){for(var a=i.suspendedLanes,l=i.pingedLanes,d=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var y=31-mn(p),S=1<<y,w=d[y];w===-1?((S&a)===0||(S&l)!==0)&&(d[y]=PU(S,s)):w<=s&&(i.expiredLanes|=S),p&=~S}if(s=Ke,a=Le,a=Uc(i,i===s?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),l=i.callbackNode,a===0||i===s&&(qe===2||qe===9)||i.cancelPendingCommit!==null)return l!==null&&l!==null&&oa(l),i.callbackNode=null,i.callbackPriority=0;if((a&3)===0||rl(i,a)){if(s=a&-a,s===i.callbackPriority)return s;switch(l!==null&&oa(l),Hg(a)){case 2:case 8:a=tT;break;case 32:a=Lc;break;case 268435456:a=nT;break;default:a=Lc}return l=dA.bind(null,i),a=aa(a,l),i.callbackPriority=s,i.callbackNode=a,s}return l!==null&&l!==null&&oa(l),i.callbackPriority=2,i.callbackNode=null,2}function dA(i,s){if(Tt!==0&&Tt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var a=i.callbackNode;if(kf()&&i.callbackNode!==a)return null;var l=Le;return l=Uc(i,i===Ke?l:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),l===0?null:(Y2(i,l,s),fA(i,pn()),i.callbackNode!=null&&i.callbackNode===a?dA.bind(null,i):null)}function hA(i,s){if(kf())return null;Y2(i,s,!0)}function mB(){MB(function(){(Ie&6)!==0?aa(eT,gB):cA()})}function Ov(){if(xs===0){var i=Aa;i===0&&(i=Nc,Nc<<=1,(Nc&261888)===0&&(Nc=256)),xs=i}return xs}function pA(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:qc(""+i)}function gA(i,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,i.id&&a.setAttribute("form",i.id),s.parentNode.insertBefore(a,s),i=new FormData(i),a.parentNode.removeChild(a),i}function vB(i,s,a,l,d){if(s==="submit"&&a&&a.stateNode===d){var p=pA((d[Jt]||null).action),y=l.submitter;y&&(s=(s=y[Jt]||null)?pA(s.formAction):y.getAttribute("formAction"),s!==null&&(p=s,y=null));var S=new $c("action","action",null,l,d);i.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xs!==0){var w=y?gA(d,y):new FormData(d);Km(a,{pending:!0,data:w,method:d.method,action:p},null,w)}}else typeof p=="function"&&(S.preventDefault(),w=y?gA(d,y):new FormData(d),Km(a,{pending:!0,data:w,method:d.method,action:p},p,w))},currentTarget:d}]})}}for(var Rv=0;Rv<dm.length;Rv++){var Dv=dm[Rv],yB=Dv.toLowerCase(),_B=Dv[0].toUpperCase()+Dv.slice(1);$n(yB,"on"+_B)}$n(GT,"onAnimationEnd"),$n(YT,"onAnimationIteration"),$n(XT,"onAnimationStart"),$n("dblclick","onDoubleClick"),$n("focusin","onFocus"),$n("focusout","onBlur"),$n(z6,"onTransitionRun"),$n(j6,"onTransitionStart"),$n(U6,"onTransitionCancel"),$n(KT,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),bB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function mA(i,s){s=(s&4)!==0;for(var a=0;a<i.length;a++){var l=i[a],d=l.event;l=l.listeners;e:{var p=void 0;if(s)for(var y=l.length-1;0<=y;y--){var S=l[y],w=S.instance,k=S.currentTarget;if(S=S.listener,w!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=k;try{p(d)}catch(G){Xc(G)}d.currentTarget=null,p=w}else for(y=0;y<l.length;y++){if(S=l[y],w=S.instance,k=S.currentTarget,S=S.listener,w!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=k;try{p(d)}catch(G){Xc(G)}d.currentTarget=null,p=w}}}}function ke(i,s){var a=s[Fg];a===void 0&&(a=s[Fg]=new Set);var l=i+"__bubble";a.has(l)||(vA(s,i,2,!1),a.add(l))}function kv(i,s,a){var l=0;s&&(l|=4),vA(a,i,l,s)}var zf="_reactListening"+Math.random().toString(36).slice(2);function Lv(i){if(!i[zf]){i[zf]=!0,cT.forEach(function(a){a!=="selectionchange"&&(bB.has(a)||kv(a,!1,i),kv(a,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[zf]||(s[zf]=!0,kv("selectionchange",!1,s))}}function vA(i,s,a,l){switch(GA(s)){case 2:var d=XB;break;case 8:d=KB;break;default:d=Xv}a=d.bind(null,s,a,i),d=void 0,!Wg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(d=!0),l?d!==void 0?i.addEventListener(s,a,{capture:!0,passive:d}):i.addEventListener(s,a,!0):d!==void 0?i.addEventListener(s,a,{passive:d}):i.addEventListener(s,a,!1)}function Nv(i,s,a,l,d){var p=l;if((s&1)===0&&(s&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var S=l.stateNode.containerInfo;if(S===d)break;if(y===4)for(y=l.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;S!==null;){if(y=ua(S),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){l=p=y;continue e}S=S.parentNode}}l=l.return}ET(function(){var k=p,G=Qg(a),Z=[];e:{var z=ZT.get(i);if(z!==void 0){var V=$c,ce=i;switch(i){case"keypress":if(Hc(a)===0)break e;case"keydown":case"keyup":V=h6;break;case"focusin":ce="focus",V=im;break;case"focusout":ce="blur",V=im;break;case"beforeblur":case"afterblur":V=im;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=wT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=t6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=m6;break;case GT:case YT:case XT:V=s6;break;case KT:V=y6;break;case"scroll":case"scrollend":V=WU;break;case"wheel":V=b6;break;case"copy":case"cut":case"paste":V=a6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=CT;break;case"toggle":case"beforetoggle":V=E6}var _e=(s&4)!==0,Ge=!_e&&(i==="scroll"||i==="scrollend"),O=_e?z!==null?z+"Capture":null:z;_e=[];for(var C=k,D;C!==null;){var X=C;if(D=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||D===null||O===null||(X=ul(C,O),X!=null&&_e.push(Pl(C,X,D))),Ge)break;C=C.return}0<_e.length&&(z=new V(z,ce,null,a,G),Z.push({event:z,listeners:_e}))}}if((s&7)===0){e:{if(z=i==="mouseover"||i==="pointerover",V=i==="mouseout"||i==="pointerout",z&&a!==Zg&&(ce=a.relatedTarget||a.fromElement)&&(ua(ce)||ce[la]))break e;if((V||z)&&(z=G.window===G?G:(z=G.ownerDocument)?z.defaultView||z.parentWindow:window,V?(ce=a.relatedTarget||a.toElement,V=k,ce=ce?ua(ce):null,ce!==null&&(Ge=u(ce),_e=ce.tag,ce!==Ge||_e!==5&&_e!==27&&_e!==6)&&(ce=null)):(V=null,ce=k),V!==ce)){if(_e=wT,X="onMouseLeave",O="onMouseEnter",C="mouse",(i==="pointerout"||i==="pointerover")&&(_e=CT,X="onPointerLeave",O="onPointerEnter",C="pointer"),Ge=V==null?z:ll(V),D=ce==null?z:ll(ce),z=new _e(X,C+"leave",V,a,G),z.target=Ge,z.relatedTarget=D,X=null,ua(G)===k&&(_e=new _e(O,C+"enter",ce,a,G),_e.target=D,_e.relatedTarget=Ge,X=_e),Ge=X,V&&ce)t:{for(_e=SB,O=V,C=ce,D=0,X=O;X;X=_e(X))D++;X=0;for(var me=C;me;me=_e(me))X++;for(;0<D-X;)O=_e(O),D--;for(;0<X-D;)C=_e(C),X--;for(;D--;){if(O===C||C!==null&&O===C.alternate){_e=O;break t}O=_e(O),C=_e(C)}_e=null}else _e=null;V!==null&&yA(Z,z,V,_e,!1),ce!==null&&Ge!==null&&yA(Z,Ge,ce,_e,!0)}}e:{if(z=k?ll(k):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var Be=zT;else if(LT(z))if(jT)Be=k6;else{Be=R6;var de=O6}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?k&&Kg(k.elementType)&&(Be=zT):Be=D6;if(Be&&(Be=Be(i,k))){NT(Z,Be,a,G);break e}de&&de(i,z,k),i==="focusout"&&k&&z.type==="number"&&k.memoizedProps.value!=null&&Xg(z,"number",z.value)}switch(de=k?ll(k):window,i){case"focusin":(LT(de)||de.contentEditable==="true")&&(ya=de,um=k,vl=null);break;case"focusout":vl=um=ya=null;break;case"mousedown":cm=!0;break;case"contextmenu":case"mouseup":case"dragend":cm=!1,FT(Z,a,G);break;case"selectionchange":if(N6)break;case"keydown":case"keyup":FT(Z,a,G)}var Ae;if(rm)e:{switch(i){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else va?DT(i,a)&&(Ne="onCompositionEnd"):i==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(MT&&a.locale!=="ko"&&(va||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&va&&(Ae=xT()):(os=G,em="value"in os?os.value:os.textContent,va=!0)),de=jf(k,Ne),0<de.length&&(Ne=new AT(Ne,i,null,a,G),Z.push({event:Ne,listeners:de}),Ae?Ne.data=Ae:(Ae=kT(a),Ae!==null&&(Ne.data=Ae)))),(Ae=T6?w6(i,a):A6(i,a))&&(Ne=jf(k,"onBeforeInput"),0<Ne.length&&(de=new AT("onBeforeInput","beforeinput",null,a,G),Z.push({event:de,listeners:Ne}),de.data=Ae)),vB(Z,i,k,a,G)}mA(Z,s)})}function Pl(i,s,a){return{instance:i,listener:s,currentTarget:a}}function jf(i,s){for(var a=s+"Capture",l=[];i!==null;){var d=i,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ul(i,a),d!=null&&l.unshift(Pl(i,d,p)),d=ul(i,s),d!=null&&l.push(Pl(i,d,p))),i.tag===3)return l;i=i.return}return[]}function SB(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function yA(i,s,a,l,d){for(var p=s._reactName,y=[];a!==null&&a!==l;){var S=a,w=S.alternate,k=S.stateNode;if(S=S.tag,w!==null&&w===l)break;S!==5&&S!==26&&S!==27||k===null||(w=k,d?(k=ul(a,p),k!=null&&y.unshift(Pl(a,k,w))):d||(k=ul(a,p),k!=null&&y.push(Pl(a,k,w)))),a=a.return}y.length!==0&&i.push({event:s,listeners:y})}var EB=/\r\n?/g,xB=/\u0000|\uFFFD/g;function _A(i){return(typeof i=="string"?i:""+i).replace(EB,`
|
|
32
|
-
`).replace(xB,"")}function bA(i,s){return s=_A(s),_A(i)===s}function $e(i,s,a,l,d,p){switch(a){case"children":typeof l=="string"?s==="body"||s==="textarea"&&l===""||pa(i,l):(typeof l=="number"||typeof l=="bigint")&&s!=="body"&&pa(i,""+l);break;case"className":Vc(i,"class",l);break;case"tabIndex":Vc(i,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vc(i,a,l);break;case"style":bT(i,l,p);break;case"data":if(s!=="object"){Vc(i,"data",l);break}case"src":case"href":if(l===""&&(s!=="a"||a!=="href")){i.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){i.removeAttribute(a);break}l=qc(""+l),i.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){i.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(s!=="input"&&$e(i,s,"name",d.name,d,null),$e(i,s,"formEncType",d.formEncType,d,null),$e(i,s,"formMethod",d.formMethod,d,null),$e(i,s,"formTarget",d.formTarget,d,null)):($e(i,s,"encType",d.encType,d,null),$e(i,s,"method",d.method,d,null),$e(i,s,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){i.removeAttribute(a);break}l=qc(""+l),i.setAttribute(a,l);break;case"onClick":l!=null&&(i.onclick=Ti);break;case"onScroll":l!=null&&ke("scroll",i);break;case"onScrollEnd":l!=null&&ke("scrollend",i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(r(60));i.innerHTML=a}}break;case"multiple":i.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":i.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){i.removeAttribute("xlink:href");break}a=qc(""+l),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,""+l):i.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,""):i.removeAttribute(a);break;case"capture":case"download":l===!0?i.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?i.setAttribute(a,l):i.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?i.setAttribute(a,l):i.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?i.removeAttribute(a):i.setAttribute(a,l);break;case"popover":ke("beforetoggle",i),ke("toggle",i),Bc(i,"popover",l);break;case"xlinkActuate":xi(i,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":xi(i,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":xi(i,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":xi(i,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":xi(i,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":xi(i,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":xi(i,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":xi(i,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":xi(i,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Bc(i,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QU.get(a)||a,Bc(i,a,l))}}function zv(i,s,a,l,d,p){switch(a){case"style":bT(i,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(r(60));i.innerHTML=a}}break;case"children":typeof l=="string"?pa(i,l):(typeof l=="number"||typeof l=="bigint")&&pa(i,""+l);break;case"onScroll":l!=null&&ke("scroll",i);break;case"onScrollEnd":l!=null&&ke("scrollend",i);break;case"onClick":l!=null&&(i.onclick=Ti);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fT.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),s=a.slice(2,d?a.length-7:void 0),p=i[Jt]||null,p=p!=null?p[a]:null,typeof p=="function"&&i.removeEventListener(s,p,d),typeof l=="function")){typeof p!="function"&&p!==null&&(a in i?i[a]=null:i.hasAttribute(a)&&i.removeAttribute(a)),i.addEventListener(s,l,d);break e}a in i?i[a]=l:l===!0?i.setAttribute(a,""):Bc(i,a,l)}}}function Vt(i,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",i),ke("load",i);var l=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(i,s,p,y,a,null)}}d&&$e(i,s,"srcSet",a.srcSet,a,null),l&&$e(i,s,"src",a.src,a,null);return;case"input":ke("invalid",i);var S=p=y=d=null,w=null,k=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":d=G;break;case"type":y=G;break;case"checked":w=G;break;case"defaultChecked":k=G;break;case"value":p=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:$e(i,s,l,G,a,null)}}mT(i,p,S,w,k,y,d,!1);return;case"select":ke("invalid",i),l=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(S=a[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":y=S;break;case"multiple":l=S;default:$e(i,s,d,S,a,null)}s=p,a=y,i.multiple=!!l,s!=null?ha(i,!!l,s,!1):a!=null&&ha(i,!!l,a,!0);return;case"textarea":ke("invalid",i),p=d=l=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":l=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:$e(i,s,y,S,a,null)}yT(i,l,d,p);return;case"option":for(w in a)a.hasOwnProperty(w)&&(l=a[w],l!=null)&&(w==="selected"?i.selected=l&&typeof l!="function"&&typeof l!="symbol":$e(i,s,w,l,a,null));return;case"dialog":ke("beforetoggle",i),ke("toggle",i),ke("cancel",i),ke("close",i);break;case"iframe":case"object":ke("load",i);break;case"video":case"audio":for(l=0;l<ql.length;l++)ke(ql[l],i);break;case"image":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"embed":case"source":case"link":ke("error",i),ke("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(i,s,k,l,a,null)}return;default:if(Kg(s)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&zv(i,s,G,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&$e(i,s,S,l,a,null))}function TB(i,s,a,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,S=null,w=null,k=null,G=null;for(V in a){var Z=a[V];if(a.hasOwnProperty(V)&&Z!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":w=Z;default:l.hasOwnProperty(V)||$e(i,s,V,null,l,Z)}}for(var z in l){var V=l[z];if(Z=a[z],l.hasOwnProperty(z)&&(V!=null||Z!=null))switch(z){case"type":p=V;break;case"name":d=V;break;case"checked":k=V;break;case"defaultChecked":G=V;break;case"value":y=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,s));break;default:V!==Z&&$e(i,s,z,V,l,Z)}}Yg(i,y,S,w,k,G,p,d);return;case"select":V=y=S=z=null;for(p in a)if(w=a[p],a.hasOwnProperty(p)&&w!=null)switch(p){case"value":break;case"multiple":V=w;default:l.hasOwnProperty(p)||$e(i,s,p,null,l,w)}for(d in l)if(p=l[d],w=a[d],l.hasOwnProperty(d)&&(p!=null||w!=null))switch(d){case"value":z=p;break;case"defaultValue":S=p;break;case"multiple":y=p;default:p!==w&&$e(i,s,d,p,l,w)}s=S,a=y,l=V,z!=null?ha(i,!!a,z,!1):!!l!=!!a&&(s!=null?ha(i,!!a,s,!0):ha(i,!!a,a?[]:"",!1));return;case"textarea":V=z=null;for(S in a)if(d=a[S],a.hasOwnProperty(S)&&d!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:$e(i,s,S,null,l,d)}for(y in l)if(d=l[y],p=a[y],l.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":z=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==p&&$e(i,s,y,d,l,p)}vT(i,z,V);return;case"option":for(var ce in a)z=a[ce],a.hasOwnProperty(ce)&&z!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?i.selected=!1:$e(i,s,ce,null,l,z));for(w in l)z=l[w],V=a[w],l.hasOwnProperty(w)&&z!==V&&(z!=null||V!=null)&&(w==="selected"?i.selected=z&&typeof z!="function"&&typeof z!="symbol":$e(i,s,w,z,l,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in a)z=a[_e],a.hasOwnProperty(_e)&&z!=null&&!l.hasOwnProperty(_e)&&$e(i,s,_e,null,l,z);for(k in l)if(z=l[k],V=a[k],l.hasOwnProperty(k)&&z!==V&&(z!=null||V!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,s));break;default:$e(i,s,k,z,l,V)}return;default:if(Kg(s)){for(var Ge in a)z=a[Ge],a.hasOwnProperty(Ge)&&z!==void 0&&!l.hasOwnProperty(Ge)&&zv(i,s,Ge,void 0,l,z);for(G in l)z=l[G],V=a[G],!l.hasOwnProperty(G)||z===V||z===void 0&&V===void 0||zv(i,s,G,z,l,V);return}}for(var O in a)z=a[O],a.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&$e(i,s,O,null,l,z);for(Z in l)z=l[Z],V=a[Z],!l.hasOwnProperty(Z)||z===V||z==null&&V==null||$e(i,s,Z,z,l,V)}function SA(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wB(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var d=a[l],p=d.transferSize,y=d.initiatorType,S=d.duration;if(p&&S&&SA(y)){for(y=0,S=d.responseEnd,l+=1;l<a.length;l++){var w=a[l],k=w.startTime;if(k>S)break;var G=w.transferSize,Z=w.initiatorType;G&&SA(Z)&&(w=w.responseEnd,y+=G*(w<S?1:(S-k)/(w-k)))}if(--l,s+=8*(p+y)/(d.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var jv=null,Uv=null;function Uf(i){return i.nodeType===9?i:i.ownerDocument}function EA(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xA(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function Bv(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Vv=null;function AB(){var i=window.event;return i&&i.type==="popstate"?i===Vv?!1:(Vv=i,!0):(Vv=null,!1)}var TA=typeof setTimeout=="function"?setTimeout:void 0,CB=typeof clearTimeout=="function"?clearTimeout:void 0,wA=typeof Promise=="function"?Promise:void 0,MB=typeof queueMicrotask=="function"?queueMicrotask:typeof wA<"u"?function(i){return wA.resolve(null).then(i).catch(OB)}:TA;function OB(i){setTimeout(function(){throw i})}function Ts(i){return i==="head"}function AA(i,s){var a=s,l=0;do{var d=a.nextSibling;if(i.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(l===0){i.removeChild(d),$a(s);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Hl(i.ownerDocument.documentElement);else if(a==="head"){a=i.ownerDocument.head,Hl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,S=p.nodeName;p[ol]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Hl(i.ownerDocument.body);a=d}while(a);$a(s)}function CA(i,s){var a=i;i=0;do{var l=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(i===0)break;i--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||i++;a=l}while(a)}function Iv(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Iv(a),$g(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}i.removeChild(a)}}function RB(i,s,a,l){for(;i.nodeType===1;){var d=a;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!l&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(l){if(!i[ol])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(p=i.getAttribute("rel"),p==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(p!==d.rel||i.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||i.getAttribute("title")!==(d.title==null?null:d.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(p=i.getAttribute("src"),(p!==(d.src==null?null:d.src)||i.getAttribute("type")!==(d.type==null?null:d.type)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&i.getAttribute("name")===p)return i}else return i;if(i=Bn(i.nextSibling),i===null)break}return null}function DB(i,s,a){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Bn(i.nextSibling),i===null))return null;return i}function MA(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Bn(i.nextSibling),i===null))return null;return i}function qv(i){return i.data==="$?"||i.data==="$~"}function Pv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function kB(i,s){var a=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||a.readyState!=="loading")s();else{var l=function(){s(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),i._reactRetry=l}}function Bn(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var Hv=null;function OA(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="/$"||a==="/&"){if(s===0)return Bn(i.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}i=i.nextSibling}return null}function RA(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var a=i.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return i;s--}else a!=="/$"&&a!=="/&"||s++}i=i.previousSibling}return null}function DA(i,s,a){switch(s=Uf(a),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Hl(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);$g(i)}var Vn=new Map,kA=new Set;function Bf(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ii=N.d;N.d={f:LB,r:NB,D:zB,C:jB,L:UB,m:BB,X:IB,S:VB,M:qB};function LB(){var i=Ii.f(),s=Of();return i||s}function NB(i){var s=ca(i);s!==null&&s.tag===5&&s.type==="form"?Kw(s):Ii.r(i)}var Pa=typeof document>"u"?null:document;function LA(i,s,a){var l=Pa;if(l&&typeof s=="string"&&s){var d=Dn(s);d='link[rel="'+i+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),kA.has(d)||(kA.add(d),i={rel:i,crossOrigin:a,href:s},l.querySelector(d)===null&&(s=l.createElement("link"),Vt(s,"link",i),Ct(s),l.head.appendChild(s)))}}function zB(i){Ii.D(i),LA("dns-prefetch",i,null)}function jB(i,s){Ii.C(i,s),LA("preconnect",i,s)}function UB(i,s,a){Ii.L(i,s,a);var l=Pa;if(l&&i&&s){var d='link[rel="preload"][as="'+Dn(s)+'"]';s==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Dn(a.imageSizes)+'"]')):d+='[href="'+Dn(i)+'"]';var p=d;switch(s){case"style":p=Ha(i);break;case"script":p=Fa(i)}Vn.has(p)||(i=v({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:i,as:s},a),Vn.set(p,i),l.querySelector(d)!==null||s==="style"&&l.querySelector(Fl(p))||s==="script"&&l.querySelector($l(p))||(s=l.createElement("link"),Vt(s,"link",i),Ct(s),l.head.appendChild(s)))}}function BB(i,s){Ii.m(i,s);var a=Pa;if(a&&i){var l=s&&typeof s.as=="string"?s.as:"script",d='link[rel="modulepreload"][as="'+Dn(l)+'"][href="'+Dn(i)+'"]',p=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Fa(i)}if(!Vn.has(p)&&(i=v({rel:"modulepreload",href:i},s),Vn.set(p,i),a.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($l(p)))return}l=a.createElement("link"),Vt(l,"link",i),Ct(l),a.head.appendChild(l)}}}function VB(i,s,a){Ii.S(i,s,a);var l=Pa;if(l&&i){var d=fa(l).hoistableStyles,p=Ha(i);s=s||"default";var y=d.get(p);if(!y){var S={loading:0,preload:null};if(y=l.querySelector(Fl(p)))S.loading=5;else{i=v({rel:"stylesheet",href:i,"data-precedence":s},a),(a=Vn.get(p))&&Fv(i,a);var w=y=l.createElement("link");Ct(w),Vt(w,"link",i),w._p=new Promise(function(k,G){w.onload=k,w.onerror=G}),w.addEventListener("load",function(){S.loading|=1}),w.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Vf(y,s,l)}y={type:"stylesheet",instance:y,count:1,state:S},d.set(p,y)}}}function IB(i,s){Ii.X(i,s);var a=Pa;if(a&&i){var l=fa(a).hoistableScripts,d=Fa(i),p=l.get(d);p||(p=a.querySelector($l(d)),p||(i=v({src:i,async:!0},s),(s=Vn.get(d))&&$v(i,s),p=a.createElement("script"),Ct(p),Vt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function qB(i,s){Ii.M(i,s);var a=Pa;if(a&&i){var l=fa(a).hoistableScripts,d=Fa(i),p=l.get(d);p||(p=a.querySelector($l(d)),p||(i=v({src:i,async:!0,type:"module"},s),(s=Vn.get(d))&&$v(i,s),p=a.createElement("script"),Ct(p),Vt(p,"link",i),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function NA(i,s,a,l){var d=(d=ge.current)?Bf(d):null;if(!d)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=Ha(a.href),a=fa(d).hoistableStyles,l=a.get(s),l||(l={type:"style",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){i=Ha(a.href);var p=fa(d).hoistableStyles,y=p.get(i);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(i,y),(p=d.querySelector(Fl(i)))&&!p._p&&(y.instance=p,y.state.loading=5),Vn.has(i)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Vn.set(i,a),p||PB(d,i,a,y.state))),s&&l===null)throw Error(r(528,""));return y}if(s&&l!==null)throw Error(r(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Fa(a),a=fa(d).hoistableScripts,l=a.get(s),l||(l={type:"script",instance:null,count:0,state:null},a.set(s,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Ha(i){return'href="'+Dn(i)+'"'}function Fl(i){return'link[rel="stylesheet"]['+i+"]"}function zA(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}function PB(i,s,a,l){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=i.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),Vt(s,"link",a),Ct(s),i.head.appendChild(s))}function Fa(i){return'[src="'+Dn(i)+'"]'}function $l(i){return"script[async]"+i}function jA(i,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var l=i.querySelector('style[data-href~="'+Dn(a.href)+'"]');if(l)return s.instance=l,Ct(l),l;var d=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(i.ownerDocument||i).createElement("style"),Ct(l),Vt(l,"style",d),Vf(l,a.precedence,i),s.instance=l;case"stylesheet":d=Ha(a.href);var p=i.querySelector(Fl(d));if(p)return s.state.loading|=4,s.instance=p,Ct(p),p;l=zA(a),(d=Vn.get(d))&&Fv(l,d),p=(i.ownerDocument||i).createElement("link"),Ct(p);var y=p;return y._p=new Promise(function(S,w){y.onload=S,y.onerror=w}),Vt(p,"link",l),s.state.loading|=4,Vf(p,a.precedence,i),s.instance=p;case"script":return p=Fa(a.src),(d=i.querySelector($l(p)))?(s.instance=d,Ct(d),d):(l=a,(d=Vn.get(p))&&(l=v({},a),$v(l,d)),i=i.ownerDocument||i,d=i.createElement("script"),Ct(d),Vt(d,"link",l),i.head.appendChild(d),s.instance=d);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(l=s.instance,s.state.loading|=4,Vf(l,a.precedence,i));return s.instance}function Vf(i,s,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,p=d,y=0;y<l.length;y++){var S=l[y];if(S.dataset.precedence===s)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(i,p.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(i,s.firstChild))}function Fv(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function $v(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var If=null;function UA(i,s,a){if(If===null){var l=new Map,d=If=new Map;d.set(a,l)}else d=If,l=d.get(a),l||(l=new Map,d.set(a,l));if(l.has(i))return l;for(l.set(i,null),a=a.getElementsByTagName(i),d=0;d<a.length;d++){var p=a[d];if(!(p[ol]||p[zt]||i==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(s)||"";y=i+y;var S=l.get(y);S?S.push(p):l.set(y,[p])}}return l}function BA(i,s,a){i=i.ownerDocument||i,i.head.insertBefore(a,s==="title"?i.querySelector("head > title"):null)}function HB(i,s,a){if(a===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(i=s.disabled,typeof s.precedence=="string"&&i==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function VA(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function FB(i,s,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Ha(l.href),p=s.querySelector(Fl(d));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=qf.bind(i),s.then(i,i)),a.state.loading|=4,a.instance=p,Ct(p);return}p=s.ownerDocument||s,l=zA(l),(d=Vn.get(d))&&Fv(l,d),p=p.createElement("link"),Ct(p);var y=p;y._p=new Promise(function(S,w){y.onload=S,y.onerror=w}),Vt(p,"link",l),a.instance=p}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(i.count++,a=qf.bind(i),s.addEventListener("load",a),s.addEventListener("error",a))}}var Gv=0;function $B(i,s){return i.stylesheets&&i.count===0&&Hf(i,i.stylesheets),0<i.count||0<i.imgCount?function(a){var l=setTimeout(function(){if(i.stylesheets&&Hf(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+s);0<i.imgBytes&&Gv===0&&(Gv=62500*wB());var d=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Hf(i,i.stylesheets),i.unsuspend)){var p=i.unsuspend;i.unsuspend=null,p()}},(i.imgBytes>Gv?50:800)+s);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hf(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Pf=null;function Hf(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Pf=new Map,s.forEach(GB,i),Pf=null,qf.call(i))}function GB(i,s){if(!(s.state.loading&4)){var a=Pf.get(i);if(a)var l=a.get(null);else{a=new Map,Pf.set(i,a);for(var d=i.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),l=y)}l&&a.set(null,l)}d=s.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||l,p===l&&a.set(null,d),a.set(y,d),this.count++,l=qf.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),p?p.parentNode.insertBefore(d,p.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(d,i.firstChild)),s.state.loading|=4}}var Gl={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function YB(i,s,a,l,d,p,y,S,w){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qg(0),this.hiddenUpdates=qg(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function IA(i,s,a,l,d,p,y,S,w,k,G,Z){return i=new YB(i,s,a,y,w,k,G,Z,S),s=1,p===!0&&(s|=24),p=yn(3,null,null,s),i.current=p,p.stateNode=i,s=wm(),s.refCount++,i.pooledCache=s,s.refCount++,p.memoizedState={element:l,isDehydrated:a,cache:s},Om(p),i}function qA(i){return i?(i=Sa,i):Sa}function PA(i,s,a,l,d,p){d=qA(d),l.context===null?l.context=d:l.pendingContext=d,l=hs(s),l.payload={element:a},p=p===void 0?null:p,p!==null&&(l.callback=p),a=ps(i,l,s),a!==null&&(rn(a,i,s),Tl(a,i,s))}function HA(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var a=i.retryLane;i.retryLane=a!==0&&a<s?a:s}}function Yv(i,s){HA(i,s),(i=i.alternate)&&HA(i,s)}function FA(i){if(i.tag===13||i.tag===31){var s=lr(i,67108864);s!==null&&rn(s,i,67108864),Yv(i,67108864)}}function $A(i){if(i.tag===13||i.tag===31){var s=xn();s=Pg(s);var a=lr(i,s);a!==null&&rn(a,i,s),Yv(i,s)}}var Ff=!0;function XB(i,s,a,l){var d=A.T;A.T=null;var p=N.p;try{N.p=2,Xv(i,s,a,l)}finally{N.p=p,A.T=d}}function KB(i,s,a,l){var d=A.T;A.T=null;var p=N.p;try{N.p=8,Xv(i,s,a,l)}finally{N.p=p,A.T=d}}function Xv(i,s,a,l){if(Ff){var d=Kv(l);if(d===null)Nv(i,s,l,$f,a),YA(i,l);else if(QB(d,i,s,a,l))l.stopPropagation();else if(YA(i,l),s&4&&-1<ZB.indexOf(i)){for(;d!==null;){var p=ca(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=ir(p.pendingLanes);if(y!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var w=1<<31-mn(y);S.entanglements[1]|=w,y&=~w}ri(p),(Ie&6)===0&&(Cf=pn()+500,Il(0))}}break;case 31:case 13:S=lr(p,2),S!==null&&rn(S,p,2),Of(),Yv(p,2)}if(p=Kv(l),p===null&&Nv(i,s,l,$f,a),p===d)break;d=p}d!==null&&l.stopPropagation()}else Nv(i,s,l,null,a)}}function Kv(i){return i=Qg(i),Zv(i)}var $f=null;function Zv(i){if($f=null,i=ua(i),i!==null){var s=u(i);if(s===null)i=null;else{var a=s.tag;if(a===13){if(i=c(s),i!==null)return i;i=null}else if(a===31){if(i=f(s),i!==null)return i;i=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return $f=i,null}function GA(i){switch(i){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zU()){case eT:return 2;case tT:return 8;case Lc:case jU:return 32;case nT:return 268435456;default:return 32}default:return 32}}var Qv=!1,ws=null,As=null,Cs=null,Yl=new Map,Xl=new Map,Ms=[],ZB="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".split(" ");function YA(i,s){switch(i){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Cs=null;break;case"pointerover":case"pointerout":Yl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(s.pointerId)}}function Kl(i,s,a,l,d,p){return i===null||i.nativeEvent!==p?(i={blockedOn:s,domEventName:a,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},s!==null&&(s=ca(s),s!==null&&FA(s)),i):(i.eventSystemFlags|=l,s=i.targetContainers,d!==null&&s.indexOf(d)===-1&&s.push(d),i)}function QB(i,s,a,l,d){switch(s){case"focusin":return ws=Kl(ws,i,s,a,l,d),!0;case"dragenter":return As=Kl(As,i,s,a,l,d),!0;case"mouseover":return Cs=Kl(Cs,i,s,a,l,d),!0;case"pointerover":var p=d.pointerId;return Yl.set(p,Kl(Yl.get(p)||null,i,s,a,l,d)),!0;case"gotpointercapture":return p=d.pointerId,Xl.set(p,Kl(Xl.get(p)||null,i,s,a,l,d)),!0}return!1}function XA(i){var s=ua(i.target);if(s!==null){var a=u(s);if(a!==null){if(s=a.tag,s===13){if(s=c(a),s!==null){i.blockedOn=s,lT(i.priority,function(){$A(a)});return}}else if(s===31){if(s=f(a),s!==null){i.blockedOn=s,lT(i.priority,function(){$A(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){i.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Gf(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var a=Kv(i.nativeEvent);if(a===null){a=i.nativeEvent;var l=new a.constructor(a.type,a);Zg=l,a.target.dispatchEvent(l),Zg=null}else return s=ca(a),s!==null&&FA(s),i.blockedOn=a,!1;s.shift()}return!0}function KA(i,s,a){Gf(i)&&a.delete(s)}function JB(){Qv=!1,ws!==null&&Gf(ws)&&(ws=null),As!==null&&Gf(As)&&(As=null),Cs!==null&&Gf(Cs)&&(Cs=null),Yl.forEach(KA),Xl.forEach(KA)}function Yf(i,s){i.blockedOn===s&&(i.blockedOn=null,Qv||(Qv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,JB)))}var Xf=null;function ZA(i){Xf!==i&&(Xf=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Xf===i&&(Xf=null);for(var s=0;s<i.length;s+=3){var a=i[s],l=i[s+1],d=i[s+2];if(typeof l!="function"){if(Zv(l||a)===null)continue;break}var p=ca(a);p!==null&&(i.splice(s,3),s-=3,Km(p,{pending:!0,data:d,method:a.method,action:l},l,d))}}))}function $a(i){function s(w){return Yf(w,i)}ws!==null&&Yf(ws,i),As!==null&&Yf(As,i),Cs!==null&&Yf(Cs,i),Yl.forEach(s),Xl.forEach(s);for(var a=0;a<Ms.length;a++){var l=Ms[a];l.blockedOn===i&&(l.blockedOn=null)}for(;0<Ms.length&&(a=Ms[0],a.blockedOn===null);)XA(a),a.blockedOn===null&&Ms.shift();if(a=(i.ownerDocument||i).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var d=a[l],p=a[l+1],y=d[Jt]||null;if(typeof p=="function")y||ZA(a);else if(y){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[Jt]||null)S=y.formAction;else if(Zv(d)!==null)continue}else S=y.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),ZA(a)}}}function QA(){function i(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function s(){d!==null&&(d(),d=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),d!==null&&(d(),d=null)}}}function Jv(i){this._internalRoot=i}Kf.prototype.render=Jv.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var a=s.current,l=xn();PA(a,l,i,s,null,null)},Kf.prototype.unmount=Jv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;PA(i.current,2,null,i,null,null),Of(),s[la]=null}};function Kf(i){this._internalRoot=i}Kf.prototype.unstable_scheduleHydration=function(i){if(i){var s=oT();i={blockedOn:null,target:i,priority:s};for(var a=0;a<Ms.length&&s!==0&&s<Ms[a].priority;a++);Ms.splice(a,0,i),a===0&&XA(i)}};var JA=e.version;if(JA!=="19.2.5")throw Error(r(527,JA,"19.2.5"));N.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=g(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var WB={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{sl=Zf.inject(WB),gn=Zf}catch{}}return io.createRoot=function(i,s){if(!o(i))throw Error(r(299));var a=!1,l="",d=r2,p=a2,y=o2;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(l=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),s=IA(i,1,!1,null,null,a,l,null,d,p,y,QA),i[la]=s.current,Lv(i),new Jv(s)},io.hydrateRoot=function(i,s,a){if(!o(i))throw Error(r(299));var l=!1,d="",p=r2,y=a2,S=o2,w=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),s=IA(i,1,!0,s,a??null,l,d,w,p,y,S,QA),s.context=qA(null),a=s.current,l=xn(),l=Pg(l),d=hs(l),d.callback=null,ps(a,d,l),a=l,s.current.lanes=a,al(s,a),ri(s),i[la]=s.current,Lv(i),new Kf(s)},io.version="19.2.5",io}var n0;function JR(){if(n0)return Fd.exports;n0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Fd.exports=QR(),Fd.exports}var WR=JR(),B=typeof window<"u"?window:void 0,xt=typeof globalThis<"u"?globalThis:B;typeof self>"u"&&(xt.self=xt),typeof File>"u"&&(xt.File=function(){});var on=xt?.navigator,ae=xt?.document,Rt=xt?.location,Xd=xt?.fetch,Kd=xt!=null&&xt.XMLHttpRequest&&"withCredentials"in new xt.XMLHttpRequest?xt.XMLHttpRequest:void 0,i0=xt?.AbortController,eD=xt?.CompressionStream,Kt=on?.userAgent,pe=B??{},s0="1.383.2",wt={DEBUG:!1,LIB_VERSION:s0,LIB_NAME:"web",JS_SDK_VERSION:s0};function r0(t,e,n,r,o,u,c){try{var f=t[u](c),h=f.value}catch(g){return void n(g)}f.done?e(h):Promise.resolve(h).then(r,o)}function ln(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var u=t.apply(e,n);function c(h){r0(u,r,o,c,f,"next",h)}function f(h){r0(u,r,o,c,f,"throw",h)}c(void 0)}))}}function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(null,arguments)}function a0(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var so,o0=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),tD=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],l0="NativeGzipValidationError",Zd=t=>t.length>=2&&t[0]===31&&t[1]===139,u0=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",vu=t=>{var e=new Error("Native gzip produced invalid output: "+t);throw e.name=l0,e},nD=(function(){var t=ln((function*(e,n){18>e.size&&vu("too-short");var r=new Uint8Array(yield e.slice(0,10).arrayBuffer());Zd(r)&&r[2]===8||vu("invalid-header");var o=new DataView(yield e.slice(e.size-8).arrayBuffer());o.getUint32(0,!0)!==(c=>{for(var f=(()=>{if(so)return so;so=[];for(var m=0;256>m;m++){for(var v=m,_=0;8>_;_++)v=1&v?3988292384^v>>>1:v>>>1;so[m]=v>>>0}return so})(),h=4294967295,g=0;c.length>g;g++)h=f[255&(h^c[g])]^h>>>8;return(4294967295^h)>>>0})(n)&&vu("invalid-crc");var u=n.length>>>0;o.getUint32(4,!0)!==u&&vu("invalid-size")}));return function(e,n){return t.apply(this,arguments)}})();function Qd(){return Qd=ln((function*(t,e,n){e===void 0&&(e=!0);try{var r=new TextEncoder().encode(t),o=new CompressionStream("gzip"),u=o.writable.getWriter(),c=u.write(r).then((()=>u.close())).catch((function(){var g=ln((function*(m){try{yield u.abort(m)}catch{}throw m}));return function(m){return g.apply(this,arguments)}})()),f=new Response(o.readable).blob(),[h]=yield Promise.all([f,c]);return yield nD(h,r),h}catch(g){if(n!=null&&n.rethrow)throw g;return e&&console.error("Failed to gzip compress data",g),null}})),Qd.apply(this,arguments)}var iD=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],c0=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return iD.concat(e).some((r=>{var o=r.toLowerCase();return n.indexOf(o)!==-1}))};function Ee(t,e){return t.indexOf(e)!==-1}var yu=function(t){return t.trim()},Jd=function(t){return t.replace(/^\$/,"")},f0=Object.prototype,d0=f0.hasOwnProperty,_u=f0.toString,Oe=Array.isArray||function(t){return _u.call(t)==="[object Array]"},ci=t=>typeof t=="function",ut=t=>t===Object(t)&&!Oe(t),Gi=t=>{if(ut(t)){for(var e in t)if(d0.call(t,e))return!1;return!0}return!1},se=t=>t===void 0,at=t=>_u.call(t)=="[object String]",Wd=t=>at(t)&&t.trim().length===0,un=t=>t===null,Re=t=>se(t)||un(t),Gt=t=>_u.call(t)=="[object Number]"&&t==t,fi=t=>Gt(t)&&t>0,Kn=t=>_u.call(t)==="[object Boolean]",sD=t=>t instanceof FormData,rD=t=>Ee(tD,t);function h0(t){return t===null||typeof t!="object"}function bu(t,e){return{}.toString.call(t)==="[object "+e+"]"}function eh(t){return typeof Event<"u"&&(function(e,n){try{return e instanceof n}catch{return!1}})(t,Event)}var aD=[!0,"true",1,"1","yes"],th=t=>Ee(aD,t),oD=[!1,"false",0,"0","no"];function Zn(t,e,n,r,o){return e>n&&(r.warn("min cannot be greater than max."),e=n),Gt(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e>t?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+o),Zn(o||n,e,n,r))}class lD{constructor(e){this.$t={},this.zt=e.zt,this.Zt=Zn(e.bucketSize,0,100,e.Gt),this.Qt=Zn(e.refillRate,0,this.Zt,e.Gt),this.Jt=Zn(e.refillInterval,0,864e5,e.Gt)}Kt(e,n){var r=Math.floor((n-e.lastAccess)/this.Jt);r>0&&(e.tokens=Math.min(e.tokens+r*this.Qt,this.Zt),e.lastAccess=e.lastAccess+r*this.Jt)}consumeRateLimit(e){var n,r=Date.now(),o=String(e),u=this.$t[o];return u?this.Kt(u,r):this.$t[o]=u={tokens:this.Zt,lastAccess:r},u.tokens===0||(u.tokens--,u.tokens===0&&((n=this.zt)==null||n.call(this,e)),u.tokens===0)}stop(){this.$t={}}}var Su,p0,nh,cn="Mobile",Eu="iOS",di="Android",Or="Tablet",g0=di+" "+Or,m0="iPad",v0="Apple",y0=v0+" Watch",ro="Safari",Rr="BlackBerry",_0="Samsung",b0=_0+"Browser",S0=_0+" Internet",Bs="Chrome",uD=Bs+" OS",E0=Bs+" "+Eu,ih="Internet Explorer",x0=ih+" "+cn,sh="Opera",cD=sh+" Mini",rh="Edge",T0="Microsoft "+rh,Dr="Firefox",w0=Dr+" "+Eu,ao="Nintendo",oo="PlayStation",kr="Xbox",A0=di+" "+cn,C0=cn+" "+ro,lo="Windows",ah=lo+" Phone",M0="Nokia",oh="Ouya",O0="Generic",fD=O0+" "+cn.toLowerCase(),R0=O0+" "+Or.toLowerCase(),lh="Konqueror",D0="Oculus Browser",xu="Vivaldi",k0="Yandex",Tu="Whale",uh="DuckDuckGo",L0="Pale Moon",wu="Waterfox",uo="Brave",ct="(\\d+(\\.\\d+)?)",ch=new RegExp("Version/"+ct),dD=new RegExp(kr,"i"),hD=new RegExp(oo+" \\w+","i"),pD=new RegExp(ao+" \\w+","i"),fh=new RegExp(Rr+"|PlayBook|BB10","i"),gD={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},N0=function(t,e,n){e=e||"";var r=(function(o){return o!=null&&o.brave?uo:null})(n);return r||(Ee(t," OPR/")&&Ee(t,"Mini")?cD:Ee(t," OPR/")?sh:fh.test(t)?Rr:Ee(t,"IE"+cn)||Ee(t,"WPDesktop")?x0:Ee(t,"OculusBrowser")?D0:Ee(t,b0)?S0:Ee(t,rh)||Ee(t,"Edg/")?T0:Ee(t,xu+"/")?xu:Ee(t,"YaBrowser/")?k0:Ee(t,Tu+"/")?Tu:Ee(t,uh+"/")||Ee(t,"Ddg/")?uh:Ee(t,"FBIOS")?"Facebook "+cn:Ee(t,"UCWEB")||Ee(t,"UCBrowser")?"UC Browser":Ee(t,"CriOS")?E0:Ee(t,"CrMo")||Ee(t,Bs)?Bs:Ee(t,di)&&Ee(t,ro)?A0:Ee(t,"FxiOS")?w0:Ee(t.toLowerCase(),lh.toLowerCase())?lh:Ee(t,uo+"/")?uo:((o,u)=>u&&Ee(u,v0)||(function(c){return Ee(c,ro)&&!Ee(c,Bs)&&!Ee(c,di)})(o))(t,e)?Ee(t,cn)?C0:ro:Ee(t,"PaleMoon/")?L0:Ee(t,wu+"/")?wu:Ee(t,Dr)?Dr:Ee(t,"MSIE")||Ee(t,"Trident/")?ih:Ee(t,"Gecko")?Dr:"")},mD={[x0]:[new RegExp("rv:"+ct)],[T0]:[new RegExp(rh+"?\\/"+ct)],[Bs]:[new RegExp("("+Bs+"|CrMo)\\/"+ct)],[E0]:[new RegExp("CriOS\\/"+ct)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+ct)],[ro]:[ch],[C0]:[ch],[sh]:[new RegExp("(Opera|OPR)\\/"+ct)],[Dr]:[new RegExp(Dr+"\\/"+ct)],[w0]:[new RegExp("FxiOS\\/"+ct)],[lh]:[new RegExp("Konqueror[:/]?"+ct,"i")],[Rr]:[new RegExp(Rr+" "+ct),ch],[A0]:[new RegExp("android\\s"+ct,"i")],[S0]:[new RegExp(b0+"\\/"+ct)],[D0]:[new RegExp("OculusBrowser\\/"+ct)],[xu]:[new RegExp(xu+"\\/"+ct)],[k0]:[new RegExp("YaBrowser\\/"+ct)],[Tu]:[new RegExp(Tu+"\\/"+ct)],[uo]:[new RegExp(uo+"\\/"+ct)],[uh]:[new RegExp("(DuckDuckGo|Ddg)\\/"+ct)],[L0]:[new RegExp("PaleMoon\\/"+ct)],[wu]:[new RegExp(wu+"\\/"+ct)],[ih]:[new RegExp("(rv:|MSIE )"+ct)],Mozilla:[new RegExp("rv:"+ct)]},vD=function(t,e,n){var r=N0(t,e,n),o=mD[r];if(se(o))return null;for(var u=0;o.length>u;u++){var c=t.match(o[u]);if(c)return parseFloat(c[c.length-2])}return null},z0=[[new RegExp(kr+"; "+kr+" (.*?)[);]","i"),t=>[kr,t&&t[1]||""]],[new RegExp(ao,"i"),[ao,""]],[new RegExp(oo,"i"),[oo,""]],[fh,[Rr,""]],[new RegExp(lo,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[ah,""];if(new RegExp(cn).test(e)&&!/IEMobile\b/.test(e))return[lo+" "+cn,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=gD[n[1]]||"";return/arm/i.test(e)&&(r="RT"),[lo,r]}return[lo,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[Eu,[t[3],t[4],t[5]||"0"].join(".")]:[Eu,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=se(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+di+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+di+")","i"),t=>t&&t[2]?[di,[t[2],t[3],t[4]||"0"].join(".")]:[di,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[uD,""]],[/Linux|debian/i,["Linux",""]]],j0=function(t){return pD.test(t)?ao:hD.test(t)?oo:dD.test(t)?kr:new RegExp(oh,"i").test(t)?oh:new RegExp("("+ah+"|WPDesktop)","i").test(t)?ah:/iPad/.test(t)?m0:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?y0:fh.test(t)?Rr:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(M0,"i").test(t)?M0:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(cn).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?di:g0:new RegExp("(pda|"+cn+")","i").test(t)?fD:new RegExp(Or,"i").test(t)&&!new RegExp(Or+" pc","i").test(t)?R0:""},yD=t=>t instanceof Error,U0={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},_D=U0.info;function B0(t){if(Kn(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Oe(t))return{arrayValue:{values:t.map((e=>B0(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function V0(t){var e=[];for(var n in t){var r=t[n];un(r)||se(r)||e.push({key:n,value:B0(r)})}return e}function bD(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return nh&&n.length===p0||(p0=n.length,nh=n.reduce(((r,o)=>{Su||(Su={});var u=Su[o];if(u)r[u[0]]=u[1];else for(var c=t(o),f=c.length-1;f>=0;f--){var h=c[f],g=h?.filename,m=e[o];if(g&&m){r[g]=m,Su[o]=[g,m];break}}return r}),{})),nh}}class SD{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},o=this.buildCoercingContext(r,n,0).apply(e),u=this.buildParsingContext(n),c=this.parseStacktrace(o,u);return{$exception_list:this.convertToExceptionList(c,r),$exception_level:"error"}}modifyFrames(e){var n=this;return ln((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&Oe(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,o;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(o=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),ne({},e,{cause:r,stack:o})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return ln((function*(){var r=e;for(var o of n.modifiers)r=yield o(r);return r}))()}convertToExceptionList(e,n){var r,o,u,c={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(o=n.handled)===null||o===void 0||o,synthetic:(u=e.synthetic)!==null&&u!==void 0&&u}};e.stack&&(c.stacktrace={type:"raw",frames:e.stack});var f=[c];return e.cause!=null&&f.push(...this.convertToExceptionList(e.cause,ne({},n,{handled:!0}))),f}buildParsingContext(e){var n;return{chunkIdMap:bD(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var o=(u,c)=>{if(4>=c){var f=this.buildCoercingContext(e,n,c);return this.applyCoercers(u,f)}};return ne({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:u=>o(u,r),next:u=>o(u,r+1)})}}var Lr="?";function dh(t,e,n,r,o){var u={platform:t,filename:e,function:n==="<anonymous>"?Lr:n,in_app:!0};return se(r)||(u.lineno=r),se(o)||(u.colno=o),u}var I0=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Lr,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},ED=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xD=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,TD=/\((\S*)(?::(\d+))(?::(\d+))\)/,wD=(t,e)=>{var n=ED.exec(t);if(n){var[,r,o,u]=n;return dh(e,r,Lr,+o,+u)}var c=xD.exec(t);if(c){if(c[2]&&c[2].indexOf("eval")===0){var f=TD.exec(c[2]);f&&(c[2]=f[1],c[3]=f[2],c[4]=f[3])}var[h,g]=I0(c[1]||Lr,c[2]);return dh(e,g,h,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}},AD=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,CD=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,MD=(t,e)=>{var n=AD.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=CD.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],u=n[1]||Lr;return[u,o]=I0(u,o),dh(e,o,u,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},q0=/\(error: (.*)\)/;class OD{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=at(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return bu(e,"DOMException")}isDOMError(e){return bu(e,"DOMError")}}class RD{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class DD{constructor(){}match(e){return bu(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var r;return n.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var kD=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class LD{match(e){return typeof e=="string"}coerce(e,n){var r,[o,u]=this.getInfos(e);return{type:o??"Error",value:u??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,o=e.match(kD);return o&&(n=o[1],r=o[2]),[n,r]}}var ND=["fatal","error","warning","log","info","debug"];function P0(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(e>=o.length)return r===n.length?o:o.length>e?o.slice(0,e)+"...":o}return""}class zD{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,o=this.getErrorPropertyFromObject(e);return o?n.apply(o):{type:this.getType(e),value:this.getValue(e),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return eh(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+P0(e)}isSeverityLevel(e){return at(e)&&!Wd(e)&&ND.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if({}.hasOwnProperty.call(e,n)){var r=e[n];if(yD(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class jD{match(e){return eh(e)}coerce(e,n){var r,o=e.constructor.name;return{type:o,value:o+" captured as exception with keys: "+P0(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class UD{match(e){return h0(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class BD{match(e){return bu(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!eh(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var r,o=this.getUnhandledRejectionReason(e);return h0(o)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(o)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var Au="$message",Cu="$timestamp",VD=new Set([Au,Cu]),hh={enabled:!0,max_bytes:32768};function Mu(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:hh.enabled,max_bytes:qD(t.max_bytes,hh.max_bytes)}:ne({},hh)}class ID{constructor(e){this.Yt=[],this.Xt=0,this.qt=Mu(e)}setConfig(e){this.qt=Mu(e),this.er()}add(e){var n=(function(o){var u=(function(m){var v=new WeakSet;try{return JSON.stringify(m,((_,b)=>{if(typeof b=="bigint")return b.toString();if(typeof b!="function"&&typeof b!="symbol"){if(b instanceof Date)return b.toISOString();if(b instanceof Error)return{name:b.name,message:b.message,stack:b.stack};if(b&&typeof b=="object"){if(v.has(b))return"[Circular]";v.add(b)}return b}}))}catch{return}})(o);if(u)try{var c=JSON.parse(u);if(!ut(c))return;var f=c,h=f[Au],g=f[Cu];return!at(h)||h.trim().length===0||!at(g)&&!Gt(g)?void 0:{step:f,json:u}}catch{return}})(e);if(n){var r=(function(o){if(typeof TextEncoder<"u")return new TextEncoder().encode(o).length;for(var u=encodeURIComponent(o),c=0,f=0;u.length>f;f++)u[f]==="%"?(c+=1,f+=2):c+=1;return c})(n.json);r>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:r}),this.Xt+=r,this.er())}}getAttachable(){return this.Yt.map((e=>e.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}}function qD(t,e){if(!Gt(t)||t===1/0||t===-1/0)return e;var n=Math.floor(t);return 0>n?e:n}var H0=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,r={k(o){if(B&&(wt.DEBUG||pe.POSTHOG_DEBUG||n)&&!se(B.console)&&B.console){for(var u=("__rrweb_original__"in B.console[o])?B.console[o].__rrweb_original__:B.console[o],c=arguments.length,f=new Array(c>1?c-1:0),h=1;c>h;h++)f[h-1]=arguments[h];u(t,...f)}},debug(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("debug",...u)},info(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("log",...u)},warn(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("warn",...u)},error(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];r.k("error",...u)},critical(){for(var o=arguments.length,u=new Array(o),c=0;o>c;c++)u[c]=arguments[c];console.error(t,...u)},uninitializedWarning(o){r.error("You must initialize PostHog before calling "+o)},createLogger:(o,u)=>H0(t+" "+o,u)};return r},re=H0("[PostHog.js]"),ot=re.createLogger,PD=ot("[ExternalScriptsLoader]"),ph=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return PD.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=ae?.querySelectorAll("script");if(r){for(var o,u=function(){if(r[c].src===e){var h=r[c];return h.__posthog_loading_callback_fired?{v:n()}:(h.addEventListener("load",(g=>{h.__posthog_loading_callback_fired=!0,n(void 0,g)})),h.onerror=g=>n(g),{v:void 0})}},c=0;r.length>c;c++)if(o=u())return o.v}var f=()=>{if(!ae)return n("document not found");var h=ae.createElement("script");if(h.type="text/javascript",h.crossOrigin="anonymous",h.src=e,h.onload=v=>{h.__posthog_loading_callback_fired=!0,n(void 0,v)},h.onerror=v=>n(v),t.config.prepare_external_dependency_script&&(h=t.config.prepare_external_dependency_script(h)),!h)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ae.head.appendChild(h);else{var g,m=ae.querySelectorAll("body > script");m.length>0?(g=m[0].parentNode)==null||g.insertBefore(h,m[0]):ae.body.appendChild(h)}};ae!=null&&ae.body?f():ae?.addEventListener("DOMContentLoaded",f)};pe.__PosthogExtensions__=pe.__PosthogExtensions__||{},pe.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{if(e!=="remote-config"){var r;if(t.config.__preview_external_dependency_versioned_paths)r=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var o="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var u=3e5;o=o+"&t="+Math.floor(Date.now()/u)*u}r=t.requestRouter.endpointFor("assets",o)}ph(t,r,n)}else{var c=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");ph(t,c,n)}},pe.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);ph(t,r,n)};var F0="$people_distinct_id",Ou="$device_id",co="__alias",fo="__timers",gh="$autocapture_disabled_server_side",mh="$heatmaps_enabled_server_side",vh="$exception_capture_enabled_server_side",yh="$error_tracking_suppression_rules",_h="$error_tracking_capture_extension_exceptions",bh="$web_vitals_enabled_server_side",Sh="$dead_clicks_enabled_server_side",Eh="$product_tours_enabled_server_side",xh="$web_vitals_allowed_metrics",Vs="$session_recording_remote_config",$0="$replay_override_sampling",G0="$replay_override_linked_flag",Y0="$replay_override_url_trigger",X0="$replay_override_event_trigger",Nr="$sesid",Th="$session_is_sampled",zr="$enabled_feature_flags",Ru="$active_feature_flags",ho="$early_access_features",wh="$feature_flag_details",Ah="$feature_flag_payloads",Ch="$feature_flag_request_id",hi="$override_feature_flags",jr="$override_feature_flag_payloads",po="$stored_person_properties",Is="$stored_group_properties",Mh="$surveys",Oh="$surveys_loaded_at",Rh="$surveys_activated",Du="ph_product_tours",go="$flag_call_reported",Dh="$flag_call_reported_session_id",kh="$feature_flag_errors",mo="$feature_flag_evaluated_at",Pn="$user_state",Lh="$client_session_props",Nh="$capture_rate_limit",zh="$initial_campaign_params",jh="$initial_referrer_info",ku="$initial_person_info",Lu="$epp",K0="__POSTHOG_TOOLBAR__",Nu="$posthog_cookieless",Z0="$sdk_debug_extensions_init_method",Q0="$sdk_debug_extensions_init_time_ms",J0="$sdk_debug_recording_script_not_loaded",Uh="PostHog loadExternalDependency extension not found.",qs="on_reject",pi="always",Ur="anonymous",Br="identified",Bh="identified_only",zu="visibilitychange",ju="beforeunload",Vr="$pageview",Vh="$pageleave",Ih="$identify",W0="$groupidentify";function Uu(t,e){Oe(t)&&t.forEach(e)}function Ze(t,e){if(!Re(t))if(Oe(t))t.forEach(e);else if(sD(t))t.forEach(((r,o)=>e(r,o)));else for(var n in t)d0.call(t,n)&&e(t[n],n)}var We=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];for(var o of n)for(var u in o)o[u]!==void 0&&(t[u]=o[u]);return t};function Bu(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var eb=function(t){try{return t()}catch{return}},HD=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;e>r;r++)n[r]=arguments[r];return t.apply(this,n)}catch(o){re.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),re.critical(o)}}},qh=function(t){var e={};return Ze(t,(function(n,r){(at(n)&&n.length>0||Gt(n))&&(e[r]=n)})),e},FD=["herokuapp.com","vercel.app","netlify.app"];function $D(t){var e=t?.hostname;if(!at(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of FD)if(n===r)return!1;return!0}function dt(t,e,n,r){var{capture:o=!1,passive:u=!0}=r??{};t?.addEventListener(e,n,{capture:o,passive:u})}function tb(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Gt(t)&&isFinite(t)&&Math.floor(t)===t});class Vu{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,o){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(o)||0>e||0>n||0>r||0>o||e>0xffffffffffff||n>4095||r>1073741823||o>4294967295)throw new RangeError("invalid field value");var u=new Uint8Array(16);return u[0]=e/Math.pow(2,40),u[1]=e/Math.pow(2,32),u[2]=e/Math.pow(2,24),u[3]=e/Math.pow(2,16),u[4]=e/Math.pow(2,8),u[5]=e,u[6]=112|n>>>8,u[7]=n,u[8]=128|r>>>24,u[9]=r>>>16,u[10]=r>>>8,u[11]=r,u[12]=o>>>24,u[13]=o>>>16,u[14]=o>>>8,u[15]=o,new Vu(u)}toString(){for(var e="",n=0;this.bytes.length>n;n++)e=e+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Vu(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;16>n;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class GD{constructor(){this.S=0,this.C=0,this.I=new YD}generate(){var e=this.generateOrAbort();if(se(e)){this.S=0;var n=this.generateOrAbort();if(se(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return Vu.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var nb,ib=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};B&&!se(B.crypto)&&crypto.getRandomValues&&(ib=t=>crypto.getRandomValues(t));class YD{constructor(){this.M=new Uint32Array(8),this.R=1/0}nextUint32(){return this.M.length>this.R||(ib(this.M),this.R=0),this.M[this.R++]}}var Yi=()=>XD().toString(),XD=()=>(nb||(nb=new GD)).generate(),vo="",KD=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Qn={O:()=>!!ae,D(t){re.error("cookieStore error: "+t)},A(t){if(ae){try{for(var e=t+"=",n=ae.cookie.split(";").filter((u=>u.length)),r=0;n.length>r;r++){for(var o=n[r];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(e)===0)return decodeURIComponent(o.substring(e.length,o.length))}}catch{}return null}},F(t){var e;try{e=JSON.parse(Qn.A(t))||{}}catch{}return e},N(t,e,n,r,o){if(!ae)return!1;try{var u="",c="",f=(function(m,v){if(v){var _=(function(x,E){if(E===void 0&&(E=ae),vo)return vo;if(!E||["localhost","127.0.0.1"].includes(x))return"";for(var M=x.split("."),R=Math.min(M.length,8),q="dmn_chk_"+Yi();!vo&&R--;){var F=M.slice(R).join("."),K=q+"=1;domain=."+F+";path=/";E.cookie=K+";max-age=3",E.cookie.includes(q)&&(E.cookie=K+";max-age=0",vo=F)}return vo})(m);if(!_){var b=(x=>{var E=x.match(KD);return E?E[0]:""})(m);b!==_&&re.info("Warning: cookie subdomain discovery mismatch",b,_),_=b}return _?"; domain=."+_:""}return""})(ae.location.hostname,r);if(n){var h=new Date;h.setTime(h.getTime()+864e5*n),u="; expires="+h.toUTCString()}o&&(c="; secure");var g=t+"="+encodeURIComponent(JSON.stringify(e))+u+"; SameSite=Lax; path=/"+f+c;return g.length>3686.4&&re.warn("cookieStore warning: large cookie, len="+g.length),ae.cookie=g,!0}catch{return!1}},q(t,e){if(ae!=null&&ae.cookie)try{Qn.N(t,"",-1,e)}catch{return}}},Ph=null,Xe={O(){if(!un(Ph))return Ph;var t=!0;if(se(B))t=!1;else try{var e="__mplssupport__";Xe.N(e,"xyz"),Xe.A(e)!=='"xyz"'&&(t=!1),Xe.q(e)}catch{t=!1}return t||re.error("localStorage unsupported; falling back to cookie store"),Ph=t,t},D(t){re.error("localStorage error: "+t)},A(t){try{return B?.localStorage.getItem(t)}catch(e){Xe.D(e)}return null},F(t){try{return JSON.parse(Xe.A(t))||{}}catch{}return null},N(t,e){try{return B?.localStorage.setItem(t,JSON.stringify(e)),!0}catch(n){Xe.D(n)}return!1},q(t){try{B?.localStorage.removeItem(t)}catch(e){Xe.D(e)}}},ZD=[Ou,"distinct_id",Nr,Th,Lu,ku,Pn],Iu={},QD={O:()=>!0,D(t){re.error("memoryStorage error: "+t)},A:t=>Iu[t]||null,F:t=>Iu[t]||null,N:(t,e)=>(Iu[t]=e,!0),q(t){delete Iu[t]}},Ps=null,Dt={O(){if(!un(Ps))return Ps;if(Ps=!0,se(B))Ps=!1;else try{var t="__support__";Dt.N(t,"xyz"),Dt.A(t)!=='"xyz"'&&(Ps=!1),Dt.q(t)}catch{Ps=!1}return Ps},D(t){re.error("sessionStorage error: ",t)},A(t){try{return B?.sessionStorage.getItem(t)}catch(e){Dt.D(e)}return null},F(t){try{return JSON.parse(Dt.A(t))||null}catch{}return null},N(t,e){try{return B?.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(n){Dt.D(n)}return!1},q(t){try{B?.sessionStorage.removeItem(t)}catch(e){Dt.D(e)}}};class JD{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===pi||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===qs}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,e?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.A(this.sr);return th(e)?1:Ee(oD,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,n=e==="localStorage"?Xe:Qn;if(!this.ar||this.ar!==n){this.ar=n;var r=e==="localStorage"?Qn:Xe;r.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(th(r.A(this.sr))),r.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[on?.doNotTrack,on?.msDoNotTrack,pe.doNotTrack].some((e=>th(e)))}}var WD=1,e3=3,t3=11;function sb(t){return t instanceof Element&&(t.id===K0||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Xi(t){return!!t&&t.nodeType===WD}function fn(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function rb(t){return!!t&&t.nodeType===e3}function ab(t){return!!t&&t.nodeType===t3&&Xi(t.host)}function Hh(t){return t?yu(t).split(/\s+/):[]}function ob(t){var e=B?.location.href;return!!(e&&t&&t.some((n=>e.match(n))))}function qu(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Hh(e)}function lb(t){return Re(t)?null:yu(t).split(/(\s+)/).filter((e=>_o(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function yo(t){var e="";return Yh(t)&&!mb(t)&&t.childNodes&&t.childNodes.length&&Ze(t.childNodes,(function(n){var r;rb(n)&&n.textContent&&(e+=(r=lb(n.textContent))!==null&&r!==void 0?r:"")})),yu(e)}function Fh(t){return se(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var $h=["a","button","form","input","select","textarea","label"];function ub(t,e){if(se(e))return!0;var n,r=function(u){if(e.some((c=>u.matches(c))))return{v:!0}};for(var o of t)if(n=r(o))return n.v;return!1}function cb(t){var e=t.parentNode;return!(!e||!Xi(e))&&e}var fb=["next","previous","prev",">","<"],n3=[...fb,"+","-","−","–"],db=(t,e)=>/[a-z0-9]/i.test(e)?t.includes(e):t===e,hb=[".ph-no-rageclick",".ph-no-capture"],i3=["","text","search","email","password","url","tel","number"];function pb(t,e){if(!B||Gh(t))return!1;var n,r,o,u,c;if(Kn(e)?(n=!!e&&hb,r=void 0,o=!1):(n=(u=e?.css_selector_ignorelist)!==null&&u!==void 0?u:hb,r=e?.content_ignorelist,o=(c=e?.ignore_text_selection)!==null&&c!==void 0&&c),n===!1||o&&(function(h){return!(!h||!Xi(h))&&(!!fn(h,"textarea")||(fn(h,"input")?Ee(i3,(h.getAttribute("type")||"").toLowerCase()):(function(g){if(g.isContentEditable)return!0;var m=g.getAttribute==null?void 0:g.getAttribute("contenteditable");return m==="true"||m===""})(h)))})(t))return!1;var{targetElementList:f}=gb(t,!1);return!(function(h,g){if(h===!1||se(h))return!1;var m;if(h===!0)m=fb;else{if(!Oe(h))return!1;if(h.length>10)return re.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;m=h.map((v=>v.toLowerCase()))}return g.some((v=>{var{safeText:_,ariaLabel:b}=v;return m.some((x=>db(_,x)||db(b,x)))}))})(r,f.map((h=>{var g;return{safeText:yo(h).toLowerCase(),ariaLabel:((g=h.getAttribute("aria-label"))==null?void 0:g.toLowerCase().trim())||""}})))&&!ub(f,n)}var Gh=t=>!t||fn(t,"html")||!Xi(t),gb=(t,e)=>{if(!B||Gh(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],o=t;o.parentNode&&!fn(o,"body");)if(ab(o.parentNode))r.push(o.parentNode.host),o=o.parentNode.host;else{var u=cb(o);if(!u)break;if(e||$h.indexOf(u.tagName.toLowerCase())>-1)n=!0;else{var c=B.getComputedStyle(u);c&&c.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(u),o=u}return{parentIsUsefulElement:n,targetElementList:r}};function Yh(t){for(var e=t;e.parentNode&&!fn(e,"body");e=e.parentNode){var n=qu(e);if(Ee(n,"ph-sensitive")||Ee(n,"ph-no-capture"))return!1}if(Ee(qu(t),"ph-include"))return!0;var r=t.type||"";if(at(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var o=t.name||t.id||"";return!at(o)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,""))}function mb(t){return!!(fn(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||fn(t,"select")||fn(t,"textarea")||t.getAttribute("contenteditable")==="true")}var vb="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",s3=new RegExp("^(?:"+vb+")$"),r3=new RegExp(vb),yb="\\d{3}-?\\d{2}-?\\d{4}",a3=new RegExp("^("+yb+")$"),o3=new RegExp("("+yb+")");function _o(t,e){return e===void 0&&(e=!0),!(Re(t)||at(t)&&(t=yu(t),(e?s3:r3).test((t||"").replace(/[- ]/g,""))||(e?a3:o3).test(t)))}function _b(t){var e=yo(t);return _o(e=(e+" "+bb(t)).trim())?e:""}function bb(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ze(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var o=yo(n);e=(e+" "+o).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+bb(n)).trim())}catch(u){re.error("[AutoCapture]",u)}})),e}function Sb(t){return t.replace(/"|\\"/g,'\\"')}function l3(t){var e=t.attr__class;return e?Oe(e)?e:Hh(e):void 0}var Pu=ot("[Dead Clicks]"),u3=()=>!0,c3=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(Sh)),r=t.instance.config.capture_dead_clicks;return Kn(r)?r:!!ut(r)||n};class Eb{get lazyLoadedDeadClicksAutocapture(){return this.ur}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[Sh]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.lr((()=>{this.hr()})):this.stop()}lr(e){var n,r;(n=pe.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(o=>{o?Pu.error("failed to load script",o):e()}))}hr(){var e;if(ae){if(!this.ur&&(e=pe.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=ut(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.ur=pe.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.ur.start(ae),Pu.info("starting...")}}else Pu.error("`document` not found. Cannot start.")}stop(){this.ur&&(this.ur.stop(),this.ur=void 0,Pu.info("stopping..."))}}var Xh=ot("[SegmentIntegration]"),xb="posthog-js";function Tb(t,e){var{organization:n,projectId:r,prefix:o,severityAllowList:u=["error"],sendExceptionsToPostHog:c=!0}=e===void 0?{}:e;return f=>{var h,g,m,v,_;if(u!=="*"&&!u.includes(f.level)||!t.__loaded)return f;f.tags||(f.tags={});var b=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());f.tags["PostHog Person URL"]=b,t.sessionRecordingStarted()&&(f.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var x,E=((h=f.exception)==null?void 0:h.values)||[],M=E.map((q=>ne({},q,{stacktrace:q.stacktrace?ne({},q.stacktrace,{type:"raw",frames:(q.stacktrace.frames||[]).map((F=>ne({},F,{platform:"web:javascript"})))}):void 0}))),R={$exception_message:((g=E[0])==null?void 0:g.value)||f.message,$exception_type:(m=E[0])==null?void 0:m.type,$exception_level:f.level,$exception_list:M,$sentry_event_id:f.event_id,$sentry_exception:f.exception,$sentry_exception_message:((v=E[0])==null?void 0:v.value)||f.message,$sentry_exception_type:(_=E[0])==null?void 0:_.type,$sentry_tags:f.tags};return n&&r&&(R.$sentry_url=(o||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+f.event_id),c&&((x=t.exceptions)==null||x.sendExceptionEvent(R)),f}}class f3{constructor(e,n,r,o,u,c){this.name=xb,this.setupOnce=function(f){f(Tb(e,{organization:n,projectId:r,prefix:o,severityAllowList:u,sendExceptionsToPostHog:c==null||c}))}}}class wb{constructor(e){this.cr=(n,r,o)=>{o&&(o.noSessionId||o.activityTimeout||o.sessionPastMaximumLength)&&(re.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:o}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,n){var r,o=this.gr(e,n);return this.dr={pathname:(r=B?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),o}doPageLeave(e){var n;return this.gr(e,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,n){var r=this.dr;if(!r)return{$pageview_id:n};var o={$pageview_id:n,$prev_pageview_id:r.pageViewId},u=this._instance.scrollManager.getContext();if(u&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:c,lastScrollY:f,maxScrollY:h,maxContentHeight:g,lastContentY:m,maxContentY:v}=u;if(!(se(c)||se(f)||se(h)||se(g)||se(m)||se(v))){c=Math.ceil(c),f=Math.ceil(f),h=Math.ceil(h),g=Math.ceil(g),m=Math.ceil(m),v=Math.ceil(v);var _=c>1?Zn(f/c,0,1,re):1,b=c>1?Zn(h/c,0,1,re):1,x=g>1?Zn(m/g,0,1,re):1,E=g>1?Zn(v/g,0,1,re):1;o=We(o,{$prev_pageview_last_scroll:f,$prev_pageview_last_scroll_percentage:_,$prev_pageview_max_scroll:h,$prev_pageview_max_scroll_percentage:b,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:x,$prev_pageview_max_content:v,$prev_pageview_max_content_percentage:E})}}return r.pathname&&(o.$prev_pageview_pathname=r.pathname),r.timestamp&&(o.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),o}}var Hu=["flags","surveys"],d3={[F0]:{exposure:"hidden"},[co]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[fo]:{exposure:"hidden"},[gh]:{exposure:"event"},[mh]:{exposure:"hidden"},[vh]:{exposure:"event"},[yh]:{exposure:"hidden"},[_h]:{exposure:"event"},[bh]:{exposure:"event"},[Sh]:{exposure:"event"},[Eh]:{exposure:"hidden"},[xh]:{exposure:"event"},[Vs]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Nr]:{exposure:"hidden"},[Th]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[zr]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!ut(t))return{};for(var e={},n=Object.keys(t),r=0;n.length>r;r++)e["$feature/"+n[r]]=t[n[r]];return e}},[Ru]:{exposure:"event",storageGroup:"flags"},[ho]:{exposure:"hidden"},[wh]:{exposure:"hidden",storageGroup:"flags"},[Ah]:{exposure:"event",storageGroup:"flags"},[Ch]:{exposure:"event",storageGroup:"flags"},[hi]:{exposure:"event"},[jr]:{exposure:"hidden"},[po]:{exposure:"hidden"},[Is]:{exposure:"hidden"},[Mh]:{exposure:"hidden",storageGroup:"surveys"},[Oh]:{exposure:"hidden",storageGroup:"surveys"},[Rh]:{exposure:"event"},[Du]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[go]:{exposure:"hidden"},[Dh]:{exposure:"hidden"},[kh]:{exposure:"hidden"},[mo]:{exposure:"hidden",storageGroup:"flags"},[Pn]:{exposure:"hidden"},[Lh]:{exposure:"hidden"},[Nh]:{exposure:"hidden"},[zh]:{exposure:"hidden"},[jh]:{exposure:"hidden"},[ku]:{exposure:"hidden"},[Lu]:{exposure:"hidden"},[$0]:{exposure:"event"},[G0]:{exposure:"event"},[Y0]:{exposure:"event"},[X0]:{exposure:"event"},[Z0]:{exposure:"event"},[Q0]:{exposure:"event"},[J0]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},h3=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],bo=t=>{var e=d3[t];if(e)return e;for(var[n,r]of h3)if(t.indexOf(n)===0)return r},Fu=t=>{var e=ae?.createElement("a");return se(e)?null:(e.href=t,e)},So=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),o=0;r.length>o;o++){var u=r[o].split("=");if(u[0]===e){n=u;break}}if(!Oe(n)||2>n.length)return"";var c=n[1];try{c=decodeURIComponent(c)}catch{re.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")},Eo=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),o=r[1],u=(r[0]||"").split("?"),c=u[1],f=u[0],h=(c||"").split("&"),g=[],m=0;h.length>m;m++){var v=h[m].split("=");Oe(v)&&(e.includes(v[0])?g.push(v[0]+"="+n):g.push(h[m]))}var _=f;return c!=null&&(_+="?"+g.join("&")),o!=null&&(_+="#"+o),_},$u=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},Gu="https?://(.*)",Ir=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],p3=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ir],xo="<masked>",g3=["li_fat_id"];function Ab(t,e,n){if(!ae)return{};var r,o=e?[...Ir,...n||[]]:[],u=Cb(Eo(ae.URL,o,xo),t),c=(r={},Ze(g3,(function(f){var h=Qn.A(f);r[f]=h||null})),r);return We(c,u)}function Cb(t,e){var n=p3.concat(e||[]),r={};return Ze(n,(function(o){var u=So(t,o);r[o]=u||null})),r}function Mb(t){var e=(function(u){return u?u.search(Gu+"google.([^/?]*)")===0?"google":u.search(Gu+"bing.com")===0?"bing":u.search(Gu+"yahoo.com")===0?"yahoo":u.search(Gu+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!un(e)){r.$search_engine=e;var o=ae?So(ae.referrer,n):"";o.length&&(r.ph_keyword=o)}return r}function Ob(){return navigator.language||navigator.userLanguage}var Yu="$direct";function Rb(){return ae?.referrer||Yu}function Db(t,e){var n=t?[...Ir,...e||[]]:[],r=Rt?.href.substring(0,1e3);return{r:Rb().substring(0,1e3),u:r?Eo(r,n,xo):void 0}}function kb(t){var e,{r:n,u:r}=t,o={$referrer:n,$referring_domain:n==null?void 0:n==Yu?Yu:(e=Fu(n))==null?void 0:e.host};if(r){o.$current_url=r;var u=Fu(r);o.$host=u?.host,o.$pathname=u?.pathname;var c=Cb(r);We(o,c)}if(n){var f=Mb(n);We(o,f)}return o}function Lb(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function m3(){try{return new Date().getTimezoneOffset()}catch{return}}var v3={flags:mo,surveys:Oh},y3=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],qr="main";class Kh{constructor(e,n,r){if(r===void 0&&(r=!0),this.mr={},this.yr=!1,this.br=!1,this.qt=e,this._r=r,this.props={},this.wr=!1,this.Sr=(u=>{var c="";return u.token&&(c=u.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),u.persistence_name?"ph_"+u.persistence_name:"ph_"+c+"_posthog"})(e),this.nr=this.kr(e),this.br=this.Cr(e),this.load(),e.debug&&re.info("Persistence loaded",e.persistence,ne({},this.props)),this.update_config(e,e,n),this.save(),B){var o=()=>this.flush();dt(B,"beforeunload",o,{capture:!1}),dt(B,"pagehide",o,{capture:!1})}}Ir(){var e,n=(e=this.qt)==null?void 0:e.persistence_save_debounce_ms;return Gt(n)&&n>0?n:0}isDisabled(){return!!this.Tr}kr(e){y3.indexOf(e.persistence.toLowerCase())===-1&&(re.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n,r=(function(c,f){c===void 0&&(c=[]),f===void 0&&(f=!1);var h=[...ZD,...c];return ne({},Xe,{F(g){try{var m={};try{m=Qn.F(g)||{}}catch{}var v,_=JSON.parse(Xe.A(g)||"{}");if(f){var b={};for(var x in m){var E=m[x];un(E)||E===""||(b[x]=E)}v=We(_,b)}else v=We(m,_);return Xe.N(g,v),v}catch{}return null},N(g,m,v,_,b,x){var E=Xe.N(g,m,void 0,void 0,x);try{var M={};h.forEach((R=>{m[R]&&(M[R]=m[R])})),Object.keys(M).length&&Qn.N(g,M,v,_,b,x)}catch(R){Xe.D(R)}return E},q(g,m){try{B?.localStorage.removeItem(g),Qn.q(g,m)}catch(v){Xe.D(v)}}})})(e.cookie_persisted_properties||[],e.__preview_cookie_wins_on_conflict||!1),o=!1,u=e.persistence.toLowerCase();return u==="localstorage"&&Xe.O()?(n=Xe,o=!0):u==="localstorage+cookie"&&r.O()?(n=r,o=!0):u==="sessionstorage"&&Dt.O()?n=Dt:u==="memory"?n=QD:u==="cookie"?n=Qn:r.O()?(n=r,o=!0):n=Qn,this.yr=o,n}Er(e){return this.Sr+"__"+e}Cr(e){return this.yr&&!!e.split_storage}Mr(e){var n=e??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var r=this.props[mo];return!r||typeof r!="number"||Date.now()-r>n}properties(){var e={};return Ze(this.props,((n,r)=>{var o=bo(r);if(o?.exposure==="derived"){if(o.shouldSkipFromEventProperties!=null&&o.shouldSkipFromEventProperties(n,r===zr?()=>this.Mr():()=>!1))return;o.transformToEventProperties&&We(e,o.transformToEventProperties(n))}else o&&o.exposure!=="event"||(e[r]=n)})),e}load(){if(!this.Tr){var e=this.nr.F(this.Sr);e&&(this.props=We({},e)),this.br&&this.Rr()}}Rr(){for(var e of Hu){var n=Xe.F(this.Er(e));if(n&&!Gi(n)){var r=this.Pr(e);r.persisted=!0,this.Or(e)||(r.fingerprint=this.Lr(n,e)),this.Fr(e,n)||We(this.props,n)}}}Or(e){return Object.keys(this.props).some((n=>{var r;return((r=bo(n))==null?void 0:r.storageGroup)===e}))}Fr(e,n){var r=v3[e];if(!r)return!1;var o=n[r],u=this.props[r];return Gt(o)&&Gt(u)&&u>o}refreshKey(e){var n;if(!this.Tr){var r=this.br?(n=bo(e))==null?void 0:n.storageGroup:void 0,o=r?Xe.F(this.Er(r)):this.nr.F(this.Sr);if(o&&e in o)this.Ar(e,o[e]);else{if(r){var u=this.nr.F(this.Sr);if(u&&e in u)return void this.Ar(e,u[e])}this.Nr(e)}}}save(){if(!this.Tr){var e=this.Ir();e>0?se(this.Dr)&&(this.Dr=setTimeout((()=>{this.Dr=void 0,this.$r()}),e)):this.$r()}}flush(){se(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0,this.$r())}$r(){this.Tr||(this.br?this.qr():this.jr(this.nr,this.Sr,this.props,qr))}qr(){var{main:e,groups:n}=this.Hr();for(var r of(this.jr(this.nr,this.Sr,e,qr),Hu)){var o,u=n[r];(!Gi(u)||(o=this.mr[r])!=null&&o.persisted)&&this.jr(Xe,this.Er(r),u,r)}}Hr(){var e={},n={};for(var r of Hu)n[r]={};return Ze(this.props,((o,u)=>{var c,f=(c=bo(u))==null?void 0:c.storageGroup;f?n[f][u]=o:e[u]=o})),{main:e,groups:n}}Lr(e,n){var r=JSON.stringify(e);return n===qr?r+"|"+this.Ur+"|"+this.Br+"|"+this.zr:r}jr(e,n,r,o){var u=this.Pr(o);if(o===qr||u.dirty||se(u.fingerprint)){var c;try{if((c=this.Lr(r,o))===u.fingerprint)return void(u.dirty=!1)}catch{c=void 0}e.N(n,r,this.Ur,this.Br,this.zr,this.qt.debug)?(u.dirty=!1,o!==qr&&(u.persisted=!0),se(c)||(u.fingerprint=c)):this.qt.debug&&re.warn('failed to persist storage entry "'+n+'"; will retry on next save')}}remove(e){var{keepGroupEntries:n=!1}=e===void 0?{}:e;if(se(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0),this.nr.q(this.Sr,!1),this.nr.q(this.Sr,!0),!n&&this._r)for(var r of Hu)Xe.q(this.Er(r));n?delete this.mr[qr]:this.mr={}}clear(){this.remove(),this.props={}}register_once(e,n,r){if(ut(e)){se(n)&&(n="None"),this.Ur=se(r)?this.Vr:r;var o=!1;if(Ze(e,((u,c)=>{this.props.hasOwnProperty(c)&&this.props[c]!==n||(this.Ar(c,u),o=!0)})),o)return this.save(),!0}return!1}register(e,n){if(ut(e)){this.Ur=se(n)?this.Vr:n;var r=!1;if(Ze(e,((o,u)=>{e.hasOwnProperty(u)&&this.props[u]!==o&&(this.Ar(u,o),r=!0)})),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Nr(e),this.save())}update_campaign_params(){if(!this.wr){var e=Ab(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Gi(qh(e))||this.register(e),this.wr=!0}}update_search_keyword(){var e;this.register((e=ae?.referrer)?Mb(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Rb(),$referring_domain:ae!=null&&ae.referrer&&((e=Fu(ae.referrer))==null?void 0:e.host)||Yu},void 0)}set_initial_person_info(){this.props[zh]||this.props[jh]||this.register_once({[ku]:Db(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Ze([jh,zh],(c=>{var f=this.props[c];f&&Ze(f,(function(h,g){e["$initial_"+Jd(g)]=h}))}));var n,r,o=this.props[ku];if(o){var u=(n=kb(o),r={},Ze(n,(function(c,f){r["$initial_"+Jd(f)]=c})),r);We(e,u)}return e}safe_merge(e){return Ze(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){this.Vr=this.Ur=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var o=e.persistence!==n.persistence||!((h,g)=>{if(h.length!==g.length)return!1;var m=[...h].sort(),v=[...g].sort();return m.every(((_,b)=>_===v[b]))})(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[]),u=o?this.kr(e):this.nr,c=this.Cr(e);if(o||c!==this.br){var f=this.props;this.clear(),this.nr=u,this.br=c,this.props=f,this.save()}}set_disabled(e){this.Tr=e,this.Tr?this.remove():this.save()}set_cross_subdomain(e){e!==this.Br&&(this.Br=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.zr&&(this.zr=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,n){var r=this.props[fo]||{};r[e]=n,this.Ar(fo,r),this.save()}remove_event_timer(e){var n=this.props[fo]||{},r=n[e];return se(r)||(delete n[e],this.Ar(fo,n),this.save()),r}get_property(e){return this.props[e]}set_property(e,n){this.Ar(e,n),this.save()}Ar(e,n){this.props[e]=n,this.Wr(e)}Nr(e){delete this.props[e],this.Wr(e)}Wr(e){var n,r=(n=bo(e))==null?void 0:n.storageGroup;r&&(this.Pr(r).dirty=!0)}Pr(e){return this.mr[e]||(this.mr[e]={})}}var To={Activation:"events",Cancellation:"cancelEvents"},Zh={Popover:"popover",API:"api",Widget:"widget"},wo={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Qh={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Jh={Popover:"popover",Inline:"inline"},_3={SHOWN:"product tour shown"},Nb={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},zb=ot("[RateLimiter]");class b3{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((o=>{zb.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void zb.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,o;e===void 0&&(e=!1);var{captureEventsBurstLimit:u,captureEventsPerSecond:c}=this,f=new Date().getTime(),h=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Nh))!==null&&n!==void 0?n:{tokens:u,last:f};h.tokens+=(f-h.last)/1e3*c,h.last=f,h.tokens>u&&(h.tokens=u);var g=1>h.tokens;return g||e||(h.tokens=Math.max(0,h.tokens-1)),!g||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+c+" events per second and "+u+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=g,(o=this.instance.persistence)==null||o.set_property(Nh,h),{isRateLimited:g,remainingTokens:h.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var Ao=ot("[RemoteConfig]");class jb{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=pe._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Zr(e){var n,r;(n=pe.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Gr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){e(n.json)}})}load(){try{if(this.remoteConfig)return Ao.info("Using preloaded remote config",this.remoteConfig),this.Qr(this.remoteConfig),void this.Jr();if(this._instance.Kr())return void Ao.warn("Remote config is disabled. Falling back to local config.");this.Zr((e=>{if(!e)return Ao.info("No config found after loading remote JS config. Falling back to JSON."),void this.Gr((n=>{this.Qr(n),this.Jr()}));this.Qr(e),this.Jr()}))}catch(e){Ao.error("Error loading remote config",e)}}stop(){this.Yr&&(clearInterval(this.Yr),this.Yr=void 0)}refresh(){!this._instance.Kr()&&ae&&ae.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Jr(){var e;if(!this.Yr){var n=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;n!==0&&(this.Yr=setInterval((()=>{this.refresh()}),n))}}Qr(e){var n;e||Ao.error("Failed to fetch remote config from PostHog."),this._instance.Qr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var Jn={GZipJS:"gzip-js",Base64:"base64"},wn=Uint8Array,Zt=Uint16Array,Pr=Uint32Array,Wh=new wn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ep=new wn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ub=new wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bb=function(t,e){for(var n=new Zt(31),r=0;31>r;++r)n[r]=e+=1<<t[r-1];var o=new Pr(n[30]);for(r=1;30>r;++r)for(var u=n[r];n[r+1]>u;++u)o[u]=u-n[r]<<5|r;return[n,o]},Vb=Bb(Wh,2),tp=Vb[1];Vb[0][28]=258,tp[258]=28;for(var Ib=Bb(ep,0)[1],qb=new Zt(32768),et=0;32768>et;++et){var Hr=(43690&et)>>>1|(21845&et)<<1;qb[et]=((65280&(Hr=(61680&(Hr=(52428&Hr)>>>2|(13107&Hr)<<2))>>>4|(3855&Hr)<<4))>>>8|(255&Hr)<<8)>>>1}var Co=function(t,e,n){for(var r=t.length,o=0,u=new Zt(e);r>o;++o)++u[t[o]-1];var c,f=new Zt(e);for(o=0;e>o;++o)f[o]=f[o-1]+u[o-1]<<1;for(c=new Zt(r),o=0;r>o;++o)c[o]=qb[f[t[o]-1]++]>>>15-t[o];return c},Hs=new wn(288);for(et=0;144>et;++et)Hs[et]=8;for(et=144;256>et;++et)Hs[et]=9;for(et=256;280>et;++et)Hs[et]=7;for(et=280;288>et;++et)Hs[et]=8;var Xu=new wn(32);for(et=0;32>et;++et)Xu[et]=5;var S3=Co(Hs,9),E3=Co(Xu,5),Pb=function(t){return(t/8>>0)+(7&t&&1)},Hb=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof Zt?Zt:t instanceof Pr?Pr:wn)(n-e);return r.set(t.subarray(e,n)),r},gi=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8},Mo=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8,t[r+2]|=n>>>16},np=function(t,e){for(var n=[],r=0;t.length>r;++r)t[r]&&n.push({s:r,f:t[r]});var o=n.length,u=n.slice();if(!o)return[new wn(0),0];if(o==1){var c=new wn(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(U,Q){return U.f-Q.f})),n.push({s:-1,f:25001});var f=n[0],h=n[1],g=0,m=1,v=2;for(n[0]={s:-1,f:f.f+h.f,l:f,r:h};m!=o-1;)f=n[n[v].f>n[g].f?g++:v++],h=n[g!=m&&n[v].f>n[g].f?g++:v++],n[m++]={s:-1,f:f.f+h.f,l:f,r:h};var _=u[0].s;for(r=1;o>r;++r)u[r].s>_&&(_=u[r].s);var b=new Zt(_+1),x=ip(n[m-1],b,0);if(x>e){r=0;var E=0,M=x-e,R=1<<M;for(u.sort((function(U,Q){return b[Q.s]-b[U.s]||U.f-Q.f}));o>r;++r){var q=u[r].s;if(e>=b[q])break;E+=R-(1<<x-b[q]),b[q]=e}for(E>>>=M;E>0;){var F=u[r].s;e>b[F]?E-=1<<e-b[F]++-1:++r}for(;r>=0&&E;--r){var K=u[r].s;b[K]==e&&(--b[K],++E)}x=e}return[new wn(b),x]},ip=function(t,e,n){return t.s==-1?Math.max(ip(t.l,e,n+1),ip(t.r,e,n+1)):e[t.s]=n},Fb=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Zt(++e),r=0,o=t[0],u=1,c=function(h){n[r++]=h},f=1;e>=f;++f)if(t[f]==o&&f!=e)++u;else{if(!o&&u>2){for(;u>138;u-=138)c(32754);u>2&&(c(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(c(o),--u;u>6;u-=6)c(8304);u>2&&(c(u-3<<5|8208),u=0)}for(;u--;)c(o);u=1,o=t[f]}return[n.subarray(0,r),e]},Oo=function(t,e){for(var n=0,r=0;e.length>r;++r)n+=t[r]*e[r];return n},sp=function(t,e,n){var r=n.length,o=Pb(e+2);t[o]=255&r,t[o+1]=r>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var u=0;r>u;++u)t[o+u+4]=n[u];return 8*(o+4+r)},$b=function(t,e,n,r,o,u,c,f,h,g,m){gi(e,m++,n),++o[256];for(var v=np(o,15),_=v[0],b=v[1],x=np(u,15),E=x[0],M=x[1],R=Fb(_),q=R[0],F=R[1],K=Fb(E),U=K[0],Q=K[1],P=new Zt(19),I=0;q.length>I;++I)P[31&q[I]]++;for(I=0;U.length>I;++I)P[31&U[I]]++;for(var $=np(P,7),ee=$[0],le=$[1],ie=19;ie>4&&!ee[Ub[ie-1]];--ie);var he,ye,L,A,N=g+5<<3,J=Oo(o,Hs)+Oo(u,Xu)+c,te=Oo(o,_)+Oo(u,E)+c+14+3*ie+Oo(P,ee)+(2*P[16]+3*P[17]+7*P[18]);if(J>=N&&te>=N)return sp(e,m,t.subarray(h,h+g));if(gi(e,m,1+(J>te)),m+=2,J>te){he=Co(_,b),ye=_,L=Co(E,M),A=E;var ue=Co(ee,le);for(gi(e,m,F-257),gi(e,m+5,Q-1),gi(e,m+10,ie-4),m+=14,I=0;ie>I;++I)gi(e,m+3*I,ee[Ub[I]]);m+=3*ie;for(var T=[q,U],j=0;2>j;++j){var W=T[j];for(I=0;W.length>I;++I)gi(e,m,ue[H=31&W[I]]),m+=ee[H],H>15&&(gi(e,m,W[I]>>>5&127),m+=W[I]>>>12)}}else he=S3,ye=Hs,L=E3,A=Xu;for(I=0;f>I;++I)if(r[I]>255){var H;Mo(e,m,he[257+(H=r[I]>>>18&31)]),m+=ye[H+257],H>7&&(gi(e,m,r[I]>>>23&31),m+=Wh[H]);var oe=31&r[I];Mo(e,m,L[oe]),m+=A[oe],oe>3&&(Mo(e,m,r[I]>>>5&8191),m+=ep[oe])}else Mo(e,m,he[r[I]]),m+=ye[r[I]];return Mo(e,m,he[256]),m+ye[256]},x3=new Pr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),T3=(function(){for(var t=new Pr(256),e=0;256>e;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),rp=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function w3(t,e){e===void 0&&(e={});var n=(function(){var v=4294967295;return{p(_){for(var b=v,x=0;_.length>x;++x)b=T3[255&b^_[x]]^b>>>8;v=b},d(){return 4294967295^v}}})(),r=t.length;n.p(t);var o,u,c,f,h,g=(f=10+((o=e).filename&&o.filename.length+1||0),h=8,(function(v,_,b,x,E,M){var R=v.length,q=new wn(x+R+5*(1+Math.floor(R/7e3))+E),F=q.subarray(x,q.length-E),K=0;if(!_||8>R)for(var U=0;R>=U;U+=65535){var Q=U+65535;R>Q?K=sp(F,K,v.subarray(U,Q)):(F[U]=!0,K=sp(F,K,v.subarray(U,R)))}else{for(var P=x3[_-1],I=P>>>13,$=8191&P,ee=(1<<b)-1,le=new Zt(32768),ie=new Zt(ee+1),he=Math.ceil(b/3),ye=2*he,L=function(il){return(v[il]^v[il+1]<<he^v[il+2]<<ye)&ee},A=new Pr(25e3),N=new Zt(288),J=new Zt(32),te=0,ue=0,T=(U=0,0),j=0,W=0;R>U;++U){var H=L(U),oe=32767&U,ge=ie[H];if(le[oe]=ge,ie[H]=oe,U>=j){var Me=R-U;if((te>7e3||T>24576)&&Me>423){K=$b(v,F,0,A,N,J,ue,T,W,U-W,K),T=te=ue=0,W=U;for(var je=0;286>je;++je)N[je]=0;for(je=0;30>je;++je)J[je]=0}var Ue=2,it=0,Ft=$,At=oe-ge&32767;if(Me>2&&H==L(U-At))for(var tr=Math.min(I,Me)-1,Qt=Math.min(32767,U),ss=Math.min(258,Me);Qt>=At&&--Ft&&oe!=ge;){if(v[U+Ue]==v[U+Ue-At]){for(var Yt=0;ss>Yt&&v[U+Yt]==v[U+Yt-At];++Yt);if(Yt>Ue){if(Ue=Yt,it=At,Yt>tr)break;var Ei=Math.min(At,Yt-2),ti=0;for(je=0;Ei>je;++je){var nr=U-At+je+32768&32767,aa=nr-le[nr]+32768&32767;aa>ti&&(ti=aa,ge=nr)}}}At+=(oe=ge)-(ge=le[oe])+32768&32767}if(it){A[T++]=268435456|tp[Ue]<<18|Ib[it];var oa=31&tp[Ue],kc=31&Ib[it];ue+=Wh[oa]+ep[kc],++N[257+oa],++J[kc],j=U+Ue,++te}else A[T++]=v[U],++N[v[U]]}}K=$b(v,F,!0,A,N,J,ue,T,W,U-W,K)}return Hb(q,0,x+Pb(K)+E)})(u=t,(c=e).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(u.length)))):12+c.mem,f,h)),m=g.length;return(function(v,_){var b=_.filename;if(v[0]=31,v[1]=139,v[2]=8,v[8]=2>_.level?4:_.level==9?2:0,v[9]=3,_.mtime!=0&&rp(v,4,Math.floor(new Date(_.mtime||Date.now())/1e3)),b){v[3]=8;for(var x=0;b.length>=x;++x)v[x+10]=b.charCodeAt(x)}})(g,e),rp(g,m-8,n.d()),rp(g,m-4,r),g}var A3=!!Kd||!!Xd,Gb="text/plain",Ku=!1,C3=(t,e)=>{var[n,r]=t.split("#"),[o,u]=n.split("?");if(!u)return t;var c=u.split("&").filter((f=>f.split("=")[0]!==e)).join("&");return o+(c?"?"+c:"")+(r?"#"+r:"")},Zu=function(t,e,n){var r;n===void 0&&(n=!0);var[o,u]=t.split("?"),c=ne({},e),f=(r=u?.split("&").map((g=>{var m,[v,_]=g.split("="),b=n&&(m=c[v])!==null&&m!==void 0?m:_;return delete c[v],v+"="+b})))!==null&&r!==void 0?r:[],h=(function(g,m){var v,_;m===void 0&&(m="&");var b=[];return Ze(g,(function(x,E){se(x)||se(E)||E==="undefined"||(v=encodeURIComponent((M=>M instanceof File)(x)?x.name:x.toString()),_=encodeURIComponent(E),b[b.length]=_+"="+v)})),b.join(m)})(c);return h&&f.push(h),o+"?"+f.join("&")},Fr=(t,e)=>JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e),Yb=t=>{if(t.tr)return t.tr;var{data:e,compression:n}=t;if(e){if(n===Jn.GZipJS){var r=w3((function(f,h){var g=f.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(f);for(var m=new wn(f.length+(f.length>>>1)),v=0,_=function(M){m[v++]=M},b=0;g>b;++b){if(v+5>m.length){var x=new wn(v+8+(g-b<<1));x.set(m),m=x}var E=f.charCodeAt(b);128>E?_(E):2048>E?(_(192|E>>>6),_(128|63&E)):E>55295&&57344>E?(_(240|(E=65536+(1047552&E)|1023&f.charCodeAt(++b))>>>18),_(128|E>>>12&63),_(128|E>>>6&63),_(128|63&E)):(_(224|E>>>12),_(128|E>>>6&63),_(128|63&E))}return Hb(m,0,v)})(Fr(e)),{mtime:0});return{contentType:Gb,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===Jn.Base64){var o=(function(f){return f&&btoa(encodeURIComponent(f).replace(/%([0-9A-F]{2})/g,((h,g)=>String.fromCharCode(parseInt(g,16)))))})(Fr(e)),u=(f=>"data="+encodeURIComponent(typeof f=="string"?f:Fr(f)))(o);return{contentType:"application/x-www-form-urlencoded",body:u,estimatedSize:new Blob([u]).size}}var c=Fr(e);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},ap=t=>{var e,n,r,o=Yb(t);return!o||(n=t.compression,r=So(t.url,"compression"),n!==o0.GZipJS&&r!==o0.GZipJS&&r!=="gzip")||((e=o.body)instanceof ArrayBuffer?Zd(new Uint8Array(e)):ArrayBuffer.isView(e)&&Zd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)))?{url:t.url,encodedBody:o}:(Ku=!0,{url:C3(t.url,"compression"),encodedBody:Yb(ne({},t,{compression:void 0,tr:void 0}))})},M3=(function(){var t=ln((function*(e){var n=Fr(e.data),r=yield(function(u,c,f){return Qd.apply(this,arguments)})(n,wt.DEBUG,{rethrow:!0});if(!r)return e;var o=yield r.arrayBuffer();return ne({},e,{tr:{contentType:Gb,body:o,estimatedSize:o.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),Xb=(t,e)=>Zu(t,{_:new Date().getTime().toString(),ver:wt.JS_SDK_VERSION,compression:e}),Qu=[];Xd&&Qu.push({transport:"fetch",method(t){var e,{url:n,encodedBody:r}=ap(t),{contentType:o,body:u,estimatedSize:c}=r??{},f=new Headers;Ze(t.headers,(function(m,v){f.append(v,m)})),o&&f.append("Content-Type",o);var h=null;if(i0){var g=new i0;h={signal:g.signal,timeout:setTimeout((()=>g.abort()),t.timeout)}}Xd(n,ne({method:t?.method||"GET",headers:f,keepalive:t.method==="POST"&&52428.8>(c||0),body:u,signal:(e=h)==null?void 0:e.signal},t.fetchOptions)).then((m=>m.text().then((v=>{var _={statusCode:m.status,text:v};if(m.status===200)try{_.json=JSON.parse(v)}catch(b){re.error(b)}t.callback==null||t.callback(_)})))).catch((m=>{re.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>h?clearTimeout(h.timeout):null))}}),Kd&&Qu.push({transport:"XHR",method(t){var e=new Kd,{url:n,encodedBody:r}=ap(t);e.open(t.method||"GET",n,!0);var{contentType:o,body:u}=r??{};Ze(t.headers,(function(c,f){e.setRequestHeader(f,c)})),o&&e.setRequestHeader("Content-Type",o),t.timeout&&(e.timeout=t.timeout),t.disableXHRCredentials||(e.withCredentials=!0),e.onreadystatechange=()=>{if(e.readyState===4){var c={statusCode:e.status,text:e.responseText};if(e.status===200)try{c.json=JSON.parse(e.responseText)}catch{}t.callback==null||t.callback(c)}},e.send(u)}}),on!=null&&on.sendBeacon&&Qu.push({transport:"sendBeacon",method(t){try{var{url:e,encodedBody:n}=ap(t),r=Zu(e,{beacon:"1"}),{contentType:o,body:u}=n??{};if(!u)return;var c=u instanceof Blob?u:new Blob([u],{type:o});on.sendBeacon(r,c)}catch{}}});var op=3e3;class O3{constructor(e,n){this.Xr=!0,this.ei=[],this.ti=Zn(n?.flush_interval_ms||op,250,5e3,re.createLogger("flush interval"),op),this.ri=e}enqueue(e){this.ei.push(e),this.ii||this.ni()}unload(){this.si();var e=this.ei.length>0?this.oi():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.ri(ne({},r,{transport:"sendBeacon"}))}))}enable(){this.Xr=!1,this.ni()}ni(){var e=this;this.Xr||(this.ii=setTimeout((()=>{if(this.si(),this.ei.length>0){var n=this.oi(),r=function(){var u=n[o],c=new Date().getTime();u.data&&Oe(u.data)&&Ze(u.data,(f=>{f.offset=Math.abs(f.timestamp-c),delete f.timestamp})),e.ri(u)};for(var o in n)r()}}),this.ti))}si(){clearTimeout(this.ii),this.ii=void 0}oi(){var e={};return Ze(this.ei,(n=>{var r,o=n,u=(o?o.batchKey:null)||o.url;se(e[u])&&(e[u]=ne({},o,{data:[]})),(r=e[u].data)==null||r.push(o.data)})),this.ei=[],e}}var R3=["retriesPerformedSoFar"];class D3{constructor(e){this.ai=!1,this.ui=3e3,this.ei=[],this._instance=e,this.ei=[],this.li=!0,!se(B)&&"onLine"in B.navigator&&(this.li=B.navigator.onLine,this.hi=()=>{this.li=!0,this.ci()},this.di=()=>{this.li=!1},dt(B,"online",this.hi),dt(B,"offline",this.di))}get length(){return this.ei.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,r=a0(e,R3);fi(n)&&(r.url=Zu(r.url,{retry_count:n})),this._instance._send_request(ne({},r,{callback:o=>{o.statusCode===200||o.statusCode>=400&&500>o.statusCode||(n??0)>=10?r.callback==null||r.callback(o):this.vi(ne({retriesPerformedSoFar:n},r))}}))}vi(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(c){var f=3e3*Math.pow(2,c),h=f/2,g=Math.min(18e5,f),m=Math.random()-.5;return Math.ceil(g+m*(g-h))})(n),o=Date.now()+r;this.ei.push({retryAt:o,requestOptions:e});var u="Enqueued failed request for retry in "+r;navigator.onLine||(u+=" (Browser is offline)"),re.warn(u),this.ai||(this.ai=!0,this.fi())}fi(){if(this.pi&&clearTimeout(this.pi),this.ei.length===0)return this.ai=!1,void(this.pi=void 0);this.pi=setTimeout((()=>{this.li&&this.ei.length>0&&this.ci(),this.fi()}),this.ui)}ci(){var e=Date.now(),n=[],r=this.ei.filter((u=>e>u.retryAt||(n.push(u),!1)));if(this.ei=n,r.length>0)for(var{requestOptions:o}of r)this.retriableRequest(o)}unload(){for(var{requestOptions:e}of(this.pi&&(clearTimeout(this.pi),this.pi=void 0),this.ai=!1,se(B)||(this.hi&&(B.removeEventListener("online",this.hi),this.hi=void 0),this.di&&(B.removeEventListener("offline",this.di),this.di=void 0)),this.ei))try{this._instance._send_request(ne({},e,{transport:"sendBeacon"}))}catch(n){re.error(n)}this.ei=[]}}class k3{constructor(e){this.gi=()=>{var n,r,o,u;this.mi||(this.mi={});var c=this.scrollElement(),f=this.scrollY(),h=c?Math.max(0,c.scrollHeight-c.clientHeight):0,g=f+(c?.clientHeight||0),m=c?.scrollHeight||0;this.mi.lastScrollY=Math.ceil(f),this.mi.maxScrollY=Math.max(f,(n=this.mi.maxScrollY)!==null&&n!==void 0?n:0),this.mi.maxScrollHeight=Math.max(h,(r=this.mi.maxScrollHeight)!==null&&r!==void 0?r:0),this.mi.lastContentY=g,this.mi.maxContentY=Math.max(g,(o=this.mi.maxContentY)!==null&&o!==void 0?o:0),this.mi.maxContentHeight=Math.max(m,(u=this.mi.maxContentHeight)!==null&&u!==void 0?u:0)},this._instance=e}get yi(){return this._instance.config.scroll_root_selector}getContext(){return this.mi}resetContext(){var e=this.mi;return setTimeout(this.gi,0),e}startMeasuringScrollPosition(){dt(B,"scroll",this.gi,{capture:!0}),dt(B,"scrollend",this.gi,{capture:!0}),dt(B,"resize",this.gi)}scrollElement(){if(!this.yi)return B?.document.documentElement;var e=Oe(this.yi)?this.yi:[this.yi];for(var n of e){var r=B?.document.querySelector(n);if(r)return r}}bi(e){var n=e==="y"?"scrollTop":"scrollLeft";if(this.yi){var r=this.scrollElement();return r&&r[n]||0}return B?e==="y"?B.scrollY||B.pageYOffset||B.document.documentElement.scrollTop||0:B.scrollX||B.pageXOffset||B.document.documentElement.scrollLeft||0:0}scrollY(){return this.bi("y")}scrollX(){return this.bi("x")}}var L3=t=>Db(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class Kb{constructor(e,n,r,o){this.wi=u=>{var c=this.xi();if(!c||c.sessionId!==u){var f={sessionId:u,props:this.Si(this._instance)};this.ki.register({[Lh]:f})}},this._instance=e,this.Ci=n,this.ki=r,this.Si=o||L3,this.Ci.onSessionId(this.wi)}xi(){return this.ki.props[Lh]}getSetOnceProps(){var e,n=(e=this.xi())==null?void 0:e.props;return n?"r"in n?kb(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return Ze(qh(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+Jd(r)]=n})),e}}class lp{constructor(){this.Ii={}}on(e,n){return this.Ii[e]||(this.Ii[e]=[]),this.Ii[e].push(n),()=>{this.Ii[e]=this.Ii[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.Ii[e]||[])r(n);for(var o of this.Ii["*"]||[])o(e,n)}}var up=ot("[SessionId]");class Zb{on(e,n){return this.Ti.on(e,n)}constructor(e,n,r){var o;if(this.Ei=null,this.Mi=[],this.Ri=void 0,this.Ti=new lp,this.Pi=(g,m)=>!(!fi(g)||!fi(m))&&Math.abs(g-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===pi)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=e.config,this.ki=e.persistence,this.Oi=void 0,this.Li=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fi=n||Yi,this.Ai=r||Yi;var u=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*Zn(this.qt.session_idle_timeout_seconds||1800,60,36e3,up.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ni(),this.Di="ph_"+u+"_window_id",this.$i="ph_"+u+"_primary_window_exists",this.qi()){var c=Dt.F(this.Di),f=Dt.F(this.$i);c&&!f?this.Oi=c:Dt.q(this.Di),Dt.N(this.$i,!0)}if((o=this.qt.bootstrap)!=null&&o.sessionID)try{var h=(g=>{var m=this.qt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.ji(this.qt.bootstrap.sessionID,new Date().getTime(),h)}catch(g){up.error("Invalid sessionID in bootstrap",g)}this.Hi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return se(this.Mi)&&(this.Mi=[]),this.Mi.push(e),this.Li&&e(this.Li,this.Oi),()=>{this.Mi=this.Mi.filter((n=>n!==e))}}qi(){return this.qt.persistence!=="memory"&&!this.ki.Tr&&Dt.O()}Ui(e){e!==this.Oi&&(this.Oi=e,this.qi()&&Dt.N(this.Di,e))}Bi(){return this.Oi?this.Oi:this.qi()?Dt.F(this.Di):null}zi(e){var n=this.Ei;return!un(n)&&!un(e)&&5e3>Math.abs(e-n)}ji(e,n,r){var o=n!==this._sessionActivityTimestamp,u=!(e!==this.Li||r!==this._sessionStartTimestamp);this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.Li=e,u&&!o||u&&this.zi(n)||(this.Ei=n,this.ki.register({[Nr]:[n,e,r]}))}Vi(){var e,n=(e=this.qt)==null?void 0:e.persistence_save_debounce_ms;return fi(n)&&n>0}Wi(){var e;if(!un(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Ei){this.Vi()?this.ki.refreshKey(Nr):(this.ki.flush(),this.ki.load());var[,n,r]=this.Zi();n===this.Li&&r===this._sessionStartTimestamp&&(this.Ei=this._sessionActivityTimestamp,this.ki.register({[Nr]:[this._sessionActivityTimestamp,(e=this.Li)!==null&&e!==void 0?e:null,this._sessionStartTimestamp]}),this.ki.flush())}}Gi(){var[e]=this.Zi(),n=fi(e)?e:0,r=fi(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(n,r)}Zi(){var e=this.ki.props[Nr];return Oe(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ei=null,clearTimeout(this.Qi),this.Qi=void 0,this.ji(null,null,null)}destroy(){this.Wi(),clearTimeout(this.Qi),this.Qi=void 0,this.Ri&&B&&(B.removeEventListener(ju,this.Ri,{capture:!1}),this.Ri=void 0),this.Mi=[]}Hi(){this.Ri=()=>{this.Wi(),this.qi()&&Dt.q(this.$i)},dt(B,ju,this.Ri,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.qt.cookieless_mode===pi)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[,o,u]=this.Zi(),c=this.Gi(),f=this.Bi(),h=fi(u)&&Math.abs(r-u)>864e5,g=!1,m=!o,v=!m&&!e&&this.Pi(r,c);m||v||h?(o=this.Fi(),f=this.Ai(),up.info("new session ID generated",{sessionId:o,windowId:f,changeReason:{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}}),u=r,g=!0):f||(f=this.Ai(),g=!0);var _=fi(c)&&e&&!h?c:r,b=fi(u)?u:new Date().getTime();return this.Ui(f),this.ji(o,_,b),e||this.Ni(),g&&this.Mi.forEach((x=>x(o,f,g?{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}:void 0))),{sessionId:o,windowId:f,sessionStartTimestamp:b,changeReason:g?{noSessionId:m,activityTimeout:v,sessionPastMaximumLength:h}:void 0,lastActivityTimestamp:c}}Ni(){clearTimeout(this.Qi),this.Qi=setTimeout((()=>{var e=this.Gi();if(this.Pi(new Date().getTime(),e)){var n=this.Li;this.resetSessionId(),this.Ti.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var Qb=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&c0(n,e))return!0;try{var r=t?.userAgentData;if(r!=null&&r.brands&&r.brands.some((o=>c0(o?.brand,e))))return!0}catch{}return!!t.webdriver},Ju=function(t,e){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function Jb(t,e,n){return Fr({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var Wb={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>Ju(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!Ju(n,r))))),icontains:(t,e)=>e.map(Wu).some((n=>t.map(Wu).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(Wu).every((n=>t.map(Wu).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((o=>r>parseFloat(o)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((o=>r<parseFloat(o)))}))},Wu=t=>t.toLowerCase();function eS(t,e){return!t||Object.entries(t).every((n=>{var[r,o]=n,u=e?.[r];if(se(u)||un(u))return!1;var c=[String(u)],f=Wb[o.operator];return!!f&&f(o.values,c)}))}var cp="custom",tS="i.posthog.com",N3=/^\/static\//;class z3{constructor(e){this.Ji={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+tS,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Ji[this.apiHost]||(this.Ji[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":cp),this.Ji[this.apiHost]}Ki(e){var n=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof n=="string"&&N3.test(e))return n.trim().replace(/\/$/,"")||void 0}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(e==="assets"){var r=this.Ki(n);if(r)return""+r+n}if(this.region===cp)return this.apiHost+n;var o=tS+n;switch(e){case"assets":return"https://"+this.region+"-assets."+o;case"api":return"https://"+this.region+"."+o}}}var He=ot("[Surveys]"),fp="seenSurvey_",j3=[Zh.Popover,Zh.Widget,Zh.API],U3={ignoreConditions:!1,ignoreDelay:!1,displayType:Jh.Popover},B3=ot("[PostHog ExternalIntegrations]"),V3={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class I3{constructor(e){this._instance=e}lr(e,n){var r;(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(o=>{if(o)return B3.error("failed to load script",o);n()}))}startIfEnabledOrStop(){var e=this,n=function(c){var f,h,g;!o||(f=pe.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[c]||e.lr(V3[c],(()=>{var m;(m=pe.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[c])==null||m.start(e._instance)})),!o&&(h=pe.__PosthogExtensions__)!=null&&(h=h.integrations)!=null&&h[c]&&((g=pe.__PosthogExtensions__)==null||(g=g.integrations)==null||(g=g[c])==null||g.stop())};for(var[r,o]of Object.entries((u=this._instance.config.integrations)!==null&&u!==void 0?u:{})){var u;n(r)}}}var $r,Ro={},dp=0,hp=()=>{},nS='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Do="Surveys module not available",iS="sanitize_properties is deprecated. Use before_send instead",sS="Invalid value for property_denylist config: ",Gr="posthog",rS=!A3&&Kt?.indexOf("MSIE")===-1&&Kt?.indexOf("Mozilla")===-1,aS=t=>{var e;return ne({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:$D(ae?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:hp,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Rt&&at(Rt?.search)&&Rt.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(B==null||(e=B.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){re.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:Bh,before_send:void 0,request_queue_config:{flush_interval_ms:op},error_tracking:{},_onCapture:hp,__preview_eager_load_replay:!1},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:n3,ignore_text_selection:!0}:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n)}))(t))},q3=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],oS=t=>{var e={};for(var[n,r]of q3)se(t[n])||(e[r]=t[n]);var o=We({},e,t);return Oe(t.property_blacklist)&&(se(t.property_denylist)?o.property_denylist=t.property_blacklist:Oe(t.property_denylist)?o.property_denylist=[...t.property_blacklist,...t.property_denylist]:re.error(sS+t.property_denylist)),o};class P3{constructor(){this.__forceAllowLocalhost=!1}get Yi(){return this.__forceAllowLocalhost}set Yi(e){re.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class An{Xi(e,n){if(e){var r=this.en.indexOf(e);r!==-1&&this.en.splice(r,1)}return this.en.push(n),n.initialize==null||n.initialize(),n}tn(){return this.config.cookieless_mode===pi||this.config.cookieless_mode===qs&&this.consent.isRejected()}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new P3,this.rn=!1,this.version=wt.LIB_VERSION,this.nn=new lp,this.en=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=aS(),this.SentryIntegration=f3,this.sentryIntegration=r=>(function(o,u){var c=Tb(o,u);return{name:xb,processEvent:f=>c(f)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.sn=!1,this.an=null,this.un=null,this.ln=null,this.scrollManager=new k3(this),this.pageViewManager=new wb(this),this.rateLimiter=new b3(this),this.requestRouter=new z3(this),this.consent=new JD(this),this.externalIntegrations=new I3(this);var n=(e=An.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,o,u)=>{var c=at(r)?{[r]:o}:r;this.setPersonProperties(c),u?.({})},set_once:(r,o,u)=>{var c=at(r)?{[r]:o}:r;this.setPersonProperties(void 0,c),u?.({})}},this.on("eventCaptured",(r=>re.info('send "'+r?.event+'"',r)))}init(e,n,r){if(r&&r!==Gr){var o,u=(o=Ro[r])!==null&&o!==void 0?o:new An;return u._init(e,n,r),Ro[r]=u,Ro[Gr][r]=u,u}return this._init(e,n,r)}_init(e,n,r){var o,u;n===void 0&&(n={});var c=at(e)?e.trim():"";if(!c)return re.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.hn(n.debug),this.cn=n,this.dn=[],n.person_profiles?this.un=n.person_profiles:n.process_person&&(this.un=n.process_person);var f=aS(n.defaults),h=oS(n),g=We({},f,h,{name:r,token:c});ut(f.rageclick)&&ut(h.rageclick)&&(g.rageclick=We({},f.rageclick,h.rageclick)),this.set_config(g),this.config.on_xhr_error&&re.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Jn.GZipJS;var m=this.vn();this.persistence=new Kh(this.config,m),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Kh(ne({},this.config,{persistence:"sessionStorage"}),m,!1);var v=ne({},this.persistence.props),_=ne({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.fn=new O3((K=>this.pn(K)),this.config.request_queue_config),this.gn=new D3(this),this.__request_queue=[];var b=this.tn();if(b||(this.sessionManager=new Zb(this),this.sessionPropsManager=new Kb(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(re.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.mn(b)}),0)):(re.info("Initializing extensions synchronously"),this.mn(b)),wt.DEBUG=wt.DEBUG||this.config.debug,wt.DEBUG&&re.info("Starting in debug mode",{this:this,config:n,thisC:ne({},this.config),p:v,s:_}),!this.config.identity_distinct_id||(o=n.bootstrap)!=null&&o.distinctID||(n.bootstrap=ne({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((u=n.bootstrap)==null?void 0:u.distinctID)!==void 0){var x=n.bootstrap.distinctID,E=this.get_distinct_id(),M=this.persistence.get_property(Pn);if(n.bootstrap.isIdentifiedID&&E!=null&&E!==x&&M===Ur)this.identify(x);else if(n.bootstrap.isIdentifiedID&&E!=null&&E!==x&&M===Br)re.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var R=this.config.get_device_id(Yi()),q=n.bootstrap.isIdentifiedID?R:x;this.persistence.set_property(Pn,n.bootstrap.isIdentifiedID?Br:Ur),this.register({distinct_id:x,$device_id:q})}}if(b)this.register_once({distinct_id:Nu,$device_id:null},"");else if(!this.get_distinct_id()){var F=this.config.get_device_id(Yi());this.register_once({distinct_id:F,$device_id:F},""),this.persistence.set_property(Pn,Ur)}return dt(B,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(K,U){var Q=K.config.segment;if(!Q)return U();(function(P,I){var $=P.config.segment;if(!$)return I();var ee=ie=>{var he=()=>ie.anonymousId()||Yi();P.config.get_device_id=he,ie.id()&&(P.register({distinct_id:ie.id(),$device_id:he()}),P.persistence.set_property(Pn,Br)),I()},le=$.user();"then"in le&&ci(le.then)?le.then(ee):ee(le)})(K,(()=>{Q.register((P=>{Promise&&Promise.resolve||Xh.warn("This browser does not have Promise support, and can not use the segment integration");var I=($,ee)=>{if(!ee)return $;$.event.userId||$.event.anonymousId===P.get_distinct_id()||(Xh.info("No userId set, resetting PostHog"),P.reset()),$.event.userId&&$.event.userId!==P.get_distinct_id()&&(Xh.info("UserId set, identifying with PostHog"),P.identify($.event.userId));var le=P.calculateEventProperties(ee,$.event.properties);return $.event.properties=Object.assign({},le,$.event.properties),$};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:$=>I($,$.event.event),page:$=>I($,Vr),identify:$=>I($,Ih),screen:$=>I($,"$screen")}})(K)).then((()=>{U()}))}))})(this,(()=>this.yn())):this.yn(),ci(this.config._onCapture)&&this.config._onCapture!==hp&&(re.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(K=>this.config._onCapture(K.event,K)))),this.config.ip&&re.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}mn(e){var n,r,o,u,c,f,h,g=performance.now(),m=ne({},An.__defaultExtensionClasses,this.config.__extensionClasses),v=[];m.featureFlags&&this.en.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new m.featureFlags(this)),m.exceptions&&this.en.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new m.exceptions(this)),m.historyAutocapture&&this.en.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.en.push(this.tracingHeaders=new m.tracingHeaders(this)),m.siteApps&&this.en.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!e&&this.en.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||v.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.en.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.en.push(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new m.surveys(this)),m.logs&&this.en.push(this.logs=(u=this.logs)!==null&&u!==void 0?u:new m.logs(this)),m.conversations&&this.en.push(this.conversations=(c=this.conversations)!==null&&c!==void 0?c:new m.conversations(this)),m.productTours&&this.en.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.en.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.en.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.en.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.en.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,c3)),m.toolbar&&this.en.push(this.toolbar=(f=this.toolbar)!==null&&f!==void 0?f:new m.toolbar(this)),m.experiments&&this.en.push(this.experiments=(h=this.experiments)!==null&&h!==void 0?h:new m.experiments(this)),this.en.forEach((_=>{_.initialize&&v.push((()=>{_.initialize==null||_.initialize()}))})),v.push((()=>{if(this.bn){var _=this.bn;this.bn=void 0,this.Qr(_)}})),this._n(v,g)}_n(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this._n(e,n)}),0);var r=e.shift();if(r)try{r()}catch(u){re.error("Error initializing extension:",u)}}var o=Math.round(performance.now()-n);this.register_for_session({[Z0]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[Q0]:o}),this.config.__preview_deferred_init_extensions&&re.info("PostHog extensions initialized ("+o+"ms)")}Qr(e){var n;if(!ae||!ae.body)return re.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Qr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.bn=e),this.wn=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Ee(e.supportedCompression,Jn.GZipJS)?Jn.GZipJS:Ee(e.supportedCompression,Jn.Base64)?Jn.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.un?this.un:Bh}),this.en.forEach((r=>r.onRemoteConfig==null?void 0:r.onRemoteConfig(e)))}yn(){try{this.config.loaded(this)}catch(r){re.critical("`loaded` function failed",r)}if(this.xn(),this.config.internal_or_test_user_hostname&&Rt!=null&&Rt.hostname){var e=Rt.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.tn())&&this.Sn()}),1),this.kn=new jb(this),this.kn.load()}xn(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.fn)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Uu(this.__request_queue,(e=>this.pn(e))),this.__request_queue=[],this.xn()}_handle_unload(){var e,n,r,o;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Cn()&&this.capture(Vh),(n=this.logs)==null||n.flushLogs("sendBeacon"),(r=this.fn)==null||r.unload(),(o=this.gn)==null||o.unload()):this.Cn()&&this.capture(Vh,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(rS?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=Zu(e.url,{ip:this.config.ip?1:0}),e.headers=ne({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(n=>{var r,o,u,c=ne({},n);c.timeout=c.timeout||6e4,c.url=Xb(c.url,c.compression);var f=(r=c.transport)!==null&&r!==void 0?r:"fetch",h=Qu.filter((m=>!c.disableTransport||!m.transport||!c.disableTransport.includes(m.transport))),g=(o=(u=(function(m,v){for(var _=0;m.length>_;_++)if(m[_].transport===f)return m[_]})(h))==null?void 0:u.method)!==null&&o!==void 0?o:h[0].method;if(!g)throw new Error("No available transport method");f!=="sendBeacon"&&c.data&&c.compression===Jn.GZipJS&&eD&&!Ku?M3(c).then((m=>{g(m)})).catch((m=>{if(u0(m))return Ku=!0,void g(ne({},c,{compression:void 0,url:Xb(n.url,void 0)}));(v=>{if(!v||typeof v!="object")return!1;var _="name"in v?String(v.name):"";return u0(v)||_===l0})(m)&&(Ku=!0),g(c)})):g(c)})(ne({},e,{callback:n=>{var r,o;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(r=(o=this.config).on_request_error)==null||r.call(o,n),e.callback==null||e.callback(n)}}))))}pn(e){this.gn?this.gn.retriableRequest(e):this._send_request(e)}_execute_array(e){dp++;try{var n,r=[],o=[],u=[];Uu(e,(f=>{if(f)if(Oe(n=f[0]))u.push(f);else if(ci(f))try{f.call(this)}catch(h){re.error("Error executing queued PostHog call",f,h)}else Oe(f)&&n==="alias"?r.push(f):Oe(f)&&n.indexOf("capture")!==-1&&ci(this[n])?u.push(f):o.push(f)}));var c=function(f,h){Uu(f,(function(g){try{if(Oe(g[0])){var m=h;Ze(g,(function(v){m=m[v[0]].apply(m,v.slice(1))}))}else h[g[0]].apply(h,g.slice(1))}catch(v){re.error("Error executing queued PostHog call",g,v)}}))};c(r,this),c(o,this),c(u,this)}finally{dp--}}push(e){if(dp>0&&Oe(e)&&at(e[0])){var n=An.prototype[e[0]];ci(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,r){var o,u,c,f,h;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.fn){if(this.is_capturing())if(!se(e)&&at(e)){var g=!this.config.opt_out_useragent_filter&&this._is_bot();if(!g||this.config.__preview_capture_bot_pageviews){var m=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){n!=null&&n.$current_url&&!at(n?.$current_url)&&(re.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||r!=null&&r.In||re.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var v=new Date,_=r?.timestamp||v,b=r?.uuid||Yi(),x={uuid:b,event:e,properties:this.calculateEventProperties(e,n||{},_,b)};e===Vr&&this.config.__preview_capture_bot_pageviews&&g&&(x.event="$bot_pageview",x.properties.$browser_type="bot"),m&&(x.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),r?.$set&&(x.$set=r?.$set);var E,M,R,q=this.Tn(r?.$set_once,e!==W0,e===Ih);if(q&&(x.$set_once=q),r!=null&&r._noTruncate||(u=this.config.properties_string_max_length,c=x,f=$=>at($)?$.slice(0,u):$,h=new Set,x=(function $(ee,le){return ee!==Object(ee)?f?f(ee):ee:h.has(ee)?void 0:(h.add(ee),Oe(ee)?(ie=[],Uu(ee,(he=>{ie.push($(he))}))):(ie={},Ze(ee,((he,ye)=>{h.has(he)||(ie[ye]=$(he))}))),ie);var ie})(c)),x.timestamp=_,se(r?.timestamp)||(x.properties.$event_time_override_provided=!0,x.properties.$event_time_override_system_time=v),e===wo.DISMISSED||e===wo.SENT){var F=n?.[Qh.SURVEY_ID],K=n?.[Qh.SURVEY_ITERATION];($=>{try{var ee=(le=>((ie,he)=>{var ye=""+fp+he.id;return he.current_iteration&&he.current_iteration>0&&(ye=""+fp+he.id+"_"+he.current_iteration),ye})(0,le))($);if(localStorage.getItem(ee))return;localStorage.setItem(ee,"true")}catch(le){He.error("Failed to persist survey seen state",le)}})({id:F,current_iteration:K}),x.$set=ne({},x.$set,{[(E={id:F,current_iteration:K},M=e===wo.SENT?"responded":"dismissed",R="$survey_"+M+"/"+E.id,E.current_iteration&&E.current_iteration>0&&(R="$survey_"+M+"/"+E.id+"/"+E.current_iteration),R)]:!0})}else e===wo.SHOWN&&(x.$set=ne({},x.$set,{[Qh.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===_3.SHOWN){var U=n?.[Nb.TOUR_TYPE];U&&(x.$set=ne({},x.$set,{[Nb.TOUR_LAST_SEEN_DATE+"/"+U]:new Date().toISOString()}))}var Q=ne({},x.properties.$set,x.$set);if(Gi(Q)||this.setPersonPropertiesForFlags(Q),!Re(this.config.before_send)){var P=this.En(x);if(!P)return;x=P}this.nn.emit("eventCaptured",x);var I={method:"POST",url:(o=r?._url)!==null&&o!==void 0?o:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:x,compression:"best-available",batchKey:r?._batchKey,transport:r?.transport};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.pn(I):this.fn.enqueue(I),x}re.critical("This capture call is ignored due to client rate limiting.")}}else re.error("No event name provided to posthog.capture")}else re.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}calculateEventProperties(e,n,r,o,u){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var c=u?void 0:this.persistence.remove_event_timer(e),f=ne({},n);if(f.token=this.config.token,f.$config_defaults=this.config.defaults,this.tn()&&(f.$cookieless_mode=!0),e==="$snapshot"){var h=ne({},this.persistence.properties(),this.sessionPersistence.properties());return f.distinct_id=h.distinct_id,(!at(f.distinct_id)&&!Gt(f.distinct_id)||Wd(f.distinct_id))&&re.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),f}var g,m=(function(R,q){var F,K,U,Q;if(!Kt)return{};var P,I,$,ee,le,ie,he,ye,L,A=R?[...Ir,...q||[]]:[],[N,J]=(function(T){for(var j=0;z0.length>j;j++){var[W,H]=z0[j],oe=W.exec(T),ge=oe&&(ci(H)?H(oe,T):H);if(ge)return ge}return["",""]})(Kt),te=(P=typeof navigator<"u"?navigator:void 0)!=null&&P.brave?{brave:!0}:{},ue=We(qh({$os:N,$os_version:J,$browser:N0(Kt,navigator.vendor,te),$device:j0(Kt),$device_type:($=Kt,ee={userAgentDataPlatform:(F=navigator)==null||(F=F.userAgentData)==null?void 0:F.platform,maxTouchPoints:(K=navigator)==null?void 0:K.maxTouchPoints,screenWidth:B==null||(U=B.screen)==null?void 0:U.width,screenHeight:B==null||(Q=B.screen)==null?void 0:Q.height,devicePixelRatio:B?.devicePixelRatio},L=j0($),L===m0||L===g0||L==="Kobo"||L==="Kindle Fire"||L===R0?Or:L===ao||L===kr||L===oo||L===oh?"Console":L===y0?"Wearable":L?cn:ee?.userAgentDataPlatform==="Android"&&((le=ee?.maxTouchPoints)!==null&&le!==void 0?le:0)>0?600>Math.min((ie=ee?.screenWidth)!==null&&ie!==void 0?ie:0,(he=ee?.screenHeight)!==null&&he!==void 0?he:0)/((ye=ee?.devicePixelRatio)!==null&&ye!==void 0?ye:1)?cn:Or:"Desktop"),$timezone:Lb(),$timezone_offset:m3()}),{$current_url:Eo(Rt?.href,A,xo),$host:Rt?.host,$pathname:Rt?.pathname,$raw_user_agent:Kt.length>1e3?Kt.substring(0,997)+"...":Kt,$browser_version:vD(Kt,navigator.vendor,te),$browser_language:Ob(),$browser_language_prefix:(I=Ob(),typeof I=="string"?I.split("-")[0]:void 0),$screen_height:B?.screen.height,$screen_width:B?.screen.width,$viewport_height:B?.innerHeight,$viewport_width:B?.innerWidth,$lib:wt.LIB_NAME,$lib_version:wt.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return wt.SDK_DIST_CHANNEL&&(ue.$sdk_dist_channel=wt.SDK_DIST_CHANNEL),ue})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:v,windowId:_}=this.sessionManager.checkAndGetSessionAndWindowId(u,r.getTime());f.$session_id=v,f.$window_id=_}this.sessionPropsManager&&We(f,this.sessionPropsManager.getSessionProps());try{var b;this.sessionRecording&&We(f,this.sessionRecording.sdkDebugProperties),f.$sdk_debug_retry_queue_size=(b=this.gn)==null?void 0:b.length}catch(R){f.$sdk_debug_error_capturing_properties=String(R)}if(this.requestRouter.region===cp&&(f.$lib_custom_api_host=this.config.api_host),g=e!==Vr||u?e!==Vh||u?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,o),f=We(f,g),e===Vr&&ae&&(f.title=ae.title),!se(c)){var x=r.getTime()-c;f.$duration=parseFloat((x/1e3).toFixed(3))}Kt&&this.config.opt_out_useragent_filter&&(f.$browser_type=this._is_bot()?"bot":"browser"),(f=We({},m,this.persistence.properties(),this.sessionPersistence.properties(),f)).$is_identified=this._isIdentified(),Oe(this.config.property_denylist)?Ze(this.config.property_denylist,(function(R){delete f[R]})):re.error(sS+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var E=this.config.sanitize_properties;E&&(re.error(iS),f=E(f,e));var M=this.Mn();return f.$process_person_profile=M,M&&!u&&this.Rn("_calculate_event_properties"),f}Tn(e,n,r){var o;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.Mn()||this.rn&&!r)return e;var u=this.persistence.get_initial_props(),c=(o=this.sessionPropsManager)==null?void 0:o.getSetOnceProps(),f=We({},u,c||{},e||{}),h=this.config.sanitize_properties;return h&&(re.error(iS),f=h(f,"$set_once")),n&&(this.rn=!0),Gi(f)?void 0:f}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var o;(o=this.persistence)==null||o.register_once(e,n,r)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}Pn(e,n){this.register({[e]:n})}getFeatureFlag(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){var r;return(r=this.featureFlags)==null?void 0:r.isFeatureEnabled(e,n)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,r){var o;(o=this.featureFlags)==null||o.updateFlags(e,n,r)}updateEarlyAccessFeatureEnrollment(e,n,r){var o;(o=this.featureFlags)==null||o.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){var o;return n===void 0&&(n=!1),(o=this.featureFlags)==null?void 0:o.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.nn.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:Do}),()=>{})}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:Do})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:Do})}renderSurvey(e,n){var r;(r=this.surveys)==null||r.renderSurvey(e,n)}displaySurvey(e,n){var r;n===void 0&&(n=U3),(r=this.surveys)==null||r.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:Do}}canRenderSurveyAsync(e,n){var r,o;return n===void 0&&(n=!1),(r=(o=this.surveys)==null?void 0:o.canRenderSurveyAsync(e,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:Do})}On(e){return!e||Wd(e)?(re.critical("Unique user id has not been set in posthog.identify"),!1):e===Nu?(re.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(re.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,n,r){if(!this.__loaded||!this.persistence)return re.uninitializedWarning("posthog.identify");if(Gt(e)&&(e=e.toString(),re.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.On(e)&&this.Rn("posthog.identify")){var o=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Ou)||this.register_once({$had_persisted_distinct_id:!0,$device_id:o},""),e!==o&&e!==this.get_property(co)&&(this.unregister(co),this.register({distinct_id:e}));var u,c=(this.persistence.get_property(Pn)||Ur)===Ur;e!==o&&c?(this.persistence.set_property(Pn,Br),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.capture(Ih,{distinct_id:e,$anon_distinct_id:o},{$set:n||{},$set_once:r||{}}),this.ln=Jb(e,n,r),(u=this.featureFlags)==null||u.setAnonymousDistinctId(o)):(n||r)&&this.setPersonProperties(n,r),e!==o&&(this.reloadFeatureFlags(),this.unregister(go))}}setPersonProperties(e,n){if((e||n)&&this.Rn("posthog.setPersonProperties")){var r=Jb(this.get_distinct_id(),e,n);this.ln!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:n||{}},!0),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.ln=r):re.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,r){if(e&&n){var o=this.getGroups(),u=o[e]!==n;if(u&&this.resetGroupPropertiesForFlags(e),this.register({$groups:ne({},o,{[e]:n})}),u||r){var c={$group_type:e,$group_key:n};r&&(c.$group_set=r),this.capture(W0,c)}r&&this.setGroupPropertiesForFlags({[e]:r}),u&&!r&&this.reloadFeatureFlags()}else re.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),this.Rn("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n,r,o,u,c,f,h,g;if(re.info("reset"),!this.__loaded)return re.uninitializedWarning("posthog.reset");var m,v=this.get_property(Ou),_=this.get_property(Vs);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),se(_)||(m=this.persistence)==null||m.register({[Vs]:_}),(o=this.surveys)==null||o.reset(),(u=this.kn)==null||u.stop(),(c=this.featureFlags)==null||c.reset(),(f=this.conversations)==null||f.reset(),(h=this.persistence)==null||h.set_property(Pn,Ur),(g=this.sessionManager)==null||g.resetSessionId(),this.ln=null,this.config.cookieless_mode===pi)this.register_once({distinct_id:Nu,$device_id:null},"");else{var b=this.config.get_device_id(Yi());this.register_once({distinct_id:b,$device_id:e?b:v},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,n){var r;this.config.identity_distinct_id=e,this.config.identity_hash=n,this.alias(e),(r=this.conversations)==null||r.Ln()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.Fn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),o=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&r){var u,c=(u=e.timestampLookBack)!==null&&u!==void 0?u:10;if(!r)return o;o+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-c,0)}return o}alias(e,n){return e===this.get_property(F0)?(re.critical("Attempting to create alias for existing People user - aborting."),-2):this.Rn("posthog.alias")?(se(n)&&(n=this.get_distinct_id()),e!==n?(this.Pn(co,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(re.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=ne({},this.config);if(ut(e)){var r,o,u,c,f,h,g,m,v,_,b;We(this.config,oS(e));var x=this.vn();(r=this.persistence)==null||r.update_config(this.config,n,x),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Kh(ne({},this.config,{persistence:"sessionStorage"}),x,!1);var E=this.hn(this.config.debug);Kn(E)&&(this.config.debug=E),Kn(this.config.debug)&&(this.config.debug?(wt.DEBUG=!0,Xe.O()&&Xe.N("ph_debug",!0),re.info("set_config",{config:e,oldConfig:n,newConfig:ne({},this.config)})):(wt.DEBUG=!1,Xe.O()&&Xe.q("ph_debug"))),(o=this.exceptionObserver)==null||o.onConfigChange(),(u=this.exceptions)==null||u.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(f=this.tracingHeaders)==null||f.startIfEnabledOrStop(),(h=this.autocapture)==null||h.startIfEnabled(),(g=this.heatmaps)==null||g.startIfEnabled(),(m=this.exceptionObserver)==null||m.startIfEnabledOrStop(),(v=this.deadClicksAutocapture)==null||v.startIfEnabledOrStop(),(_=this.surveys)==null||_.loadIfEnabled(),this.An(),(b=this.externalIntegrations)==null||b.startIfEnabledOrStop()}}_overrideSDKInfo(e,n){wt.LIB_NAME=e,wt.LIB_VERSION=n}startSessionRecording(e){var n,r,o,u,c,f=e===!0,h={sampling:f||!(e==null||!e.sampling),linked_flag:f||!(e==null||!e.linked_flag),url_trigger:f||!(e==null||!e.url_trigger),event_trigger:f||!(e==null||!e.event_trigger)};Object.values(h).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),h.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),h.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),h.url_trigger&&((u=this.sessionRecording)==null||u.overrideTrigger("url")),h.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),o=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(ne({},o,n))}}addExceptionStep(e,n){var r;(r=this.exceptions)==null||r.addExceptionStep(e,n)}captureLog(e){var n;(n=this.logs)==null||n.captureLog(e)}get logger(){var e,n;return(e=(n=this.logs)==null?void 0:n.logger)!==null&&e!==void 0?e:An.Nn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:Gr;return n!==Gr&&(n=Gr+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(Pn))===Br||((n=this.sessionPersistence)==null?void 0:n.get_property(Pn))===Br}Mn(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===Bh&&!this._isIdentified()&&Gi(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[co])&&((n=this.persistence)==null||(n=n.props)==null||!n[Lu]))}Cn(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Mn()||this.Rn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Rn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Rn(e){return this.config.person_profiles==="never"?(re.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Pn(Lu,!0),!0)}vn(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==qs)}An(){var e,n,r,o,u=this.vn();return((e=this.persistence)==null?void 0:e.Tr)!==u&&((r=this.persistence)==null||r.set_disabled(u)),((n=this.sessionPersistence)==null?void 0:n.Tr)!==u&&((o=this.sessionPersistence)==null||o.set_disabled(u)),u}opt_in_capturing(e){var n;if(this.config.cookieless_mode!==pi){if(this.tn()){var r,o,u,c,f;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=new Zb(this),this.pageViewManager=new wb(this),this.persistence&&(this.sessionPropsManager=new Kb(this,this.sessionManager,this.persistence));var h,g=(u=(c=this.config.__extensionClasses)==null?void 0:c.sessionRecording)!==null&&u!==void 0?u:(f=An.__defaultExtensionClasses)==null?void 0:f.sessionRecording;g&&(this.sessionRecording=this.Xi(this.sessionRecording,new g(this)),this.wn&&((h=this.sessionRecording)==null||h.onRemoteConfig==null||h.onRemoteConfig(this.wn)))}var m,v;this.consent.optInOut(!0),this.An(),this.xn(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==qs&&((m=this.surveys)==null||m.loadIfEnabled()),(se(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((v=e?.captureEventName)!==null&&v!==void 0?v:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Sn()}else re.warn(nS)}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!==pi?(this.config.cookieless_mode===qs&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.An(),this.config.cookieless_mode===qs&&(this.register({distinct_id:Nu,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Sn(),this.xn())):re.warn(nS)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===pi||(this.config.cookieless_mode===qs?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.An()}_is_bot(){return on?Qb(on,this.config.custom_blocked_useragents):void 0}Sn(){ae&&(ae.visibilityState==="visible"?this.sn||(this.sn=!0,this.capture(Vr,{title:ae.title},{send_instantly:!0}),this.an&&(ae.removeEventListener(zu,this.an),this.an=null)):this.an||(this.an=this.Sn.bind(this),dt(ae,zu,this.an)))}debug(e){e===!1?(B?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(B?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Kr(){var e,n,r,o,u,c,f=this.cn||{};return"advanced_disable_flags"in f?!!f.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(re.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",o=re,u=(n="advanced_disable_flags")in(e=f)&&!Re(e[n]),c=r in e&&!Re(e[r]),u?e[n]:!!c&&(o&&o.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[r]))}En(e){if(Re(this.config.before_send))return e;var n=Oe(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var o of n){if(r=o(r),Re(r)){var u="Event '"+e.event+"' was rejected in beforeSend function";return rD(e.event)?re.warn(u+". This can cause unexpected behavior."):re.info(u),null}r.properties&&!Gi(r.properties)||re.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}hn(e){var n=Kn(e)&&!e,r=Xe.O()&&Xe.A("ph_debug")==="true";return!n&&(!!r||e)}}An.__defaultExtensionClasses={},An.Nn={trace:$r=()=>{},debug:$r,info:$r,warn:$r,error:$r,fatal:$r},(function(t,e){for(var n=0;e.length>n;n++)t.prototype[e[n]]=HD(t.prototype[e[n]])})(An,["identify"]);class lS{constructor(e){this.disabled=e===!1;var n=ut(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var o=this.clicks[this.clicks.length-1];if(o&&Math.abs(e-o.x)+Math.abs(n-o.y)<this.thresholdPx&&this.timeoutMs>r-o.timestamp){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var pp="$copy_autocapture",gp=ot("[AutoCapture]");function mp(t,e){return e.length>t?e.slice(0,t)+"...":e}function H3(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Xi(e));return e}function F3(t,e){var n,r,{e:o,maskAllElementAttributes:u,maskAllText:c,elementAttributeIgnoreList:f,elementsChainAsString:h}=e;if(!Xi(t))return{props:{}};for(var g=[t],m=t;m.parentNode&&!fn(m,"body");)if(ab(m.parentNode))g.push(m.parentNode.host),m=m.parentNode.host;else{if(!Xi(m.parentNode))break;g.push(m.parentNode),m=m.parentNode}var v,_,b=[],x={},E=!1,M=!1;if(Ze(g,(U=>{var Q=Yh(U);if(fn(U,"a")){var P=U.getAttribute("href");E=Q&&!!P&&_o(P)&&P}Ee(qu(U),"ph-no-capture")&&(M=!0),b.push((function($,ee,le,ie){var he=$.tagName.toLowerCase(),ye={tag_name:he};$h.indexOf(he)>-1&&!le&&(ye.$el_text=he.toLowerCase()==="a"||he.toLowerCase()==="button"?mp(1024,_b($)):mp(1024,yo($)));var L=qu($);L.length>0&&(ye.classes=L.filter((function(te){return te!==""}))),Ze($.attributes,(function(te){var ue;if((!mb($)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(ie==null||!ie.includes(te.name))&&!ee&&_o(te.value)&&(!at(ue=te.name)||ue.substring(0,10)!=="_ngcontent"&&ue.substring(0,7)!=="_nghost")){var T=te.value;te.name==="class"&&(T=Hh(T).join(" ")),ye["attr__"+te.name]=mp(1024,T)}}));for(var A=1,N=1,J=$;J=H3(J);)A++,J.tagName===$.tagName&&N++;return ye.nth_child=A,ye.nth_of_type=N,ye})(U,u,c,f));var I=(function($){if(!Yh($))return{};var ee={};return Ze($.attributes,(function(le){if(le.name&&le.name.indexOf("data-ph-capture-attribute")===0){var ie=le.name.replace("data-ph-capture-attribute-",""),he=le.value;ie&&he&&_o(he)&&(ee[ie]=he)}})),ee})(U);We(x,I)})),M)return{props:{},explicitNoCapture:M};if(c||(b[0].$el_text=fn(t,"a")||fn(t,"button")?_b(t):yo(t)),E){var R,q;b[0].attr__href=E;var F=(R=Fu(E))==null?void 0:R.host,K=B==null||(q=B.location)==null?void 0:q.host;F&&K&&F!==K&&(v=E)}return{props:We({$event_type:o.type,$ce_version:1},h?{}:{$elements:b},{$elements_chain:(_=b,(function(U){return U.map((Q=>{var P,I,$="";if(Q.tag_name&&($+=Q.tag_name),Q.attr_class)for(var ee of(Q.attr_class.sort(),Q.attr_class))$+="."+ee.replace(/"/g,"");var le=ne({},Q.text?{text:Q.text}:{},{"nth-child":(P=Q.nth_child)!==null&&P!==void 0?P:0,"nth-of-type":(I=Q.nth_of_type)!==null&&I!==void 0?I:0},Q.href?{href:Q.href}:{},Q.attr_id?{attr_id:Q.attr_id}:{},Q.attributes),ie={};return Bu(le).sort(((he,ye)=>{var[L]=he,[A]=ye;return L.localeCompare(A)})).forEach((he=>{var[ye,L]=he;return ie[Sb(ye.toString())]=Sb(L.toString())})),($+=":")+Bu(ie).map((he=>{var[ye,L]=he;return ye+'="'+L+'"'})).join("")})).join(";")})((function(U){return U.map((Q=>{var P,I,$={text:(P=Q.$el_text)==null?void 0:P.slice(0,400),tag_name:Q.tag_name,href:(I=Q.attr__href)==null?void 0:I.slice(0,2048),attr_class:l3(Q),attr_id:Q.attr__id,nth_child:Q.nth_child,nth_of_type:Q.nth_of_type,attributes:{}};return Bu(Q).filter((ee=>{var[le]=ee;return le.indexOf("attr__")===0})).forEach((ee=>{var[le,ie]=ee;return $.attributes[le]=ie})),$}))})(_)))},(n=b[0])!=null&&n.$el_text?{$el_text:(r=b[0])==null?void 0:r.$el_text}:{},v&&o.type==="click"?{$external_click_url:v}:{},x)}}var ko=ot("[ExceptionAutocapture]"),$3=ot("[TracingHeaders]"),Fs=ot("[Web Vitals]"),uS=9e5,cS="disabled",fS="lazy_loading",Lo="awaiting_config",ec="missing_config";ot("[SessionRecording]"),ot("[SessionRecording]");var vp="[SessionRecording]",mi=ot(vp),G3=ot("[Heatmaps]");function dS(t){return ut(t)&&"clientX"in t&&"clientY"in t&&Gt(t.clientX)&&Gt(t.clientY)}var hS=ot("[Product Tours]"),Y3=["$set_once","$set"],Ki=ot("[SiteApps]"),pS="Error while initializing PostHog app with config id ";function Yr(t,e,n){if(Re(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class X3{constructor(e){this.Dn=new lp,this.$n=(n,r)=>this.qn(n,r)&&this.jn(n,r)&&this.Hn(n,r)&&this.Un(n,r),this.qn=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=e,this.Bn=new Set,this.zn=new Set}init(){var e,n;se((e=this._instance)==null?void 0:e._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((r,o)=>{this.on(r,o)}))}register(e){var n,r;if(!se((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((c=>{var f,h;(f=this.zn)==null||f.add(c),(h=c.steps)==null||h.forEach((g=>{var m;(m=this.Bn)==null||m.add(g?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var o,u=new Set;e.forEach((c=>{var f;(f=c.steps)==null||f.forEach((h=>{h!=null&&h.selector&&u.add(h?.selector)}))})),(o=this._instance)==null||o.autocapture.setElementSelectors(u)}}on(e,n){var r;n!=null&&e.length!=0&&(this.Bn.has(e)||this.Bn.has(n?.event))&&this.zn&&((r=this.zn)==null?void 0:r.size)>0&&this.zn.forEach((o=>{this.Vn(n,o)&&this.Dn.emit("actionCaptured",o.name)}))}Wn(e){this.onAction("actionCaptured",(n=>e(n)))}Vn(e,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.$n(e,r))return!0;return!1}onAction(e,n){return this.Dn.on(e,n)}jn(e,n){if(n!=null&&n.url){var r,o=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!o||typeof o!="string"||!Yr(o,n.url,n.url_matching||"contains"))return!1}return!0}Hn(e,n){return!!this.Zn(e,n)&&!!this.Gn(e,n)&&!!this.Qn(e,n)}Zn(e,n){var r;if(n==null||!n.href)return!0;var o=this.Jn(e);if(o.length>0)return o.some((f=>Yr(f.href,n.href,n.href_matching||"exact")));var u,c=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!c&&Yr((u=c.match(/(?::|")href="(.*?)"/))?u[1]:"",n.href,n.href_matching||"exact")}Gn(e,n){var r;if(n==null||!n.text)return!0;var o=this.Jn(e);if(o.length>0)return o.some((g=>Yr(g.text,n.text,n.text_matching||"exact")||Yr(g.$el_text,n.text,n.text_matching||"exact")));var u,c,f,h=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!h&&(u=(function(g){for(var m,v=[],_=/(?::|")text="(.*?)"/g;!Re(m=_.exec(g));)v.includes(m[1])||v.push(m[1]);return v})(h),c=n.text,f=n.text_matching||"exact",u.some((g=>Yr(g,c,f))))}Qn(e,n){var r,o;if(n==null||!n.selector)return!0;var u=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(u!=null&&u.includes(n.selector))return!0;var c=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";if(n.selector_regex&&c)try{return new RegExp(n.selector_regex).test(c)}catch{return!1}return!1}Jn(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e?.properties.$elements}Un(e,n){return n==null||!n.properties||n.properties.length===0||eS(n.properties.reduce(((r,o)=>{var u=Oe(o.value)?o.value.map(String):o.value!=null?[String(o.value)]:[];return r[o.key]={values:u,operator:o.operator||"exact"},r}),{}),e?.properties)}}class K3{constructor(e){this._instance=e,this.Kn=new Map,this.Yn=new Map,this.Xn=new Map}es(e,n){return!!e&&eS(e.propertyFilters,n?.properties)}ts(e,n){var r=new Map;return e.forEach((o=>{var u;(u=o.conditions)==null||(u=u[n])==null||(u=u.values)==null||u.forEach((c=>{if(c!=null&&c.name){var f=r.get(c.name)||[];f.push(o.id),r.set(c.name,f)}}))})),r}rs(e,n,r){var o=(r===To.Activation?this.Kn:this.Yn).get(e),u=[];return this.ns((c=>{u=c.filter((f=>o?.includes(f.id)))})),u.filter((c=>{var f,h=(f=c.conditions)==null||(f=f[r])==null||(f=f.values)==null?void 0:f.find((g=>g.name===e));return this.es(h,n)}))}register(e){var n;se((n=this._instance)==null?void 0:n._addCaptureHook)||(this.ss(e),this.os(e))}os(e){var n=e.filter((r=>{var o,u;return((o=r.conditions)==null?void 0:o.actions)&&((u=r.conditions)==null||(u=u.actions)==null||(u=u.values)==null?void 0:u.length)>0}));n.length!==0&&(this.us==null&&(this.us=new X3(this._instance),this.us.init(),this.us.Wn((r=>{this.onAction(r)}))),n.forEach((r=>{var o,u,c,f,h;r.conditions&&(o=r.conditions)!=null&&o.actions&&(u=r.conditions)!=null&&(u=u.actions)!=null&&u.values&&((c=r.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length)>0&&((f=this.us)==null||f.register(r.conditions.actions.values),(h=r.conditions)==null||(h=h.actions)==null||(h=h.values)==null||h.forEach((g=>{if(g&&g.name){var m=this.Xn.get(g.name);m&&m.push(r.id),this.Xn.set(g.name,m||[r.id])}})))})))}ss(e){var n,r=e.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.events)&&((f=u.conditions)==null||(f=f.events)==null||(f=f.values)==null?void 0:f.length)>0})),o=e.filter((u=>{var c,f;return((c=u.conditions)==null?void 0:c.cancelEvents)&&((f=u.conditions)==null||(f=f.cancelEvents)==null||(f=f.values)==null?void 0:f.length)>0}));r.length===0&&o.length===0||((n=this._instance)==null||n._addCaptureHook(((u,c)=>{this.onEvent(u,c)})),this.Kn=this.ts(e,To.Activation),this.Yn=this.ts(e,To.Cancellation))}onEvent(e,n){var r,o=this.le(),u=this.ls(),c=this.hs(),f=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[u])||[];if(c===e&&n&&f.length>0){var h,g;o.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:f});var m=(n==null||(h=n.properties)==null?void 0:h.$survey_id)||(n==null||(g=n.properties)==null?void 0:g.$product_tour_id);if(m){var v=f.indexOf(m);0>v||(f.splice(v,1),this.cs(f))}}else{if(this.Yn.has(e)){var _=this.rs(e,n,To.Cancellation);_.length>0&&(o.info("cancel event matched, cancelling items",{event:e,itemsToCancel:_.map((x=>x.id))}),_.forEach((x=>{var E=f.indexOf(x.id);0>E||f.splice(E,1),this.ds(x.id)})),this.cs(f))}if(this.Kn.has(e)){o.info("event name matched",{event:e,eventPayload:n,items:this.Kn.get(e)});var b=this.rs(e,n,To.Activation);this.cs(f.concat(b.map((x=>x.id))||[]))}}}onAction(e){var n,r=this.ls(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Xn.has(e)&&this.cs(o.concat(this.Xn.get(e)||[]))}cs(e){var n=this.le(),r=[...new Set(e)].filter((o=>!this.vs(o)));n.info("updating activated items",{activatedItems:r}),this.fs(r)}getActivatedIds(){var e,n=this.ls();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[]}getEventToItemsMap(){return this.Kn}ps(){return this.us}}class Z3 extends K3{constructor(e){super(e)}ls(){return Rh}hs(){return wo.SHOWN}ns(e){var n;(n=this._instance)==null||n.getSurveys(e)}ds(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}le(){return He}fs(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[Rh]:e})}vs(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var yp="SDK is not enabled or survey functionality is not yet loaded",gS="Disabled. Not loading surveys.",Q3=B!=null&&B.location?$u(B.location.hash,"__posthog")||$u(location.hash,"state"):null,mS="_postHogToolbarParams",vS=ot("[Toolbar]"),kt=ot("[FeatureFlags]"),$s=ot("[FeatureFlags]",{debugEnabled:!0}),_p=`" failed. Feature flags didn't load in time.`,yS=t=>{for(var e={},n=0;t.length>n;n++)e[t[n]]=!0;return e},_S=t=>{var e={};for(var[n,r]of Bu(t||{}))r&&(e[n]=r);return e},vi=ot("[Error tracking]"),bS="Refusing to render web experiment since the viewer is a likely bot",J3={icontains:(t,e)=>!!B&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!B&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!B&&Ju(e.href,t),not_regex:(t,e)=>!!B&&!Ju(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class qt{get qt(){return this._instance.config}constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((o=>{qt.gs("retrieved web experiments from the server"),n.ys=new Map,o.forEach((u=>{if(u.feature_flag_key){var c;n.ys&&(qt.gs("setting flag key ",u.feature_flag_key," to web experiment ",u),(c=n.ys)==null||c.set(u.feature_flag_key,u));var f=n._instance.getFeatureFlag(u.feature_flag_key);at(f)&&u.variants[f]&&n.bs(u.name,f,u.variants[f].transforms)}else if(u.variants)for(var h in u.variants){var g=u.variants[h];qt._s(g)&&n.bs(u.name,h,g.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())qt.gs(bS);else if(!this.qt.disable_web_experiments){if(Re(this.ys))return this.ys=new Map,this.loadIfEnabled(),void this.previewWebExperiment();qt.gs("applying feature flags",e),e.forEach((n=>{var r;if(this.ys&&(r=this.ys)!=null&&r.has(n)){var o,u=this._instance.getFeatureFlag(n),c=(o=this.ys)==null?void 0:o.get(n);u&&c!=null&&c.variants[u]&&this.bs(c.name,u,c.variants[u].transforms)}}))}}previewWebExperiment(){var e=qt.getWindowLocation();if(e!=null&&e.search){var n=So(e?.search,"__experiment_id"),r=So(e?.search,"__experiment_variant");n&&r&&(qt.gs("previewing web experiments "+n+" && "+r),this.getWebExperiments((o=>{this.ws(parseInt(n),r,o)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this.qt.disable_web_experiments&&!r)return e([]);var o=this._instance.get_property("$web_experiments");if(o&&!n)return e(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:u=>e(u.statusCode===200&&u.json&&u.json.experiments||[])})}ws(e,n,r){var o=r.filter((u=>u.id===e));o&&o.length>0&&(qt.gs("Previewing web experiment ["+o[0].name+"] with variant ["+n+"]"),this.bs(o[0].name,n,o[0].variants[n].transforms))}static _s(e){return!Re(e.conditions)&&qt.xs(e)&&qt.Ss(e)}static xs(e){var n;if(Re(e.conditions)||Re((n=e.conditions)==null?void 0:n.url))return!0;var r,o,u,c=qt.getWindowLocation();return!!c&&((r=e.conditions)==null||!r.url||J3[(o=(u=e.conditions)==null?void 0:u.urlMatchType)!==null&&o!==void 0?o:"icontains"](e.conditions.url,c))}static getWindowLocation(){return B?.location}static Ss(e){var n;if(Re(e.conditions)||Re((n=e.conditions)==null?void 0:n.utm))return!0;var r=Ab();if(r.utm_source){var o,u,c,f,h,g,m,v,_=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_campaign||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_campaign)==r.utm_campaign,b=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_source||((f=e.conditions)==null||(f=f.utm)==null?void 0:f.utm_source)==r.utm_source,x=(h=e.conditions)==null||(h=h.utm)==null||!h.utm_medium||((g=e.conditions)==null||(g=g.utm)==null?void 0:g.utm_medium)==r.utm_medium,E=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((v=e.conditions)==null||(v=v.utm)==null?void 0:v.utm_term)==r.utm_term;return _&&x&&E&&b}return!1}static gs(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];re.info("[WebExperiments] "+e,r)}bs(e,n,r){this._is_bot()?qt.gs(bS):n!=="control"?r.forEach((o=>{if(o.selector){var u;qt.gs("applying transform of variant "+n+" for experiment "+e+" ",o);var c=(u=document)==null?void 0:u.querySelectorAll(o.selector);c?.forEach((f=>{var h=f;o.html&&(h.innerHTML=o.html),o.css&&h.setAttribute("style",o.css)}))}})):qt.gs("Control variants leave the page unmodified.")}_is_bot(){return on&&this._instance?Qb(on,this.qt.custom_blocked_useragents):void 0}}var Cn=ot("[Conversations]"),Gs="Conversations not available yet.",tc={featureFlags:class{constructor(t){this.ks=!1,this.Cs=!1,this.Is=!1,this.Ts=!1,this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this._instance=t,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get ki(){return this._instance.persistence}Os(t){return this._instance.get_property(t)}Ls(){var t,e;return(t=(e=this.ki)==null?void 0:e.Mr(this.qt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}Fs(){return!!this.Ls()&&(this.Ps||this.Is||(this.Ps=!0,kt.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}As(){var t,e=(t=this.qt.evaluation_contexts)!==null&&t!==void 0?t:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.Rs||(kt.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Rs=!0),e!=null&&e.length?e.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||kt.error("Invalid evaluation context found:",n,"Expected non-empty string"),r})):[]}Ns(){return this.As().length>0}Ds(){var t=this.qt.flag_keys;if(!se(t)){if(Oe(t))return t.filter((e=>{var n=e&&typeof e=="string"&&e.trim().length>0;return n||kt.error("Invalid flag key found:",e,"Expected non-empty string"),n}));kt.error("Invalid flag_keys found:",t,"Expected array of non-empty strings")}}initialize(){var t,e,{config:n}=this._instance,r=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(r).length){var o,u,c=(o=(u=n.bootstrap)==null?void 0:u.featureFlagPayloads)!==null&&o!==void 0?o:{},f=Object.keys(r).filter((g=>!!r[g])).reduce(((g,m)=>(g[m]=r[m]||!1,g)),{}),h=Object.keys(c).filter((g=>f[g])).reduce(((g,m)=>(c[m]&&(g[m]=c[m]),g)),{});this.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:h})}}updateFlags(t,e,n){var r=n!=null&&n.merge?this.getFlagVariants():{},o=n!=null&&n.merge?this.getFlagPayloads():{},u=ne({},r,t),c=ne({},o,e),f={};for(var[h,g]of Object.entries(u)){var m=typeof g=="string";f[h]={key:h,enabled:!!m||!!g,variant:m?g:void 0,reason:void 0,metadata:se(c?.[h])?void 0:{id:0,version:void 0,description:void 0,payload:c[h]}}}this.receivedFeatureFlags({flags:f})}get hasLoadedFlags(){return this.Cs}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.Os(wh),e=this.Os(hi),n=this.Os(jr);if(!n&&!e)return t||{};var r=We({},t||{}),o=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var u of o){var c,f,h=r[u],g=e?.[u],m=se(g)?(c=h?.enabled)!==null&&c!==void 0&&c:!!g,v=se(g)?h.variant:typeof g=="string"?g:void 0,_=n?.[u],b=ne({},h,{enabled:m,variant:m?v??h?.variant:void 0});m!==h?.enabled&&(b.original_enabled=h?.enabled),v!==h?.variant&&(b.original_variant=h?.variant),_&&(b.metadata=ne({},h?.metadata,{payload:_,original_payload:h==null||(f=h.metadata)==null?void 0:f.payload})),r[u]=b}return this.ks||(kt.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:r}),this.ks=!0),r}getFlagVariants(){var t=this.Os(zr),e=this.Os(hi);if(!e)return t||{};for(var n=We({},t),r=Object.keys(e),o=0;r.length>o;o++)n[r[o]]=e[r[o]];return this.ks||(kt.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.ks=!0),n}getFlagPayloads(){var t=this.Os(Ah),e=this.Os(jr);if(!e)return t||{};for(var n=We({},t||{}),r=Object.keys(e),o=0;r.length>o;o++)n[r[o]]=e[r[o]];return this.ks||(kt.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.ks=!0),n}reloadFeatureFlags(){this.Ts||this.qt.advanced_disable_feature_flags||this.$s||(this._instance.nn.emit("featureFlagsReloading",!0),this.$s=setTimeout((()=>{this.qs()}),5))}js(){clearTimeout(this.$s),this.$s=void 0}ensureFlagsLoaded(){this.Cs||this.Is||this.$s||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.Ts=t}qs(t){var e;if(this.js(),!this._instance.Kr())if(this.Is)this.Es=!0;else{var n=this.qt.token,r=this.Os(Ou),o={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ne({},((e=this.ki)==null?void 0:e.get_initial_props())||{},this.Os(po)||{}),group_properties:this.Os(Is),timezone:Lb()};un(r)||se(r)||(o.$device_id=r),(t!=null&&t.disableFlags||this.qt.advanced_disable_feature_flags)&&(o.disable_flags=!0),this.Ns()&&(o.evaluation_contexts=this.As());var u=this.Ds();se(u)||(o.flag_keys=u);var c=!!this.qt.advanced_only_evaluate_survey_feature_flags,f=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Is=!0,this._instance._send_request({method:"POST",url:f,data:o,compression:this.qt.disable_compression?void 0:Jn.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:h=>{var g,m,v,_=!0;if(h.statusCode===200&&(this.Es||(this.$anon_distinct_id=void 0),_=!1),this.Is=!1,!o.disable_flags||this.Es){this.Ms=!_;var b=[];h.error?h.error instanceof Error?b.push(h.error.name==="AbortError"?"timeout":"connection_error"):b.push("unknown_error"):h.statusCode!==200&&b.push("api_error_"+h.statusCode),(g=h.json)!=null&&g.errorsWhileComputingFlags&&b.push("errors_while_computing_flags");var x,E=!((m=h.json)==null||(m=m.quotaLimited)==null||!m.includes("feature_flags"));E&&b.push("quota_limited"),(v=this.ki)==null||v.register({[kh]:b}),E?kt.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(o.disable_flags||this.receivedFeatureFlags((x=h.json)!==null&&x!==void 0?x:{},_,{partialResponse:c}),this.Es&&(this.Es=!1,this.qs()))}}})}}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this.Ms)if(this.Cs||this.getFlags()&&this.getFlags().length>0){if(!this.Fs()){var r=this.getFeatureFlagResult(t,e);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else kt.warn('getFeatureFlag for key "'+t+_p)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.Ms)if(this.Cs||this.getFlags()&&this.getFlags().length>0){if(!this.Fs()){var n=this.getFlagVariants(),r=t in n,o=n[t],u=this.getFlagPayloads()[t],c=String(o),f=this.Os(Ch)||void 0,h=this.Os(mo)||void 0,g=this.Os(go)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var m,v=this._instance.get_session_id(),_=this.Os(Dh);v&&v!==_&&(g={},(m=this.ki)==null||m.register({[go]:g,[Dh]:v}))}if((e.send_event||!("send_event"in e))&&(!(t in g)||!g[t].includes(c))){var b,x,E,M,R,q,F,K,U,Q;Oe(g[t])?g[t].push(c):g[t]=[c],(b=this.ki)==null||b.register({[go]:g});var P=this.getFeatureFlagDetails(t),I=[...(x=this.Os(kh))!==null&&x!==void 0?x:[]];se(o)&&I.push("flag_missing");var $={$feature_flag:t,$feature_flag_response:o,$feature_flag_payload:u||null,$feature_flag_request_id:f,$feature_flag_evaluated_at:h,$feature_flag_bootstrapped_response:((E=this.qt.bootstrap)==null||(E=E.featureFlags)==null?void 0:E[t])||null,$feature_flag_bootstrapped_payload:((M=this.qt.bootstrap)==null||(M=M.featureFlagPayloads)==null?void 0:M[t])||null,$used_bootstrap_value:!this.Ms};se(P==null||(R=P.metadata)==null?void 0:R.version)||($.$feature_flag_version=P.metadata.version);var ee,le=(q=P==null||(F=P.reason)==null?void 0:F.description)!==null&&q!==void 0?q:P==null||(K=P.reason)==null?void 0:K.code;le&&($.$feature_flag_reason=le),P!=null&&(U=P.metadata)!=null&&U.id&&($.$feature_flag_id=P.metadata.id),se(P?.original_variant)&&se(P?.original_enabled)||($.$feature_flag_original_response=se(P.original_variant)?P.original_enabled:P.original_variant),P!=null&&(Q=P.metadata)!=null&&Q.original_payload&&($.$feature_flag_original_payload=P==null||(ee=P.metadata)==null?void 0:ee.original_payload),I.length&&($.$feature_flag_error=I.join(",")),this._instance.capture("$feature_flag_called",$)}if(r){var ie=u;if(!se(u))try{ie=JSON.parse(u)}catch{}return{key:t,enabled:!!o,variant:typeof o=="string"?o:void 0,payload:ie}}}}else kt.warn('getFeatureFlagResult for key "'+t+_p)}getRemoteConfigPayload(t,e){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.Ns()&&(r.evaluation_contexts=this.As());var o=this.Ds();se(o)||(r.flag_keys=o),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:r,compression:this.qt.disable_compression?void 0:Jn.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(u){var c,f=(c=u.json)==null?void 0:c.featureFlagPayloads;e(f?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.Ms){if(this.Cs||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,e);return se(n)?void 0:!!n}kt.warn('isFeatureEnabled for key "'+t+_p)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,n){if(this.ki){this.Cs=!0;var r=this.getFlagVariants(),o=this.getFlagPayloads(),u=this.getFlagsWithDetails();(function(c,f,h,g,m,v){h===void 0&&(h={}),g===void 0&&(g={}),m===void 0&&(m={});var _=(I=>{var $=I.flags;return $?(I.featureFlags=Object.fromEntries(Object.keys($).map((ee=>{var le;return[ee,(le=$[ee].variant)!==null&&le!==void 0?le:$[ee].enabled]}))),I.featureFlagPayloads=Object.fromEntries(Object.keys($).filter((ee=>$[ee].enabled)).filter((ee=>{var le;return(le=$[ee].metadata)==null?void 0:le.payload})).map((ee=>{var le;return[ee,(le=$[ee].metadata)==null?void 0:le.payload]})))):kt.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),I})(c),b=_.flags,x=_.featureFlags,E=_.featureFlagPayloads;if(x){var M=c.requestId,R=c.evaluatedAt;if(Oe(x)){kt.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var q={};if(x)for(var F=0;x.length>F;F++)q[x[F]]=!0;f&&f.register({[Ru]:x,[zr]:q})}else{var K=x,U=E,Q=b;if(v!=null&&v.partialResponse)K=ne({},h,K),U=ne({},g,U),Q=ne({},m,Q);else if(c.errorsWhileComputingFlags)if(b){var P=new Set(Object.keys(b).filter((I=>{var $;return!(($=b[I])!=null&&$.failed)})));K=ne({},h,Object.fromEntries(Object.entries(K).filter((I=>{var[$]=I;return P.has($)})))),U=ne({},g,Object.fromEntries(Object.entries(U||{}).filter((I=>{var[$]=I;return P.has($)})))),Q=ne({},m,Object.fromEntries(Object.entries(Q||{}).filter((I=>{var[$]=I;return P.has($)}))))}else K=ne({},h,K),U=ne({},g,U),Q=ne({},m,Q);f&&f.register(ne({[Ru]:Object.keys(_S(K)),[zr]:K||{},[Ah]:U||{},[wh]:Q||{}},M?{[Ch]:M}:{},R?{[mo]:R}:{}))}}})(t,this.ki,r,o,u,n),e||(this.Ps=!1),this.Hs(e)}}override(t,e){e===void 0&&(e=!1),kt.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ki)return kt.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ki.unregister(hi),this.ki.unregister(jr),this.Hs(),$s.info("All overrides cleared");if(Oe(t)){var e=yS(t);return this.ki.register({[hi]:e}),this.Hs(),$s.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.ks=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this.ki.unregister(hi),$s.info("Flag overrides cleared");else if(r.flags){if(Oe(r.flags)){var o=yS(r.flags);this.ki.register({[hi]:o})}else this.ki.register({[hi]:r.flags});$s.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this.ki.unregister(jr),$s.info("Payload overrides cleared")):r.payloads&&(this.ki.register({[jr]:r.payloads}),$s.info("Payload overrides set",{payloads:r.payloads}))),void this.Hs()}if(t&&typeof t=="object")return this.ki.register({[hi]:t}),this.Hs(),$s.info("Flag overrides set",{flags:t});kt.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Cs){var{flags:e,flagVariants:n}=this.Us();t(e,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var r,o=(this.Os(ho)||[]).find((h=>h.flagKey===t)),u={["$feature_enrollment/"+t]:e},c={$feature_flag:t,$feature_enrollment:e,$set:u};o&&(c.$early_access_feature_name=o.name),n&&(c.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(u,!1);var f=ne({},this.getFlagVariants(),{[t]:e});(r=this.ki)==null||r.register({[Ru]:Object.keys(_S(f)),[zr]:f}),this.Hs()}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var r=this.Os(ho),o=n?"&"+n.map((u=>"stage="+u)).join("&"):"";if(r&&!e)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+o),method:"GET",callback:u=>{var c,f;if(u.json){var h=u.json.earlyAccessFeatures;return(c=this.ki)==null||c.unregister(ho),(f=this.ki)==null||f.register({[ho]:h}),t(h)}}})}Us(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((n=>e[n])),flagVariants:Object.keys(e).filter((n=>e[n])).reduce(((n,r)=>(n[r]=e[r],n)),{})}}Hs(t){var{flags:e,flagVariants:n}=this.Us();this.featureFlagEventHandlers.forEach((r=>r(e,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Os(po)||{},r=t?.$set||(t!=null&&t.$set_once?{}:t),o=t?.$set_once,u={};if(o)for(var c in o)({}).hasOwnProperty.call(o,c)&&(c in n||(u[c]=o[c]));this._instance.register({[po]:ne({},n,u,r)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(po)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Os(Is)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((r=>{n[r]=ne({},n[r],t[r]),delete t[r]})),this._instance.register({[Is]:ne({},n,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.Os(Is)||{};this._instance.register({[Is]:ne({},e,{[t]:{}})})}else this._instance.unregister(Is)}reset(){this.Cs=!1,this.Is=!1,this.Ts=!1,this.Es=!1,this.Ms=!1,this.$anon_distinct_id=void 0,this.js(),this.ks=!1}}},W3={sessionRecording:class{get qt(){return this._instance.config}get ki(){return this._instance.persistence}get started(){var t;return!((t=this.Bs)==null||!t.isStarted)}get status(){var t,e;return this.zs===Lo||this.zs===ec?this.zs:(t=(e=this.Bs)==null?void 0:e.status)!==null&&t!==void 0?t:this.zs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.zs=cS,this.Vs=void 0,this._instance=t,!this._instance.sessionManager)throw mi.error("started without valid sessionManager"),new Error(vp+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===pi)throw new Error(vp+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Ws(){var t,e=!((t=this._instance.get_property(Vs))==null||!t.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return B&&e&&n&&!r}startIfEnabledOrStop(t){var e;if(!this.Ws||(e=this.Bs)==null||!e.isStarted){var n=!se(Object.assign)&&!se(Array.from);this.Ws&&n?(this.Zs(t),mi.info("starting")):(this.zs=cS,this.stopRecording())}}Zs(t){var e,n,r;this.Ws&&(this.zs!==Lo&&this.zs!==ec&&(this.zs=fS),pe!=null&&(e=pe.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=pe.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Gs(t):(r=pe.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.Qs,(o=>{if(o)return mi.error("could not load recorder",o);this.Gs(t)})))}stopRecording(){var t,e;(t=this.Vs)==null||t.call(this),this.Vs=void 0,(e=this.Bs)==null||e.stop()}Js(){var t,e;(t=this.Vs)==null||t.call(this),this.Vs=void 0,(e=this.Bs)==null||e.discard()}Ks(){var t;(t=this.ki)==null||t.unregister(Th)}Ys(t,e){if(Re(t))return null;var n,r=Gt(t)?t:parseFloat(t);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(mi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):r}Xs(t){if(this.ki){var e,n,r=this.ki,o=()=>{var u,c=t.sessionRecording===!1?void 0:t.sessionRecording,f=this.Ys((u=this.qt.session_recording)==null?void 0:u.sampleRate,"session_recording.sampleRate"),h=this.Ys(c?.sampleRate,"remote config sampleRate"),g=f??h;Re(g)&&this.Ks();var m=c?.minimumDurationMilliseconds;r.register({[Vs]:ne({cache_timestamp:Date.now(),enabled:!!c},c,{networkPayloadCapture:ne({capturePerformance:t.capturePerformance},c?.networkPayloadCapture),canvasRecording:{enabled:c?.recordCanvas,fps:c?.canvasFps,quality:c?.canvasQuality},sampleRate:g,minimumDurationMilliseconds:se(m)?null:m,endpoint:c?.endpoint,triggerMatchType:c?.triggerMatchType,masking:c?.masking,urlTriggers:c?.urlTriggers,version:c?.version,triggerGroups:c?.triggerGroups})})};o(),(e=this.Vs)==null||e.call(this),this.Vs=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(o)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.Xs(t),void this.Js()):(this.Xs(t),void this.startIfEnabledOrStop()):(this.zs===Lo&&(this.zs=ec,mi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.Bs)!=null&&n.log?this.Bs.log(t,e):mi.warn("log called before recorder was ready")}get Qs(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Vs);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}eo(){var t,e,n=this._instance.get_property(Vs);if(!n)return!1;try{e=typeof n=="object"?n:JSON.parse(n)}catch(o){return mi.warn("persisted remote config for session recording is invalid and will be ignored",o),!1}var r=(t=e.cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-r}Gs(t){var e,n;if((e=pe.__PosthogExtensions__)==null||!e.initSessionRecording)return mi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[J0]:!0});if(this.Bs||(this.Bs=(n=pe.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.Bs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.eo())return this.zs===ec||this.zs===Lo?void 0:(this.zs=Lo,mi.info("persisted remote config is stale, requesting fresh config before starting"),void new jb(this._instance).load());this.zs=fS,this.Bs.start(t)}onRRwebEmit(t){var e;(e=this.Bs)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.Bs||(e=this.ki)==null||e.register({[G0]:!0}),(t=this.Bs)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.Bs||(e=this.ki)==null||e.register({[$0]:!0}),(t=this.Bs)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.Bs||(n=this.ki)==null||n.register({[t==="url"?Y0:X0]:!0}),(e=this.Bs)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.Bs)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.Bs)==null||!n.tryAddCustomEvent(t,e))}}},ek={autocapture:class{constructor(t){this.ro=!1,this.io=null,this.no=!1,this.instance=t,this.rageclicks=new lS(t.config.rageclick),this.so=null}initialize(){this.startIfEnabled()}get qt(){var t,e,n=ut(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map((r=>new RegExp(r))),n.url_ignorelist=(e=n.url_ignorelist)==null?void 0:e.map((r=>new RegExp(r))),n}oo(){if(this.isBrowserSupported()){if(B&&ae){var t=n=>{n=n||B?.event;try{this.ao(n)}catch(r){gp.error("Failed to capture event",r)}};if(dt(ae,"submit",t,{capture:!0}),dt(ae,"change",t,{capture:!0}),dt(ae,"click",t,{capture:!0}),this.qt.capture_copied_text){var e=n=>{n=n||B?.event;try{this.ao(n,pp)}catch(r){gp.error("Failed to capture copy/cut event",r)}};dt(ae,"copy",e,{capture:!0}),dt(ae,"cut",e,{capture:!0})}}}else gp.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.ro&&(this.oo(),this.ro=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.no=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[gh]:!!t.autocapture_opt_out}),this.io=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.so=t}getElementSelectors(t){var e,n=[];return(e=this.so)==null||e.forEach((r=>{var o=ae?.querySelectorAll(r);o?.forEach((u=>{t===u&&n.push(r)}))})),n}get isEnabled(){var t,e,n=(t=this.instance.persistence)==null?void 0:t.props[gh];if(un(this.io)&&!Kn(n)&&!this.instance.Kr())return!1;var r=(e=this.io)!==null&&e!==void 0?e:!!n;return!!this.instance.config.autocapture&&!r}ao(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var n,r=Fh(t);rb(r)&&(r=r.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&pb(r,this.instance.config.rageclick)&&this.ao(t,"$rageclick");var o=e===pp;if(r&&(function(v,_,b,x,E){var M,R,q,F;if(b===void 0&&(b=void 0),!B||Gh(v)||(M=b)!=null&&M.url_allowlist&&!ob(b.url_allowlist)||(R=b)!=null&&R.url_ignorelist&&ob(b.url_ignorelist))return!1;if((q=b)!=null&&q.dom_event_allowlist){var K=b.dom_event_allowlist;if(K&&!K.some(($=>_.type===$)))return!1}var{parentIsUsefulElement:U,targetElementList:Q}=gb(v,x);if(!(function($,ee){var le=ee?.element_allowlist;if(se(le))return!0;var ie,he=function(L){if(le.some((A=>L.tagName.toLowerCase()===A)))return{v:!0}};for(var ye of $)if(ie=he(ye))return ie.v;return!1})(Q,b)||!ub(Q,(F=b)==null?void 0:F.css_selector_allowlist))return!1;var P=B.getComputedStyle(v);if(P&&P.getPropertyValue("cursor")==="pointer"&&_.type==="click")return!0;var I=v.tagName.toLowerCase();switch(I){case"html":return!1;case"form":return(E||["submit"]).indexOf(_.type)>=0;case"input":case"select":case"textarea":return(E||["change","click"]).indexOf(_.type)>=0;default:return U?(E||["click"]).indexOf(_.type)>=0:(E||["click"]).indexOf(_.type)>=0&&($h.indexOf(I)>-1||v.getAttribute("contenteditable")==="true")}})(r,t,this.qt,o,o?["copy","cut"]:void 0)){var{props:u,explicitNoCapture:c}=F3(r,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsChainAsString:this.no});if(c)return!1;var f=this.getElementSelectors(r);if(f&&f.length>0&&(u.$element_selectors=f),e===pp){var h,g=lb(B==null||(h=B.getSelection())==null?void 0:h.toString()),m=t.type||"clipboard";if(!g)return!1;u.$selected_content=g,u.$copy_type=m}return this.instance.capture(e,u),!0}}}isBrowserSupported(){return ci(ae?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.uo=(B==null||(e=B.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(re.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.lo&&this.lo(),this.lo=void 0,re.info("History API monitoring stopped")}monitorHistoryChanges(){B&&B.history&&(this.ho("pushState"),this.ho("replaceState"),this.co())}ho(t){var e;if(B&&((e=B.history[t])==null||!e.__posthog_wrapped__)){var n=this;(function(r,o,u){try{if(!(o in r))return()=>{};var c=r[o],f=u(c);return ci(f)&&(f.prototype=f.prototype||{},Object.defineProperties(f,{__posthog_wrapped__:{enumerable:!1,value:!0}})),r[o]=f,()=>{r[o]===f&&(r[o]=c)}}catch{return()=>{}}})(B.history,t,(r=>function(o,u,c){r.call(this,o,u,c),n.do(t)}))}}do(t){try{var e,n=B==null||(e=B.location)==null?void 0:e.pathname;if(!n)return;n!==this.uo&&this.isEnabled&&this._instance.capture(Vr,{navigation_type:t}),this.uo=n}catch(r){re.error("Error capturing "+t+" pageview",r)}}co(){if(!this.lo){var t=()=>{this.do("popstate")};dt(B,"popstate",t),this.lo=()=>{B&&B.removeEventListener("popstate",t)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(t){var e;this.vo=!1,this.ro=!1,this.fo=null,this.instance=t,this.vo=!((e=this.instance.persistence)==null||!e.props[mh]),this.rageclicks=new lS(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return ut(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(t=this.qt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Re(this.qt.capture_heatmaps)?Re(this.qt.enable_heatmaps)?this.vo:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.ro)return;G3.info("starting..."),this.po(),this.At()}else{var t;clearInterval((t=this.fo)!==null&&t!==void 0?t:void 0),this.mo(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[mh]:e}),this.vo=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.M;return this.M=void 0,t}yo(t){this.Mt(t.originalEvent,"deadclick")}At(){this.fo&&clearInterval(this.fo),this.fo=ae?.visibilityState==="visible"?setInterval(this.ci.bind(this),this.flushIntervalMilliseconds):null}po(){B&&ae&&(this.bo=this.ci.bind(this),dt(B,ju,this.bo),this._o=t=>this.Mt(t||B?.event),dt(ae,"click",this._o,{capture:!0}),this.wo=t=>this.xo(t||B?.event),dt(ae,"mousemove",this.wo,{capture:!0}),this.So=new Eb(this.instance,u3,this.yo.bind(this)),this.So.startIfEnabledOrStop(),this.ko=this.At.bind(this),dt(ae,zu,this.ko),this.ro=!0)}mo(){var t;B&&ae&&(this.bo&&B.removeEventListener(ju,this.bo),this._o&&ae.removeEventListener("click",this._o,{capture:!0}),this.wo&&ae.removeEventListener("mousemove",this.wo,{capture:!0}),this.ko&&ae.removeEventListener(zu,this.ko),clearTimeout(this.Co),(t=this.So)==null||t.stop(),this.ro=!1)}Io(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),o=this.instance.scrollManager.scrollElement(),u=(function(c,f,h){for(var g=c;g&&Xi(g)&&!fn(g,"body");){if(g===h)return!1;if(Ee(f,B?.getComputedStyle(g).position))return!0;g=cb(g)}return!1})(Fh(t),["fixed","sticky"],o);return{x:t.clientX+(u?0:r),y:t.clientY+(u?0:n),target_fixed:u,type:e}}Mt(t,e){var n;if(e===void 0&&(e="click"),!sb(t.target)&&dS(t)){var r=this.Io(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&pb(Fh(t),this.instance.config.rageclick)&&this.To(ne({},r,{type:"rageclick"})),this.To(r)}}xo(t){!sb(t.target)&&dS(t)&&(clearTimeout(this.Co),this.Co=setTimeout((()=>{this.To(this.Io(t,"mousemove"))}),500))}To(t){if(B){var e=B.location.href,n=this.qt.custom_personal_data_properties,r=this.qt.mask_personal_data_properties?[...Ir,...n||[]]:[],o=Eo(e,r,xo);this.M=this.M||{},this.M[o]||(this.M[o]=[]),this.M[o].push(t)}}ci(){this.M&&!Gi(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Eb,webVitalsAutocapture:class{constructor(t){var e;this.vo=!1,this.ro=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Eo=()=>{clearTimeout(this.Mo),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,r)=>ne({},n,{["$web_vitals_"+r.name+"_event"]:ne({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.dt=n=>{var r;this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Ro();if(!se(o))if(Re(n?.name)||Re(n?.value))Fs.error("Invalid metric received",n);else if(!this.Po||this.Po>n.value){this.M.url!==o&&(this.Eo(),this.Mo=setTimeout(this.Eo,this.flushToCaptureTimeoutMs)),se(this.M.url)&&(this.M.url=o),this.M.firstMetricTimestamp=se(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0);var u=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0),c=ne({},n,{$current_url:o,timestamp:Date.now()});se(u)||(c.$session_id=u.sessionId,c.$window_id=u.windowId),this.M.metrics.push(c),this.M.metrics.length===this.allowedMetrics.length&&this.Eo()}else Fs.error("Ignoring metric with value >= "+this.Po,n)},this.Oo=()=>{if(!this.ro){var n,r,o,u,c=pe.__PosthogExtensions__;se(c)||se(c.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:r,onFCP:o,onINP:u}=c.postHogWebVitalsCallbacks),n&&r&&o&&u?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.dt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&r(this.dt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&o(this.dt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&u(this.dt.bind(this)),this.ro=!0):Fs.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.vo=!((e=this._instance.persistence)==null||!e.props[bh]),this.startIfEnabled()}get Lo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,n=ut(this.Lo)?(t=this.Lo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Re(n)?((e=this._instance.persistence)==null?void 0:e.props[xh])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(ut(this.Lo)?this.Lo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=ut(this.Lo)?this.Lo.web_vitals_attribution:void 0;return t!=null&&t}get Po(){var t=ut(this.Lo)&&Gt(this.Lo.__web_vitals_max_value)?this.Lo.__web_vitals_max_value:uS;return t>0&&6e4>=t?uS:t}get isEnabled(){var t=Rt?.protocol;if(t!=="http:"&&t!=="https:")return Fs.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=ut(this.Lo)?this.Lo.web_vitals:Kn(this.Lo)?this.Lo:void 0;return Kn(e)?e:this.vo}startIfEnabled(){this.isEnabled&&!this.ro&&(Fs.info("enabled, starting..."),this.lr(this.Oo))}onRemoteConfig(t){if("capturePerformance"in t){var e=ut(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=ut(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[bh]:e}),this._instance.persistence.register({[xh]:n})),this.vo=e,this.startIfEnabled()}}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(r=>{r?Fs.error("failed to load script",r):t()}))}Ro(){var t=B?B.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Ir,...e||[]]:[];return Eo(t,n,xo)}Fs.error("Could not determine current URL")}}},tk={exceptionObserver:class{constructor(t){var e,n,r;this.Oo=()=>{var o;if(B&&this.isEnabled&&(o=pe.__PosthogExtensions__)!=null&&o.errorWrappingFunctions){var u=pe.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=pe.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,f=pe.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Fo&&this.qt.capture_unhandled_errors&&(this.Fo=u(this.captureException.bind(this))),!this.Ao&&this.qt.capture_unhandled_rejections&&(this.Ao=c(this.captureException.bind(this))),!this.No&&this.qt.capture_console_errors&&(this.No=f(this.captureException.bind(this)))}catch(h){ko.error("failed to start",h),this.Do()}}},this._instance=t,this.$o=!((e=this._instance.persistence)==null||!e.props[vh]),this.qo=new lD({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10,refillInterval:1e4,Gt:ko}),this.qt=this.jo(),this.startIfEnabledOrStop()}jo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return ut(t)?e=ne({},e,t):(se(t)?this.$o:t)&&(e=ne({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(ko.info("enabled"),this.Do(),this.lr(this.Oo)):this.Do()}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return ko.error("failed to load script",r);t()}))}Do(){var t,e,n;(t=this.Fo)==null||t.call(this),this.Fo=void 0,(e=this.Ao)==null||e.call(this),this.Ao=void 0,(n=this.No)==null||n.call(this),this.No=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.$o=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[vh]:this.$o}),this.qt=this.jo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.jo()}captureException(t){var e,n,r,o=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.qo.consumeRateLimit(o)?ko.info("Skipping exception capture because of client rate limiting.",{exception:o}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.Ho=[],this.Uo=new SD([new OD,new BD,new DD,new RD,new jD,new zD,new LD,new UD],(function(r){for(var o=arguments.length,u=new Array(o>1?o-1:0),c=1;o>c;c++)u[c-1]=arguments[c];return function(f,h){h===void 0&&(h=0);for(var g=[],m=f.split(`
|
|
33
|
-
`),v=h;m.length>v;v++){var _=m[v];if(1024>=_.length){var b=q0.test(_)?_.replace(q0,"$1"):_;if(!b.match(/\S*Error: /)){for(var x of u){var E=x(b,r);if(E){g.push(E);break}}if(g.length>=50)break}}}return(function(M){if(!M.length)return[];var R=Array.from(M);return R.reverse(),R.slice(0,50).map((q=>{return ne({},q,{filename:q.filename||(F=R,F[F.length-1]||{}).filename,function:q.function||Lr});var F}))})(g)}})("web:javascript",wD,MD)),this._instance=t,this.Ho=(e=(n=this._instance.persistence)==null?void 0:n.get_property(yh))!==null&&e!==void 0?e:[],this.Bo=Mu(this.zo()),this.Vo=new ID(this.Bo)}onConfigChange(){this.Bo=Mu(this.zo()),this.Vo.setConfig(this.Bo)}onRemoteConfig(t){var e,n,r;if("errorTracking"in t){var o=(e=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],u=(r=t.errorTracking)==null?void 0:r.captureExtensionExceptions;this.Ho=o,this._instance.persistence&&this._instance.persistence.register({[yh]:this.Ho,[_h]:u})}}get Wo(){var t,e=!!this._instance.get_property(_h),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.Uo.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.Bo.enabled)try{if(!at(t)||t.trim().length===0)return void vi.warn("Ignoring exception step because message must be a non-empty string");var n=this.Zo(e),{sanitizedProperties:r,droppedKeys:o}=(function(u){if(!u)return{sanitizedProperties:{},droppedKeys:[]};var c=[];return{sanitizedProperties:Object.keys(u).reduce(((f,h)=>VD.has(h)?(c.push(h),f):(f[h]=u[h],f)),{}),droppedKeys:c}})(n);o.length>0&&vi.warn("Ignoring reserved exception step fields",{droppedKeys:o}),this.Vo.add(ne({[Au]:t,[Cu]:new Date().toISOString()},r))}catch(u){vi.error("Failed to add exception step. Ignoring breadcrumb.",u)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Go(e)){if(this.Qo(e))return this.Jo("Exception dropped: matched a suppression rule"),void vi.info("Skipping exception capture because a suppression rule matched");if(!this.Wo&&this.Ko(e))return this.Jo("Exception dropped: thrown by a browser extension"),void vi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Yo(e))return this.Jo("Exception dropped: thrown by the PostHog SDK"),void vi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.Bo.enabled&&Re(t.$exception_steps)?this.Xo(t):t;try{var r=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",In:!0});return r&&this.Vo.clear(),r}catch(o){return vi.error("Failed to capture exception event. Dropping this exception.",o),void this.Vo.clear()}}catch(o){return void vi.error("Failed to process exception event. Ignoring this exception.",o)}}Xo(t){try{var e=this.Vo.getAttachable();return e.length===0?t:ne({},t,{$exception_steps:e})}catch(n){return vi.error("Failed to read buffered exception steps. Capturing exception without steps.",n),t}}Jo(t){this.Bo.enabled&&this.Vo.add({[Au]:t,[Cu]:new Date().toISOString()})}Zo(t){return ut(t)?ne({},t):{}}zo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Qo(t){if(t.length===0)return!1;var e=t.reduce(((n,r)=>{var{type:o,value:u}=r;return at(o)&&o.length>0&&n.$exception_types.push(o),at(u)&&u.length>0&&n.$exception_values.push(u),n}),{$exception_types:[],$exception_values:[]});return this.Ho.some((n=>{var r=n.values.map((o=>{var u,c=Wb[o.operator],f=Oe(o.value)?o.value:[o.value],h=(u=e[o.key])!==null&&u!==void 0?u:[];return f.length>0&&c(f,h)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}Ko(t){return t.flatMap((e=>{var n,r;return(n=(r=e.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}Yo(t){if(t.length>0){var e,n,r,o,u=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],c=u[u.length-1];return(r=c==null||(o=c.filename)==null?void 0:o.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}Go(t){return!Re(t)&&Oe(t)}}},nk=ne({productTours:class{get ki(){return this._instance.persistence}constructor(t){this.ea=null,this.ta=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ki&&this.ki.register({[Eh]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.ea||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(Eh)||this.lr((()=>this.ra()))}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?hS.error("Could not load product tours script",r):t()}))}ra(){var t;!this.ea&&(t=pe.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.ea=pe.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Oe(this.ta)||e){var n=this.ki;if(n){var r=n.props[Du];if(Oe(r)&&!e)return this.ta=r,void t(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:o=>{var u=o.statusCode;if(u!==200||!o.json){var c="Product Tours API could not be loaded, status: "+u;return hS.error(c),void t([],{isLoaded:!1,error:c})}var f=Oe(o.json.product_tours)?o.json.product_tours:[];this.ta=f,n&&n.register({[Du]:f}),t(f,{isLoaded:!0})}})}else t(this.ta,{isLoaded:!0})}getActiveProductTours(t){Re(this.ea)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.ea.getActiveProductTours(t)}showProductTour(t){var e;(e=this.ea)==null||e.showTourById(t)}previewTour(t){this.ea?this.ea.previewTour(t):this.lr((()=>{var e;this.ra(),(e=this.ea)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.ea)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.ea)==null||t.nextStep()}previousStep(){var t;(t=this.ea)==null||t.previousStep()}clearCache(){var t;this.ta=null,(t=this.ki)==null||t.unregister(Du)}resetTour(t){var e;(e=this.ea)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.ea)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.ea)==null||e.cancelPendingTour(t)}}},tc),ik={siteApps:class{constructor(t){this._instance=t,this.ia=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}na(t,e){if(e){var n=this.globalsForEvent(e);this.ia.push(n),this.ia.length>1e3&&(this.ia=this.ia.slice(10))}}get siteAppLoaders(){var t;return(t=pe._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.na.bind(this));this.sa=()=>{t(),this.ia=[],this.sa=void 0}}}globalsForEvent(t){var e,n,r,o,u,c,f;if(!t)throw new Error("Event payload is required");var h={},g=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[v,_]of Object.entries(m))h[v]={id:g[v],type:v,properties:_};var{$set_once:b,$set:x}=t;return{event:ne({},a0(t,Y3),{properties:ne({},t.properties,x?{$set:ne({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},x)}:{},b?{$set_once:ne({},(r=(o=t.properties)==null?void 0:o.$set_once)!==null&&r!==void 0?r:{},b)}:{}),elements_chain:(u=(c=t.properties)==null?void 0:c.$elements_chain)!==null&&u!==void 0?u:"",distinct_id:(f=t.properties)==null?void 0:f.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:h}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var c;!e.errored&&this.ia.length&&(Ki.info("Processing "+this.ia.length+" events for site app with id "+t.id),this.ia.forEach((f=>e.processEvent==null?void 0:e.processEvent(f))),e.processedBuffer=!0),Object.values(this.apps).every((f=>f.processedBuffer||f.errored))&&((c=this.sa)==null||c.call(this))},r=!1,o=c=>{e.errored=!c,e.loaded=!0,Ki.info("Site app with id "+t.id+" "+(c?"loaded":"errored")),r&&n()};try{var{processEvent:u}=t.init({posthog:this._instance,callback(c){o(c)}});u&&(e.processEvent=u),r=!0}catch(c){Ki.error(pS+t.id,c),o(!1)}if(r&&e.loaded)try{n()}catch(c){Ki.error("Error while processing buffered events PostHog app with config id "+t.id,c),e.errored=!0}}oa(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}aa(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(e)}catch(r){Ki.error("Error while processing event "+t.event+" for site app "+n.id,r)}}}onRemoteConfig(t){var e,n,r,o=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.oa(),void this._instance.on("eventCaptured",(h=>this.aa(h)))):void Ki.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.sa)==null||n.call(this),(r=t.siteApps)!=null&&r.length)if(this.isEnabled){var u=function(h){var g;pe["__$$ph_site_app_"+h]=o._instance,(g=pe.__PosthogExtensions__)==null||g.loadSiteApp==null||g.loadSiteApp(o._instance,f,(m=>{if(m)return Ki.error(pS+h,m)}))};for(var{id:c,url:f}of t.siteApps)u(c)}else Ki.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},sk={tracingHeaders:class{constructor(t){this.ua=void 0,this.la=void 0,this.ha=void 0,this.Oo=()=>{var e,n,r=this.ca();r?(se(this.ua)&&(this.ua=(e=pe.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null?void 0:e._patchXHR(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),se(this.la)&&(this.la=(n=pe.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null?void 0:n._patchFetch(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.Do()},this._instance=t}initialize(){this.startIfEnabledOrStop()}lr(t){var e,n;(e=pe.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns?t():(n=pe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return $3.error("failed to load script",r);t()}))}da(){var t,e;return(t=(e=this._instance.config.tracing_headers)!==null&&e!==void 0?e:this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}ca(){var t=this.da();return Oe(t)?(Oe(this.ha)?this.ha.splice(0,this.ha.length,...t):this.ha=[...t],t.length>0?this.ha:void 0):(Oe(this.ha)&&this.ha.splice(0),this.ha=t||void 0,this.ha)}Do(){var t,e;(t=this.ua)==null||t.call(this),(e=this.la)==null||e.call(this),this.ua=void 0,this.la=void 0}startIfEnabledOrStop(){this.ca()?this.lr(this.Oo):this.Do()}}},rk=ne({surveys:class{get qt(){return this._instance.config}constructor(t){this.va=void 0,this._surveyManager=null,this.fa=!1,this.pa=[],this.ga=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.qt.disable_surveys){var e=t.surveys;if(Re(e))return He.warn("Flags not loaded yet. Not loading surveys.");var n=Oe(e);this.va=n?e.length>0:e,He.info("flags response received, isSurveysEnabled: "+this.va),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var n=localStorage.key(e);(n!=null&&n.startsWith(fp)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((r=>localStorage.removeItem(r)))}loadIfEnabled(){if(!this._surveyManager)if(this.fa)He.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)He.info(gS);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())He.info("Not loading surveys in cookieless mode without consent.");else{var t=pe?.__PosthogExtensions__;if(t){if(!se(this.va)||this.qt.advanced_enable_surveys){var e=this.va||this.qt.advanced_enable_surveys;this.fa=!0;try{var n=t.generateSurveys;if(n)return void this.ma(n,e);var r=t.loadExternalDependency;if(!r)return void this.ya(Uh);r(this._instance,"surveys",(o=>{o||!t.generateSurveys?this.ya("Could not load surveys script",o):this.ma(t.generateSurveys,e)}))}catch(o){throw this.ya("Error initializing surveys",o),o}finally{this.fa=!1}}}else He.error("PostHog Extensions not found.")}}ma(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new Z3(this._instance),He.info("Surveys loaded successfully"),this.ba({isLoaded:!0})}ya(t,e){He.error(t,e),this.ba({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.pa.push(t),this._surveyManager&&this.ba({isLoaded:!0}),()=>{this.pa=this.pa.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.qt.disable_surveys)return He.info(gS),t([]);var n,r=this._instance.get_property(Mh);if(r&&!e)return t(r,{isLoaded:!0});typeof Promise<"u"&&this.ga?this.ga.then((o=>{var{surveys:u,context:c}=o;return t(u,c)})):(typeof Promise<"u"&&(this.ga=new Promise((o=>{n=o}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:o=>{var u;this.ga=null;var c=o.statusCode;if(c!==200||!o.json){var f="Surveys API could not be loaded, status: "+c;He.error(f);var h={isLoaded:!1,error:f};return t([],h),void(n==null||n({surveys:[],context:h}))}var g,m=o.json.surveys||[],v=m.filter((b=>(function(x){return!(!x.start_date||x.end_date)})(b)&&((function(x){var E;return!((E=x.conditions)==null||(E=E.events)==null||(E=E.values)==null||!E.length)})(b)||(function(x){var E;return!((E=x.conditions)==null||(E=E.actions)==null||(E=E.values)==null||!E.length)})(b))));v.length>0&&((g=this._surveyEventReceiver)==null||g.register(v)),(u=this._instance.persistence)==null||u.register({[Mh]:m,[Oh]:Date.now()});var _={isLoaded:!0};t(m,_),n?.({surveys:m,context:_})}}))}ba(t){for(var e of this.pa)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(n){He.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!Re(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);He.warn("init was not called")}_a(t){var e=null;return this.getSurveys((n=>{var r;e=(r=n.find((o=>o.id===t)))!==null&&r!==void 0?r:null})),e}wa(t){if(Re(this._surveyManager))return{eligible:!1,reason:yp};var e=typeof t=="string"?this._a(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Re(this._surveyManager))return He.warn("init was not called"),{visible:!1,disabledReason:yp};var e=this.wa(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return Re(this._surveyManager)?(He.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:yp})):new Promise((n=>{this.getSurveys((r=>{var o,u=(o=r.find((f=>f.id===t)))!==null&&o!==void 0?o:null;if(u){var c=this.wa(u);n({visible:c.eligible,disabledReason:c.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,n){var r;if(Re(this._surveyManager))He.warn("init was not called");else{var o=typeof t=="string"?this._a(t):t;if(o!=null&&o.id)if(j3.includes(o.type)){var u=ae?.querySelector(e);if(u)return(r=o.appearance)!=null&&r.surveyPopupDelaySeconds?(He.info("Rendering survey "+o.id+" with delay of "+o.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var c,f;He.info("Rendering survey "+o.id+" with delay of "+((c=o.appearance)==null?void 0:c.surveyPopupDelaySeconds)+" seconds"),(f=this._surveyManager)==null||f.renderSurvey(o,u,n),He.info("Survey "+o.id+" rendered")}),1e3*o.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(o,u,n);He.warn("Survey element not found")}else He.warn("Surveys of type "+o.type+" cannot be rendered in the app");else He.warn("Survey not found")}}displaySurvey(t,e){var n;if(Re(this._surveyManager))He.warn("init was not called");else{var r=this._a(t);if(r){var o=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&e.ignoreDelay&&(o=ne({},r,{appearance:ne({},r.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==Jh.Popover&&e.initialResponses&&He.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var u=this.canRenderSurvey(r);if(!u.visible)return void He.warn("Survey is not eligible to be displayed: ",u.disabledReason)}e.displayType!==Jh.Inline?this._surveyManager.handlePopoverSurvey(o,e):this.renderSurvey(o,e.selector,e.properties)}else He.warn("Survey not found")}}cancelPendingSurvey(t){Re(this._surveyManager)?He.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},tc),ak={toolbar:class{constructor(t){this.instance=t}xa(t){pe.ph_toolbar_state=t}Sa(){var t;return(t=pe.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),tb(this.instance.config)||!B||!ae)return!1;t=t??B.location,n=n??B.history;try{if(!e){try{B.localStorage.setItem("test","test"),B.localStorage.removeItem("test")}catch{return!1}e=B?.localStorage}var r,o=Q3||$u(t.hash,"__posthog")||$u(t.hash,"state"),u=o?eb((()=>JSON.parse(atob(decodeURIComponent(o)))))||eb((()=>JSON.parse(decodeURIComponent(o)))):null;return u&&u.action==="ph_authorize"?((r=u).source="url",r&&Object.keys(r).length>0&&(u.desiredHash?t.hash=u.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(mS)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}ka(t){var e=pe.ph_load_toolbar||pe.ph_load_editor;!Re(e)&&ci(e)?e(t,this.instance):vS.warn("No toolbar load function found")}loadToolbar(t){var e=!(ae==null||!ae.getElementById(K0));if(!B||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(B.localStorage.setItem(mS,JSON.stringify(ne({},r,{source:void 0}))),this.Sa()===2)this.ka(r);else if(this.Sa()===0){var o;this.xa(1),(o=pe.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"toolbar",(u=>{if(u)return vS.error("[Toolbar] Failed to load",u),void this.xa(0);this.xa(2),this.ka(r)})),dt(B,"turbolinks:load",(()=>{this.xa(0),this.loadToolbar(r)}))}return!0}Ca(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},ok=ne({experiments:qt},tc),lk={conversations:class{constructor(t){this.Ia=void 0,this._conversationsManager=null,this.Ta=!1,this.Ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;Re(e)||(Kn(e)?this.Ia=e:(this.Ia=e.enabled,this.Ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ia=void 0,this.Ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ta||this._instance.config.disable_conversations||tb(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=pe?.__PosthogExtensions__;if(t&&!se(this.Ia)&&this.Ia)if(this.Ea&&this.Ea.token){this.Ta=!0;try{var e=t.initConversations;if(e)return this.Ma(e),void(this.Ta=!1);var n=t.loadExternalDependency;if(!n)return void this.Ra(Uh);n(this._instance,"conversations",(r=>{r||!t.initConversations?this.Ra("Could not load conversations script",r):this.Ma(t.initConversations),this.Ta=!1}))}catch(r){this.Ra("Error initializing conversations",r),this.Ta=!1}}else Cn.error("Conversations enabled but missing token in remote config.")}}Ma(t){if(this.Ea)try{this._conversationsManager=t(this.Ea,this._instance),Cn.info("Conversations loaded successfully")}catch(e){this.Ra("Error completing conversations initialization",e)}else Cn.error("Cannot complete initialization: remote config is null")}Ra(t,e){Cn.error(t,e),this._conversationsManager=null,this.Ta=!1}show(){this._conversationsManager?this._conversationsManager.show():Cn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ia===!0&&!un(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var r=this;return ln((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(t,e,n):(Cn.warn(Gs),null)}))()}getMessages(t,e){var n=this;return ln((function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(Cn.warn(Gs),null)}))()}markAsRead(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Cn.warn(Gs),null)}))()}getTickets(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Cn.warn(Gs),null)}))()}requestRestoreLink(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Cn.warn(Gs),null)}))()}restoreFromToken(t){var e=this;return ln((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Cn.warn(Gs),null)}))()}restoreFromUrlToken(){var t=this;return ln((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Cn.warn(Gs),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}Ln(){var t;(t=this._conversationsManager)==null||t.setIdentity()}Fn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},uk={logs:class{constructor(t){var e;this.Pa=!1,this.Oa=!1,this.Gt=ot("[logs]"),this.La=[],this.Fa=0,this.Aa=0,this.Na=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.Pa=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,n=(e=t.logs)==null?void 0:e.captureConsoleLogs;!Re(n)&&n&&(this.Pa=!0,this.loadIfEnabled())}reset(){this.La=[],this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.Fa=0,this.Aa=0,this.Na=!1}loadIfEnabled(){if(this.Pa&&!this.Oa){var t=pe?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(n=>{var r;n||(r=t.logs)==null||!r.initializeLogs?this.Gt.error("Could not load logs script",n):(t.logs.initializeLogs(this._instance),this.Oa=!0)})):this.Gt.error(Uh)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,n,r,o,u,c;if(this._instance.is_capturing())if(t&&t.body){var f=(e=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&e!==void 0?e:3e3,h=(r=(o=this._instance.config.logs)==null?void 0:o.maxLogsPerInterval)!==null&&r!==void 0?r:1e3,g=Date.now();if(f>g-this.Aa||(this.Aa=g,this.Fa=0,this.Na=!1),h>this.Fa){this.Fa++;var m=(function(v,_){var b=v.level||"info",{text:x,number:E}=U0[b]||_D,M=String(Date.now())+"000000",R={};_.distinctId&&(R.posthogDistinctId=_.distinctId),_.sessionId&&(R.sessionId=_.sessionId),_.currentUrl&&(R["url.full"]=_.currentUrl),_.screenName&&(R["screen.name"]=_.screenName),_.appState&&(R["app.state"]=_.appState),_.activeFeatureFlags&&_.activeFeatureFlags.length>0&&(R.feature_flags=_.activeFeatureFlags);var q=ne({},R,v.attributes||{}),F={timeUnixNano:M,observedTimeUnixNano:M,severityNumber:E,severityText:x,body:{stringValue:v.body},attributes:V0(q)};return v.trace_id&&(F.traceId=v.trace_id),v.span_id&&(F.spanId=v.span_id),se(v.trace_flags)||(F.flags=v.trace_flags),F})(t,this.Da());this.La.push({record:m}),((u=(c=this._instance.config.logs)==null?void 0:c.maxBufferSize)!==null&&u!==void 0?u:100)>this.La.length?this.$a():this.flushLogs()}else this.Na||(this.Gt.warn("captureLog dropping logs: exceeded "+h+" logs per "+f+"ms"),this.Na=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.qa||(this.qa={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.qa}flushLogs(t){if(this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.La.length!==0){var e=this.La;this.La=[];var n=this._instance.config.logs,r=ne({"service.name":n?.serviceName||"unknown_service"},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),o=(function(c,f,h,g){return{resourceLogs:[{resource:{attributes:V0(f)},scopeLogs:[{scope:{name:h,version:g},logRecords:c}]}]}})(e.map((c=>c.record)),r,wt.LIB_NAME,wt.LIB_VERSION),u=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.pn({method:"POST",url:u,data:o,compression:"best-available",batchKey:"logs",transport:t})}}$a(){var t,e;this.ii||(this.ii=setTimeout((()=>{this.ii=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}Da(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=n}if(pe!=null&&(t=pe.location)!=null&&t.href&&(e.currentUrl=pe.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(e.activeFeatureFlags=r)}return e}}},ck=ne({},tc,W3,ek,tk,nk,ik,rk,sk,ak,ok,lk,uk);An.__defaultExtensionClasses=ne({},ck);var SS=(function(){wt.SDK_DIST_CHANNEL="npm";var t=Ro[Gr]=new An;return(function(){function e(){e.done||(e.done=!0,rS=!1,Ze(Ro,(function(n){n._dom_loaded()})))}ae!=null&&ae.addEventListener?ae.readyState==="complete"?e():dt(ae,"DOMContentLoaded",e,{capture:!1}):B&&re.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),t})();const ES=qi("alistigo:analytics");let bp=!1;const fk="https://eu.i.posthog.com";function dk(t,e){const n="phc_pgy5guec4WCmTXH2b5bsWQE32PUQB7wnubrpMCb2hgFU";if(!bp)try{SS.init(n,{api_host:fk,persistence:"memory",autocapture:!1,capture_pageview:!1,loaded:()=>{ES.info({version:e,locale:t},"PostHog initialized")}}),bp=!0}catch(r){ES.error({err:r},"PostHog init failed")}}function hk(t){bp&&SS.capture("widget_displayed",t)}class Zi extends Error{constructor(e){super(e),this.name="ListError"}}class nc extends Zi{constructor(e){super(`ListElement not found: ${e}`),this.name="ListElementNotFoundError"}}const pk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function gk(t){return typeof t=="string"&&pk.test(t)}for(var Lt=[],Sp=0;Sp<256;++Sp)Lt.push((Sp+256).toString(16).slice(1));function xS(t,e=0){return(Lt[t[e+0]]+Lt[t[e+1]]+Lt[t[e+2]]+Lt[t[e+3]]+"-"+Lt[t[e+4]]+Lt[t[e+5]]+"-"+Lt[t[e+6]]+Lt[t[e+7]]+"-"+Lt[t[e+8]]+Lt[t[e+9]]+"-"+Lt[t[e+10]]+Lt[t[e+11]]+Lt[t[e+12]]+Lt[t[e+13]]+Lt[t[e+14]]+Lt[t[e+15]]).toLowerCase()}function mk(t,e=0){var n=xS(t,e);if(!gk(n))throw TypeError("Stringified UUID is invalid");return n}var ic,vk=new Uint8Array(16);function yk(){if(!ic&&(ic=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ic))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ic(vk)}var TS=null,wS=null,Hn=0;function _k(t,e,n){t=t||{};var r=0,o=e||new Uint8Array(16),u=t.random||(t.rng||yk)(),c=t.msecs!==void 0?t.msecs:Date.now(),f=t.seq!==void 0?t.seq:null,h=wS,g=TS;return c>Hn&&t.msecs===void 0&&(Hn=c,f!==null&&(h=null,g=null)),f!==null&&(f>2147483647&&(f=2147483647),h=f>>>19&4095,g=f&524287),(h===null||g===null)&&(h=u[6]&127,h=h<<8|u[7],g=u[8]&63,g=g<<8|u[9],g=g<<5|u[10]>>>3),c+1e4>Hn&&f===null?++g>524287&&(g=0,++h>4095&&(h=0,Hn++)):Hn=c,wS=h,TS=g,o[r++]=Hn/1099511627776&255,o[r++]=Hn/4294967296&255,o[r++]=Hn/16777216&255,o[r++]=Hn/65536&255,o[r++]=Hn/256&255,o[r++]=Hn&255,o[r++]=h>>>4&15|112,o[r++]=h&255,o[r++]=g>>>13&63|128,o[r++]=g>>>5&255,o[r++]=g<<3&255|u[10]&7,o[r++]=u[11],o[r++]=u[12],o[r++]=u[13],o[r++]=u[14],o[r++]=u[15],e||xS(o)}function bk(t){let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=e&255,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=e&255,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=e&255,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=e&255,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=e&255,n}var Qe="0123456789abcdefghjkmnpqrstvwxyz",fe=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function Ep(t){const e=new Array(26).fill("");if(t.length!==16)throw new Error(`Invalid length. Expected 16 bytes, got ${t.length}. Input: ${t}`);return e[0]=Qe[(t[0]&224)>>5],e[1]=Qe[t[0]&31],e[2]=Qe[(t[1]&248)>>3],e[3]=Qe[(t[1]&7)<<2|(t[2]&192)>>6],e[4]=Qe[(t[2]&62)>>1],e[5]=Qe[(t[2]&1)<<4|(t[3]&240)>>4],e[6]=Qe[(t[3]&15)<<1|(t[4]&128)>>7],e[7]=Qe[(t[4]&124)>>2],e[8]=Qe[(t[4]&3)<<3|(t[5]&224)>>5],e[9]=Qe[t[5]&31],e[10]=Qe[(t[6]&248)>>3],e[11]=Qe[(t[6]&7)<<2|(t[7]&192)>>6],e[12]=Qe[(t[7]&62)>>1],e[13]=Qe[(t[7]&1)<<4|(t[8]&240)>>4],e[14]=Qe[(t[8]&15)<<1|(t[9]&128)>>7],e[15]=Qe[(t[9]&124)>>2],e[16]=Qe[(t[9]&3)<<3|(t[10]&224)>>5],e[17]=Qe[t[10]&31],e[18]=Qe[(t[11]&248)>>3],e[19]=Qe[(t[11]&7)<<2|(t[12]&192)>>6],e[20]=Qe[(t[12]&62)>>1],e[21]=Qe[(t[12]&1)<<4|(t[13]&240)>>4],e[22]=Qe[(t[13]&15)<<1|(t[14]&128)>>7],e[23]=Qe[(t[14]&124)>>2],e[24]=Qe[(t[14]&3)<<3|(t[15]&224)>>5],e[25]=Qe[t[15]&31],e.join("")}function AS(t){if(t.length!==26)throw new Error(`Invalid length. Expected 26 bytes, got ${t.length}. Input: ${t}`);const n=new TextEncoder().encode(t);if(fe[n[0]]===255||fe[n[1]]===255||fe[n[2]]===255||fe[n[3]]===255||fe[n[4]]===255||fe[n[5]]===255||fe[n[6]]===255||fe[n[7]]===255||fe[n[8]]===255||fe[n[9]]===255||fe[n[10]]===255||fe[n[11]]===255||fe[n[12]]===255||fe[n[13]]===255||fe[n[14]]===255||fe[n[15]]===255||fe[n[16]]===255||fe[n[17]]===255||fe[n[18]]===255||fe[n[19]]===255||fe[n[20]]===255||fe[n[21]]===255||fe[n[22]]===255||fe[n[23]]===255||fe[n[24]]===255||fe[n[25]]===255)throw new Error("Invalid base32 character");const r=new Uint8Array(16);return r[0]=fe[n[0]]<<5|fe[n[1]],r[1]=fe[n[2]]<<3|fe[n[3]]>>2,r[2]=(fe[n[3]]&3)<<6|fe[n[4]]<<1|fe[n[5]]>>4,r[3]=(fe[n[5]]&15)<<4|fe[n[6]]>>1,r[4]=(fe[n[6]]&1)<<7|fe[n[7]]<<2|fe[n[8]]>>3,r[5]=(fe[n[8]]&7)<<5|fe[n[9]],r[6]=fe[n[10]]<<3|fe[n[11]]>>2,r[7]=(fe[n[11]]&3)<<6|fe[n[12]]<<1|fe[n[13]]>>4,r[8]=(fe[n[13]]&15)<<4|fe[n[14]]>>1,r[9]=(fe[n[14]]&1)<<7|fe[n[15]]<<2|fe[n[16]]>>3,r[10]=(fe[n[16]]&7)<<5|fe[n[17]],r[11]=fe[n[18]]<<3|fe[n[19]]>>2,r[12]=(fe[n[19]]&3)<<6|fe[n[20]]<<1|fe[n[21]]>>4,r[13]=(fe[n[21]]&15)<<4|fe[n[22]]>>1,r[14]=(fe[n[22]]&1)<<7|fe[n[23]]<<2|fe[n[24]]>>3,r[15]=(fe[n[24]]&7)<<5|fe[n[25]],r}function Sk(t){if(t.length>63)return!1;let e,n,r;for(n=0,r=t.length;n<r;n+=1){e=t.charCodeAt(n);const o=e>96&&e<123,u=e===95;if((n===0||n===r-1)&&!o||!(o||u))return!1}return!0}var Ek=class extends Error{constructor(t){super(`Invalid prefix "${t}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},xk=class extends Error{constructor(t,e){super(`Invalid TypeId. Prefix mismatch. Expected ${t}, got ${e}`),this.name="PrefixMismatchError"}},Tk=class extends Error{constructor(t){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${t}`),this.name="EmptyPrefixError"}},CS=class extends Error{constructor(t){super(`Invalid length. Suffix should have 26 characters, got ${t}`),this.name="InvalidSuffixLengthError"}},wk=class extends Error{constructor(t){super(`Invalid suffix. First character "${t}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},Ak=class extends Error{constructor(t,e){super(`Cannot convert TypeID of type ${t} to type ${e}`),this.name="TypeIDConversionError"}};function MS(t="",e=""){if(!Sk(t))throw new Ek(t);let n;if(e)n=e;else{const r=new Uint8Array(16);_k(void 0,r),n=Ep(r)}if(n.length!==26)throw new CS(n.length);if(n[0]>"7")throw new wk(n[0]);return AS(n),t===""?n:`${t}_${n}`}function Ck(t,e){let n,r;const o=t.lastIndexOf("_");if(o===-1)n="",r=t;else if(n=t.substring(0,o),r=t.substring(o+1),!n)throw new Tk(t);if(!r)throw new CS(0);if(e&&n!==e)throw new xk(e,n);return MS(n,r)}function OS(t){const e=t.lastIndexOf("_");return e===-1?"":t.substring(0,e)}function RS(t){const e=t.lastIndexOf("_");return e===-1?t:t.substring(e+1)}var Qi=class{constructor(t,e=""){this.prefix=t,this.suffix=e;const n=MS(t,e);this.prefix=OS(n),this.suffix=RS(n)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(t){const e=this;if(e.prefix!==t)throw new Ak(e.prefix,t);return e}toUUIDBytes(){return AS(this.suffix)}toUUID(){return mk(this.toUUIDBytes())}toString(){return this.prefix===""?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(t,e){const n=Ck(t,e);return new Qi(OS(n),RS(n))}static fromUUIDBytes(t,e){const n=Ep(e);return new Qi(t,n)}static fromUUID(t,e){const n=Ep(bk(e));return new Qi(t,n)}};function sc(t="",e=""){return new Qi(t,e)}function Mk(){return sc("lse")}function xp(t){return Qi.fromString(t,"lse")}function rc(){return sc("lev")}function Ok(t){return Qi.fromString(t,"lev")}function DS(){return sc("lst")}function Tp(t){return Qi.fromString(t,"lst")}function Rk(t){const e=new Date(t);if(Number.isNaN(e.getTime()))throw new Zi(`Invalid Timestamp: "${t}" does not parse as a valid date`);return t}function ac(){return new Date().toISOString()}class No{#e;#s;#n;#t;constructor(e){this.#e=e,this.#s=void 0,this.#n=new Map,this.#t=[]}get id(){return this.#e}get title(){return this.#s}get elements(){return[...this.#n.values()]}static create(e){const n=e.listId??DS(),r=new No(n),o={type:"ListCreated",listEventId:rc(),listId:n,actorId:e.actorId,timestamp:ac(),...e.title!==void 0?{title:e.title}:{}};return r.#i(o),r.#t.push(o),{list:r,event:o}}static rehydrate(e,n){const r=new No(e);for(const o of n)r.#i(o);return r}addListElement(e){const n=Mk(),r={type:"ListElementAdded",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),listElementId:n,content:e.content};return this.#i(r),this.#t.push(r),r}deleteListElement(e){const n=e.listElementId.toString();if(!this.#n.has(n))throw new nc(n);const r={type:"ListElementDeleted",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),listElementId:e.listElementId};return this.#i(r),this.#t.push(r),r}exportListDocument(e){const n={type:"ListExported",listEventId:rc(),listId:this.#e,actorId:e.actorId,timestamp:ac(),format:"json-ld"};return this.#i(n),this.#t.push(n),n}getUncommittedEvents(){return[...this.#t]}markEventsAsCommitted(){this.#t.length=0}#i(e){({ListCreated:r=>{this.#s=r.title},ListElementAdded:r=>{this.#n.set(r.listElementId.toString(),{id:r.listElementId,content:r.content,addedAt:r.timestamp})},ListElementDeleted:r=>{this.#n.delete(r.listElementId.toString())},ListExported:r=>{}})[e.type](e)}}function Dk(){return sc("act")}function kk(t){return Qi.fromString(t,"act")}const kS=2e3;function LS(t){const e=t.trim();if(e.length===0)throw new Zi("ListElementContent cannot be empty");if(e.length>kS)throw new Zi(`ListElementContent exceeds maximum length of ${kS} characters`);return e}const Lk={"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},Nk="1.0.0";function zk(t){const e={"alistigo:listEventId":t.listEventId.toString(),"alistigo:listId":t.listId.toString(),"alistigo:actorId":t.actorId.toString(),"alistigo:timestamp":t.timestamp};switch(t.type){case"ListCreated":return{...e,"alistigo:eventType":"ListCreated",...t.title!==void 0?{name:t.title}:{}};case"ListElementAdded":return{...e,"alistigo:eventType":"ListElementAdded","alistigo:listElementId":t.listElementId.toString(),name:t.content};case"ListElementDeleted":return{...e,"alistigo:eventType":"ListElementDeleted","alistigo:listElementId":t.listElementId.toString()};case"ListExported":return{...e,"alistigo:eventType":"ListExported"}}}function jk(t){const e={listEventId:Ok(t["alistigo:listEventId"]),listId:Tp(t["alistigo:listId"]),actorId:kk(t["alistigo:actorId"]),timestamp:Rk(t["alistigo:timestamp"])};switch(t["alistigo:eventType"]){case"ListCreated":{const n=t;return{...e,type:"ListCreated",...n.name!==void 0?{title:n.name}:{}}}case"ListElementAdded":{const n=t;return{...e,type:"ListElementAdded",listElementId:xp(n["alistigo:listElementId"]),content:LS(n.name)}}case"ListElementDeleted":return{...e,type:"ListElementDeleted",listElementId:xp(t["alistigo:listElementId"])};case"ListExported":return{...e,type:"ListExported",format:"json-ld"}}}const oc={serialize(t,e){const n=e?.["alistigo:listEventLog"]??[],r=t.getUncommittedEvents().map(zk),o=t.elements.map((c,f)=>({"@type":"ListItem","alistigo:listElementId":c.id.toString(),position:f+1,name:c.content})),u={"@context":Lk,"@type":"ItemList","alistigo:listId":t.id.toString(),"alistigo:schemaVersion":Nk,itemListElement:o,"alistigo:listEventLog":[...n,...r]};return t.title!==void 0&&(u.name=t.title),u},deserialize(t){const e=Tp(t["alistigo:listId"]),n=t["alistigo:listEventLog"].map(jk);return No.rehydrate(e,n)}},lc=qi("alistigo:claude-storage"),zo=t=>`alistigo-${t.toString()}`;class Uk{get storage(){const e=window.storage;if(!e)throw new Error("ClaudeArtifactListRepository requires window.storage — use isClaudeArtifactContext() before instantiating");return e}async load(e){try{lc.debug({key:zo(e)},"loading from claude storage");const n=await this.storage.get(zo(e)),r=JSON.parse(n.value);return oc.deserialize(r)}catch(n){lc.debug({err:n},"load from claude storage returned nothing (key may not exist)");return}}async save(e){const n=await this.loadDocument(e.id),r=oc.serialize(e,n);await this.storage.set(zo(e.id),JSON.stringify(r)),lc.debug({key:zo(e.id)},"saved to claude storage")}async loadDocument(e){try{const n=await this.storage.get(zo(e));return JSON.parse(n.value)}catch(n){lc.debug({err:n},"loadDocument from claude storage returned nothing (key may not exist)");return}}}function Bk(){return typeof window<"u"&&"storage"in window&&typeof window.storage?.get=="function"}function Vk(t){return{ok:!0,value:t}}function Ys(t){return{ok:!1,error:t}}const uc=qi("alistigo:service");class Ik{store;constructor(e){this.store=e}async createList(e,n,r){try{const o=r??DS();uc.debug({listId:o.toString(),title:n},"createList");const{list:u}=No.create({actorId:e,listId:o,...n!==void 0?{title:n}:{}});return await this.#e(u,o)}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async addListElement(e,n,r){try{uc.debug({listId:e.toString(),content:n},"addListElement");const o=await this.store.load(e);if(!o)return Ys(new nc(e.toString()));const u=LS(n);return o.addListElement({actorId:r,listId:e,content:u}),await this.#e(o,e)}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async deleteListElement(e,n,r){try{uc.debug({listId:e.toString(),elementId:n.toString()},"deleteListElement");const o=await this.store.load(e);return o?(o.deleteListElement({actorId:r,listId:e,listElementId:n}),await this.#e(o,e)):Ys(new nc(e.toString()))}catch(o){if(o instanceof Zi)return Ys(o);throw o}}async loadDocument(e){return this.store.loadDocument(e)}async exportListDocument(e,n){try{const r=await this.store.load(e);return r?(r.exportListDocument({actorId:n,listId:e}),await this.#e(r,e)):Ys(new nc(e.toString()))}catch(r){if(r instanceof Zi)return Ys(r);throw r}}async#e(e,n){await this.store.save(e),e.markEventsAsCommitted();const r=await this.store.loadDocument(n);return uc.debug({listId:n.toString(),elementCount:r?.itemListElement.length},"document saved"),Vk(r)}}function NS(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function qk(...t){return e=>{let n=!1;const r=t.map(o=>{const u=NS(o,e);return!n&&typeof u=="function"&&(n=!0),u});if(n)return()=>{for(let o=0;o<r.length;o++){const u=r[o];typeof u=="function"?u():NS(t[o],null)}}}}var Pk=Symbol.for("react.lazy"),cc=p5[" use ".trim().toString()];function Hk(t){return typeof t=="object"&&t!==null&&"then"in t}function zS(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Pk&&"_payload"in t&&Hk(t._payload)}function Fk(t){const e=Gk(t),n=Y.forwardRef((r,o)=>{let{children:u,...c}=r;zS(u)&&typeof cc=="function"&&(u=cc(u._payload));const f=Y.Children.toArray(u),h=f.find(Xk);if(h){const g=h.props.children,m=f.map(v=>v===h?Y.Children.count(g)>1?Y.Children.only(null):Y.isValidElement(g)?g.props.children:null:v);return ve.jsx(e,{...c,ref:o,children:Y.isValidElement(g)?Y.cloneElement(g,void 0,m):null})}return ve.jsx(e,{...c,ref:o,children:u})});return n.displayName=`${t}.Slot`,n}var $k=Fk("Slot");function Gk(t){const e=Y.forwardRef((n,r)=>{let{children:o,...u}=n;if(zS(o)&&typeof cc=="function"&&(o=cc(o._payload)),Y.isValidElement(o)){const c=Zk(o),f=Kk(u,o.props);return o.type!==Y.Fragment&&(f.ref=r?qk(r,c):c),Y.cloneElement(o,f)}return Y.Children.count(o)>1?Y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Yk=Symbol("radix.slottable");function Xk(t){return Y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Yk}function Kk(t,e){const n={...e};for(const r in e){const o=t[r],u=e[r];/^on[A-Z]/.test(r)?o&&u?n[r]=(...f)=>{const h=u(...f);return o(...f),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...u}:r==="className"&&(n[r]=[o,u].filter(Boolean).join(" "))}return{...t,...n}}function Zk(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function jS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=jS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function US(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=jS(t))&&(r&&(r+=" "),r+=e);return r}const BS=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,VS=US,Qk=(t,e)=>n=>{var r;if(e?.variants==null)return VS(t,n?.class,n?.className);const{variants:o,defaultVariants:u}=e,c=Object.keys(o).map(g=>{const m=n?.[g],v=u?.[g];if(m===null)return null;const _=BS(m)||BS(v);return o[g][_]}),f=n&&Object.entries(n).reduce((g,m)=>{let[v,_]=m;return _===void 0||(g[v]=_),g},{}),h=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((g,m)=>{let{class:v,className:_,...b}=m;return Object.entries(b).every(x=>{let[E,M]=x;return Array.isArray(M)?M.includes({...u,...f}[E]):{...u,...f}[E]===M})?[...g,v,_]:g},[]);return VS(t,c,h,n?.class,n?.className)},wp="-",Jk=t=>{const e=eL(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:c=>{const f=c.split(wp);return f[0]===""&&f.length!==1&&f.shift(),IS(f,e)||Wk(c)},getConflictingClassGroupIds:(c,f)=>{const h=n[c]||[];return f&&r[c]?[...h,...r[c]]:h}}},IS=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),o=r?IS(t.slice(1),r):void 0;if(o)return o;if(e.validators.length===0)return;const u=t.join(wp);return e.validators.find(({validator:c})=>c(u))?.classGroupId},qS=/^\[(.+)\]$/,Wk=t=>{if(qS.test(t)){const e=qS.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},eL=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return nL(Object.entries(t.classGroups),n).forEach(([u,c])=>{Ap(c,r,u,e)}),r},Ap=(t,e,n,r)=>{t.forEach(o=>{if(typeof o=="string"){const u=o===""?e:PS(e,o);u.classGroupId=n;return}if(typeof o=="function"){if(tL(o)){Ap(o(r),e,n,r);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([u,c])=>{Ap(c,PS(e,u),n,r)})})},PS=(t,e)=>{let n=t;return e.split(wp).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tL=t=>t.isThemeGetter,nL=(t,e)=>e?t.map(([n,r])=>{const o=r.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,f])=>[e+c,f])):u);return[n,o]}):t,iL=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const o=(u,c)=>{n.set(u,c),e++,e>t&&(e=0,r=n,n=new Map)};return{get(u){let c=n.get(u);if(c!==void 0)return c;if((c=r.get(u))!==void 0)return o(u,c),c},set(u,c){n.has(u)?n.set(u,c):o(u,c)}}},HS="!",sL=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,o=e[0],u=e.length,c=f=>{const h=[];let g=0,m=0,v;for(let M=0;M<f.length;M++){let R=f[M];if(g===0){if(R===o&&(r||f.slice(M,M+u)===e)){h.push(f.slice(m,M)),m=M+u;continue}if(R==="/"){v=M;continue}}R==="["?g++:R==="]"&&g--}const _=h.length===0?f:f.substring(m),b=_.startsWith(HS),x=b?_.substring(1):_,E=v&&v>m?v-m:void 0;return{modifiers:h,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:E}};return n?f=>n({className:f,parseClassName:c}):c},rL=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},aL=t=>({cache:iL(t.cacheSize),parseClassName:sL(t),...Jk(t)}),oL=/\s+/,lL=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=e,u=[],c=t.trim().split(oL);let f="";for(let h=c.length-1;h>=0;h-=1){const g=c[h],{modifiers:m,hasImportantModifier:v,baseClassName:_,maybePostfixModifierPosition:b}=n(g);let x=!!b,E=r(x?_.substring(0,b):_);if(!E){if(!x){f=g+(f.length>0?" "+f:f);continue}if(E=r(_),!E){f=g+(f.length>0?" "+f:f);continue}x=!1}const M=rL(m).join(":"),R=v?M+HS:M,q=R+E;if(u.includes(q))continue;u.push(q);const F=o(E,x);for(let K=0;K<F.length;++K){const U=F[K];u.push(R+U)}f=g+(f.length>0?" "+f:f)}return f};function uL(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=FS(e))&&(r&&(r+=" "),r+=n);return r}const FS=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=FS(t[r]))&&(n&&(n+=" "),n+=e);return n};function cL(t,...e){let n,r,o,u=c;function c(h){const g=e.reduce((m,v)=>v(m),t());return n=aL(g),r=n.cache.get,o=n.cache.set,u=f,f(h)}function f(h){const g=r(h);if(g)return g;const m=lL(h,n);return o(h,m),m}return function(){return u(uL.apply(null,arguments))}}const tt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},$S=/^\[(?:([a-z-]+):)?(.+)\]$/i,fL=/^\d+\/\d+$/,dL=new Set(["px","full","screen"]),hL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=t=>Xr(t)||dL.has(t)||fL.test(t),Ji=t=>Kr(t,"length",wL),Xr=t=>!!t&&!Number.isNaN(Number(t)),Cp=t=>Kr(t,"number",Xr),jo=t=>!!t&&Number.isInteger(Number(t)),yL=t=>t.endsWith("%")&&Xr(t.slice(0,-1)),we=t=>$S.test(t),Wi=t=>hL.test(t),_L=new Set(["length","size","percentage"]),bL=t=>Kr(t,_L,GS),SL=t=>Kr(t,"position",GS),EL=new Set(["image","url"]),xL=t=>Kr(t,EL,CL),TL=t=>Kr(t,"",AL),Uo=()=>!0,Kr=(t,e,n)=>{const r=$S.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},wL=t=>pL.test(t)&&!gL.test(t),GS=()=>!1,AL=t=>mL.test(t),CL=t=>vL.test(t),ML=cL(()=>{const t=tt("colors"),e=tt("spacing"),n=tt("blur"),r=tt("brightness"),o=tt("borderColor"),u=tt("borderRadius"),c=tt("borderSpacing"),f=tt("borderWidth"),h=tt("contrast"),g=tt("grayscale"),m=tt("hueRotate"),v=tt("invert"),_=tt("gap"),b=tt("gradientColorStops"),x=tt("gradientColorStopPositions"),E=tt("inset"),M=tt("margin"),R=tt("opacity"),q=tt("padding"),F=tt("saturate"),K=tt("scale"),U=tt("sepia"),Q=tt("skew"),P=tt("space"),I=tt("translate"),$=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",we,e],ie=()=>[we,e],he=()=>["",yi,Ji],ye=()=>["auto",Xr,we],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",we],ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[Xr,we];return{cacheSize:500,separator:":",theme:{colors:[Uo],spacing:[yi,Ji],blur:["none","",Wi,we],brightness:T(),borderColor:[t],borderRadius:["none","","full",Wi,we],borderSpacing:ie(),borderWidth:he(),contrast:T(),grayscale:te(),hueRotate:T(),invert:te(),gap:ie(),gradientColorStops:[t],gradientColorStopPositions:[yL,Ji],inset:le(),margin:le(),opacity:T(),padding:ie(),saturate:T(),scale:T(),sepia:te(),skew:T(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Wi]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),we]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jo,we]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",jo,we]}],"grid-cols":[{"grid-cols":[Uo]}],"col-start-end":[{col:["auto",{span:["full",jo,we]},we]}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":[Uo]}],"row-start-end":[{row:["auto",{span:[jo,we]},we]}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[q]}],px:[{px:[q]}],py:[{py:[q]}],ps:[{ps:[q]}],pe:[{pe:[q]}],pt:[{pt:[q]}],pr:[{pr:[q]}],pb:[{pb:[q]}],pl:[{pl:[q]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,e]}],"min-w":[{"min-w":[we,e,"min","max","fit"]}],"max-w":[{"max-w":[we,e,"none","full","min","max","fit","prose",{screen:[Wi]},Wi]}],h:[{h:[we,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Wi,Ji]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cp]}],"font-family":[{font:[Uo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",Xr,Cp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",yi,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",yi,Ji]}],"underline-offset":[{"underline-offset":["auto",yi,we]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),SL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xL]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:A()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[yi,we]}],"outline-w":[{outline:[yi,Ji]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[yi,Ji]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Wi,TL]}],"shadow-color":[{shadow:[Uo]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Wi,we]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[v]}],saturate:[{saturate:[F]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[K]}],"scale-x":[{"scale-x":[K]}],"scale-y":[{"scale-y":[K]}],rotate:[{rotate:[jo,we]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[yi,Ji,Cp]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});const OL=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YS=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var RL={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const DL=Y.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...f},h)=>Y.createElement("svg",{ref:h,...RL,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:YS("lucide",o),...f},[...c.map(([g,m])=>Y.createElement(g,m)),...Array.isArray(u)?u:[u]]));const XS=(t,e)=>{const n=Y.forwardRef(({className:r,...o},u)=>Y.createElement(DL,{ref:u,iconNode:e,className:YS(`lucide-${OL(t)}`,r),...o}));return n.displayName=`${t}`,n};const kL=XS("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const LL=XS("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Mp=Y.createContext({});function Op(t){const e=Y.useRef(null);return e.current===null&&(e.current=t()),e.current}const Bo=Y.createContext(null),Rp=Y.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class NL extends Y.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zL({children:t,isPresent:e}){const n=Y.useId(),r=Y.useRef(null),o=Y.useRef({width:0,height:0,top:0,left:0}),{nonce:u}=Y.useContext(Rp);return Y.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:g}=o.current;if(e||!r.current||!c||!f)return;r.current.dataset.motionPopId=n;const m=document.createElement("style");return u&&(m.nonce=u),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
34
|
-
[data-motion-pop-id="${n}"] {
|
|
17
|
+
`+l.stack}}var _u=Object.prototype.hasOwnProperty,Ru=i.unstable_scheduleCallback,Vu=i.unstable_cancelCallback,tE=i.unstable_shouldYield,eE=i.unstable_requestPaint,Ae=i.unstable_now,nE=i.unstable_getCurrentPriorityLevel,kp=i.unstable_ImmediatePriority,Jp=i.unstable_UserBlockingPriority,Ls=i.unstable_NormalPriority,iE=i.unstable_LowPriority,Fp=i.unstable_IdlePriority,aE=i.log,lE=i.unstable_setDisableYieldValue,ol=null,Me=null;function Nn(t){if(typeof aE=="function"&&lE(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(ol,t)}catch{}}var Ce=Math.clz32?Math.clz32:oE,sE=Math.log,rE=Math.LN2;function oE(t){return t>>>=0,t===0?32:31-(sE(t)/rE|0)|0}var js=256,Us=262144,Ns=4194304;function bi(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Bs(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var o=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var y=l&134217727;return y!==0?(l=y&~u,l!==0?o=bi(l):(h&=y,h!==0?o=bi(h):n||(n=y&~t,n!==0&&(o=bi(n))))):(y=l&~u,y!==0?o=bi(y):h!==0?o=bi(h):n||(n=l&~t,n!==0&&(o=bi(n)))),o===0?0:e!==0&&e!==o&&(e&u)===0&&(u=o&-o,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:o}function ul(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function uE(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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 e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pp(){var t=Ns;return Ns<<=1,(Ns&62914560)===0&&(Ns=4194304),t}function Lu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function cl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function cE(t,e,n,l,o,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,T=t.expirationTimes,z=t.hiddenUpdates;for(n=h&~n;0<n;){var j=31-Ce(n),G=1<<j;y[j]=0,T[j]=-1;var O=z[j];if(O!==null)for(z[j]=null,j=0;j<O.length;j++){var R=O[j];R!==null&&(R.lane&=-536870913)}n&=~G}l!==0&&Wp(t,l,0),u!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function Wp(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function $p(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ce(n),o=1<<l;o&e|t[l]&e&&(t[l]|=e),n&=~o}}function Ip(t,e){var n=e&-e;return n=(n&42)!==0?1:ju(n),(n&(t.suspendedLanes|e))!==0?0:n}function ju(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Uu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function tg(){var t=_.p;return t!==0?t:(t=window.event,t===void 0?32:H0(t.type))}function eg(t,e){var n=_.p;try{return _.p=t,e()}finally{_.p=n}}var Bn=Math.random().toString(36).slice(2),ae="__reactFiber$"+Bn,pe="__reactProps$"+Bn,Wi="__reactContainer$"+Bn,Nu="__reactEvents$"+Bn,fE="__reactListeners$"+Bn,dE="__reactHandles$"+Bn,ng="__reactResources$"+Bn,fl="__reactMarker$"+Bn;function Bu(t){delete t[ae],delete t[pe],delete t[Nu],delete t[fE],delete t[dE]}function $i(t){var e=t[ae];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Wi]||n[ae]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=E0(t);t!==null;){if(n=t[ae])return n;t=E0(t)}return e}t=n,n=t.parentNode}return null}function Ii(t){if(t=t[ae]||t[Wi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function dl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function ta(t){var e=t[ng];return e||(e=t[ng]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function te(t){t[fl]=!0}var ig=new Set,ag={};function Si(t,e){ea(t,e),ea(t+"Capture",e)}function ea(t,e){for(ag[t]=e,t=0;t<e.length;t++)ig.add(e[t])}var hE=RegExp("^[: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]*$"),lg={},sg={};function mE(t){return _u.call(sg,t)?!0:_u.call(lg,t)?!1:hE.test(t)?sg[t]=!0:(lg[t]=!0,!1)}function Hs(t,e,n){if(mE(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function qs(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function cn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ne(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function rg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function pE(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=rg(t)?"checked":"value";t._valueTracker=pE(t,e,""+t[e])}}function og(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=rg(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Gs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var gE=/[\n"\\]/g;function Be(t){return t.replace(gE,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function qu(t,e,n,l,o,u,h,y){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ne(e)):t.value!==""+Ne(e)&&(t.value=""+Ne(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Gu(t,h,Ne(e)):n!=null?Gu(t,h,Ne(n)):l!=null&&t.removeAttribute("value"),o==null&&u!=null&&(t.defaultChecked=!!u),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Ne(y):t.removeAttribute("name")}function ug(t,e,n,l,o,u,h,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Hu(t);return}n=n!=null?""+Ne(n):"",e=e!=null?""+Ne(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=y?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Hu(t)}function Gu(t,e,n){e==="number"&&Gs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function na(t,e,n,l){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ne(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function cg(t,e,n){if(e!=null&&(e=""+Ne(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ne(n):""}function fg(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(N(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ne(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Hu(t)}function ia(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var yE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dg(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||yE.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function hg(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&n[o]!==l&&dg(t,o,l)}else for(var u in e)e.hasOwnProperty(u)&&dg(t,u,e[u])}function Yu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 vE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),bE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ys(t){return bE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fn(){}var Xu=null;function Zu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var aa=null,la=null;function mg(t){var e=Ii(t);if(e&&(t=e.stateNode)){var n=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if(qu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Be(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var o=l[pe]||null;if(!o)throw Error(r(90));qu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&og(l)}break t;case"textarea":cg(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&na(t,!!n.multiple,e,!1)}}}var Qu=!1;function pg(t,e,n){if(Qu)return t(e,n);Qu=!0;try{var l=t(e);return l}finally{if(Qu=!1,(aa!==null||la!==null)&&(Or(),aa&&(e=aa,t=la,la=aa=null,mg(e),t)))for(e=0;e<t.length;e++)mg(t[e])}}function hl(t,e){var n=t.stateNode;if(n===null)return null;var l=n[pe]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=!1;if(dn)try{var ml={};Object.defineProperty(ml,"passive",{get:function(){Ku=!0}}),window.addEventListener("test",ml,ml),window.removeEventListener("test",ml,ml)}catch{Ku=!1}var Hn=null,ku=null,Xs=null;function gg(){if(Xs)return Xs;var t,e=ku,n=e.length,l,o="value"in Hn?Hn.value:Hn.textContent,u=o.length;for(t=0;t<n&&e[t]===o[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===o[u-l];l++);return Xs=o.slice(t,1<l?1-l:void 0)}function Zs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Qs(){return!0}function yg(){return!1}function ge(t){function e(n,l,o,u,h){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Qs:yg,this.isPropagationStopped=yg,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),e}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=ge(Ti),pl=b({},Ti,{view:0,detail:0}),SE=ge(pl),Ju,Fu,gl,ks=b({},pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==gl&&(gl&&t.type==="mousemove"?(Ju=t.screenX-gl.screenX,Fu=t.screenY-gl.screenY):Fu=Ju=0,gl=t),Ju)},movementY:function(t){return"movementY"in t?t.movementY:Fu}}),vg=ge(ks),TE=b({},ks,{dataTransfer:0}),xE=ge(TE),EE=b({},pl,{relatedTarget:0}),Pu=ge(EE),AE=b({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=ge(AE),CE=b({},Ti,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),DE=ge(CE),zE=b({},Ti,{data:0}),bg=ge(zE),OE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wE={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"},_E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_E[t])?!!e[t]:!1}function Wu(){return RE}var VE=b({},pl,{key:function(t){if(t.key){var e=OE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wu,charCode:function(t){return t.type==="keypress"?Zs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),LE=ge(VE),jE=b({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sg=ge(jE),UE=b({},pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wu}),NE=ge(UE),BE=b({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),HE=ge(BE),qE=b({},ks,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),GE=ge(qE),YE=b({},Ti,{newState:0,oldState:0}),XE=ge(YE),ZE=[9,13,27,32],$u=dn&&"CompositionEvent"in window,yl=null;dn&&"documentMode"in document&&(yl=document.documentMode);var QE=dn&&"TextEvent"in window&&!yl,Tg=dn&&(!$u||yl&&8<yl&&11>=yl),xg=" ",Eg=!1;function Ag(t,e){switch(t){case"keyup":return ZE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sa=!1;function KE(t,e){switch(t){case"compositionend":return Mg(e);case"keypress":return e.which!==32?null:(Eg=!0,xg);case"textInput":return t=e.data,t===xg&&Eg?null:t;default:return null}}function kE(t,e){if(sa)return t==="compositionend"||!$u&&Ag(t,e)?(t=gg(),Xs=ku=Hn=null,sa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Tg&&e.locale!=="ko"?null:e.data;default:return null}}var JE={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 Cg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!JE[t.type]:e==="textarea"}function Dg(t,e,n,l){aa?la?la.push(l):la=[l]:aa=l,e=Ur(e,"onChange"),0<e.length&&(n=new Ks("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var vl=null,bl=null;function FE(t){u0(t,0)}function Js(t){var e=dl(t);if(og(e))return t}function zg(t,e){if(t==="change")return e}var Og=!1;if(dn){var Iu;if(dn){var tc="oninput"in document;if(!tc){var wg=document.createElement("div");wg.setAttribute("oninput","return;"),tc=typeof wg.oninput=="function"}Iu=tc}else Iu=!1;Og=Iu&&(!document.documentMode||9<document.documentMode)}function _g(){vl&&(vl.detachEvent("onpropertychange",Rg),bl=vl=null)}function Rg(t){if(t.propertyName==="value"&&Js(bl)){var e=[];Dg(e,bl,t,Zu(t)),pg(FE,e)}}function PE(t,e,n){t==="focusin"?(_g(),vl=e,bl=n,vl.attachEvent("onpropertychange",Rg)):t==="focusout"&&_g()}function WE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Js(bl)}function $E(t,e){if(t==="click")return Js(e)}function IE(t,e){if(t==="input"||t==="change")return Js(e)}function tA(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var De=typeof Object.is=="function"?Object.is:tA;function Sl(t,e){if(De(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!_u.call(e,o)||!De(t[o],e[o]))return!1}return!0}function Vg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Lg(t,e){var n=Vg(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Vg(n)}}function jg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ug(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Gs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Gs(t.document)}return e}function ec(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var eA=dn&&"documentMode"in document&&11>=document.documentMode,ra=null,nc=null,Tl=null,ic=!1;function Ng(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ic||ra==null||ra!==Gs(l)||(l=ra,"selectionStart"in l&&ec(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Tl&&Sl(Tl,l)||(Tl=l,l=Ur(nc,"onSelect"),0<l.length&&(e=new Ks("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=ra)))}function xi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var oa={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},ac={},Bg={};dn&&(Bg=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ei(t){if(ac[t])return ac[t];if(!oa[t])return t;var e=oa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Bg)return ac[t]=e[n];return t}var Hg=Ei("animationend"),qg=Ei("animationiteration"),Gg=Ei("animationstart"),nA=Ei("transitionrun"),iA=Ei("transitionstart"),aA=Ei("transitioncancel"),Yg=Ei("transitionend"),Xg=new Map,lc="abort auxClick beforeToggle 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(" ");lc.push("scrollEnd");function Fe(t,e){Xg.set(t,e),Si(e,[t])}var Fs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},He=[],ua=0,sc=0;function Ps(){for(var t=ua,e=sc=ua=0;e<t;){var n=He[e];He[e++]=null;var l=He[e];He[e++]=null;var o=He[e];He[e++]=null;var u=He[e];if(He[e++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}u!==0&&Zg(n,o,u)}}function Ws(t,e,n,l){He[ua++]=t,He[ua++]=e,He[ua++]=n,He[ua++]=l,sc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function rc(t,e,n,l){return Ws(t,e,n,l),$s(t)}function Ai(t,e){return Ws(t,null,null,e),$s(t)}function Zg(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(o=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,o&&e!==null&&(o=31-Ce(n),t=u.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=n|536870912),u):null}function $s(t){if(50<Xl)throw Xl=0,yf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ca={};function lA(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,n,l){return new lA(t,e,n,l)}function oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hn(t,e){var n=t.alternate;return n===null?(n=ze(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Qg(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Is(t,e,n,l,o,u){var h=0;if(l=t,typeof t=="function")oc(t)&&(h=1);else if(typeof t=="string")h=cM(t,n,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case mt:return t=ze(31,n,e,o),t.elementType=mt,t.lanes=u,t;case w:return Mi(n.children,o,u,e);case H:h=8,o|=24;break;case Y:return t=ze(12,n,e,o|2),t.elementType=Y,t.lanes=u,t;case k:return t=ze(13,n,e,o),t.elementType=k,t.lanes=u,t;case it:return t=ze(19,n,e,o),t.elementType=it,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:h=10;break t;case Q:h=9;break t;case $:h=11;break t;case F:h=14;break t;case I:h=16,l=null;break t}h=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=ze(h,n,e,o),e.elementType=t,e.type=l,e.lanes=u,e}function Mi(t,e,n,l){return t=ze(7,t,l,e),t.lanes=n,t}function uc(t,e,n){return t=ze(6,t,null,e),t.lanes=n,t}function Kg(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function cc(t,e,n){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var kg=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var n=kg.get(t);return n!==void 0?n:(e={value:t,source:e,stack:vi(e)},kg.set(t,e),e)}return{value:t,source:e,stack:vi(e)}}var fa=[],da=0,tr=null,xl=0,Ge=[],Ye=0,qn=null,tn=1,en="";function mn(t,e){fa[da++]=xl,fa[da++]=tr,tr=t,xl=e}function Jg(t,e,n){Ge[Ye++]=tn,Ge[Ye++]=en,Ge[Ye++]=qn,qn=t;var l=tn;t=en;var o=32-Ce(l)-1;l&=~(1<<o),n+=1;var u=32-Ce(e)+o;if(30<u){var h=o-o%5;u=(l&(1<<h)-1).toString(32),l>>=h,o-=h,tn=1<<32-Ce(e)+o|n<<o|l,en=u+t}else tn=1<<u|n<<o|l,en=t}function fc(t){t.return!==null&&(mn(t,1),Jg(t,1,0))}function dc(t){for(;t===tr;)tr=fa[--da],fa[da]=null,xl=fa[--da],fa[da]=null;for(;t===qn;)qn=Ge[--Ye],Ge[Ye]=null,en=Ge[--Ye],Ge[Ye]=null,tn=Ge[--Ye],Ge[Ye]=null}function Fg(t,e){Ge[Ye++]=tn,Ge[Ye++]=en,Ge[Ye++]=qn,tn=e.id,en=e.overflow,qn=t}var le=null,Lt=null,bt=!1,Gn=null,Xe=!1,hc=Error(r(519));function Yn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw El(qe(e,t)),hc}function Pg(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ae]=t,e[pe]=l,n){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(n=0;n<Ql.length;n++)gt(Ql[n],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),ug(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),fg(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||h0(e.textContent,n)?(l.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),l.onScroll!=null&>("scroll",e),l.onScrollEnd!=null&>("scrollend",e),l.onClick!=null&&(e.onclick=fn),e=!0):e=!1,e||Yn(t,!0)}function Wg(t){for(le=t.return;le;)switch(le.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:le=le.return}}function ha(t){if(t!==le)return!1;if(!bt)return Wg(t),bt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Rf(t.type,t.memoizedProps)),n=!n),n&&Lt&&Yn(t),Wg(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Lt=x0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Lt=x0(t)}else e===27?(e=Lt,ni(t.type)?(t=Nf,Nf=null,Lt=t):Lt=e):Lt=le?Qe(t.stateNode.nextSibling):null;return!0}function Ci(){Lt=le=null,bt=!1}function mc(){var t=Gn;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),Gn=null),t}function El(t){Gn===null?Gn=[t]:Gn.push(t)}var pc=x(null),Di=null,pn=null;function Xn(t,e,n){Z(pc,e._currentValue),e._currentValue=n}function gn(t){t._currentValue=pc.current,V(pc)}function gc(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function yc(t,e,n,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;t:for(;u!==null;){var y=u;u=o;for(var T=0;T<e.length;T++)if(y.context===e[T]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),gc(u.return,n,t),l||(h=null);break t}u=y.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(r(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),gc(h,n,t),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===t){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ma(t,e,n,l){t=null;for(var o=e,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(r(387));if(h=h.memoizedProps,h!==null){var y=o.type;De(o.pendingProps.value,h.value)||(t!==null?t.push(y):t=[y])}}else if(o===St.current){if(h=o.alternate,h===null)throw Error(r(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(Pl):t=[Pl])}o=o.return}t!==null&&yc(e,t,n,l),e.flags|=262144}function er(t){for(t=t.firstContext;t!==null;){if(!De(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zi(t){Di=t,pn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function se(t){return $g(Di,t)}function nr(t,e){return Di===null&&zi(t),$g(t,e)}function $g(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},pn===null){if(t===null)throw Error(r(308));pn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else pn=pn.next=e;return n}var sA=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},rA=i.unstable_scheduleCallback,oA=i.unstable_NormalPriority,Jt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new sA,data:new Map,refCount:0}}function Al(t){t.refCount--,t.refCount===0&&rA(oA,function(){t.controller.abort()})}var Ml=null,bc=0,pa=0,ga=null;function uA(t,e){if(Ml===null){var n=Ml=[];bc=0,pa=Ef(),ga={status:"pending",value:void 0,then:function(l){n.push(l)}}}return bc++,e.then(Ig,Ig),e}function Ig(){if(--bc===0&&Ml!==null){ga!==null&&(ga.status="fulfilled");var t=Ml;Ml=null,pa=0,ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function cA(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var ty=A.S;A.S=function(t,e){Nv=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&uA(t,e),ty!==null&&ty(t,e)};var Oi=x(null);function Sc(){var t=Oi.current;return t!==null?t:Ot.pooledCache}function ir(t,e){e===null?Z(Oi,Oi.current):Z(Oi,e.pool)}function ey(){var t=Sc();return t===null?null:{parent:Jt._currentValue,pool:t}}var ya=Error(r(460)),Tc=Error(r(474)),ar=Error(r(542)),lr={then:function(){}};function ny(t){return t=t.status,t==="fulfilled"||t==="rejected"}function iy(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(fn,fn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ly(t),t;default:if(typeof e.status=="string")e.then(fn,fn);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ly(t),t}throw _i=e,ya}}function wi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_i=n,ya):n}}var _i=null;function ay(){if(_i===null)throw Error(r(459));var t=_i;return _i=null,t}function ly(t){if(t===ya||t===ar)throw Error(r(483))}var va=null,Cl=0;function sr(t){var e=Cl;return Cl+=1,va===null&&(va=[]),iy(va,t,e)}function Dl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function rr(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function sy(t){function e(C,E){if(t){var D=C.deletions;D===null?(C.deletions=[E],C.flags|=16):D.push(E)}}function n(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function l(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function o(C,E){return C=hn(C,E),C.index=0,C.sibling=null,C}function u(C,E,D){return C.index=D,t?(D=C.alternate,D!==null?(D=D.index,D<E?(C.flags|=67108866,E):D):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,E,D,B){return E===null||E.tag!==6?(E=uc(D,C.mode,B),E.return=C,E):(E=o(E,D),E.return=C,E)}function T(C,E,D,B){var nt=D.type;return nt===w?j(C,E,D.props.children,B,D.key):E!==null&&(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&wi(nt)===E.type)?(E=o(E,D.props),Dl(E,D),E.return=C,E):(E=Is(D.type,D.key,D.props,null,C.mode,B),Dl(E,D),E.return=C,E)}function z(C,E,D,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==D.containerInfo||E.stateNode.implementation!==D.implementation?(E=cc(D,C.mode,B),E.return=C,E):(E=o(E,D.children||[]),E.return=C,E)}function j(C,E,D,B,nt){return E===null||E.tag!==7?(E=Mi(D,C.mode,B,nt),E.return=C,E):(E=o(E,D),E.return=C,E)}function G(C,E,D){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=uc(""+E,C.mode,D),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case M:return D=Is(E.type,E.key,E.props,null,C.mode,D),Dl(D,E),D.return=C,D;case L:return E=cc(E,C.mode,D),E.return=C,E;case I:return E=wi(E),G(C,E,D)}if(N(E)||ct(E))return E=Mi(E,C.mode,D,null),E.return=C,E;if(typeof E.then=="function")return G(C,sr(E),D);if(E.$$typeof===K)return G(C,nr(C,E),D);rr(C,E)}return null}function O(C,E,D,B){var nt=E!==null?E.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return nt!==null?null:y(C,E,""+D,B);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===nt?T(C,E,D,B):null;case L:return D.key===nt?z(C,E,D,B):null;case I:return D=wi(D),O(C,E,D,B)}if(N(D)||ct(D))return nt!==null?null:j(C,E,D,B,null);if(typeof D.then=="function")return O(C,E,sr(D),B);if(D.$$typeof===K)return O(C,E,nr(C,D),B);rr(C,D)}return null}function R(C,E,D,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(D)||null,y(E,C,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case M:return C=C.get(B.key===null?D:B.key)||null,T(E,C,B,nt);case L:return C=C.get(B.key===null?D:B.key)||null,z(E,C,B,nt);case I:return B=wi(B),R(C,E,D,B,nt)}if(N(B)||ct(B))return C=C.get(D)||null,j(E,C,B,nt,null);if(typeof B.then=="function")return R(C,E,D,sr(B),nt);if(B.$$typeof===K)return R(C,E,D,nr(E,B),nt);rr(E,B)}return null}function P(C,E,D,B){for(var nt=null,Tt=null,et=E,ht=E=0,vt=null;et!==null&&ht<D.length;ht++){et.index>ht?(vt=et,et=null):vt=et.sibling;var xt=O(C,et,D[ht],B);if(xt===null){et===null&&(et=vt);break}t&&et&&xt.alternate===null&&e(C,et),E=u(xt,E,ht),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt,et=vt}if(ht===D.length)return n(C,et),bt&&mn(C,ht),nt;if(et===null){for(;ht<D.length;ht++)et=G(C,D[ht],B),et!==null&&(E=u(et,E,ht),Tt===null?nt=et:Tt.sibling=et,Tt=et);return bt&&mn(C,ht),nt}for(et=l(et);ht<D.length;ht++)vt=R(et,C,ht,D[ht],B),vt!==null&&(t&&vt.alternate!==null&&et.delete(vt.key===null?ht:vt.key),E=u(vt,E,ht),Tt===null?nt=vt:Tt.sibling=vt,Tt=vt);return t&&et.forEach(function(ri){return e(C,ri)}),bt&&mn(C,ht),nt}function st(C,E,D,B){if(D==null)throw Error(r(151));for(var nt=null,Tt=null,et=E,ht=E=0,vt=null,xt=D.next();et!==null&&!xt.done;ht++,xt=D.next()){et.index>ht?(vt=et,et=null):vt=et.sibling;var ri=O(C,et,xt.value,B);if(ri===null){et===null&&(et=vt);break}t&&et&&ri.alternate===null&&e(C,et),E=u(ri,E,ht),Tt===null?nt=ri:Tt.sibling=ri,Tt=ri,et=vt}if(xt.done)return n(C,et),bt&&mn(C,ht),nt;if(et===null){for(;!xt.done;ht++,xt=D.next())xt=G(C,xt.value,B),xt!==null&&(E=u(xt,E,ht),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt);return bt&&mn(C,ht),nt}for(et=l(et);!xt.done;ht++,xt=D.next())xt=R(et,C,ht,xt.value,B),xt!==null&&(t&&xt.alternate!==null&&et.delete(xt.key===null?ht:xt.key),E=u(xt,E,ht),Tt===null?nt=xt:Tt.sibling=xt,Tt=xt);return t&&et.forEach(function(TM){return e(C,TM)}),bt&&mn(C,ht),nt}function zt(C,E,D,B){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:t:{for(var nt=D.key;E!==null;){if(E.key===nt){if(nt=D.type,nt===w){if(E.tag===7){n(C,E.sibling),B=o(E,D.props.children),B.return=C,C=B;break t}}else if(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===I&&wi(nt)===E.type){n(C,E.sibling),B=o(E,D.props),Dl(B,D),B.return=C,C=B;break t}n(C,E);break}else e(C,E);E=E.sibling}D.type===w?(B=Mi(D.props.children,C.mode,B,D.key),B.return=C,C=B):(B=Is(D.type,D.key,D.props,null,C.mode,B),Dl(B,D),B.return=C,C=B)}return h(C);case L:t:{for(nt=D.key;E!==null;){if(E.key===nt)if(E.tag===4&&E.stateNode.containerInfo===D.containerInfo&&E.stateNode.implementation===D.implementation){n(C,E.sibling),B=o(E,D.children||[]),B.return=C,C=B;break t}else{n(C,E);break}else e(C,E);E=E.sibling}B=cc(D,C.mode,B),B.return=C,C=B}return h(C);case I:return D=wi(D),zt(C,E,D,B)}if(N(D))return P(C,E,D,B);if(ct(D)){if(nt=ct(D),typeof nt!="function")throw Error(r(150));return D=nt.call(D),st(C,E,D,B)}if(typeof D.then=="function")return zt(C,E,sr(D),B);if(D.$$typeof===K)return zt(C,E,nr(C,D),B);rr(C,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,E!==null&&E.tag===6?(n(C,E.sibling),B=o(E,D),B.return=C,C=B):(n(C,E),B=uc(D,C.mode,B),B.return=C,C=B),h(C)):n(C,E)}return function(C,E,D,B){try{Cl=0;var nt=zt(C,E,D,B);return va=null,nt}catch(et){if(et===ya||et===ar)throw et;var Tt=ze(29,et,null,C.mode);return Tt.lanes=B,Tt.return=C,Tt}}}var Ri=sy(!0),ry=sy(!1),Zn=!1;function xc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ec(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Qn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=$s(t),Zg(t,null,n),e}return Ws(t,l,e,n),$s(t)}function zl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,$p(t,n)}}function Ac(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?o=u=e:u=u.next=e}else o=u=e;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Mc=!1;function Ol(){if(Mc){var t=ga;if(t!==null)throw t}}function wl(t,e,n,l){Mc=!1;var o=t.updateQueue;Zn=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var T=y,z=T.next;T.next=null,h===null?u=z:h.next=z,h=T;var j=t.alternate;j!==null&&(j=j.updateQueue,y=j.lastBaseUpdate,y!==h&&(y===null?j.firstBaseUpdate=z:y.next=z,j.lastBaseUpdate=T))}if(u!==null){var G=o.baseState;h=0,j=z=T=null,y=u;do{var O=y.lane&-536870913,R=O!==y.lane;if(R?(yt&O)===O:(l&O)===O){O!==0&&O===pa&&(Mc=!0),j!==null&&(j=j.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var P=t,st=y;O=e;var zt=n;switch(st.tag){case 1:if(P=st.payload,typeof P=="function"){G=P.call(zt,G,O);break t}G=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=st.payload,O=typeof P=="function"?P.call(zt,G,O):P,O==null)break t;G=b({},G,O);break t;case 2:Zn=!0}}O=y.callback,O!==null&&(t.flags|=64,R&&(t.flags|=8192),R=o.callbacks,R===null?o.callbacks=[O]:R.push(O))}else R={lane:O,tag:y.tag,payload:y.payload,callback:y.callback,next:null},j===null?(z=j=R,T=G):j=j.next=R,h|=O;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;R=y,y=R.next,R.next=null,o.lastBaseUpdate=R,o.shared.pending=null}}while(!0);j===null&&(T=G),o.baseState=T,o.firstBaseUpdate=z,o.lastBaseUpdate=j,u===null&&(o.shared.lanes=0),Wn|=h,t.lanes=h,t.memoizedState=G}}function oy(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function uy(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)oy(n[t],e)}var ba=x(null),or=x(0);function cy(t,e){t=Mn,Z(or,t),Z(ba,e),Mn=t|e.baseLanes}function Cc(){Z(or,Mn),Z(ba,ba.current)}function Dc(){Mn=or.current,V(ba),V(or)}var Oe=x(null),Ze=null;function kn(t){var e=t.alternate;Z(Zt,Zt.current&1),Z(Oe,t),Ze===null&&(e===null||ba.current!==null||e.memoizedState!==null)&&(Ze=t)}function zc(t){Z(Zt,Zt.current),Z(Oe,t),Ze===null&&(Ze=t)}function fy(t){t.tag===22?(Z(Zt,Zt.current),Z(Oe,t),Ze===null&&(Ze=t)):Jn()}function Jn(){Z(Zt,Zt.current),Z(Oe,Oe.current)}function we(t){V(Oe),Ze===t&&(Ze=null),V(Zt)}var Zt=x(0);function ur(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||jf(n)||Uf(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var yn=0,ft=null,Ct=null,Ft=null,cr=!1,Sa=!1,Vi=!1,fr=0,_l=0,Ta=null,fA=0;function Gt(){throw Error(r(321))}function Oc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!De(t[n],e[n]))return!1;return!0}function wc(t,e,n,l,o,u){return yn=u,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?Jy:Qc,Vi=!1,u=n(l,o),Vi=!1,Sa&&(u=hy(e,n,l,o)),dy(t),u}function dy(t){A.H=Ll;var e=Ct!==null&&Ct.next!==null;if(yn=0,Ft=Ct=ft=null,cr=!1,_l=0,Ta=null,e)throw Error(r(300));t===null||Pt||(t=t.dependencies,t!==null&&er(t)&&(Pt=!0))}function hy(t,e,n,l){ft=t;var o=0;do{if(Sa&&(Ta=null),_l=0,Sa=!1,25<=o)throw Error(r(301));if(o+=1,Ft=Ct=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Fy,u=e(n,l)}while(Sa);return u}function dA(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Rl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ft.flags|=1024),e}function _c(){var t=fr!==0;return fr=0,t}function Rc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Vc(t){if(cr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}cr=!1}yn=0,Ft=Ct=ft=null,Sa=!1,_l=fr=0,Ta=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?ft.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Qt(){if(Ct===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Ft===null?ft.memoizedState:Ft.next;if(e!==null)Ft=e,Ct=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Ft===null?ft.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(t){var e=_l;return _l+=1,Ta===null&&(Ta=[]),t=iy(Ta,t,e),e=ft,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?Jy:Qc),t}function hr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Rl(t);if(t.$$typeof===K)return se(t)}throw Error(r(438,String(t)))}function Lc(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ft.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=dr(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=_t;return e.index++,n}function vn(t,e){return typeof e=="function"?e(t):e}function mr(t){var e=Qt();return jc(e,Ct,t)}function jc(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=t.baseQueue,u=l.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}e.baseQueue=o=u,l.pending=null}if(u=t.baseState,o===null)t.memoizedState=u;else{e=o.next;var y=h=null,T=null,z=e,j=!1;do{var G=z.lane&-536870913;if(G!==z.lane?(yt&G)===G:(yn&G)===G){var O=z.revertLane;if(O===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),G===pa&&(j=!0);else if((yn&O)===O){z=z.next,O===pa&&(j=!0);continue}else G={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=G,h=u):T=T.next=G,ft.lanes|=O,Wn|=O;G=z.action,Vi&&n(u,G),u=z.hasEagerState?z.eagerState:n(u,G)}else O={lane:G,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=O,h=u):T=T.next=O,ft.lanes|=G,Wn|=G;z=z.next}while(z!==null&&z!==e);if(T===null?h=u:T.next=y,!De(u,t.memoizedState)&&(Pt=!0,j&&(n=ga,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,l.lastRenderedState=u}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Uc(t){var e=Qt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,o=n.pending,u=e.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do u=t(u,h.action),h=h.next;while(h!==o);De(u,e.memoizedState)||(Pt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function my(t,e,n){var l=ft,o=Qt(),u=bt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var h=!De((Ct||o).memoizedState,n);if(h&&(o.memoizedState=n,Pt=!0),o=o.queue,Hc(yy.bind(null,l,o,t),[t]),o.getSnapshot!==e||h||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,xa(9,{destroy:void 0},gy.bind(null,l,o,n,e),null),Ot===null)throw Error(r(349));u||(yn&127)!==0||py(l,e,n)}return n}function py(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=dr(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gy(t,e,n,l){e.value=n,e.getSnapshot=l,vy(e)&&by(t)}function yy(t,e,n){return n(function(){vy(e)&&by(t)})}function vy(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!De(t,n)}catch{return!0}}function by(t){var e=Ai(t,2);e!==null&&Te(e,t,2)}function Nc(t){var e=de();if(typeof t=="function"){var n=t;if(t=n(),Vi){Nn(!0);try{n()}finally{Nn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:t},e}function Sy(t,e,n,l){return t.baseState=n,jc(t,Ct,typeof l=="function"?l:vn)}function hA(t,e,n,l,o){if(yr(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};A.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,Ty(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Ty(t,e){var n=e.action,l=e.payload,o=t.state;if(e.isTransition){var u=A.T,h={};A.T=h;try{var y=n(o,l),T=A.S;T!==null&&T(h,y),xy(t,e,y)}catch(z){Bc(t,e,z)}finally{u!==null&&h.types!==null&&(u.types=h.types),A.T=u}}else try{u=n(o,l),xy(t,e,u)}catch(z){Bc(t,e,z)}}function xy(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Ey(t,e,l)},function(l){return Bc(t,e,l)}):Ey(t,e,n)}function Ey(t,e,n){e.status="fulfilled",e.value=n,Ay(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ty(t,n)))}function Bc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Ay(e),e=e.next;while(e!==l)}t.action=null}function Ay(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function My(t,e){return e}function Cy(t,e){if(bt){var n=Ot.formState;if(n!==null){t:{var l=ft;if(bt){if(Lt){e:{for(var o=Lt,u=Xe;o.nodeType!==8;){if(!u){o=null;break e}if(o=Qe(o.nextSibling),o===null){o=null;break e}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Lt=Qe(o.nextSibling),l=o.data==="F!";break t}}Yn(l)}l=!1}l&&(e=n[0])}}return n=de(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:My,lastRenderedState:e},n.queue=l,n=Qy.bind(null,ft,l),l.dispatch=n,l=Nc(!1),u=Zc.bind(null,ft,!1,l.queue),l=de(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,n=hA.bind(null,ft,o,u,n),o.dispatch=n,l.memoizedState=t,[e,n,!1]}function Dy(t){var e=Qt();return zy(e,Ct,t)}function zy(t,e,n){if(e=jc(t,e,My)[0],t=mr(vn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Rl(e)}catch(h){throw h===ya?ar:h}else l=e;e=Qt();var o=e.queue,u=o.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,xa(9,{destroy:void 0},mA.bind(null,o,n),null)),[l,u,t]}function mA(t,e){t.action=e}function Oy(t){var e=Qt(),n=Ct;if(n!==null)return zy(e,n,t);Qt(),e=e.memoizedState,n=Qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function xa(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ft.updateQueue,e===null&&(e=dr(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function wy(){return Qt().memoizedState}function pr(t,e,n,l){var o=de();ft.flags|=t,o.memoizedState=xa(1|e,{destroy:void 0},n,l===void 0?null:l)}function gr(t,e,n,l){var o=Qt();l=l===void 0?null:l;var u=o.memoizedState.inst;Ct!==null&&l!==null&&Oc(l,Ct.memoizedState.deps)?o.memoizedState=xa(e,u,n,l):(ft.flags|=t,o.memoizedState=xa(1|e,u,n,l))}function _y(t,e){pr(8390656,8,t,e)}function Hc(t,e){gr(2048,8,t,e)}function pA(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=dr(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Ry(t){var e=Qt().memoizedState;return pA({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Vy(t,e){return gr(4,2,t,e)}function Ly(t,e){return gr(4,4,t,e)}function jy(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Uy(t,e,n){n=n!=null?n.concat([t]):null,gr(4,4,jy.bind(null,e,t),n)}function qc(){}function Ny(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Oc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function By(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Oc(e,l[1]))return l[0];if(l=t(),Vi){Nn(!0);try{t()}finally{Nn(!1)}}return n.memoizedState=[l,e],l}function Gc(t,e,n){return n===void 0||(yn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Hv(),ft.lanes|=t,Wn|=t,n)}function Hy(t,e,n,l){return De(n,e)?n:ba.current!==null?(t=Gc(t,n,l),De(t,e)||(Pt=!0),t):(yn&42)===0||(yn&1073741824)!==0&&(yt&261930)===0?(Pt=!0,t.memoizedState=n):(t=Hv(),ft.lanes|=t,Wn|=t,e)}function qy(t,e,n,l,o){var u=_.p;_.p=u!==0&&8>u?u:8;var h=A.T,y={};A.T=y,Zc(t,!1,e,n);try{var T=o(),z=A.S;if(z!==null&&z(y,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var j=cA(T,l);Vl(t,e,j,Ve(t))}else Vl(t,e,l,Ve(t))}catch(G){Vl(t,e,{then:function(){},status:"rejected",reason:G},Ve())}finally{_.p=u,h!==null&&y.types!==null&&(h.types=y.types),A.T=h}}function gA(){}function Yc(t,e,n,l){if(t.tag!==5)throw Error(r(476));var o=Gy(t).queue;qy(t,o,e,X,n===null?gA:function(){return Yy(t),n(l)})}function Gy(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:X},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Yy(t){var e=Gy(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},Ve())}function Xc(){return se(Pl)}function Xy(){return Qt().memoizedState}function Zy(){return Qt().memoizedState}function yA(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ve();t=Qn(n);var l=Kn(e,t,n);l!==null&&(Te(l,e,n),zl(l,e,n)),e={cache:vc()},t.payload=e;return}e=e.return}}function vA(t,e,n){var l=Ve();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},yr(t)?Ky(e,n):(n=rc(t,e,n,l),n!==null&&(Te(n,t,l),ky(n,e,l)))}function Qy(t,e,n){var l=Ve();Vl(t,e,n,l)}function Vl(t,e,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(yr(t))Ky(e,o);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,y=u(h,n);if(o.hasEagerState=!0,o.eagerState=y,De(y,h))return Ws(t,e,o,0),Ot===null&&Ps(),!1}catch{}if(n=rc(t,e,o,l),n!==null)return Te(n,t,l),ky(n,e,l),!0}return!1}function Zc(t,e,n,l){if(l={lane:2,revertLane:Ef(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yr(t)){if(e)throw Error(r(479))}else e=rc(t,n,l,2),e!==null&&Te(e,t,2)}function yr(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Ky(t,e){Sa=cr=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ky(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,$p(t,n)}}var Ll={readContext:se,use:hr,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Ll.useEffectEvent=Gt;var Jy={readContext:se,use:hr,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:se,useEffect:_y,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,pr(4194308,4,jy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return pr(4194308,4,t,e)},useInsertionEffect:function(t,e){pr(4,2,t,e)},useMemo:function(t,e){var n=de();e=e===void 0?null:e;var l=t();if(Vi){Nn(!0);try{t()}finally{Nn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=de();if(n!==void 0){var o=n(e);if(Vi){Nn(!0);try{n(e)}finally{Nn(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=vA.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=Nc(t);var e=t.queue,n=Qy.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:qc,useDeferredValue:function(t,e){var n=de();return Gc(n,t,e)},useTransition:function(){var t=Nc(!1);return t=qy.bind(null,ft,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,o=de();if(bt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Ot===null)throw Error(r(349));(yt&127)!==0||py(l,e,n)}o.memoizedState=n;var u={value:n,getSnapshot:e};return o.queue=u,_y(yy.bind(null,l,u,t),[t]),l.flags|=2048,xa(9,{destroy:void 0},gy.bind(null,l,u,n,e),null),n},useId:function(){var t=de(),e=Ot.identifierPrefix;if(bt){var n=en,l=tn;n=(l&~(1<<32-Ce(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=fr++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=fA++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Xc,useFormState:Cy,useActionState:Cy,useOptimistic:function(t){var e=de();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Zc.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:Lc,useCacheRefresh:function(){return de().memoizedState=yA.bind(null,ft)},useEffectEvent:function(t){var e=de(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Qc={readContext:se,use:hr,useCallback:Ny,useContext:se,useEffect:Hc,useImperativeHandle:Uy,useInsertionEffect:Vy,useLayoutEffect:Ly,useMemo:By,useReducer:mr,useRef:wy,useState:function(){return mr(vn)},useDebugValue:qc,useDeferredValue:function(t,e){var n=Qt();return Hy(n,Ct.memoizedState,t,e)},useTransition:function(){var t=mr(vn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Rl(t),e]},useSyncExternalStore:my,useId:Xy,useHostTransitionStatus:Xc,useFormState:Dy,useActionState:Dy,useOptimistic:function(t,e){var n=Qt();return Sy(n,Ct,t,e)},useMemoCache:Lc,useCacheRefresh:Zy};Qc.useEffectEvent=Ry;var Fy={readContext:se,use:hr,useCallback:Ny,useContext:se,useEffect:Hc,useImperativeHandle:Uy,useInsertionEffect:Vy,useLayoutEffect:Ly,useMemo:By,useReducer:Uc,useRef:wy,useState:function(){return Uc(vn)},useDebugValue:qc,useDeferredValue:function(t,e){var n=Qt();return Ct===null?Gc(n,t,e):Hy(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Uc(vn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Rl(t),e]},useSyncExternalStore:my,useId:Xy,useHostTransitionStatus:Xc,useFormState:Oy,useActionState:Oy,useOptimistic:function(t,e){var n=Qt();return Ct!==null?Sy(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Lc,useCacheRefresh:Zy};Fy.useEffectEvent=Ry;function Kc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var kc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ve(),o=Qn(l);o.payload=e,n!=null&&(o.callback=n),e=Kn(t,o,l),e!==null&&(Te(e,t,l),zl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ve(),o=Qn(l);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Kn(t,o,l),e!==null&&(Te(e,t,l),zl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ve(),l=Qn(n);l.tag=2,e!=null&&(l.callback=e),e=Kn(t,l,n),e!==null&&(Te(e,t,n),zl(e,t,n))}};function Py(t,e,n,l,o,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,h):e.prototype&&e.prototype.isPureReactComponent?!Sl(n,l)||!Sl(o,u):!0}function Wy(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&kc.enqueueReplaceState(e,e.state,null)}function Li(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var o in t)n[o]===void 0&&(n[o]=t[o])}return n}function $y(t){Fs(t)}function Iy(t){console.error(t)}function tv(t){Fs(t)}function vr(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function ev(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jc(t,e,n){return n=Qn(n),n.tag=3,n.payload={element:null},n.callback=function(){vr(t,e)},n}function nv(t){return t=Qn(t),t.tag=3,t}function iv(t,e,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;t.payload=function(){return o(u)},t.callback=function(){ev(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){ev(e,n,l),typeof o!="function"&&($n===null?$n=new Set([this]):$n.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function bA(t,e,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ma(e,n,o,!0),n=Oe.current,n!==null){switch(n.tag){case 31:case 13:return Ze===null?wr():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===lr?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Sf(t,l,o)),!1;case 22:return n.flags|=65536,l===lr?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),Sf(t,l,o)),!1}throw Error(r(435,n.tag))}return Sf(t,l,o),wr(),!1}if(bt)return e=Oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==hc&&(t=Error(r(422),{cause:l}),El(qe(t,n)))):(l!==hc&&(e=Error(r(423),{cause:l}),El(qe(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=qe(l,n),o=Jc(t.stateNode,l,o),Ac(t,o),Yt!==4&&(Yt=2)),!1;var u=Error(r(520),{cause:l});if(u=qe(u,n),Yl===null?Yl=[u]:Yl.push(u),Yt!==4&&(Yt=2),e===null)return!0;l=qe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=Jc(n.stateNode,l,t),Ac(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&($n===null||!$n.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=nv(o),iv(o,t,n,l),Ac(n,o),!1}n=n.return}while(n!==null);return!1}var Fc=Error(r(461)),Pt=!1;function re(t,e,n,l){e.child=t===null?ry(e,null,n,l):Ri(e,t.child,n,l)}function av(t,e,n,l,o){n=n.render;var u=e.ref;if("ref"in l){var h={};for(var y in l)y!=="ref"&&(h[y]=l[y])}else h=l;return zi(e),l=wc(t,e,n,h,u,o),y=_c(),t!==null&&!Pt?(Rc(t,e,o),bn(t,e,o)):(bt&&y&&fc(e),e.flags|=1,re(t,e,l,o),e.child)}function lv(t,e,n,l,o){if(t===null){var u=n.type;return typeof u=="function"&&!oc(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,sv(t,e,u,l,o)):(t=Is(n.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!af(t,o)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Sl,n(h,l)&&t.ref===e.ref)return bn(t,e,o)}return e.flags|=1,t=hn(u,l),t.ref=e.ref,t.return=e,e.child=t}function sv(t,e,n,l,o){if(t!==null){var u=t.memoizedProps;if(Sl(u,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=u,af(t,o))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,bn(t,e,o)}return Pc(t,e,n,l,o)}function rv(t,e,n,l){var o=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,e.child=null;return ov(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ir(e,u!==null?u.cachePool:null),u!==null?cy(e,u):Cc(),fy(e);else return l=e.lanes=536870912,ov(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(ir(e,u.cachePool),cy(e,u),Jn(),e.memoizedState=null):(t!==null&&ir(e,null),Cc(),Jn());return re(t,e,o,n),e.child}function jl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ov(t,e,n,l,o){var u=Sc();return u=u===null?null:{parent:Jt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&ir(e,null),Cc(),fy(e),t!==null&&ma(t,e,l,!0),e.childLanes=o,null}function br(t,e){return e=Tr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function uv(t,e,n){return Ri(e,t.child,null,n),t=br(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function SA(t,e,n){var l=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(l.mode==="hidden")return t=br(e,l),e.lanes=536870912,jl(null,t);if(zc(e),(t=Lt)?(t=T0(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:qn!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Kg(t),n.return=e,e.child=n,le=e,Lt=null)):t=null,t===null)throw Yn(e);return e.lanes=536870912,null}return br(e,l)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(zc(e),o)if(e.flags&256)e.flags&=-257,e=uv(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Pt||ma(t,e,n,!1),o=(n&t.childLanes)!==0,Pt||o){if(l=Ot,l!==null&&(h=Ip(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ai(t,h),Te(l,t,h),Fc;wr(),e=uv(t,e,n)}else t=u.treeContext,Lt=Qe(h.nextSibling),le=e,bt=!0,Gn=null,Xe=!1,t!==null&&Fg(e,t),e=br(e,l),e.flags|=4096;return e}return t=hn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Sr(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Pc(t,e,n,l,o){return zi(e),n=wc(t,e,n,l,void 0,o),l=_c(),t!==null&&!Pt?(Rc(t,e,o),bn(t,e,o)):(bt&&l&&fc(e),e.flags|=1,re(t,e,n,o),e.child)}function cv(t,e,n,l,o,u){return zi(e),e.updateQueue=null,n=hy(e,l,n,o),dy(t),l=_c(),t!==null&&!Pt?(Rc(t,e,u),bn(t,e,u)):(bt&&l&&fc(e),e.flags|=1,re(t,e,n,u),e.child)}function fv(t,e,n,l,o){if(zi(e),e.stateNode===null){var u=ca,h=n.contextType;typeof h=="object"&&h!==null&&(u=se(h)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=kc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},xc(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?se(h):ca,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Kc(e,n,h,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&kc.enqueueReplaceState(u,u.state,null),wl(e,l,u,o),Ol(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var y=e.memoizedProps,T=Li(n,y);u.props=T;var z=u.context,j=n.contextType;h=ca,typeof j=="object"&&j!==null&&(h=se(j));var G=n.getDerivedStateFromProps;j=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||z!==h)&&Wy(e,u,l,h),Zn=!1;var O=e.memoizedState;u.state=O,wl(e,l,u,o),Ol(),z=e.memoizedState,y||O!==z||Zn?(typeof G=="function"&&(Kc(e,n,G,l),z=e.memoizedState),(T=Zn||Py(e,n,T,l,O,z,h))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),u.props=l,u.state=z,u.context=h,l=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,Ec(t,e),h=e.memoizedProps,j=Li(n,h),u.props=j,G=e.pendingProps,O=u.context,z=n.contextType,T=ca,typeof z=="object"&&z!==null&&(T=se(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||O!==T)&&Wy(e,u,l,T),Zn=!1,O=e.memoizedState,u.state=O,wl(e,l,u,o),Ol();var R=e.memoizedState;h!==G||O!==R||Zn||t!==null&&t.dependencies!==null&&er(t.dependencies)?(typeof y=="function"&&(Kc(e,n,y,l),R=e.memoizedState),(j=Zn||Py(e,n,j,l,O,R,T)||t!==null&&t.dependencies!==null&&er(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,R,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,R,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=R),u.props=l,u.state=R,u.context=T,l=j):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,Sr(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Ri(e,t.child,null,o),e.child=Ri(e,null,n,o)):re(t,e,n,o),e.memoizedState=u.state,t=e.child):t=bn(t,e,o),t}function dv(t,e,n,l){return Ci(),e.flags|=256,re(t,e,n,l),e.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(t){return{baseLanes:t,cachePool:ey()}}function Ic(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function hv(t,e,n){var l=e.pendingProps,o=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),h&&(o=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(o?kn(e):Jn(),(t=Lt)?(t=T0(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:qn!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Kg(t),n.return=e,e.child=n,le=e,Lt=null)):t=null,t===null)throw Yn(e);return Uf(t)?e.lanes=32:e.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(Jn(),o=e.mode,y=Tr({mode:"hidden",children:y},o),l=Mi(l,o,n,null),y.return=e,l.return=e,y.sibling=l,e.child=y,l=e.child,l.memoizedState=$c(n),l.childLanes=Ic(t,h,n),e.memoizedState=Wc,jl(null,l)):(kn(e),tf(e,y))}var T=t.memoizedState;if(T!==null&&(y=T.dehydrated,y!==null)){if(u)e.flags&256?(kn(e),e.flags&=-257,e=ef(t,e,n)):e.memoizedState!==null?(Jn(),e.child=t.child,e.flags|=128,e=null):(Jn(),y=l.fallback,o=e.mode,l=Tr({mode:"visible",children:l.children},o),y=Mi(y,o,n,null),y.flags|=2,l.return=e,y.return=e,l.sibling=y,e.child=l,Ri(e,t.child,null,n),l=e.child,l.memoizedState=$c(n),l.childLanes=Ic(t,h,n),e.memoizedState=Wc,e=jl(null,l));else if(kn(e),Uf(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var z=h.dgst;h=z,l=Error(r(419)),l.stack="",l.digest=h,El({value:l,source:null,stack:null}),e=ef(t,e,n)}else if(Pt||ma(t,e,n,!1),h=(n&t.childLanes)!==0,Pt||h){if(h=Ot,h!==null&&(l=Ip(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ai(t,l),Te(h,t,l),Fc;jf(y)||wr(),e=ef(t,e,n)}else jf(y)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Lt=Qe(y.nextSibling),le=e,bt=!0,Gn=null,Xe=!1,t!==null&&Fg(e,t),e=tf(e,l.children),e.flags|=4096);return e}return o?(Jn(),y=l.fallback,o=e.mode,T=t.child,z=T.sibling,l=hn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,z!==null?y=hn(z,y):(y=Mi(y,o,n,null),y.flags|=2),y.return=e,l.return=e,l.sibling=y,e.child=l,jl(null,l),l=e.child,y=t.child.memoizedState,y===null?y=$c(n):(o=y.cachePool,o!==null?(T=Jt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=ey(),y={baseLanes:y.baseLanes|n,cachePool:o}),l.memoizedState=y,l.childLanes=Ic(t,h,n),e.memoizedState=Wc,jl(t.child,l)):(kn(e),n=t.child,t=n.sibling,n=hn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function tf(t,e){return e=Tr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Tr(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function ef(t,e,n){return Ri(e,t.child,null,n),t=tf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function mv(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),gc(t.return,e,n)}function nf(t,e,n,l,o,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=u)}function pv(t,e,n){var l=e.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var h=Zt.current,y=(h&2)!==0;if(y?(h=h&1|2,e.flags|=128):h&=1,Z(Zt,h),re(t,e,l,n),l=bt?xl:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mv(t,n,e);else if(t.tag===19)mv(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&ur(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),nf(e,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&ur(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}nf(e,!0,n,null,u,l);break;case"together":nf(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function bn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Wn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ma(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=hn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=hn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function af(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&er(t)))}function TA(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),Xn(e,Jt,t.memoizedState.cache),Ci();break;case 27:case 5:kt(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:Xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,zc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(kn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?hv(t,e,n):(kn(e),t=bn(t,e,n),t!==null?t.sibling:null);kn(e);break;case 19:var o=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ma(t,e,n,!1),l=(n&e.childLanes)!==0),o){if(l)return pv(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(Zt,Zt.current),l)break;return null;case 22:return e.lanes=0,rv(t,e,n,e.pendingProps);case 24:Xn(e,Jt,t.memoizedState.cache)}return bn(t,e,n)}function gv(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!af(t,n)&&(e.flags&128)===0)return Pt=!1,TA(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,bt&&(e.flags&1048576)!==0&&Jg(e,xl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=wi(e.elementType),e.type=t,typeof t=="function")oc(t)?(l=Li(t,l),e.tag=1,e=fv(null,e,t,l,n)):(e.tag=0,e=Pc(null,e,t,l,n));else{if(t!=null){var o=t.$$typeof;if(o===$){e.tag=11,e=av(null,e,t,l,n);break t}else if(o===F){e.tag=14,e=lv(null,e,t,l,n);break t}}throw e=$t(t)||t,Error(r(306,e,""))}}return e;case 0:return Pc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,o=Li(l,e.pendingProps),fv(t,e,l,o,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var u=e.memoizedState;o=u.element,Ec(t,e),wl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,Xn(e,Jt,l),l!==u.cache&&yc(e,[Jt],n,!0),Ol(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=dv(t,e,l,n);break t}else if(l!==o){o=qe(Error(r(424)),e),El(o),e=dv(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Lt=Qe(t.firstChild),le=e,bt=!0,Gn=null,Xe=!0,n=ry(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ci(),l===o){e=bn(t,e,n);break t}re(t,e,l,n)}e=e.child}return e;case 26:return Sr(t,e),t===null?(n=D0(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=Nr(ot.current).createElement(n),l[ae]=e,l[pe]=t,oe(l,n,t),te(l),e.stateNode=l):e.memoizedState=D0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kt(e),t===null&&bt&&(l=e.stateNode=A0(e.type,e.pendingProps,ot.current),le=e,Xe=!0,o=Lt,ni(e.type)?(Nf=o,Lt=Qe(l.firstChild)):Lt=o),re(t,e,e.pendingProps.children,n),Sr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((o=l=Lt)&&(l=WA(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,le=e,Lt=Qe(l.firstChild),Xe=!1,o=!0):o=!1),o||Yn(e)),kt(e),o=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,l=u.children,Rf(o,u)?l=null:h!==null&&Rf(o,h)&&(e.flags|=32),e.memoizedState!==null&&(o=wc(t,e,dA,null,null,n),Pl._currentValue=o),Sr(t,e),re(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=Lt)&&(n=$A(n,e.pendingProps,Xe),n!==null?(e.stateNode=n,le=e,Lt=null,t=!0):t=!1),t||Yn(e)),null;case 13:return hv(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ri(e,null,l,n):re(t,e,l,n),e.child;case 11:return av(t,e,e.type,e.pendingProps,n);case 7:return re(t,e,e.pendingProps,n),e.child;case 8:return re(t,e,e.pendingProps.children,n),e.child;case 12:return re(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Xn(e,e.type,l.value),re(t,e,l.children,n),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,zi(e),o=se(o),l=l(o),e.flags|=1,re(t,e,l,n),e.child;case 14:return lv(t,e,e.type,e.pendingProps,n);case 15:return sv(t,e,e.type,e.pendingProps,n);case 19:return pv(t,e,n);case 31:return SA(t,e,n);case 22:return rv(t,e,n,e.pendingProps);case 24:return zi(e),l=se(Jt),t===null?(o=Sc(),o===null&&(o=Ot,u=vc(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),e.memoizedState={parent:l,cache:o},xc(e),Xn(e,Jt,o)):((t.lanes&n)!==0&&(Ec(t,e),wl(e,null,null,n),Ol()),o=t.memoizedState,u=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Xn(e,Jt,l)):(l=u.cache,Xn(e,Jt,l),l!==o.cache&&yc(e,[Jt],n,!0))),re(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Sn(t){t.flags|=4}function lf(t,e,n,l,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Xv())t.flags|=8192;else throw _i=lr,Tc}else t.flags&=-16777217}function yv(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!R0(e))if(Xv())t.flags|=8192;else throw _i=lr,Tc}function xr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pp():536870912,t.lanes|=e,Ca|=e)}function Ul(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function xA(t,e,n){var l=e.pendingProps;switch(dc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),gn(Jt),Nt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ha(e)?Sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,mc())),jt(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(Sn(e),u!==null?(jt(e),yv(e,u)):(jt(e),lf(e,o,null,l,n))):u?u!==t.memoizedState?(Sn(e),jt(e),yv(e,u)):(jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Sn(e),jt(e),lf(e,o,t,l,n)),null;case 27:if(me(e),n=ot.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Sn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return jt(e),null}t=q.current,ha(e)?Pg(e):(t=A0(o,l,n),e.stateNode=t,Sn(e))}return jt(e),null;case 5:if(me(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Sn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return jt(e),null}if(u=q.current,ha(e))Pg(e);else{var h=Nr(ot.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}u[ae]=e,u[pe]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(oe(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Sn(e)}}return jt(e),lf(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Sn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=ot.current,ha(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,o=le,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ae]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||h0(t.nodeValue,n)),t||Yn(e,!0)}else t=Nr(t).createTextNode(l),t[ae]=e,e.stateNode=t}return jt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=ha(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ae]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),t=!1}else n=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(r(558))}return jt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=ha(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ae]=e}else Ci(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),o=!1}else o=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),xr(e,e.updateQueue),jt(e),null);case 4:return Nt(),t===null&&Df(e.stateNode.containerInfo),jt(e),null;case 10:return gn(e.type),jt(e),null;case 19:if(V(Zt),l=e.memoizedState,l===null)return jt(e),null;if(o=(e.flags&128)!==0,u=l.rendering,u===null)if(o)Ul(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=ur(t),u!==null){for(e.flags|=128,Ul(l,!1),t=u.updateQueue,e.updateQueue=t,xr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Qg(n,t),n=n.sibling;return Z(Zt,Zt.current&1|2),bt&&mn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ae()>Dr&&(e.flags|=128,o=!0,Ul(l,!1),e.lanes=4194304)}else{if(!o)if(t=ur(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,xr(e,t),Ul(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!bt)return jt(e),null}else 2*Ae()-l.renderingStartTime>Dr&&n!==536870912&&(e.flags|=128,o=!0,Ul(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ae(),t.sibling=null,n=Zt.current,Z(Zt,o?n&1|2:n&1),bt&&mn(e,l.treeForkCount),t):(jt(e),null);case 22:case 23:return we(e),Dc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&xr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&V(Oi),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),gn(Jt),jt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function EA(t,e){switch(dc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return gn(Jt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return me(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(r(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ci()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return V(Zt),null;case 4:return Nt(),null;case 10:return gn(e.type),null;case 22:case 23:return we(e),Dc(),t!==null&&V(Oi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return gn(Jt),null;case 25:return null;default:return null}}function vv(t,e){switch(dc(e),e.tag){case 3:gn(Jt),Nt();break;case 26:case 27:case 5:me(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:V(Zt);break;case 10:gn(e.type);break;case 22:case 23:we(e),Dc(),t!==null&&V(Oi);break;case 24:gn(Jt)}}function Nl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&t)===t){l=void 0;var u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==o)}}catch(y){Mt(e,e.return,y)}}function Fn(t,e,n){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&t)===t){var h=l.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,o=e;var T=n,z=y;try{z()}catch(j){Mt(o,T,j)}}}l=l.next}while(l!==u)}}catch(j){Mt(e,e.return,j)}}function bv(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{uy(e,n)}catch(l){Mt(t,t.return,l)}}}function Sv(t,e,n){n.props=Li(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function Bl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(o){Mt(t,e,o)}}function nn(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Mt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Mt(t,e,o)}else n.current=null}function Tv(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Mt(t,t.return,o)}}function sf(t,e,n){try{var l=t.stateNode;QA(l,t.type,n,e),l[pe]=e}catch(o){Mt(t,t.return,o)}}function xv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ni(t.type)||t.tag===4}function rf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||xv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ni(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function of(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=fn));else if(l!==4&&(l===27&&ni(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(of(t,e,n),t=t.sibling;t!==null;)of(t,e,n),t=t.sibling}function Er(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&ni(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Er(t,e,n),t=t.sibling;t!==null;)Er(t,e,n),t=t.sibling}function Ev(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);oe(e,l,n),e[ae]=t,e[pe]=n}catch(u){Mt(t,t.return,u)}}var Tn=!1,Wt=!1,uf=!1,Av=typeof WeakSet=="function"?WeakSet:Set,ee=null;function AA(t,e){if(t=t.containerInfo,wf=Zr,t=Ug(t),ec(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,y=-1,T=-1,z=0,j=0,G=t,O=null;e:for(;;){for(var R;G!==n||o!==0&&G.nodeType!==3||(y=h+o),G!==u||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(R=G.firstChild)!==null;)O=G,G=R;for(;;){if(G===t)break e;if(O===n&&++z===o&&(y=h),O===u&&++j===l&&(T=h),(R=G.nextSibling)!==null)break;G=O,O=G.parentNode}G=R}n=y===-1||T===-1?null:{start:y,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:t,selectionRange:n},Zr=!1,ee=e;ee!==null;)if(e=ee,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ee=t;else for(;ee!==null;){switch(e=ee,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var P=Li(n.type,o);t=l.getSnapshotBeforeUpdate(P,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(st){Mt(n,n.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Lf(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ee=t;break}ee=e.return}}function Mv(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:En(t,n),l&4&&Nl(5,n);break;case 1:if(En(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Mt(n,n.return,h)}else{var o=Li(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Mt(n,n.return,h)}}l&64&&bv(n),l&512&&Bl(n,n.return);break;case 3:if(En(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{uy(t,e)}catch(h){Mt(n,n.return,h)}}break;case 27:e===null&&l&4&&Ev(n);case 26:case 5:En(t,n),e===null&&l&4&&Tv(n),l&512&&Bl(n,n.return);break;case 12:En(t,n);break;case 31:En(t,n),l&4&&zv(t,n);break;case 13:En(t,n),l&4&&Ov(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=VA.bind(null,n),IA(t,n))));break;case 22:if(l=n.memoizedState!==null||Tn,!l){e=e!==null&&e.memoizedState!==null||Wt,o=Tn;var u=Wt;Tn=l,(Wt=e)&&!u?An(t,n,(n.subtreeFlags&8772)!==0):En(t,n),Tn=o,Wt=u}break;case 30:break;default:En(t,n)}}function Cv(t){var e=t.alternate;e!==null&&(t.alternate=null,Cv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Bu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,ye=!1;function xn(t,e,n){for(n=n.child;n!==null;)Dv(t,e,n),n=n.sibling}function Dv(t,e,n){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(ol,n)}catch{}switch(n.tag){case 26:Wt||nn(n,e),xn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||nn(n,e);var l=Bt,o=ye;ni(n.type)&&(Bt=n.stateNode,ye=!1),xn(t,e,n),kl(n.stateNode),Bt=l,ye=o;break;case 5:Wt||nn(n,e);case 6:if(l=Bt,o=ye,Bt=null,xn(t,e,n),Bt=l,ye=o,Bt!==null)if(ye)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(u){Mt(n,e,u)}else try{Bt.removeChild(n.stateNode)}catch(u){Mt(n,e,u)}break;case 18:Bt!==null&&(ye?(t=Bt,b0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),La(t)):b0(Bt,n.stateNode));break;case 4:l=Bt,o=ye,Bt=n.stateNode.containerInfo,ye=!0,xn(t,e,n),Bt=l,ye=o;break;case 0:case 11:case 14:case 15:Fn(2,n,e),Wt||Fn(4,n,e),xn(t,e,n);break;case 1:Wt||(nn(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Sv(n,e,l)),xn(t,e,n);break;case 21:xn(t,e,n);break;case 22:Wt=(l=Wt)||n.memoizedState!==null,xn(t,e,n),Wt=l;break;default:xn(t,e,n)}}function zv(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{La(t)}catch(n){Mt(e,e.return,n)}}}function Ov(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{La(t)}catch(n){Mt(e,e.return,n)}}function MA(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Av),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Av),e;default:throw Error(r(435,t.tag))}}function Ar(t,e){var n=MA(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var o=LA.bind(null,t,l);l.then(o,o)}})}function ve(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=t,h=e,y=h;t:for(;y!==null;){switch(y.tag){case 27:if(ni(y.type)){Bt=y.stateNode,ye=!1;break t}break;case 5:Bt=y.stateNode,ye=!1;break t;case 3:case 4:Bt=y.stateNode.containerInfo,ye=!0;break t}y=y.return}if(Bt===null)throw Error(r(160));Dv(u,h,o),Bt=null,ye=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)wv(e,t),e=e.sibling}var Pe=null;function wv(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),be(t),l&4&&(Fn(3,t,t.return),Nl(3,t),Fn(5,t,t.return));break;case 1:ve(e,t),be(t),l&512&&(Wt||n===null||nn(n,n.return)),l&64&&Tn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=Pe;if(ve(e,t),be(t),l&512&&(Wt||n===null||nn(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[fl]||u[ae]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),oe(u,l,n),u[ae]=t,te(u),l=u;break t;case"link":var h=w0("link","href",o).get(l+(n.href||""));if(h){for(var y=0;y<h.length;y++)if(u=h[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(y,1);break e}}u=o.createElement(l),oe(u,l,n),o.head.appendChild(u);break;case"meta":if(h=w0("meta","content",o).get(l+(n.content||""))){for(y=0;y<h.length;y++)if(u=h[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(y,1);break e}}u=o.createElement(l),oe(u,l,n),o.head.appendChild(u);break;default:throw Error(r(468,l))}u[ae]=t,te(u),l=u}t.stateNode=l}else _0(o,t.type,t.stateNode);else t.stateNode=O0(o,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?_0(o,t.type,t.stateNode):O0(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&sf(t,t.memoizedProps,n.memoizedProps)}break;case 27:ve(e,t),be(t),l&512&&(Wt||n===null||nn(n,n.return)),n!==null&&l&4&&sf(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ve(e,t),be(t),l&512&&(Wt||n===null||nn(n,n.return)),t.flags&32){o=t.stateNode;try{ia(o,"")}catch(P){Mt(t,t.return,P)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,sf(t,o,n!==null?n.memoizedProps:o)),l&1024&&(uf=!0);break;case 6:if(ve(e,t),be(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(P){Mt(t,t.return,P)}}break;case 3:if(qr=null,o=Pe,Pe=Br(e.containerInfo),ve(e,t),Pe=o,be(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{La(e.containerInfo)}catch(P){Mt(t,t.return,P)}uf&&(uf=!1,_v(t));break;case 4:l=Pe,Pe=Br(t.stateNode.containerInfo),ve(e,t),be(t),Pe=l;break;case 12:ve(e,t),be(t);break;case 31:ve(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ar(t,l)));break;case 13:ve(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cr=Ae()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ar(t,l)));break;case 22:o=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,z=Tn,j=Wt;if(Tn=z||o,Wt=j||T,ve(e,t),Wt=j,Tn=z,be(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||T||Tn||Wt||ji(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=T.stateNode;var G=T.memoizedProps.style,O=G!=null&&G.hasOwnProperty("display")?G.display:null;y.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(P){Mt(T,T.return,P)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(P){Mt(T,T.return,P)}}}else if(e.tag===18){if(n===null){T=e;try{var R=T.stateNode;o?S0(R,!0):S0(T.stateNode,!1)}catch(P){Mt(T,T.return,P)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Ar(t,n))));break;case 19:ve(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ar(t,l)));break;case 30:break;case 21:break;default:ve(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(xv(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=rf(t);Er(t,u,o);break;case 5:var h=n.stateNode;n.flags&32&&(ia(h,""),n.flags&=-33);var y=rf(t);Er(t,y,h);break;case 3:case 4:var T=n.stateNode.containerInfo,z=rf(t);of(t,z,T);break;default:throw Error(r(161))}}catch(j){Mt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _v(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;_v(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function En(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Mv(t,e.alternate,e),e=e.sibling}function ji(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Fn(4,e,e.return),ji(e);break;case 1:nn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Sv(e,e.return,n),ji(e);break;case 27:kl(e.stateNode);case 26:case 5:nn(e,e.return),ji(e);break;case 22:e.memoizedState===null&&ji(e);break;case 30:ji(e);break;default:ji(e)}t=t.sibling}}function An(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:An(o,u,n),Nl(4,u);break;case 1:if(An(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Mt(l,l.return,z)}if(l=u,o=l.updateQueue,o!==null){var y=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)oy(T[o],y)}catch(z){Mt(l,l.return,z)}}n&&h&64&&bv(u),Bl(u,u.return);break;case 27:Ev(u);case 26:case 5:An(o,u,n),n&&l===null&&h&4&&Tv(u),Bl(u,u.return);break;case 12:An(o,u,n);break;case 31:An(o,u,n),n&&h&4&&zv(o,u);break;case 13:An(o,u,n),n&&h&4&&Ov(o,u);break;case 22:u.memoizedState===null&&An(o,u,n),Bl(u,u.return);break;case 30:break;default:An(o,u,n)}e=e.sibling}}function cf(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Al(n))}function ff(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Al(t))}function We(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rv(t,e,n,l),e=e.sibling}function Rv(t,e,n,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,n,l),o&2048&&Nl(9,e);break;case 1:We(t,e,n,l);break;case 3:We(t,e,n,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Al(t)));break;case 12:if(o&2048){We(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,y=u.onPostCommit;typeof y=="function"&&y(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(e,e.return,T)}}else We(t,e,n,l);break;case 31:We(t,e,n,l);break;case 13:We(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?We(t,e,n,l):Hl(t,e):u._visibility&2?We(t,e,n,l):(u._visibility|=2,Ea(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),o&2048&&cf(h,e);break;case 24:We(t,e,n,l),o&2048&&ff(e.alternate,e);break;default:We(t,e,n,l)}}function Ea(t,e,n,l,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,y=n,T=l,z=h.flags;switch(h.tag){case 0:case 11:case 15:Ea(u,h,y,T,o),Nl(8,h);break;case 23:break;case 22:var j=h.stateNode;h.memoizedState!==null?j._visibility&2?Ea(u,h,y,T,o):Hl(u,h):(j._visibility|=2,Ea(u,h,y,T,o)),o&&z&2048&&cf(h.alternate,h);break;case 24:Ea(u,h,y,T,o),o&&z&2048&&ff(h.alternate,h);break;default:Ea(u,h,y,T,o)}e=e.sibling}}function Hl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,o=l.flags;switch(l.tag){case 22:Hl(n,l),o&2048&&cf(l.alternate,l);break;case 24:Hl(n,l),o&2048&&ff(l.alternate,l);break;default:Hl(n,l)}e=e.sibling}}var ql=8192;function Aa(t,e,n){if(t.subtreeFlags&ql)for(t=t.child;t!==null;)Vv(t,e,n),t=t.sibling}function Vv(t,e,n){switch(t.tag){case 26:Aa(t,e,n),t.flags&ql&&t.memoizedState!==null&&fM(n,Pe,t.memoizedState,t.memoizedProps);break;case 5:Aa(t,e,n);break;case 3:case 4:var l=Pe;Pe=Br(t.stateNode.containerInfo),Aa(t,e,n),Pe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ql,ql=16777216,Aa(t,e,n),ql=l):Aa(t,e,n));break;default:Aa(t,e,n)}}function Lv(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Gl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ee=l,Uv(l,t)}Lv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jv(t),t=t.sibling}function jv(t){switch(t.tag){case 0:case 11:case 15:Gl(t),t.flags&2048&&Fn(9,t,t.return);break;case 3:Gl(t);break;case 12:Gl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Mr(t)):Gl(t);break;default:Gl(t)}}function Mr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];ee=l,Uv(l,t)}Lv(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Fn(8,e,e.return),Mr(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Mr(e));break;default:Mr(e)}t=t.sibling}}function Uv(t,e){for(;ee!==null;){var n=ee;switch(n.tag){case 0:case 11:case 15:Fn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Al(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,ee=l;else t:for(n=t;ee!==null;){l=ee;var o=l.sibling,u=l.return;if(Cv(l),l===n){ee=null;break t}if(o!==null){o.return=u,ee=o;break t}ee=u}}}var CA={getCacheForType:function(t){var e=se(Jt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return se(Jt).controller.signal}},DA=typeof WeakMap=="function"?WeakMap:Map,Et=0,Ot=null,pt=null,yt=0,At=0,_e=null,Pn=!1,Ma=!1,df=!1,Mn=0,Yt=0,Wn=0,Ui=0,hf=0,Re=0,Ca=0,Yl=null,Se=null,mf=!1,Cr=0,Nv=0,Dr=1/0,zr=null,$n=null,It=0,In=null,Da=null,Cn=0,pf=0,gf=null,Bv=null,Xl=0,yf=null;function Ve(){return(Et&2)!==0&&yt!==0?yt&-yt:A.T!==null?Ef():tg()}function Hv(){if(Re===0)if((yt&536870912)===0||bt){var t=Us;Us<<=1,(Us&3932160)===0&&(Us=262144),Re=t}else Re=536870912;return t=Oe.current,t!==null&&(t.flags|=32),Re}function Te(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(za(t,0),ti(t,yt,Re,!1)),cl(t,n),((Et&2)===0||t!==Ot)&&(t===Ot&&((Et&2)===0&&(Ui|=n),Yt===4&&ti(t,yt,Re,!1)),an(t))}function qv(t,e,n){if((Et&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ul(t,e),o=l?wA(t,e):bf(t,e,!0),u=l;do{if(o===0){Ma&&!l&&ti(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!zA(n)){o=bf(t,e,!1),u=!1;continue}if(o===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var y=t;o=Yl;var T=y.current.memoizedState.isDehydrated;if(T&&(za(y,h).flags|=256),h=bf(y,h,!1),h!==2){if(df&&!T){y.errorRecoveryDisabledLanes|=u,Ui|=u,o=4;break t}u=Se,Se=o,u!==null&&(Se===null?Se=u:Se.push.apply(Se,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){za(t,0),ti(t,e,0,!0);break}t:{switch(l=t,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ti(l,e,Re,!Pn);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Cr+300-Ae(),10<o)){if(ti(l,e,Re,!Pn),Bs(l,0,!0)!==0)break t;Cn=e,l.timeoutHandle=y0(Gv.bind(null,l,n,Se,zr,mf,e,Re,Ui,Ca,Pn,u,"Throttled",-0,0),o);break t}Gv(l,n,Se,zr,mf,e,Re,Ui,Ca,Pn,u,null,-0,0)}}break}while(!0);an(t)}function Gv(t,e,n,l,o,u,h,y,T,z,j,G,O,R){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fn},Vv(e,u,G);var P=(u&62914560)===u?Cr-Ae():(u&4194048)===u?Nv-Ae():0;if(P=dM(G,P),P!==null){Cn=u,t.cancelPendingCommit=P(Fv.bind(null,t,e,u,n,l,o,h,y,T,j,G,null,O,R)),ti(t,u,h,!z);return}}Fv(t,e,u,n,l,o,h,y,T)}function zA(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!De(u(),o))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ti(t,e,n,l){e&=~hf,e&=~Ui,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var u=31-Ce(o),h=1<<u;l[u]=-1,o&=~h}n!==0&&Wp(t,n,e)}function Or(){return(Et&6)===0?(Zl(0),!1):!0}function vf(){if(pt!==null){if(At===0)var t=pt.return;else t=pt,pn=Di=null,Vc(t),va=null,Cl=0,t=pt;for(;t!==null;)vv(t.alternate,t),t=t.return;pt=null}}function za(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,JA(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Cn=0,vf(),Ot=t,pt=n=hn(t.current,null),yt=e,At=0,_e=null,Pn=!1,Ma=ul(t,e),df=!1,Ca=Re=hf=Ui=Wn=Yt=0,Se=Yl=null,mf=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-Ce(l),u=1<<o;e|=t[o],l&=~u}return Mn=e,Ps(),n}function Yv(t,e){ft=null,A.H=Ll,e===ya||e===ar?(e=ay(),At=3):e===Tc?(e=ay(),At=4):At=e===Fc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,pt===null&&(Yt=1,vr(t,qe(e,t.current)))}function Xv(){var t=Oe.current;return t===null?!0:(yt&4194048)===yt?Ze===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ze:!1}function Zv(){var t=A.H;return A.H=Ll,t===null?Ll:t}function Qv(){var t=A.A;return A.A=CA,t}function wr(){Yt=4,Pn||(yt&4194048)!==yt&&Oe.current!==null||(Ma=!0),(Wn&134217727)===0&&(Ui&134217727)===0||Ot===null||ti(Ot,yt,Re,!1)}function bf(t,e,n){var l=Et;Et|=2;var o=Zv(),u=Qv();(Ot!==t||yt!==e)&&(zr=null,za(t,e)),e=!1;var h=Yt;t:do try{if(At!==0&&pt!==null){var y=pt,T=_e;switch(At){case 8:vf(),h=6;break t;case 3:case 2:case 9:case 6:Oe.current===null&&(e=!0);var z=At;if(At=0,_e=null,Oa(t,y,T,z),n&&Ma){h=0;break t}break;default:z=At,At=0,_e=null,Oa(t,y,T,z)}}OA(),h=Yt;break}catch(j){Yv(t,j)}while(!0);return e&&t.shellSuspendCounter++,pn=Di=null,Et=l,A.H=o,A.A=u,pt===null&&(Ot=null,yt=0,Ps()),h}function OA(){for(;pt!==null;)Kv(pt)}function wA(t,e){var n=Et;Et|=2;var l=Zv(),o=Qv();Ot!==t||yt!==e?(zr=null,Dr=Ae()+500,za(t,e)):Ma=ul(t,e);t:do try{if(At!==0&&pt!==null){e=pt;var u=_e;e:switch(At){case 1:At=0,_e=null,Oa(t,e,u,1);break;case 2:case 9:if(ny(u)){At=0,_e=null,kv(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),an(t)},u.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:ny(u)?(At=0,_e=null,kv(e)):(At=0,_e=null,Oa(t,e,u,7));break;case 5:var h=null;switch(pt.tag){case 26:h=pt.memoizedState;case 5:case 27:var y=pt;if(h?R0(h):y.stateNode.complete){At=0,_e=null;var T=y.sibling;if(T!==null)pt=T;else{var z=y.return;z!==null?(pt=z,_r(z)):pt=null}break e}}At=0,_e=null,Oa(t,e,u,5);break;case 6:At=0,_e=null,Oa(t,e,u,6);break;case 8:vf(),Yt=6;break t;default:throw Error(r(462))}}_A();break}catch(j){Yv(t,j)}while(!0);return pn=Di=null,A.H=l,A.A=o,Et=n,pt!==null?0:(Ot=null,yt=0,Ps(),Yt)}function _A(){for(;pt!==null&&!tE();)Kv(pt)}function Kv(t){var e=gv(t.alternate,t,Mn);t.memoizedProps=t.pendingProps,e===null?_r(t):pt=e}function kv(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=cv(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=cv(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Vc(e);default:vv(n,e),e=pt=Qg(e,Mn),e=gv(n,e,Mn)}t.memoizedProps=t.pendingProps,e===null?_r(t):pt=e}function Oa(t,e,n,l){pn=Di=null,Vc(e),va=null,Cl=0;var o=e.return;try{if(bA(t,o,e,n,yt)){Yt=1,vr(t,qe(n,t.current)),pt=null;return}}catch(u){if(o!==null)throw pt=o,u;Yt=1,vr(t,qe(n,t.current)),pt=null;return}e.flags&32768?(bt||l===1?t=!0:Ma||(yt&536870912)!==0?t=!1:(Pn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Oe.current,l!==null&&l.tag===13&&(l.flags|=16384))),Jv(e,t)):_r(e)}function _r(t){var e=t;do{if((e.flags&32768)!==0){Jv(e,Pn);return}t=e.return;var n=xA(e.alternate,e,Mn);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Jv(t,e){do{var n=EA(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Yt=6,pt=null}function Fv(t,e,n,l,o,u,h,y,T){t.cancelPendingCommit=null;do Rr();while(It!==0);if((Et&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=sc,cE(t,n,u,h,y,T),t===Ot&&(pt=Ot=null,yt=0),Da=e,In=t,Cn=n,pf=u,gf=o,Bv=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jA(Ls,function(){return t0(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,o=_.p,_.p=2,h=Et,Et|=4;try{AA(t,e,n)}finally{Et=h,_.p=o,A.T=l}}It=1,Pv(),Wv(),$v()}}function Pv(){if(It===1){It=0;var t=In,e=Da,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var l=_.p;_.p=2;var o=Et;Et|=4;try{wv(e,t);var u=_f,h=Ug(t.containerInfo),y=u.focusedElem,T=u.selectionRange;if(h!==y&&y&&y.ownerDocument&&jg(y.ownerDocument.documentElement,y)){if(T!==null&&ec(y)){var z=T.start,j=T.end;if(j===void 0&&(j=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(j,y.value.length);else{var G=y.ownerDocument||document,O=G&&G.defaultView||window;if(O.getSelection){var R=O.getSelection(),P=y.textContent.length,st=Math.min(T.start,P),zt=T.end===void 0?st:Math.min(T.end,P);!R.extend&&st>zt&&(h=zt,zt=st,st=h);var C=Lg(y,st),E=Lg(y,zt);if(C&&E&&(R.rangeCount!==1||R.anchorNode!==C.node||R.anchorOffset!==C.offset||R.focusNode!==E.node||R.focusOffset!==E.offset)){var D=G.createRange();D.setStart(C.node,C.offset),R.removeAllRanges(),st>zt?(R.addRange(D),R.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),R.addRange(D))}}}}for(G=[],R=y;R=R.parentNode;)R.nodeType===1&&G.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<G.length;y++){var B=G[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Zr=!!wf,_f=wf=null}finally{Et=o,_.p=l,A.T=n}}t.current=e,It=2}}function Wv(){if(It===2){It=0;var t=In,e=Da,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var l=_.p;_.p=2;var o=Et;Et|=4;try{Mv(t,e.alternate,e)}finally{Et=o,_.p=l,A.T=n}}It=3}}function $v(){if(It===4||It===3){It=0,eE();var t=In,e=Da,n=Cn,l=Bv;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Da=In=null,Iv(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&($n=null),Uu(n),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(ol,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=A.T,o=_.p,_.p=2,A.T=null;try{for(var u=t.onRecoverableError,h=0;h<l.length;h++){var y=l[h];u(y.value,{componentStack:y.stack})}}finally{A.T=e,_.p=o}}(Cn&3)!==0&&Rr(),an(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===yf?Xl++:(Xl=0,yf=t):Xl=0,Zl(0)}}function Iv(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Al(e)))}function Rr(){return Pv(),Wv(),$v(),t0()}function t0(){if(It!==5)return!1;var t=In,e=pf;pf=0;var n=Uu(Cn),l=A.T,o=_.p;try{_.p=32>n?32:n,A.T=null,n=gf,gf=null;var u=In,h=Cn;if(It=0,Da=In=null,Cn=0,(Et&6)!==0)throw Error(r(331));var y=Et;if(Et|=4,jv(u.current),Rv(u,u.current,h,n),Et=y,Zl(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(ol,u)}catch{}return!0}finally{_.p=o,A.T=l,Iv(t,e)}}function e0(t,e,n){e=qe(n,e),e=Jc(t.stateNode,e,2),t=Kn(t,e,2),t!==null&&(cl(t,2),an(t))}function Mt(t,e,n){if(t.tag===3)e0(t,t,n);else for(;e!==null;){if(e.tag===3){e0(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($n===null||!$n.has(l))){t=qe(n,t),n=nv(2),l=Kn(e,n,2),l!==null&&(iv(n,l,e,t),cl(l,2),an(l));break}}e=e.return}}function Sf(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new DA;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(n)||(df=!0,o.add(n),t=RA.bind(null,t,e,n),e.then(t,t))}function RA(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>Ae()-Cr?(Et&2)===0&&za(t,0):hf|=n,Ca===yt&&(Ca=0)),an(t)}function n0(t,e){e===0&&(e=Pp()),t=Ai(t,e),t!==null&&(cl(t,e),an(t))}function VA(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),n0(t,n)}function LA(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),n0(t,n)}function jA(t,e){return Ru(t,e)}var Vr=null,wa=null,Tf=!1,Lr=!1,xf=!1,ei=0;function an(t){t!==wa&&t.next===null&&(wa===null?Vr=wa=t:wa=wa.next=t),Lr=!0,Tf||(Tf=!0,NA())}function Zl(t,e){if(!xf&&Lr){xf=!0;do for(var n=!1,l=Vr;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var h=l.suspendedLanes,y=l.pingedLanes;u=(1<<31-Ce(42|t)+1)-1,u&=o&~(h&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,s0(l,u))}else u=yt,u=Bs(l,l===Ot?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||ul(l,u)||(n=!0,s0(l,u));l=l.next}while(n);xf=!1}}function UA(){i0()}function i0(){Lr=Tf=!1;var t=0;ei!==0&&kA()&&(t=ei);for(var e=Ae(),n=null,l=Vr;l!==null;){var o=l.next,u=a0(l,e);u===0?(l.next=null,n===null?Vr=o:n.next=o,o===null&&(wa=n)):(n=l,(t!==0||(u&3)!==0)&&(Lr=!0)),l=o}It!==0&&It!==5||Zl(t),ei!==0&&(ei=0)}function a0(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Ce(u),y=1<<h,T=o[h];T===-1?((y&n)===0||(y&l)!==0)&&(o[h]=uE(y,e)):T<=e&&(t.expiredLanes|=y),u&=~y}if(e=Ot,n=yt,n=Bs(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Vu(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ul(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Vu(l),Uu(n)){case 2:case 8:n=Jp;break;case 32:n=Ls;break;case 268435456:n=Fp;break;default:n=Ls}return l=l0.bind(null,t),n=Ru(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Vu(l),t.callbackPriority=2,t.callbackNode=null,2}function l0(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Rr()&&t.callbackNode!==n)return null;var l=yt;return l=Bs(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(qv(t,l,e),a0(t,Ae()),t.callbackNode!=null&&t.callbackNode===n?l0.bind(null,t):null)}function s0(t,e){if(Rr())return null;qv(t,e,!0)}function NA(){FA(function(){(Et&6)!==0?Ru(kp,UA):i0()})}function Ef(){if(ei===0){var t=pa;t===0&&(t=js,js<<=1,(js&261888)===0&&(js=256)),ei=t}return ei}function r0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ys(""+t)}function o0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function BA(t,e,n,l,o){if(e==="submit"&&n&&n.stateNode===o){var u=r0((o[pe]||null).action),h=l.submitter;h&&(e=(e=h[pe]||null)?r0(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var y=new Ks("action","action",null,l,o);t.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ei!==0){var T=h?o0(o,h):new FormData(o);Yc(n,{pending:!0,data:T,method:o.method,action:u},null,T)}}else typeof u=="function"&&(y.preventDefault(),T=h?o0(o,h):new FormData(o),Yc(n,{pending:!0,data:T,method:o.method,action:u},u,T))},currentTarget:o}]})}}for(var Af=0;Af<lc.length;Af++){var Mf=lc[Af],HA=Mf.toLowerCase(),qA=Mf[0].toUpperCase()+Mf.slice(1);Fe(HA,"on"+qA)}Fe(Hg,"onAnimationEnd"),Fe(qg,"onAnimationIteration"),Fe(Gg,"onAnimationStart"),Fe("dblclick","onDoubleClick"),Fe("focusin","onFocus"),Fe("focusout","onBlur"),Fe(nA,"onTransitionRun"),Fe(iA,"onTransitionStart"),Fe(aA,"onTransitionCancel"),Fe(Yg,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="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(" "),GA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function u0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],o=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var h=l.length-1;0<=h;h--){var y=l[h],T=y.instance,z=y.currentTarget;if(y=y.listener,T!==u&&o.isPropagationStopped())break t;u=y,o.currentTarget=z;try{u(o)}catch(j){Fs(j)}o.currentTarget=null,u=T}else for(h=0;h<l.length;h++){if(y=l[h],T=y.instance,z=y.currentTarget,y=y.listener,T!==u&&o.isPropagationStopped())break t;u=y,o.currentTarget=z;try{u(o)}catch(j){Fs(j)}o.currentTarget=null,u=T}}}}function gt(t,e){var n=e[Nu];n===void 0&&(n=e[Nu]=new Set);var l=t+"__bubble";n.has(l)||(c0(e,t,2,!1),n.add(l))}function Cf(t,e,n){var l=0;e&&(l|=4),c0(n,t,l,e)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Df(t){if(!t[jr]){t[jr]=!0,ig.forEach(function(n){n!=="selectionchange"&&(GA.has(n)||Cf(n,!1,t),Cf(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jr]||(e[jr]=!0,Cf("selectionchange",!1,e))}}function c0(t,e,n,l){switch(H0(e)){case 2:var o=pM;break;case 8:o=gM;break;default:o=Yf}n=o.bind(null,e,n,t),o=void 0,!Ku||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function zf(t,e,n,l,o){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var y=l.stateNode.containerInfo;if(y===o)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;y!==null;){if(h=$i(y),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=u=h;continue t}y=y.parentNode}}l=l.return}pg(function(){var z=u,j=Zu(n),G=[];t:{var O=Xg.get(t);if(O!==void 0){var R=Ks,P=t;switch(t){case"keypress":if(Zs(n)===0)break t;case"keydown":case"keyup":R=LE;break;case"focusin":P="focus",R=Pu;break;case"focusout":P="blur",R=Pu;break;case"beforeblur":case"afterblur":R=Pu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=vg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=xE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=NE;break;case Hg:case qg:case Gg:R=ME;break;case Yg:R=HE;break;case"scroll":case"scrollend":R=SE;break;case"wheel":R=GE;break;case"copy":case"cut":case"paste":R=DE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Sg;break;case"toggle":case"beforetoggle":R=XE}var st=(e&4)!==0,zt=!st&&(t==="scroll"||t==="scrollend"),C=st?O!==null?O+"Capture":null:O;st=[];for(var E=z,D;E!==null;){var B=E;if(D=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||D===null||C===null||(B=hl(E,C),B!=null&&st.push(Kl(E,B,D))),zt)break;E=E.return}0<st.length&&(O=new R(O,P,null,n,j),G.push({event:O,listeners:st}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",R=t==="mouseout"||t==="pointerout",O&&n!==Xu&&(P=n.relatedTarget||n.fromElement)&&($i(P)||P[Wi]))break t;if((R||O)&&(O=j.window===j?j:(O=j.ownerDocument)?O.defaultView||O.parentWindow:window,R?(P=n.relatedTarget||n.toElement,R=z,P=P?$i(P):null,P!==null&&(zt=d(P),st=P.tag,P!==zt||st!==5&&st!==27&&st!==6)&&(P=null)):(R=null,P=z),R!==P)){if(st=vg,B="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(st=Sg,B="onPointerLeave",C="onPointerEnter",E="pointer"),zt=R==null?O:dl(R),D=P==null?O:dl(P),O=new st(B,E+"leave",R,n,j),O.target=zt,O.relatedTarget=D,B=null,$i(j)===z&&(st=new st(C,E+"enter",P,n,j),st.target=D,st.relatedTarget=zt,B=st),zt=B,R&&P)e:{for(st=YA,C=R,E=P,D=0,B=C;B;B=st(B))D++;B=0;for(var nt=E;nt;nt=st(nt))B++;for(;0<D-B;)C=st(C),D--;for(;0<B-D;)E=st(E),B--;for(;D--;){if(C===E||E!==null&&C===E.alternate){st=C;break e}C=st(C),E=st(E)}st=null}else st=null;R!==null&&f0(G,O,R,st,!1),P!==null&&zt!==null&&f0(G,zt,P,st,!0)}}t:{if(O=z?dl(z):window,R=O.nodeName&&O.nodeName.toLowerCase(),R==="select"||R==="input"&&O.type==="file")var Tt=zg;else if(Cg(O))if(Og)Tt=IE;else{Tt=WE;var et=PE}else R=O.nodeName,!R||R.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?z&&Yu(z.elementType)&&(Tt=zg):Tt=$E;if(Tt&&(Tt=Tt(t,z))){Dg(G,Tt,n,j);break t}et&&et(t,O,z),t==="focusout"&&z&&O.type==="number"&&z.memoizedProps.value!=null&&Gu(O,"number",O.value)}switch(et=z?dl(z):window,t){case"focusin":(Cg(et)||et.contentEditable==="true")&&(ra=et,nc=z,Tl=null);break;case"focusout":Tl=nc=ra=null;break;case"mousedown":ic=!0;break;case"contextmenu":case"mouseup":case"dragend":ic=!1,Ng(G,n,j);break;case"selectionchange":if(eA)break;case"keydown":case"keyup":Ng(G,n,j)}var ht;if($u)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else sa?Ag(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Tg&&n.locale!=="ko"&&(sa||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&sa&&(ht=gg()):(Hn=j,ku="value"in Hn?Hn.value:Hn.textContent,sa=!0)),et=Ur(z,vt),0<et.length&&(vt=new bg(vt,t,null,n,j),G.push({event:vt,listeners:et}),ht?vt.data=ht:(ht=Mg(n),ht!==null&&(vt.data=ht)))),(ht=QE?KE(t,n):kE(t,n))&&(vt=Ur(z,"onBeforeInput"),0<vt.length&&(et=new bg("onBeforeInput","beforeinput",null,n,j),G.push({event:et,listeners:vt}),et.data=ht)),BA(G,t,z,n,j)}u0(G,e)})}function Kl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ur(t,e){for(var n=e+"Capture",l=[];t!==null;){var o=t,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=hl(t,n),o!=null&&l.unshift(Kl(t,o,u)),o=hl(t,e),o!=null&&l.push(Kl(t,o,u))),t.tag===3)return l;t=t.return}return[]}function YA(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function f0(t,e,n,l,o){for(var u=e._reactName,h=[];n!==null&&n!==l;){var y=n,T=y.alternate,z=y.stateNode;if(y=y.tag,T!==null&&T===l)break;y!==5&&y!==26&&y!==27||z===null||(T=z,o?(z=hl(n,u),z!=null&&h.unshift(Kl(n,z,T))):o||(z=hl(n,u),z!=null&&h.push(Kl(n,z,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var XA=/\r\n?/g,ZA=/\u0000|\uFFFD/g;function d0(t){return(typeof t=="string"?t:""+t).replace(XA,`
|
|
18
|
+
`).replace(ZA,"")}function h0(t,e){return e=d0(e),d0(t)===e}function Dt(t,e,n,l,o,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ia(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ia(t,""+l);break;case"className":qs(t,"class",l);break;case"tabIndex":qs(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qs(t,n,l);break;case"style":hg(t,l,u);break;case"data":if(e!=="object"){qs(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ys(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",o.name,o,null),Dt(t,e,"formEncType",o.formEncType,o,null),Dt(t,e,"formMethod",o.formMethod,o,null),Dt(t,e,"formTarget",o.formTarget,o,null)):(Dt(t,e,"encType",o.encType,o,null),Dt(t,e,"method",o.method,o,null),Dt(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ys(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=fn);break;case"onScroll":l!=null&>("scroll",t);break;case"onScrollEnd":l!=null&>("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Ys(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":gt("beforetoggle",t),gt("toggle",t),Hs(t,"popover",l);break;case"xlinkActuate":cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":cn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":cn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":cn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":cn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Hs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=vE.get(n)||n,Hs(t,n,l))}}function Of(t,e,n,l,o,u){switch(n){case"style":hg(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ia(t,l):(typeof l=="number"||typeof l=="bigint")&&ia(t,""+l);break;case"onScroll":l!=null&>("scroll",t);break;case"onScrollEnd":l!=null&>("scrollend",t);break;case"onClick":l!=null&&(t.onclick=fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ag.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),u=t[pe]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,o);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Hs(t,n,l)}}}function oe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,u,h,n,null)}}o&&Dt(t,e,"srcSet",n.srcSet,n,null),l&&Dt(t,e,"src",n.src,n,null);return;case"input":gt("invalid",t);var y=u=h=o=null,T=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var j=n[l];if(j!=null)switch(l){case"name":o=j;break;case"type":h=j;break;case"checked":T=j;break;case"defaultChecked":z=j;break;case"value":u=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:Dt(t,e,l,j,n,null)}}ug(t,u,y,T,z,h,o,!1);return;case"select":gt("invalid",t),l=h=u=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":u=y;break;case"defaultValue":h=y;break;case"multiple":l=y;default:Dt(t,e,o,y,n,null)}e=u,n=h,t.multiple=!!l,e!=null?na(t,!!l,e,!1):n!=null&&na(t,!!l,n,!0);return;case"textarea":gt("invalid",t),u=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(y=n[h],y!=null))switch(h){case"value":l=y;break;case"defaultValue":o=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:Dt(t,e,h,y,n,null)}fg(t,l,o,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(l=n[T],l!=null)&&(T==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Dt(t,e,T,l,n,null));return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(l=0;l<Ql.length;l++)gt(Ql[l],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Dt(t,e,z,l,n,null)}return;default:if(Yu(e)){for(j in n)n.hasOwnProperty(j)&&(l=n[j],l!==void 0&&Of(t,e,j,l,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(l=n[y],l!=null&&Dt(t,e,y,l,n,null))}function QA(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,y=null,T=null,z=null,j=null;for(R in n){var G=n[R];if(n.hasOwnProperty(R)&&G!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(R)||Dt(t,e,R,null,l,G)}}for(var O in l){var R=l[O];if(G=n[O],l.hasOwnProperty(O)&&(R!=null||G!=null))switch(O){case"type":u=R;break;case"name":o=R;break;case"checked":z=R;break;case"defaultChecked":j=R;break;case"value":h=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,e));break;default:R!==G&&Dt(t,e,O,R,l,G)}}qu(t,h,y,T,z,j,u,o);return;case"select":R=h=y=O=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":R=T;default:l.hasOwnProperty(u)||Dt(t,e,u,null,l,T)}for(o in l)if(u=l[o],T=n[o],l.hasOwnProperty(o)&&(u!=null||T!=null))switch(o){case"value":O=u;break;case"defaultValue":y=u;break;case"multiple":h=u;default:u!==T&&Dt(t,e,o,u,l,T)}e=y,n=h,l=R,O!=null?na(t,!!n,O,!1):!!l!=!!n&&(e!=null?na(t,!!n,e,!0):na(t,!!n,n?[]:"",!1));return;case"textarea":R=O=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,l,o)}for(h in l)if(o=l[h],u=n[h],l.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":O=o;break;case"defaultValue":R=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Dt(t,e,h,o,l,u)}cg(t,O,R);return;case"option":for(var P in n)O=n[P],n.hasOwnProperty(P)&&O!=null&&!l.hasOwnProperty(P)&&(P==="selected"?t.selected=!1:Dt(t,e,P,null,l,O));for(T in l)O=l[T],R=n[T],l.hasOwnProperty(T)&&O!==R&&(O!=null||R!=null)&&(T==="selected"?t.selected=O&&typeof O!="function"&&typeof O!="symbol":Dt(t,e,T,O,l,R));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in n)O=n[st],n.hasOwnProperty(st)&&O!=null&&!l.hasOwnProperty(st)&&Dt(t,e,st,null,l,O);for(z in l)if(O=l[z],R=n[z],l.hasOwnProperty(z)&&O!==R&&(O!=null||R!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:Dt(t,e,z,O,l,R)}return;default:if(Yu(e)){for(var zt in n)O=n[zt],n.hasOwnProperty(zt)&&O!==void 0&&!l.hasOwnProperty(zt)&&Of(t,e,zt,void 0,l,O);for(j in l)O=l[j],R=n[j],!l.hasOwnProperty(j)||O===R||O===void 0&&R===void 0||Of(t,e,j,O,l,R);return}}for(var C in n)O=n[C],n.hasOwnProperty(C)&&O!=null&&!l.hasOwnProperty(C)&&Dt(t,e,C,null,l,O);for(G in l)O=l[G],R=n[G],!l.hasOwnProperty(G)||O===R||O==null&&R==null||Dt(t,e,G,O,l,R)}function m0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KA(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,h=o.initiatorType,y=o.duration;if(u&&y&&m0(h)){for(h=0,y=o.responseEnd,l+=1;l<n.length;l++){var T=n[l],z=T.startTime;if(z>y)break;var j=T.transferSize,G=T.initiatorType;j&&m0(G)&&(T=T.responseEnd,h+=j*(T<y?1:(y-z)/(T-z)))}if(--l,e+=8*(u+h)/(o.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var wf=null,_f=null;function Nr(t){return t.nodeType===9?t:t.ownerDocument}function p0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Rf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Vf=null;function kA(){var t=window.event;return t&&t.type==="popstate"?t===Vf?!1:(Vf=t,!0):(Vf=null,!1)}var y0=typeof setTimeout=="function"?setTimeout:void 0,JA=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,FA=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(t){return v0.resolve(null).then(t).catch(PA)}:y0;function PA(t){setTimeout(function(){throw t})}function ni(t){return t==="head"}function b0(t,e){var n=e,l=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(o),La(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")kl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,kl(n);for(var u=n.firstChild;u;){var h=u.nextSibling,y=u.nodeName;u[fl]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&kl(t.ownerDocument.body);n=o}while(n);La(e)}function S0(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Lf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Lf(n),Bu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function WA(t,e,n,l){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[fl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Qe(t.nextSibling),t===null)break}return null}function $A(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Qe(t.nextSibling),t===null))return null;return t}function T0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Qe(t.nextSibling),t===null))return null;return t}function jf(t){return t.data==="$?"||t.data==="$~"}function Uf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function IA(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Qe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Nf=null;function x0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Qe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function E0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function A0(t,e,n){switch(e=Nr(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function kl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bu(t)}var Ke=new Map,M0=new Set;function Br(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Dn=_.d;_.d={f:tM,r:eM,D:nM,C:iM,L:aM,m:lM,X:rM,S:sM,M:oM};function tM(){var t=Dn.f(),e=Or();return t||e}function eM(t){var e=Ii(t);e!==null&&e.tag===5&&e.type==="form"?Yy(e):Dn.r(t)}var _a=typeof document>"u"?null:document;function C0(t,e,n){var l=_a;if(l&&typeof e=="string"&&e){var o=Be(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),M0.has(o)||(M0.add(o),t={rel:t,crossOrigin:n,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),oe(e,"link",t),te(e),l.head.appendChild(e)))}}function nM(t){Dn.D(t),C0("dns-prefetch",t,null)}function iM(t,e){Dn.C(t,e),C0("preconnect",t,e)}function aM(t,e,n){Dn.L(t,e,n);var l=_a;if(l&&t&&e){var o='link[rel="preload"][as="'+Be(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Be(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Be(n.imageSizes)+'"]')):o+='[href="'+Be(t)+'"]';var u=o;switch(e){case"style":u=Ra(t);break;case"script":u=Va(t)}Ke.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(u,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(Jl(u))||e==="script"&&l.querySelector(Fl(u))||(e=l.createElement("link"),oe(e,"link",t),te(e),l.head.appendChild(e)))}}function lM(t,e){Dn.m(t,e);var n=_a;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Be(l)+'"][href="'+Be(t)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Va(t)}if(!Ke.has(u)&&(t=b({rel:"modulepreload",href:t},e),Ke.set(u,t),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fl(u)))return}l=n.createElement("link"),oe(l,"link",t),te(l),n.head.appendChild(l)}}}function sM(t,e,n){Dn.S(t,e,n);var l=_a;if(l&&t){var o=ta(l).hoistableStyles,u=Ra(t);e=e||"default";var h=o.get(u);if(!h){var y={loading:0,preload:null};if(h=l.querySelector(Jl(u)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(u))&&Bf(t,n);var T=h=l.createElement("link");te(T),oe(T,"link",t),T._p=new Promise(function(z,j){T.onload=z,T.onerror=j}),T.addEventListener("load",function(){y.loading|=1}),T.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Hr(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:y},o.set(u,h)}}}function rM(t,e){Dn.X(t,e);var n=_a;if(n&&t){var l=ta(n).hoistableScripts,o=Va(t),u=l.get(o);u||(u=n.querySelector(Fl(o)),u||(t=b({src:t,async:!0},e),(e=Ke.get(o))&&Hf(t,e),u=n.createElement("script"),te(u),oe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function oM(t,e){Dn.M(t,e);var n=_a;if(n&&t){var l=ta(n).hoistableScripts,o=Va(t),u=l.get(o);u||(u=n.querySelector(Fl(o)),u||(t=b({src:t,async:!0,type:"module"},e),(e=Ke.get(o))&&Hf(t,e),u=n.createElement("script"),te(u),oe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function D0(t,e,n,l){var o=(o=ot.current)?Br(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ra(n.href),n=ta(o).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ra(n.href);var u=ta(o).hoistableStyles,h=u.get(t);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=o.querySelector(Jl(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ke.set(t,n),u||uM(o,t,n,h.state))),e&&l===null)throw Error(r(528,""));return h}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Va(n),n=ta(o).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ra(t){return'href="'+Be(t)+'"'}function Jl(t){return'link[rel="stylesheet"]['+t+"]"}function z0(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function uM(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),oe(e,"link",n),te(e),t.head.appendChild(e))}function Va(t){return'[src="'+Be(t)+'"]'}function Fl(t){return"script[async]"+t}function O0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Be(n.href)+'"]');if(l)return e.instance=l,te(l),l;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),te(l),oe(l,"style",o),Hr(l,n.precedence,t),e.instance=l;case"stylesheet":o=Ra(n.href);var u=t.querySelector(Jl(o));if(u)return e.state.loading|=4,e.instance=u,te(u),u;l=z0(n),(o=Ke.get(o))&&Bf(l,o),u=(t.ownerDocument||t).createElement("link"),te(u);var h=u;return h._p=new Promise(function(y,T){h.onload=y,h.onerror=T}),oe(u,"link",l),e.state.loading|=4,Hr(u,n.precedence,t),e.instance=u;case"script":return u=Va(n.src),(o=t.querySelector(Fl(u)))?(e.instance=o,te(o),o):(l=n,(o=Ke.get(u))&&(l=b({},n),Hf(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),te(o),oe(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Hr(l,n.precedence,t));return e.instance}function Hr(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,h=0;h<l.length;h++){var y=l[h];if(y.dataset.precedence===e)u=y;else if(u!==o)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Bf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Hf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var qr=null;function w0(t,e,n){if(qr===null){var l=new Map,o=qr=new Map;o.set(n,l)}else o=qr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var u=n[o];if(!(u[fl]||u[ae]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var y=l.get(h);y?y.push(u):l.set(h,[u])}}return l}function _0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function cM(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function R0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function fM(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ra(l.href),u=e.querySelector(Jl(o));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Gr.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,te(u);return}u=e.ownerDocument||e,l=z0(l),(o=Ke.get(o))&&Bf(l,o),u=u.createElement("link"),te(u);var h=u;h._p=new Promise(function(y,T){h.onload=y,h.onerror=T}),oe(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Gr.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var qf=0;function dM(t,e){return t.stylesheets&&t.count===0&&Xr(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Xr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&qf===0&&(qf=62500*KA());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Xr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>qf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Gr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Yr=null;function Xr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Yr=new Map,e.forEach(hM,t),Yr=null,Gr.call(t))}function hM(t,e){if(!(e.state.loading&4)){var n=Yr.get(t);if(n)var l=n.get(null);else{n=new Map,Yr.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}o=e.instance,h=o.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,o),n.set(h,o),this.count++,l=Gr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var Pl={$$typeof:K,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function mM(t,e,n,l,o,u,h,y,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.hiddenUpdates=Lu(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function V0(t,e,n,l,o,u,h,y,T,z,j,G){return t=new mM(t,e,n,h,T,z,j,G,y),e=1,u===!0&&(e|=24),u=ze(3,null,null,e),t.current=u,u.stateNode=t,e=vc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},xc(u),t}function L0(t){return t?(t=ca,t):ca}function j0(t,e,n,l,o,u){o=L0(o),l.context===null?l.context=o:l.pendingContext=o,l=Qn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=Kn(t,l,e),n!==null&&(Te(n,t,e),zl(n,t,e))}function U0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Gf(t,e){U0(t,e),(t=t.alternate)&&U0(t,e)}function N0(t){if(t.tag===13||t.tag===31){var e=Ai(t,67108864);e!==null&&Te(e,t,67108864),Gf(t,67108864)}}function B0(t){if(t.tag===13||t.tag===31){var e=Ve();e=ju(e);var n=Ai(t,e);n!==null&&Te(n,t,e),Gf(t,e)}}var Zr=!0;function pM(t,e,n,l){var o=A.T;A.T=null;var u=_.p;try{_.p=2,Yf(t,e,n,l)}finally{_.p=u,A.T=o}}function gM(t,e,n,l){var o=A.T;A.T=null;var u=_.p;try{_.p=8,Yf(t,e,n,l)}finally{_.p=u,A.T=o}}function Yf(t,e,n,l){if(Zr){var o=Xf(l);if(o===null)zf(t,e,l,Qr,n),q0(t,l);else if(vM(o,t,e,n,l))l.stopPropagation();else if(q0(t,l),e&4&&-1<yM.indexOf(t)){for(;o!==null;){var u=Ii(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=bi(u.pendingLanes);if(h!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var T=1<<31-Ce(h);y.entanglements[1]|=T,h&=~T}an(u),(Et&6)===0&&(Dr=Ae()+500,Zl(0))}}break;case 31:case 13:y=Ai(u,2),y!==null&&Te(y,u,2),Or(),Gf(u,2)}if(u=Xf(l),u===null&&zf(t,e,l,Qr,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else zf(t,e,l,null,n)}}function Xf(t){return t=Zu(t),Zf(t)}var Qr=null;function Zf(t){if(Qr=null,t=$i(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Qr=t,null}function H0(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(nE()){case kp:return 2;case Jp:return 8;case Ls:case iE:return 32;case Fp:return 268435456;default:return 32}default:return 32}}var Qf=!1,ii=null,ai=null,li=null,Wl=new Map,$l=new Map,si=[],yM="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".split(" ");function q0(t,e){switch(t){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ai=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Wl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(e.pointerId)}}function Il(t,e,n,l,o,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},e!==null&&(e=Ii(e),e!==null&&N0(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function vM(t,e,n,l,o){switch(e){case"focusin":return ii=Il(ii,t,e,n,l,o),!0;case"dragenter":return ai=Il(ai,t,e,n,l,o),!0;case"mouseover":return li=Il(li,t,e,n,l,o),!0;case"pointerover":var u=o.pointerId;return Wl.set(u,Il(Wl.get(u)||null,t,e,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,$l.set(u,Il($l.get(u)||null,t,e,n,l,o)),!0}return!1}function G0(t){var e=$i(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,eg(t.priority,function(){B0(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,eg(t.priority,function(){B0(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Kr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Xf(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Xu=l,n.target.dispatchEvent(l),Xu=null}else return e=Ii(n),e!==null&&N0(e),t.blockedOn=n,!1;e.shift()}return!0}function Y0(t,e,n){Kr(t)&&n.delete(e)}function bM(){Qf=!1,ii!==null&&Kr(ii)&&(ii=null),ai!==null&&Kr(ai)&&(ai=null),li!==null&&Kr(li)&&(li=null),Wl.forEach(Y0),$l.forEach(Y0)}function kr(t,e){t.blockedOn===e&&(t.blockedOn=null,Qf||(Qf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bM)))}var Jr=null;function X0(t){Jr!==t&&(Jr=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Jr===t&&(Jr=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Zf(l||n)===null)continue;break}var u=Ii(n);u!==null&&(t.splice(e,3),e-=3,Yc(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function La(t){function e(T){return kr(T,t)}ii!==null&&kr(ii,t),ai!==null&&kr(ai,t),li!==null&&kr(li,t),Wl.forEach(e),$l.forEach(e);for(var n=0;n<si.length;n++){var l=si[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<si.length&&(n=si[0],n.blockedOn===null);)G0(n),n.blockedOn===null&&si.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],h=o[pe]||null;if(typeof u=="function")h||X0(n);else if(h){var y=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[pe]||null)y=h.formAction;else if(Zf(o)!==null)continue}else y=h.action;typeof y=="function"?n[l+1]=y:(n.splice(l,3),l-=3),X0(n)}}}function Z0(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function Kf(t){this._internalRoot=t}Fr.prototype.render=Kf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Ve();j0(n,l,t,e,null,null)},Fr.prototype.unmount=Kf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;j0(t.current,2,null,t,null,null),Or(),e[Wi]=null}};function Fr(t){this._internalRoot=t}Fr.prototype.unstable_scheduleHydration=function(t){if(t){var e=tg();t={blockedOn:null,target:t,priority:e};for(var n=0;n<si.length&&e!==0&&e<si[n].priority;n++);si.splice(n,0,t),n===0&&G0(t)}};var Q0=a.version;if(Q0!=="19.2.5")throw Error(r(527,Q0,"19.2.5"));_.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var SM={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{ol=Pr.inject(SM),Me=Pr}catch{}}return Na.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,l="",o=$y,u=Iy,h=tv;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=V0(t,1,!1,null,null,n,l,null,o,u,h,Z0),t[Wi]=e.current,Df(t),new Kf(e)},Na.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var l=!1,o="",u=$y,h=Iy,y=tv,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=V0(t,1,!0,e,n??null,l,o,T,u,h,y,Z0),e.context=L0(null),n=e.current,l=Ve(),l=ju(l),o=Qn(l),o.callback=null,Kn(n,o,l),n=l,e.current.lanes=n,cl(e,n),an(e),t[Wi]=e.current,Df(t),new Fr(e)},Na.version="19.2.5",Na}var yd;function Mb(){if(yd)return so.exports;yd=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),so.exports=Ab(),so.exports}var Cb=Mb();const vd={version:"0.2.8"};class On extends Error{constructor(a){super(a),this.name="ListError"}}class is extends On{constructor(a){super(`ListElement not found: ${a}`),this.name="ListElementNotFoundError"}}const Db=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function zb(i){return typeof i=="string"&&Db.test(i)}for(var ne=[],co=0;co<256;++co)ne.push((co+256).toString(16).slice(1));function bd(i,a=0){return(ne[i[a+0]]+ne[i[a+1]]+ne[i[a+2]]+ne[i[a+3]]+"-"+ne[i[a+4]]+ne[i[a+5]]+"-"+ne[i[a+6]]+ne[i[a+7]]+"-"+ne[i[a+8]]+ne[i[a+9]]+"-"+ne[i[a+10]]+ne[i[a+11]]+ne[i[a+12]]+ne[i[a+13]]+ne[i[a+14]]+ne[i[a+15]]).toLowerCase()}function Ob(i,a=0){var s=bd(i,a);if(!zb(s))throw TypeError("Stringified UUID is invalid");return s}var as,wb=new Uint8Array(16);function _b(){if(!as&&(as=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!as))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return as(wb)}var Sd=null,Td=null,ke=0;function Rb(i,a,s){i=i||{};var r=0,c=a||new Uint8Array(16),d=i.random||(i.rng||_b)(),f=i.msecs!==void 0?i.msecs:Date.now(),m=i.seq!==void 0?i.seq:null,g=Td,p=Sd;return f>ke&&i.msecs===void 0&&(ke=f,m!==null&&(g=null,p=null)),m!==null&&(m>2147483647&&(m=2147483647),g=m>>>19&4095,p=m&524287),(g===null||p===null)&&(g=d[6]&127,g=g<<8|d[7],p=d[8]&63,p=p<<8|d[9],p=p<<5|d[10]>>>3),f+1e4>ke&&m===null?++p>524287&&(p=0,++g>4095&&(g=0,ke++)):ke=f,Td=g,Sd=p,c[r++]=ke/1099511627776&255,c[r++]=ke/4294967296&255,c[r++]=ke/16777216&255,c[r++]=ke/65536&255,c[r++]=ke/256&255,c[r++]=ke&255,c[r++]=g>>>4&15|112,c[r++]=g&255,c[r++]=p>>>13&63|128,c[r++]=p>>>5&255,c[r++]=p<<3&255|d[10]&7,c[r++]=d[11],c[r++]=d[12],c[r++]=d[13],c[r++]=d[14],c[r++]=d[15],a||bd(c)}function Vb(i){let a;const s=new Uint8Array(16);return s[0]=(a=parseInt(i.slice(0,8),16))>>>24,s[1]=a>>>16&255,s[2]=a>>>8&255,s[3]=a&255,s[4]=(a=parseInt(i.slice(9,13),16))>>>8,s[5]=a&255,s[6]=(a=parseInt(i.slice(14,18),16))>>>8,s[7]=a&255,s[8]=(a=parseInt(i.slice(19,23),16))>>>8,s[9]=a&255,s[10]=(a=parseInt(i.slice(24,36),16))/1099511627776&255,s[11]=a/4294967296&255,s[12]=a>>>24&255,s[13]=a>>>16&255,s[14]=a>>>8&255,s[15]=a&255,s}var wt="0123456789abcdefghjkmnpqrstvwxyz",W=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function fo(i){const a=new Array(26).fill("");if(i.length!==16)throw new Error(`Invalid length. Expected 16 bytes, got ${i.length}. Input: ${i}`);return a[0]=wt[(i[0]&224)>>5],a[1]=wt[i[0]&31],a[2]=wt[(i[1]&248)>>3],a[3]=wt[(i[1]&7)<<2|(i[2]&192)>>6],a[4]=wt[(i[2]&62)>>1],a[5]=wt[(i[2]&1)<<4|(i[3]&240)>>4],a[6]=wt[(i[3]&15)<<1|(i[4]&128)>>7],a[7]=wt[(i[4]&124)>>2],a[8]=wt[(i[4]&3)<<3|(i[5]&224)>>5],a[9]=wt[i[5]&31],a[10]=wt[(i[6]&248)>>3],a[11]=wt[(i[6]&7)<<2|(i[7]&192)>>6],a[12]=wt[(i[7]&62)>>1],a[13]=wt[(i[7]&1)<<4|(i[8]&240)>>4],a[14]=wt[(i[8]&15)<<1|(i[9]&128)>>7],a[15]=wt[(i[9]&124)>>2],a[16]=wt[(i[9]&3)<<3|(i[10]&224)>>5],a[17]=wt[i[10]&31],a[18]=wt[(i[11]&248)>>3],a[19]=wt[(i[11]&7)<<2|(i[12]&192)>>6],a[20]=wt[(i[12]&62)>>1],a[21]=wt[(i[12]&1)<<4|(i[13]&240)>>4],a[22]=wt[(i[13]&15)<<1|(i[14]&128)>>7],a[23]=wt[(i[14]&124)>>2],a[24]=wt[(i[14]&3)<<3|(i[15]&224)>>5],a[25]=wt[i[15]&31],a.join("")}function xd(i){if(i.length!==26)throw new Error(`Invalid length. Expected 26 bytes, got ${i.length}. Input: ${i}`);const s=new TextEncoder().encode(i);if(W[s[0]]===255||W[s[1]]===255||W[s[2]]===255||W[s[3]]===255||W[s[4]]===255||W[s[5]]===255||W[s[6]]===255||W[s[7]]===255||W[s[8]]===255||W[s[9]]===255||W[s[10]]===255||W[s[11]]===255||W[s[12]]===255||W[s[13]]===255||W[s[14]]===255||W[s[15]]===255||W[s[16]]===255||W[s[17]]===255||W[s[18]]===255||W[s[19]]===255||W[s[20]]===255||W[s[21]]===255||W[s[22]]===255||W[s[23]]===255||W[s[24]]===255||W[s[25]]===255)throw new Error("Invalid base32 character");const r=new Uint8Array(16);return r[0]=W[s[0]]<<5|W[s[1]],r[1]=W[s[2]]<<3|W[s[3]]>>2,r[2]=(W[s[3]]&3)<<6|W[s[4]]<<1|W[s[5]]>>4,r[3]=(W[s[5]]&15)<<4|W[s[6]]>>1,r[4]=(W[s[6]]&1)<<7|W[s[7]]<<2|W[s[8]]>>3,r[5]=(W[s[8]]&7)<<5|W[s[9]],r[6]=W[s[10]]<<3|W[s[11]]>>2,r[7]=(W[s[11]]&3)<<6|W[s[12]]<<1|W[s[13]]>>4,r[8]=(W[s[13]]&15)<<4|W[s[14]]>>1,r[9]=(W[s[14]]&1)<<7|W[s[15]]<<2|W[s[16]]>>3,r[10]=(W[s[16]]&7)<<5|W[s[17]],r[11]=W[s[18]]<<3|W[s[19]]>>2,r[12]=(W[s[19]]&3)<<6|W[s[20]]<<1|W[s[21]]>>4,r[13]=(W[s[21]]&15)<<4|W[s[22]]>>1,r[14]=(W[s[22]]&1)<<7|W[s[23]]<<2|W[s[24]]>>3,r[15]=(W[s[24]]&7)<<5|W[s[25]],r}function Lb(i){if(i.length>63)return!1;let a,s,r;for(s=0,r=i.length;s<r;s+=1){a=i.charCodeAt(s);const c=a>96&&a<123,d=a===95;if((s===0||s===r-1)&&!c||!(c||d))return!1}return!0}var jb=class extends Error{constructor(i){super(`Invalid prefix "${i}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},Ub=class extends Error{constructor(i,a){super(`Invalid TypeId. Prefix mismatch. Expected ${i}, got ${a}`),this.name="PrefixMismatchError"}},Nb=class extends Error{constructor(i){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${i}`),this.name="EmptyPrefixError"}},Ed=class extends Error{constructor(i){super(`Invalid length. Suffix should have 26 characters, got ${i}`),this.name="InvalidSuffixLengthError"}},Bb=class extends Error{constructor(i){super(`Invalid suffix. First character "${i}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},Hb=class extends Error{constructor(i,a){super(`Cannot convert TypeID of type ${i} to type ${a}`),this.name="TypeIDConversionError"}};function Ad(i="",a=""){if(!Lb(i))throw new jb(i);let s;if(a)s=a;else{const r=new Uint8Array(16);Rb(void 0,r),s=fo(r)}if(s.length!==26)throw new Ed(s.length);if(s[0]>"7")throw new Bb(s[0]);return xd(s),i===""?s:`${i}_${s}`}function qb(i,a){let s,r;const c=i.lastIndexOf("_");if(c===-1)s="",r=i;else if(s=i.substring(0,c),r=i.substring(c+1),!s)throw new Nb(i);if(!r)throw new Ed(0);if(a&&s!==a)throw new Ub(a,s);return Ad(s,r)}function Md(i){const a=i.lastIndexOf("_");return a===-1?"":i.substring(0,a)}function Cd(i){const a=i.lastIndexOf("_");return a===-1?i:i.substring(a+1)}var wn=class{constructor(i,a=""){this.prefix=i,this.suffix=a;const s=Ad(i,a);this.prefix=Md(s),this.suffix=Cd(s)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(i){const a=this;if(a.prefix!==i)throw new Hb(a.prefix,i);return a}toUUIDBytes(){return xd(this.suffix)}toUUID(){return Ob(this.toUUIDBytes())}toString(){return this.prefix===""?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(i,a){const s=qb(i,a);return new wn(Md(s),Cd(s))}static fromUUIDBytes(i,a){const s=fo(a);return new wn(i,s)}static fromUUID(i,a){const s=fo(Vb(a));return new wn(i,s)}};function ls(i="",a=""){return new wn(i,a)}function Gb(){return ls("lse")}function ho(i){return wn.fromString(i,"lse")}function ss(){return ls("lev")}function Yb(i){return wn.fromString(i,"lev")}function Dd(){return ls("lst")}function mo(i){return wn.fromString(i,"lst")}function Xb(i){const a=new Date(i);if(Number.isNaN(a.getTime()))throw new On(`Invalid Timestamp: "${i}" does not parse as a valid date`);return i}function rs(){return new Date().toISOString()}class Ba{#t;#a;#n;#e;constructor(a){this.#t=a,this.#a=void 0,this.#n=new Map,this.#e=[]}get id(){return this.#t}get title(){return this.#a}get elements(){return[...this.#n.values()]}static create(a){const s=a.listId??Dd(),r=new Ba(s),c={type:"ListCreated",listEventId:ss(),listId:s,actorId:a.actorId,timestamp:rs(),...a.title!==void 0?{title:a.title}:{}};return r.#i(c),r.#e.push(c),{list:r,event:c}}static rehydrate(a,s){const r=new Ba(a);for(const c of s)r.#i(c);return r}addListElement(a){const s=Gb(),r={type:"ListElementAdded",listEventId:ss(),listId:this.#t,actorId:a.actorId,timestamp:rs(),listElementId:s,content:a.content};return this.#i(r),this.#e.push(r),r}deleteListElement(a){const s=a.listElementId.toString();if(!this.#n.has(s))throw new is(s);const r={type:"ListElementDeleted",listEventId:ss(),listId:this.#t,actorId:a.actorId,timestamp:rs(),listElementId:a.listElementId};return this.#i(r),this.#e.push(r),r}exportListDocument(a){const s={type:"ListExported",listEventId:ss(),listId:this.#t,actorId:a.actorId,timestamp:rs(),format:"json-ld"};return this.#i(s),this.#e.push(s),s}getUncommittedEvents(){return[...this.#e]}markEventsAsCommitted(){this.#e.length=0}#i(a){({ListCreated:r=>{this.#a=r.title},ListElementAdded:r=>{this.#n.set(r.listElementId.toString(),{id:r.listElementId,content:r.content,addedAt:r.timestamp})},ListElementDeleted:r=>{this.#n.delete(r.listElementId.toString())},ListExported:r=>{}})[a.type](a)}}function Zb(){return ls("act")}function Qb(i){return wn.fromString(i,"act")}const zd=2e3;function Od(i){const a=i.trim();if(a.length===0)throw new On("ListElementContent cannot be empty");if(a.length>zd)throw new On(`ListElementContent exceeds maximum length of ${zd} characters`);return a}const Kb={"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},kb="1.0.0";function Jb(i){const a={"alistigo:listEventId":i.listEventId.toString(),"alistigo:listId":i.listId.toString(),"alistigo:actorId":i.actorId.toString(),"alistigo:timestamp":i.timestamp};switch(i.type){case"ListCreated":return{...a,"alistigo:eventType":"ListCreated",...i.title!==void 0?{name:i.title}:{}};case"ListElementAdded":return{...a,"alistigo:eventType":"ListElementAdded","alistigo:listElementId":i.listElementId.toString(),name:i.content};case"ListElementDeleted":return{...a,"alistigo:eventType":"ListElementDeleted","alistigo:listElementId":i.listElementId.toString()};case"ListExported":return{...a,"alistigo:eventType":"ListExported"}}}function Fb(i){const a={listEventId:Yb(i["alistigo:listEventId"]),listId:mo(i["alistigo:listId"]),actorId:Qb(i["alistigo:actorId"]),timestamp:Xb(i["alistigo:timestamp"])};switch(i["alistigo:eventType"]){case"ListCreated":{const s=i;return{...a,type:"ListCreated",...s.name!==void 0?{title:s.name}:{}}}case"ListElementAdded":{const s=i;return{...a,type:"ListElementAdded",listElementId:ho(s["alistigo:listElementId"]),content:Od(s.name)}}case"ListElementDeleted":return{...a,type:"ListElementDeleted",listElementId:ho(i["alistigo:listElementId"])};case"ListExported":return{...a,type:"ListExported",format:"json-ld"}}}const os={serialize(i,a){const s=a?.["alistigo:listEventLog"]??[],r=i.getUncommittedEvents().map(Jb),c=i.elements.map((f,m)=>({"@type":"ListItem","alistigo:listElementId":f.id.toString(),position:m+1,name:f.content})),d={"@context":Kb,"@type":"ItemList","alistigo:listId":i.id.toString(),"alistigo:schemaVersion":kb,itemListElement:c,"alistigo:listEventLog":[...s,...r]};return i.title!==void 0&&(d.name=i.title),d},deserialize(i){const a=mo(i["alistigo:listId"]),s=i["alistigo:listEventLog"].map(Fb);return Ba.rehydrate(a,s)}},us=oi("alistigo:claude-storage"),Ha=i=>`alistigo-${i.toString()}`;class Pb{get storage(){const a=window.storage;if(!a)throw new Error("ClaudeArtifactListRepository requires window.storage — use isClaudeArtifactContext() before instantiating");return a}async load(a){try{us.debug({key:Ha(a)},"loading from claude storage");const s=await this.storage.get(Ha(a)),r=JSON.parse(s.value);return os.deserialize(r)}catch(s){us.debug({err:s},"load from claude storage returned nothing (key may not exist)");return}}async save(a){const s=await this.loadDocument(a.id),r=os.serialize(a,s);await this.storage.set(Ha(a.id),JSON.stringify(r)),us.debug({key:Ha(a.id)},"saved to claude storage")}async loadDocument(a){try{const s=await this.storage.get(Ha(a));return JSON.parse(s.value)}catch(s){us.debug({err:s},"loadDocument from claude storage returned nothing (key may not exist)");return}}}function Wb(){return typeof window<"u"&&"storage"in window&&typeof window.storage?.get=="function"}function $b(i){return{ok:!0,value:i}}function ui(i){return{ok:!1,error:i}}const cs=oi("alistigo:service");class Ib{store;constructor(a){this.store=a}async createList(a,s,r){try{const c=r??Dd();cs.debug({listId:c.toString(),title:s},"createList");const{list:d}=Ba.create({actorId:a,listId:c,...s!==void 0?{title:s}:{}});return await this.#t(d,c)}catch(c){if(c instanceof On)return ui(c);throw c}}async addListElement(a,s,r){try{cs.debug({listId:a.toString(),content:s},"addListElement");const c=await this.store.load(a);if(!c)return ui(new is(a.toString()));const d=Od(s);return c.addListElement({actorId:r,listId:a,content:d}),await this.#t(c,a)}catch(c){if(c instanceof On)return ui(c);throw c}}async deleteListElement(a,s,r){try{cs.debug({listId:a.toString(),elementId:s.toString()},"deleteListElement");const c=await this.store.load(a);return c?(c.deleteListElement({actorId:r,listId:a,listElementId:s}),await this.#t(c,a)):ui(new is(a.toString()))}catch(c){if(c instanceof On)return ui(c);throw c}}async loadDocument(a){return this.store.loadDocument(a)}async exportListDocument(a,s){try{const r=await this.store.load(a);return r?(r.exportListDocument({actorId:s,listId:a}),await this.#t(r,a)):ui(new is(a.toString()))}catch(r){if(r instanceof On)return ui(r);throw r}}async#t(a,s){await this.store.save(a),a.markEventsAsCommitted();const r=await this.store.loadDocument(s);return cs.debug({listId:s.toString(),elementCount:r?.itemListElement.length},"document saved"),$b(r)}}function wd(i,a){if(typeof i=="function")return i(a);i!=null&&(i.current=a)}function t1(...i){return a=>{let s=!1;const r=i.map(c=>{const d=wd(c,a);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<r.length;c++){const d=r[c];typeof d=="function"?d():wd(i[c],null)}}}}var e1=Symbol.for("react.lazy"),fs=db[" use ".trim().toString()];function n1(i){return typeof i=="object"&&i!==null&&"then"in i}function _d(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===e1&&"_payload"in i&&n1(i._payload)}function i1(i){const a=l1(i),s=U.forwardRef((r,c)=>{let{children:d,...f}=r;_d(d)&&typeof fs=="function"&&(d=fs(d._payload));const m=U.Children.toArray(d),g=m.find(r1);if(g){const p=g.props.children,v=m.map(b=>b===g?U.Children.count(p)>1?U.Children.only(null):U.isValidElement(p)?p.props.children:null:b);return at.jsx(a,{...f,ref:c,children:U.isValidElement(p)?U.cloneElement(p,void 0,v):null})}return at.jsx(a,{...f,ref:c,children:d})});return s.displayName=`${i}.Slot`,s}var a1=i1("Slot");function l1(i){const a=U.forwardRef((s,r)=>{let{children:c,...d}=s;if(_d(c)&&typeof fs=="function"&&(c=fs(c._payload)),U.isValidElement(c)){const f=u1(c),m=o1(d,c.props);return c.type!==U.Fragment&&(m.ref=r?t1(r,f):f),U.cloneElement(c,m)}return U.Children.count(c)>1?U.Children.only(null):null});return a.displayName=`${i}.SlotClone`,a}var s1=Symbol("radix.slottable");function r1(i){return U.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===s1}function o1(i,a){const s={...a};for(const r in a){const c=i[r],d=a[r];/^on[A-Z]/.test(r)?c&&d?s[r]=(...m)=>{const g=d(...m);return c(...m),g}:c&&(s[r]=c):r==="style"?s[r]={...c,...d}:r==="className"&&(s[r]=[c,d].filter(Boolean).join(" "))}return{...i,...s}}function u1(i){let a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?i.ref:(a=Object.getOwnPropertyDescriptor(i,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?i.props.ref:i.props.ref||i.ref)}function Rd(i){var a,s,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(a=0;a<c;a++)i[a]&&(s=Rd(i[a]))&&(r&&(r+=" "),r+=s)}else for(s in i)i[s]&&(r&&(r+=" "),r+=s);return r}function Vd(){for(var i,a,s=0,r="",c=arguments.length;s<c;s++)(i=arguments[s])&&(a=Rd(i))&&(r&&(r+=" "),r+=a);return r}const Ld=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,jd=Vd,c1=(i,a)=>s=>{var r;if(a?.variants==null)return jd(i,s?.class,s?.className);const{variants:c,defaultVariants:d}=a,f=Object.keys(c).map(p=>{const v=s?.[p],b=d?.[p];if(v===null)return null;const S=Ld(v)||Ld(b);return c[p][S]}),m=s&&Object.entries(s).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),g=a==null||(r=a.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:S,...M}=v;return Object.entries(M).every(L=>{let[w,H]=L;return Array.isArray(H)?H.includes({...d,...m}[w]):{...d,...m}[w]===H})?[...p,b,S]:p},[]);return jd(i,f,g,s?.class,s?.className)},po="-",f1=i=>{const a=h1(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=i;return{getClassGroupId:f=>{const m=f.split(po);return m[0]===""&&m.length!==1&&m.shift(),Ud(m,a)||d1(f)},getConflictingClassGroupIds:(f,m)=>{const g=s[f]||[];return m&&r[f]?[...g,...r[f]]:g}}},Ud=(i,a)=>{if(i.length===0)return a.classGroupId;const s=i[0],r=a.nextPart.get(s),c=r?Ud(i.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const d=i.join(po);return a.validators.find(({validator:f})=>f(d))?.classGroupId},Nd=/^\[(.+)\]$/,d1=i=>{if(Nd.test(i)){const a=Nd.exec(i)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},h1=i=>{const{theme:a,prefix:s}=i,r={nextPart:new Map,validators:[]};return p1(Object.entries(i.classGroups),s).forEach(([d,f])=>{go(f,r,d,a)}),r},go=(i,a,s,r)=>{i.forEach(c=>{if(typeof c=="string"){const d=c===""?a:Bd(a,c);d.classGroupId=s;return}if(typeof c=="function"){if(m1(c)){go(c(r),a,s,r);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([d,f])=>{go(f,Bd(a,d),s,r)})})},Bd=(i,a)=>{let s=i;return a.split(po).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},m1=i=>i.isThemeGetter,p1=(i,a)=>a?i.map(([s,r])=>{const c=r.map(d=>typeof d=="string"?a+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([f,m])=>[a+f,m])):d);return[s,c]}):i,g1=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,r=new Map;const c=(d,f)=>{s.set(d,f),a++,a>i&&(a=0,r=s,s=new Map)};return{get(d){let f=s.get(d);if(f!==void 0)return f;if((f=r.get(d))!==void 0)return c(d,f),f},set(d,f){s.has(d)?s.set(d,f):c(d,f)}}},Hd="!",y1=i=>{const{separator:a,experimentalParseClassName:s}=i,r=a.length===1,c=a[0],d=a.length,f=m=>{const g=[];let p=0,v=0,b;for(let H=0;H<m.length;H++){let Y=m[H];if(p===0){if(Y===c&&(r||m.slice(H,H+d)===a)){g.push(m.slice(v,H)),v=H+d;continue}if(Y==="/"){b=H;continue}}Y==="["?p++:Y==="]"&&p--}const S=g.length===0?m:m.substring(v),M=S.startsWith(Hd),L=M?S.substring(1):S,w=b&&b>v?b-v:void 0;return{modifiers:g,hasImportantModifier:M,baseClassName:L,maybePostfixModifierPosition:w}};return s?m=>s({className:m,parseClassName:f}):f},v1=i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(r=>{r[0]==="["?(a.push(...s.sort(),r),s=[]):s.push(r)}),a.push(...s.sort()),a},b1=i=>({cache:g1(i.cacheSize),parseClassName:y1(i),...f1(i)}),S1=/\s+/,T1=(i,a)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c}=a,d=[],f=i.trim().split(S1);let m="";for(let g=f.length-1;g>=0;g-=1){const p=f[g],{modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:M}=s(p);let L=!!M,w=r(L?S.substring(0,M):S);if(!w){if(!L){m=p+(m.length>0?" "+m:m);continue}if(w=r(S),!w){m=p+(m.length>0?" "+m:m);continue}L=!1}const H=v1(v).join(":"),Y=b?H+Hd:H,Q=Y+w;if(d.includes(Q))continue;d.push(Q);const K=c(w,L);for(let $=0;$<K.length;++$){const k=K[$];d.push(Y+k)}m=p+(m.length>0?" "+m:m)}return m};function x1(){let i=0,a,s,r="";for(;i<arguments.length;)(a=arguments[i++])&&(s=qd(a))&&(r&&(r+=" "),r+=s);return r}const qd=i=>{if(typeof i=="string")return i;let a,s="";for(let r=0;r<i.length;r++)i[r]&&(a=qd(i[r]))&&(s&&(s+=" "),s+=a);return s};function E1(i,...a){let s,r,c,d=f;function f(g){const p=a.reduce((v,b)=>b(v),i());return s=b1(p),r=s.cache.get,c=s.cache.set,d=m,m(g)}function m(g){const p=r(g);if(p)return p;const v=T1(g,s);return c(g,v),v}return function(){return d(x1.apply(null,arguments))}}const Rt=i=>{const a=s=>s[i]||[];return a.isThemeGetter=!0,a},Gd=/^\[(?:([a-z-]+):)?(.+)\]$/i,A1=/^\d+\/\d+$/,M1=new Set(["px","full","screen"]),C1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,z1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,O1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ln=i=>Ni(i)||M1.has(i)||A1.test(i),_n=i=>Bi(i,"length",B1),Ni=i=>!!i&&!Number.isNaN(Number(i)),yo=i=>Bi(i,"number",Ni),qa=i=>!!i&&Number.isInteger(Number(i)),_1=i=>i.endsWith("%")&&Ni(i.slice(0,-1)),dt=i=>Gd.test(i),Rn=i=>C1.test(i),R1=new Set(["length","size","percentage"]),V1=i=>Bi(i,R1,Yd),L1=i=>Bi(i,"position",Yd),j1=new Set(["image","url"]),U1=i=>Bi(i,j1,q1),N1=i=>Bi(i,"",H1),Ga=()=>!0,Bi=(i,a,s)=>{const r=Gd.exec(i);return r?r[1]?typeof a=="string"?r[1]===a:a.has(r[1]):s(r[2]):!1},B1=i=>D1.test(i)&&!z1.test(i),Yd=()=>!1,H1=i=>O1.test(i),q1=i=>w1.test(i),G1=E1(()=>{const i=Rt("colors"),a=Rt("spacing"),s=Rt("blur"),r=Rt("brightness"),c=Rt("borderColor"),d=Rt("borderRadius"),f=Rt("borderSpacing"),m=Rt("borderWidth"),g=Rt("contrast"),p=Rt("grayscale"),v=Rt("hueRotate"),b=Rt("invert"),S=Rt("gap"),M=Rt("gradientColorStops"),L=Rt("gradientColorStopPositions"),w=Rt("inset"),H=Rt("margin"),Y=Rt("opacity"),Q=Rt("padding"),K=Rt("saturate"),$=Rt("scale"),k=Rt("sepia"),it=Rt("skew"),F=Rt("space"),I=Rt("translate"),mt=()=>["auto","contain","none"],_t=()=>["auto","hidden","clip","visible","scroll"],Ut=()=>["auto",dt,a],ct=()=>[dt,a],he=()=>["",ln,_n],$t=()=>["auto",Ni,dt],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],_=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",dt],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>[Ni,dt];return{cacheSize:500,separator:":",theme:{colors:[Ga],spacing:[ln,_n],blur:["none","",Rn,dt],brightness:x(),borderColor:[i],borderRadius:["none","","full",Rn,dt],borderSpacing:ct(),borderWidth:he(),contrast:x(),grayscale:J(),hueRotate:x(),invert:J(),gap:ct(),gradientColorStops:[i],gradientColorStopPositions:[_1,_n],inset:Ut(),margin:Ut(),opacity:x(),padding:ct(),saturate:x(),scale:x(),sepia:J(),skew:x(),space:ct(),translate:ct()},classGroups:{aspect:[{aspect:["auto","square","video",dt]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),dt]}],overflow:[{overflow:_t()}],"overflow-x":[{"overflow-x":_t()}],"overflow-y":[{"overflow-y":_t()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qa,dt]}],basis:[{basis:Ut()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",dt]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",qa,dt]}],"grid-cols":[{"grid-cols":[Ga]}],"col-start-end":[{col:["auto",{span:["full",qa,dt]},dt]}],"col-start":[{"col-start":$t()}],"col-end":[{"col-end":$t()}],"grid-rows":[{"grid-rows":[Ga]}],"row-start-end":[{row:["auto",{span:[qa,dt]},dt]}],"row-start":[{"row-start":$t()}],"row-end":[{"row-end":$t()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",dt]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[H]}],mx:[{mx:[H]}],my:[{my:[H]}],ms:[{ms:[H]}],me:[{me:[H]}],mt:[{mt:[H]}],mr:[{mr:[H]}],mb:[{mb:[H]}],ml:[{ml:[H]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",dt,a]}],"min-w":[{"min-w":[dt,a,"min","max","fit"]}],"max-w":[{"max-w":[dt,a,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[dt,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[dt,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[dt,a,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,_n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yo]}],"font-family":[{font:[Ga]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",dt]}],"line-clamp":[{"line-clamp":["none",Ni,yo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,dt]}],"list-image":[{"list-image":["none",dt]}],"list-style-type":[{list:["none","disc","decimal",dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[Y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,_n]}],"underline-offset":[{"underline-offset":["auto",ln,dt]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ct()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),L1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",V1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U1]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[Y]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Y]}],"divide-style":[{divide:A()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[ln,dt]}],"outline-w":[{outline:[ln,_n]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[Y]}],"ring-offset-w":[{"ring-offset":[ln,_n]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Rn,N1]}],"shadow-color":[{shadow:[Ga]}],opacity:[{opacity:[Y]}],"mix-blend":[{"mix-blend":[..._(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Rn,dt]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[b]}],saturate:[{saturate:[K]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[Y]}],"backdrop-saturate":[{"backdrop-saturate":[K]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",dt]}],duration:[{duration:x()}],ease:[{ease:["linear","in","out","in-out",dt]}],delay:[{delay:x()}],animate:[{animate:["none","spin","ping","pulse","bounce",dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[qa,dt]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[it]}],"skew-y":[{"skew-y":[it]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",dt]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",dt]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ct()}],"scroll-mx":[{"scroll-mx":ct()}],"scroll-my":[{"scroll-my":ct()}],"scroll-ms":[{"scroll-ms":ct()}],"scroll-me":[{"scroll-me":ct()}],"scroll-mt":[{"scroll-mt":ct()}],"scroll-mr":[{"scroll-mr":ct()}],"scroll-mb":[{"scroll-mb":ct()}],"scroll-ml":[{"scroll-ml":ct()}],"scroll-p":[{"scroll-p":ct()}],"scroll-px":[{"scroll-px":ct()}],"scroll-py":[{"scroll-py":ct()}],"scroll-ps":[{"scroll-ps":ct()}],"scroll-pe":[{"scroll-pe":ct()}],"scroll-pt":[{"scroll-pt":ct()}],"scroll-pr":[{"scroll-pr":ct()}],"scroll-pb":[{"scroll-pb":ct()}],"scroll-pl":[{"scroll-pl":ct()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",dt]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[ln,_n,yo]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});const Y1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xd=(...i)=>i.filter((a,s,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===s).join(" ").trim();var X1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Z1=U.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:d,iconNode:f,...m},g)=>U.createElement("svg",{ref:g,...X1,width:a,height:a,stroke:i,strokeWidth:r?Number(s)*24/Number(a):s,className:Xd("lucide",c),...m},[...f.map(([p,v])=>U.createElement(p,v)),...Array.isArray(d)?d:[d]]));const Zd=(i,a)=>{const s=U.forwardRef(({className:r,...c},d)=>U.createElement(Z1,{ref:d,iconNode:a,className:Xd(`lucide-${Y1(i)}`,r),...c}));return s.displayName=`${i}`,s};const Q1=Zd("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);const K1=Zd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),vo=U.createContext({});function bo(i){const a=U.useRef(null);return a.current===null&&(a.current=i()),a.current}const Ya=U.createContext(null),So=U.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});class k1 extends U.Component{getSnapshotBeforeUpdate(a){const s=this.props.childRef.current;if(s&&a.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function J1({children:i,isPresent:a}){const s=U.useId(),r=U.useRef(null),c=U.useRef({width:0,height:0,top:0,left:0}),{nonce:d}=U.useContext(So);return U.useInsertionEffect(()=>{const{width:f,height:m,top:g,left:p}=c.current;if(a||!r.current||!f||!m)return;r.current.dataset.motionPopId=s;const v=document.createElement("style");return d&&(v.nonce=d),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
19
|
+
[data-motion-pop-id="${s}"] {
|
|
35
20
|
position: absolute !important;
|
|
36
|
-
width: ${
|
|
37
|
-
height: ${
|
|
38
|
-
top: ${
|
|
39
|
-
left: ${
|
|
21
|
+
width: ${f}px !important;
|
|
22
|
+
height: ${m}px !important;
|
|
23
|
+
top: ${g}px !important;
|
|
24
|
+
left: ${p}px !important;
|
|
40
25
|
}
|
|
41
|
-
`),()=>{document.head.removeChild(m)}},[e]),ve.jsx(NL,{isPresent:e,childRef:r,sizeRef:o,children:Y.cloneElement(t,{ref:r})})}const jL=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:u,mode:c})=>{const f=Op(UL),h=Y.useId(),g=Y.useCallback(v=>{f.set(v,!0);for(const _ of f.values())if(!_)return;r&&r()},[f,r]),m=Y.useMemo(()=>({id:h,initial:e,isPresent:n,custom:o,onExitComplete:g,register:v=>(f.set(v,!1),()=>f.delete(v))}),u?[Math.random(),g]:[n,g]);return Y.useMemo(()=>{f.forEach((v,_)=>f.set(_,!1))},[n]),Y.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),c==="popLayout"&&(t=ve.jsx(zL,{isPresent:n,children:t})),ve.jsx(Bo.Provider,{value:m,children:t})};function UL(){return new Map}function KS(t=!0){const e=Y.useContext(Bo);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,u=Y.useId();Y.useEffect(()=>{t&&o(u)},[t]);const c=Y.useCallback(()=>t&&r&&r(u),[u,r,t]);return!n&&r?[!1,c]:[!0]}function BL(){return VL(Y.useContext(Bo))}function VL(t){return t===null?!0:t.isPresent}const fc=t=>t.key||"";function ZS(t){const e=[];return Y.Children.forEach(t,n=>{Y.isValidElement(n)&&e.push(n)}),e}const Dp=typeof window<"u",QS=Dp?Y.useLayoutEffect:Y.useEffect,IL=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:u="sync",propagate:c=!1})=>{const[f,h]=KS(c),g=Y.useMemo(()=>ZS(t),[t]),m=c&&!f?[]:g.map(fc),v=Y.useRef(!0),_=Y.useRef(g),b=Op(()=>new Map),[x,E]=Y.useState(g),[M,R]=Y.useState(g);QS(()=>{v.current=!1,_.current=g;for(let K=0;K<M.length;K++){const U=fc(M[K]);m.includes(U)?b.delete(U):b.get(U)!==!0&&b.set(U,!1)}},[M,m.length,m.join("-")]);const q=[];if(g!==x){let K=[...g];for(let U=0;U<M.length;U++){const Q=M[U],P=fc(Q);m.includes(P)||(K.splice(U,0,Q),q.push(Q))}u==="wait"&&q.length&&(K=q),R(ZS(K)),E(g);return}const{forceRender:F}=Y.useContext(Mp);return ve.jsx(ve.Fragment,{children:M.map(K=>{const U=fc(K),Q=c&&!f?!1:g===M||m.includes(U),P=()=>{if(b.has(U))b.set(U,!0);else return;let I=!0;b.forEach($=>{$||(I=!1)}),I&&(F?.(),R(_.current),c&&h?.(),r&&r())};return ve.jsx(jL,{isPresent:Q,initial:!v.current||n?void 0:!1,custom:Q?void 0:e,presenceAffectsLayout:o,mode:u,onExitComplete:Q?void 0:P,children:K},U)})})},dn=t=>t;let JS=dn;const qL={useManualTiming:!1};function PL(t){let e=new Set,n=new Set,r=!1,o=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(g){u.has(g)&&(h.schedule(g),t()),g(c)}const h={schedule:(g,m=!1,v=!1)=>{const b=v&&r?e:n;return m&&u.add(g),b.has(g)||b.add(g),g},cancel:g=>{n.delete(g),u.delete(g)},process:g=>{if(c=g,r){o=!0;return}r=!0,[e,n]=[n,e],e.forEach(f),e.clear(),r=!1,o&&(o=!1,h.process(g))}};return h}const dc=["read","resolveKeyframes","update","preRender","render","postRender"],HL=40;function WS(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,c=dc.reduce((R,q)=>(R[q]=PL(u),R),{}),{read:f,resolveKeyframes:h,update:g,preRender:m,render:v,postRender:_}=c,b=()=>{const R=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(R-o.timestamp,HL),1),o.timestamp=R,o.isProcessing=!0,f.process(o),h.process(o),g.process(o),m.process(o),v.process(o),_.process(o),o.isProcessing=!1,n&&e&&(r=!1,t(b))},x=()=>{n=!0,r=!0,o.isProcessing||t(b)};return{schedule:dc.reduce((R,q)=>{const F=c[q];return R[q]=(K,U=!1,Q=!1)=>(n||x(),F.schedule(K,U,Q)),R},{}),cancel:R=>{for(let q=0;q<dc.length;q++)c[dc[q]].cancel(R)},state:o,steps:c}}const{schedule:nt,cancel:es,state:Nt,steps:kp}=WS(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0),eE=Y.createContext({strict:!1}),tE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zr={};for(const t in tE)Zr[t]={isEnabled:e=>tE[t].some(n=>!!e[n])};function FL(t){for(const e in t)Zr[e]={...Zr[e],...t[e]}}const $L=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$L.has(t)}let nE=t=>!hc(t);function GL(t){t&&(nE=e=>e.startsWith("on")?!hc(e):t(e))}try{GL(require("@emotion/is-prop-valid").default)}catch{}function YL(t,e,n){const r={};for(const o in t)o==="values"&&typeof t.values=="object"||(nE(o)||n===!0&&hc(o)||!e&&!hc(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}function XL(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,o)=>o==="create"?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}const pc=Y.createContext({});function Vo(t){return typeof t=="string"||Array.isArray(t)}function gc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Lp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Np=["initial",...Lp];function mc(t){return gc(t.animate)||Np.some(e=>Vo(t[e]))}function iE(t){return!!(mc(t)||t.variants)}function KL(t,e){if(mc(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Vo(n)?n:void 0,animate:Vo(r)?r:void 0}}return t.inherit!==!1?e:{}}function ZL(t){const{initial:e,animate:n}=KL(t,Y.useContext(pc));return Y.useMemo(()=>({initial:e,animate:n}),[sE(e),sE(n)])}function sE(t){return Array.isArray(t)?t.join(" "):t}const QL=Symbol.for("motionComponentSymbol");function Qr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function JL(t,e,n){return Y.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Qr(n)&&(n.current=r))},[e])}const zp=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rE="data-"+zp("framerAppearId"),{schedule:jp}=WS(queueMicrotask,!1),aE=Y.createContext({});function WL(t,e,n,r,o){var u,c;const{visualElement:f}=Y.useContext(pc),h=Y.useContext(eE),g=Y.useContext(Bo),m=Y.useContext(Rp).reducedMotion,v=Y.useRef(null);r=r||h.renderer,!v.current&&r&&(v.current=r(t,{visualState:e,parent:f,props:n,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:m}));const _=v.current,b=Y.useContext(aE);_&&!_.projection&&o&&(_.type==="html"||_.type==="svg")&&eN(v.current,n,o,b);const x=Y.useRef(!1);Y.useInsertionEffect(()=>{_&&x.current&&_.update(n,g)});const E=n[rE],M=Y.useRef(!!E&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,E))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,E)));return QS(()=>{_&&(x.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),jp.render(_.render),M.current&&_.animationState&&_.animationState.animateChanges())}),Y.useEffect(()=>{_&&(!M.current&&_.animationState&&_.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,E)}),M.current=!1))}),_}function eN(t,e,n,r){const{layoutId:o,layout:u,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:oE(t.parent)),t.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||f&&Qr(f),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:g})}function oE(t){if(t)return t.options.allowProjection!==!1?t.projection:oE(t.parent)}function tN({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:o}){var u,c;t&&FL(t);function f(g,m){let v;const _={...Y.useContext(Rp),...g,layoutId:nN(g)},{isStatic:b}=_,x=ZL(g),E=r(g,b);if(!b&&Dp){iN();const M=sN(_);v=M.MeasureLayout,x.visualElement=WL(o,E,_,e,M.ProjectionNode)}return ve.jsxs(pc.Provider,{value:x,children:[v&&x.visualElement?ve.jsx(v,{visualElement:x.visualElement,..._}):null,n(o,g,JL(E,x.visualElement,m),E,b,x.visualElement)]})}f.displayName=`motion.${typeof o=="string"?o:`create(${(c=(u=o.displayName)!==null&&u!==void 0?u:o.name)!==null&&c!==void 0?c:""})`}`;const h=Y.forwardRef(f);return h[QL]=o,h}function nN({layoutId:t}){const e=Y.useContext(Mp).id;return e&&t!==void 0?e+"-"+t:t}function iN(t,e){Y.useContext(eE).strict}function sN(t){const{drag:e,layout:n}=Zr;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const rN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Up(t){return typeof t!="string"||t.includes("-")?!1:!!(rN.indexOf(t)>-1||/[A-Z]/u.test(t))}function lE(t){const e=[{},{}];return t?.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Bp(t,e,n,r){if(typeof e=="function"){const[o,u]=lE(r);e=e(n!==void 0?n:t.custom,o,u)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,u]=lE(r);e=e(n!==void 0?n:t.custom,o,u)}return e}const Vp=t=>Array.isArray(t),aN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),oN=t=>Vp(t)?t[t.length-1]||0:t,Pt=t=>!!(t&&t.getVelocity);function vc(t){const e=Pt(t)?t.get():t;return aN(e)?e.toValue():e}function lN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,o,u){const c={latestValues:uN(r,o,u,t),renderState:e()};return n&&(c.onMount=f=>n({props:r,current:f,...c}),c.onUpdate=f=>n(f)),c}const uE=t=>(e,n)=>{const r=Y.useContext(pc),o=Y.useContext(Bo),u=()=>lN(t,e,r,o);return n?u():Op(u)};function uN(t,e,n,r){const o={},u=r(t,{});for(const _ in u)o[_]=vc(u[_]);let{initial:c,animate:f}=t;const h=mc(t),g=iE(t);e&&g&&!h&&t.inherit!==!1&&(c===void 0&&(c=e.initial),f===void 0&&(f=e.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const v=m?f:c;if(v&&typeof v!="boolean"&&!gc(v)){const _=Array.isArray(v)?v:[v];for(let b=0;b<_.length;b++){const x=Bp(t,_[b]);if(x){const{transitionEnd:E,transition:M,...R}=x;for(const q in R){let F=R[q];if(Array.isArray(F)){const K=m?F.length-1:0;F=F[K]}F!==null&&(o[q]=F)}for(const q in E)o[q]=E[q]}}}return o}const Jr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xs=new Set(Jr),cE=t=>e=>typeof e=="string"&&e.startsWith(t),fE=cE("--"),cN=cE("var(--"),Ip=t=>cN(t)?fN.test(t.split("/*")[0].trim()):!1,fN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dE=(t,e)=>e&&typeof t=="number"?e.transform(t):t,_i=(t,e,n)=>n>e?e:n<t?t:n,Wr={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Io={...Wr,transform:t=>_i(0,1,t)},yc={...Wr,default:1},qo=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ts=qo("deg"),Wn=qo("%"),be=qo("px"),dN=qo("vh"),hN=qo("vw"),hE={...Wn,parse:t=>Wn.parse(t)/100,transform:t=>Wn.transform(t*100)},pN={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be},gN={rotate:ts,rotateX:ts,rotateY:ts,rotateZ:ts,scale:yc,scaleX:yc,scaleY:yc,scaleZ:yc,skew:ts,skewX:ts,skewY:ts,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Io,originX:hE,originY:hE,originZ:be},pE={...Wr,transform:Math.round},qp={...pN,...gN,zIndex:pE,size:be,fillOpacity:Io,strokeOpacity:Io,numOctaves:pE},mN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vN=Jr.length;function yN(t,e,n){let r="",o=!0;for(let u=0;u<vN;u++){const c=Jr[u],f=t[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||n){const g=dE(f,qp[c]);if(!h){o=!1;const m=mN[c]||c;r+=`${m}(${g}) `}n&&(e[c]=g)}}return r=r.trim(),n?r=n(e,o?"":r):o&&(r="none"),r}function Pp(t,e,n){const{style:r,vars:o,transformOrigin:u}=t;let c=!1,f=!1;for(const h in e){const g=e[h];if(Xs.has(h)){c=!0;continue}else if(fE(h)){o[h]=g;continue}else{const m=dE(g,qp[h]);h.startsWith("origin")?(f=!0,u[h]=m):r[h]=m}}if(e.transform||(c||n?r.transform=yN(e,t.transform,n):r.transform&&(r.transform="none")),f){const{originX:h="50%",originY:g="50%",originZ:m=0}=u;r.transformOrigin=`${h} ${g} ${m}`}}const _N={offset:"stroke-dashoffset",array:"stroke-dasharray"},bN={offset:"strokeDashoffset",array:"strokeDasharray"};function SN(t,e,n=1,r=0,o=!0){t.pathLength=1;const u=o?_N:bN;t[u.offset]=be.transform(-r);const c=be.transform(e),f=be.transform(n);t[u.array]=`${c} ${f}`}function gE(t,e,n){return typeof t=="string"?t:be.transform(e+n*t)}function EN(t,e,n){const r=gE(e,t.x,t.width),o=gE(n,t.y,t.height);return`${r} ${o}`}function Hp(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:u,pathLength:c,pathSpacing:f=1,pathOffset:h=0,...g},m,v){if(Pp(t,g,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:_,style:b,dimensions:x}=t;_.transform&&(x&&(b.transform=_.transform),delete _.transform),x&&(o!==void 0||u!==void 0||b.transform)&&(b.transformOrigin=EN(x,o!==void 0?o:.5,u!==void 0?u:.5)),e!==void 0&&(_.x=e),n!==void 0&&(_.y=n),r!==void 0&&(_.scale=r),c!==void 0&&SN(_,c,f,h,!1)}const Fp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),mE=()=>({...Fp(),attrs:{}}),$p=t=>typeof t=="string"&&t.toLowerCase()==="svg";function vE(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const u in n)t.style.setProperty(u,n[u])}const yE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _E(t,e,n,r){vE(t,e,void 0,r);for(const o in e.attrs)t.setAttribute(yE.has(o)?o:zp(o),e.attrs[o])}const _c={};function xN(t){Object.assign(_c,t)}function bE(t,{layout:e,layoutId:n}){return Xs.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!_c[t]||t==="opacity")}function Gp(t,e,n){var r;const{style:o}=t,u={};for(const c in o)(Pt(o[c])||e.style&&Pt(e.style[c])||bE(c,t)||((r=n?.getValue(c))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(u[c]=o[c]);return u}function SE(t,e,n){const r=Gp(t,e,n);for(const o in t)if(Pt(t[o])||Pt(e[o])){const u=Jr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[u]=t[o]}return r}function TN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const EE=["x","y","width","height","cx","cy","r"],wN={useVisualState:uE({scrapeMotionValuesFromProps:SE,createRenderState:mE,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:o})=>{if(!n)return;let u=!!t.drag;if(!u){for(const f in o)if(Xs.has(f)){u=!0;break}}if(!u)return;let c=!e;if(e)for(let f=0;f<EE.length;f++){const h=EE[f];t[h]!==e[h]&&(c=!0)}c&&nt.read(()=>{TN(n,r),nt.render(()=>{Hp(r,o,$p(n.tagName),t.transformTemplate),_E(n,r)})})}})},AN={useVisualState:uE({scrapeMotionValuesFromProps:Gp,createRenderState:Fp})};function xE(t,e,n){for(const r in e)!Pt(e[r])&&!bE(r,n)&&(t[r]=e[r])}function CN({transformTemplate:t},e){return Y.useMemo(()=>{const n=Fp();return Pp(n,e,t),Object.assign({},n.vars,n.style)},[e])}function MN(t,e){const n=t.style||{},r={};return xE(r,n,t),Object.assign(r,CN(t,e)),r}function ON(t,e){const n={},r=MN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function RN(t,e,n,r){const o=Y.useMemo(()=>{const u=mE();return Hp(u,e,$p(r),t.transformTemplate),{...u.attrs,style:{...u.style}}},[e]);if(t.style){const u={};xE(u,t.style,t),o.style={...u,...o.style}}return o}function DN(t=!1){return(n,r,o,{latestValues:u},c)=>{const h=(Up(n)?RN:ON)(r,u,c,n),g=YL(r,typeof n=="string",t),m=n!==Y.Fragment?{...g,...h,ref:o}:{},{children:v}=r,_=Y.useMemo(()=>Pt(v)?v.get():v,[v]);return Y.createElement(n,{...m,children:_})}}function kN(t,e){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const c={...Up(r)?wN:AN,preloadedFeatures:t,useRender:DN(o),createVisualElement:e,Component:r};return tN(c)}}function TE(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function bc(t,e,n){const r=t.getProps();return Bp(r,e,n!==void 0?n:r.custom,t)}function Yp(t,e){return t?t[e]||t.default||t:void 0}const wE=new Set(["width","height","top","left","right","bottom",...Jr]);let Sc;function LN(){Sc=void 0}const ei={now:()=>(Sc===void 0&&ei.set(Nt.isProcessing||qL.useManualTiming?Nt.timestamp:performance.now()),Sc),set:t=>{Sc=t,queueMicrotask(LN)}};function Xp(t,e){t.indexOf(e)===-1&&t.push(e)}function Kp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zp{constructor(){this.subscriptions=[]}add(e){return Xp(this.subscriptions,e),()=>Kp(this.subscriptions,e)}notify(e,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,r);else for(let u=0;u<o;u++){const c=this.subscriptions[u];c&&c(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function AE(t,e){return e?t*(1e3/e):0}const CE=30,NN=t=>!isNaN(parseFloat(t));class zN{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const u=ei.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ei.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=NN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Zp);const r=this.events[e].add(n);return e==="change"?()=>{r(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>CE)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,CE);return AE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Po(t,e){return new zN(t,e)}function jN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Po(n))}function UN(t,e){const n=bc(t,e);let{transitionEnd:r={},transition:o={},...u}=n||{};u={...u,...r};for(const c in u){const f=oN(u[c]);jN(t,c,f)}}function BN(t){return!!(Pt(t)&&t.add)}function Qp(t,e){const n=t.getValue("willChange");if(BN(n))return n.add(e)}function ME(t){return t.props[rE]}function Jp(t){let e;return()=>(e===void 0&&(e=t()),e)}const VN=Jp(()=>window.ScrollTimeline!==void 0);class IN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(o=>{if(VN()&&o.attachTimeline)return o.attachTimeline(e);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,u)=>{o&&o(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qN extends IN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const bi=t=>t*1e3,Si=t=>t/1e3;function Wp(t){return typeof t=="function"}function OE(t,e){t.timeline=e,t.onfinish=null}const eg=t=>Array.isArray(t)&&typeof t[0]=="number",PN={linearEasing:void 0};function HN(t,e){const n=Jp(t);return()=>{var r;return(r=PN[e])!==null&&r!==void 0?r:n()}}const Ec=HN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ea=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},RE=(t,e,n=10)=>{let r="";const o=Math.max(Math.round(e/n),2);for(let u=0;u<o;u++)r+=t(ea(0,o-1,u))+", ";return`linear(${r.substring(0,r.length-2)})`};function DE(t){return!!(typeof t=="function"&&Ec()||!t||typeof t=="string"&&(t in tg||Ec())||eg(t)||Array.isArray(t)&&t.every(DE))}const Ho=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,tg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ho([0,.65,.55,1]),circOut:Ho([.55,0,1,.45]),backIn:Ho([.31,.01,.66,-.59]),backOut:Ho([.33,1.53,.69,.99])};function kE(t,e){if(t)return typeof t=="function"&&Ec()?RE(t,e):eg(t)?Ho(t):Array.isArray(t)?t.map(n=>kE(n,e)||tg.easeOut):tg[t]}const LE=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,FN=1e-7,$N=12;function GN(t,e,n,r,o){let u,c,f=0;do c=e+(n-e)/2,u=LE(c,r,o)-t,u>0?n=c:e=c;while(Math.abs(u)>FN&&++f<$N);return c}function Fo(t,e,n,r){if(t===e&&n===r)return dn;const o=u=>GN(u,0,1,t,n);return u=>u===0||u===1?u:LE(o(u),e,r)}const NE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,zE=t=>e=>1-t(1-e),jE=Fo(.33,1.53,.69,.99),ng=zE(jE),UE=NE(ng),BE=t=>(t*=2)<1?.5*ng(t):.5*(2-Math.pow(2,-10*(t-1))),ig=t=>1-Math.sin(Math.acos(t)),VE=zE(ig),IE=NE(ig),qE=t=>/^0[^.\s]+$/u.test(t);function YN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qE(t):!0}const $o=t=>Math.round(t*1e5)/1e5,sg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XN(t){return t==null}const KN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rg=(t,e)=>n=>!!(typeof n=="string"&&KN.test(n)&&n.startsWith(t)||e&&!XN(n)&&Object.prototype.hasOwnProperty.call(n,e)),PE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[o,u,c,f]=r.match(sg);return{[t]:parseFloat(o),[e]:parseFloat(u),[n]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},ZN=t=>_i(0,255,t),ag={...Wr,transform:t=>Math.round(ZN(t))},Ks={test:rg("rgb","red"),parse:PE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+ag.transform(t)+", "+ag.transform(e)+", "+ag.transform(n)+", "+$o(Io.transform(r))+")"};function QN(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const og={test:rg("#"),parse:QN,transform:Ks.transform},ta={test:rg("hsl","hue"),parse:PE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Wn.transform($o(e))+", "+Wn.transform($o(n))+", "+$o(Io.transform(r))+")"},Ht={test:t=>Ks.test(t)||og.test(t)||ta.test(t),parse:t=>Ks.test(t)?Ks.parse(t):ta.test(t)?ta.parse(t):og.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ks.transform(t):ta.transform(t)},JN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(sg))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(JN))===null||n===void 0?void 0:n.length)||0)>0}const HE="number",FE="color",ez="var",tz="var(",$E="${}",nz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Go(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},o=[];let u=0;const f=e.replace(nz,h=>(Ht.test(h)?(r.color.push(u),o.push(FE),n.push(Ht.parse(h))):h.startsWith(tz)?(r.var.push(u),o.push(ez),n.push(h)):(r.number.push(u),o.push(HE),n.push(parseFloat(h))),++u,$E)).split($E);return{values:n,split:f,indexes:r,types:o}}function GE(t){return Go(t).values}function YE(t){const{split:e,types:n}=Go(t),r=e.length;return o=>{let u="";for(let c=0;c<r;c++)if(u+=e[c],o[c]!==void 0){const f=n[c];f===HE?u+=$o(o[c]):f===FE?u+=Ht.transform(o[c]):u+=o[c]}return u}}const iz=t=>typeof t=="number"?0:t;function sz(t){const e=GE(t);return YE(t)(e.map(iz))}const ns={test:WN,parse:GE,createTransformer:YE,getAnimatableNone:sz},rz=new Set(["brightness","contrast","saturate","opacity"]);function az(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(sg)||[];if(!r)return t;const o=n.replace(r,"");let u=rz.has(e)?1:0;return r!==n&&(u*=100),e+"("+u+o+")"}const oz=/\b([a-z-]*)\(.*?\)/gu,lg={...ns,getAnimatableNone:t=>{const e=t.match(oz);return e?e.map(az).join(" "):t}},lz={...qp,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:lg,WebkitFilter:lg},ug=t=>lz[t];function XE(t,e){let n=ug(t);return n!==lg&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const uz=new Set(["auto","none","0"]);function cz(t,e,n){let r=0,o;for(;r<t.length&&!o;){const u=t[r];typeof u=="string"&&!uz.has(u)&&Go(u).values.length&&(o=t[r]),r++}if(o&&n)for(const u of e)t[u]=XE(n,o)}const KE=t=>t===Wr||t===be,ZE=(t,e)=>parseFloat(t.split(", ")[e]),QE=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ZE(o[1],e);{const u=r.match(/^matrix\((.+)\)$/u);return u?ZE(u[1],t):0}},fz=new Set(["x","y","z"]),dz=Jr.filter(t=>!fz.has(t));function hz(t){const e=[];return dz.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const na={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:QE(4,13),y:QE(5,14)};na.translateX=na.x,na.translateY=na.y;const Zs=new Set;let cg=!1,fg=!1;function JE(){if(fg){const t=Array.from(Zs).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const o=hz(r);o.length&&(n.set(r,o),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([u,c])=>{var f;(f=r.getValue(u))===null||f===void 0||f.set(c)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}fg=!1,cg=!1,Zs.forEach(t=>t.complete()),Zs.clear()}function WE(){Zs.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fg=!0)})}function pz(){WE(),JE()}class dg{constructor(e,n,r,o,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=o,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zs.add(this),cg||(cg=!0,nt.read(WE),nt.resolveKeyframes(JE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:o}=this;for(let u=0;u<e.length;u++)if(e[u]===null)if(u===0){const c=o?.get(),f=e[e.length-1];if(c!==void 0)e[0]=c;else if(r&&n){const h=r.readValue(n,f);h!=null&&(e[0]=h)}e[0]===void 0&&(e[0]=f),o&&c===void 0&&o.set(e[0])}else e[u]=e[u-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const e1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),gz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mz(t){const e=gz.exec(t);if(!e)return[,];const[,n,r,o]=e;return[`--${n??r}`,o]}function t1(t,e,n=1){const[r,o]=mz(t);if(!r)return;const u=window.getComputedStyle(e).getPropertyValue(r);if(u){const c=u.trim();return e1(c)?parseFloat(c):c}return Ip(o)?t1(o,e,n+1):o}const n1=t=>e=>e.test(t),i1=[Wr,be,Wn,ts,hN,dN,{test:t=>t==="auto",parse:t=>t}],s1=t=>i1.find(n1(t));class r1 extends dg{constructor(e,n,r,o,u){super(e,n,r,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<e.length;h++){let g=e[h];if(typeof g=="string"&&(g=g.trim(),Ip(g))){const m=t1(g,n.current);m!==void 0&&(e[h]=m),h===e.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!wE.has(r)||e.length!==2)return;const[o,u]=e,c=s1(o),f=s1(u);if(c!==f)if(KE(c)&&KE(f))for(let h=0;h<e.length;h++){const g=e[h];typeof g=="string"&&(e[h]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let o=0;o<e.length;o++)YN(e[o])&&r.push(o);r.length&&cz(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=na[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&e.getValue(r,o).jump(o,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const u=n.getValue(r);u&&u.jump(this.measuredOrigin,!1);const c=o.length-1,f=o[c];o[c]=na[r](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([h,g])=>{n.getValue(h).set(g)}),this.resolveNoneKeyframes()}}const a1=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ns.test(t)||t==="0")&&!t.startsWith("url("));function vz(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function yz(t,e,n,r){const o=t[0];if(o===null)return!1;if(e==="display"||e==="visibility")return!0;const u=t[t.length-1],c=a1(o,e),f=a1(u,e);return!c||!f?!1:vz(t)||(n==="spring"||Wp(n))&&r}const _z=t=>t!==null;function xc(t,{repeat:e,repeatType:n="loop"},r){const o=t.filter(_z),u=e&&n!=="loop"&&e%2===1?0:o.length-1;return!u||r===void 0?o[u]:r}const bz=40;class o1{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ei.now(),this.options={autoplay:e,delay:n,type:r,repeat:o,repeatDelay:u,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>bz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pz(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ei.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:u,delay:c,onComplete:f,onUpdate:h,isGenerator:g}=this.options;if(!g&&!yz(e,r,o,u))if(c)this.options.duration=0;else{h&&h(xc(e,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const m=this.initPlayback(e,n);m!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const hg=2e4;function l1(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<hg;)e+=n,r=t.next(e);return e>=hg?1/0:e}const ft=(t,e,n)=>t+(e-t)*n;function pg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Sz({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let o=0,u=0,c=0;if(!e)o=u=c=n;else{const f=n<.5?n*(1+e):n+e-n*e,h=2*n-f;o=pg(h,f,t+1/3),u=pg(h,f,t),c=pg(h,f,t-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:r}}function Tc(t,e){return n=>n>0?e:t}const gg=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Ez=[og,Ks,ta],xz=t=>Ez.find(e=>e.test(t));function u1(t){const e=xz(t);if(!e)return!1;let n=e.parse(t);return e===ta&&(n=Sz(n)),n}const c1=(t,e)=>{const n=u1(t),r=u1(e);if(!n||!r)return Tc(t,e);const o={...n};return u=>(o.red=gg(n.red,r.red,u),o.green=gg(n.green,r.green,u),o.blue=gg(n.blue,r.blue,u),o.alpha=ft(n.alpha,r.alpha,u),Ks.transform(o))},Tz=(t,e)=>n=>e(t(n)),Yo=(...t)=>t.reduce(Tz),mg=new Set(["none","hidden"]);function wz(t,e){return mg.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Az(t,e){return n=>ft(t,e,n)}function vg(t){return typeof t=="number"?Az:typeof t=="string"?Ip(t)?Tc:Ht.test(t)?c1:Oz:Array.isArray(t)?f1:typeof t=="object"?Ht.test(t)?c1:Cz:Tc}function f1(t,e){const n=[...t],r=n.length,o=t.map((u,c)=>vg(u)(u,e[c]));return u=>{for(let c=0;c<r;c++)n[c]=o[c](u);return n}}function Cz(t,e){const n={...t,...e},r={};for(const o in n)t[o]!==void 0&&e[o]!==void 0&&(r[o]=vg(t[o])(t[o],e[o]));return o=>{for(const u in r)n[u]=r[u](o);return n}}function Mz(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let u=0;u<e.values.length;u++){const c=e.types[u],f=t.indexes[c][o[c]],h=(n=t.values[f])!==null&&n!==void 0?n:0;r[u]=h,o[c]++}return r}const Oz=(t,e)=>{const n=ns.createTransformer(e),r=Go(t),o=Go(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mg.has(t)&&!o.values.length||mg.has(e)&&!r.values.length?wz(t,e):Yo(f1(Mz(r,o),o.values),n):Tc(t,e)};function d1(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ft(t,e,n):vg(t)(t,e)}const Rz=5;function h1(t,e,n){const r=Math.max(e-Rz,0);return AE(n-t(r),e-r)}const ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yg=.001;function Dz({duration:t=ht.duration,bounce:e=ht.bounce,velocity:n=ht.velocity,mass:r=ht.mass}){let o,u,c=1-e;c=_i(ht.minDamping,ht.maxDamping,c),t=_i(ht.minDuration,ht.maxDuration,Si(t)),c<1?(o=g=>{const m=g*c,v=m*t,_=m-n,b=_g(g,c),x=Math.exp(-v);return yg-_/b*x},u=g=>{const v=g*c*t,_=v*n+n,b=Math.pow(c,2)*Math.pow(g,2)*t,x=Math.exp(-v),E=_g(Math.pow(g,2),c);return(-o(g)+yg>0?-1:1)*((_-b)*x)/E}):(o=g=>{const m=Math.exp(-g*t),v=(g-n)*t+1;return-yg+m*v},u=g=>{const m=Math.exp(-g*t),v=(n-g)*(t*t);return m*v});const f=5/t,h=Lz(o,u,f);if(t=bi(t),isNaN(h))return{stiffness:ht.stiffness,damping:ht.damping,duration:t};{const g=Math.pow(h,2)*r;return{stiffness:g,damping:c*2*Math.sqrt(r*g),duration:t}}}const kz=12;function Lz(t,e,n){let r=n;for(let o=1;o<kz;o++)r=r-t(r)/e(r);return r}function _g(t,e){return t*Math.sqrt(1-e*e)}const Nz=["duration","bounce"],zz=["stiffness","damping","mass"];function p1(t,e){return e.some(n=>t[n]!==void 0)}function jz(t){let e={velocity:ht.velocity,stiffness:ht.stiffness,damping:ht.damping,mass:ht.mass,isResolvedFromDuration:!1,...t};if(!p1(t,zz)&&p1(t,Nz))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,u=2*_i(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:ht.mass,stiffness:o,damping:u}}else{const n=Dz(t);e={...e,...n,mass:ht.mass},e.isResolvedFromDuration=!0}return e}function g1(t=ht.visualDuration,e=ht.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:o}=n;const u=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:g,mass:m,duration:v,velocity:_,isResolvedFromDuration:b}=jz({...n,velocity:-Si(n.velocity||0)}),x=_||0,E=g/(2*Math.sqrt(h*m)),M=c-u,R=Si(Math.sqrt(h/m)),q=Math.abs(M)<5;r||(r=q?ht.restSpeed.granular:ht.restSpeed.default),o||(o=q?ht.restDelta.granular:ht.restDelta.default);let F;if(E<1){const U=_g(R,E);F=Q=>{const P=Math.exp(-E*R*Q);return c-P*((x+E*R*M)/U*Math.sin(U*Q)+M*Math.cos(U*Q))}}else if(E===1)F=U=>c-Math.exp(-R*U)*(M+(x+R*M)*U);else{const U=R*Math.sqrt(E*E-1);F=Q=>{const P=Math.exp(-E*R*Q),I=Math.min(U*Q,300);return c-P*((x+E*R*M)*Math.sinh(I)+U*M*Math.cosh(I))/U}}const K={calculatedDuration:b&&v||null,next:U=>{const Q=F(U);if(b)f.done=U>=v;else{let P=0;E<1&&(P=U===0?bi(x):h1(F,U,Q));const I=Math.abs(P)<=r,$=Math.abs(c-Q)<=o;f.done=I&&$}return f.value=f.done?c:Q,f},toString:()=>{const U=Math.min(l1(K),hg),Q=RE(P=>K.next(U*P).value,U,30);return U+"ms "+Q}};return K}function m1({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:g=.5,restSpeed:m}){const v=t[0],_={done:!1,value:v},b=I=>f!==void 0&&I<f||h!==void 0&&I>h,x=I=>f===void 0?h:h===void 0||Math.abs(f-I)<Math.abs(h-I)?f:h;let E=n*e;const M=v+E,R=c===void 0?M:c(M);R!==M&&(E=R-v);const q=I=>-E*Math.exp(-I/r),F=I=>R+q(I),K=I=>{const $=q(I),ee=F(I);_.done=Math.abs($)<=g,_.value=_.done?R:ee};let U,Q;const P=I=>{b(_.value)&&(U=I,Q=g1({keyframes:[_.value,x(_.value)],velocity:h1(F,I,_.value),damping:o,stiffness:u,restDelta:g,restSpeed:m}))};return P(0),{calculatedDuration:null,next:I=>{let $=!1;return!Q&&U===void 0&&($=!0,K(I),P(I)),U!==void 0&&I>=U?Q.next(I-U):(!$&&K(I),_)}}}const Uz=Fo(.42,0,1,1),Bz=Fo(0,0,.58,1),v1=Fo(.42,0,.58,1),Vz=t=>Array.isArray(t)&&typeof t[0]!="number",Iz={linear:dn,easeIn:Uz,easeInOut:v1,easeOut:Bz,circIn:ig,circInOut:IE,circOut:VE,backIn:ng,backInOut:UE,backOut:jE,anticipate:BE},y1=t=>{if(eg(t)){JS(t.length===4);const[e,n,r,o]=t;return Fo(e,n,r,o)}else if(typeof t=="string")return Iz[t];return t};function qz(t,e,n){const r=[],o=n||d1,u=t.length-1;for(let c=0;c<u;c++){let f=o(t[c],t[c+1]);if(e){const h=Array.isArray(e)?e[c]||dn:e;f=Yo(h,f)}r.push(f)}return r}function Pz(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const u=t.length;if(JS(u===e.length),u===1)return()=>e[0];if(u===2&&e[0]===e[1])return()=>e[1];const c=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());const f=qz(e,r,o),h=f.length,g=m=>{if(c&&m<t[0])return e[0];let v=0;if(h>1)for(;v<t.length-2&&!(m<t[v+1]);v++);const _=ea(t[v],t[v+1],m);return f[v](_)};return n?m=>g(_i(t[0],t[u-1],m)):g}function Hz(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=ea(0,e,r);t.push(ft(n,1,o))}}function Fz(t){const e=[0];return Hz(e,t.length-1),e}function $z(t,e){return t.map(n=>n*e)}function Gz(t,e){return t.map(()=>e||v1).splice(0,t.length-1)}function wc({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Vz(r)?r.map(y1):y1(r),u={done:!1,value:e[0]},c=$z(n&&n.length===e.length?n:Fz(e),t),f=Pz(c,e,{ease:Array.isArray(o)?o:Gz(e,o)});return{calculatedDuration:t,next:h=>(u.value=f(h),u.done=h>=t,u)}}const Yz=t=>{const e=({timestamp:n})=>t(n);return{start:()=>nt.update(e,!0),stop:()=>es(e),now:()=>Nt.isProcessing?Nt.timestamp:ei.now()}},Xz={decay:m1,inertia:m1,tween:wc,keyframes:wc,spring:g1},Kz=t=>t/100;class bg extends o1{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:r,element:o,keyframes:u}=this.options,c=o?.KeyframeResolver||dg,f=(h,g)=>this.onKeyframesResolved(h,g);this.resolver=new c(u,f,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=this.options,f=Wp(n)?n:Xz[n]||wc;let h,g;f!==wc&&typeof e[0]!="number"&&(h=Yo(Kz,d1(e[0],e[1])),e=[0,100]);const m=f({...this.options,keyframes:e});u==="mirror"&&(g=f({...this.options,keyframes:[...e].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=l1(m));const{calculatedDuration:v}=m,_=v+o,b=_*(r+1)-o;return{generator:m,mirroredGenerator:g,mapPercentToKeyframes:h,calculatedDuration:v,resolvedDuration:_,totalDuration:b}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:I}=this.options;return{done:!0,value:I[I.length-1]}}const{finalKeyframe:o,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:g,totalDuration:m,resolvedDuration:v}=r;if(this.startTime===null)return u.next(0);const{delay:_,repeat:b,repeatType:x,repeatDelay:E,onUpdate:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-m/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-_*(this.speed>=0?1:-1),q=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let F=this.currentTime,K=u;if(b){const I=Math.min(this.currentTime,m)/v;let $=Math.floor(I),ee=I%1;!ee&&I>=1&&(ee=1),ee===1&&$--,$=Math.min($,b+1),$%2&&(x==="reverse"?(ee=1-ee,E&&(ee-=E/v)):x==="mirror"&&(K=c)),F=_i(0,1,ee)*v}const U=q?{done:!1,value:h[0]}:K.next(F);f&&(U.value=f(U.value));let{done:Q}=U;!q&&g!==null&&(Q=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return P&&o!==void 0&&(U.value=xc(h,this.options,o)),M&&M(U.value),P&&this.finish(),U}get duration(){const{resolved:e}=this;return e?Si(e.calculatedDuration):0}get time(){return Si(this.currentTime)}set time(e){e=bi(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Si(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Yz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Zz=new Set(["opacity","clipPath","filter","transform"]);function Qz(t,e,n,{delay:r=0,duration:o=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:h}={}){const g={[e]:n};h&&(g.offset=h);const m=kE(f,o);return Array.isArray(m)&&(g.easing=m),t.animate(g,{delay:r,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}const Jz=Jp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ac=10,Wz=2e4;function e4(t){return Wp(t.type)||t.type==="spring"||!DE(t.ease)}function t4(t,e){const n=new bg({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const o=[];let u=0;for(;!r.done&&u<Wz;)r=n.sample(u),o.push(r.value),u+=Ac;return{times:void 0,keyframes:o,duration:u-Ac,ease:"linear"}}const _1={anticipate:BE,backInOut:UE,circInOut:IE};function n4(t){return t in _1}class b1 extends o1{constructor(e){super(e);const{name:n,motionValue:r,element:o,keyframes:u}=this.options;this.resolver=new r1(u,(c,f)=>this.onKeyframesResolved(c,f),n,r,o),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:o,ease:u,type:c,motionValue:f,name:h,startTime:g}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof u=="string"&&Ec()&&n4(u)&&(u=_1[u]),e4(this.options)){const{onComplete:v,onUpdate:_,motionValue:b,element:x,...E}=this.options,M=t4(e,E);e=M.keyframes,e.length===1&&(e[1]=e[0]),r=M.duration,o=M.times,u=M.ease,c="keyframes"}const m=Qz(f.owner.current,h,e,{...this.options,duration:r,times:o,ease:u});return m.startTime=g??this.calcStartTime(),this.pendingTimeline?(OE(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:v}=this.options;f.set(xc(e,this.options,n)),v&&v(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:o,type:c,ease:u,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Si(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Si(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=bi(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return dn;const{animation:r}=n;OE(r,e)}return dn}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:o,type:u,ease:c,times:f}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:m,onComplete:v,element:_,...b}=this.options,x=new bg({...b,keyframes:r,duration:o,type:u,ease:c,times:f,isGenerator:!0}),E=bi(this.time);g.setWithVelocity(x.sample(E-Ac).value,x.sample(E).value,Ac)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:o,repeatType:u,damping:c,type:f}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:g}=n.owner.getProps();return Jz()&&r&&Zz.has(r)&&!h&&!g&&!o&&u!=="mirror"&&c!==0&&f!=="inertia"}}const i4={type:"spring",stiffness:500,damping:25,restSpeed:10},s4=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),r4={type:"keyframes",duration:.8},a4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o4=(t,{keyframes:e})=>e.length>2?r4:Xs.has(t)?t.startsWith("scale")?s4(e[1]):i4:a4;function l4({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:g,...m}){return!!Object.keys(m).length}const Sg=(t,e,n,r={},o,u)=>c=>{const f=Yp(r,t)||{},h=f.delay||r.delay||0;let{elapsed:g=0}=r;g=g-bi(h);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-g,onUpdate:_=>{e.set(_),f.onUpdate&&f.onUpdate(_)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:u?void 0:o};l4(f)||(m={...m,...o4(t,m)}),m.duration&&(m.duration=bi(m.duration)),m.repeatDelay&&(m.repeatDelay=bi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let v=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(v=!0)),v&&!u&&e.get()!==void 0){const _=xc(m.keyframes,f);if(_!==void 0)return nt.update(()=>{m.onUpdate(_),m.onComplete()}),new qN([])}return!u&&b1.supports(m)?new b1(m):new bg(m)};function u4({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function S1(t,e,{delay:n=0,transitionOverride:r,type:o}={}){var u;let{transition:c=t.getDefaultTransition(),transitionEnd:f,...h}=e;r&&(c=r);const g=[],m=o&&t.animationState&&t.animationState.getState()[o];for(const v in h){const _=t.getValue(v,(u=t.latestValues[v])!==null&&u!==void 0?u:null),b=h[v];if(b===void 0||m&&u4(m,v))continue;const x={delay:n,...Yp(c||{},v)};let E=!1;if(window.MotionHandoffAnimation){const R=ME(t);if(R){const q=window.MotionHandoffAnimation(R,v,nt);q!==null&&(x.startTime=q,E=!0)}}Qp(t,v),_.start(Sg(v,_,b,t.shouldReduceMotion&&wE.has(v)?{type:!1}:x,t,E));const M=_.animation;M&&g.push(M)}return f&&Promise.all(g).then(()=>{nt.update(()=>{f&&UN(t,f)})}),g}function Eg(t,e,n={}){var r;const o=bc(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:u=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(u=n.transitionOverride);const c=o?()=>Promise.all(S1(t,o,n)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:_}=u;return c4(t,e,m+g,v,_,n)}:()=>Promise.resolve(),{when:h}=u;if(h){const[g,m]=h==="beforeChildren"?[c,f]:[f,c];return g().then(()=>m())}else return Promise.all([c(),f(n.delay)])}function c4(t,e,n=0,r=0,o=1,u){const c=[],f=(t.variantChildren.size-1)*r,h=o===1?(g=0)=>g*r:(g=0)=>f-g*r;return Array.from(t.variantChildren).sort(f4).forEach((g,m)=>{g.notify("AnimationStart",e),c.push(Eg(g,e,{...u,delay:n+h(m)}).then(()=>g.notify("AnimationComplete",e)))}),Promise.all(c)}function f4(t,e){return t.sortNodePosition(e)}function d4(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const o=e.map(u=>Eg(t,u,n));r=Promise.all(o)}else if(typeof e=="string")r=Eg(t,e,n);else{const o=typeof e=="function"?bc(t,e,n.custom):e;r=Promise.all(S1(t,o,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const h4=Np.length;function E1(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?E1(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<h4;n++){const r=Np[n],o=t.props[r];(Vo(o)||o===!1)&&(e[r]=o)}return e}const p4=[...Lp].reverse(),g4=Lp.length;function m4(t){return e=>Promise.all(e.map(({animation:n,options:r})=>d4(t,n,r)))}function v4(t){let e=m4(t),n=x1(),r=!0;const o=h=>(g,m)=>{var v;const _=bc(t,m,h==="exit"?(v=t.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if(_){const{transition:b,transitionEnd:x,...E}=_;g={...g,...E,...x}}return g};function u(h){e=h(t)}function c(h){const{props:g}=t,m=E1(t.parent)||{},v=[],_=new Set;let b={},x=1/0;for(let M=0;M<g4;M++){const R=p4[M],q=n[R],F=g[R]!==void 0?g[R]:m[R],K=Vo(F),U=R===h?q.isActive:null;U===!1&&(x=M);let Q=F===m[R]&&F!==g[R]&&K;if(Q&&r&&t.manuallyAnimateOnMount&&(Q=!1),q.protectedKeys={...b},!q.isActive&&U===null||!F&&!q.prevProp||gc(F)||typeof F=="boolean")continue;const P=y4(q.prevProp,F);let I=P||R===h&&q.isActive&&!Q&&K||M>x&&K,$=!1;const ee=Array.isArray(F)?F:[F];let le=ee.reduce(o(R),{});U===!1&&(le={});const{prevResolvedValues:ie={}}=q,he={...ie,...le},ye=N=>{I=!0,_.has(N)&&($=!0,_.delete(N)),q.needsAnimating[N]=!0;const J=t.getValue(N);J&&(J.liveStyle=!1)};for(const N in he){const J=le[N],te=ie[N];if(b.hasOwnProperty(N))continue;let ue=!1;Vp(J)&&Vp(te)?ue=!TE(J,te):ue=J!==te,ue?J!=null?ye(N):_.add(N):J!==void 0&&_.has(N)?ye(N):q.protectedKeys[N]=!0}q.prevProp=F,q.prevResolvedValues=le,q.isActive&&(b={...b,...le}),r&&t.blockInitialAnimation&&(I=!1),I&&(!(Q&&P)||$)&&v.push(...ee.map(N=>({animation:N,options:{type:R}})))}if(_.size){const M={};_.forEach(R=>{const q=t.getBaseTarget(R),F=t.getValue(R);F&&(F.liveStyle=!0),M[R]=q??null}),v.push({animation:M})}let E=!!v.length;return r&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(v):Promise.resolve()}function f(h,g){var m;if(n[h].isActive===g)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(_=>{var b;return(b=_.animationState)===null||b===void 0?void 0:b.setActive(h,g)}),n[h].isActive=g;const v=c(h);for(const _ in n)n[_].protectedKeys={};return v}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>n,reset:()=>{n=x1(),r=!0}}}function y4(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!TE(e,t):!1}function Qs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x1(){return{animate:Qs(!0),whileInView:Qs(),whileHover:Qs(),whileTap:Qs(),whileDrag:Qs(),whileFocus:Qs(),exit:Qs()}}class is{constructor(e){this.isMounted=!1,this.node=e}update(){}}class _4 extends is{constructor(e){super(e),e.animationState||(e.animationState=v4(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let b4=0;class S4 extends is{constructor(){super(...arguments),this.id=b4++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const E4={animation:{Feature:_4},exit:{Feature:S4}},Fn={x:!1,y:!1};function T1(){return Fn.x||Fn.y}function x4(t){return t==="x"||t==="y"?Fn[t]?null:(Fn[t]=!0,()=>{Fn[t]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}const xg=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Xo(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Ko(t){return{point:{x:t.pageX,y:t.pageY}}}const T4=t=>e=>xg(e)&&t(e,Ko(e));function Zo(t,e,n,r){return Xo(t,e,T4(n),r)}const w1=(t,e)=>Math.abs(t-e);function w4(t,e){const n=w1(t.x,e.x),r=w1(t.y,e.y);return Math.sqrt(n**2+r**2)}class A1{constructor(e,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=wg(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,b=w4(v.offset,{x:0,y:0})>=3;if(!_&&!b)return;const{point:x}=v,{timestamp:E}=Nt;this.history.push({...x,timestamp:E});const{onStart:M,onMove:R}=this.handlers;_||(M&&M(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,v)},this.handlePointerMove=(v,_)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Tg(_,this.transformPagePoint),nt.update(this.updatePoint,!0)},this.handlePointerUp=(v,_)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=wg(v.type==="pointercancel"?this.lastMoveEventInfo:Tg(_,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,M),x&&x(v,M)},!xg(e))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const c=Ko(e),f=Tg(c,this.transformPagePoint),{point:h}=f,{timestamp:g}=Nt;this.history=[{...h,timestamp:g}];const{onSessionStart:m}=n;m&&m(e,wg(f,this.history)),this.removeListeners=Yo(Zo(this.contextWindow,"pointermove",this.handlePointerMove),Zo(this.contextWindow,"pointerup",this.handlePointerUp),Zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),es(this.updatePoint)}}function Tg(t,e){return e?{point:e(t.point)}:t}function C1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function wg({point:t},e){return{point:t,delta:C1(t,M1(e)),offset:C1(t,A4(e)),velocity:C4(e,.1)}}function A4(t){return t[0]}function M1(t){return t[t.length-1]}function C4(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=M1(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>bi(e)));)n--;if(!r)return{x:0,y:0};const u=Si(o.timestamp-r.timestamp);if(u===0)return{x:0,y:0};const c={x:(o.x-r.x)/u,y:(o.y-r.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}const O1=1e-4,M4=1-O1,O4=1+O1,R1=.01,R4=0-R1,D4=0+R1;function hn(t){return t.max-t.min}function k4(t,e,n){return Math.abs(t-e)<=n}function D1(t,e,n,r=.5){t.origin=r,t.originPoint=ft(e.min,e.max,t.origin),t.scale=hn(n)/hn(e),t.translate=ft(n.min,n.max,t.origin)-t.originPoint,(t.scale>=M4&&t.scale<=O4||isNaN(t.scale))&&(t.scale=1),(t.translate>=R4&&t.translate<=D4||isNaN(t.translate))&&(t.translate=0)}function Qo(t,e,n,r){D1(t.x,e.x,n.x,r?r.originX:void 0),D1(t.y,e.y,n.y,r?r.originY:void 0)}function k1(t,e,n){t.min=n.min+e.min,t.max=t.min+hn(e)}function L4(t,e,n){k1(t.x,e.x,n.x),k1(t.y,e.y,n.y)}function L1(t,e,n){t.min=e.min-n.min,t.max=t.min+hn(e)}function Jo(t,e,n){L1(t.x,e.x,n.x),L1(t.y,e.y,n.y)}function N4(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?ft(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?ft(n,t,r.max):Math.min(t,n)),t}function N1(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function z4(t,{top:e,left:n,bottom:r,right:o}){return{x:N1(t.x,n,o),y:N1(t.y,e,r)}}function z1(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function j4(t,e){return{x:z1(t.x,e.x),y:z1(t.y,e.y)}}function U4(t,e){let n=.5;const r=hn(t),o=hn(e);return o>r?n=ea(e.min,e.max-r,t.min):r>o&&(n=ea(t.min,t.max-o,e.min)),_i(0,1,n)}function B4(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ag=.35;function V4(t=Ag){return t===!1?t=0:t===!0&&(t=Ag),{x:j1(t,"left","right"),y:j1(t,"top","bottom")}}function j1(t,e,n){return{min:U1(t,e),max:U1(t,n)}}function U1(t,e){return typeof t=="number"?t:t[e]||0}const B1=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:B1(),y:B1()}),V1=()=>({min:0,max:0}),mt=()=>({x:V1(),y:V1()});function Mn(t){return[t("x"),t("y")]}function I1({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function I4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function q4(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Cg(t){return t===void 0||t===1}function Mg({scale:t,scaleX:e,scaleY:n}){return!Cg(t)||!Cg(e)||!Cg(n)}function Js(t){return Mg(t)||q1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function q1(t){return P1(t.x)||P1(t.y)}function P1(t){return t&&t!=="0%"}function Cc(t,e,n){const r=t-n,o=e*r;return n+o}function H1(t,e,n,r,o){return o!==void 0&&(t=Cc(t,o,r)),Cc(t,n,r)+e}function Og(t,e=0,n=1,r,o){t.min=H1(t.min,e,n,r,o),t.max=H1(t.max,e,n,r,o)}function F1(t,{x:e,y:n}){Og(t.x,e.translate,e.scale,e.originPoint),Og(t.y,n.translate,n.scale,n.originPoint)}const $1=.999999999999,G1=1.0000000000001;function P4(t,e,n,r=!1){const o=n.length;if(!o)return;e.x=e.y=1;let u,c;for(let f=0;f<o;f++){u=n[f],c=u.projectionDelta;const{visualElement:h}=u.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ra(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,F1(t,c)),r&&Js(u.latestValues)&&ra(t,u.latestValues))}e.x<G1&&e.x>$1&&(e.x=1),e.y<G1&&e.y>$1&&(e.y=1)}function sa(t,e){t.min=t.min+e,t.max=t.max+e}function Y1(t,e,n,r,o=.5){const u=ft(t.min,t.max,o);Og(t,e,n,u,r)}function ra(t,e){Y1(t.x,e.x,e.scaleX,e.scale,e.originX),Y1(t.y,e.y,e.scaleY,e.scale,e.originY)}function X1(t,e){return I1(q4(t.getBoundingClientRect(),e))}function H4(t,e,n){const r=X1(t,n),{scroll:o}=e;return o&&(sa(r.x,o.offset.x),sa(r.y,o.offset.y)),r}const K1=({current:t})=>t?t.ownerDocument.defaultView:null,F4=new WeakMap;class $4{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ko(m).point)},u=(m,v)=>{const{drag:_,dragPropagation:b,onDragStart:x}=this.getProps();if(_&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=x4(_),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Mn(M=>{let R=this.getAxisMotionValue(M).get()||0;if(Wn.test(R)){const{projection:q}=this.visualElement;if(q&&q.layout){const F=q.layout.layoutBox[M];F&&(R=hn(F)*(parseFloat(R)/100))}}this.originPoint[M]=R}),x&&nt.postRender(()=>x(m,v)),Qp(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},c=(m,v)=>{const{dragPropagation:_,dragDirectionLock:b,onDirectionLock:x,onDrag:E}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:M}=v;if(b&&this.currentDirection===null){this.currentDirection=G4(M),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",v.point,M),this.updateAxis("y",v.point,M),this.visualElement.render(),E&&E(m,v)},f=(m,v)=>this.stop(m,v),h=()=>Mn(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)===null||v===void 0?void 0:v.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new A1(e,{onSessionStart:o,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:K1(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&nt.postRender(()=>u(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:o}=this.getProps();if(!r||!Mc(e,o,this.currentDirection))return;const u=this.getAxisMotionValue(e);let c=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(c=N4(c,this.constraints[e],this.elastic[e])),u.set(c)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,u=this.constraints;n&&Qr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=z4(o.layoutBox,n):this.constraints=!1,this.elastic=V4(r),u!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Mn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=B4(o.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Qr(e))return!1;const r=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=H4(r,o.root,this.visualElement.getTransformPagePoint());let c=j4(o.layout.layoutBox,u);if(n){const f=n(I4(c));this.hasMutatedConstraints=!!f,f&&(c=I1(f))}return c}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},g=Mn(m=>{if(!Mc(m,n,this.currentDirection))return;let v=h&&h[m]||{};c&&(v={min:0,max:0});const _=o?200:1e6,b=o?40:1e7,x={type:"inertia",velocity:r?e[m]:0,bounceStiffness:_,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(m,x)});return Promise.all(g).then(f)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Qp(this.visualElement,e),r.start(Sg(e,r,0,n,this.visualElement,!1))}stopAnimation(){Mn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Mn(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Mn(n=>{const{drag:r}=this.getProps();if(!Mc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[n];u.set(e[n]-ft(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Mn(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();o[c]=U4({min:h,max:h},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Mn(c=>{if(!Mc(c,e,null))return;const f=this.getAxisMotionValue(c),{min:h,max:g}=this.constraints[c];f.set(ft(h,g,o[c]))})}addListeners(){if(!this.visualElement.current)return;F4.set(this.visualElement,this);const e=this.visualElement.current,n=Zo(e,"pointerdown",h=>{const{drag:g,dragListener:m=!0}=this.getProps();g&&m&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();Qr(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),nt.read(r);const c=Xo(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:g})=>{this.isDragging&&g&&(Mn(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=h[m].translate,v.set(v.get()+h[m].translate))}),this.visualElement.render())}));return()=>{c(),n(),u(),f&&f()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=Ag,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function Mc(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function G4(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Y4 extends is{constructor(e){super(e),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new $4(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Z1=t=>(e,n)=>{t&&nt.postRender(()=>t(e,n))};class X4 extends is{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(e){this.session=new A1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:K1(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Z1(e),onStart:Z1(n),onMove:r,onEnd:(u,c)=>{delete this.session,o&&nt.postRender(()=>o(u,c))}}}mount(){this.removePointerDownListener=Zo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Oc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Q1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Wo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(be.test(t))t=parseFloat(t);else return t;const n=Q1(t,e.target.x),r=Q1(t,e.target.y);return`${n}% ${r}%`}},K4={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=ns.parse(t);if(o.length>5)return r;const u=ns.createTransformer(t),c=typeof o[0]!="number"?1:0,f=n.x.scale*e.x,h=n.y.scale*e.y;o[0+c]/=f,o[1+c]/=h;const g=ft(f,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=g),typeof o[3+c]=="number"&&(o[3+c]/=g),u(o)}};class Z4 extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:u}=e;xN(Q4),u&&(n.group&&n.group.add(u),r&&r.register&&o&&r.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),Oc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:o,isPresent:u}=this.props,c=r.projection;return c&&(c.isPresent=u,o||e.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),e.isPresent!==u&&(u?c.promote():c.relegate()||nt.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jp.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function J1(t){const[e,n]=KS(),r=Y.useContext(Mp);return ve.jsx(Z4,{...t,layoutGroup:r,switchLayoutGroup:Y.useContext(aE),isPresent:e,safeToRemove:n})}const Q4={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:K4};function J4(t,e,n){const r=Pt(t)?t:Po(t);return r.start(Sg("",r,e,n)),r.animation}function W4(t){return t instanceof SVGElement&&t.tagName!=="svg"}const ej=(t,e)=>t.depth-e.depth;class tj{constructor(){this.children=[],this.isDirty=!1}add(e){Xp(this.children,e),this.isDirty=!0}remove(e){Kp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ej),this.isDirty=!1,this.children.forEach(e)}}function nj(t,e){const n=ei.now(),r=({timestamp:o})=>{const u=o-n;u>=e&&(es(r),t(u-e))};return nt.read(r,!0),()=>es(r)}const W1=["TopLeft","TopRight","BottomLeft","BottomRight"],ij=W1.length,ex=t=>typeof t=="string"?parseFloat(t):t,tx=t=>typeof t=="number"||be.test(t);function sj(t,e,n,r,o,u){o?(t.opacity=ft(0,n.opacity!==void 0?n.opacity:1,rj(r)),t.opacityExit=ft(e.opacity!==void 0?e.opacity:1,0,aj(r))):u&&(t.opacity=ft(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let c=0;c<ij;c++){const f=`border${W1[c]}Radius`;let h=nx(e,f),g=nx(n,f);if(h===void 0&&g===void 0)continue;h||(h=0),g||(g=0),h===0||g===0||tx(h)===tx(g)?(t[f]=Math.max(ft(ex(h),ex(g),r),0),(Wn.test(g)||Wn.test(h))&&(t[f]+="%")):t[f]=g}(e.rotate||n.rotate)&&(t.rotate=ft(e.rotate||0,n.rotate||0,r))}function nx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rj=ix(0,.5,VE),aj=ix(.5,.95,dn);function ix(t,e,n){return r=>r<t?0:r>e?1:n(ea(t,e,r))}function sx(t,e){t.min=e.min,t.max=e.max}function On(t,e){sx(t.x,e.x),sx(t.y,e.y)}function rx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ax(t,e,n,r,o){return t-=e,t=Cc(t,1/n,r),o!==void 0&&(t=Cc(t,1/o,r)),t}function oj(t,e=0,n=1,r=.5,o,u=t,c=t){if(Wn.test(e)&&(e=parseFloat(e),e=ft(c.min,c.max,e/100)-c.min),typeof e!="number")return;let f=ft(u.min,u.max,r);t===u&&(f-=e),t.min=ax(t.min,e,n,f,o),t.max=ax(t.max,e,n,f,o)}function ox(t,e,[n,r,o],u,c){oj(t,e[n],e[r],e[o],e.scale,u,c)}const lj=["x","scaleX","originX"],uj=["y","scaleY","originY"];function lx(t,e,n,r){ox(t.x,e,lj,n?n.x:void 0,r?r.x:void 0),ox(t.y,e,uj,n?n.y:void 0,r?r.y:void 0)}function ux(t){return t.translate===0&&t.scale===1}function cx(t){return ux(t.x)&&ux(t.y)}function fx(t,e){return t.min===e.min&&t.max===e.max}function cj(t,e){return fx(t.x,e.x)&&fx(t.y,e.y)}function dx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function hx(t,e){return dx(t.x,e.x)&&dx(t.y,e.y)}function px(t){return hn(t.x)/hn(t.y)}function gx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class fj{constructor(){this.members=[]}add(e){Xp(this.members,e),e.scheduleRender()}remove(e){if(Kp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){r=u;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dj(t,e,n){let r="";const o=t.x.translate/e.x,u=t.y.translate/e.y,c=n?.z||0;if((o||u||c)&&(r=`translate3d(${o}px, ${u}px, ${c}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:g,rotate:m,rotateX:v,rotateY:_,skewX:b,skewY:x}=n;g&&(r=`perspective(${g}px) ${r}`),m&&(r+=`rotate(${m}deg) `),v&&(r+=`rotateX(${v}deg) `),_&&(r+=`rotateY(${_}deg) `),b&&(r+=`skewX(${b}deg) `),x&&(r+=`skewY(${x}deg) `)}const f=t.x.scale*e.x,h=t.y.scale*e.y;return(f!==1||h!==1)&&(r+=`scale(${f}, ${h})`),r||"none"}const Ws={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},el=typeof window<"u"&&window.MotionDebug!==void 0,Rg=["","X","Y","Z"],hj={visibility:"hidden"},mx=1e3;let pj=0;function Dg(t,e,n,r){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),r&&(r[t]=0))}function vx(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ME(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",nt,!(o||u))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&vx(r)}function yx({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(c={},f=e?.()){this.id=pj++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,el&&(Ws.totalNodes=Ws.resolvedTargetDeltas=Ws.recalculatedProjection=0),this.nodes.forEach(vj),this.nodes.forEach(Ej),this.nodes.forEach(xj),this.nodes.forEach(yj),el&&window.MotionDebug.record(Ws)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new tj)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Zp),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W4(c),this.instance=c;const{layoutId:h,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(g||h)&&(this.isLayoutDirty=!0),t){let v;const _=()=>this.root.updateBlockedByResize=!1;t(c,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=nj(_,250),Oc.hasAnimatedSinceResize&&(Oc.hasAnimatedSinceResize=!1,this.nodes.forEach(bx))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:_,hasRelativeTargetChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||Mj,{onLayoutAnimationStart:M,onLayoutAnimationComplete:R}=m.getProps(),q=!this.targetLayout||!hx(this.targetLayout,x)||b,F=!_&&b;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||F||_&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(v,F);const K={...Yp(E,"layout"),onPlay:M,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(K.delay=0,K.type=!1),this.startAnimation(K)}else _||bx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,es(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Tj),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const v=this.path[m];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_x);return}this.isUpdating||this.nodes.forEach(bj),this.isUpdating=!1,this.nodes.forEach(Sj),this.nodes.forEach(gj),this.nodes.forEach(mj),this.clearAllSnapshots();const f=ei.now();Nt.delta=_i(0,1e3/60,f-Nt.timestamp),Nt.timestamp=f,Nt.isProcessing=!0,kp.update.process(Nt),kp.preRender.process(Nt),kp.render.process(Nt),Nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_j),this.sharedNodes.forEach(wj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!cx(this.projectionDelta),h=this.getTransformTemplate(),g=h?h(this.latestValues,""):void 0,m=g!==this.prevTransformTemplateValue;c&&(f||Js(this.latestValues)||m)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),Oj(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return mt();const h=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(Rj))){const{scroll:m}=this.root;m&&(sa(h.x,m.offset.x),sa(h.y,m.offset.y))}return h}removeElementScroll(c){var f;const h=mt();if(On(h,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:_}=m;m!==this.root&&v&&_.layoutScroll&&(v.wasRoot&&On(h,c),sa(h.x,v.offset.x),sa(h.y,v.offset.y))}return h}applyTransform(c,f=!1){const h=mt();On(h,c);for(let g=0;g<this.path.length;g++){const m=this.path[g];!f&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ra(h,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Js(m.latestValues)&&ra(h,m.latestValues)}return Js(this.latestValues)&&ra(h,this.latestValues),h}removeTransform(c){const f=mt();On(f,c);for(let h=0;h<this.path.length;h++){const g=this.path[h];if(!g.instance||!Js(g.latestValues))continue;Mg(g.latestValues)&&g.updateSnapshot();const m=mt(),v=g.measurePageBox();On(m,v),lx(f,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,m)}return Js(this.latestValues)&&lx(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(c||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:_}=this.options;if(!(!this.layout||!(v||_))){if(this.resolvedRelativeTargetAt=Nt.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Jo(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),L4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):On(this.target,this.layout.layoutBox),F1(this.target,this.targetDelta)):On(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Jo(this.relativeTargetOrigin,this.target,b.target),On(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}el&&Ws.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mg(this.parent.latestValues)||q1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Nt.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;On(this.layoutCorrected,this.layout.layoutBox);const _=this.treeScale.x,b=this.treeScale.y;P4(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=mt());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rx(this.prevProjectionDelta.x,this.projectionDelta.x),rx(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==_||this.treeScale.y!==b||!gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),el&&Ws.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(c,f=!1){const h=this.snapshot,g=h?h.latestValues:{},m={...this.latestValues},v=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const _=mt(),b=h?h.source:void 0,x=this.layout?this.layout.source:void 0,E=b!==x,M=this.getStack(),R=!M||M.members.length<=1,q=!!(E&&!R&&this.options.crossfade===!0&&!this.path.some(Cj));this.animationProgress=0;let F;this.mixTargetDelta=K=>{const U=K/1e3;Sx(v.x,c.x,U),Sx(v.y,c.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(_,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Aj(this.relativeTarget,this.relativeTargetOrigin,_,U),F&&cj(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=mt()),On(F,this.relativeTarget)),E&&(this.animationValues=m,sj(m,g,this.latestValues,U,q,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(es(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nt.update(()=>{Oc.hasAnimatedSinceResize=!0,this.currentAnimation=J4(0,mx,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:g,latestValues:m}=c;if(!(!f||!h||!g)){if(this!==c&&this.layout&&g&&Ax(this.options.animationType,this.layout.layoutBox,g.layoutBox)){h=this.target||mt();const v=hn(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+v;const _=hn(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+_}On(f,h),ra(f,m),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new fj),this.sharedNodes.get(c).add(f);const g=f.options.initialPromotionConfig;f.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const g=this.getStack();g&&g.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const g={};h.z&&Dg("z",c,g,this.animationValues);for(let m=0;m<Rg.length;m++)Dg(`rotate${Rg[m]}`,c,g,this.animationValues),Dg(`skew${Rg[m]}`,c,g,this.animationValues);c.render();for(const m in g)c.setStaticValue(m,g[m]),this.animationValues&&(this.animationValues[m]=g[m]);c.scheduleRender()}getProjectionStyles(c){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hj;const g={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=vc(c?.pointerEvents)||"",g.transform=m?m(this.latestValues,""):"none",g;const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=vc(c?.pointerEvents)||""),this.hasProjected&&!Js(this.latestValues)&&(E.transform=m?m({},""):"none",this.hasProjected=!1),E}const _=v.animationValues||v.latestValues;this.applyTransformsToTarget(),g.transform=dj(this.projectionDeltaWithTransform,this.treeScale,_),m&&(g.transform=m(_,g.transform));const{x:b,y:x}=this.projectionDelta;g.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,v.animationValues?g.opacity=v===this?(h=(f=_.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:g.opacity=v===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const E in _c){if(_[E]===void 0)continue;const{correct:M,applyTo:R}=_c[E],q=g.transform==="none"?_[E]:M(_[E],v);if(R){const F=R.length;for(let K=0;K<F;K++)g[R[K]]=q}else g[E]=q}return this.options.layoutId&&(g.pointerEvents=v===this?vc(c?.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(_x),this.root.sharedNodes.clear()}}}function gj(t){t.updateLayout()}function mj(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=t.layout,{animationType:u}=t.options,c=n.source!==t.layout.source;u==="size"?Mn(v=>{const _=c?n.measuredBox[v]:n.layoutBox[v],b=hn(_);_.min=r[v].min,_.max=_.min+b}):Ax(u,n.layoutBox,r)&&Mn(v=>{const _=c?n.measuredBox[v]:n.layoutBox[v],b=hn(r[v]);_.max=_.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+b)});const f=ia();Qo(f,r,n.layoutBox);const h=ia();c?Qo(h,t.applyTransform(o,!0),n.measuredBox):Qo(h,r,n.layoutBox);const g=!cx(f);let m=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:_,layout:b}=v;if(_&&b){const x=mt();Jo(x,n.layoutBox,_.layoutBox);const E=mt();Jo(E,r,b.layoutBox),hx(x,E)||(m=!0),v.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=x,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:g,hasRelativeTargetChanged:m})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function vj(t){el&&Ws.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yj(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _j(t){t.clearSnapshot()}function _x(t){t.clearMeasurements()}function bj(t){t.isLayoutDirty=!1}function Sj(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ej(t){t.resolveTargetDelta()}function xj(t){t.calcProjection()}function Tj(t){t.resetSkewAndRotation()}function wj(t){t.removeLeadSnapshot()}function Sx(t,e,n){t.translate=ft(e.translate,0,n),t.scale=ft(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ex(t,e,n,r){t.min=ft(e.min,n.min,r),t.max=ft(e.max,n.max,r)}function Aj(t,e,n,r){Ex(t.x,e.x,n.x,r),Ex(t.y,e.y,n.y,r)}function Cj(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mj={duration:.45,ease:[.4,0,.1,1]},xx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Tx=xx("applewebkit/")&&!xx("chrome/")?Math.round:dn;function wx(t){t.min=Tx(t.min),t.max=Tx(t.max)}function Oj(t){wx(t.x),wx(t.y)}function Ax(t,e,n){return t==="position"||t==="preserve-aspect"&&!k4(px(e),px(n),.2)}function Rj(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Dj=yx({attachResizeListener:(t,e)=>Xo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),kg={current:void 0},Cx=yx({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!kg.current){const t=new Dj({});t.mount(window),t.setOptions({layoutScroll:!0}),kg.current=t}return kg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),kj={pan:{Feature:X4},drag:{Feature:Y4,ProjectionNode:Cx,MeasureLayout:J1}};function Lj(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let o=document;const u=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(t);return u?Array.from(u):[]}return Array.from(t)}function Mx(t,e){const n=Lj(t),r=new AbortController,o={passive:!0,...e,signal:r.signal};return[n,o,()=>r.abort()]}function Ox(t){return e=>{e.pointerType==="touch"||T1()||t(e)}}function Nj(t,e,n={}){const[r,o,u]=Mx(t,n),c=Ox(f=>{const{target:h}=f,g=e(f);if(typeof g!="function"||!h)return;const m=Ox(v=>{g(v),h.removeEventListener("pointerleave",m)});h.addEventListener("pointerleave",m,o)});return r.forEach(f=>{f.addEventListener("pointerenter",c,o)}),u}function Rx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,u=r[o];u&&nt.postRender(()=>u(e,Ko(e)))}class zj extends is{mount(){const{current:e}=this.node;e&&(this.unmount=Nj(e,n=>(Rx(this.node,n,"Start"),r=>Rx(this.node,r,"End"))))}unmount(){}}class jj extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yo(Xo(this.node.current,"focus",()=>this.onFocus()),Xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dx=(t,e)=>e?t===e?!0:Dx(t,e.parentElement):!1,Uj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bj(t){return Uj.has(t.tagName)||t.tabIndex!==-1}const tl=new WeakSet;function kx(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Vj=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kx(()=>{if(tl.has(n))return;Lg(n,"down");const o=kx(()=>{Lg(n,"up")}),u=()=>Lg(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",u,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Lx(t){return xg(t)&&!T1()}function Ij(t,e,n={}){const[r,o,u]=Mx(t,n),c=f=>{const h=f.currentTarget;if(!Lx(f)||tl.has(h))return;tl.add(h);const g=e(f),m=(b,x)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",_),!(!Lx(b)||!tl.has(h))&&(tl.delete(h),typeof g=="function"&&g(b,{success:x}))},v=b=>{m(b,n.useGlobalTarget||Dx(h,b.target))},_=b=>{m(b,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",_,o)};return r.forEach(f=>{!Bj(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(n.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),f.addEventListener("focus",g=>Vj(g,o),o)}),u}function Nx(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),u=r[o];u&&nt.postRender(()=>u(e,Ko(e)))}class qj extends is{mount(){const{current:e}=this.node;e&&(this.unmount=Ij(e,n=>(Nx(this.node,n,"Start"),(r,{success:o})=>Nx(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ng=new WeakMap,zg=new WeakMap,Pj=t=>{const e=Ng.get(t.target);e&&e(t)},Hj=t=>{t.forEach(Pj)};function Fj({root:t,...e}){const n=t||document;zg.has(n)||zg.set(n,{});const r=zg.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Hj,{root:t,...e})),r[o]}function $j(t,e,n){const r=Fj(e);return Ng.set(t,n),r.observe(t),()=>{Ng.delete(t),r.unobserve(t)}}const Gj={some:0,all:1};class Yj extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:u}=e,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Gj[o]},f=h=>{const{isIntersecting:g}=h;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:m,onViewportLeave:v}=this.node.getProps(),_=g?m:v;_&&_(h)};return $j(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Xj(e,n))&&this.startObserver()}unmount(){}}function Xj({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Kj={inView:{Feature:Yj},tap:{Feature:qj},focus:{Feature:jj},hover:{Feature:zj}},Zj={layout:{ProjectionNode:Cx,MeasureLayout:J1}},jg={current:null},zx={current:!1};function Qj(){if(zx.current=!0,!!Dp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>jg.current=t.matches;t.addListener(e),e()}else jg.current=!1}const Jj=[...i1,Ht,ns],Wj=t=>Jj.find(n1(t)),jx=new WeakMap;function eU(t,e,n){for(const r in e){const o=e[r],u=n[r];if(Pt(o))t.addValue(r,o);else if(Pt(u))t.addValue(r,Po(o,{owner:t}));else if(u!==o)if(t.hasValue(r)){const c=t.getValue(r);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=t.getStaticValue(r);t.addValue(r,Po(c!==void 0?c:o,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ux=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tU{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=ei.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,nt.render(this.render,!1,!0))};const{latestValues:h,renderState:g,onUpdate:m}=c;this.onUpdate=m,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=g,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=mc(n),this.isVariantNode=iE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:v,..._}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in _){const x=_[b];h[b]!==void 0&&Pt(x)&&x.set(h[b],!1)}}mount(e){this.current=e,jx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),zx.current||Qj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){jx.delete(this.current),this.projection&&this.projection.unmount(),es(this.notifyUpdate),es(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Xs.has(e),o=n.on("change",f=>{this.latestValues[e]=f,this.props.onUpdate&&nt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),u=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),u(),c&&c(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Zr){const n=Zr[e];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[e]&&o&&r(this.props)&&(this.features[e]=new o(this)),this.features[e]){const u=this.features[e];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ux.length;r++){const o=Ux[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,c=e[u];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=eU(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Po(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(e1(o)||qE(o))?o=parseFloat(o):!Wj(o)&&ns.test(n)&&(o=XE(e,n)),this.setBaseTarget(e,Pt(o)?o.get():o)),Pt(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const c=Bp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);c&&(o=c[e])}if(r&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,e);return u!==void 0&&!Pt(u)?u:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Zp),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bx extends tU{constructor(){super(...arguments),this.KeyframeResolver=r1}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Pt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function nU(t){return window.getComputedStyle(t)}class iU extends Bx{constructor(){super(...arguments),this.type="html",this.renderInstance=vE}readValueFromInstance(e,n){if(Xs.has(n)){const r=ug(n);return r&&r.default||0}else{const r=nU(e),o=(fE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return X1(e,n)}build(e,n,r){Pp(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Gp(e,n,r)}}class sU extends Bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Xs.has(n)){const r=ug(n);return r&&r.default||0}return n=yE.has(n)?n:zp(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return SE(e,n,r)}build(e,n,r){Hp(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,o){_E(e,n,r,o)}mount(e){this.isSVGTag=$p(e.tagName),super.mount(e)}}const rU=(t,e)=>Up(t)?new sU(e):new iU(e,{allowProjection:t!==Y.Fragment}),aU=kN({...E4,...Kj,...kj,...Zj},rU),oU=XL(aU);function Ug(...t){return ML(US(t))}const lU=Qk("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] text-sm font-medium transition-[background,color,opacity] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[var(--color-primary-9)] text-[var(--color-primary-fg)] hover:bg-[var(--color-primary-10)]",ghost:"bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",outline:"border border-[var(--color-border)] bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",danger:"bg-[var(--color-danger-9)] text-white hover:bg-[var(--color-danger-10)]"},size:{default:"h-11 px-4",sm:"h-9 px-3",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Vx=Y.forwardRef(function({className:t,variant:e,size:n,asChild:r=!1,type:o="button",...u},c){return ve.jsx(r?$k:"button",{ref:c,type:r?void 0:o,className:Ug(lU({variant:e,size:n}),t),...u})}),uU=Y.forwardRef(function({className:t,type:e="text",...n},r){return ve.jsx("input",{ref:r,type:e,className:Ug("flex h-11 w-full rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-base text-[var(--color-fg)] placeholder:text-[var(--color-fg-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:cursor-not-allowed disabled:opacity-50",t),...n})});function cU({onAdd:t,disabled:e=!1}){const{_:n}=my(),[r,o]=Y.useState(""),u=r.trim(),c=!e&&u.length>0;function f(h){h.preventDefault(),c&&(t(u),o(""))}return ve.jsxs("form",{onSubmit:f,className:"flex items-center gap-2",children:[ve.jsx(uU,{"aria-label":n({id:"qmt9HO"}),value:r,onChange:h=>o(h.target.value),disabled:e,placeholder:n({id:"hyVJ2f"})}),ve.jsx(Vx,{type:"submit",disabled:!c,children:ve.jsx(ad,{id:"m16xKo"})})]})}const Ix=Dk(),Rc=qi("alistigo:provider"),qx=Y.createContext(null),Px=Y.createContext(null),Hx=Y.createContext(null);function fU({service:t,listId:e,initialDocument:n,children:r}){const[o,u]=Y.useState(n),[c,f]=Y.useState(!1),h=Y.useMemo(()=>({doc:o,setDoc:u}),[o]),g=Y.useMemo(()=>({service:t,listId:e}),[t,e]),m=Y.useMemo(()=>({isPending:c,setIsPending:f}),[c]);return ve.jsx(qx.Provider,{value:h,children:ve.jsx(Px.Provider,{value:g,children:ve.jsx(Hx.Provider,{value:m,children:r})})})}function Fx(){const t=Y.useContext(qx);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function dU(){const t=Y.useContext(Px);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function $x(){const t=Y.useContext(Hx);if(t==null)throw new Error("Must be inside <AlistigoProvider>.");return t}function hU(){return Fx().doc}function pU(){return $x().isPending}function gU(){const{setDoc:t}=Fx(),{service:e,listId:n}=dU(),{setIsPending:r}=$x(),o=Y.useRef(t);return o.current=t,Y.useMemo(()=>({addElement:u=>{r(!0),e.addListElement(n,u,Ix).then(c=>{c.ok?(Rc.debug("element added"),o.current(c.value)):Rc.error({error:c.error},"addElement failed")}).finally(()=>r(!1))},deleteElement:u=>{r(!0),Promise.resolve().then(()=>{const c=xp(u);return e.deleteListElement(n,c,Ix)}).then(c=>{c.ok?(Rc.debug({elementId:u},"element deleted"),o.current(c.value)):Rc.error({error:c.error,elementId:u},"deleteElement failed")}).finally(()=>r(!1))}}),[e,n,r])}function mU({children:t,className:e}){const n=pU();return ve.jsxs("div",{"data-testid":"alistigo-app",className:Ug("mx-auto flex min-h-dvh w-full max-w-md flex-col gap-4 bg-[var(--color-bg)] px-4 py-6 text-[var(--color-fg)]",e),children:[ve.jsx("span",{"aria-hidden":"true","data-testid":"action-pending","data-state":n?"pending":"idle",className:"sr-only"}),t]})}function vU({message:t}){return ve.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center gap-2 rounded-[var(--radius)] border border-dashed border-[var(--color-border)] px-4 py-12 text-center text-[var(--color-fg-muted)]",children:[ve.jsx(kL,{"aria-hidden":"true",className:"size-10"}),ve.jsx("p",{className:"text-sm",children:t??ve.jsx(ad,{id:"WH8Wi7"})})]})}function yU({listItem:t,onDelete:e}){const{_:n}=my(),r=BL(),o=t["alistigo:listElementId"],u=t.name;return ve.jsxs(oU.li,{layout:!0,initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,x:-16},transition:{duration:.2,ease:"easeOut"},"data-deleting":r?void 0:"true",className:"flex items-center justify-between gap-2 rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-[var(--color-fg)]",children:[ve.jsx("span",{className:"flex-1 truncate",children:u}),ve.jsx(Vx,{variant:"ghost",size:"icon","aria-label":n({id:"6ZGXNs",values:{text:u}}),onClick:()=>e(o,t.position),children:ve.jsx(LL,{"aria-hidden":"true",className:"size-5"})})]})}function _U({items:t,onDelete:e}){return t.length===0?ve.jsx(vU,{}):ve.jsx("ul",{className:"flex flex-col gap-2",children:ve.jsx(IL,{initial:!1,children:t.map(n=>ve.jsx(yU,{listItem:n,onDelete:e},n["alistigo:listElementId"]))})})}const er=qi("alistigo:local-storage"),nl=t=>`alistigo:list:${t.toString()}`;class Gx{async load(e){try{const n=localStorage.getItem(nl(e));if(n==null)return;er.debug({key:nl(e)},"loading from localStorage");const r=JSON.parse(n);return oc.deserialize(r)}catch(n){er.error({err:n},"failed to load from localStorage");return}}async save(e){try{const n=await this.loadDocument(e.id),r=oc.serialize(e,n);localStorage.setItem(nl(e.id),JSON.stringify(r)),er.debug({key:nl(e.id)},"saved to localStorage")}catch(n){er.error({err:n},"failed to save to localStorage")}}async loadDocument(e){try{const n=localStorage.getItem(nl(e));return n==null?void 0:JSON.parse(n)}catch(n){er.error({err:n},"failed to load document from localStorage");return}}async seedIfEmpty(e){const n=`alistigo:list:${e["alistigo:listId"]}`;try{localStorage.getItem(n)==null&&(localStorage.setItem(n,JSON.stringify(e)),er.info({key:n},"document seeded (first run)"))}catch(r){er.error({err:r},"failed to seed localStorage")}}}function bU(){const t=hU(),e=gU();return ve.jsxs(ve.Fragment,{children:[ve.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:t.name??ve.jsx(ad,{id:"wja8aL"})}),ve.jsx(cU,{onAdd:e.addElement}),ve.jsx(_U,{items:t.itemListElement,onDelete:e.deleteElement})]})}const Bg=qi("alistigo:artifact-list");function SU({initialDocument:t}){const e=Y.useMemo(()=>{const c=Bk()?"claude-artifact":"localStorage";return Bg.info({ctx:c},"storage context detected"),c==="claude-artifact"?new Uk:new Gx},[]),n=Y.useMemo(()=>new Ik(e),[e]),r=Y.useMemo(()=>Tp(t["alistigo:listId"]),[t]),[o,u]=Y.useState(void 0);return Y.useEffect(()=>{(e instanceof Gx?e.seedIfEmpty(t):Promise.resolve()).then(()=>n.loadDocument(r)).then(f=>{Bg.info({listId:r.toString()},"app mounted"),u(f??t)}).catch(f=>{Bg.error({err:f},"failed to load document")})},[e,t,n,r]),o?ve.jsx(fU,{service:n,listId:r,initialDocument:o,children:ve.jsx(mU,{children:ve.jsx(bU,{})})}):null}const EU=JSON.parse('{"6ZGXNs":["Delete \\"",["text"],"\\""],"WH8Wi7":["No elements yet."],"hyVJ2f":["Add an element…"],"m16xKo":["Add"],"qmt9HO":["Add element"],"wja8aL":["Untitled"]}'),Dc="en",xU=new Set(["ar","fa","he","ur"]);let Yx=!1;function TU(){if(Yx)return;Yx=!0,nd.load(Dc,EU),nd.activate(Dc);const t=document.documentElement;t.setAttribute("lang",Dc),t.setAttribute("dir",xU.has(Dc)?"rtl":"ltr")}function yV(t){}function wU(t){return typeof t=="string"?document.querySelector(t):t}function AU(t){if(t!==void 0){const n=document.querySelector(t);if(n instanceof HTMLElement)return n;console.error(`[Alistigo] Container "${t}" not found, appending default`)}const e=document.createElement("div");return document.body.appendChild(e),e}function CU(){return{"@context":{"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},"@type":"ItemList","alistigo:listId":"lst_01jx0000000000000000000000","alistigo:schemaVersion":"1.0.0",name:"My List",itemListElement:[],"alistigo:listEventLog":[]}}const Xx=qi("alistigo:artifact-list"),Kx="en",Vg=new Map;function MU(){return typeof window<"u"&&"storage"in window?"window.storage":typeof localStorage<"u"?"localStorage":"none"}function OU(t,e){return typeof t=="string"?t:`#${e.id||"(element)"}`}function RU(t){const e=Vg.get(t);if(e!==void 0)return e;const n=WR.createRoot(t);return Vg.set(t,n),n}function DU(t,e){const n=e.document??CU();RU(t).render(Y.createElement(Y.StrictMode,null,Y.createElement(S5,{i18n:nd},Y.createElement(GR,{fallback:Y.createElement(Y.Fragment,null)},Y.createElement(SU,{key:n["alistigo:listId"],initialDocument:n})))))}function Zx(t,e={}){if(document.readyState==="loading"){console.info("[Alistigo] mount() called before DOM is ready — deferring to DOMContentLoaded"),document.addEventListener("DOMContentLoaded",()=>Zx(t,e),{once:!0});return}const n=wU(t);if(n==null)throw Xx.error({selector:String(t)},"container not found"),new Error(`Alistigo.mount: container not found: ${String(t)}`);const r=!Vg.has(n);OU(t,n),Xx.info({selector:String(t)},"mount called"),TU(),dk(Kx,Jf.version),DU(n,e),r&&hk({locale:Kx,storageType:MU(),version:Jf.version})}let Ig;function kU(){const t=document.getElementById("alistigo-document");if(t?.textContent?.trim())try{return JSON.parse(t.textContent)}catch{console.error("[Alistigo] Failed to parse #alistigo-document");return}}function LU(){const t=document.getElementById("alistigo-config");if(t===null)return{};try{return JSON.parse(t.textContent??"{}")}catch{return console.error("[Alistigo] Failed to parse #alistigo-config:",t.textContent),{}}}function Qx(){const t=LU();Ig||(Ig=AU(t.container));const e=kU()??t.document,{container:n,document:r,...o}=t,u=e!==void 0?{...o,document:e}:o;Zx(Ig,u)}const Jx=qi("alistigo:monitoring");let Wx=!1;function NU(t){const e="https://e92925b34700c5718c6543f490c177ef@o4504027306000384.ingest.us.sentry.io/4511535019720704";if(!Wx)try{qR({dsn:e,release:`alistigo-artifact-list@${t}`,environment:"production",tracesSampleRate:0}),Wx=!0,Jx.info({release:`alistigo-artifact-list@${t}`},"Sentry initialized")}catch(n){Jx.error({err:n},"Sentry init failed")}}n5("error"),NU(Jf.version),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Qx):Qx()}));
|
|
26
|
+
`),()=>{document.head.removeChild(v)}},[a]),at.jsx(k1,{isPresent:a,childRef:r,sizeRef:c,children:U.cloneElement(i,{ref:r})})}const F1=({children:i,initial:a,isPresent:s,onExitComplete:r,custom:c,presenceAffectsLayout:d,mode:f})=>{const m=bo(P1),g=U.useId(),p=U.useCallback(b=>{m.set(b,!0);for(const S of m.values())if(!S)return;r&&r()},[m,r]),v=U.useMemo(()=>({id:g,initial:a,isPresent:s,custom:c,onExitComplete:p,register:b=>(m.set(b,!1),()=>m.delete(b))}),d?[Math.random(),p]:[s,p]);return U.useMemo(()=>{m.forEach((b,S)=>m.set(S,!1))},[s]),U.useEffect(()=>{!s&&!m.size&&r&&r()},[s]),f==="popLayout"&&(i=at.jsx(J1,{isPresent:s,children:i})),at.jsx(Ya.Provider,{value:v,children:i})};function P1(){return new Map}function Qd(i=!0){const a=U.useContext(Ya);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:c}=a,d=U.useId();U.useEffect(()=>{i&&c(d)},[i]);const f=U.useCallback(()=>i&&r&&r(d),[d,r,i]);return!s&&r?[!1,f]:[!0]}function W1(){return $1(U.useContext(Ya))}function $1(i){return i===null?!0:i.isPresent}const ds=i=>i.key||"";function Kd(i){const a=[];return U.Children.forEach(i,s=>{U.isValidElement(s)&&a.push(s)}),a}const To=typeof window<"u",kd=To?U.useLayoutEffect:U.useEffect,I1=({children:i,custom:a,initial:s=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1})=>{const[m,g]=Qd(f),p=U.useMemo(()=>Kd(i),[i]),v=f&&!m?[]:p.map(ds),b=U.useRef(!0),S=U.useRef(p),M=bo(()=>new Map),[L,w]=U.useState(p),[H,Y]=U.useState(p);kd(()=>{b.current=!1,S.current=p;for(let $=0;$<H.length;$++){const k=ds(H[$]);v.includes(k)?M.delete(k):M.get(k)!==!0&&M.set(k,!1)}},[H,v.length,v.join("-")]);const Q=[];if(p!==L){let $=[...p];for(let k=0;k<H.length;k++){const it=H[k],F=ds(it);v.includes(F)||($.splice(k,0,it),Q.push(it))}d==="wait"&&Q.length&&($=Q),Y(Kd($)),w(p);return}const{forceRender:K}=U.useContext(vo);return at.jsx(at.Fragment,{children:H.map($=>{const k=ds($),it=f&&!m?!1:p===H||v.includes(k),F=()=>{if(M.has(k))M.set(k,!0);else return;let I=!0;M.forEach(mt=>{mt||(I=!1)}),I&&(K?.(),Y(S.current),f&&g?.(),r&&r())};return at.jsx(F1,{isPresent:it,initial:!b.current||s?void 0:!1,custom:it?void 0:a,presenceAffectsLayout:c,mode:d,onExitComplete:it?void 0:F,children:$},k)})})},xe=i=>i;let Jd=xe;const tS={useManualTiming:!1};function eS(i){let a=new Set,s=new Set,r=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function m(p){d.has(p)&&(g.schedule(p),i()),p(f)}const g={schedule:(p,v=!1,b=!1)=>{const M=b&&r?a:s;return v&&d.add(p),M.has(p)||M.add(p),p},cancel:p=>{s.delete(p),d.delete(p)},process:p=>{if(f=p,r){c=!0;return}r=!0,[a,s]=[s,a],a.forEach(m),a.clear(),r=!1,c&&(c=!1,g.process(p))}};return g}const hs=["read","resolveKeyframes","update","preRender","render","postRender"],nS=40;function Fd(i,a){let s=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=hs.reduce((Y,Q)=>(Y[Q]=eS(d),Y),{}),{read:m,resolveKeyframes:g,update:p,preRender:v,render:b,postRender:S}=f,M=()=>{const Y=performance.now();s=!1,c.delta=r?1e3/60:Math.max(Math.min(Y-c.timestamp,nS),1),c.timestamp=Y,c.isProcessing=!0,m.process(c),g.process(c),p.process(c),v.process(c),b.process(c),S.process(c),c.isProcessing=!1,s&&a&&(r=!1,i(M))},L=()=>{s=!0,r=!0,c.isProcessing||i(M)};return{schedule:hs.reduce((Y,Q)=>{const K=f[Q];return Y[Q]=($,k=!1,it=!1)=>(s||L(),K.schedule($,k,it)),Y},{}),cancel:Y=>{for(let Q=0;Q<hs.length;Q++)f[hs[Q]].cancel(Y)},state:c,steps:f}}const{schedule:Vt,cancel:Vn,state:ie,steps:xo}=Fd(typeof requestAnimationFrame<"u"?requestAnimationFrame:xe,!0),Pd=U.createContext({strict:!1}),Wd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hi={};for(const i in Wd)Hi[i]={isEnabled:a=>Wd[i].some(s=>!!a[s])};function iS(i){for(const a in i)Hi[a]={...Hi[a],...i[a]}}const aS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ms(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||aS.has(i)}let $d=i=>!ms(i);function lS(i){i&&($d=a=>a.startsWith("on")?!ms(a):i(a))}try{lS(require("@emotion/is-prop-valid").default)}catch{}function sS(i,a,s){const r={};for(const c in i)c==="values"&&typeof i.values=="object"||($d(c)||s===!0&&ms(c)||!a&&!ms(c)||i.draggable&&c.startsWith("onDrag"))&&(r[c]=i[c]);return r}function rS(i){if(typeof Proxy>"u")return i;const a=new Map,s=(...r)=>i(...r);return new Proxy(s,{get:(r,c)=>c==="create"?i:(a.has(c)||a.set(c,i(c)),a.get(c))})}const ps=U.createContext({});function Xa(i){return typeof i=="string"||Array.isArray(i)}function gs(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}const Eo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ao=["initial",...Eo];function ys(i){return gs(i.animate)||Ao.some(a=>Xa(i[a]))}function Id(i){return!!(ys(i)||i.variants)}function oS(i,a){if(ys(i)){const{initial:s,animate:r}=i;return{initial:s===!1||Xa(s)?s:void 0,animate:Xa(r)?r:void 0}}return i.inherit!==!1?a:{}}function uS(i){const{initial:a,animate:s}=oS(i,U.useContext(ps));return U.useMemo(()=>({initial:a,animate:s}),[th(a),th(s)])}function th(i){return Array.isArray(i)?i.join(" "):i}const cS=Symbol.for("motionComponentSymbol");function qi(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function fS(i,a,s){return U.useCallback(r=>{r&&i.onMount&&i.onMount(r),a&&(r?a.mount(r):a.unmount()),s&&(typeof s=="function"?s(r):qi(s)&&(s.current=r))},[a])}const Mo=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eh="data-"+Mo("framerAppearId"),{schedule:Co}=Fd(queueMicrotask,!1),nh=U.createContext({});function dS(i,a,s,r,c){var d,f;const{visualElement:m}=U.useContext(ps),g=U.useContext(Pd),p=U.useContext(Ya),v=U.useContext(So).reducedMotion,b=U.useRef(null);r=r||g.renderer,!b.current&&r&&(b.current=r(i,{visualState:a,parent:m,props:s,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:v}));const S=b.current,M=U.useContext(nh);S&&!S.projection&&c&&(S.type==="html"||S.type==="svg")&&hS(b.current,s,c,M);const L=U.useRef(!1);U.useInsertionEffect(()=>{S&&L.current&&S.update(s,p)});const w=s[eh],H=U.useRef(!!w&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,w))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,w)));return kd(()=>{S&&(L.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),Co.render(S.render),H.current&&S.animationState&&S.animationState.animateChanges())}),U.useEffect(()=>{S&&(!H.current&&S.animationState&&S.animationState.animateChanges(),H.current&&(queueMicrotask(()=>{var Y;(Y=window.MotionHandoffMarkAsComplete)===null||Y===void 0||Y.call(window,w)}),H.current=!1))}),S}function hS(i,a,s,r){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:g,layoutRoot:p}=a;i.projection=new s(i.latestValues,a["data-framer-portal-id"]?void 0:ih(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&qi(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:r,layoutScroll:g,layoutRoot:p})}function ih(i){if(i)return i.options.allowProjection!==!1?i.projection:ih(i.parent)}function mS({preloadedFeatures:i,createVisualElement:a,useRender:s,useVisualState:r,Component:c}){var d,f;i&&iS(i);function m(p,v){let b;const S={...U.useContext(So),...p,layoutId:pS(p)},{isStatic:M}=S,L=uS(p),w=r(p,M);if(!M&&To){gS();const H=yS(S);b=H.MeasureLayout,L.visualElement=dS(c,w,S,a,H.ProjectionNode)}return at.jsxs(ps.Provider,{value:L,children:[b&&L.visualElement?at.jsx(b,{visualElement:L.visualElement,...S}):null,s(c,p,fS(w,L.visualElement,v),w,M,L.visualElement)]})}m.displayName=`motion.${typeof c=="string"?c:`create(${(f=(d=c.displayName)!==null&&d!==void 0?d:c.name)!==null&&f!==void 0?f:""})`}`;const g=U.forwardRef(m);return g[cS]=c,g}function pS({layoutId:i}){const a=U.useContext(vo).id;return a&&i!==void 0?a+"-"+i:i}function gS(i,a){U.useContext(Pd).strict}function yS(i){const{drag:a,layout:s}=Hi;if(!a&&!s)return{};const r={...a,...s};return{MeasureLayout:a?.isEnabled(i)||s?.isEnabled(i)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Do(i){return typeof i!="string"||i.includes("-")?!1:!!(vS.indexOf(i)>-1||/[A-Z]/u.test(i))}function ah(i){const a=[{},{}];return i?.values.forEach((s,r)=>{a[0][r]=s.get(),a[1][r]=s.getVelocity()}),a}function zo(i,a,s,r){if(typeof a=="function"){const[c,d]=ah(r);a=a(s!==void 0?s:i.custom,c,d)}if(typeof a=="string"&&(a=i.variants&&i.variants[a]),typeof a=="function"){const[c,d]=ah(r);a=a(s!==void 0?s:i.custom,c,d)}return a}const Oo=i=>Array.isArray(i),bS=i=>!!(i&&typeof i=="object"&&i.mix&&i.toValue),SS=i=>Oo(i)?i[i.length-1]||0:i,ce=i=>!!(i&&i.getVelocity);function vs(i){const a=ce(i)?i.get():i;return bS(a)?a.toValue():a}function TS({scrapeMotionValuesFromProps:i,createRenderState:a,onUpdate:s},r,c,d){const f={latestValues:xS(r,c,d,i),renderState:a()};return s&&(f.onMount=m=>s({props:r,current:m,...f}),f.onUpdate=m=>s(m)),f}const lh=i=>(a,s)=>{const r=U.useContext(ps),c=U.useContext(Ya),d=()=>TS(i,a,r,c);return s?d():bo(d)};function xS(i,a,s,r){const c={},d=r(i,{});for(const S in d)c[S]=vs(d[S]);let{initial:f,animate:m}=i;const g=ys(i),p=Id(i);a&&p&&!g&&i.inherit!==!1&&(f===void 0&&(f=a.initial),m===void 0&&(m=a.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const b=v?m:f;if(b&&typeof b!="boolean"&&!gs(b)){const S=Array.isArray(b)?b:[b];for(let M=0;M<S.length;M++){const L=zo(i,S[M]);if(L){const{transitionEnd:w,transition:H,...Y}=L;for(const Q in Y){let K=Y[Q];if(Array.isArray(K)){const $=v?K.length-1:0;K=K[$]}K!==null&&(c[Q]=K)}for(const Q in w)c[Q]=w[Q]}}}return c}const Gi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ci=new Set(Gi),sh=i=>a=>typeof a=="string"&&a.startsWith(i),rh=sh("--"),ES=sh("var(--"),wo=i=>ES(i)?AS.test(i.split("/*")[0].trim()):!1,AS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oh=(i,a)=>a&&typeof i=="number"?a.transform(i):i,sn=(i,a,s)=>s>a?a:s<i?i:s,Yi={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Za={...Yi,transform:i=>sn(0,1,i)},bs={...Yi,default:1},Qa=i=>({test:a=>typeof a=="string"&&a.endsWith(i)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${i}`}),Ln=Qa("deg"),$e=Qa("%"),rt=Qa("px"),MS=Qa("vh"),CS=Qa("vw"),uh={...$e,parse:i=>$e.parse(i)/100,transform:i=>$e.transform(i*100)},DS={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,backgroundPositionX:rt,backgroundPositionY:rt},zS={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:Ln,skewX:Ln,skewY:Ln,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Za,originX:uh,originY:uh,originZ:rt},ch={...Yi,transform:Math.round},_o={...DS,...zS,zIndex:ch,size:rt,fillOpacity:Za,strokeOpacity:Za,numOctaves:ch},OS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wS=Gi.length;function _S(i,a,s){let r="",c=!0;for(let d=0;d<wS;d++){const f=Gi[d],m=i[f];if(m===void 0)continue;let g=!0;if(typeof m=="number"?g=m===(f.startsWith("scale")?1:0):g=parseFloat(m)===0,!g||s){const p=oh(m,_o[f]);if(!g){c=!1;const v=OS[f]||f;r+=`${v}(${p}) `}s&&(a[f]=p)}}return r=r.trim(),s?r=s(a,c?"":r):c&&(r="none"),r}function Ro(i,a,s){const{style:r,vars:c,transformOrigin:d}=i;let f=!1,m=!1;for(const g in a){const p=a[g];if(ci.has(g)){f=!0;continue}else if(rh(g)){c[g]=p;continue}else{const v=oh(p,_o[g]);g.startsWith("origin")?(m=!0,d[g]=v):r[g]=v}}if(a.transform||(f||s?r.transform=_S(a,i.transform,s):r.transform&&(r.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:v=0}=d;r.transformOrigin=`${g} ${p} ${v}`}}const RS={offset:"stroke-dashoffset",array:"stroke-dasharray"},VS={offset:"strokeDashoffset",array:"strokeDasharray"};function LS(i,a,s=1,r=0,c=!0){i.pathLength=1;const d=c?RS:VS;i[d.offset]=rt.transform(-r);const f=rt.transform(a),m=rt.transform(s);i[d.array]=`${f} ${m}`}function fh(i,a,s){return typeof i=="string"?i:rt.transform(a+s*i)}function jS(i,a,s){const r=fh(a,i.x,i.width),c=fh(s,i.y,i.height);return`${r} ${c}`}function Vo(i,{attrX:a,attrY:s,attrScale:r,originX:c,originY:d,pathLength:f,pathSpacing:m=1,pathOffset:g=0,...p},v,b){if(Ro(i,p,b),v){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:S,style:M,dimensions:L}=i;S.transform&&(L&&(M.transform=S.transform),delete S.transform),L&&(c!==void 0||d!==void 0||M.transform)&&(M.transformOrigin=jS(L,c!==void 0?c:.5,d!==void 0?d:.5)),a!==void 0&&(S.x=a),s!==void 0&&(S.y=s),r!==void 0&&(S.scale=r),f!==void 0&&LS(S,f,m,g,!1)}const Lo=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),dh=()=>({...Lo(),attrs:{}}),jo=i=>typeof i=="string"&&i.toLowerCase()==="svg";function hh(i,{style:a,vars:s},r,c){Object.assign(i.style,a,c&&c.getProjectionStyles(r));for(const d in s)i.style.setProperty(d,s[d])}const mh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ph(i,a,s,r){hh(i,a,void 0,r);for(const c in a.attrs)i.setAttribute(mh.has(c)?c:Mo(c),a.attrs[c])}const Ss={};function US(i){Object.assign(Ss,i)}function gh(i,{layout:a,layoutId:s}){return ci.has(i)||i.startsWith("origin")||(a||s!==void 0)&&(!!Ss[i]||i==="opacity")}function Uo(i,a,s){var r;const{style:c}=i,d={};for(const f in c)(ce(c[f])||a.style&&ce(a.style[f])||gh(f,i)||((r=s?.getValue(f))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(d[f]=c[f]);return d}function yh(i,a,s){const r=Uo(i,a,s);for(const c in i)if(ce(i[c])||ce(a[c])){const d=Gi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[d]=i[c]}return r}function NS(i,a){try{a.dimensions=typeof i.getBBox=="function"?i.getBBox():i.getBoundingClientRect()}catch{a.dimensions={x:0,y:0,width:0,height:0}}}const vh=["x","y","width","height","cx","cy","r"],BS={useVisualState:lh({scrapeMotionValuesFromProps:yh,createRenderState:dh,onUpdate:({props:i,prevProps:a,current:s,renderState:r,latestValues:c})=>{if(!s)return;let d=!!i.drag;if(!d){for(const m in c)if(ci.has(m)){d=!0;break}}if(!d)return;let f=!a;if(a)for(let m=0;m<vh.length;m++){const g=vh[m];i[g]!==a[g]&&(f=!0)}f&&Vt.read(()=>{NS(s,r),Vt.render(()=>{Vo(r,c,jo(s.tagName),i.transformTemplate),ph(s,r)})})}})},HS={useVisualState:lh({scrapeMotionValuesFromProps:Uo,createRenderState:Lo})};function bh(i,a,s){for(const r in a)!ce(a[r])&&!gh(r,s)&&(i[r]=a[r])}function qS({transformTemplate:i},a){return U.useMemo(()=>{const s=Lo();return Ro(s,a,i),Object.assign({},s.vars,s.style)},[a])}function GS(i,a){const s=i.style||{},r={};return bh(r,s,i),Object.assign(r,qS(i,a)),r}function YS(i,a){const s={},r=GS(i,a);return i.drag&&i.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(s.tabIndex=0),s.style=r,s}function XS(i,a,s,r){const c=U.useMemo(()=>{const d=dh();return Vo(d,a,jo(r),i.transformTemplate),{...d.attrs,style:{...d.style}}},[a]);if(i.style){const d={};bh(d,i.style,i),c.style={...d,...c.style}}return c}function ZS(i=!1){return(s,r,c,{latestValues:d},f)=>{const g=(Do(s)?XS:YS)(r,d,f,s),p=sS(r,typeof s=="string",i),v=s!==U.Fragment?{...p,...g,ref:c}:{},{children:b}=r,S=U.useMemo(()=>ce(b)?b.get():b,[b]);return U.createElement(s,{...v,children:S})}}function QS(i,a){return function(r,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...Do(r)?BS:HS,preloadedFeatures:i,useRender:ZS(c),createVisualElement:a,Component:r};return mS(f)}}function Sh(i,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==i.length)return!1;for(let r=0;r<s;r++)if(a[r]!==i[r])return!1;return!0}function Ts(i,a,s){const r=i.getProps();return zo(r,a,s!==void 0?s:r.custom,i)}function No(i,a){return i?i[a]||i.default||i:void 0}const Th=new Set(["width","height","top","left","right","bottom",...Gi]);let xs;function KS(){xs=void 0}const Ie={now:()=>(xs===void 0&&Ie.set(ie.isProcessing||tS.useManualTiming?ie.timestamp:performance.now()),xs),set:i=>{xs=i,queueMicrotask(KS)}};function Bo(i,a){i.indexOf(a)===-1&&i.push(a)}function Ho(i,a){const s=i.indexOf(a);s>-1&&i.splice(s,1)}class qo{constructor(){this.subscriptions=[]}add(a){return Bo(this.subscriptions,a),()=>Ho(this.subscriptions,a)}notify(a,s,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](a,s,r);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(a,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function xh(i,a){return a?i*(1e3/a):0}const Eh=30,kS=i=>!isNaN(parseFloat(i));class JS{constructor(a,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,c=!0)=>{const d=Ie.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=Ie.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=kS(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new qo);const r=this.events[a].add(s);return a==="change"?()=>{r(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a,s=!0){!s||!this.passiveEffect?this.updateAndNotify(a,s):this.passiveEffect(a,this.updateAndNotify)}setWithVelocity(a,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Ie.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Eh)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Eh);return xh(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ka(i,a){return new JS(i,a)}function FS(i,a,s){i.hasValue(a)?i.getValue(a).set(s):i.addValue(a,Ka(s))}function PS(i,a){const s=Ts(i,a);let{transitionEnd:r={},transition:c={},...d}=s||{};d={...d,...r};for(const f in d){const m=SS(d[f]);FS(i,f,m)}}function WS(i){return!!(ce(i)&&i.add)}function Go(i,a){const s=i.getValue("willChange");if(WS(s))return s.add(a)}function Ah(i){return i.props[eh]}function Yo(i){let a;return()=>(a===void 0&&(a=i()),a)}const $S=Yo(()=>window.ScrollTimeline!==void 0);class IS{constructor(a){this.stop=()=>this.runAll("stop"),this.animations=a.filter(Boolean)}get finished(){return Promise.all(this.animations.map(a=>"finished"in a?a.finished:a))}getAll(a){return this.animations[0][a]}setAll(a,s){for(let r=0;r<this.animations.length;r++)this.animations[r][a]=s}attachTimeline(a,s){const r=this.animations.map(c=>{if($S()&&c.attachTimeline)return c.attachTimeline(a);if(typeof s=="function")return s(c)});return()=>{r.forEach((c,d)=>{c&&c(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(a){this.setAll("time",a)}get speed(){return this.getAll("speed")}set speed(a){this.setAll("speed",a)}get startTime(){return this.getAll("startTime")}get duration(){let a=0;for(let s=0;s<this.animations.length;s++)a=Math.max(a,this.animations[s].duration);return a}runAll(a){this.animations.forEach(s=>s[a]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class t2 extends IS{then(a,s){return Promise.all(this.animations).then(a).catch(s)}}const rn=i=>i*1e3,on=i=>i/1e3;function Xo(i){return typeof i=="function"}function Mh(i,a){i.timeline=a,i.onfinish=null}const Zo=i=>Array.isArray(i)&&typeof i[0]=="number",e2={linearEasing:void 0};function n2(i,a){const s=Yo(i);return()=>{var r;return(r=e2[a])!==null&&r!==void 0?r:s()}}const Es=n2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xi=(i,a,s)=>{const r=a-i;return r===0?1:(s-i)/r},Ch=(i,a,s=10)=>{let r="";const c=Math.max(Math.round(a/s),2);for(let d=0;d<c;d++)r+=i(Xi(0,c-1,d))+", ";return`linear(${r.substring(0,r.length-2)})`};function Dh(i){return!!(typeof i=="function"&&Es()||!i||typeof i=="string"&&(i in Qo||Es())||Zo(i)||Array.isArray(i)&&i.every(Dh))}const ka=([i,a,s,r])=>`cubic-bezier(${i}, ${a}, ${s}, ${r})`,Qo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ka([0,.65,.55,1]),circOut:ka([.55,0,1,.45]),backIn:ka([.31,.01,.66,-.59]),backOut:ka([.33,1.53,.69,.99])};function zh(i,a){if(i)return typeof i=="function"&&Es()?Ch(i,a):Zo(i)?ka(i):Array.isArray(i)?i.map(s=>zh(s,a)||Qo.easeOut):Qo[i]}const Oh=(i,a,s)=>(((1-3*s+3*a)*i+(3*s-6*a))*i+3*a)*i,i2=1e-7,a2=12;function l2(i,a,s,r,c){let d,f,m=0;do f=a+(s-a)/2,d=Oh(f,r,c)-i,d>0?s=f:a=f;while(Math.abs(d)>i2&&++m<a2);return f}function Ja(i,a,s,r){if(i===a&&s===r)return xe;const c=d=>l2(d,0,1,i,s);return d=>d===0||d===1?d:Oh(c(d),a,r)}const wh=i=>a=>a<=.5?i(2*a)/2:(2-i(2*(1-a)))/2,_h=i=>a=>1-i(1-a),Rh=Ja(.33,1.53,.69,.99),Ko=_h(Rh),Vh=wh(Ko),Lh=i=>(i*=2)<1?.5*Ko(i):.5*(2-Math.pow(2,-10*(i-1))),ko=i=>1-Math.sin(Math.acos(i)),jh=_h(ko),Uh=wh(ko),Nh=i=>/^0[^.\s]+$/u.test(i);function s2(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Nh(i):!0}const Fa=i=>Math.round(i*1e5)/1e5,Jo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function r2(i){return i==null}const o2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fo=(i,a)=>s=>!!(typeof s=="string"&&o2.test(s)&&s.startsWith(i)||a&&!r2(s)&&Object.prototype.hasOwnProperty.call(s,a)),Bh=(i,a,s)=>r=>{if(typeof r!="string")return r;const[c,d,f,m]=r.match(Jo);return{[i]:parseFloat(c),[a]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},u2=i=>sn(0,255,i),Po={...Yi,transform:i=>Math.round(u2(i))},fi={test:Fo("rgb","red"),parse:Bh("red","green","blue"),transform:({red:i,green:a,blue:s,alpha:r=1})=>"rgba("+Po.transform(i)+", "+Po.transform(a)+", "+Po.transform(s)+", "+Fa(Za.transform(r))+")"};function c2(i){let a="",s="",r="",c="";return i.length>5?(a=i.substring(1,3),s=i.substring(3,5),r=i.substring(5,7),c=i.substring(7,9)):(a=i.substring(1,2),s=i.substring(2,3),r=i.substring(3,4),c=i.substring(4,5),a+=a,s+=s,r+=r,c+=c),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const Wo={test:Fo("#"),parse:c2,transform:fi.transform},Zi={test:Fo("hsl","hue"),parse:Bh("hue","saturation","lightness"),transform:({hue:i,saturation:a,lightness:s,alpha:r=1})=>"hsla("+Math.round(i)+", "+$e.transform(Fa(a))+", "+$e.transform(Fa(s))+", "+Fa(Za.transform(r))+")"},fe={test:i=>fi.test(i)||Wo.test(i)||Zi.test(i),parse:i=>fi.test(i)?fi.parse(i):Zi.test(i)?Zi.parse(i):Wo.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?fi.transform(i):Zi.transform(i)},f2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function d2(i){var a,s;return isNaN(i)&&typeof i=="string"&&(((a=i.match(Jo))===null||a===void 0?void 0:a.length)||0)+(((s=i.match(f2))===null||s===void 0?void 0:s.length)||0)>0}const Hh="number",qh="color",h2="var",m2="var(",Gh="${}",p2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pa(i){const a=i.toString(),s=[],r={color:[],number:[],var:[]},c=[];let d=0;const m=a.replace(p2,g=>(fe.test(g)?(r.color.push(d),c.push(qh),s.push(fe.parse(g))):g.startsWith(m2)?(r.var.push(d),c.push(h2),s.push(g)):(r.number.push(d),c.push(Hh),s.push(parseFloat(g))),++d,Gh)).split(Gh);return{values:s,split:m,indexes:r,types:c}}function Yh(i){return Pa(i).values}function Xh(i){const{split:a,types:s}=Pa(i),r=a.length;return c=>{let d="";for(let f=0;f<r;f++)if(d+=a[f],c[f]!==void 0){const m=s[f];m===Hh?d+=Fa(c[f]):m===qh?d+=fe.transform(c[f]):d+=c[f]}return d}}const g2=i=>typeof i=="number"?0:i;function y2(i){const a=Yh(i);return Xh(i)(a.map(g2))}const jn={test:d2,parse:Yh,createTransformer:Xh,getAnimatableNone:y2},v2=new Set(["brightness","contrast","saturate","opacity"]);function b2(i){const[a,s]=i.slice(0,-1).split("(");if(a==="drop-shadow")return i;const[r]=s.match(Jo)||[];if(!r)return i;const c=s.replace(r,"");let d=v2.has(a)?1:0;return r!==s&&(d*=100),a+"("+d+c+")"}const S2=/\b([a-z-]*)\(.*?\)/gu,$o={...jn,getAnimatableNone:i=>{const a=i.match(S2);return a?a.map(b2).join(" "):i}},T2={..._o,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:$o,WebkitFilter:$o},Io=i=>T2[i];function Zh(i,a){let s=Io(i);return s!==$o&&(s=jn),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const x2=new Set(["auto","none","0"]);function E2(i,a,s){let r=0,c;for(;r<i.length&&!c;){const d=i[r];typeof d=="string"&&!x2.has(d)&&Pa(d).values.length&&(c=i[r]),r++}if(c&&s)for(const d of a)i[d]=Zh(s,c)}const Qh=i=>i===Yi||i===rt,Kh=(i,a)=>parseFloat(i.split(", ")[a]),kh=(i,a)=>(s,{transform:r})=>{if(r==="none"||!r)return 0;const c=r.match(/^matrix3d\((.+)\)$/u);if(c)return Kh(c[1],a);{const d=r.match(/^matrix\((.+)\)$/u);return d?Kh(d[1],i):0}},A2=new Set(["x","y","z"]),M2=Gi.filter(i=>!A2.has(i));function C2(i){const a=[];return M2.forEach(s=>{const r=i.getValue(s);r!==void 0&&(a.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),a}const Qi={width:({x:i},{paddingLeft:a="0",paddingRight:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),height:({y:i},{paddingTop:a="0",paddingBottom:s="0"})=>i.max-i.min-parseFloat(a)-parseFloat(s),top:(i,{top:a})=>parseFloat(a),left:(i,{left:a})=>parseFloat(a),bottom:({y:i},{top:a})=>parseFloat(a)+(i.max-i.min),right:({x:i},{left:a})=>parseFloat(a)+(i.max-i.min),x:kh(4,13),y:kh(5,14)};Qi.translateX=Qi.x,Qi.translateY=Qi.y;const di=new Set;let tu=!1,eu=!1;function Jh(){if(eu){const i=Array.from(di).filter(r=>r.needsMeasurement),a=new Set(i.map(r=>r.element)),s=new Map;a.forEach(r=>{const c=C2(r);c.length&&(s.set(r,c),r.render())}),i.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const c=s.get(r);c&&c.forEach(([d,f])=>{var m;(m=r.getValue(d))===null||m===void 0||m.set(f)})}),i.forEach(r=>r.measureEndState()),i.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}eu=!1,tu=!1,di.forEach(i=>i.complete()),di.clear()}function Fh(){di.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(eu=!0)})}function D2(){Fh(),Jh()}class nu{constructor(a,s,r,c,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=r,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(di.add(this),tu||(tu=!0,Vt.read(Fh),Vt.resolveKeyframes(Jh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:r,motionValue:c}=this;for(let d=0;d<a.length;d++)if(a[d]===null)if(d===0){const f=c?.get(),m=a[a.length-1];if(f!==void 0)a[0]=f;else if(r&&s){const g=r.readValue(s,m);g!=null&&(a[0]=g)}a[0]===void 0&&(a[0]=m),c&&f===void 0&&c.set(a[0])}else a[d]=a[d-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),di.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,di.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ph=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i),z2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O2(i){const a=z2.exec(i);if(!a)return[,];const[,s,r,c]=a;return[`--${s??r}`,c]}function Wh(i,a,s=1){const[r,c]=O2(i);if(!r)return;const d=window.getComputedStyle(a).getPropertyValue(r);if(d){const f=d.trim();return Ph(f)?parseFloat(f):f}return wo(c)?Wh(c,a,s+1):c}const $h=i=>a=>a.test(i),Ih=[Yi,rt,$e,Ln,CS,MS,{test:i=>i==="auto",parse:i=>i}],tm=i=>Ih.find($h(i));class em extends nu{constructor(a,s,r,c,d){super(a,s,r,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let p=a[g];if(typeof p=="string"&&(p=p.trim(),wo(p))){const v=Wh(p,s.current);v!==void 0&&(a[g]=v),g===a.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Th.has(r)||a.length!==2)return;const[c,d]=a,f=tm(c),m=tm(d);if(f!==m)if(Qh(f)&&Qh(m))for(let g=0;g<a.length;g++){const p=a[g];typeof p=="string"&&(a[g]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,r=[];for(let c=0;c<a.length;c++)s2(a[c])&&r.push(c);r.length&&E2(a,r,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qi[r](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&a.getValue(r,c).jump(c,!1)}measureEndState(){var a;const{element:s,name:r,unresolvedKeyframes:c}=this;if(!s||!s.current)return;const d=s.getValue(r);d&&d.jump(this.measuredOrigin,!1);const f=c.length-1,m=c[f];c[f]=Qi[r](s.measureViewportBox(),window.getComputedStyle(s.current)),m!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=m),!((a=this.removedTransforms)===null||a===void 0)&&a.length&&this.removedTransforms.forEach(([g,p])=>{s.getValue(g).set(p)}),this.resolveNoneKeyframes()}}const nm=(i,a)=>a==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(jn.test(i)||i==="0")&&!i.startsWith("url("));function w2(i){const a=i[0];if(i.length===1)return!0;for(let s=0;s<i.length;s++)if(i[s]!==a)return!0}function _2(i,a,s,r){const c=i[0];if(c===null)return!1;if(a==="display"||a==="visibility")return!0;const d=i[i.length-1],f=nm(c,a),m=nm(d,a);return!f||!m?!1:w2(i)||(s==="spring"||Xo(s))&&r}const R2=i=>i!==null;function As(i,{repeat:a,repeatType:s="loop"},r){const c=i.filter(R2),d=a&&s!=="loop"&&a%2===1?0:c.length-1;return!d||r===void 0?c[d]:r}const V2=40;class im{constructor({autoplay:a=!0,delay:s=0,type:r="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",...m}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ie.now(),this.options={autoplay:a,delay:s,type:r,repeat:c,repeatDelay:d,repeatType:f,...m},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>V2?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&D2(),this._resolved}onKeyframesResolved(a,s){this.resolvedAt=Ie.now(),this.hasAttemptedResolve=!0;const{name:r,type:c,velocity:d,delay:f,onComplete:m,onUpdate:g,isGenerator:p}=this.options;if(!p&&!_2(a,r,c,d))if(f)this.options.duration=0;else{g&&g(As(a,this.options,s)),m&&m(),this.resolveFinishedPromise();return}const v=this.initPlayback(a,s);v!==!1&&(this._resolved={keyframes:a,finalKeyframe:s,...v},this.onPostResolved())}onPostResolved(){}then(a,s){return this.currentFinishedPromise.then(a,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(a=>{this.resolveFinishedPromise=a})}}const iu=2e4;function am(i){let a=0;const s=50;let r=i.next(a);for(;!r.done&&a<iu;)a+=s,r=i.next(a);return a>=iu?1/0:a}const Ht=(i,a,s)=>i+(a-i)*s;function au(i,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(a-i)*6*s:s<1/2?a:s<2/3?i+(a-i)*(2/3-s)*6:i}function L2({hue:i,saturation:a,lightness:s,alpha:r}){i/=360,a/=100,s/=100;let c=0,d=0,f=0;if(!a)c=d=f=s;else{const m=s<.5?s*(1+a):s+a-s*a,g=2*s-m;c=au(g,m,i+1/3),d=au(g,m,i),f=au(g,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:r}}function Ms(i,a){return s=>s>0?a:i}const lu=(i,a,s)=>{const r=i*i,c=s*(a*a-r)+r;return c<0?0:Math.sqrt(c)},j2=[Wo,fi,Zi],U2=i=>j2.find(a=>a.test(i));function lm(i){const a=U2(i);if(!a)return!1;let s=a.parse(i);return a===Zi&&(s=L2(s)),s}const sm=(i,a)=>{const s=lm(i),r=lm(a);if(!s||!r)return Ms(i,a);const c={...s};return d=>(c.red=lu(s.red,r.red,d),c.green=lu(s.green,r.green,d),c.blue=lu(s.blue,r.blue,d),c.alpha=Ht(s.alpha,r.alpha,d),fi.transform(c))},N2=(i,a)=>s=>a(i(s)),Wa=(...i)=>i.reduce(N2),su=new Set(["none","hidden"]);function B2(i,a){return su.has(i)?s=>s<=0?i:a:s=>s>=1?a:i}function H2(i,a){return s=>Ht(i,a,s)}function ru(i){return typeof i=="number"?H2:typeof i=="string"?wo(i)?Ms:fe.test(i)?sm:Y2:Array.isArray(i)?rm:typeof i=="object"?fe.test(i)?sm:q2:Ms}function rm(i,a){const s=[...i],r=s.length,c=i.map((d,f)=>ru(d)(d,a[f]));return d=>{for(let f=0;f<r;f++)s[f]=c[f](d);return s}}function q2(i,a){const s={...i,...a},r={};for(const c in s)i[c]!==void 0&&a[c]!==void 0&&(r[c]=ru(i[c])(i[c],a[c]));return c=>{for(const d in r)s[d]=r[d](c);return s}}function G2(i,a){var s;const r=[],c={color:0,var:0,number:0};for(let d=0;d<a.values.length;d++){const f=a.types[d],m=i.indexes[f][c[f]],g=(s=i.values[m])!==null&&s!==void 0?s:0;r[d]=g,c[f]++}return r}const Y2=(i,a)=>{const s=jn.createTransformer(a),r=Pa(i),c=Pa(a);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?su.has(i)&&!c.values.length||su.has(a)&&!r.values.length?B2(i,a):Wa(rm(G2(r,c),c.values),s):Ms(i,a)};function om(i,a,s){return typeof i=="number"&&typeof a=="number"&&typeof s=="number"?Ht(i,a,s):ru(i)(i,a)}const X2=5;function um(i,a,s){const r=Math.max(a-X2,0);return xh(s-i(r),a-r)}const qt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ou=.001;function Z2({duration:i=qt.duration,bounce:a=qt.bounce,velocity:s=qt.velocity,mass:r=qt.mass}){let c,d,f=1-a;f=sn(qt.minDamping,qt.maxDamping,f),i=sn(qt.minDuration,qt.maxDuration,on(i)),f<1?(c=p=>{const v=p*f,b=v*i,S=v-s,M=uu(p,f),L=Math.exp(-b);return ou-S/M*L},d=p=>{const b=p*f*i,S=b*s+s,M=Math.pow(f,2)*Math.pow(p,2)*i,L=Math.exp(-b),w=uu(Math.pow(p,2),f);return(-c(p)+ou>0?-1:1)*((S-M)*L)/w}):(c=p=>{const v=Math.exp(-p*i),b=(p-s)*i+1;return-ou+v*b},d=p=>{const v=Math.exp(-p*i),b=(s-p)*(i*i);return v*b});const m=5/i,g=K2(c,d,m);if(i=rn(i),isNaN(g))return{stiffness:qt.stiffness,damping:qt.damping,duration:i};{const p=Math.pow(g,2)*r;return{stiffness:p,damping:f*2*Math.sqrt(r*p),duration:i}}}const Q2=12;function K2(i,a,s){let r=s;for(let c=1;c<Q2;c++)r=r-i(r)/a(r);return r}function uu(i,a){return i*Math.sqrt(1-a*a)}const k2=["duration","bounce"],J2=["stiffness","damping","mass"];function cm(i,a){return a.some(s=>i[s]!==void 0)}function F2(i){let a={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...i};if(!cm(i,J2)&&cm(i,k2))if(i.visualDuration){const s=i.visualDuration,r=2*Math.PI/(s*1.2),c=r*r,d=2*sn(.05,1,1-(i.bounce||0))*Math.sqrt(c);a={...a,mass:qt.mass,stiffness:c,damping:d}}else{const s=Z2(i);a={...a,...s,mass:qt.mass},a.isResolvedFromDuration=!0}return a}function fm(i=qt.visualDuration,a=qt.bounce){const s=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:a}:i;let{restSpeed:r,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:g,damping:p,mass:v,duration:b,velocity:S,isResolvedFromDuration:M}=F2({...s,velocity:-on(s.velocity||0)}),L=S||0,w=p/(2*Math.sqrt(g*v)),H=f-d,Y=on(Math.sqrt(g/v)),Q=Math.abs(H)<5;r||(r=Q?qt.restSpeed.granular:qt.restSpeed.default),c||(c=Q?qt.restDelta.granular:qt.restDelta.default);let K;if(w<1){const k=uu(Y,w);K=it=>{const F=Math.exp(-w*Y*it);return f-F*((L+w*Y*H)/k*Math.sin(k*it)+H*Math.cos(k*it))}}else if(w===1)K=k=>f-Math.exp(-Y*k)*(H+(L+Y*H)*k);else{const k=Y*Math.sqrt(w*w-1);K=it=>{const F=Math.exp(-w*Y*it),I=Math.min(k*it,300);return f-F*((L+w*Y*H)*Math.sinh(I)+k*H*Math.cosh(I))/k}}const $={calculatedDuration:M&&b||null,next:k=>{const it=K(k);if(M)m.done=k>=b;else{let F=0;w<1&&(F=k===0?rn(L):um(K,k,it));const I=Math.abs(F)<=r,mt=Math.abs(f-it)<=c;m.done=I&&mt}return m.value=m.done?f:it,m},toString:()=>{const k=Math.min(am($),iu),it=Ch(F=>$.next(k*F).value,k,30);return k+"ms "+it}};return $}function dm({keyframes:i,velocity:a=0,power:s=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:g,restDelta:p=.5,restSpeed:v}){const b=i[0],S={done:!1,value:b},M=I=>m!==void 0&&I<m||g!==void 0&&I>g,L=I=>m===void 0?g:g===void 0||Math.abs(m-I)<Math.abs(g-I)?m:g;let w=s*a;const H=b+w,Y=f===void 0?H:f(H);Y!==H&&(w=Y-b);const Q=I=>-w*Math.exp(-I/r),K=I=>Y+Q(I),$=I=>{const mt=Q(I),_t=K(I);S.done=Math.abs(mt)<=p,S.value=S.done?Y:_t};let k,it;const F=I=>{M(S.value)&&(k=I,it=fm({keyframes:[S.value,L(S.value)],velocity:um(K,I,S.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return F(0),{calculatedDuration:null,next:I=>{let mt=!1;return!it&&k===void 0&&(mt=!0,$(I),F(I)),k!==void 0&&I>=k?it.next(I-k):(!mt&&$(I),S)}}}const P2=Ja(.42,0,1,1),W2=Ja(0,0,.58,1),hm=Ja(.42,0,.58,1),$2=i=>Array.isArray(i)&&typeof i[0]!="number",I2={linear:xe,easeIn:P2,easeInOut:hm,easeOut:W2,circIn:ko,circInOut:Uh,circOut:jh,backIn:Ko,backInOut:Vh,backOut:Rh,anticipate:Lh},mm=i=>{if(Zo(i)){Jd(i.length===4);const[a,s,r,c]=i;return Ja(a,s,r,c)}else if(typeof i=="string")return I2[i];return i};function t5(i,a,s){const r=[],c=s||om,d=i.length-1;for(let f=0;f<d;f++){let m=c(i[f],i[f+1]);if(a){const g=Array.isArray(a)?a[f]||xe:a;m=Wa(g,m)}r.push(m)}return r}function e5(i,a,{clamp:s=!0,ease:r,mixer:c}={}){const d=i.length;if(Jd(d===a.length),d===1)return()=>a[0];if(d===2&&a[0]===a[1])return()=>a[1];const f=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),a=[...a].reverse());const m=t5(a,r,c),g=m.length,p=v=>{if(f&&v<i[0])return a[0];let b=0;if(g>1)for(;b<i.length-2&&!(v<i[b+1]);b++);const S=Xi(i[b],i[b+1],v);return m[b](S)};return s?v=>p(sn(i[0],i[d-1],v)):p}function n5(i,a){const s=i[i.length-1];for(let r=1;r<=a;r++){const c=Xi(0,a,r);i.push(Ht(s,1,c))}}function i5(i){const a=[0];return n5(a,i.length-1),a}function a5(i,a){return i.map(s=>s*a)}function l5(i,a){return i.map(()=>a||hm).splice(0,i.length-1)}function Cs({duration:i=300,keyframes:a,times:s,ease:r="easeInOut"}){const c=$2(r)?r.map(mm):mm(r),d={done:!1,value:a[0]},f=a5(s&&s.length===a.length?s:i5(a),i),m=e5(f,a,{ease:Array.isArray(c)?c:l5(a,c)});return{calculatedDuration:i,next:g=>(d.value=m(g),d.done=g>=i,d)}}const s5=i=>{const a=({timestamp:s})=>i(s);return{start:()=>Vt.update(a,!0),stop:()=>Vn(a),now:()=>ie.isProcessing?ie.timestamp:Ie.now()}},r5={decay:dm,inertia:dm,tween:Cs,keyframes:Cs,spring:fm},o5=i=>i/100;class cu extends im{constructor(a){super(a),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:g}=this.options;g&&g()};const{name:s,motionValue:r,element:c,keyframes:d}=this.options,f=c?.KeyframeResolver||nu,m=(g,p)=>this.onKeyframesResolved(g,p);this.resolver=new f(d,m,s,r,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(a){const{type:s="keyframes",repeat:r=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=this.options,m=Xo(s)?s:r5[s]||Cs;let g,p;m!==Cs&&typeof a[0]!="number"&&(g=Wa(o5,om(a[0],a[1])),a=[0,100]);const v=m({...this.options,keyframes:a});d==="mirror"&&(p=m({...this.options,keyframes:[...a].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=am(v));const{calculatedDuration:b}=v,S=b+c,M=S*(r+1)-c;return{generator:v,mirroredGenerator:p,mapPercentToKeyframes:g,calculatedDuration:b,resolvedDuration:S,totalDuration:M}}onPostResolved(){const{autoplay:a=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!a?this.pause():this.state=this.pendingPlayState}tick(a,s=!1){const{resolved:r}=this;if(!r){const{keyframes:I}=this.options;return{done:!0,value:I[I.length-1]}}const{finalKeyframe:c,generator:d,mirroredGenerator:f,mapPercentToKeyframes:m,keyframes:g,calculatedDuration:p,totalDuration:v,resolvedDuration:b}=r;if(this.startTime===null)return d.next(0);const{delay:S,repeat:M,repeatType:L,repeatDelay:w,onUpdate:H}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-v/this.speed,this.startTime)),s?this.currentTime=a:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(a-this.startTime)*this.speed;const Y=this.currentTime-S*(this.speed>=0?1:-1),Q=this.speed>=0?Y<0:Y>v;this.currentTime=Math.max(Y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,$=d;if(M){const I=Math.min(this.currentTime,v)/b;let mt=Math.floor(I),_t=I%1;!_t&&I>=1&&(_t=1),_t===1&&mt--,mt=Math.min(mt,M+1),mt%2&&(L==="reverse"?(_t=1-_t,w&&(_t-=w/b)):L==="mirror"&&($=f)),K=sn(0,1,_t)*b}const k=Q?{done:!1,value:g[0]}:$.next(K);m&&(k.value=m(k.value));let{done:it}=k;!Q&&p!==null&&(it=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return F&&c!==void 0&&(k.value=As(g,this.options,c)),H&&H(k.value),F&&this.finish(),k}get duration(){const{resolved:a}=this;return a?on(a.calculatedDuration):0}get time(){return on(this.currentTime)}set time(a){a=rn(a),this.currentTime=a,this.holdTime!==null||this.speed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.speed)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;this.playbackSpeed=a,s&&(this.time=on(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:a=s5,onPlay:s,startTime:r}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),s&&s();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var a;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(a=this.currentTime)!==null&&a!==void 0?a:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:a}=this.options;a&&a()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}}const u5=new Set(["opacity","clipPath","filter","transform"]);function c5(i,a,s,{delay:r=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeInOut",times:g}={}){const p={[a]:s};g&&(p.offset=g);const v=zh(m,c);return Array.isArray(v)&&(p.easing=v),i.animate(p,{delay:r,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"})}const f5=Yo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ds=10,d5=2e4;function h5(i){return Xo(i.type)||i.type==="spring"||!Dh(i.ease)}function m5(i,a){const s=new cu({...a,keyframes:i,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:i[0]};const c=[];let d=0;for(;!r.done&&d<d5;)r=s.sample(d),c.push(r.value),d+=Ds;return{times:void 0,keyframes:c,duration:d-Ds,ease:"linear"}}const pm={anticipate:Lh,backInOut:Vh,circInOut:Uh};function p5(i){return i in pm}class gm extends im{constructor(a){super(a);const{name:s,motionValue:r,element:c,keyframes:d}=this.options;this.resolver=new em(d,(f,m)=>this.onKeyframesResolved(f,m),s,r,c),this.resolver.scheduleResolve()}initPlayback(a,s){let{duration:r=300,times:c,ease:d,type:f,motionValue:m,name:g,startTime:p}=this.options;if(!m.owner||!m.owner.current)return!1;if(typeof d=="string"&&Es()&&p5(d)&&(d=pm[d]),h5(this.options)){const{onComplete:b,onUpdate:S,motionValue:M,element:L,...w}=this.options,H=m5(a,w);a=H.keyframes,a.length===1&&(a[1]=a[0]),r=H.duration,c=H.times,d=H.ease,f="keyframes"}const v=c5(m.owner.current,g,a,{...this.options,duration:r,times:c,ease:d});return v.startTime=p??this.calcStartTime(),this.pendingTimeline?(Mh(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:b}=this.options;m.set(As(a,this.options,s)),b&&b(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:r,times:c,type:f,ease:d,keyframes:a}}get duration(){const{resolved:a}=this;if(!a)return 0;const{duration:s}=a;return on(s)}get time(){const{resolved:a}=this;if(!a)return 0;const{animation:s}=a;return on(s.currentTime||0)}set time(a){const{resolved:s}=this;if(!s)return;const{animation:r}=s;r.currentTime=rn(a)}get speed(){const{resolved:a}=this;if(!a)return 1;const{animation:s}=a;return s.playbackRate}set speed(a){const{resolved:s}=this;if(!s)return;const{animation:r}=s;r.playbackRate=a}get state(){const{resolved:a}=this;if(!a)return"idle";const{animation:s}=a;return s.playState}get startTime(){const{resolved:a}=this;if(!a)return null;const{animation:s}=a;return s.startTime}attachTimeline(a){if(!this._resolved)this.pendingTimeline=a;else{const{resolved:s}=this;if(!s)return xe;const{animation:r}=s;Mh(r,a)}return xe}play(){if(this.isStopped)return;const{resolved:a}=this;if(!a)return;const{animation:s}=a;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:a}=this;if(!a)return;const{animation:s}=a;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:a}=this;if(!a)return;const{animation:s,keyframes:r,duration:c,type:d,ease:f,times:m}=a;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:v,onComplete:b,element:S,...M}=this.options,L=new cu({...M,keyframes:r,duration:c,type:d,ease:f,times:m,isGenerator:!0}),w=rn(this.time);p.setWithVelocity(L.sample(w-Ds).value,L.sample(w).value,Ds)}const{onStop:g}=this.options;g&&g(),this.cancel()}complete(){const{resolved:a}=this;a&&a.animation.finish()}cancel(){const{resolved:a}=this;a&&a.animation.cancel()}static supports(a){const{motionValue:s,name:r,repeatDelay:c,repeatType:d,damping:f,type:m}=a;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:p}=s.owner.getProps();return f5()&&r&&u5.has(r)&&!g&&!p&&!c&&d!=="mirror"&&f!==0&&m!=="inertia"}}const g5={type:"spring",stiffness:500,damping:25,restSpeed:10},y5=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),v5={type:"keyframes",duration:.8},b5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S5=(i,{keyframes:a})=>a.length>2?v5:ci.has(i)?i.startsWith("scale")?y5(a[1]):g5:b5;function T5({when:i,delay:a,delayChildren:s,staggerChildren:r,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:m,from:g,elapsed:p,...v}){return!!Object.keys(v).length}const fu=(i,a,s,r={},c,d)=>f=>{const m=No(r,i)||{},g=m.delay||r.delay||0;let{elapsed:p=0}=r;p=p-rn(g);let v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...m,delay:-p,onUpdate:S=>{a.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:i,motionValue:a,element:d?void 0:c};T5(m)||(v={...v,...S5(i,v)}),v.duration&&(v.duration=rn(v.duration)),v.repeatDelay&&(v.repeatDelay=rn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(b=!0)),b&&!d&&a.get()!==void 0){const S=As(v.keyframes,m);if(S!==void 0)return Vt.update(()=>{v.onUpdate(S),v.onComplete()}),new t2([])}return!d&&gm.supports(v)?new gm(v):new cu(v)};function x5({protectedKeys:i,needsAnimating:a},s){const r=i.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,r}function ym(i,a,{delay:s=0,transitionOverride:r,type:c}={}){var d;let{transition:f=i.getDefaultTransition(),transitionEnd:m,...g}=a;r&&(f=r);const p=[],v=c&&i.animationState&&i.animationState.getState()[c];for(const b in g){const S=i.getValue(b,(d=i.latestValues[b])!==null&&d!==void 0?d:null),M=g[b];if(M===void 0||v&&x5(v,b))continue;const L={delay:s,...No(f||{},b)};let w=!1;if(window.MotionHandoffAnimation){const Y=Ah(i);if(Y){const Q=window.MotionHandoffAnimation(Y,b,Vt);Q!==null&&(L.startTime=Q,w=!0)}}Go(i,b),S.start(fu(b,S,M,i.shouldReduceMotion&&Th.has(b)?{type:!1}:L,i,w));const H=S.animation;H&&p.push(H)}return m&&Promise.all(p).then(()=>{Vt.update(()=>{m&&PS(i,m)})}),p}function du(i,a,s={}){var r;const c=Ts(i,a,s.type==="exit"?(r=i.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:d=i.getDefaultTransition()||{}}=c||{};s.transitionOverride&&(d=s.transitionOverride);const f=c?()=>Promise.all(ym(i,c,s)):()=>Promise.resolve(),m=i.variantChildren&&i.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:b,staggerDirection:S}=d;return E5(i,a,v+p,b,S,s)}:()=>Promise.resolve(),{when:g}=d;if(g){const[p,v]=g==="beforeChildren"?[f,m]:[m,f];return p().then(()=>v())}else return Promise.all([f(),m(s.delay)])}function E5(i,a,s=0,r=0,c=1,d){const f=[],m=(i.variantChildren.size-1)*r,g=c===1?(p=0)=>p*r:(p=0)=>m-p*r;return Array.from(i.variantChildren).sort(A5).forEach((p,v)=>{p.notify("AnimationStart",a),f.push(du(p,a,{...d,delay:s+g(v)}).then(()=>p.notify("AnimationComplete",a)))}),Promise.all(f)}function A5(i,a){return i.sortNodePosition(a)}function M5(i,a,s={}){i.notify("AnimationStart",a);let r;if(Array.isArray(a)){const c=a.map(d=>du(i,d,s));r=Promise.all(c)}else if(typeof a=="string")r=du(i,a,s);else{const c=typeof a=="function"?Ts(i,a,s.custom):a;r=Promise.all(ym(i,c,s))}return r.then(()=>{i.notify("AnimationComplete",a)})}const C5=Ao.length;function vm(i){if(!i)return;if(!i.isControllingVariants){const s=i.parent?vm(i.parent)||{}:{};return i.props.initial!==void 0&&(s.initial=i.props.initial),s}const a={};for(let s=0;s<C5;s++){const r=Ao[s],c=i.props[r];(Xa(c)||c===!1)&&(a[r]=c)}return a}const D5=[...Eo].reverse(),z5=Eo.length;function O5(i){return a=>Promise.all(a.map(({animation:s,options:r})=>M5(i,s,r)))}function w5(i){let a=O5(i),s=bm(),r=!0;const c=g=>(p,v)=>{var b;const S=Ts(i,v,g==="exit"?(b=i.presenceContext)===null||b===void 0?void 0:b.custom:void 0);if(S){const{transition:M,transitionEnd:L,...w}=S;p={...p,...w,...L}}return p};function d(g){a=g(i)}function f(g){const{props:p}=i,v=vm(i.parent)||{},b=[],S=new Set;let M={},L=1/0;for(let H=0;H<z5;H++){const Y=D5[H],Q=s[Y],K=p[Y]!==void 0?p[Y]:v[Y],$=Xa(K),k=Y===g?Q.isActive:null;k===!1&&(L=H);let it=K===v[Y]&&K!==p[Y]&&$;if(it&&r&&i.manuallyAnimateOnMount&&(it=!1),Q.protectedKeys={...M},!Q.isActive&&k===null||!K&&!Q.prevProp||gs(K)||typeof K=="boolean")continue;const F=_5(Q.prevProp,K);let I=F||Y===g&&Q.isActive&&!it&&$||H>L&&$,mt=!1;const _t=Array.isArray(K)?K:[K];let Ut=_t.reduce(c(Y),{});k===!1&&(Ut={});const{prevResolvedValues:ct={}}=Q,he={...ct,...Ut},$t=_=>{I=!0,S.has(_)&&(mt=!0,S.delete(_)),Q.needsAnimating[_]=!0;const X=i.getValue(_);X&&(X.liveStyle=!1)};for(const _ in he){const X=Ut[_],J=ct[_];if(M.hasOwnProperty(_))continue;let lt=!1;Oo(X)&&Oo(J)?lt=!Sh(X,J):lt=X!==J,lt?X!=null?$t(_):S.add(_):X!==void 0&&S.has(_)?$t(_):Q.protectedKeys[_]=!0}Q.prevProp=K,Q.prevResolvedValues=Ut,Q.isActive&&(M={...M,...Ut}),r&&i.blockInitialAnimation&&(I=!1),I&&(!(it&&F)||mt)&&b.push(..._t.map(_=>({animation:_,options:{type:Y}})))}if(S.size){const H={};S.forEach(Y=>{const Q=i.getBaseTarget(Y),K=i.getValue(Y);K&&(K.liveStyle=!0),H[Y]=Q??null}),b.push({animation:H})}let w=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(w=!1),r=!1,w?a(b):Promise.resolve()}function m(g,p){var v;if(s[g].isActive===p)return Promise.resolve();(v=i.variantChildren)===null||v===void 0||v.forEach(S=>{var M;return(M=S.animationState)===null||M===void 0?void 0:M.setActive(g,p)}),s[g].isActive=p;const b=f(g);for(const S in s)s[S].protectedKeys={};return b}return{animateChanges:f,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=bm(),r=!0}}}function _5(i,a){return typeof a=="string"?a!==i:Array.isArray(a)?!Sh(a,i):!1}function hi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bm(){return{animate:hi(!0),whileInView:hi(),whileHover:hi(),whileTap:hi(),whileDrag:hi(),whileFocus:hi(),exit:hi()}}class Un{constructor(a){this.isMounted=!1,this.node=a}update(){}}class R5 extends Un{constructor(a){super(a),a.animationState||(a.animationState=w5(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();gs(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)===null||a===void 0||a.call(this)}}let V5=0;class L5 extends Un{constructor(){super(...arguments),this.id=V5++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const c=this.node.animationState.setActive("exit",!a);s&&!a&&c.then(()=>s(this.id))}mount(){const{register:a}=this.node.presenceContext||{};a&&(this.unmount=a(this.id))}unmount(){}}const j5={animation:{Feature:R5},exit:{Feature:L5}},Je={x:!1,y:!1};function Sm(){return Je.x||Je.y}function U5(i){return i==="x"||i==="y"?Je[i]?null:(Je[i]=!0,()=>{Je[i]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const hu=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1;function $a(i,a,s,r={passive:!0}){return i.addEventListener(a,s,r),()=>i.removeEventListener(a,s)}function Ia(i){return{point:{x:i.pageX,y:i.pageY}}}const N5=i=>a=>hu(a)&&i(a,Ia(a));function tl(i,a,s,r){return $a(i,a,N5(s),r)}const Tm=(i,a)=>Math.abs(i-a);function B5(i,a){const s=Tm(i.x,a.x),r=Tm(i.y,a.y);return Math.sqrt(s**2+r**2)}class xm{constructor(a,s,{transformPagePoint:r,contextWindow:c,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=pu(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,M=B5(b.offset,{x:0,y:0})>=3;if(!S&&!M)return;const{point:L}=b,{timestamp:w}=ie;this.history.push({...L,timestamp:w});const{onStart:H,onMove:Y}=this.handlers;S||(H&&H(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,b)},this.handlePointerMove=(b,S)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=mu(S,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(b,S)=>{this.end();const{onEnd:M,onSessionEnd:L,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=pu(b.type==="pointercancel"?this.lastMoveEventInfo:mu(S,this.transformPagePoint),this.history);this.startEvent&&M&&M(b,H),L&&L(b,H)},!hu(a))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=r,this.contextWindow=c||window;const f=Ia(a),m=mu(f,this.transformPagePoint),{point:g}=m,{timestamp:p}=ie;this.history=[{...g,timestamp:p}];const{onSessionStart:v}=s;v&&v(a,pu(m,this.history)),this.removeListeners=Wa(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Vn(this.updatePoint)}}function mu(i,a){return a?{point:a(i.point)}:i}function Em(i,a){return{x:i.x-a.x,y:i.y-a.y}}function pu({point:i},a){return{point:i,delta:Em(i,Am(a)),offset:Em(i,H5(a)),velocity:q5(a,.1)}}function H5(i){return i[0]}function Am(i){return i[i.length-1]}function q5(i,a){if(i.length<2)return{x:0,y:0};let s=i.length-1,r=null;const c=Am(i);for(;s>=0&&(r=i[s],!(c.timestamp-r.timestamp>rn(a)));)s--;if(!r)return{x:0,y:0};const d=on(c.timestamp-r.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-r.x)/d,y:(c.y-r.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const Mm=1e-4,G5=1-Mm,Y5=1+Mm,Cm=.01,X5=0-Cm,Z5=0+Cm;function Ee(i){return i.max-i.min}function Q5(i,a,s){return Math.abs(i-a)<=s}function Dm(i,a,s,r=.5){i.origin=r,i.originPoint=Ht(a.min,a.max,i.origin),i.scale=Ee(s)/Ee(a),i.translate=Ht(s.min,s.max,i.origin)-i.originPoint,(i.scale>=G5&&i.scale<=Y5||isNaN(i.scale))&&(i.scale=1),(i.translate>=X5&&i.translate<=Z5||isNaN(i.translate))&&(i.translate=0)}function el(i,a,s,r){Dm(i.x,a.x,s.x,r?r.originX:void 0),Dm(i.y,a.y,s.y,r?r.originY:void 0)}function zm(i,a,s){i.min=s.min+a.min,i.max=i.min+Ee(a)}function K5(i,a,s){zm(i.x,a.x,s.x),zm(i.y,a.y,s.y)}function Om(i,a,s){i.min=a.min-s.min,i.max=i.min+Ee(a)}function nl(i,a,s){Om(i.x,a.x,s.x),Om(i.y,a.y,s.y)}function k5(i,{min:a,max:s},r){return a!==void 0&&i<a?i=r?Ht(a,i,r.min):Math.max(i,a):s!==void 0&&i>s&&(i=r?Ht(s,i,r.max):Math.min(i,s)),i}function wm(i,a,s){return{min:a!==void 0?i.min+a:void 0,max:s!==void 0?i.max+s-(i.max-i.min):void 0}}function J5(i,{top:a,left:s,bottom:r,right:c}){return{x:wm(i.x,s,c),y:wm(i.y,a,r)}}function _m(i,a){let s=a.min-i.min,r=a.max-i.max;return a.max-a.min<i.max-i.min&&([s,r]=[r,s]),{min:s,max:r}}function F5(i,a){return{x:_m(i.x,a.x),y:_m(i.y,a.y)}}function P5(i,a){let s=.5;const r=Ee(i),c=Ee(a);return c>r?s=Xi(a.min,a.max-r,i.min):r>c&&(s=Xi(i.min,i.max-c,a.min)),sn(0,1,s)}function W5(i,a){const s={};return a.min!==void 0&&(s.min=a.min-i.min),a.max!==void 0&&(s.max=a.max-i.min),s}const gu=.35;function $5(i=gu){return i===!1?i=0:i===!0&&(i=gu),{x:Rm(i,"left","right"),y:Rm(i,"top","bottom")}}function Rm(i,a,s){return{min:Vm(i,a),max:Vm(i,s)}}function Vm(i,a){return typeof i=="number"?i:i[a]||0}const Lm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:Lm(),y:Lm()}),jm=()=>({min:0,max:0}),Xt=()=>({x:jm(),y:jm()});function Le(i){return[i("x"),i("y")]}function Um({top:i,left:a,right:s,bottom:r}){return{x:{min:a,max:s},y:{min:i,max:r}}}function I5({x:i,y:a}){return{top:a.min,right:i.max,bottom:a.max,left:i.min}}function tT(i,a){if(!a)return i;const s=a({x:i.left,y:i.top}),r=a({x:i.right,y:i.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}function yu(i){return i===void 0||i===1}function vu({scale:i,scaleX:a,scaleY:s}){return!yu(i)||!yu(a)||!yu(s)}function mi(i){return vu(i)||Nm(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Nm(i){return Bm(i.x)||Bm(i.y)}function Bm(i){return i&&i!=="0%"}function zs(i,a,s){const r=i-s,c=a*r;return s+c}function Hm(i,a,s,r,c){return c!==void 0&&(i=zs(i,c,r)),zs(i,s,r)+a}function bu(i,a=0,s=1,r,c){i.min=Hm(i.min,a,s,r,c),i.max=Hm(i.max,a,s,r,c)}function qm(i,{x:a,y:s}){bu(i.x,a.translate,a.scale,a.originPoint),bu(i.y,s.translate,s.scale,s.originPoint)}const Gm=.999999999999,Ym=1.0000000000001;function eT(i,a,s,r=!1){const c=s.length;if(!c)return;a.x=a.y=1;let d,f;for(let m=0;m<c;m++){d=s[m],f=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ji(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,qm(i,f)),r&&mi(d.latestValues)&&Ji(i,d.latestValues))}a.x<Ym&&a.x>Gm&&(a.x=1),a.y<Ym&&a.y>Gm&&(a.y=1)}function ki(i,a){i.min=i.min+a,i.max=i.max+a}function Xm(i,a,s,r,c=.5){const d=Ht(i.min,i.max,c);bu(i,a,s,d,r)}function Ji(i,a){Xm(i.x,a.x,a.scaleX,a.scale,a.originX),Xm(i.y,a.y,a.scaleY,a.scale,a.originY)}function Zm(i,a){return Um(tT(i.getBoundingClientRect(),a))}function nT(i,a,s){const r=Zm(i,s),{scroll:c}=a;return c&&(ki(r.x,c.offset.x),ki(r.y,c.offset.y)),r}const Qm=({current:i})=>i?i.ownerDocument.defaultView:null,iT=new WeakMap;class aT{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xt(),this.visualElement=a}start(a,{snapToCursor:s=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ia(v).point)},d=(v,b)=>{const{drag:S,dragPropagation:M,onDragStart:L}=this.getProps();if(S&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=U5(S),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Le(H=>{let Y=this.getAxisMotionValue(H).get()||0;if($e.test(Y)){const{projection:Q}=this.visualElement;if(Q&&Q.layout){const K=Q.layout.layoutBox[H];K&&(Y=Ee(K)*(parseFloat(Y)/100))}}this.originPoint[H]=Y}),L&&Vt.postRender(()=>L(v,b)),Go(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},f=(v,b)=>{const{dragPropagation:S,dragDirectionLock:M,onDirectionLock:L,onDrag:w}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:H}=b;if(M&&this.currentDirection===null){this.currentDirection=lT(H),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",b.point,H),this.updateAxis("y",b.point,H),this.visualElement.render(),w&&w(v,b)},m=(v,b)=>this.stop(v,b),g=()=>Le(v=>{var b;return this.getAnimationState(v)==="paused"&&((b=this.getAxisMotionValue(v).animation)===null||b===void 0?void 0:b.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new xm(a,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:Qm(this.visualElement)})}stop(a,s){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:c}=s;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&Vt.postRender(()=>d(a,s))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(a,s,r){const{drag:c}=this.getProps();if(!r||!Os(a,c,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(f=k5(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){var a;const{dragConstraints:s,dragElastic:r}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)===null||a===void 0?void 0:a.layout,d=this.constraints;s&&qi(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&c?this.constraints=J5(c.layoutBox,s):this.constraints=!1,this.elastic=$5(r),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&Le(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=W5(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!qi(a))return!1;const r=a.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=nT(r,c.root,this.visualElement.getTransformPagePoint());let f=F5(c.layout.layoutBox,d);if(s){const m=s(I5(f));this.hasMutatedConstraints=!!m,m&&(f=Um(m))}return f}startAnimation(a){const{drag:s,dragMomentum:r,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=Le(v=>{if(!Os(v,s,this.currentDirection))return;let b=g&&g[v]||{};f&&(b={min:0,max:0});const S=c?200:1e6,M=c?40:1e7,L={type:"inertia",velocity:r?a[v]:0,bounceStiffness:S,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,L)});return Promise.all(p).then(m)}startAxisValueAnimation(a,s){const r=this.getAxisMotionValue(a);return Go(this.visualElement,a),r.start(fu(a,r,0,s,this.visualElement,!1))}stopAnimation(){Le(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Le(a=>{var s;return(s=this.getAxisMotionValue(a).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(a){var s;return(s=this.getAxisMotionValue(a).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),c=r[s];return c||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Le(s=>{const{drag:r}=this.getProps();if(!Os(s,r,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s];d.set(a[s]-Ht(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!qi(s)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Le(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const g=m.get();c[f]=P5({min:g,max:g},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Le(f=>{if(!Os(f,a,null))return;const m=this.getAxisMotionValue(f),{min:g,max:p}=this.constraints[f];m.set(Ht(g,p,c[f]))})}addListeners(){if(!this.visualElement.current)return;iT.set(this.visualElement,this);const a=this.visualElement.current,s=tl(a,"pointerdown",g=>{const{drag:p,dragListener:v=!0}=this.getProps();p&&v&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();qi(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",r);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Vt.read(r);const f=$a(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:p})=>{this.isDragging&&p&&(Le(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=g[v].translate,b.set(b.get()+g[v].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),m&&m()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=gu,dragMomentum:m=!0}=a;return{...a,drag:s,dragDirectionLock:r,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function Os(i,a,s){return(a===!0||a===i)&&(s===null||s===i)}function lT(i,a=10){let s=null;return Math.abs(i.y)>a?s="y":Math.abs(i.x)>a&&(s="x"),s}class sT extends Un{constructor(a){super(a),this.removeGroupControls=xe,this.removeListeners=xe,this.controls=new aT(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Km=i=>(a,s)=>{i&&Vt.postRender(()=>i(a,s))};class rT extends Un{constructor(){super(...arguments),this.removePointerDownListener=xe}onPointerDown(a){this.session=new xm(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qm(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Km(a),onStart:Km(s),onMove:r,onEnd:(d,f)=>{delete this.session,c&&Vt.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ws={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function km(i,a){return a.max===a.min?0:i/(a.max-a.min)*100}const il={correct:(i,a)=>{if(!a.target)return i;if(typeof i=="string")if(rt.test(i))i=parseFloat(i);else return i;const s=km(i,a.target.x),r=km(i,a.target.y);return`${s}% ${r}%`}},oT={correct:(i,{treeScale:a,projectionDelta:s})=>{const r=i,c=jn.parse(i);if(c.length>5)return r;const d=jn.createTransformer(i),f=typeof c[0]!="number"?1:0,m=s.x.scale*a.x,g=s.y.scale*a.y;c[0+f]/=m,c[1+f]/=g;const p=Ht(m,g,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}};class uT extends U.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r,layoutId:c}=this.props,{projection:d}=a;US(cT),d&&(s.group&&s.group.add(d),r&&r.register&&c&&r.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),ws.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:r,drag:c,isPresent:d}=this.props,f=r.projection;return f&&(f.isPresent=d,c||a.layoutDependency!==s||s===void 0?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||Vt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),Co.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:c}=a;c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Jm(i){const[a,s]=Qd(),r=U.useContext(vo);return at.jsx(uT,{...i,layoutGroup:r,switchLayoutGroup:U.useContext(nh),isPresent:a,safeToRemove:s})}const cT={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:oT};function fT(i,a,s){const r=ce(i)?i:Ka(i);return r.start(fu("",r,a,s)),r.animation}function dT(i){return i instanceof SVGElement&&i.tagName!=="svg"}const hT=(i,a)=>i.depth-a.depth;class mT{constructor(){this.children=[],this.isDirty=!1}add(a){Bo(this.children,a),this.isDirty=!0}remove(a){Ho(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(hT),this.isDirty=!1,this.children.forEach(a)}}function pT(i,a){const s=Ie.now(),r=({timestamp:c})=>{const d=c-s;d>=a&&(Vn(r),i(d-a))};return Vt.read(r,!0),()=>Vn(r)}const Fm=["TopLeft","TopRight","BottomLeft","BottomRight"],gT=Fm.length,Pm=i=>typeof i=="string"?parseFloat(i):i,Wm=i=>typeof i=="number"||rt.test(i);function yT(i,a,s,r,c,d){c?(i.opacity=Ht(0,s.opacity!==void 0?s.opacity:1,vT(r)),i.opacityExit=Ht(a.opacity!==void 0?a.opacity:1,0,bT(r))):d&&(i.opacity=Ht(a.opacity!==void 0?a.opacity:1,s.opacity!==void 0?s.opacity:1,r));for(let f=0;f<gT;f++){const m=`border${Fm[f]}Radius`;let g=$m(a,m),p=$m(s,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||Wm(g)===Wm(p)?(i[m]=Math.max(Ht(Pm(g),Pm(p),r),0),($e.test(p)||$e.test(g))&&(i[m]+="%")):i[m]=p}(a.rotate||s.rotate)&&(i.rotate=Ht(a.rotate||0,s.rotate||0,r))}function $m(i,a){return i[a]!==void 0?i[a]:i.borderRadius}const vT=Im(0,.5,jh),bT=Im(.5,.95,xe);function Im(i,a,s){return r=>r<i?0:r>a?1:s(Xi(i,a,r))}function tp(i,a){i.min=a.min,i.max=a.max}function je(i,a){tp(i.x,a.x),tp(i.y,a.y)}function ep(i,a){i.translate=a.translate,i.scale=a.scale,i.originPoint=a.originPoint,i.origin=a.origin}function np(i,a,s,r,c){return i-=a,i=zs(i,1/s,r),c!==void 0&&(i=zs(i,1/c,r)),i}function ST(i,a=0,s=1,r=.5,c,d=i,f=i){if($e.test(a)&&(a=parseFloat(a),a=Ht(f.min,f.max,a/100)-f.min),typeof a!="number")return;let m=Ht(d.min,d.max,r);i===d&&(m-=a),i.min=np(i.min,a,s,m,c),i.max=np(i.max,a,s,m,c)}function ip(i,a,[s,r,c],d,f){ST(i,a[s],a[r],a[c],a.scale,d,f)}const TT=["x","scaleX","originX"],xT=["y","scaleY","originY"];function ap(i,a,s,r){ip(i.x,a,TT,s?s.x:void 0,r?r.x:void 0),ip(i.y,a,xT,s?s.y:void 0,r?r.y:void 0)}function lp(i){return i.translate===0&&i.scale===1}function sp(i){return lp(i.x)&&lp(i.y)}function rp(i,a){return i.min===a.min&&i.max===a.max}function ET(i,a){return rp(i.x,a.x)&&rp(i.y,a.y)}function op(i,a){return Math.round(i.min)===Math.round(a.min)&&Math.round(i.max)===Math.round(a.max)}function up(i,a){return op(i.x,a.x)&&op(i.y,a.y)}function cp(i){return Ee(i.x)/Ee(i.y)}function fp(i,a){return i.translate===a.translate&&i.scale===a.scale&&i.originPoint===a.originPoint}class AT{constructor(){this.members=[]}add(a){Bo(this.members,a),a.scheduleRender()}remove(a){if(Ho(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){const s=this.members.findIndex(c=>a===c);if(s===0)return!1;let r;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){r=d;break}}return r?(this.promote(r),!0):!1}promote(a,s){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,s&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:c}=a.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:s,resumingFrom:r}=a;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MT(i,a,s){let r="";const c=i.x.translate/a.x,d=i.y.translate/a.y,f=s?.z||0;if((c||d||f)&&(r=`translate3d(${c}px, ${d}px, ${f}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:S,skewX:M,skewY:L}=s;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),M&&(r+=`skewX(${M}deg) `),L&&(r+=`skewY(${L}deg) `)}const m=i.x.scale*a.x,g=i.y.scale*a.y;return(m!==1||g!==1)&&(r+=`scale(${m}, ${g})`),r||"none"}const pi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},al=typeof window<"u"&&window.MotionDebug!==void 0,Su=["","X","Y","Z"],CT={visibility:"hidden"},dp=1e3;let DT=0;function Tu(i,a,s,r){const{latestValues:c}=a;c[i]&&(s[i]=c[i],a.setStaticValue(i,0),r&&(r[i]=0))}function hp(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:a}=i.options;if(!a)return;const s=Ah(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(s,"transform",Vt,!(c||d))}const{parent:r}=i;r&&!r.hasCheckedOptimisedAppear&&hp(r)}function mp({attachResizeListener:i,defaultParent:a,measureScroll:s,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(f={},m=a?.()){this.id=DT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,al&&(pi.totalNodes=pi.resolvedTargetDeltas=pi.recalculatedProjection=0),this.nodes.forEach(wT),this.nodes.forEach(jT),this.nodes.forEach(UT),this.nodes.forEach(_T),al&&window.MotionDebug.record(pi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new mT)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new qo),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const g=this.eventHandlers.get(f);g&&g.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f,m=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=dT(f),this.instance=f;const{layoutId:g,layout:p,visualElement:v}=this.options;if(v&&!v.current&&v.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),m&&(p||g)&&(this.isLayoutDirty=!0),i){let b;const S=()=>this.root.updateBlockedByResize=!1;i(f,()=>{this.root.updateBlockedByResize=!0,b&&b(),b=pT(S,250),ws.hasAnimatedSinceResize&&(ws.hasAnimatedSinceResize=!1,this.nodes.forEach(gp))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&v&&(g||p)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:S,hasRelativeTargetChanged:M,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||v.getDefaultTransition()||GT,{onLayoutAnimationStart:H,onLayoutAnimationComplete:Y}=v.getProps(),Q=!this.targetLayout||!up(this.targetLayout,L)||M,K=!S&&M;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||S&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(b,K);const $={...No(w,"layout"),onPlay:H,onComplete:Y};(v.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else S||gp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=L})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NT),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pp);return}this.isUpdating||this.nodes.forEach(VT),this.isUpdating=!1,this.nodes.forEach(LT),this.nodes.forEach(zT),this.nodes.forEach(OT),this.clearAllSnapshots();const m=Ie.now();ie.delta=sn(0,1e3/60,m-ie.timestamp),ie.timestamp=m,ie.isProcessing=!0,xo.update.process(ie),xo.preRender.process(ie),xo.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Co.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(RT),this.sharedNodes.forEach(BT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:g,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!sp(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&(m||mi(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return f&&(g=this.removeTransform(g)),YT(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:m}=this.options;if(!m)return Xt();const g=m.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(XT))){const{scroll:v}=this.root;v&&(ki(g.x,v.offset.x),ki(g.y,v.offset.y))}return g}removeElementScroll(f){var m;const g=Xt();if(je(g,f),!((m=this.scroll)===null||m===void 0)&&m.wasRoot)return g;for(let p=0;p<this.path.length;p++){const v=this.path[p],{scroll:b,options:S}=v;v!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&je(g,f),ki(g.x,b.offset.x),ki(g.y,b.offset.y))}return g}applyTransform(f,m=!1){const g=Xt();je(g,f);for(let p=0;p<this.path.length;p++){const v=this.path[p];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ji(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),mi(v.latestValues)&&Ji(g,v.latestValues)}return mi(this.latestValues)&&Ji(g,this.latestValues),g}removeTransform(f){const m=Xt();je(m,f);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!p.instance||!mi(p.latestValues))continue;vu(p.latestValues)&&p.updateSnapshot();const v=Xt(),b=p.measurePageBox();je(v,b),ap(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return mi(this.latestValues)&&ap(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var m;const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==g;if(!(f||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((m=this.parent)===null||m===void 0)&&m.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:S}=this.options;if(!(!this.layout||!(b||S))){if(this.resolvedRelativeTargetAt=ie.timestamp,!this.targetDelta&&!this.relativeTarget){const M=this.getClosestProjectingParent();M&&M.layout&&this.animationProgress!==1?(this.relativeParent=M,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xt(),this.relativeTargetOrigin=Xt(),nl(this.relativeTargetOrigin,this.layout.layoutBox,M.layout.layoutBox),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xt(),this.targetWithTransforms=Xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),K5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):je(this.target,this.layout.layoutBox),qm(this.target,this.targetDelta)):je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const M=this.getClosestProjectingParent();M&&!!M.resumingFrom==!!this.resumingFrom&&!M.options.layoutScroll&&M.target&&this.animationProgress!==1?(this.relativeParent=M,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xt(),this.relativeTargetOrigin=Xt(),nl(this.relativeTargetOrigin,this.target,M.target),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}al&&pi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vu(this.parent.latestValues)||Nm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var f;const m=this.getLead(),g=!!this.resumingFrom||this!==m;let p=!0;if((this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty)&&(p=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(p=!1),p)return;const{layout:v,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||b))return;je(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,M=this.treeScale.y;eT(this.layoutCorrected,this.treeScale,this.path,g),m.layout&&!m.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(m.target=m.layout.layoutBox,m.targetWithTransforms=Xt());const{target:L}=m;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ep(this.prevProjectionDelta.x,this.projectionDelta.x),ep(this.prevProjectionDelta.y,this.projectionDelta.y)),el(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==M||!fp(this.projectionDelta.x,this.prevProjectionDelta.x)||!fp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L)),al&&pi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var m;if((m=this.options.visualElement)===null||m===void 0||m.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(f,m=!1){const g=this.snapshot,p=g?g.latestValues:{},v={...this.latestValues},b=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const S=Xt(),M=g?g.source:void 0,L=this.layout?this.layout.source:void 0,w=M!==L,H=this.getStack(),Y=!H||H.members.length<=1,Q=!!(w&&!Y&&this.options.crossfade===!0&&!this.path.some(qT));this.animationProgress=0;let K;this.mixTargetDelta=$=>{const k=$/1e3;yp(b.x,f.x,k),yp(b.y,f.y,k),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nl(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),HT(this.relativeTarget,this.relativeTargetOrigin,S,k),K&&ET(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=Xt()),je(K,this.relativeTarget)),w&&(this.animationValues=v,yT(v,p,this.latestValues,k,Q,Y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{ws.hasAnimatedSinceResize=!0,this.currentAnimation=fT(0,dp,{...f,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:v}=f;if(!(!m||!g||!p)){if(this!==f&&this.layout&&p&&xp(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||Xt();const b=Ee(this.layout.layoutBox.x);g.x.min=f.target.x.min,g.x.max=g.x.min+b;const S=Ee(this.layout.layoutBox.y);g.y.min=f.target.y.min,g.y.max=g.y.min+S}je(m,g),Ji(m,v),el(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new AT),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:m}=this.options;return m?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:m}=this.options;return m?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:g}=f;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&Tu("z",f,p,this.animationValues);for(let v=0;v<Su.length;v++)Tu(`rotate${Su[v]}`,f,p,this.animationValues),Tu(`skew${Su[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);f.scheduleRender()}getProjectionStyles(f){var m,g;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CT;const p={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=vs(f?.pointerEvents)||"",p.transform=v?v(this.latestValues,""):"none",p;const b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=vs(f?.pointerEvents)||""),this.hasProjected&&!mi(this.latestValues)&&(w.transform=v?v({},""):"none",this.hasProjected=!1),w}const S=b.animationValues||b.latestValues;this.applyTransformsToTarget(),p.transform=MT(this.projectionDeltaWithTransform,this.treeScale,S),v&&(p.transform=v(S,p.transform));const{x:M,y:L}=this.projectionDelta;p.transformOrigin=`${M.origin*100}% ${L.origin*100}% 0`,b.animationValues?p.opacity=b===this?(g=(m=S.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:p.opacity=b===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const w in Ss){if(S[w]===void 0)continue;const{correct:H,applyTo:Y}=Ss[w],Q=p.transform==="none"?S[w]:H(S[w],b);if(Y){const K=Y.length;for(let $=0;$<K;$++)p[Y[$]]=Q}else p[w]=Q}return this.options.layoutId&&(p.pointerEvents=b===this?vs(f?.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)===null||m===void 0?void 0:m.stop()}),this.root.nodes.forEach(pp),this.root.sharedNodes.clear()}}}function zT(i){i.updateLayout()}function OT(i){var a;const s=((a=i.resumeFrom)===null||a===void 0?void 0:a.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&s&&i.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:c}=i.layout,{animationType:d}=i.options,f=s.source!==i.layout.source;d==="size"?Le(b=>{const S=f?s.measuredBox[b]:s.layoutBox[b],M=Ee(S);S.min=r[b].min,S.max=S.min+M}):xp(d,s.layoutBox,r)&&Le(b=>{const S=f?s.measuredBox[b]:s.layoutBox[b],M=Ee(r[b]);S.max=S.min+M,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[b].max=i.relativeTarget[b].min+M)});const m=Ki();el(m,r,s.layoutBox);const g=Ki();f?el(g,i.applyTransform(c,!0),s.measuredBox):el(g,r,s.layoutBox);const p=!sp(m);let v=!1;if(!i.resumeFrom){const b=i.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:M}=b;if(S&&M){const L=Xt();nl(L,s.layoutBox,S.layoutBox);const w=Xt();nl(w,r,M.layoutBox),up(L,w)||(v=!0),b.options.layoutRoot&&(i.relativeTarget=w,i.relativeTargetOrigin=L,i.relativeParent=b)}}}i.notifyListeners("didUpdate",{layout:r,snapshot:s,delta:g,layoutDelta:m,hasLayoutChanged:p,hasRelativeTargetChanged:v})}else if(i.isLead()){const{onExitComplete:r}=i.options;r&&r()}i.options.transition=void 0}function wT(i){al&&pi.totalNodes++,i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function _T(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function RT(i){i.clearSnapshot()}function pp(i){i.clearMeasurements()}function VT(i){i.isLayoutDirty=!1}function LT(i){const{visualElement:a}=i.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),i.resetTransform()}function gp(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function jT(i){i.resolveTargetDelta()}function UT(i){i.calcProjection()}function NT(i){i.resetSkewAndRotation()}function BT(i){i.removeLeadSnapshot()}function yp(i,a,s){i.translate=Ht(a.translate,0,s),i.scale=Ht(a.scale,1,s),i.origin=a.origin,i.originPoint=a.originPoint}function vp(i,a,s,r){i.min=Ht(a.min,s.min,r),i.max=Ht(a.max,s.max,r)}function HT(i,a,s,r){vp(i.x,a.x,s.x,r),vp(i.y,a.y,s.y,r)}function qT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const GT={duration:.45,ease:[.4,0,.1,1]},bp=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Sp=bp("applewebkit/")&&!bp("chrome/")?Math.round:xe;function Tp(i){i.min=Sp(i.min),i.max=Sp(i.max)}function YT(i){Tp(i.x),Tp(i.y)}function xp(i,a,s){return i==="position"||i==="preserve-aspect"&&!Q5(cp(a),cp(s),.2)}function XT(i){var a;return i!==i.root&&((a=i.scroll)===null||a===void 0?void 0:a.wasRoot)}const ZT=mp({attachResizeListener:(i,a)=>$a(i,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xu={current:void 0},Ep=mp({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!xu.current){const i=new ZT({});i.mount(window),i.setOptions({layoutScroll:!0}),xu.current=i}return xu.current},resetTransform:(i,a)=>{i.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),QT={pan:{Feature:rT},drag:{Feature:sT,ProjectionNode:Ep,MeasureLayout:Jm}};function KT(i,a,s){var r;if(i instanceof Element)return[i];if(typeof i=="string"){let c=document;const d=(r=void 0)!==null&&r!==void 0?r:c.querySelectorAll(i);return d?Array.from(d):[]}return Array.from(i)}function Ap(i,a){const s=KT(i),r=new AbortController,c={passive:!0,...a,signal:r.signal};return[s,c,()=>r.abort()]}function Mp(i){return a=>{a.pointerType==="touch"||Sm()||i(a)}}function kT(i,a,s={}){const[r,c,d]=Ap(i,s),f=Mp(m=>{const{target:g}=m,p=a(m);if(typeof p!="function"||!g)return;const v=Mp(b=>{p(b),g.removeEventListener("pointerleave",v)});g.addEventListener("pointerleave",v,c)});return r.forEach(m=>{m.addEventListener("pointerenter",f,c)}),d}function Cp(i,a,s){const{props:r}=i;i.animationState&&r.whileHover&&i.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=r[c];d&&Vt.postRender(()=>d(a,Ia(a)))}class JT extends Un{mount(){const{current:a}=this.node;a&&(this.unmount=kT(a,s=>(Cp(this.node,s,"Start"),r=>Cp(this.node,r,"End"))))}unmount(){}}class FT extends Un{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wa($a(this.node.current,"focus",()=>this.onFocus()),$a(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dp=(i,a)=>a?i===a?!0:Dp(i,a.parentElement):!1,PT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WT(i){return PT.has(i.tagName)||i.tabIndex!==-1}const ll=new WeakSet;function zp(i){return a=>{a.key==="Enter"&&i(a)}}function Eu(i,a){i.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const $T=(i,a)=>{const s=i.currentTarget;if(!s)return;const r=zp(()=>{if(ll.has(s))return;Eu(s,"down");const c=zp(()=>{Eu(s,"up")}),d=()=>Eu(s,"cancel");s.addEventListener("keyup",c,a),s.addEventListener("blur",d,a)});s.addEventListener("keydown",r,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),a)};function Op(i){return hu(i)&&!Sm()}function IT(i,a,s={}){const[r,c,d]=Ap(i,s),f=m=>{const g=m.currentTarget;if(!Op(m)||ll.has(g))return;ll.add(g);const p=a(m),v=(M,L)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),!(!Op(M)||!ll.has(g))&&(ll.delete(g),typeof p=="function"&&p(M,{success:L}))},b=M=>{v(M,s.useGlobalTarget||Dp(g,M.target))},S=M=>{v(M,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return r.forEach(m=>{!WT(m)&&m.getAttribute("tabindex")===null&&(m.tabIndex=0),(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),m.addEventListener("focus",p=>$T(p,c),c)}),d}function wp(i,a,s){const{props:r}=i;i.animationState&&r.whileTap&&i.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=r[c];d&&Vt.postRender(()=>d(a,Ia(a)))}class tx extends Un{mount(){const{current:a}=this.node;a&&(this.unmount=IT(a,s=>(wp(this.node,s,"Start"),(r,{success:c})=>wp(this.node,r,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Au=new WeakMap,Mu=new WeakMap,ex=i=>{const a=Au.get(i.target);a&&a(i)},nx=i=>{i.forEach(ex)};function ix({root:i,...a}){const s=i||document;Mu.has(s)||Mu.set(s,{});const r=Mu.get(s),c=JSON.stringify(a);return r[c]||(r[c]=new IntersectionObserver(nx,{root:i,...a})),r[c]}function ax(i,a,s){const r=ix(a);return Au.set(i,s),r.observe(i),()=>{Au.delete(i),r.unobserve(i)}}const lx={some:0,all:1};class sx extends Un{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:s,margin:r,amount:c="some",once:d}=a,f={root:s?s.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:lx[c]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),S=p?v:b;S&&S(g)};return ax(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(rx(a,s))&&this.startObserver()}unmount(){}}function rx({viewport:i={}},{viewport:a={}}={}){return s=>i[s]!==a[s]}const ox={inView:{Feature:sx},tap:{Feature:tx},focus:{Feature:FT},hover:{Feature:JT}},ux={layout:{ProjectionNode:Ep,MeasureLayout:Jm}},Cu={current:null},_p={current:!1};function cx(){if(_p.current=!0,!!To)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),a=()=>Cu.current=i.matches;i.addListener(a),a()}else Cu.current=!1}const fx=[...Ih,fe,jn],dx=i=>fx.find($h(i)),Rp=new WeakMap;function hx(i,a,s){for(const r in a){const c=a[r],d=s[r];if(ce(c))i.addValue(r,c);else if(ce(d))i.addValue(r,Ka(c,{owner:i}));else if(d!==c)if(i.hasValue(r)){const f=i.getValue(r);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=i.getStaticValue(r);i.addValue(r,Ka(f!==void 0?f:c,{owner:i}))}}for(const r in s)a[r]===void 0&&i.removeValue(r);return a}const Vp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mx{scrapeMotionValuesFromProps(a,s,r){return{}}constructor({parent:a,props:s,presenceContext:r,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const M=Ie.now();this.renderScheduledAt<M&&(this.renderScheduledAt=M,Vt.render(this.render,!1,!0))};const{latestValues:g,renderState:p,onUpdate:v}=f;this.onUpdate=v,this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=p,this.parent=a,this.props=s,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=c,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=ys(s),this.isVariantNode=Id(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const M in S){const L=S[M];g[M]!==void 0&&ce(L)&&L.set(g[M],!1)}}mount(a){this.current=a,Rp.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),_p.current||cx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Rp.delete(this.current),this.projection&&this.projection.unmount(),Vn(this.notifyUpdate),Vn(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const s=this.features[a];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(a,s){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const r=ci.has(a),c=s.on("change",m=>{this.latestValues[a]=m,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),d=s.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{c(),d(),f&&f(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Hi){const s=Hi[a];if(!s)continue;const{isEnabled:r,Feature:c}=s;if(!this.features[a]&&c&&r(this.props)&&(this.features[a]=new c(this)),this.features[a]){const d=this.features[a];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<Vp.length;r++){const c=Vp[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=a[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=hx(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const r=this.values.get(a);s!==r&&(r&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let r=this.values.get(a);return r===void 0&&s!==void 0&&(r=Ka(s===null?void 0:s,{owner:this}),this.addValue(a,r)),r}readValue(a,s){var r;let c=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(r=this.getBaseTargetFromProps(this.props,a))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,a,this.options);return c!=null&&(typeof c=="string"&&(Ph(c)||Nh(c))?c=parseFloat(c):!dx(c)&&jn.test(s)&&(c=Zh(a,s)),this.setBaseTarget(a,ce(c)?c.get():c)),ce(c)?c.get():c}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var s;const{initial:r}=this.props;let c;if(typeof r=="string"||typeof r=="object"){const f=zo(this.props,r,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);f&&(c=f[a])}if(r&&c!==void 0)return c;const d=this.getBaseTargetFromProps(this.props,a);return d!==void 0&&!ce(d)?d:this.initialValues[a]!==void 0&&c===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new qo),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}}class Lp extends mx{constructor(){super(...arguments),this.KeyframeResolver=em}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){return a.style?a.style[s]:void 0}removeValueFromRenderState(a,{vars:s,style:r}){delete s[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ce(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function px(i){return window.getComputedStyle(i)}class gx extends Lp{constructor(){super(...arguments),this.type="html",this.renderInstance=hh}readValueFromInstance(a,s){if(ci.has(s)){const r=Io(s);return r&&r.default||0}else{const r=px(a),c=(rh(s)?r.getPropertyValue(s):r[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:s}){return Zm(a,s)}build(a,s,r){Ro(a,s,r.transformTemplate)}scrapeMotionValuesFromProps(a,s,r){return Uo(a,s,r)}}class yx extends Lp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xt}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(ci.has(s)){const r=Io(s);return r&&r.default||0}return s=mh.has(s)?s:Mo(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,r){return yh(a,s,r)}build(a,s,r){Vo(a,s,this.isSVGTag,r.transformTemplate)}renderInstance(a,s,r,c){ph(a,s,r,c)}mount(a){this.isSVGTag=jo(a.tagName),super.mount(a)}}const vx=(i,a)=>Do(i)?new yx(a):new gx(a,{allowProjection:i!==U.Fragment}),bx=QS({...j5,...ox,...QT,...ux},vx),Sx=rS(bx);function Du(...i){return G1(Vd(i))}const Tx=c1("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] text-sm font-medium transition-[background,color,opacity] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[var(--color-primary-9)] text-[var(--color-primary-fg)] hover:bg-[var(--color-primary-10)]",ghost:"bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",outline:"border border-[var(--color-border)] bg-transparent text-[var(--color-fg)] hover:bg-[var(--color-bg-subtle)]",danger:"bg-[var(--color-danger-9)] text-white hover:bg-[var(--color-danger-10)]"},size:{default:"h-11 px-4",sm:"h-9 px-3",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),jp=U.forwardRef(function({className:i,variant:a,size:s,asChild:r=!1,type:c="button",...d},f){return at.jsx(r?a1:"button",{ref:f,type:r?void 0:c,className:Du(Tx({variant:a,size:s}),i),...d})}),xx=U.forwardRef(function({className:i,type:a="text",...s},r){return at.jsx("input",{ref:r,type:a,className:Du("flex h-11 w-full rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-base text-[var(--color-fg)] placeholder:text-[var(--color-fg-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary-9)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg)] disabled:cursor-not-allowed disabled:opacity-50",i),...s})});function Ex({onAdd:i,disabled:a=!1}){const{_:s}=fd(),[r,c]=U.useState(""),d=r.trim(),f=!a&&d.length>0;function m(g){g.preventDefault(),f&&(i(d),c(""))}return at.jsxs("form",{onSubmit:m,className:"flex items-center gap-2",children:[at.jsx(xx,{"aria-label":s({id:"qmt9HO"}),value:r,onChange:g=>c(g.target.value),disabled:a,placeholder:s({id:"hyVJ2f"})}),at.jsx(jp,{type:"submit",disabled:!f,children:at.jsx(lo,{id:"m16xKo"})})]})}const Up=Zb(),_s=oi("alistigo:provider"),Np=U.createContext(null),Bp=U.createContext(null),Hp=U.createContext(null);function Ax({service:i,listId:a,initialDocument:s,children:r}){const[c,d]=U.useState(s),[f,m]=U.useState(!1),g=U.useMemo(()=>({doc:c,setDoc:d}),[c]),p=U.useMemo(()=>({service:i,listId:a}),[i,a]),v=U.useMemo(()=>({isPending:f,setIsPending:m}),[f]);return at.jsx(Np.Provider,{value:g,children:at.jsx(Bp.Provider,{value:p,children:at.jsx(Hp.Provider,{value:v,children:r})})})}function qp(){const i=U.useContext(Np);if(i==null)throw new Error("Must be inside <AlistigoProvider>.");return i}function Mx(){const i=U.useContext(Bp);if(i==null)throw new Error("Must be inside <AlistigoProvider>.");return i}function Gp(){const i=U.useContext(Hp);if(i==null)throw new Error("Must be inside <AlistigoProvider>.");return i}function Cx(){return qp().doc}function Dx(){return Gp().isPending}function zx(){const{setDoc:i}=qp(),{service:a,listId:s}=Mx(),{setIsPending:r}=Gp(),c=U.useRef(i);return c.current=i,U.useMemo(()=>({addElement:d=>{r(!0),a.addListElement(s,d,Up).then(f=>{f.ok?(_s.debug("element added"),c.current(f.value)):_s.error({error:f.error},"addElement failed")}).finally(()=>r(!1))},deleteElement:d=>{r(!0),Promise.resolve().then(()=>{const f=ho(d);return a.deleteListElement(s,f,Up)}).then(f=>{f.ok?(_s.debug({elementId:d},"element deleted"),c.current(f.value)):_s.error({error:f.error,elementId:d},"deleteElement failed")}).finally(()=>r(!1))}}),[a,s,r])}function Ox({children:i,className:a}){const s=Dx();return at.jsxs("div",{"data-testid":"alistigo-app",className:Du("mx-auto flex min-h-dvh w-full max-w-md flex-col gap-4 bg-[var(--color-bg)] px-4 py-6 text-[var(--color-fg)]",a),children:[at.jsx("span",{"aria-hidden":"true","data-testid":"action-pending","data-state":s?"pending":"idle",className:"sr-only"}),i]})}function wx({message:i}){return at.jsxs("div",{"data-testid":"empty-state",className:"flex flex-col items-center gap-2 rounded-[var(--radius)] border border-dashed border-[var(--color-border)] px-4 py-12 text-center text-[var(--color-fg-muted)]",children:[at.jsx(Q1,{"aria-hidden":"true",className:"size-10"}),at.jsx("p",{className:"text-sm",children:i??at.jsx(lo,{id:"WH8Wi7"})})]})}function _x({listItem:i,onDelete:a}){const{_:s}=fd(),r=W1(),c=i["alistigo:listElementId"],d=i.name;return at.jsxs(Sx.li,{layout:!0,initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,x:-16},transition:{duration:.2,ease:"easeOut"},"data-deleting":r?void 0:"true",className:"flex items-center justify-between gap-2 rounded-[var(--radius)] border border-[var(--color-border)] bg-[var(--color-bg)] px-3 py-2 text-[var(--color-fg)]",children:[at.jsx("span",{className:"flex-1 truncate",children:d}),at.jsx(jp,{variant:"ghost",size:"icon","aria-label":s({id:"6ZGXNs",values:{text:d}}),onClick:()=>a(c,i.position),children:at.jsx(K1,{"aria-hidden":"true",className:"size-5"})})]})}function Rx({items:i,onDelete:a}){return i.length===0?at.jsx(wx,{}):at.jsx("ul",{className:"flex flex-col gap-2",children:at.jsx(I1,{initial:!1,children:i.map(s=>at.jsx(_x,{listItem:s,onDelete:a},s["alistigo:listElementId"]))})})}const gi=oi("alistigo:local-storage"),sl=i=>`alistigo:list:${i.toString()}`;class Yp{async load(a){try{const s=localStorage.getItem(sl(a));if(s==null)return;gi.debug({key:sl(a)},"loading from localStorage");const r=JSON.parse(s);return os.deserialize(r)}catch(s){gi.error({err:s},"failed to load from localStorage");return}}async save(a){try{const s=await this.loadDocument(a.id),r=os.serialize(a,s);localStorage.setItem(sl(a.id),JSON.stringify(r)),gi.debug({key:sl(a.id)},"saved to localStorage")}catch(s){gi.error({err:s},"failed to save to localStorage")}}async loadDocument(a){try{const s=localStorage.getItem(sl(a));return s==null?void 0:JSON.parse(s)}catch(s){gi.error({err:s},"failed to load document from localStorage");return}}async seedIfEmpty(a){const s=`alistigo:list:${a["alistigo:listId"]}`;try{localStorage.getItem(s)==null&&(localStorage.setItem(s,JSON.stringify(a)),gi.info({key:s},"document seeded (first run)"))}catch(r){gi.error({err:r},"failed to seed localStorage")}}}function Vx(){const i=Cx(),a=zx();return at.jsxs(at.Fragment,{children:[at.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:i.name??at.jsx(lo,{id:"wja8aL"})}),at.jsx(Ex,{onAdd:a.addElement}),at.jsx(Rx,{items:i.itemListElement,onDelete:a.deleteElement})]})}const zu=oi("alistigo:artifact-list");function Lx({initialDocument:i}){const a=U.useMemo(()=>{const f=Wb()?"claude-artifact":"localStorage";return zu.info({ctx:f},"storage context detected"),f==="claude-artifact"?new Pb:new Yp},[]),s=U.useMemo(()=>new Ib(a),[a]),r=U.useMemo(()=>mo(i["alistigo:listId"]),[i]),[c,d]=U.useState(void 0);return U.useEffect(()=>{(a instanceof Yp?a.seedIfEmpty(i):Promise.resolve()).then(()=>s.loadDocument(r)).then(m=>{zu.info({listId:r.toString()},"app mounted"),d(m??i)}).catch(m=>{zu.error({err:m},"failed to load document")})},[a,i,s,r]),c?at.jsx(Ax,{service:s,listId:r,initialDocument:c,children:at.jsx(Ox,{children:at.jsx(Vx,{})})}):null}function jx(){const[i,a]=U.useState(!1);if(U.useEffect(()=>(window.__alistigoDebugTriggerRenderError=()=>a(!0),()=>{delete window.__alistigoDebugTriggerRenderError}),[]),i)throw new Error("Alistigo debug-triggered render error");return null}const Ux=JSON.parse('{"6ZGXNs":["Delete \\"",["text"],"\\""],"WH8Wi7":["No elements yet."],"hyVJ2f":["Add an element…"],"m16xKo":["Add"],"qmt9HO":["Add element"],"wja8aL":["Untitled"]}'),Rs="en",Nx=new Set(["ar","fa","he","ur"]);let Xp=!1;function Bx(){if(Xp)return;Xp=!0,eo.load(Rs,Ux),eo.activate(Rs);const i=document.documentElement;i.setAttribute("lang",Rs),i.setAttribute("dir",Nx.has(Rs)?"rtl":"ltr")}const Hx=oi("alistigo:artifact-list:plugins");async function qx(i){const a=Object.entries(i??{});return a.length===0?[]:(await Promise.all(a.map(async([r])=>{try{return await $0(r)}catch(c){Hx.error({err:c,packageName:r},"failed to load plugin");return}}))).filter(r=>r!==void 0)}function zM(i){}function OM(i){}function Gx(i){return typeof i=="string"?document.querySelector(i):i}function Yx(i){if(i!==void 0){const s=document.querySelector(i);if(s instanceof HTMLElement)return s;console.error(`[Alistigo] Container "${i}" not found, appending default`)}const a=document.createElement("div");return document.body.appendChild(a),a}function Xx(){return{"@context":{"@vocab":"https://schema.org/",alistigo:"https://alistigo.ai/vocab/"},"@type":"ItemList","alistigo:listId":"lst_01jx0000000000000000000000","alistigo:schemaVersion":"1.0.0",name:"My List",itemListElement:[],"alistigo:listEventLog":[]}}const Vs=oi("alistigo:artifact-list"),Zx={info:(i,a)=>Vs.info(i,a),error:(i,a)=>Vs.error(i,a)},Zp="en",Ou=new Map;function Qx(){return typeof window<"u"&&"storage"in window?"window.storage":typeof localStorage<"u"?"localStorage":"none"}function Kx(i,a){return typeof i=="string"?i:`#${a.id||"(element)"}`}function kx(i){const a=Ou.get(i);if(a!==void 0)return a;const s=Cb.createRoot(i);return Ou.set(i,s),s}class Jx extends U.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a,s){this.props.onError(a,s.componentStack??void 0)}render(){return this.state.hasError?U.createElement(U.Fragment,null):this.props.children}}function Fx(i,a,s){const r=a.document??Xx(),c=U.createElement(U.StrictMode,null,U.createElement(bb,{i18n:eo},U.createElement(Jx,{onError:(d,f)=>{s.bus.emit("error:uncaught",{error:d,...f!==void 0&&{componentStack:f}})}},U.createElement(U.Fragment,null,U.createElement(Lx,{key:r["alistigo:listId"],initialDocument:r}),U.createElement(jx)))));kx(i).render(s.wrapRoot(c))}function Px(i,a){console.info("[Alistigo] mount() called before DOM is ready — deferring to DOMContentLoaded"),document.addEventListener("DOMContentLoaded",()=>{Qp(i,a)},{once:!0})}function Wx(i){const a=Gx(i);if(a==null)throw Vs.error({selector:String(i)},"container not found"),new Error(`Alistigo.mount: container not found: ${String(i)}`);return a}async function Qp(i,a={}){if(document.readyState==="loading"){Px(i,a);return}const s=Wx(i),r=!Ou.has(s);Kx(i,s),Vs.info({selector:String(i)},"mount called");const c=await qx(a.plugins),d={packageName:"@alistigo/artifact-list",version:vd.version,locale:Zp,environment:"production"},f=tb(c,d,Zx,a.plugins??{});f.loadedPluginNames,await f.setup(),Bx(),await f.beforeMount(),Fx(s,a,f),await f.mounted(),r&&f.bus.emit("widget:displayed",{locale:Zp,storageType:Qx(),version:vd.version})}let wu;function $x(){const i=document.getElementById("alistigo-document");if(i?.textContent?.trim())try{return JSON.parse(i.textContent)}catch{console.error("[Alistigo] Failed to parse #alistigo-document");return}}function Ix(){const i=document.getElementById("alistigo-config");if(i===null)return{};try{return JSON.parse(i.textContent??"{}")}catch{return console.error("[Alistigo] Failed to parse #alistigo-config:",i.textContent),{}}}function Kp(){const i=Ix();wu||(wu=Yx(i.container));const a=$x()??i.document,{container:s,document:r,...c}=i,d=a!==void 0?{...c,document:a}:c;Qp(wu,d)}F0("error"),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>queueMicrotask(Kp)):queueMicrotask(Kp)}));
|
|
42
27
|
//# sourceMappingURL=index.umd.js.map
|