dori-side-widget 1.5.0 → 1.5.2
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/assets/main-DDR4y6Qz.js +1 -0
- package/dist/assets/main-DDR4y6Qz.js.br +0 -0
- package/dist/assets/main-DDR4y6Qz.js.gz +0 -0
- package/dist/widget.js +1 -1
- package/dist/widget.js.br +0 -0
- package/dist/widget.js.gz +0 -0
- package/package.json +56 -56
- package/dist/assets/main-C2uxM8Hc.js +0 -1
- package/dist/assets/main-C2uxM8Hc.js.br +0 -0
- package/dist/assets/main-C2uxM8Hc.js.gz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e,h as t,u as n,s as r,a as i,b as o,c as a,d as s,g as l,m as c,e as u,f as d,i as p,j as f,k as h,n as g,o as m,p as v}from"../widget.js";function b(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var y="undefined"!=typeof window?window:void 0,x="undefined"!=typeof globalThis?globalThis:y,k=Array.prototype,w=k.forEach,S=k.indexOf,_=null==x?void 0:x.navigator,C=null==x?void 0:x.document,E=null==x?void 0:x.location,P=null==x?void 0:x.fetch,z=null!=x&&x.XMLHttpRequest&&"withCredentials"in new x.XMLHttpRequest?x.XMLHttpRequest:void 0,R=null==x?void 0:x.AbortController,T=null==_?void 0:_.userAgent,I=null!=y?y:{},O={DEBUG:!1,LIB_VERSION:"1.283.0"};function F(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function A(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){F(o,r,i,a,s,"next",e)}function s(e){F(o,r,i,a,s,"throw",e)}a(void 0)})}}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}function L(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var D=["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"],j=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var n=e.toLowerCase();return D.concat(t).some(e=>{var t=e.toLowerCase();return-1!==n.indexOf(t)})},N=["$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"];function $(e,t){return-1!==e.indexOf(t)}var B=function(e){return e.trim()},W=function(e){return e.replace(/^\$/,"")},V=Array.isArray,H=Object.prototype,U=H.hasOwnProperty,q=H.toString,G=V||function(e){return"[object Array]"===q.call(e)},Y=e=>"function"==typeof e,X=e=>e===Object(e)&&!G(e),K=e=>{if(X(e)){for(var t in e)if(U.call(e,t))return!1;return!0}return!1},Q=e=>void 0===e,Z=e=>"[object String]"==q.call(e),J=e=>Z(e)&&0===e.trim().length,ee=e=>null===e,te=e=>Q(e)||ee(e),ne=e=>"[object Number]"==q.call(e),re=e=>"[object Boolean]"===q.call(e),ie=e=>$(N,e);function oe(e){return null===e||"object"!=typeof e}function ae(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function se(e){return!Q(Event)&&function(e,t){try{return e instanceof t}catch(n){return!1}}(e,Event)}var le=[!0,"true",1,"1","yes"],ce=e=>$(le,e),ue=[!1,"false",0,"0","no"];function de(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),ne(e)?e>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e<t?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),de(i||n,t,n,r))}class pe{constructor(e){this.t={},this.i=e.i,this.o=de(e.bucketSize,0,100,e.h),this.m=de(e.refillRate,0,this.o,e.h),this.S=de(e.refillInterval,0,864e5,e.h)}$(e,t){var n=t-e.lastAccess,r=Math.floor(n/this.S);if(r>0){var i=r*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+r*this.S}}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.t[r];return i?this.$(i,n):(i={tokens:this.o,lastAccess:n},this.t[r]=i),0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.i)||t.call(this,e)),0===i.tokens)}stop(){this.t={}}}var fe,he,ge,me=e=>e instanceof Error;function ve(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return ge&&n.length===he||(he=n.length,ge=n.reduce((n,r)=>{fe||(fe={});var i=fe[r];if(i)n[i[0]]=i[1];else for(var o=e(r),a=o.length-1;a>=0;a--){var s=o[a],l=null==s?void 0:s.filename,c=t[r];if(l&&c){n[l]=c,fe[r]=[l,c];break}}return n},{})),ge}}var be="?";function ye(e,t,n,r){var i={platform:"web:javascript",filename:e,function:"<anonymous>"===t?be:t,in_app:!0};return Q(n)||(i.lineno=n),Q(r)||(i.colno=r),i}var xe=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:be,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},ke=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,we=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Se=/\((\S*)(?::(\d+))(?::(\d+))\)/,_e=e=>{var t=ke.exec(e);if(t){var[,n,r,i]=t;return ye(n,be,+r,+i)}var o=we.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var a=Se.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[s,l]=xe(o[1]||be,o[2]);return ye(l,s,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},Ce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ee=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pe=e=>{var t=Ce.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Ee.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||be;return[i,r]=xe(i,r),ye(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ze=/\(error: (.*)\)/;class Re{constructor(e,t,n){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),this.coercers=e,this.modifiers=n,this.stackParser=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){void 0===n&&(n=0);for(var r=[],i=e.split("\n"),o=n;o<i.length;o++){var a=i[o];if(!(a.length>1024)){var s=ze.test(a)?a.replace(ze,"$1"):a;if(!s.match(/\S*Error: /)){for(var l of t){var c=l(s);if(c){r.push(c);break}}if(r.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map(e=>{return M({},e,{filename:e.filename||(n=t,n[n.length-1]||{}).filename,function:e.function||be});var n})}(r)}}(...t)}buildFromUnknown(e,t){void 0===t&&(t={});var n=t&&t.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,t,0).apply(e),i=this.buildParsingContext(),o=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(o,n),$exception_level:"error"}}modifyFrames(e){var t=this;return A(function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&G(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n,r;return null!=e.cause&&(n=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?1:0),t.chunkIdMap)),M({},e,{cause:n,stack:r})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return A(function*(){var n=e;for(var r of t.modifiers)n=yield r(n);return n})()}convertToExceptionList(e,t){var n,r,i,o={type:e.type,value:e.value,mechanism:{type:null!==(n=t.type)&&void 0!==n?n:"generic",handled:null===(r=t.handled)||void 0===r||r,synthetic:null!==(i=e.synthetic)&&void 0!==i&&i}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var a=[o];return null!=e.cause&&a.push(...this.convertToExceptionList(e.cause,M({},t,{handled:!0}))),a}buildParsingContext(){return{chunkIdMap:ve(this.stackParser)}}buildCoercingContext(e,t,n){void 0===n&&(n=0);var r=(n,r)=>{if(r<=4){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return M({},t,{syntheticException:0==n?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}}class Te{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=Z(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return ae(e,"DOMException")}isDOMError(e){return ae(e,"DOMError")}}class Ie{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return n.error&&"string"==typeof n.error.message?String(n.error.message):String(n)}getStack(e){return e.stacktrace||e.stack||void 0}}class Oe{constructor(){}match(e){return ae(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var n;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}var Fe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Ae{match(e){return"string"==typeof e}coerce(e,t){var n,[r,i]=this.getInfos(e);return{type:null!=r?r:"Error",value:null!=i?i:e,stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}getInfos(e){var t="Error",n=e,r=e.match(Fe);return r&&(t=r[1],n=r[2]),[t,n]}}var Me=["fatal","error","warning","log","info","debug"];function Le(e,t){void 0===t&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class De{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var n,r=this.getErrorPropertyFromObject(e);return r?t.apply(r):{type:this.getType(e),value:this.getValue(e),stack:null==(n=t.syntheticException)?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return se(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var n=this.getObjectClassName(e);return(n&&"Object"!==n?"'"+n+"'":"Object")+" captured as exception with keys: "+Le(e)}isSeverityLevel(e){return Z(e)&&!J(e)&&Me.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(me(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(n){return}}}class je{match(e){return se(e)}coerce(e,t){var n,r=e.constructor.name;return{type:r,value:r+" captured as exception with keys: "+Le(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class Ne{match(e){return oe(e)}coerce(e,t){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}}}class $e{match(e){return ae(e,"PromiseRejectionEvent")}coerce(e,t){var n,r=this.getUnhandledRejectionReason(e);return oe(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:null==(n=t.syntheticException)?void 0:n.stack,synthetic:!0}:t.apply(r)}getUnhandledRejectionReason(e){if(oe(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}}var Be=e=>{var t={k:function(t){if(y&&(O.DEBUG||I.POSTHOG_DEBUG)&&!Q(y.console)&&y.console){for(var n=("__rrweb_original__"in y.console[t]?y.console[t].__rrweb_original__:y.console[t]),r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];n(e,...i)}},info:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("log",...n)},warn:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("warn",...n)},error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.k("error",...n)},critical:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},uninitializedWarning:e=>{t.error("You must initialize PostHog before calling "+e)},createLogger:t=>Be(e+" "+t)};return t},We=Be("[PostHog.js]"),Ve=We.createLogger,He=Ve("[ExternalScriptsLoader]"),Ue=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return He.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=null==C?void 0:C.querySelectorAll("script");if(r)for(var i,o=function(){if(r[a].src===t){var e=r[a];return e.__posthog_loading_callback_fired?{v:n()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,n(void 0,t)}),e.onerror=e=>n(e),{v:void 0})}},a=0;a<r.length;a++)if(i=o())return i.v;var s=()=>{if(!C)return n("document not found");var r=C.createElement("script");if(r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,n(void 0,e)},r.onerror=e=>n(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n("prepare_external_dependency_script returned null");var i,o=C.querySelectorAll("body > script");o.length>0?null==(i=o[0].parentNode)||i.insertBefore(r,o[0]):C.body.appendChild(r)};null!=C&&C.body?s():null==C||C.addEventListener("DOMContentLoaded",s)};I.__PosthogExtensions__=I.__PosthogExtensions__||{},I.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r="/static/"+t+".js?v="+e.version;if("remote-config"===t&&(r="/array/"+e.config.token+"/config.js"),"toolbar"===t){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}var o=e.requestRouter.endpointFor("assets",r);Ue(e,o,n)},I.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);Ue(e,r,n)};var qe={};function Ge(e,t,n){if(G(e))if(w&&e.forEach===w)e.forEach(t,n);else if("length"in e&&e.length===+e.length)for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===qe)return}function Ye(e,t,n){if(!te(e)){if(G(e))return Ge(e,t,n);if((e=>e instanceof FormData)(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===qe)return}else for(var i in e)if(U.call(e,i)&&t.call(n,e[i],i)===qe)return}}var Xe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ge(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},Ke=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ge(n,function(t){Ge(t,function(t){e.push(t)})}),e};function Qe(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var Ze=function(e){try{return e()}catch(t){return}},Je=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(i){We.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),We.critical(i)}}},et=function(e){var t={};return Ye(e,function(e,n){(Z(e)&&e.length>0||ne(e))&&(t[n]=e)}),t},tt=["herokuapp.com","vercel.app","netlify.app"];function nt(e){var t=null==e?void 0:e.hostname;if(!Z(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of tt)if(n===r)return!1;return!0}function rt(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function it(e,t,n,r){var{capture:i=!1,passive:o=!0}=null!=r?r:{};null==e||e.addEventListener(t,n,{capture:i,passive:o})}var ot="$people_distinct_id",at="__alias",st="__timers",lt="$autocapture_disabled_server_side",ct="$heatmaps_enabled_server_side",ut="$exception_capture_enabled_server_side",dt="$error_tracking_suppression_rules",pt="$error_tracking_capture_extension_exceptions",ft="$web_vitals_enabled_server_side",ht="$dead_clicks_enabled_server_side",gt="$web_vitals_allowed_metrics",mt="$session_recording_remote_config",vt="$sesid",bt="$session_is_sampled",yt="$enabled_feature_flags",xt="$early_access_features",kt="$feature_flag_details",wt="$stored_person_properties",St="$stored_group_properties",_t="$surveys",Ct="$surveys_activated",Et="$flag_call_reported",Pt="$user_state",zt="$client_session_props",Rt="$capture_rate_limit",Tt="$initial_campaign_params",It="$initial_referrer_info",Ot="$initial_person_info",Ft="$epp",At="__POSTHOG_TOOLBAR__",Mt="$posthog_cookieless",Lt=[ot,at,"__cmpns",st,"$session_recording_enabled_server_side",ct,vt,yt,dt,Pt,xt,kt,St,wt,_t,Et,zt,Rt,Tt,It,Ft,Ot];function Dt(e){return e instanceof Element&&(e.id===At||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function jt(e){return!!e&&1===e.nodeType}function Nt(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function $t(e){return!!e&&3===e.nodeType}function Bt(e){return!!e&&11===e.nodeType}function Wt(e){return e?B(e).split(/\s+/):[]}function Vt(e){var t=null==y?void 0:y.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function Ht(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Wt(t)}function Ut(e){return te(e)?null:B(e).split(/(\s+)/).filter(e=>cn(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function qt(e){var t="";return en(e)&&!tn(e)&&e.childNodes&&e.childNodes.length&&Ye(e.childNodes,function(e){var n;$t(e)&&e.textContent&&(t+=null!==(n=Ut(e.textContent))&&void 0!==n?n:"")}),B(t)}function Gt(e){return Q(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Yt=["a","button","form","input","select","textarea","label"];function Xt(e,t){if(Q(t))return!0;var n,r=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function Kt(e){var t=e.parentNode;return!(!t||!jt(t))&&t}var Qt=[".ph-no-rageclick",".ph-no-capture"],Zt=e=>!e||Nt(e,"html")||!jt(e),Jt=(e,t)=>{if(!y||Zt(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!Nt(i,"body");)if(Bt(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var o=Kt(i);if(!o)break;if(t||Yt.indexOf(o.tagName.toLowerCase())>-1)n=!0;else{var a=y.getComputedStyle(o);a&&"pointer"===a.getPropertyValue("cursor")&&(n=!0)}r.push(o),i=o}return{parentIsUsefulElement:n,targetElementList:r}};function en(e){for(var t=e;t.parentNode&&!Nt(t,"body");t=t.parentNode){var n=Ht(t);if($(n,"ph-sensitive")||$(n,"ph-no-capture"))return!1}if($(Ht(e),"ph-include"))return!0;var r=e.type||"";if(Z(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!Z(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function tn(e){return!!(Nt(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Nt(e,"select")||Nt(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var nn="(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})",rn=new RegExp("^(?:"+nn+")$"),on=new RegExp(nn),an="\\d{3}-?\\d{2}-?\\d{4}",sn=new RegExp("^("+an+")$"),ln=new RegExp("("+an+")");function cn(e,t){if(void 0===t&&(t=!0),te(e))return!1;if(Z(e)){if(e=B(e),(t?rn:on).test((e||"").replace(/[- ]/g,"")))return!1;if((t?sn:ln).test(e))return!1}return!0}function un(e){var t=qt(e);return cn(t=(t+" "+dn(e)).trim())?t:""}function dn(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Ye(e.childNodes,function(e){var n;if(e&&"span"===(null==(n=e.tagName)?void 0:n.toLowerCase()))try{var r=qt(e);t=(t+" "+r).trim(),e.childNodes&&e.childNodes.length&&(t=(t+" "+dn(e)).trim())}catch(i){We.error("[AutoCapture]",i)}}),t}function pn(e){return e.map(e=>{var t,n,r={text:null==(t=e.$el_text)?void 0:t.slice(0,400),tag_name:e.tag_name,href:null==(n=e.attr__href)?void 0:n.slice(0,2048),attr_class:hn(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Qe(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,n]=e;return r.attributes[t]=n}),r}).map(e=>{var t,n,r="";if(e.tag_name&&(r+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))r+="."+i.replace(/"/g,"");var o=M({},e.text?{text:e.text}:{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),a={};return Qe(o).sort((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)}).forEach(e=>{var[t,n]=e;return a[fn(t.toString())]=fn(n.toString())}),(r+=":")+Qe(a).map(e=>{var[t,n]=e;return t+'="'+n+'"'}).join("")}).join(";")}function fn(e){return e.replace(/"|\\"/g,'\\"')}function hn(e){var t=e.attr__class;return t?G(t)?t:Wt(t):void 0}class gn{constructor(){this.clicks=[]}isRageClick(e,t,n){var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<30&&n-r.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}var mn,vn="$copy_autocapture",bn=((mn={}).GZipJS="gzip-js",mn.Base64="base64",mn),yn=e=>{var t=null==C?void 0:C.createElement("a");return Q(t)?null:(t.href=e,t)},xn=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<r.length;i++){var o=r[i].split("=");if(o[0]===t){n=o;break}}if(!G(n)||n.length<2)return"";var a=n[1];try{a=decodeURIComponent(a)}catch(s){We.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},kn=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),i=r[0]||"",o=r[1],a=i.split("?"),s=a[1],l=a[0],c=(s||"").split("&"),u=[],d=0;d<c.length;d++){var p=c[d].split("=");G(p)&&(t.includes(p[0])?u.push(p[0]+"="+n):u.push(c[d]))}var f=l;return null!=s&&(f+="?"+u.join("&")),null!=o&&(f+="#"+o),f},wn=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Sn=Ve("[AutoCapture]");function _n(e,t){return t.length>e?t.slice(0,e)+"...":t}function Cn(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do{t=t.previousSibling}while(t&&!jt(t));return t}class En{constructor(e){this.P=!1,this.T=null,this.rageclicks=new gn,this.R=!1,this.instance=e,this.I=null}get C(){var e,t,n=X(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=null==(e=n.url_allowlist)?void 0:e.map(e=>new RegExp(e)),n.url_ignorelist=null==(t=n.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),n}O(){if(this.isBrowserSupported()){if(y&&C){var e=e=>{e=e||(null==y?void 0:y.event);try{this.F(e)}catch(mn){Sn.error("Failed to capture event",mn)}};if(it(C,"submit",e,{capture:!0}),it(C,"change",e,{capture:!0}),it(C,"click",e,{capture:!0}),this.C.capture_copied_text){var t=e=>{e=e||(null==y?void 0:y.event),this.F(e,vn)};it(C,"copy",t,{capture:!0}),it(C,"cut",t,{capture:!0})}}}else Sn.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.O(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.R=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[lt]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.I=e}getElementSelectors(e){var t,n=[];return null==(t=this.I)||t.forEach(t=>{var r=null==C?void 0:C.querySelectorAll(t);null==r||r.forEach(r=>{e===r&&n.push(t)})}),n}get isEnabled(){var e,t,n=null==(e=this.instance.persistence)?void 0:e.props[lt],r=this.T;if(ee(r)&&!re(n)&&!this.instance.M())return!1;var i=null!==(t=this.T)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}F(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var n,r=Gt(e);$t(r)&&(r=r.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&function(e,t){if(!y||Zt(e))return!1;var n,r;if(!1===(n=re(t)?!!t&&Qt:null!==(r=null==t?void 0:t.css_selector_ignorelist)&&void 0!==r?r:Qt))return!1;var{targetElementList:i}=Jt(e,!1);return!Xt(i,n)}(r,this.instance.config.rageclick)&&this.F(e,"$rageclick");var i=t===vn;if(r&&function(e,t,n,r,i){var o,a,s,l;if(void 0===n&&(n=void 0),!y||Zt(e))return!1;if(null!=(o=n)&&o.url_allowlist&&!Vt(n.url_allowlist))return!1;if(null!=(a=n)&&a.url_ignorelist&&Vt(n.url_ignorelist))return!1;if(null!=(s=n)&&s.dom_event_allowlist){var c=n.dom_event_allowlist;if(c&&!c.some(e=>t.type===e))return!1}var{parentIsUsefulElement:u,targetElementList:d}=Jt(e,r);if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(Q(n))return!0;var r,i=function(e){if(n.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var o of e)if(r=i(o))return r.v;return!1}(d,n))return!1;if(!Xt(d,null==(l=n)?void 0:l.css_selector_allowlist))return!1;var p=y.getComputedStyle(e);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var f=e.tagName.toLowerCase();switch(f){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return u?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Yt.indexOf(f)>-1||"true"===e.getAttribute("contenteditable"))}}(r,e,this.C,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=function(e,t){for(var n,r,{e:i,maskAllElementAttributes:o,maskAllText:a,elementAttributeIgnoreList:s,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!Nt(u,"body");)Bt(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p=[],f={},h=!1,g=!1;if(Ye(c,e=>{var t=en(e);"a"===e.tagName.toLowerCase()&&(h=e.getAttribute("href"),h=t&&h&&cn(h)&&h),$(Ht(e),"ph-no-capture")&&(g=!0),p.push(function(e,t,n,r){var i=e.tagName.toLowerCase(),o={tag_name:i};Yt.indexOf(i)>-1&&!n&&("a"===i.toLowerCase()||"button"===i.toLowerCase()?o.$el_text=_n(1024,un(e)):o.$el_text=_n(1024,qt(e)));var a=Ht(e);a.length>0&&(o.classes=a.filter(function(e){return""!==e})),Ye(e.attributes,function(n){var i;if((!tn(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==r||!r.includes(n.name))&&!t&&cn(n.value)&&(i=n.name,!Z(i)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var a=n.value;"class"===n.name&&(a=Wt(a).join(" ")),o["attr__"+n.name]=_n(1024,a)}});for(var s=1,l=1,c=e;c=Cn(c);)s++,c.tagName===e.tagName&&l++;return o.nth_child=s,o.nth_of_type=l,o}(e,o,a,s));var n=function(e){if(!en(e))return{};var t={};return Ye(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),r=e.value;n&&r&&cn(r)&&(t[n]=r)}}),t}(e);Xe(f,n)}),g)return{props:{},explicitNoCapture:g};if(a||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?p[0].$el_text=un(e):p[0].$el_text=qt(e)),h){var m,v;p[0].attr__href=h;var b=null==(m=yn(h))?void 0:m.host,x=null==y||null==(v=y.location)?void 0:v.host;b&&x&&b!==x&&(d=h)}return{props:Xe({$event_type:i.type,$ce_version:1},l?{}:{$elements:p},{$elements_chain:pn(p)},null!=(n=p[0])&&n.$el_text?{$el_text:null==(r=p[0])?void 0:r.$el_text}:{},d&&"click"===i.type?{$external_click_url:d}:{},f)}}(r,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.C.element_attribute_ignorelist,elementsChainAsString:this.R});if(a)return!1;var s=this.getElementSelectors(r);if(s&&s.length>0&&(o.$element_selectors=s),t===vn){var l,c=Ut(null==y||null==(l=y.getSelection())?void 0:l.toString()),u=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=u}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return Y(null==C?void 0:C.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return ne(e)&&isFinite(e)&&Math.floor(e)===e});var Pn="0123456789abcdef";class zn{constructor(e){if(this.bytes=e,16!==e.length)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,r){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||e<0||t<0||n<0||r<0||e>0xffffffffffff||t>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new zn(i)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+Pn.charAt(this.bytes[t]>>>4)+Pn.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new zn(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}class Rn{constructor(){this.A=0,this.D=0,this.j=new On}generate(){var e=this.generateOrAbort();if(Q(e)){this.A=0;var t=this.generateOrAbort();if(Q(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return zn.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var Tn,In=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};y&&!Q(y.crypto)&&crypto.getRandomValues&&(In=e=>crypto.getRandomValues(e));class On{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(In(this.N),this.U=0),this.N[this.U++]}}var Fn=()=>An().toString(),An=()=>(Tn||(Tn=new Rn)).generate(),Mn="",Ln=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Dn={H:()=>!!C,B:function(e){We.error("cookieStore error: "+e)},q:function(e){if(C){try{for(var t=e+"=",n=C.cookie.split(";").filter(e=>e.length),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null}},W:function(e){var t;try{t=JSON.parse(Dn.q(e))||{}}catch(n){}return t},G:function(e,t,n,r,i){if(C)try{var o="",a="",s=function(e,t){if(t){var n=function(e,t){if(void 0===t&&(t=C),Mn)return Mn;if(!t)return"";if(["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),r=Math.min(n.length,8),i="dmn_chk_"+Fn();!Mn&&r--;){var o=n.slice(r).join("."),a=i+"=1;domain=."+o+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(i)&&(t.cookie=a+";max-age=0",Mn=o)}return Mn}(e);if(!n){var r=(i=e.match(Ln))?i[0]:"";r!==n&&We.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}var i;return""}(C.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),o="; expires="+l.toUTCString()}i&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+s+a;return c.length>3686.4&&We.warn("cookieStore warning: large cookie, len="+c.length),C.cookie=c,c}catch(u){return}},V:function(e,t){if(null!=C&&C.cookie)try{Dn.G(e,"",-1,t)}catch(n){return}}},jn=null,Nn={H:function(){if(!ee(jn))return jn;var e=!0;if(Q(y))e=!1;else try{var t="__mplssupport__";Nn.G(t,"xyz"),'"xyz"'!==Nn.q(t)&&(e=!1),Nn.V(t)}catch(mn){e=!1}return e||We.error("localStorage unsupported; falling back to cookie store"),jn=e,e},B:function(e){We.error("localStorage error: "+e)},q:function(e){try{return null==y?void 0:y.localStorage.getItem(e)}catch(mn){Nn.B(mn)}return null},W:function(e){try{return JSON.parse(Nn.q(e))||{}}catch(t){}return null},G:function(e,t){try{null==y||y.localStorage.setItem(e,JSON.stringify(t))}catch(mn){Nn.B(mn)}},V:function(e){try{null==y||y.localStorage.removeItem(e)}catch(mn){Nn.B(mn)}}},$n=["distinct_id",vt,bt,Ft,Ot],Bn=M({},Nn,{W:function(e){try{var t={};try{t=Dn.W(e)||{}}catch(r){}var n=Xe(t,JSON.parse(Nn.q(e)||"{}"));return Nn.G(e,n),n}catch(r){}return null},G:function(e,t,n,r,i,o){try{Nn.G(e,t,void 0,void 0,o);var a={};$n.forEach(e=>{t[e]&&(a[e]=t[e])}),Object.keys(a).length&&Dn.G(e,a,n,r,i,o)}catch(s){Nn.B(s)}},V:function(e,t){try{null==y||y.localStorage.removeItem(e),Dn.V(e,t)}catch(mn){Nn.B(mn)}}}),Wn={},Vn={H:function(){return!0},B:function(e){We.error("memoryStorage error: "+e)},q:function(e){return Wn[e]||null},W:function(e){return Wn[e]||null},G:function(e,t){Wn[e]=t},V:function(e){delete Wn[e]}},Hn=null,Un={H:function(){if(!ee(Hn))return Hn;if(Hn=!0,Q(y))Hn=!1;else try{var e="__support__";Un.G(e,"xyz"),'"xyz"'!==Un.q(e)&&(Hn=!1),Un.V(e)}catch(mn){Hn=!1}return Hn},B:function(e){We.error("sessionStorage error: ",e)},q:function(e){try{return null==y?void 0:y.sessionStorage.getItem(e)}catch(mn){Un.B(mn)}return null},W:function(e){try{return JSON.parse(Un.q(e))||null}catch(t){}return null},G:function(e,t){try{null==y||y.sessionStorage.setItem(e,JSON.stringify(t))}catch(mn){Un.B(mn)}},V:function(e){try{null==y||y.sessionStorage.removeItem(e)}catch(mn){Un.B(mn)}}},qn=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Gn{constructor(e){this._instance=e}get C(){return this._instance.config}get consent(){return this.J()?qn.DENIED:this.K}isOptedOut(){return"always"===this.C.cookieless_mode||this.consent===qn.DENIED||this.consent===qn.PENDING&&(this.C.opt_out_capturing_by_default||"on_reject"===this.C.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===qn.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.C.cookie_expiration,this.C.cross_subdomain_cookie,this.C.secure_cookie)}reset(){this.Y.V(this.X,this.C.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return ce(e)?qn.GRANTED:$(ue,e)?qn.DENIED:qn.PENDING}get Y(){if(!this.Z){var e=this.C.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Nn:Dn;var t="localStorage"===e?Dn:Nn;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(ce(t.q(this.X))),t.V(this.X,this.C.cross_subdomain_cookie))}return this.Z}J(){return!!this.C.respect_dnt&&!!rt([null==_?void 0:_.doNotTrack,null==_?void 0:_.msDoNotTrack,I.doNotTrack],e=>ce(e))}}var Yn=Ve("[Dead Clicks]"),Xn=()=>!0,Kn=e=>{var t,n=!(null==(t=e.instance.persistence)||!t.get_property(ht)),r=e.instance.config.capture_dead_clicks;return re(r)?r:n};class Qn{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[ht]:null==e?void 0:e.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it(()=>{this.et()})}it(e){var t,n;null!=(t=I.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?Yn.error("failed to load script",t):e()})}et(){var e;if(C){if(!this.tt&&null!=(e=I.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=X(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=I.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(C),Yn.info("starting...")}}else Yn.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Yn.info("stopping..."))}}var Zn=Ve("[ExceptionAutocapture]");class Jn{constructor(e){var t,n,r;this.rt=()=>{var e;if(y&&this.isEnabled&&null!=(e=I.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=I.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=I.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=I.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.C.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.C.capture_unhandled_rejections&&(this.nt=n(this.captureException.bind(this))),!this.ot&&this.C.capture_console_errors&&(this.ot=r(this.captureException.bind(this)))}catch(mn){Zn.error("failed to start",mn),this.lt()}}},this._instance=e,this.ut=!(null==(t=this._instance.persistence)||!t.props[ut]),this.C=this.ht(),this.dt=new pe({refillRate:null!==(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)&&void 0!==n?n:1,bucketSize:null!==(r=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)&&void 0!==r?r:10,refillInterval:1e4,h:Zn}),this.startIfEnabled()}ht(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return X(e)?t=M({},t,e):(Q(e)?this.ut:e)&&(t=M({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.C.capture_console_errors||this.C.capture_unhandled_errors||this.C.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(Zn.info("enabled"),this.it(this.rt))}it(e){var t,n;null!=(t=I.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return Zn.error("failed to load script",t);e()})}lt(){var e,t,n;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(n=this.ot)||n.call(this),this.ot=void 0}onRemoteConfig(e){var t=e.autocaptureExceptions;this.ut=!!t||!1,this.C=this.ht(),this._instance.persistence&&this._instance.persistence.register({[ut]:this.ut}),this.startIfEnabled()}captureException(e){var t,n,r=null!==(t=null==e||null==(n=e.$exception_list)||null==(n=n[0])?void 0:n.type)&&void 0!==t?t:"Exception";this.dt.consumeRateLimit(r)?Zn.info("Skipping exception capture because of client rate limiting.",{exception:r}):this._instance.exceptions.sendExceptionEvent(e)}}function er(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return Y(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=r}}catch(o){return()=>{}}}class tr{constructor(e){var t;this._instance=e,this.vt=(null==y||null==(t=y.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(We.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,We.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(y&&y.history){var n=this;null!=(e=y.history.pushState)&&e.__posthog_wrapped__||er(y.history,"pushState",e=>function(t,r,i){e.call(this,t,r,i),n.ft("pushState")}),null!=(t=y.history.replaceState)&&t.__posthog_wrapped__||er(y.history,"replaceState",e=>function(t,r,i){e.call(this,t,r,i),n.ft("replaceState")}),this.gt()}}ft(e){try{var t,n=null==y||null==(t=y.location)?void 0:t.pathname;if(!n)return;n!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.vt=n}catch(mn){We.error("Error capturing "+e+" pageview",mn)}}gt(){if(!this.ct){var e=()=>{this.ft("popstate")};it(y,"popstate",e),this.ct=()=>{y&&y.removeEventListener("popstate",e)}}}}var nr=Ve("[SegmentIntegration]"),rr="posthog-js";function ir(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:o=["error"],sendExceptionsToPostHog:a=!0}=void 0===t?{}:t;return t=>{var s,l,c,u,d;if("*"!==o&&!o.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var f=(null==(s=t.exception)?void 0:s.values)||[],h=f.map(e=>M({},e,{stacktrace:e.stacktrace?M({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>M({},e,{platform:"web:javascript"}))}):void 0})),g={$exception_message:(null==(l=f[0])?void 0:l.value)||t.message,$exception_type:null==(c=f[0])?void 0:c.type,$exception_level:t.level,$exception_list:h,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=f[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(d=f[0])?void 0:d.type,$sentry_tags:t.tags};return n&&r&&(g.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+t.event_id),a&&e.exceptions.sendExceptionEvent(g),t}}class or{constructor(e,t,n,r,i,o){this.name=rr,this.setupOnce=function(a){a(ir(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:null==o||o}))}}}var ar=null!=y&&y.location?wn(y.location.hash,"__posthog")||wn(location.hash,"state"):null,sr="_postHogToolbarParams",lr=Ve("[Toolbar]"),cr=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(cr||{});class ur{constructor(e){this.instance=e}_t(e){I.ph_toolbar_state=e}yt(){var e;return null!==(e=I.ph_toolbar_state)&&void 0!==e?e:cr.UNINITIALIZED}maybeLoadToolbar(e,t,n){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),!y||!C)return!1;e=null!=e?e:y.location,n=null!=n?n:y.history;try{if(!t){try{y.localStorage.setItem("test","test"),y.localStorage.removeItem("test")}catch(mn){return!1}t=null==y?void 0:y.localStorage}var r,i=ar||wn(e.hash,"__posthog")||wn(e.hash,"state"),o=i?Ze(()=>JSON.parse(atob(decodeURIComponent(i))))||Ze(()=>JSON.parse(decodeURIComponent(i))):null;return o&&"ph_authorize"===o.action?((r=o).source="url",r&&Object.keys(r).length>0&&(o.desiredHash?e.hash=o.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((r=JSON.parse(t.getItem(sr)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch(mn){return!1}}bt(e){var t=I.ph_load_toolbar||I.ph_load_editor;!te(t)&&Y(t)?t(e,this.instance):lr.warn("No toolbar load function found")}loadToolbar(e){var t=!(null==C||!C.getElementById(At));if(!y||t)return!1;var n="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,r=M({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(y.localStorage.setItem(sr,JSON.stringify(M({},r,{source:void 0}))),this.yt()===cr.LOADED)this.bt(r);else if(this.yt()===cr.UNINITIALIZED){var i;this._t(cr.LOADING),null==(i=I.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return lr.error("[Toolbar] Failed to load",e),void this._t(cr.UNINITIALIZED);this._t(cr.LOADED),this.bt(r)}),it(y,"turbolinks:load",()=>{this._t(cr.UNINITIALIZED),this.loadToolbar(r)})}return!0}wt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===n&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}var dr=Ve("[TracingHeaders]");class pr{constructor(e){this.xt=void 0,this.St=void 0,this.rt=()=>{var e,t;Q(this.xt)&&(null==(e=I.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),Q(this.St)&&(null==(t=I.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,n;null!=(t=I.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return dr.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.xt)||e.call(this),null==(t=this.St)||t.call(this),this.xt=void 0,this.St=void 0)}}var fr="Mobile",hr="iOS",gr="Android",mr="Tablet",vr=gr+" "+mr,br="iPad",yr="Apple",xr=yr+" Watch",kr="Safari",wr="BlackBerry",Sr="Samsung",_r=Sr+"Browser",Cr=Sr+" Internet",Er="Chrome",Pr=Er+" OS",zr=Er+" "+hr,Rr="Internet Explorer",Tr=Rr+" "+fr,Ir="Opera",Or=Ir+" Mini",Fr="Edge",Ar="Microsoft "+Fr,Mr="Firefox",Lr=Mr+" "+hr,Dr="Nintendo",jr="PlayStation",Nr="Xbox",$r=gr+" "+fr,Br=fr+" "+kr,Wr="Windows",Vr=Wr+" Phone",Hr="Nokia",Ur="Ouya",qr="Generic",Gr=qr+" "+fr.toLowerCase(),Yr=qr+" "+mr.toLowerCase(),Xr="Konqueror",Kr="(\\d+(\\.\\d+)?)",Qr=new RegExp("Version/"+Kr),Zr=new RegExp(Nr,"i"),Jr=new RegExp(jr+" \\w+","i"),ei=new RegExp(Dr+" \\w+","i"),ti=new RegExp(wr+"|PlayBook|BB10","i"),ni={"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"},ri=function(e,t){return t=t||"",$(e," OPR/")&&$(e,"Mini")?Or:$(e," OPR/")?Ir:ti.test(e)?wr:$(e,"IE"+fr)||$(e,"WPDesktop")?Tr:$(e,_r)?Cr:$(e,Fr)||$(e,"Edg/")?Ar:$(e,"FBIOS")?"Facebook "+fr:$(e,"UCWEB")||$(e,"UCBrowser")?"UC Browser":$(e,"CriOS")?zr:$(e,"CrMo")||$(e,Er)?Er:$(e,gr)&&$(e,kr)?$r:$(e,"FxiOS")?Lr:$(e.toLowerCase(),Xr.toLowerCase())?Xr:((e,t)=>{return t&&$(t,yr)||$(n=e,kr)&&!$(n,Er)&&!$(n,gr);var n})(e,t)?$(e,fr)?Br:kr:$(e,Mr)?Mr:$(e,"MSIE")||$(e,"Trident/")?Rr:$(e,"Gecko")?Mr:""},ii={[Tr]:[new RegExp("rv:"+Kr)],[Ar]:[new RegExp(Fr+"?\\/"+Kr)],[Er]:[new RegExp("("+Er+"|CrMo)\\/"+Kr)],[zr]:[new RegExp("CriOS\\/"+Kr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Kr)],[kr]:[Qr],[Br]:[Qr],[Ir]:[new RegExp("(Opera|OPR)\\/"+Kr)],[Mr]:[new RegExp(Mr+"\\/"+Kr)],[Lr]:[new RegExp("FxiOS\\/"+Kr)],[Xr]:[new RegExp("Konqueror[:/]?"+Kr,"i")],[wr]:[new RegExp(wr+" "+Kr),Qr],[$r]:[new RegExp("android\\s"+Kr,"i")],[Cr]:[new RegExp(_r+"\\/"+Kr)],[Rr]:[new RegExp("(rv:|MSIE )"+Kr)],Mozilla:[new RegExp("rv:"+Kr)]},oi=function(e,t){var n=ri(e,t),r=ii[n];if(Q(r))return null;for(var i=0;i<r.length;i++){var o=r[i],a=e.match(o);if(a)return parseFloat(a[a.length-2])}return null},ai=[[new RegExp(Nr+"; "+Nr+" (.*?)[);]","i"),e=>[Nr,e&&e[1]||""]],[new RegExp(Dr,"i"),[Dr,""]],[new RegExp(jr,"i"),[jr,""]],[ti,[wr,""]],[new RegExp(Wr,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Vr,""];if(new RegExp(fr).test(t)&&!/IEMobile\b/.test(t))return[Wr+" "+fr,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],i=ni[r]||"";return/arm/i.test(t)&&(i="RT"),[Wr,i]}return[Wr,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[hr,t.join(".")]}return[hr,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Q(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+gr+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+gr+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[gr,t.join(".")]}return[gr,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Pr,""]],[/Linux|debian/i,["Linux",""]]],si=function(e){return ei.test(e)?Dr:Jr.test(e)?jr:Zr.test(e)?Nr:new RegExp(Ur,"i").test(e)?Ur:new RegExp("("+Vr+"|WPDesktop)","i").test(e)?Vr:/iPad/.test(e)?br:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?xr:ti.test(e)?wr:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(Hr,"i").test(e)?Hr:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(fr).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?gr:vr:gr:new RegExp("(pda|"+fr+")","i").test(e)?Gr:new RegExp(mr,"i").test(e)&&!new RegExp(mr+" pc","i").test(e)?Yr:""},li="https?://(.*)",ci=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ui=Ke(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],ci),di="<masked>",pi=["li_fat_id"];function fi(e,t,n){if(!C)return{};var r,i=t?Ke([],ci,n||[]):[],o=hi(kn(C.URL,i,di),e),a=(r={},Ye(pi,function(e){var t=Dn.q(e);r[e]=t||null}),r);return Xe(a,o)}function hi(e,t){var n=ui.concat(t||[]),r={};return Ye(n,function(t){var n=xn(e,t);r[t]=n||null}),r}function gi(e){var t,n=(t=e)?0===t.search(li+"google.([^/?]*)")?"google":0===t.search(li+"bing.com")?"bing":0===t.search(li+"yahoo.com")?"yahoo":0===t.search(li+"duckduckgo.com")?"duckduckgo":null:null,r="yahoo"!=n?"q":"p",i={};if(!ee(n)){i.$search_engine=n;var o=C?xn(C.referrer,r):"";o.length&&(i.ph_keyword=o)}return i}function mi(){return navigator.language||navigator.userLanguage}function vi(){return(null==C?void 0:C.referrer)||"$direct"}function bi(e,t){var n=e?Ke([],ci,t||[]):[],r=null==E?void 0:E.href.substring(0,1e3);return{r:vi().substring(0,1e3),u:r?kn(r,n,di):void 0}}function yi(e){var t,{r:n,u:r}=e,i={$referrer:n,$referring_domain:null==n?void 0:"$direct"==n?"$direct":null==(t=yn(n))?void 0:t.host};if(r){i.$current_url=r;var o=yn(r);i.$host=null==o?void 0:o.host,i.$pathname=null==o?void 0:o.pathname;var a=hi(r);Xe(i,a)}if(n){var s=gi(n);Xe(i,s)}return i}function xi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(mn){return}}function ki(){try{return(new Date).getTimezoneOffset()}catch(mn){return}}var wi=Ve("[Web Vitals]"),Si=9e5;class _i{constructor(e){var t;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>M({},e,{["$web_vitals_"+t.name+"_event"]:M({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=e=>{var t,n=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(Q(n))wi.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.Tt();Q(r)||(te(null==e?void 0:e.name)||te(null==e?void 0:e.value)?wi.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?wi.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==r&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),Q(this.N.url)&&(this.N.url=r),this.N.firstMetricTimestamp=Q(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(M({},e,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var e,t,n,r,i=I.__PosthogExtensions__;Q(i)||Q(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.Pt.bind(this)),this.P=!0):wi.error("web vitals callbacks not loaded - not starting")},this._instance=e,this.Et=!(null==(t=this._instance.persistence)||!t.props[ft]),this.startIfEnabled()}get allowedMetrics(){var e,t,n=X(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return Q(n)?(null==(t=this._instance.persistence)?void 0:t.props[gt])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(X(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var e=X(this._instance.config.capture_performance)&&ne(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:Si;return 0<e&&e<=6e4?Si:e}get isEnabled(){var e=null==E?void 0:E.protocol;if("http:"!==e&&"https:"!==e)return wi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=X(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:re(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return re(t)?t:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(wi.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var t=X(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=X(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[ft]:t}),this._instance.persistence.register({[gt]:n})),this.Et=t,this.startIfEnabled()}it(e){var t,n;null!=(t=I.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks&&e(),null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"web-vitals",t=>{t?wi.error("failed to load script",t):e()})}Tt(){var e=y?y.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties,r=t?Ke([],ci,n||[]):[];return kn(e,r,di)}wi.error("Could not determine current URL")}}var Ci=Ve("[Heatmaps]");function Ei(e){return X(e)&&"clientX"in e&&"clientY"in e&&ne(e.clientX)&&ne(e.clientY)}class Pi{constructor(e){var t;this.rageclicks=new gn,this.Et=!1,this.P=!1,this.It=null,this.instance=e,this.Et=!(null==(t=this.instance.persistence)||!t.props[ct])}get flushIntervalMilliseconds(){var e=5e3;return X(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Q(this.instance.config.capture_heatmaps)?Q(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.P)return;Ci.info("starting..."),this.Ct(),this.Ot()}else{var e;clearInterval(null!==(e=this.It)&&void 0!==e?e:void 0),this.Ft(),this.getAndClearBuffer()}}onRemoteConfig(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ct]:t}),this.Et=t,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}Mt(e){this.At(e.originalEvent,"deadclick")}Ot(){this.It&&clearInterval(this.It),this.It="visible"===(null==C?void 0:C.visibilityState)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ct(){y&&C&&(this.jt=this.Dt.bind(this),it(y,"beforeunload",this.jt),this.Lt=e=>this.At(e||(null==y?void 0:y.event)),it(C,"click",this.Lt,{capture:!0}),this.Nt=e=>this.Ut(e||(null==y?void 0:y.event)),it(C,"mousemove",this.Nt,{capture:!0}),this.zt=new Qn(this.instance,Xn,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ot.bind(this),it(C,"visibilitychange",this.Ht),this.P=!0)}Ft(){var e;y&&C&&(this.jt&&y.removeEventListener("beforeunload",this.jt),this.Lt&&C.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&C.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&C.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),null==(e=this.zt)||e.stop(),this.P=!1)}qt(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(e,t,n){for(var r=e;r&&jt(r)&&!Nt(r,"body");){if(r===n)return!1;if($(t,null==y?void 0:y.getComputedStyle(r).position))return!0;r=Kt(r)}return!1}(Gt(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:r),y:e.clientY+(o?0:n),target_fixed:o,type:t}}At(e,t){var n;if(void 0===t&&(t="click"),!Dt(e.target)&&Ei(e)){var r=this.qt(e,t);null!=(n=this.rageclicks)&&n.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Wt(M({},r,{type:"rageclick"})),this.Wt(r)}}Ut(e){!Dt(e.target)&&Ei(e)&&(clearTimeout(this.Bt),this.Bt=setTimeout(()=>{this.Wt(this.qt(e,"mousemove"))},500))}Wt(e){if(y){var t=y.location.href,n=this.instance.config.mask_personal_data_properties,r=this.instance.config.custom_personal_data_properties,i=n?Ke([],ci,r||[]):[],o=kn(t,i,di);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(e)}}Dt(){this.N&&!K(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class zi{constructor(e){this._instance=e}doPageView(e,t){var n,r=this.Gt(e,t);return this.Vt={pathname:null!==(n=null==y?void 0:y.location.pathname)&&void 0!==n?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),r}doPageLeave(e){var t;return this.Gt(e,null==(t=this.Vt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Vt)?void 0:e.pageViewId}}Gt(e,t){var n=this.Vt;if(!n)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:s,maxContentHeight:l,lastContentY:c,maxContentY:u}=i;if(!(Q(o)||Q(a)||Q(s)||Q(l)||Q(c)||Q(u))){o=Math.ceil(o),a=Math.ceil(a),s=Math.ceil(s),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u);var d=o<=1?1:de(a/o,0,1,We),p=o<=1?1:de(s/o,0,1,We),f=l<=1?1:de(c/l,0,1,We),h=l<=1?1:de(u/l,0,1,We);r=Xe(r,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:f,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:h})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),r}}var Ri=Uint8Array,Ti=Uint16Array,Ii=Uint32Array,Oi=new Ri([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]),Fi=new Ri([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]),Ai=new Ri([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mi=function(e,t){for(var n=new Ti(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Ii(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Li=Mi(Oi,2),Di=Li[0],ji=Li[1];Di[28]=258,ji[258]=28;for(var Ni=Mi(Fi,0)[1],$i=new Ti(32768),Bi=0;Bi<32768;++Bi){var Wi=(43690&Bi)>>>1|(21845&Bi)<<1;Wi=(61680&(Wi=(52428&Wi)>>>2|(13107&Wi)<<2))>>>4|(3855&Wi)<<4,$i[Bi]=((65280&Wi)>>>8|(255&Wi)<<8)>>>1}var Vi=function(e,t,n){for(var r=e.length,i=0,o=new Ti(t);i<r;++i)++o[e[i]-1];var a,s=new Ti(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;for(a=new Ti(r),i=0;i<r;++i)a[i]=$i[s[e[i]-1]++]>>>15-e[i];return a},Hi=new Ri(288);for(Bi=0;Bi<144;++Bi)Hi[Bi]=8;for(Bi=144;Bi<256;++Bi)Hi[Bi]=9;for(Bi=256;Bi<280;++Bi)Hi[Bi]=7;for(Bi=280;Bi<288;++Bi)Hi[Bi]=8;var Ui=new Ri(32);for(Bi=0;Bi<32;++Bi)Ui[Bi]=5;var qi=Vi(Hi,9),Gi=Vi(Ui,5),Yi=function(e){return(e/8|0)+(7&e&&1)},Xi=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof Ti?Ti:e instanceof Ii?Ii:Ri)(n-t);return r.set(e.subarray(t,n)),r},Ki=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Qi=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Zi=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new Ri(0),0];if(1==i){var a=new Ri(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:s.f+l.f,l:s,r:l};var p=o[0].s;for(r=1;r<i;++r)o[r].s>p&&(p=o[r].s);var f=new Ti(p+1),h=Ji(n[u-1],f,0);if(h>t){r=0;var g=0,m=h-t,v=1<<m;for(o.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});r<i;++r){var b=o[r].s;if(!(f[b]>t))break;g+=v-(1<<h-f[b]),f[b]=t}for(g>>>=m;g>0;){var y=o[r].s;f[y]<t?g-=1<<t-f[y]++-1:++r}for(;r>=0&&g;--r){var x=o[r].s;f[x]==t&&(--f[x],++g)}h=t}return[new Ri(f),h]},Ji=function(e,t,n){return-1==e.s?Math.max(Ji(e.l,t,n+1),Ji(e.r,t,n+1)):t[e.s]=n},eo=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ti(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},to=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},no=function(e,t,n){var r=n.length,i=Yi(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},ro=function(e,t,n,r,i,o,a,s,l,c,u){Ki(t,u++,n),++i[256];for(var d=Zi(i,15),p=d[0],f=d[1],h=Zi(o,15),g=h[0],m=h[1],v=eo(p),b=v[0],y=v[1],x=eo(g),k=x[0],w=x[1],S=new Ti(19),_=0;_<b.length;++_)S[31&b[_]]++;for(_=0;_<k.length;++_)S[31&k[_]]++;for(var C=Zi(S,7),E=C[0],P=C[1],z=19;z>4&&!E[Ai[z-1]];--z);var R,T,I,O,F=c+5<<3,A=to(i,Hi)+to(o,Ui)+a,M=to(i,p)+to(o,g)+a+14+3*z+to(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=A&&F<=M)return no(t,u,e.subarray(l,l+c));if(Ki(t,u,1+(M<A)),u+=2,M<A){R=Vi(p,f),T=p,I=Vi(g,m),O=g;var L=Vi(E,P);for(Ki(t,u,y-257),Ki(t,u+5,w-1),Ki(t,u+10,z-4),u+=14,_=0;_<z;++_)Ki(t,u+3*_,E[Ai[_]]);u+=3*z;for(var D=[b,k],j=0;j<2;++j){var N=D[j];for(_=0;_<N.length;++_){var $=31&N[_];Ki(t,u,L[$]),u+=E[$],$>15&&(Ki(t,u,N[_]>>>5&127),u+=N[_]>>>12)}}}else R=qi,T=Hi,I=Gi,O=Ui;for(_=0;_<s;++_)if(r[_]>255){$=r[_]>>>18&31,Qi(t,u,R[$+257]),u+=T[$+257],$>7&&(Ki(t,u,r[_]>>>23&31),u+=Oi[$]);var B=31&r[_];Qi(t,u,I[B]),u+=O[B],B>3&&(Qi(t,u,r[_]>>>5&8191),u+=Fi[B])}else Qi(t,u,R[r[_]]),u+=T[r[_]];return Qi(t,u,R[256]),u+T[256]},io=new Ii([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oo=function(){for(var e=new Ii(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ao=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};var so=!!z||!!P,lo="text/plain",co=function(e,t,n){var r;void 0===n&&(n=!0);var[i,o]=e.split("?"),a=M({},t),s=null!==(r=null==o?void 0:o.split("&").map(e=>{var t,[r,i]=e.split("="),o=n&&null!==(t=a[r])&&void 0!==t?t:i;return delete a[r],r+"="+o}))&&void 0!==r?r:[],l=function(e,t){var n,r;void 0===t&&(t="&");var i=[];return Ye(e,function(e,t){Q(e)||Q(t)||"undefined"===t||(n=encodeURIComponent(e instanceof File?e.name:e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n)}),i.join(t)}(a);return l&&s.push(l),i+"?"+s.join("&")},uo=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),po=e=>{var t,{data:n,compression:r}=e;if(n){if(r===bn.GZipJS){var i=function(e,t){void 0===t&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=oo[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}}(),r=e.length;n.p(e);var i,o=function(e,t,n){return function(e,t,n,r){var i=e.length,o=new Ri(r+i+5*(1+Math.floor(i/7e3))+8),a=o.subarray(r,o.length-8),s=0;if(!t||i<8)for(var l=0;l<=i;l+=65535){var c=l+65535;c<i?s=no(a,s,e.subarray(l,c)):(a[l]=!0,s=no(a,s,e.subarray(l,i)))}else{for(var u=io[t-1],d=u>>>13,p=8191&u,f=(1<<n)-1,h=new Ti(32768),g=new Ti(f+1),m=Math.ceil(n/3),v=2*m,b=function(t){return(e[t]^e[t+1]<<m^e[t+2]<<v)&f},y=new Ii(25e3),x=new Ti(288),k=new Ti(32),w=0,S=0,_=(l=0,0),C=0,E=0;l<i;++l){var P=b(l),z=32767&l,R=g[P];if(h[z]=R,g[P]=z,C<=l){var T=i-l;if((w>7e3||_>24576)&&T>423){s=ro(e,a,0,y,x,k,S,_,E,l-E,s),_=w=S=0,E=l;for(var I=0;I<286;++I)x[I]=0;for(I=0;I<30;++I)k[I]=0}var O=2,F=0,A=p,M=z-R&32767;if(T>2&&P==b(l-M))for(var L=Math.min(d,T)-1,D=Math.min(32767,l),j=Math.min(258,T);M<=D&&--A&&z!=R;){if(e[l+O]==e[l+O-M]){for(var N=0;N<j&&e[l+N]==e[l+N-M];++N);if(N>O){if(O=N,F=M,N>L)break;var $=Math.min(M,N-2),B=0;for(I=0;I<$;++I){var W=l-M+I+32768&32767,V=W-h[W]+32768&32767;V>B&&(B=V,R=W)}}}M+=(z=R)-(R=h[z])+32768&32767}if(F){y[_++]=268435456|ji[O]<<18|Ni[F];var H=31&ji[O],U=31&Ni[F];S+=Oi[H]+Fi[U],++x[257+H],++k[U],C=l+O,++w}else y[_++]=e[l],++x[e[l]]}}s=ro(e,a,!0,y,x,k,S,_,E,l-E,s)}return Xi(o,0,r+Yi(s)+8)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n)}(e,t,10+((i=t).filename&&i.filename.length+1||0)),a=o.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ao(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(o,t),ao(o,a-8,n.d()),ao(o,a-4,r),o}(function(e){var t=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new Ri(e.length+(e.length>>>1)),r=0,i=function(e){n[r++]=e},o=0;o<t;++o){if(r+5>n.length){var a=new Ri(r+8+(t-o<<1));a.set(n),n=a}var s=e.charCodeAt(o);s<128?i(s):s<2048?(i(192|s>>>6),i(128|63&s)):s>55295&&s<57344?(i(240|(s=65536+(1047552&s)|1023&e.charCodeAt(++o))>>>18),i(128|s>>>12&63),i(128|s>>>6&63),i(128|63&s)):(i(224|s>>>12),i(128|s>>>6&63),i(128|63&s))}return Xi(n,0,r)}(uo(n)),{mtime:0}),o=new Blob([i],{type:lo});return{contentType:lo,body:o,estimatedSize:o.size}}if(r===bn.Base64){var a=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),ee(s)||(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o}(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c}(uo(n)),s=(t=a,"data="+encodeURIComponent("string"==typeof t?t:uo(t)));return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var l=uo(n);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},fo=[];P&&fo.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:i,estimatedSize:o}=null!==(t=po(e))&&void 0!==t?t:{},a=new Headers;Ye(e.headers,function(e,t){a.append(t,e)}),r&&a.append("Content-Type",r);var s=e.url,l=null;if(R){var c=new R;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}P(s,M({method:(null==e?void 0:e.method)||"GET",headers:a,keepalive:"POST"===e.method&&(o||0)<52428.8,body:i,signal:null==(n=l)?void 0:n.signal},e.fetchOptions)).then(t=>t.text().then(n=>{var r={statusCode:t.status,text:n};if(200===t.status)try{r.json=JSON.parse(n)}catch(i){We.error(i)}null==e.callback||e.callback(r)})).catch(t=>{We.error(t),null==e.callback||e.callback({statusCode:0,text:t})}).finally(()=>l?clearTimeout(l.timeout):null)}}),z&&fo.push({transport:"XHR",method:e=>{var t,n=new z;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:i}=null!==(t=po(e))&&void 0!==t?t:{};Ye(e.headers,function(e,t){n.setRequestHeader(t,e)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(4===n.readyState){var t={statusCode:n.status,text:n.responseText};if(200===n.status)try{t.json=JSON.parse(n.responseText)}catch(r){}null==e.callback||e.callback(t)}},n.send(i)}}),null!=_&&_.sendBeacon&&fo.push({transport:"sendBeacon",method:e=>{var t=co(e.url,{beacon:"1"});try{var n,{contentType:r,body:i}=null!==(n=po(e))&&void 0!==n?n:{},o="string"==typeof i?new Blob([i],{type:r}):i;_.sendBeacon(t,o)}catch(a){}}});var ho=function(e,t){if(!function(){return!0}())return!1;try{return new RegExp(t).test(e)}catch(n){return!1}};function go(e,t,n){return uo({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var mo={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>ho(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!ho(t,e))),icontains:(e,t)=>t.map(vo).some(t=>e.map(vo).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(vo).every(t=>e.map(vo).every(e=>!t.includes(e)))},vo=e=>e.toLowerCase(),bo=Ve("[Error tracking]");class yo{constructor(e){var t,n;this.Jt=[],this.Kt=new Re([new Te,new $e,new Oe,new Ie,new je,new De,new Ae,new Ne],[_e,Pe]),this._instance=e,this.Jt=null!==(t=null==(n=this._instance.persistence)?void 0:n.get_property(dt))&&void 0!==t?t:[]}onRemoteConfig(e){var t,n,r,i=null!==(t=null==(n=e.errorTracking)?void 0:n.suppressionRules)&&void 0!==t?t:[],o=null==(r=e.errorTracking)?void 0:r.captureExtensionExceptions;this.Jt=i,this._instance.persistence&&this._instance.persistence.register({[dt]:this.Jt,[pt]:o})}get Yt(){var e,t=!!this._instance.get_property(pt),n=this._instance.config.error_tracking.captureExtensionExceptions;return null!==(e=null!=n?n:t)&&void 0!==e&&e}buildProperties(e,t){return this.Kt.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.Xt(t)){if(this.Qt(t))return void bo.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(t))return void bo.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(t))return void bo.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:n,value:r}=t;return Z(n)&&n.length>0&&e.$exception_types.push(n),Z(r)&&r.length>0&&e.$exception_values.push(r),e},{$exception_types:[],$exception_values:[]});return this.Jt.some(e=>{var n=e.values.map(e=>{var n,r=mo[e.operator],i=G(e.value)?e.value:[e.value],o=null!==(n=t[e.key])&&void 0!==n?n:[];return i.length>0&&r(i,o)});return"OR"===e.type?n.some(Boolean):n.every(Boolean)})}Zt(e){return e.flatMap(e=>{var t,n;return null!==(t=null==(n=e.stacktrace)?void 0:n.frames)&&void 0!==t?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ti(e){if(e.length>0){var t,n,r,i,o=null!==(t=null==(n=e[0].stacktrace)?void 0:n.frames)&&void 0!==t?t:[],a=o[o.length-1];return null!==(r=null==a||null==(i=a.filename)?void 0:i.includes("posthog.com/static"))&&void 0!==r&&r}return!1}Xt(e){return!te(e)&&G(e)}}var xo=Ve("[FeatureFlags]"),ko="$active_feature_flags",wo="$override_feature_flags",So="$feature_flag_payloads",_o="$override_feature_flag_payloads",Co="$feature_flag_request_id",Eo=e=>{var t={};for(var[n,r]of Qe(e||{}))r&&(t[n]=r);return t},Po=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class zo{constructor(e){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=e,this.featureFlagEventHandlers=[]}li(){var e=this._instance.config.evaluation_environments;return null!=e&&e.length?e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||xo.error("Invalid evaluation environment found:",e,"Expected non-empty string"),t}):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var e=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:e})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(kt),t=this._instance.get_property(wo),n=this._instance.get_property(_o);if(!n&&!t)return e||{};var r=Xe({},e||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var o of i){var a,s,l=r[o],c=null==t?void 0:t[o],u=Q(c)?null!==(a=null==l?void 0:l.enabled)&&void 0!==a&&a:!!c,d=Q(c)?l.variant:"string"==typeof c?c:void 0,p=null==n?void 0:n[o],f=M({},l,{enabled:u,variant:u?null!=d?d:null==l?void 0:l.variant:void 0});u!==(null==l?void 0:l.enabled)&&(f.original_enabled=null==l?void 0:l.enabled),d!==(null==l?void 0:l.variant)&&(f.original_variant=null==l?void 0:l.variant),p&&(f.metadata=M({},null==l?void 0:l.metadata,{payload:p,original_payload:null==l||null==(s=l.metadata)?void 0:s.payload})),r[o]=f}return this.ii||(xo.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:r}),this.ii=!0),r}getFlagVariants(){var e=this._instance.get_property(yt),t=this._instance.get_property(wo);if(!t)return e||{};for(var n=Xe({},e),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this.ii||(xo.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.ii=!0),n}getFlagPayloads(){var e=this._instance.get_property(So),t=this._instance.get_property(_o);if(!t)return e||{};for(var n=Xe({},e||{}),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this.ii||(xo.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.ii=!0),n}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout(()=>{this.di()},5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.si=e}di(e){var t;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var n={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:M({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(wt)||{}),group_properties:this._instance.get_property(St)};(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.ui()&&(n.evaluation_environments=this.li());var r=this._instance.config.__preview_remote_config,i=r?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("api",i+o);r&&(n.timezone=xi()),this.ri=!0,this._instance.ci({method:"POST",url:a,data:n,compression:this._instance.config.disable_compression?void 0:bn.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,r,i=!0;if(200===e.statusCode&&(this.ni||(this.$anon_distinct_id=void 0),i=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi(null!==(r=e.json)&&void 0!==r?r:{})),!n.disable_flags||this.ni)if(this.ai=!i,e.json&&null!=(t=e.json.quotaLimited)&&t.includes(Po.FeatureFlags))xo.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.");else{var o;n.disable_flags||this.receivedFeatureFlags(null!==(o=e.json)&&void 0!==o?o:{},i),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[e],r=""+n,i=this._instance.get_property(Co)||void 0,o=this._instance.get_property(Et)||{};if((t.send_event||!("send_event"in t))&&(!(e in o)||!o[e].includes(r))){var a,s,l,c,u,d,p,f,h;G(o[e])?o[e].push(r):o[e]=[r],null==(a=this._instance.persistence)||a.register({[Et]:o});var g=this.getFeatureFlagDetails(e),m={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:this.getFeatureFlagPayload(e)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:(null==(s=this._instance.config.bootstrap)||null==(s=s.featureFlags)?void 0:s[e])||null,$feature_flag_bootstrapped_payload:(null==(l=this._instance.config.bootstrap)||null==(l=l.featureFlagPayloads)?void 0:l[e])||null,$used_bootstrap_value:!this.ai};Q(null==g||null==(c=g.metadata)?void 0:c.version)||(m.$feature_flag_version=g.metadata.version);var v,b=null!==(u=null==g||null==(d=g.reason)?void 0:d.description)&&void 0!==u?u:null==g||null==(p=g.reason)?void 0:p.code;b&&(m.$feature_flag_reason=b),null!=g&&null!=(f=g.metadata)&&f.id&&(m.$feature_flag_id=g.metadata.id),Q(null==g?void 0:g.original_variant)&&Q(null==g?void 0:g.original_enabled)||(m.$feature_flag_original_response=Q(g.original_variant)?g.original_enabled:g.original_variant),null!=g&&null!=(h=g.metadata)&&h.original_payload&&(m.$feature_flag_original_payload=null==g||null==(v=g.metadata)?void 0:v.original_payload),this._instance.capture("$feature_flag_called",m)}return n}xo.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFlagPayloads()[e]}getRemoteConfigPayload(e,t){var n=this._instance.config.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.ui()&&(r.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("api","/flags/?v=2&config=true"),data:r,compression:this._instance.config.disable_compression?void 0:bn.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:n=>{var r,i=null==(r=n.json)?void 0:r.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return Q(n)?void 0:!!n}xo.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ei=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();!function(e,t,n,r,i){void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={});var o=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(e=>{var n;return[e,null!==(n=t[e].variant)&&void 0!==n?n:t[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(e=>t[e].enabled).filter(e=>{var n;return null==(n=t[e].metadata)?void 0:n.payload}).map(e=>{var n;return[e,null==(n=t[e].metadata)?void 0:n.payload]}))):xo.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e})(e),a=o.flags,s=o.featureFlags,l=o.featureFlagPayloads;if(s){var c=e.requestId;if(G(s)){xo.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var u={};if(s)for(var d=0;d<s.length;d++)u[s[d]]=!0;t&&t.register({[ko]:s,[yt]:u})}else{var p=s,f=l,h=a;e.errorsWhileComputingFlags&&(p=M({},n,p),f=M({},r,f),h=M({},i,h)),t&&t.register(M({[ko]:Object.keys(Eo(p)),[yt]:p||{},[So]:f||{},[kt]:h||{}},c?{[Co]:c}:{}))}}}(e,this._instance.persistence,n,r,i),this.pi(t)}}override(e,t){void 0===t&&(t=!1),xo.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return xo.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(wo),this._instance.persistence.unregister(_o),void this.pi();if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t,n=e;if(this.ii=Boolean(null!==(t=n.suppressWarning)&&void 0!==t&&t),"flags"in n)if(!1===n.flags)this._instance.persistence.unregister(wo);else if(n.flags)if(G(n.flags)){for(var r={},i=0;i<n.flags.length;i++)r[n.flags[i]]=!0;this._instance.persistence.register({[wo]:r})}else this._instance.persistence.register({[wo]:n.flags});return"payloads"in n&&(!1===n.payloads?this._instance.persistence.unregister(_o):n.payloads&&this._instance.persistence.register({[_o]:n.payloads})),void this.pi()}this.pi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ei){var{flags:t,flagVariants:n}=this.gi();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this._instance.get_property(xt)||[]).find(t=>t.flagKey===e),o={["$feature_enrollment/"+e]:t},a={$feature_flag:e,$feature_enrollment:t,$set:o};i&&(a.$early_access_feature_name=i.name),n&&(a.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(o,!1);var s=M({},this.getFlagVariants(),{[e]:t});null==(r=this._instance.persistence)||r.register({[ko]:Object.keys(Eo(s)),[yt]:s}),this.pi()}getEarlyAccessFeatures(e,t,n){void 0===t&&(t=!1);var r=this._instance.get_property(xt),i=n?"&"+n.map(e=>"stage="+e).join("&"):"";if(r&&!t)return e(r);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return null==(n=this._instance.persistence)||n.unregister(xt),null==(r=this._instance.persistence)||r.register({[xt]:i}),e(i)}}})}gi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,n)=>(e[n]=t[n],e),{})}}pi(e){var{flags:t,flagVariants:n}=this.gi();this.featureFlagEventHandlers.forEach(r=>r(t,n,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this._instance.get_property(wt)||{};this._instance.register({[wt]:M({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(wt)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var n=this._instance.get_property(St)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(t=>{n[t]=M({},n[t],e[t]),delete e[t]}),this._instance.register({[St]:M({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(St)||{};this._instance.register({[St]:M({},t,{[e]:{}})})}else this._instance.unregister(St)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var Ro=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class To{constructor(e,t){var n,r;this.C=e,this.props={},this.mi=!1,this.yi=(r="",(n=e).token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"),this.Y=this.bi(e),this.load(),e.debug&&We.info("Persistence loaded",e.persistence,M({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.wi}bi(e){-1===Ro.indexOf(e.persistence.toLowerCase())&&(We.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&Nn.H()?Nn:"localstorage+cookie"===t&&Bn.H()?Bn:"sessionstorage"===t&&Un.H()?Un:"memory"===t?Vn:"cookie"===t?Dn:Bn.H()?Bn:Dn}properties(){var e={};return Ye(this.props,function(t,n){if(n===yt&&X(t))for(var r=Object.keys(t),i=0;i<r.length;i++)e["$feature/"+r[i]]=t[r[i]];else a=n,s=!1,(ee(o=Lt)?s:S&&o.indexOf===S?-1!=o.indexOf(a):(Ye(o,function(e){if(s||(s=e===a))return qe}),s))||(e[n]=t);var o,a,s}),e}load(){if(!this.wi){var e=this.Y.W(this.yi);e&&(this.props=Xe({},e))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.C.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(X(e)){Q(t)&&(t="None"),this.xi=Q(n)?this.$i:n;var r=!1;if(Ye(e,(e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e,r=!0)}),r)return this.save(),!0}return!1}register(e,t){if(X(e)){this.xi=Q(t)?this.$i:t;var n=!1;if(Ye(e,(t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.props[r]=t,n=!0)}),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.mi){var e=fi(this.C.custom_campaign_params,this.C.mask_personal_data_properties,this.C.custom_personal_data_properties);K(et(e))||this.register(e),this.mi=!0}}update_search_keyword(){var e;this.register((e=null==C?void 0:C.referrer)?gi(e):{})}update_referrer_info(){var e;this.register_once({$referrer:vi(),$referring_domain:null!=C&&C.referrer&&(null==(e=yn(C.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Tt]||this.props[It]||this.register_once({[Ot]:bi(this.C.mask_personal_data_properties,this.C.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Ye([It,Tt],t=>{var n=this.props[t];n&&Ye(n,function(t,n){e["$initial_"+W(n)]=t})});var t,n,r=this.props[Ot];if(r){var i=(t=yi(r),n={},Ye(t,function(e,t){n["$initial_"+W(t)]=e}),n);Xe(e,i)}return e}safe_merge(e){return Ye(this.props,function(t,n){n in e||(e[n]=t)}),e}update_config(e,t,n){if(this.$i=this.xi=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var r=this.bi(e),i=this.props;this.clear(),this.Y=r,this.props=i,this.save()}}set_disabled(e){this.wi=e,this.wi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Si&&(this.Si=e,this.remove(),this.save())}set_secure(e){e!==this.Ei&&(this.Ei=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[st]||{};n[e]=t,this.props[st]=n,this.save()}remove_event_timer(e){var t=(this.props[st]||{})[e];return Q(t)||(delete this.props[st][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}!function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({});var Io=function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({});!function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({});var Oo=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),Fo=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),Ao=function(e){return e.Popover="popover",e.Inline="inline",e}({});class Mo{constructor(){this.ki={},this.ki={}}on(e,t){return this.ki[e]||(this.ki[e]=[]),this.ki[e].push(t),()=>{this.ki[e]=this.ki[e].filter(e=>e!==t)}}emit(e,t){for(var n of this.ki[e]||[])n(t);for(var r of this.ki["*"]||[])r(e,t)}}class Lo{constructor(e){this.Pi=new Mo,this.Ti=(e,t)=>this.Ri(e,t)&&this.Ii(e,t)&&this.Ci(e,t),this.Ri=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Oi=new Set,this.Fi=new Set}init(){var e,t;Q(null==(e=this._instance)?void 0:e.Mi)||null==(t=this._instance)||t.Mi((e,t)=>{this.on(e,t)})}register(e){var t,n;if(!Q(null==(t=this._instance)?void 0:t.Mi)&&(e.forEach(e=>{var t,n;null==(t=this.Fi)||t.add(e),null==(n=e.steps)||n.forEach(e=>{var t;null==(t=this.Oi)||t.add((null==e?void 0:e.event)||"")})}),null!=(n=this._instance)&&n.autocapture)){var r,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(r=this._instance)||r.autocapture.setElementSelectors(i)}}on(e,t){var n;null!=t&&0!=e.length&&(this.Oi.has(e)||this.Oi.has(null==t?void 0:t.event))&&this.Fi&&(null==(n=this.Fi)?void 0:n.size)>0&&this.Fi.forEach(e=>{this.Ai(t,e)&&this.Pi.emit("actionCaptured",e.name)})}Di(e){this.onAction("actionCaptured",t=>e(t))}Ai(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var n of t.steps)if(this.Ti(e,n))return!0;return!1}onAction(e,t){return this.Pi.on(e,t)}Ii(e,t){if(null!=t&&t.url){var n,r=null==e||null==(n=e.properties)?void 0:n.$current_url;if(!r||"string"!=typeof r)return!1;if(!Lo.ji(r,null==t?void 0:t.url,(null==t?void 0:t.url_matching)||"contains"))return!1}return!0}static ji(e,t,n){switch(n){case"regex":return!!y&&ho(e,t);case"exact":return t===e;case"contains":var r=Lo.Li(t).replace(/_/g,".").replace(/%/g,".*");return ho(e,r);default:return!1}}static Li(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ci(e,t){if((null!=t&&t.href||null!=t&&t.tag_name||null!=t&&t.text)&&!this.Ni(e).some(e=>!(null!=t&&t.href&&!Lo.ji(e.href||"",null==t?void 0:t.href,(null==t?void 0:t.href_matching)||"exact")||null!=t&&t.tag_name&&e.tag_name!==(null==t?void 0:t.tag_name)||null!=t&&t.text&&!Lo.ji(e.text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact")&&!Lo.ji(e.$el_text||"",null==t?void 0:t.text,(null==t?void 0:t.text_matching)||"exact"))))return!1;if(null!=t&&t.selector){var n,r=null==e||null==(n=e.properties)?void 0:n.$element_selectors;if(!r)return!1;if(!r.includes(null==t?void 0:t.selector))return!1}return!0}Ni(e){return null==(null==e?void 0:e.properties.$elements)?[]:null==e?void 0:e.properties.$elements}}var Do=Ve("[Surveys]"),jo="seenSurvey_",No=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n},$o=e=>{var t=""+jo+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+jo+e.id+"_"+e.current_iteration),t},Bo=[Io.Popover,Io.Widget,Io.API],Wo={ignoreConditions:!1,ignoreDelay:!1,displayType:Ao.Popover};class Vo{constructor(e){this._instance=e,this.Ui=new Map,this.zi=new Map}register(e){var t;Q(null==(t=this._instance)?void 0:t.Mi)||(this.Hi(e),this.Bi(e))}Bi(e){var t=e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0});0!==t.length&&(null==this.qi&&(this.qi=new Lo(this._instance),this.qi.init(),this.qi.Di(e=>{this.onAction(e)})),t.forEach(e=>{var t,n,r,i,o;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(n=e.conditions)&&null!=(n=n.actions)&&n.values&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0&&(null==(i=this.qi)||i.register(e.conditions.actions.values),null==(o=e.conditions)||null==(o=o.actions)||null==(o=o.values)||o.forEach(t=>{if(t&&t.name){var n=this.zi.get(t.name);n&&n.push(e.id),this.zi.set(t.name,n||[e.id])}}))}))}Hi(e){var t;0!==e.filter(e=>{var t,n;return(null==(t=e.conditions)?void 0:t.events)&&(null==(n=e.conditions)||null==(n=n.events)||null==(n=n.values)?void 0:n.length)>0}).length&&(null==(t=this._instance)||t.Mi((e,t)=>{this.onEvent(e,t)}),e.forEach(e=>{var t;null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||t.forEach(t=>{if(t&&t.name){var n=this.Ui.get(t.name);n&&n.push(e.id),this.Ui.set(t.name,n||[e.id])}})}))}onEvent(e,t){var n,r,i=(null==(n=this._instance)||null==(n=n.persistence)?void 0:n.props[Ct])||[];if(Oo.SHOWN===e&&t&&i.length>0){var o;Do.info("survey event matched, removing survey from activated surveys",{event:e,eventPayload:t,existingActivatedSurveys:i});var a=null==t||null==(o=t.properties)?void 0:o.$survey_id;if(a){var s=i.indexOf(a);s>=0&&(i.splice(s,1),this.Wi(i))}}else if(this.Ui.has(e)){Do.info("survey event name matched",{event:e,eventPayload:t,surveys:this.Ui.get(e)});var l=[];null==(r=this._instance)||r.getSurveys(t=>{l=t.filter(t=>{var n;return null==(n=this.Ui.get(e))?void 0:n.includes(t.id)})});var c=l.filter(n=>{var r,i=null==(r=n.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.find(t=>t.name===e);return!!i&&(!i.propertyFilters||Object.entries(i.propertyFilters).every(e=>{var n,[r,i]=e,o=null==t||null==(n=t.properties)?void 0:n[r];if(Q(o)||ee(o))return!1;var a=[String(o)],s=mo[i.operator];return s?s(i.values,a):(Do.warn("Unknown property comparison operator: "+i.operator),!1)}))});this.Wi(i.concat(c.map(e=>e.id)||[]))}}onAction(e){var t,n=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[Ct])||[];this.zi.has(e)&&this.Wi(n.concat(this.zi.get(e)||[]))}Wi(e){var t;Do.info("updating activated surveys",{activatedSurveys:e}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[Ct]:[...new Set(e)]})}getSurveys(){var e;return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[Ct])||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class Ho{constructor(e){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(te(t))return Do.warn("Flags not loaded yet. Not loading surveys.");var n=G(t);this.Vi=n?t.length>0:t,Do.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(null!=n&&n.startsWith(jo)||null!=n&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)Do.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Do.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Do.info("Not loading surveys in cookieless mode without consent.");else{var e=null==I?void 0:I.__PosthogExtensions__;if(e){if(!Q(this.Vi)||this._instance.config.advanced_enable_surveys){var t=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var n=e.generateSurveys;if(n)return void this.Xi(n,t);var r=e.loadExternalDependency;if(!r)return void this.Qi("PostHog loadExternalDependency extension not found.");r(this._instance,"surveys",n=>{n||!e.generateSurveys?this.Qi("Could not load surveys script",n):this.Xi(e.generateSurveys,t)})}catch(i){throw this.Qi("Error initializing surveys",i),i}finally{this.Ki=!1}}}else Do.error("PostHog Extensions not found.")}}Xi(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Vo(this._instance),Do.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(e,t){Do.error(e,t),this.Zi({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Yi.push(e),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return Do.info("Disabled. Not loading surveys."),e([]);var n=this._instance.get_property(_t);if(n&&!t)return e(n,{isLoaded:!0});if(this.Ji)return e([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var n;this.Ji=!1;var r=t.statusCode;if(200!==r||!t.json){var i="Surveys API could not be loaded, status: "+r;return Do.error(i),e([],{isLoaded:!1,error:i})}var o,a=t.json.surveys||[],s=a.filter(e=>{return!(!(t=e).start_date||t.end_date)&&(function(e){var t;return!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)}(e)||function(e){var t;return!(null==(t=e.conditions)||null==(t=t.actions)||null==(t=t.values)||!t.length)}(e));var t});return s.length>0&&(null==(o=this._surveyEventReceiver)||o.register(s)),null==(n=this._instance.persistence)||n.register({[_t]:a}),e(a,{isLoaded:!0})}})}catch(r){throw this.Ji=!1,r}}Zi(e){for(var t of this.Yi)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){Do.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!te(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Do.warn("init was not called")}te(e){var t=null;return this.getSurveys(n=>{var r;t=null!==(r=n.find(t=>t.id===e))&&void 0!==r?r:null}),t}ie(e){if(te(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.te(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(te(this._surveyManager))return Do.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.ie(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return te(this._surveyManager)?(Do.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(n=>{this.getSurveys(t=>{var r,i=null!==(r=t.find(t=>t.id===e))&&void 0!==r?r:null;if(i){var o=this.ie(i);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t){var n;if(te(this._surveyManager))Do.warn("init was not called");else{var r="string"==typeof e?this.te(e):e;if(null!=r&&r.id)if(Bo.includes(r.type)){var i=null==C?void 0:C.querySelector(t);if(i)return null!=(n=r.appearance)&&n.surveyPopupDelaySeconds?(Do.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;Do.info("Rendering survey "+r.id+" with delay of "+(null==(e=r.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(r,i),Do.info("Survey "+r.id+" rendered")},1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i);Do.warn("Survey element not found")}else Do.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Do.warn("Survey not found")}}displaySurvey(e,t){var n;if(te(this._surveyManager))Do.warn("init was not called");else{var r=this.te(e);if(r){var i=r;if(null!=(n=r.appearance)&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=M({},r,{appearance:M({},r.appearance,{surveyPopupDelaySeconds:0})})),!1===t.ignoreConditions){var o=this.canRenderSurvey(r);if(!o.visible)return void Do.warn("Survey is not eligible to be displayed: ",o.disabledReason)}t.displayType!==Ao.Inline?this._surveyManager.handlePopoverSurvey(i):this.renderSurvey(i,t.selector)}else Do.warn("Survey not found")}}}var Uo=Ve("[RateLimiter]");class qo{constructor(e){var t,n;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{Uo.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(n){return void Uo.warn('could not rate limit - continuing. Error: "'+(null==n?void 0:n.message)+'"',{text:t})}},this.instance=e,this.captureEventsPerSecond=(null==(t=e.config.rate_limiting)?void 0:t.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null==(n=e.config.rate_limiting)?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(e){var t,n,r;void 0===e&&(e=!1);var i=(new Date).getTime(),o=null!==(t=null==(n=this.instance.persistence)?void 0:n.get_property(Rt))&&void 0!==t?t:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||e||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,null==(r=this.instance.persistence)||r.set_property(Rt,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var Go=Ve("[RemoteConfig]");class Yo{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=I._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}ee(e){var t,n;null!=(t=I.__PosthogExtensions__)&&t.loadExternalDependency?null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):(Go.error("PostHog Extensions not found. Cannot load remote config."),e())}re(e){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return Go.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void Go.warn("Remote config is disabled. Falling back to local config.");this.ee(e=>{if(!e)return Go.info("No config found after loading remote JS config. Falling back to JSON."),void this.re(e=>{this.fi(e)});this.fi(e)})}catch(mn){Go.error("Error loading remote config",mn)}}fi(e){e?this._instance.config.__preview_remote_config?(this._instance.fi(e),!1!==e.hasFeatureFlags&&this._instance.featureFlags.ensureFlagsLoaded()):Go.info("__preview_remote_config is disabled. Logging config instead",e):Go.error("Failed to fetch remote config from PostHog.")}}var Xo=3e3;class Ko{constructor(e,t){this.se=!0,this.ne=[],this.oe=de((null==t?void 0:t.flush_interval_ms)||Xo,250,5e3,We.createLogger("flush interval"),Xo),this.ae=e}enqueue(e){this.ne.push(e),this.le||this.ue()}unload(){this.he();var e=this.ne.length>0?this.de():{},t=Object.values(e);[...t.filter(e=>0===e.url.indexOf("/e")),...t.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.ae(M({},e,{transport:"sendBeacon"}))})}enable(){this.se=!1,this.ue()}ue(){var e=this;this.se||(this.le=setTimeout(()=>{if(this.he(),this.ne.length>0){var t=this.de(),n=function(){var n=t[r],i=(new Date).getTime();n.data&&G(n.data)&&Ye(n.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.ae(n)};for(var r in t)n()}},this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var e={};return Ye(this.ne,t=>{var n,r=t,i=(r?r.batchKey:null)||r.url;Q(e[i])&&(e[i]=M({},r,{data:[]})),null==(n=e[i].data)||n.push(r.data)}),this.ne=[],e}}var Qo=["retriesPerformedSoFar"];class Zo{constructor(e){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=e,this.ne=[],this.fe=!0,!Q(y)&&"onLine"in y.navigator&&(this.fe=y.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},it(y,"online",this.pe),it(y,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=L(e,Qo);ne(t)&&t>0&&(n.url=co(n.url,{retry_count:t})),this._instance.ci(M({},n,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this._e(M({retriesPerformedSoFar:t},n)):null==n.callback||n.callback(e)}}))}_e(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n,r,i,o,a,s=(n=t,i=(r=3e3*Math.pow(2,n))/2,o=Math.min(18e5,r),a=(Math.random()-.5)*(o-i),Math.ceil(o+a)),l=Date.now()+s;this.ne.push({retryAt:l,requestOptions:e});var c="Enqueued failed request for retry in "+s;navigator.onLine||(c+=" (Browser is offline)"),We.warn(c),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),0===this.ne.length)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout(()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()},this.ce)}Dt(){var e=Date.now(),t=[],n=this.ne.filter(n=>n.retryAt<e||(t.push(n),!1));if(this.ne=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,Q(y)||(this.pe&&(y.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(y.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(M({},e,{transport:"sendBeacon"}))}catch(mn){We.error(mn)}this.ne=[]}}class Jo{constructor(e){this.be=()=>{var e,t,n,r;this.we||(this.we={});var i=this.scrollElement(),o=this.scrollY(),a=i?Math.max(0,i.scrollHeight-i.clientHeight):0,s=o+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.we.lastScrollY=Math.ceil(o),this.we.maxScrollY=Math.max(o,null!==(e=this.we.maxScrollY)&&void 0!==e?e:0),this.we.maxScrollHeight=Math.max(a,null!==(t=this.we.maxScrollHeight)&&void 0!==t?t:0),this.we.lastContentY=s,this.we.maxContentY=Math.max(s,null!==(n=this.we.maxContentY)&&void 0!==n?n:0),this.we.maxContentHeight=Math.max(l,null!==(r=this.we.maxContentHeight)&&void 0!==r?r:0)},this._instance=e}getContext(){return this.we}resetContext(){var e=this.we;return setTimeout(this.be,0),e}startMeasuringScrollPosition(){it(y,"scroll",this.be,{capture:!0}),it(y,"scrollend",this.be,{capture:!0}),it(y,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==y?void 0:y.document.documentElement;var e=G(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var t of e){var n=null==y?void 0:y.document.querySelector(t);if(n)return n}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return y&&(y.scrollY||y.pageYOffset||y.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return y&&(y.scrollX||y.pageXOffset||y.document.documentElement.scrollLeft)||0}}var ea=e=>bi(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class ta{constructor(e,t,n,r){this.xe=e=>{var t=this.Se();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.Ee(this._instance)};this.$e.register({[zt]:n})}},this._instance=e,this.ke=t,this.$e=n,this.Ee=r||ea,this.ke.onSessionId(this.xe)}Se(){return this.$e.props[zt]}getSetOnceProps(){var e,t=null==(e=this.Se())?void 0:e.props;return t?"r"in t?yi(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return Ye(et(this.getSetOnceProps()),(t,n)=>{"$current_url"===n&&(n="url"),e["$session_entry_"+W(n)]=t}),e}}var na=Ve("[SessionId]");class ra{on(e,t){return this.Pe.on(e,t)}constructor(e,t,n){var r;if(this.Te=[],this.Re=void 0,this.Pe=new Mo,this.Ie=(e,t)=>Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.C=e.config,this.$e=e.persistence,this.Ce=void 0,this.Oe=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fe=t||Fn,this.Me=n||Fn;var i=this.C.persistence_name||this.C.token,o=this.C.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*de(o,60,36e3,na.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+i+"_window_id",this.je="ph_"+i+"_primary_window_exists",this.Le()){var a=Un.W(this.De),s=Un.W(this.je);a&&!s?this.Ce=a:Un.V(this.De),Un.G(this.je,!0)}if(null!=(r=this.C.bootstrap)&&r.sessionID)try{var l=(()=>{var e=this.C.bootstrap.sessionID.replace(/-/g,"");if(32!==e.length)throw new Error("Not a valid UUID");if("7"!==e[12])throw new Error("Not a UUIDv7");return parseInt(e.substring(0,12),16)})();this.Ne(this.C.bootstrap.sessionID,(new Date).getTime(),l)}catch(c){na.error("Invalid sessionID in bootstrap",c)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return Q(this.Te)&&(this.Te=[]),this.Te.push(e),this.Oe&&e(this.Oe,this.Ce),()=>{this.Te=this.Te.filter(t=>t!==e)}}Le(){return"memory"!==this.C.persistence&&!this.$e.wi&&Un.H()}ze(e){e!==this.Ce&&(this.Ce=e,this.Le()&&Un.G(this.De,e))}He(){return this.Ce?this.Ce:this.Le()?Un.W(this.De):null}Ne(e,t,n){e===this.Oe&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.Oe=e,this.$e.register({[vt]:[t,e,n]}))}Be(){if(this.Oe&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Oe,this._sessionStartTimestamp];var e=this.$e.props[vt];return G(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Re&&y&&(y.removeEventListener("beforeunload",this.Re,{capture:!1}),this.Re=void 0),this.Te=[]}Ue(){this.Re=()=>{this.Le()&&Un.V(this.je)},it(y,"beforeunload",this.Re,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.C.cookieless_mode)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=t||(new Date).getTime(),[r,i,o]=this.Be(),a=this.He(),s=ne(o)&&o>0&&Math.abs(n-o)>864e5,l=!1,c=!i,u=!e&&this.Ie(n,r);c||u||s?(i=this.Fe(),a=this.Me(),na.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}}),o=n,l=!0):a||(a=this.Me(),l=!0);var d=0===r||!e||s?n:r,p=0===o?(new Date).getTime():o;return this.ze(a),this.Ne(i,d,p),e||this.Ae(),l&&this.Te.forEach(e=>e(i,a,l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0)),{sessionId:i,windowId:a,sessionStartTimestamp:p,changeReason:l?{noSessionId:c,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:r}}Ae(){clearTimeout(this.qe),this.qe=setTimeout(()=>{var[e]=this.Be();if(this.Ie((new Date).getTime(),e)){var t=this.Oe;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var ia=["$set_once","$set"],oa=Ve("[SiteApps]");class aa{constructor(e){this._instance=e,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(e,t){if(t){var n=this.globalsForEvent(t);this.We.push(n),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var e;return null==(e=I._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{e(),this.We=[],this.Ve=void 0}}}globalsForEvent(e){var t,n,r,i,o,a,s;if(!e)throw new Error("Event payload is required");var l={},c=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[d,p]of Object.entries(u))l[d]={id:c[d],type:d,properties:p};var{$set_once:f,$set:h}=e;return{event:M({},L(e,ia),{properties:M({},e.properties,h?{$set:M({},null!==(t=null==(n=e.properties)?void 0:n.$set)&&void 0!==t?t:{},h)}:{},f?{$set_once:M({},null!==(r=null==(i=e.properties)?void 0:i.$set_once)&&void 0!==r?r:{},f)}:{}),elements_chain:null!==(o=null==(a=e.properties)?void 0:a.$elements_chain)&&void 0!==o?o:"",distinct_id:null==(s=e.properties)?void 0:s.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var n;!t.errored&&this.We.length&&(oa.info("Processing "+this.We.length+" events for site app with id "+e.id),this.We.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(n=this.Ve)||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,oa.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),r&&n()};try{var{processEvent:o}=e.init({posthog:this._instance,callback:e=>{i(e)}});o&&(t.processEvent=o),r=!0}catch(a){oa.error("Error while initializing PostHog app with config id "+e.id,a),i(!1)}if(r&&t.loaded)try{n()}catch(s){oa.error("Error while processing buffered events PostHog app with config id "+e.id,s),t.errored=!0}}Je(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}Ke(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{null==n.processEvent||n.processEvent(t)}catch(r){oa.error("Error while processing event "+e.event+" for site app "+n.id,r)}}}onRemoteConfig(e){var t,n,r,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",e=>this.Ke(e))):void oa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(n=this.Ve)||n.call(this),null!=(r=e.siteApps)&&r.length)if(this.isEnabled){var o=function(e){var t;I["__$$ph_site_app_"+e]=i._instance,null==(t=I.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,s,t=>{if(t)return oa.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:a,url:s}of e.siteApps)o(a)}else oa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var sa=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&j(n,t))return!0;try{var r=null==e?void 0:e.userAgentData;if(null!=r&&r.brands&&r.brands.some(e=>j(null==e?void 0:e.brand,t)))return!0}catch(i){}return!!e.webdriver},la=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),ca="i.posthog.com";class ua{constructor(e){this.Ye={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+ca,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=la.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=la.EU:this.Ye[this.apiHost]=la.CUSTOM),this.Ye[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if(this.region===la.CUSTOM)return this.apiHost+t;var n=ca+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var da={icontains:(e,t)=>!!y&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!y&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!y&&ho(t.href,e),not_regex:(e,t)=>!!y&&!ho(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class pa{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{pa.Xe("retrieved web experiments from the server"),t.Qe=new Map,e.forEach(e=>{if(e.feature_flag_key){var n;t.Qe&&(pa.Xe("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(n=t.Qe)||n.set(e.feature_flag_key,e));var r=t._instance.getFeatureFlag(e.feature_flag_key);Z(r)&&e.variants[r]&&t.Ze(e.name,r,e.variants[r].transforms)}else if(e.variants)for(var i in e.variants){var o=e.variants[i];pa.tr(o)&&t.Ze(e.name,i,o.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())pa.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(te(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();pa.Xe("applying feature flags",e),e.forEach(e=>{var t;if(this.Qe&&null!=(t=this.Qe)&&t.has(e)){var n,r=this._instance.getFeatureFlag(e),i=null==(n=this.Qe)?void 0:n.get(e);r&&null!=i&&i.variants[r]&&this.Ze(i.name,r,i.variants[r].transforms)}})}}previewWebExperiment(){var e=pa.getWindowLocation();if(null!=e&&e.search){var t=xn(null==e?void 0:e.search,"__experiment_id"),n=xn(null==e?void 0:e.search,"__experiment_variant");t&&n&&(pa.Xe("previewing web experiments "+t+" && "+n),this.getWebExperiments(e=>{this.ir(parseInt(t),n,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this._instance.config.disable_web_experiments&&!n)return e([]);var r=this._instance.get_property("$web_experiments");if(r&&!t)return e(r);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>{if(200!==t.statusCode||!t.json)return e([]);var n=t.json.experiments||[];return e(n)}})}ir(e,t,n){var r=n.filter(t=>t.id===e);r&&r.length>0&&(pa.Xe("Previewing web experiment ["+r[0].name+"] with variant ["+t+"]"),this.Ze(r[0].name,t,r[0].variants[t].transforms))}static tr(e){return!te(e.conditions)&&pa.er(e)&&pa.rr(e)}static er(e){var t;if(te(e.conditions)||te(null==(t=e.conditions)?void 0:t.url))return!0;var n,r,i,o=pa.getWindowLocation();return!!o&&(null==(n=e.conditions)||!n.url||da[null!==(r=null==(i=e.conditions)?void 0:i.urlMatchType)&&void 0!==r?r:"icontains"](e.conditions.url,o))}static getWindowLocation(){return null==y?void 0:y.location}static rr(e){var t;if(te(e.conditions)||te(null==(t=e.conditions)?void 0:t.utm))return!0;var n=fi();if(n.utm_source){var r,i,o,a,s,l,c,u,d=null==(r=e.conditions)||null==(r=r.utm)||!r.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==n.utm_campaign,p=null==(o=e.conditions)||null==(o=o.utm)||!o.utm_source||(null==(a=e.conditions)||null==(a=a.utm)?void 0:a.utm_source)==n.utm_source,f=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==n.utm_medium,h=null==(c=e.conditions)||null==(c=c.utm)||!c.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==n.utm_term;return d&&f&&h&&p}return!1}static Xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];We.info("[WebExperiments] "+e,n)}Ze(e,t,n){this._is_bot()?pa.Xe("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?n.forEach(n=>{if(n.selector){var r;pa.Xe("applying transform of variant "+t+" for experiment "+e+" ",n);var i=null==(r=document)?void 0:r.querySelectorAll(n.selector);null==i||i.forEach(e=>{var t=e;n.html&&(t.innerHTML=n.html),n.css&&t.setAttribute("style",n.css)})}}):pa.Xe("Control variants leave the page unmodified.")}_is_bot(){return _&&this._instance?sa(_,this._instance.config.custom_blocked_useragents):void 0}}var fa=Ve("[PostHog ExternalIntegrations]"),ha={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ga{constructor(e){this._instance=e}it(e,t){var n;null==(n=I.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,e,e=>{if(e)return fa.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e=this,t=function(t){var n,i,o;!r||null!=(n=I.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[t]||e.it(ha[t],()=>{var n;null==(n=I.__PosthogExtensions__)||null==(n=n.integrations)||null==(n=n[t])||n.start(e._instance)}),!r&&null!=(i=I.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[t]&&(null==(o=I.__PosthogExtensions__)||null==(o=o.integrations)||null==(o=o[t])||o.stop())};for(var[n,r]of Object.entries(null!==(i=this._instance.config.integrations)&&void 0!==i?i:{})){var i;t(n)}}}var ma="[SessionRecording]",va=Ve(ma);class ba{get started(){var e;return!(null==(e=this.sr)||!e.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=e,!this._instance.sessionManager)throw va.error("started without valid sessionManager"),new Error(ma+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw new Error(ma+' cannot be used with cookieless_mode="always"')}get ar(){var e,t=!(null==(e=this._instance.get_property(mt))||!e.enabled),n=!this._instance.config.disable_session_recording,r=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return y&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.ar||null==(t=this.sr)||!t.isStarted){var n=!Q(Object.assign)&&!Q(Array.from);this.ar&&n?(this.ur(e),va.info("starting")):this.stopRecording()}}ur(e){var t,n,r;this.ar&&(null!=I&&null!=(t=I.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(n=I.__PosthogExtensions__)&&n.initSessionRecording?this.hr(e):null==(r=I.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,this.dr,t=>{if(t)return va.error("could not load recorder",t);this.hr(e)}))}stopRecording(){var e,t;null==(e=this.lr)||e.call(this),this.lr=void 0,null==(t=this.sr)||t.stop()}vr(){var e;null==(e=this._instance.persistence)||e.unregister(bt)}cr(e){if(this._instance.persistence){var t,n,r=this._instance.persistence,i=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,n=null==t?void 0:t.sampleRate,i=te(n)?null:parseFloat(n);te(i)&&this.vr();var o=null==t?void 0:t.minimumDurationMilliseconds;r.register({[mt]:M({enabled:!!t},t,{networkPayloadCapture:M({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:i,minimumDurationMilliseconds:Q(o)?null:o,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};i(),null==(t=this.lr)||t.call(this),this.lr=null==(n=this._instance.sessionManager)?void 0:n.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.cr(e),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:va.info("skipping remote config with no sessionRecording",e)}log(e,t){var n;void 0===t&&(t="log"),null!=(n=this.sr)&&n.log?this.sr.log(e,t):va.warn("log called before recorder was ready")}get dr(){var e,t,n=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(mt);return(null==n||null==(t=n.scriptConfig)?void 0:t.script)||"lazy-recorder"}hr(e){var t,n;if(null==(t=I.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=null==(n=I.__PosthogExtensions__)?void 0:n.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(e)}onRRwebEmit(e){var t;null==(t=this.sr)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e;null==(e=this.sr)||e.overrideLinkedFlag()}overrideSampling(){var e;null==(e=this.sr)||e.overrideSampling()}overrideTrigger(e){var t;null==(t=this.sr)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.sr)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!(null==(n=this.sr)||!n.tryAddCustomEvent(e,t))}}var ya={},xa=()=>{},ka="posthog",wa=!so&&-1===(null==T?void 0:T.indexOf("MSIE"))&&-1===(null==T?void 0:T.indexOf("Mozilla")),Sa=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:nt(null==C?void 0:C.location),persistence:"localStorage+cookie",persistence_name:"",loaded:xa,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:"2025-05-24"!==e||"history_change",capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",debug:E&&Z(null==E?void 0:E.search)&&-1!==E.search.indexOf("__posthog_debug=true")||!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_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==y||null==(t=y.location)?void 0:t.protocol),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,session_recording:{},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_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;We.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Xo},error_tracking:{},_onCapture:xa,__preview_eager_load_replay:!1}},_a=e=>{var t={};Q(e.process_person)||(t.person_profiles=e.process_person),Q(e.xhr_headers)||(t.request_headers=e.xhr_headers),Q(e.cookie_name)||(t.persistence_name=e.cookie_name),Q(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),Q(e.store_google)||(t.save_campaign_params=e.store_google),Q(e.verbose)||(t.debug=e.verbose);var n=Xe({},t,e);return G(e.property_blacklist)&&(Q(e.property_denylist)?n.property_denylist=e.property_blacklist:G(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:We.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class Ca{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(e){We.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Ea{get decideEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}get flagsEndpointWasHit(){var e,t;return null!==(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&void 0!==e&&e}constructor(){this.webPerformance=new Ca,this.gr=!1,this.version=O.LIB_VERSION,this._r=new Mo,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Sa(),this.SentryIntegration=or,this.sentryIntegration=e=>{return t=ir(this,e),{name:rr,processEvent:e=>t(e)};var t},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new zo(this),this.toolbar=new ur(this),this.scrollManager=new Jo(this),this.pageViewManager=new zi(this),this.surveys=new Ho(this),this.experiments=new pa(this),this.exceptions=new yo(this),this.rateLimiter=new qo(this),this.requestRouter=new ua(this),this.consent=new Gn(this),this.externalIntegrations=new ga(this),this.people={set:(e,t,n)=>{var r=Z(e)?{[e]:t}:e;this.setPersonProperties(r),null==n||n({})},set_once:(e,t,n)=>{var r=Z(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),null==n||n({})}},this.on("eventCaptured",e=>We.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,n){if(n&&n!==ka){var r,i=null!==(r=ya[n])&&void 0!==r?r:new Ea;return i._init(e,t,n),ya[n]=i,ya[ka][n]=i,i}return this._init(e,t,n)}_init(e,t,n){var r,i;if(void 0===t&&(t={}),Q(e)||J(e))return We.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 this;this.__loaded=!0,this.config={},t.debug=this.Sr(t.debug),this.Er=t,this.$r=[],t.person_profiles&&(this.br=t.person_profiles),this.set_config(Xe({},Sa(t.defaults),_a(t),{name:n,token:e})),this.config.on_xhr_error&&We.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:bn.GZipJS;var o=this.kr();this.persistence=new To(this.config,o),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new To(M({},this.config,{persistence:"sessionStorage"}),o);var a=M({},this.persistence.props),s=M({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.Pr=new Ko(e=>this.Tr(e),this.config.request_queue_config),this.Rr=new Zo(this),this.__request_queue=[];var l="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new ra(this),this.sessionPropsManager=new ta(this,this.sessionManager,this.persistence)),new pr(this).startIfEnabledOrStop(),this.siteApps=new aa(this),null==(r=this.siteApps)||r.init(),l||(this.sessionRecording=new ba(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new En(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new Pi(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new _i(this),this.exceptionObserver=new Jn(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new Qn(this,Kn),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new tr(this),this.historyAutocapture.startIfEnabled(),O.DEBUG=O.DEBUG||this.config.debug,O.DEBUG&&We.info("Starting in debug mode",{this:this,config:t,thisC:M({},this.config),p:a,s:s}),void 0!==(null==(i=t.bootstrap)?void 0:i.distinctID)){var c,u,d=this.config.get_device_id(Fn()),p=null!=(c=t.bootstrap)&&c.isIdentifiedID?d:t.bootstrap.distinctID;this.persistence.set_property(Pt,null!=(u=t.bootstrap)&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:p})}if(this.Ir()){var f,h,g=Object.keys((null==(f=t.bootstrap)?void 0:f.featureFlags)||{}).filter(e=>{var n;return!(null==(n=t.bootstrap)||null==(n=n.featureFlags)||!n[e])}).reduce((e,n)=>{var r;return e[n]=(null==(r=t.bootstrap)||null==(r=r.featureFlags)?void 0:r[n])||!1,e},{}),m=Object.keys((null==(h=t.bootstrap)?void 0:h.featureFlagPayloads)||{}).filter(e=>g[e]).reduce((e,n)=>{var r,i;return null!=(r=t.bootstrap)&&null!=(r=r.featureFlagPayloads)&&r[n]&&(e[n]=null==(i=t.bootstrap)||null==(i=i.featureFlagPayloads)?void 0:i[n]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:m})}if(l)this.register_once({distinct_id:Mt,$device_id:null},"");else if(!this.get_distinct_id()){var v=this.config.get_device_id(Fn());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(Pt,"anonymous")}return it(y,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var r=n=>{var r=()=>n.anonymousId()||Fn();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(Pt,"identified")),t()},i=n.user();"then"in i&&Y(i.then)?i.then(e=>r(e)):r(i)}(e,()=>{n.register((e=>{Promise&&Promise.resolve||nr.warn("This browser does not have Promise support, and can not use the segment integration");var t=(t,n)=>{if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(nr.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(nr.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var r=e.calculateEventProperties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,"$pageview"),identify:e=>t(e,"$identify"),screen:e=>t(e,"$screen")}})(e)).then(()=>{t()})})}(this,()=>this.Cr()):this.Cr(),Y(this.config._onCapture)&&this.config._onCapture!==xa&&(We.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&We.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}fi(e){var t,n,r,i,o,a,s,l;if(!C||!C.body)return We.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.fi(e)},500);this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=$(e.supportedCompression,bn.GZipJS)?bn.GZipJS:$(e.supportedCompression,bn.Base64)?bn.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),null==(n=this.siteApps)||n.onRemoteConfig(e),null==(r=this.sessionRecording)||r.onRemoteConfig(e),null==(i=this.autocapture)||i.onRemoteConfig(e),null==(o=this.heatmaps)||o.onRemoteConfig(e),this.surveys.onRemoteConfig(e),null==(a=this.webVitalsAutocapture)||a.onRemoteConfig(e),null==(s=this.exceptionObserver)||s.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(l=this.deadClicksAutocapture)||l.onRemoteConfig(e)}Cr(){try{this.config.loaded(this)}catch(mn){We.critical("`loaded` function failed",mn)}this.Or(),this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.Fr()},1),new Yo(this).load(),this.featureFlags.flags()}Or(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.Pr)||e.enable())}_dom_loaded(){this.is_capturing()&&Ge(this.__request_queue,e=>this.Tr(e)),this.__request_queue=[],this.Or()}_handle_unload(){var e,t;this.config.request_batching?(this.Mr()&&this.capture("$pageleave"),null==(e=this.Pr)||e.unload(),null==(t=this.Rr)||t.unload()):this.Mr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(e){this.__loaded&&(wa?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=co(e.url,{ip:this.config.ip?1:0}),e.headers=M({},this.config.request_headers),e.compression="best-available"===e.compression?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,(e=>{var t,n,r,i=M({},e);i.timeout=i.timeout||6e4,i.url=co(i.url,{_:(new Date).getTime().toString(),ver:O.LIB_VERSION,compression:i.compression});var o=null!==(t=i.transport)&&void 0!==t?t:"fetch",a=fo.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),s=null!==(n=null==(r=rt(a,e=>e.transport===o))?void 0:r.method)&&void 0!==n?n:a[0].method;if(!s)throw new Error("No available transport method");s(i)})(M({},e,{callback:t=>{var n,r;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(n=(r=this.config).on_request_error)||n.call(r,t)),null==e.callback||e.callback(t)}}))))}Tr(e){this.Rr?this.Rr.retriableRequest(e):this.ci(e)}_execute_array(e){var t,n=[],r=[],i=[];Ge(e,e=>{e&&(t=e[0],G(t)?i.push(e):Y(e)?e.call(this):G(e)&&"alias"===t?n.push(e):G(e)&&-1!==t.indexOf("capture")&&Y(this[t])?i.push(e):r.push(e))});var o=function(e,t){Ge(e,function(e){if(G(e[0])){var n=t;Ye(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(n,this),o(r,this),o(i,this)}Ir(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,n){var r;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!Q(e)&&Z(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!i||this.config.__preview_capture_bot_pageviews){var o=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==o||!o.isRateLimited){null!=t&&t.$current_url&&!Z(null==t?void 0:t.$current_url)&&(We.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),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 a=new Date,s=(null==n?void 0:n.timestamp)||a,l=Fn(),c={uuid:l,event:e,properties:this.calculateEventProperties(e,t||{},s,l)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),o&&(c.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),(null==n?void 0:n.$set)&&(c.$set=null==n?void 0:n.$set);var u,d=this.Ar(null==n?void 0:n.$set_once);if(d&&(c.$set_once=d),(c=function(e,t){return n=e,r=e=>Z(e)&&!ee(t)?e.slice(0,t):e,i=new Set,function e(t,n){return t!==Object(t)?r?r(t):t:i.has(t)?void 0:(i.add(t),G(t)?(o=[],Ge(t,t=>{o.push(e(t))})):(o={},Ye(t,(t,n)=>{i.has(t)||(o[n]=e(t))})),o);var o}(n);var n,r,i}(c,null!=n&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=s,Q(null==n?void 0:n.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=a),e===Oo.DISMISSED||e===Oo.SENT){var p=null==t?void 0:t[Fo.SURVEY_ID],f=null==t?void 0:t[Fo.SURVEY_ITERATION];u={id:p,current_iteration:f},localStorage.getItem($o(u))||localStorage.setItem($o(u),"true"),c.$set=M({},c.$set,{[No({id:p,current_iteration:f},e===Oo.SENT?"responded":"dismissed")]:!0})}var h=M({},c.properties.$set,c.$set);if(K(h)||this.setPersonPropertiesForFlags(h),!te(this.config.before_send)){var g=this.Dr(c);if(!g)return;c=g}this._r.emit("eventCaptured",c);var m={method:"POST",url:null!==(r=null==n?void 0:n._url)&&void 0!==r?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this.Tr(m):this.Pr.enqueue(m),c}We.critical("This capture call is ignored due to client rate limiting.")}}else We.error("No event name provided to posthog.capture")}else We.uninitializedWarning("posthog.capture")}Mi(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var o=i?void 0:this.persistence.remove_event_timer(e),a=M({},t);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),"$snapshot"===e){var s=M({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=s.distinct_id,(!Z(a.distinct_id)&&!ne(a.distinct_id)||J(a.distinct_id))&&We.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var l,c=function(e,t){if(!T)return{};var n,r,i,o=e?Ke([],ci,t||[]):[],[a,s]=function(e){for(var t=0;t<ai.length;t++){var[n,r]=ai[t],i=n.exec(e),o=i&&(Y(r)?r(i,e):r);if(o)return o}return["",""]}(T);return Xe(et({$os:a,$os_version:s,$browser:ri(T,navigator.vendor),$device:si(T),$device_type:(r=T,i=si(r),i===br||i===vr||"Kobo"===i||"Kindle Fire"===i||i===Yr?mr:i===Dr||i===Nr||i===jr||i===Ur?"Console":i===xr?"Wearable":i?fr:"Desktop"),$timezone:xi(),$timezone_offset:ki()}),{$current_url:kn(null==E?void 0:E.href,o,di),$host:null==E?void 0:E.host,$pathname:null==E?void 0:E.pathname,$raw_user_agent:T.length>1e3?T.substring(0,997)+"...":T,$browser_version:oi(T,navigator.vendor),$browser_language:mi(),$browser_language_prefix:(n=mi(),"string"==typeof n?n.split("-")[0]:void 0),$screen_height:null==y?void 0:y.screen.height,$screen_width:null==y?void 0:y.screen.width,$viewport_height:null==y?void 0:y.innerHeight,$viewport_width:null==y?void 0:y.innerWidth,$lib:"web",$lib_version:O.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());a.$session_id=u,a.$window_id=d}this.sessionPropsManager&&Xe(a,this.sessionPropsManager.getSessionProps());try{var p;this.sessionRecording&&Xe(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=null==(p=this.Rr)?void 0:p.length}catch(m){a.$sdk_debug_error_capturing_properties=String(m)}if(this.requestRouter.region===la.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),l="$pageview"!==e||i?"$pageleave"!==e||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),a=Xe(a,l),"$pageview"===e&&C&&(a.title=C.title),!Q(o)){var f=n.getTime()-o;a.$duration=parseFloat((f/1e3).toFixed(3))}T&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=Xe({},c,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),G(this.config.property_denylist)?Ye(this.config.property_denylist,function(e){delete a[e]}):We.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var h=this.config.sanitize_properties;h&&(We.error("sanitize_properties is deprecated. Use before_send instead"),a=h(a,e));var g=this.jr();return a.$process_person_profile=g,g&&!i&&this.Lr("_calculate_event_properties"),a}Ar(e){var t;if(!this.persistence||!this.jr())return e;if(this.gr)return e;var n=this.persistence.get_initial_props(),r=null==(t=this.sessionPropsManager)?void 0:t.getSetOnceProps(),i=Xe({},n,r||{},e||{}),o=this.config.sanitize_properties;return o&&(We.error("sanitize_properties is deprecated. Use before_send instead"),i=o(i,"$set_once")),this.gr=!0,K(i)?void 0:i}register(e,t){var n;null==(n=this.persistence)||n.register(e,t)}register_once(e,t,n){var r;null==(r=this.persistence)||r.register_once(e,t,n)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Nr(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(n){return t}}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(e,t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,n)}on(e,t){return this._r.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,n;return null!==(t=null==(n=this.sessionManager)?void 0:n.onSessionId(e))&&void 0!==t?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=Wo),this.surveys.displaySurvey(e,t)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,n){if(!this.__loaded||!this.persistence)return We.uninitializedWarning("posthog.identify");if(ne(e)&&(e=e.toString(),We.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))We.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.');else if(e!==Mt){if(this.Lr("posthog.identify")){var r=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==r&&e!==this.get_property(at)&&(this.unregister(at),this.register({distinct_id:e}));var o="anonymous"===(this.persistence.get_property(Pt)||"anonymous");e!==r&&o?(this.persistence.set_property(Pt,"identified"),this.setPersonPropertiesForFlags(M({},n||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.wr=go(e,t,n),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(Et))}}else We.critical('The string "'+Mt+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else We.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.Lr("posthog.setPersonProperties")){var n=go(this.get_distinct_id(),e,t);this.wr!==n?(this.setPersonPropertiesForFlags(M({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.wr=n):We.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,n){if(e&&t){if(this.Lr("posthog.group")){var r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:M({},r,{[e]:t})}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),r[e]===t||n||this.reloadFeatureFlags()}}else We.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.Lr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i;if(We.info("reset"),!this.__loaded)return We.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(n=this.sessionPersistence)||n.clear(),this.surveys.reset(),this.featureFlags.reset(),null==(r=this.persistence)||r.set_property(Pt,"anonymous"),null==(i=this.sessionManager)||i.resetSessionId(),this.wr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:Mt,$device_id:null},"");else{var a=this.config.get_device_id(Fn());this.register_once({distinct_id:a,$device_id:e?a:o},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!==(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&n){var i,o=null!==(i=e.timestampLookBack)&&void 0!==i?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor(((new Date).getTime()-n)/1e3)-o,0)}return r}alias(e,t){return e===this.get_property(ot)?(We.critical("Attempting to create alias for existing People user - aborting."),-2):this.Lr("posthog.alias")?(Q(t)&&(t=this.get_distinct_id()),e!==t?(this.Nr(at,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(We.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=M({},this.config);if(X(e)){var n,r,i,o,a;Xe(this.config,_a(e));var s=this.kr();null==(n=this.persistence)||n.update_config(this.config,t,s),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new To(M({},this.config,{persistence:"sessionStorage"}),s);var l=this.Sr(this.config.debug);re(l)&&(this.config.debug=l),re(this.config.debug)&&(this.config.debug?(O.DEBUG=!0,Nn.H()&&Nn.G("ph_debug","true"),We.info("set_config",{config:e,oldConfig:t,newConfig:M({},this.config)})):(O.DEBUG=!1,Nn.H()&&Nn.V("ph_debug"))),null==(r=this.sessionRecording)||r.startIfEnabledOrStop(),null==(i=this.autocapture)||i.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.Ur(),null==(a=this.externalIntegrations)||a.startIfEnabledOrStop()}}startSessionRecording(e){var t,n,r,i,o,a=!0===e,s={sampling:a||!(null==e||!e.sampling),linked_flag:a||!(null==e||!e.linked_flag),url_trigger:a||!(null==e||!e.url_trigger),event_trigger:a||!(null==e||!e.event_trigger)};Object.values(s).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),s.sampling&&(null==(n=this.sessionRecording)||n.overrideSampling()),s.linked_flag&&(null==(r=this.sessionRecording)||r.overrideLinkedFlag()),s.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),s.event_trigger&&(null==(o=this.sessionRecording)||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(M({},r,t))}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:ka;return t!==ka&&(t=ka+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(Pt))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(Pt))}jr(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&K(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[at])&&(null==(t=this.persistence)||null==(t=t.props)||!t[Ft]))}Mr(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.jr()||this.Lr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Lr(e){return"never"===this.config.person_profiles?(We.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Nr(Ft,!0),!0)}kr(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}Ur(){var e,t,n,r,i=this.kr();return(null==(e=this.persistence)?void 0:e.wi)!==i&&(null==(n=this.persistence)||n.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.wi)!==i&&(null==(r=this.sessionPersistence)||r.set_disabled(i)),i}opt_in_capturing(e){var t,n;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(t=this.sessionManager)||t.destroy(),this.sessionManager=new ra(this),this.persistence&&(this.sessionPropsManager=new ta(this,this.sessionManager,this.persistence)),this.sessionRecording=new ba(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Ur(),this.Or(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(Q(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!==(n=null==e?void 0:e.captureEventName)&&void 0!==n?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Fr()):We.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ur(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:Mt,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(t=this.sessionRecording)||t.stopRecording(),this.sessionRecording=void 0,this.Fr())):We.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}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===qn.GRANTED?"granted":e===qn.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ur()}_is_bot(){return _?sa(_,this.config.custom_blocked_useragents):void 0}Fr(){C&&("visible"===C.visibilityState?this.mr||(this.mr=!0,this.capture("$pageview",{title:C.title},{send_instantly:!0}),this.yr&&(C.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Fr.bind(this),it(C,"visibilitychange",this.yr)))}debug(e){!1===e?(null==y||y.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==y||y.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}))}M(){var e,t,n,r,i,o,a=this.Er||{};return"advanced_disable_flags"in a?!!a.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(We.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):(n="advanced_disable_decide",r=We,i=(t="advanced_disable_flags")in(e=a)&&!Q(e[t]),o=n in e&&!Q(e[n]),i?e[t]:!!o&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[n]))}Dr(e){if(te(this.config.before_send))return e;var t=G(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var r of t){if(n=r(n),te(n)){var i="Event '"+e.event+"' was rejected in beforeSend function";return ie(e.event)?We.warn(i+". This can cause unexpected behavior."):We.info(i),null}n.properties&&!K(n.properties)||We.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var e;return null==(e=this.pageViewManager.Vt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Sr(e){var t=re(e)&&!e,n=Nn.H()&&"true"===Nn.q("ph_debug");return!t&&(!!n||e)}}!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Je(e.prototype[t[n]])}(Ea,["identify"]);var Pa,za=(Pa=ya[ka]=new Ea,function(){function e(){e.done||(e.done=!0,wa=!1,Ye(ya,function(e){e._dom_loaded()}))}null!=C&&C.addEventListener?"complete"===C.readyState?e():it(C,"DOMContentLoaded",e,{capture:!1}):y&&We.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),Pa);let Ra=null,Ta=!1;const Ia=()=>(Ra||Ta||(Ra=(()=>{if(za.__loaded)return za;if(Ta)return null;Ta=!0;try{return za.init("phc_Q0yKPwlYDSkhDCTq1U1K4oP5ne5xFMfso0cCkDbm4VI",{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",loaded:()=>{}}),Ra=za,za}catch(e){return null}finally{Ta=!1}})()),Ra),Oa=(e,t)=>{const n=Ia();if(n)try{n.capture("$exception",{$exception_message:e.message,$exception_type:e.name,$exception_stack_trace:e.stack,...t})}catch(r){}},Fa=(e,t)=>(...n)=>{try{return t(...n)}catch(r){throw Oa(r,{context:e}),r}},Aa=(e,t)=>(...n)=>{try{return t(...n).catch(t=>{throw"AbortError"!==t.name&&Oa(t,{context:e}),t})}catch(r){throw"AbortError"!==r.name&&Oa(r,{context:e}),r}};var Ma="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function La(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Da(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var ja,Na,$a={exports:{}},Ba={};function Wa(){if(ja)return Ba;ja=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:i,ref:void 0!==n?n:null,props:r}}return Ba.Fragment=t,Ba.jsx=n,Ba.jsxs=n,Ba}function Va(){return Na||(Na=1,$a.exports=Wa()),$a.exports}var Ha,Ua,qa=Va(),Ga={exports:{}},Ya={};function Xa(){if(Ha)return Ya;Ha=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function m(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var b=v.prototype=new m;b.constructor=v,f(b,g.prototype),b.isPureReactComponent=!0;var y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function w(t,n,r,i,o,a){return r=a.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:a}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function E(){}function P(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,p=!1;if(null===n)p=!0;else switch(s){case"bigint":case"string":case"number":p=!0;break;case"object":switch(n.$$typeof){case e:case t:p=!0;break;case u:return P((p=n._init)(n._payload),r,i,o,a)}}if(p)return a=a(n),p=""===o?"."+C(n,0):o,y(a)?(i="",null!=p&&(i=p.replace(_,"$&/")+"/"),P(a,r,i,"",function(e){return e})):null!=a&&(S(a)&&(l=a,c=i+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+p,a=w(l.type,c,void 0,0,0,l.props)),r.push(a)),1;p=0;var f,h=""===o?".":o+":";if(y(n))for(var g=0;g<n.length;g++)p+=P(o=n[g],r,i,s=h+C(o,g),a);else if("function"==typeof(g=null===(f=n)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(n=g.call(n),g=0;!(o=n.next()).done;)p+=P(o=o.value,r,i,s=h+C(o,g++),a);else if("object"===s){if("function"==typeof n.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(E,E):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,i,o,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return p}function z(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",function(e){return t.call(n,e,i++)}),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function I(){}return Ya.Children={map:z,forEach:function(e,t,n){z(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return z(e,function(){t++}),t},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ya.Component=g,Ya.Fragment=n,Ya.Profiler=i,Ya.PureComponent=v,Ya.StrictMode=r,Ya.Suspense=l,Ya.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Ya.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}},Ya.cache=function(e){return function(){return e.apply(null,arguments)}},Ya.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=f({},e.props),i=e.key;if(null!=t)for(o in t.ref,void 0!==t.key&&(i=""+t.key),t)!k.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return w(e.type,i,void 0,0,0,r)},Ya.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},Ya.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return w(e,o,void 0,0,0,i)},Ya.createRef=function(){return{current:null}},Ya.forwardRef=function(e){return{$$typeof:s,render:e}},Ya.isValidElement=S,Ya.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:R}},Ya.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},Ya.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),i=x.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(I,T)}catch(o){T(o)}finally{x.T=t}},Ya.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Ya.use=function(e){return x.H.use(e)},Ya.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},Ya.useCallback=function(e,t){return x.H.useCallback(e,t)},Ya.useContext=function(e){return x.H.useContext(e)},Ya.useDebugValue=function(){},Ya.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},Ya.useEffect=function(e,t,n){var r=x.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},Ya.useId=function(){return x.H.useId()},Ya.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},Ya.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},Ya.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},Ya.useMemo=function(e,t){return x.H.useMemo(e,t)},Ya.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},Ya.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},Ya.useRef=function(e){return x.H.useRef(e)},Ya.useState=function(e){return x.H.useState(e)},Ya.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},Ya.useTransition=function(){return x.H.useTransition()},Ya.version="19.1.1",Ya}function Ka(){return Ua||(Ua=1,Ga.exports=Xa()),Ga.exports}var Qa=Ka();const Za=La(Qa),Ja=b({__proto__:null,default:Za},[Qa]);var es,ts,ns={exports:{}},rs={},is={exports:{}},os={};function as(){return es||(es=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,p=3,f=!1,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else{if(!(i.startTime<=e))break;r(c),i.sortIndex=i.expirationTime,t(l,i)}i=n(c)}}function k(e){if(g=!1,x(e),!h)if(null!==n(l))h=!0,S||(S=!0,w());else{var t=n(c);null!==t&&I(k,t.startTime-e)}}var w,S=!1,_=-1,C=5,E=-1;function P(){return!(!m&&e.unstable_now()-E<C)}function z(){if(m=!1,S){var t=e.unstable_now();E=t;var i=!0;try{e:{h=!1,g&&(g=!1,b(_),_=-1),f=!0;var o=p;try{t:{for(x(t),d=n(l);null!==d&&!(d.expirationTime>t&&P());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,x(t),i=!0;break t}d===n(l)&&r(l),x(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var u=n(c);null!==u&&I(k,u.startTime-t),i=!1}}break e}finally{d=null,p=o,f=!1}i=void 0}}finally{i?w():S=!1}}}if("function"==typeof y)w=function(){y(z)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,T=R.port2;R.port1.onmessage=z,w=function(){T.postMessage(null)}}else w=function(){v(z,0)};function I(t,n){_=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(c,r),null===n(l)&&r===n(c)&&(g?(b(_),_=-1):g=!0,I(k,o-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,S||(S=!0,w()))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(os)),os}function ss(){return ts||(ts=1,is.exports=as()),is.exports}var ls,cs,us,ds,ps={exports:{}},fs={};function hs(){if(ls)return fs;ls=1;var e=Ka();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal"),o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return fs.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fs.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},fs.flushSync=function(e){var t=o.T,n=r.p;try{if(o.T=null,r.p=2,e)return e()}finally{o.T=t,r.p=n,r.d.f()}},fs.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,r.d.C(e,t))},fs.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},fs.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,i=a(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},fs.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},fs.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,i=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},fs.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},fs.requestFormReset=function(e){r.d.r(e)},fs.unstable_batchedUpdates=function(e,t){return e(t)},fs.useFormState=function(e,t,n){return o.H.useFormState(e,t,n)},fs.useFormStatus=function(){return o.H.useHostTransitionStatus()},fs.version="19.1.1",fs}function gs(){return cs||(cs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),ps.exports=hs()),ps.exports}function ms(){if(us)return rs;us=1;var e=ss(),t=Ka(),n=gs();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(o(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}var z=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===z?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case g:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case k:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case S:t=e._payload,e=e._init;try{return R(e(t))}catch(n){}}return null}var T=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},A=[],M=-1;function L(e){return{current:e}}function D(e){0>M||(e.current=A[M],A[M]=null,M--)}function j(e,t){M++,A[M]=e.current,e.current=t}var N=L(null),$=L(null),B=L(null),W=L(null);function V(e,t){switch(j(B,t),j($,e),j(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ad(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=sd(t=ad(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(N),j(N,e)}function H(){D(N),D($),D(B)}function U(e){null!==e.memoizedState&&j(W,e);var t=N.current,n=sd(t,e.type);t!==n&&(j($,e),j(N,n))}function q(e){$.current===e&&(D(N),D($)),W.current===e&&(D(W),Kd._currentValue=F)}var G=Object.prototype.hasOwnProperty,Y=e.unstable_scheduleCallback,X=e.unstable_cancelCallback,K=e.unstable_shouldYield,Q=e.unstable_requestPaint,Z=e.unstable_now,J=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,te=e.unstable_UserBlockingPriority,ne=e.unstable_NormalPriority,re=e.unstable_LowPriority,ie=e.unstable_IdlePriority,oe=e.log,ae=e.unstable_setDisableYieldValue,se=null,le=null;function ce(e){if("function"==typeof oe&&ae(e),le&&"function"==typeof le.setStrictMode)try{le.setStrictMode(se,e)}catch(t){}}var ue=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(de(e)/pe|0)|0},de=Math.log,pe=Math.LN2,fe=256,he=4194304;function ge(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function me(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=ge(r):0!==(a&=s)?i=ge(a):n||0!==(n=s&~e)&&(i=ge(n)):0!==(s=r&~o)?i=ge(s):0!==a?i=ge(a):n||0!==(n=r&~e)&&(i=ge(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function ve(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;default:return-1}}function ye(){var e=fe;return!(4194048&(fe<<=1))&&(fe=256),e}function xe(){var e=he;return!(62914560&(he<<=1))&&(he=4194304),e}function ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function we(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Se(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ue(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function _e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ue(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ce(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ee(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Pe(){var e=O.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var ze=Math.random().toString(36).slice(2),Re="__reactFiber$"+ze,Te="__reactProps$"+ze,Ie="__reactContainer$"+ze,Oe="__reactEvents$"+ze,Fe="__reactListeners$"+ze,Ae="__reactHandles$"+ze,Me="__reactResources$"+ze,Le="__reactMarker$"+ze;function De(e){delete e[Re],delete e[Te],delete e[Oe],delete e[Fe],delete e[Ae]}function je(e){var t=e[Re];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ie]||n[Re]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kd(e);null!==e;){if(n=e[Re])return n;e=kd(e)}return t}n=(e=n).parentNode}return null}function Ne(e){if(e=e[Re]||e[Ie]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function $e(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function Be(e){var t=e[Me];return t||(t=e[Me]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Le]=!0}var Ve=new Set,He={};function Ue(e,t){qe(e,t),qe(e+"Capture",t)}function qe(e,t){for(He[e]=t,e=0;e<t.length;e++)Ve.add(t[e])}var Ge,Ye,Xe=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]*$"),Ke={},Qe={};function Ze(e,t,n){if(i=t,G.call(Qe,i)||!G.call(Ke,i)&&(Xe.test(i)?Qe[i]=!0:(Ke[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function Je(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function et(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function tt(e){if(void 0===Ge)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ge=t&&t[1]||"",Ye=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Ge+e+Ye}var nt=!1;function rt(e,t){if(!e||nt)return"";nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{nt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tt(n):""}function it(e){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return rt(e.type,!1);case 11:return rt(e.type.render,!1);case 1:return rt(e.type,!0);case 31:return tt("Activity");default:return""}}function ot(e){try{var t="";do{t+=it(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function at(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function st(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function lt(e){e._valueTracker||(e._valueTracker=function(e){var t=st(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=st(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ut(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var dt=/[\n"\\]/g;function pt(e){return e.replace(dt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ft(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+at(t)):e.value!==""+at(t)&&(e.value=""+at(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?gt(e,a,at(t)):null!=n?gt(e,a,at(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+at(s):e.removeAttribute("name")}function ht(e,t,n,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return;n=null!=n?""+at(n):"",t=null!=t?""+at(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a)}function gt(e,t,n){"number"===t&&ut(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function mt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+at(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function vt(e,t,n){null==t||((t=""+at(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+at(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function bt(e,t,n,i){if(null==t){if(null!=i){if(null!=n)throw Error(r(92));if(T(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}null==n&&(n=""),t=n}n=at(t),e.defaultValue=n,(i=e.textContent)===n&&""!==i&&null!==i&&(e.value=i)}function yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var xt=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 kt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||xt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function wt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var i in n)!n.hasOwnProperty(i)||null!=t&&t.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&kt(e,o,i)}else for(var a in t)t.hasOwnProperty(a)&&kt(e,a,t[a])}function St(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _t=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"]]),Ct=/^[\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 Et(e){return Ct.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function zt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Rt=null,Tt=null;function It(e){var t=Ne(e);if(t&&(e=t.stateNode)){var n=e[Te]||null;e:switch(e=t.stateNode,t.type){case"input":if(ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Te]||null;if(!o)throw Error(r(90));ft(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(i=n[t]).form===e.form&&ct(i)}break e;case"textarea":vt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&mt(e,!!n.multiple,t,!1)}}}var Ot=!1;function Ft(e,t,n){if(Ot)return e(t,n);Ot=!0;try{return e(t)}finally{if(Ot=!1,(null!==Rt||null!==Tt)&&(Vc(),Rt&&(t=Rt,e=Tt,Tt=Rt=null,It(t),e)))for(t=0;t<e.length;t++)It(e[t])}}function At(e,t){var n=e.stateNode;if(null===n)return null;var i=n[Te]||null;if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Mt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Lt=!1;if(Mt)try{var Dt={};Object.defineProperty(Dt,"passive",{get:function(){Lt=!0}}),window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch(Mp){Lt=!1}var jt=null,Nt=null,$t=null;function Bt(){if($t)return $t;var e,t,n=Nt,r=n.length,i="value"in jt?jt.value:jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function Wt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Vt(){return!0}function Ht(){return!1}function Ut(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Vt:Ht,this.isPropagationStopped=Ht,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vt)},persist:function(){},isPersistent:Vt}),t}var qt,Gt,Yt,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kt=Ut(Xt),Qt=c({},Xt,{view:0,detail:0}),Zt=Ut(Qt),Jt=c({},Qt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yt&&(Yt&&"mousemove"===e.type?(qt=e.screenX-Yt.screenX,Gt=e.screenY-Yt.screenY):Gt=qt=0,Yt=e),qt)},movementY:function(e){return"movementY"in e?e.movementY:Gt}}),en=Ut(Jt),tn=Ut(c({},Jt,{dataTransfer:0})),nn=Ut(c({},Qt,{relatedTarget:0})),rn=Ut(c({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0})),on=Ut(c({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),an=Ut(c({},Xt,{data:0})),sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ln={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=cn[e])&&!!t[e]}function dn(){return un}var pn=Ut(c({},Qt,{key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ln[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dn,charCode:function(e){return"keypress"===e.type?Wt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),fn=Ut(c({},Jt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hn=Ut(c({},Qt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dn})),gn=Ut(c({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0})),mn=Ut(c({},Jt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),vn=Ut(c({},Xt,{newState:0,oldState:0})),bn=[9,13,27,32],yn=Mt&&"CompositionEvent"in window,xn=null;Mt&&"documentMode"in document&&(xn=document.documentMode);var kn=Mt&&"TextEvent"in window&&!xn,wn=Mt&&(!yn||xn&&8<xn&&11>=xn),Sn=String.fromCharCode(32),_n=!1;function Cn(e,t){switch(e){case"keyup":return-1!==bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function En(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1,zn={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 Rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Tn(e,t,n,r){Rt?Tt?Tt.push(r):Tt=[r]:Rt=r,0<(t=qu(t,"onChange")).length&&(n=new Kt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var In=null,On=null;function Fn(e){ju(e,0)}function An(e){if(ct($e(e)))return e}function Mn(e,t){if("change"===e)return t}var Ln=!1;if(Mt){var Dn;if(Mt){var jn="oninput"in document;if(!jn){var Nn=document.createElement("div");Nn.setAttribute("oninput","return;"),jn="function"==typeof Nn.oninput}Dn=jn}else Dn=!1;Ln=Dn&&(!document.documentMode||9<document.documentMode)}function $n(){In&&(In.detachEvent("onpropertychange",Bn),On=In=null)}function Bn(e){if("value"===e.propertyName&&An(On)){var t=[];Tn(t,On,e,zt(e)),Ft(Fn,t)}}function Wn(e,t,n){"focusin"===e?($n(),On=n,(In=t).attachEvent("onpropertychange",Bn)):"focusout"===e&&$n()}function Vn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return An(On)}function Hn(e,t){if("click"===e)return An(t)}function Un(e,t){if("input"===e||"change"===e)return An(t)}var qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Gn(e,t){if(qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!G.call(t,i)||!qn(e[i],t[i]))return!1}return!0}function Yn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xn(e,t){var n,r=Yn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Yn(r)}}function Kn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Kn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Qn(e){for(var t=ut((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ut((e=t.contentWindow).document)}return t}function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Jn=Mt&&"documentMode"in document&&11>=document.documentMode,er=null,tr=null,nr=null,rr=!1;function ir(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;rr||null==er||er!==ut(r)||(r="selectionStart"in(r=er)&&Zn(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nr&&Gn(nr,r)||(nr=r,0<(r=qu(tr,"onSelect")).length&&(t=new Kt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=er)))}function or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ar={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},sr={},lr={};function cr(e){if(sr[e])return sr[e];if(!ar[e])return e;var t,n=ar[e];for(t in n)if(n.hasOwnProperty(t)&&t in lr)return sr[e]=n[t];return e}Mt&&(lr=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);var ur=cr("animationend"),dr=cr("animationiteration"),pr=cr("animationstart"),fr=cr("transitionrun"),hr=cr("transitionstart"),gr=cr("transitioncancel"),mr=cr("transitionend"),vr=new Map,br="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(" ");function yr(e,t){vr.set(e,t),Ue(t,[e])}br.push("scrollEnd");var xr=new WeakMap;function kr(e,t){if("object"==typeof e&&null!==e){var n=xr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ot(t)},xr.set(e,t),t)}return{value:e,source:t,stack:ot(t)}}var wr=[],Sr=0,_r=0;function Cr(){for(var e=Sr,t=_r=Sr=0;t<e;){var n=wr[t];wr[t++]=null;var r=wr[t];wr[t++]=null;var i=wr[t];wr[t++]=null;var o=wr[t];if(wr[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Rr(n,i,o)}}function Er(e,t,n,r){wr[Sr++]=e,wr[Sr++]=t,wr[Sr++]=n,wr[Sr++]=r,_r|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Pr(e,t,n,r){return Er(e,t,n,r),Tr(e)}function zr(e,t){return Er(e,null,null,t),Tr(e)}function Rr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-ue(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Tr(e){if(50<Ac)throw Ac=0,Mc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ir={};function Or(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Or(e,t,n,r)}function Ar(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mr(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Lr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Dr(e,t,n,i,o,a){var s=0;if(i=e,"function"==typeof e)Ar(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,N.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case _:return(e=Fr(31,n,t,o)).elementType=_,e.lanes=a,e;case f:return jr(n.children,o,a,t);case h:s=8,o|=24;break;case g:return(e=Fr(12,n,t,2|o)).elementType=g,e.lanes=a,e;case x:return(e=Fr(13,n,t,o)).elementType=x,e.lanes=a,e;case k:return(e=Fr(19,n,t,o)).elementType=k,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case m:case b:s=10;break e;case v:s=9;break e;case y:s=11;break e;case w:s=14;break e;case S:s=16,i=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),i=null}return(t=Fr(s,n,t,o)).elementType=e,t.type=i,t.lanes=a,t}function jr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Nr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function $r(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Br=[],Wr=0,Vr=null,Hr=0,Ur=[],qr=0,Gr=null,Yr=1,Xr="";function Kr(e,t){Br[Wr++]=Hr,Br[Wr++]=Vr,Vr=e,Hr=t}function Qr(e,t,n){Ur[qr++]=Yr,Ur[qr++]=Xr,Ur[qr++]=Gr,Gr=e;var r=Yr;e=Xr;var i=32-ue(r)-1;r&=~(1<<i),n+=1;var o=32-ue(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yr=1<<32-ue(t)+i|n<<i|r,Xr=o+e}else Yr=1<<o|n<<i|r,Xr=e}function Zr(e){null!==e.return&&(Kr(e,1),Qr(e,1,0))}function Jr(e){for(;e===Vr;)Vr=Br[--Wr],Br[Wr]=null,Hr=Br[--Wr],Br[Wr]=null;for(;e===Gr;)Gr=Ur[--qr],Ur[qr]=null,Xr=Ur[--qr],Ur[qr]=null,Yr=Ur[--qr],Ur[qr]=null}var ei=null,ti=null,ni=!1,ri=null,ii=!1,oi=Error(r(519));function ai(e){throw pi(kr(Error(r(418,"")),e)),oi}function si(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Re]=e,t[Te]=r,n){case"dialog":Nu("cancel",t),Nu("close",t);break;case"iframe":case"object":case"embed":Nu("load",t);break;case"video":case"audio":for(n=0;n<Lu.length;n++)Nu(Lu[n],t);break;case"source":Nu("error",t);break;case"img":case"image":case"link":Nu("error",t),Nu("load",t);break;case"details":Nu("toggle",t);break;case"input":Nu("invalid",t),ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),lt(t);break;case"select":Nu("invalid",t);break;case"textarea":Nu("invalid",t),bt(t,r.value,r.defaultValue,r.children),lt(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Zu(t.textContent,n)?(null!=r.popover&&(Nu("beforetoggle",t),Nu("toggle",t)),null!=r.onScroll&&Nu("scroll",t),null!=r.onScrollEnd&&Nu("scrollend",t),null!=r.onClick&&(t.onclick=Ju),t=!0):t=!1,t||ai(e)}function li(e){for(ei=e.return;ei;)switch(ei.tag){case 5:case 13:return void(ii=!1);case 27:case 3:return void(ii=!0);default:ei=ei.return}}function ci(e){if(e!==ei)return!1;if(!ni)return li(e),ni=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&ti&&ai(e),li(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ti=yd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ti=null}}else 27===n?(n=ti,gd(e.type)?(e=xd,xd=null,ti=e):ti=n):ti=ei?yd(e.stateNode.nextSibling):null;return!0}function ui(){ti=ei=null,ni=!1}function di(){var e=ri;return null!==e&&(null===kc?kc=e:kc.push.apply(kc,e),ri=null),e}function pi(e){null===ri?ri=[e]:ri.push(e)}var fi=L(null),hi=null,gi=null;function mi(e,t,n){j(fi,t._currentValue),t._currentValue=n}function vi(e){e._currentValue=fi.current,D(fi)}function bi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yi(e,t,n,i){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),bi(a.return,n,e),i||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),bi(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function xi(e,t,n,i){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=o.type;qn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===W.current){if(null===(s=o.alternate))throw Error(r(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Kd):e=[Kd])}o=o.return}null!==e&&yi(t,e,n,i),t.flags|=262144}function ki(e){for(e=e.firstContext;null!==e;){if(!qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wi(e){hi=e,gi=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Si(e){return Ci(hi,e)}function _i(e,t){return null===hi&&wi(e),Ci(e,t)}function Ci(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===gi){if(null===e)throw Error(r(308));gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gi=gi.next=t;return n}var Ei="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pi=e.unstable_scheduleCallback,zi=e.unstable_NormalPriority,Ri={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ti(){return{controller:new Ei,data:new Map,refCount:0}}function Ii(e){e.refCount--,0===e.refCount&&Pi(zi,function(){e.controller.abort()})}var Oi=null,Fi=0,Ai=0,Mi=null;function Li(){if(0===--Fi&&null!==Oi){null!==Mi&&(Mi.status="fulfilled");var e=Oi;Oi=null,Ai=0,Mi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Di=I.S;I.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Oi){var n=Oi=[];Fi=0,Ai=Iu(),Mi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Fi++,t.then(Li,Li)}(0,t),null!==Di&&Di(e,t)};var ji=L(null);function Ni(){var e=ji.current;return null!==e?e:oc.pooledCache}function $i(e,t){j(ji,null===t?ji.current:t.pool)}function Bi(){var e=Ni();return null===e?null:{parent:Ri._currentValue,pool:e}}var Wi=Error(r(460)),Vi=Error(r(474)),Hi=Error(r(542)),Ui={then:function(){}};function qi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Gi(){}function Yi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Gi,Gi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw Qi(e=t.reason),e;default:if("string"==typeof t.status)t.then(Gi,Gi);else{if(null!==(e=oc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Qi(e=t.reason),e}throw Xi=t,Wi}}var Xi=null;function Ki(){if(null===Xi)throw Error(r(459));var e=Xi;return Xi=null,e}function Qi(e){if(e===Wi||e===Hi)throw Error(r(483))}var Zi=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function to(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function no(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ic){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Tr(e),Rr(e,null,n),t}return Er(e,r,t,n),Tr(e)}function ro(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_e(e,n)}}function io(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var oo=!1;function ao(){if(oo&&null!==Mi)throw Mi}function so(e,t,n,r){oo=!1;var i=e.updateQueue;Zi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==o){var p=i.baseState;for(a=0,d=u=l=null,s=o;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(sc&f)===f:(r&f)===f){0!==f&&f===Ai&&(oo=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;f=t;var v=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){p=g.call(v,p,f);break e}p=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(f="function"==typeof(g=m.payload)?g.call(v,p,f):g))break e;p=c({},p,f);break e;case 2:Zi=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=p):d=d.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=p),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===o&&(i.shared.lanes=0),gc|=a,e.lanes=a,e.memoizedState=p}}function lo(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function co(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)lo(n[e],t)}var uo=L(null),po=L(0);function fo(e,t){j(po,e=fc),j(uo,t),fc=e|t.baseLanes}function ho(){j(po,fc),j(uo,uo.current)}function go(){fc=po.current,D(uo),D(po)}var mo=0,vo=null,bo=null,yo=null,xo=!1,ko=!1,wo=!1,So=0,_o=0,Co=null,Eo=0;function Po(){throw Error(r(321))}function zo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qn(e[n],t[n]))return!1;return!0}function Ro(e,t,n,r,i,o){return mo=o,vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=null===e||null===e.memoizedState?Va:Ha,wo=!1,o=n(r,i),wo=!1,ko&&(o=Io(t,n,r,i)),To(e),o}function To(e){I.H=Wa;var t=null!==bo&&null!==bo.next;if(mo=0,yo=bo=vo=null,xo=!1,_o=0,Co=null,t)throw Error(r(300));null===e||Rs||null!==(e=e.dependencies)&&ki(e)&&(Rs=!0)}function Io(e,t,n,i){vo=e;var o=0;do{if(ko&&(Co=null),_o=0,ko=!1,25<=o)throw Error(r(301));if(o+=1,yo=bo=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}I.H=Ua,a=t(n,i)}while(ko);return a}function Oo(){var e=I.H,t=e.useState()[0];return t="function"==typeof t.then?jo(t):t,e=e.useState()[0],(null!==bo?bo.memoizedState:null)!==e&&(vo.flags|=1024),t}function Fo(){var e=0!==So;return So=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mo(e){if(xo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}xo=!1}mo=0,yo=bo=vo=null,ko=!1,_o=So=0,Co=null}function Lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yo?vo.memoizedState=yo=e:yo=yo.next=e,yo}function Do(){if(null===bo){var e=vo.alternate;e=null!==e?e.memoizedState:null}else e=bo.next;var t=null===yo?vo.memoizedState:yo.next;if(null!==t)yo=t,bo=e;else{if(null===e){if(null===vo.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(bo=e).memoizedState,baseState:bo.baseState,baseQueue:bo.baseQueue,queue:bo.queue,next:null},null===yo?vo.memoizedState=yo=e:yo=yo.next=e}return yo}function jo(e){var t=_o;return _o+=1,null===Co&&(Co=[]),e=Yi(Co,e,t),t=vo,null===(null===yo?t.memoizedState:yo.next)&&(t=t.alternate,I.H=null===t||null===t.memoizedState?Va:Ha),e}function No(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return jo(e);if(e.$$typeof===b)return Si(e)}throw Error(r(438,String(e)))}function $o(e){var t=null,n=vo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=vo.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},vo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=C;return t.index++,n}function Bo(e,t){return"function"==typeof t?t(e):t}function Wo(e){return Vo(Do(),bo,e)}function Vo(e,t,n){var i=e.queue;if(null===i)throw Error(r(311));i.lastRenderedReducer=n;var o=e.baseQueue,a=i.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,i.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,c=null,u=t=o.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(sc&p)===p:(mo&p)===p){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Ai&&(d=!0);else{if((mo&f)===f){u=u.next,f===Ai&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,vo.lanes|=f,gc|=f}p=u.action,wo&&n(a,p),a=u.hasEagerState?u.eagerState:n(a,p)}else f={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,vo.lanes|=p,gc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!qn(a,e.memoizedState)&&(Rs=!0,d&&null!==(n=Mi)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,i.lastRenderedState=a}return null===o&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Ho(e){var t=Do(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);qn(a,t.memoizedState)||(Rs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Uo(e,t,n){var i=vo,o=Do(),a=ni;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!qn((bo||o).memoizedState,n);if(s&&(o.memoizedState=n,Rs=!0),o=o.queue,ha(2048,8,Yo.bind(null,i,o,e),[e]),o.getSnapshot!==t||s||null!==yo&&1&yo.memoizedState.tag){if(i.flags|=2048,da(9,{destroy:void 0,resource:void 0},Go.bind(null,i,o,n,t),null),null===oc)throw Error(r(349));a||124&mo||qo(i,t,n)}return n}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=vo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},vo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Go(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Ko(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Ko(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qn(e,n)}catch(r){return!0}}function Ko(e){var t=zr(e,2);null!==t&&jc(t,0,2)}function Qo(e){var t=Lo();if("function"==typeof e){var n=e;if(e=n(),wo){ce(!0);try{n()}finally{ce(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function Zo(e,t,n,r){return e.baseState=n,Vo(e,bo,"function"==typeof r?r:Bo)}function Jo(e,t,n,i,o){if(Na(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==I.T?n(!0):a.isTransition=!1,i(a),null===(n=t.pending)?(a.next=t.pending=a,ea(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ea(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=I.T,a={};I.T=a;try{var s=n(i,r),l=I.S;null!==l&&l(a,s),ta(e,t,s)}catch(c){ra(e,t,c)}finally{I.T=o}}else try{ta(e,t,o=n(i,r))}catch(u){ra(e,t,u)}}function ta(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){na(e,t,n)},function(n){return ra(e,t,n)}):na(e,t,n)}function na(e,t,n){t.status="fulfilled",t.value=n,ia(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ea(e,n)))}function ra(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ia(t),t=t.next}while(t!==r)}e.action=null}function ia(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oa(e,t){return t}function aa(e,t){if(ni){var n=oc.formState;if(null!==n){e:{var r=vo;if(ni){if(ti){t:{for(var i=ti,o=ii;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=yd(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ti=yd(i.nextSibling),r="F!"===i.data;break e}}ai(r)}r=!1}r&&(t=n[0])}}return(n=Lo()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:t},n.queue=r,n=La.bind(null,vo,r),r.dispatch=n,r=Qo(!1),o=ja.bind(null,vo,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=Lo()).queue=i,n=Jo.bind(null,vo,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function sa(e){return la(Do(),bo,e)}function la(e,t,n){if(t=Vo(e,t,oa)[0],e=Wo(Bo)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=jo(t)}catch(a){if(a===Wi)throw Hi;throw a}else r=t;var i=(t=Do()).queue,o=i.dispatch;return n!==t.memoizedState&&(vo.flags|=2048,da(9,{destroy:void 0,resource:void 0},ca.bind(null,i,n),null)),[r,o,e]}function ca(e,t){e.action=t}function ua(e){var t=Do(),n=bo;if(null!==n)return la(t,n,e);Do(),t=t.memoizedState;var r=(n=Do()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function da(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=vo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},vo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(){return Do().memoizedState}function fa(e,t,n,r){var i=Lo();r=void 0===r?null:r,vo.flags|=e,i.memoizedState=da(1|t,{destroy:void 0,resource:void 0},n,r)}function ha(e,t,n,r){var i=Do();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==bo&&null!==r&&zo(r,bo.memoizedState.deps)?i.memoizedState=da(t,o,n,r):(vo.flags|=e,i.memoizedState=da(1|t,o,n,r))}function ga(e,t){fa(8390656,8,e,t)}function ma(e,t){ha(2048,8,e,t)}function va(e,t){return ha(4,2,e,t)}function ba(e,t){return ha(4,4,e,t)}function ya(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function xa(e,t,n){n=null!=n?n.concat([e]):null,ha(4,4,ya.bind(null,t,e),n)}function ka(){}function wa(e,t){var n=Do();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=Do();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&zo(t,r[1]))return r[0];if(r=e(),wo){ce(!0);try{e()}finally{ce(!1)}}return n.memoizedState=[r,t],r}function _a(e,t,n){return void 0===n||1073741824&mo?e.memoizedState=t:(e.memoizedState=n,e=Dc(),vo.lanes|=e,gc|=e,n)}function Ca(e,t,n,r){return qn(n,t)?n:null!==uo.current?(e=_a(e,n,r),qn(e,t)||(Rs=!0),e):42&mo?(e=Dc(),vo.lanes|=e,gc|=e,t):(Rs=!0,e.memoizedState=n)}function Ea(e,t,n,r,i){var o=O.p;O.p=0!==o&&8>o?o:8;var a,s,l,c=I.T,u={};I.T=u,ja(e,!1,t,n);try{var d=i(),p=I.S;null!==p&&p(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Da(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Lc()):Da(e,t,r,Lc())}catch(f){Da(e,t,{then:function(){},status:"rejected",reason:f},Lc())}finally{O.p=o,I.T=c}}function Pa(){}function za(e,t,n,i){if(5!==e.tag)throw Error(r(476));var o=Ra(e).queue;Ea(e,o,t,F,null===n?Pa:function(){return Ta(e),n(i)})}function Ra(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:F},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ta(e){Da(e,Ra(e).next.queue,{},Lc())}function Ia(){return Si(Kd)}function Oa(){return Do().memoizedState}function Fa(){return Do().memoizedState}function Aa(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Lc(),r=no(t,e=to(n),n);return null!==r&&(jc(r,0,n),ro(r,t,n)),t={cache:Ti()},void(e.payload=t)}t=t.return}}function Ma(e,t,n){var r=Lc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Na(e)?$a(t,n):null!==(n=Pr(e,t,n,r))&&(jc(n,0,r),Ba(n,t,r))}function La(e,t,n){Da(e,t,n,Lc())}function Da(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Na(e))$a(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,qn(s,a))return Er(e,t,i,0),null===oc&&Cr(),!1}catch(l){}if(null!==(n=Pr(e,t,i,r)))return jc(n,0,r),Ba(n,t,r),!0}return!1}function ja(e,t,n,i){if(i={lane:2,revertLane:Iu(),action:i,hasEagerState:!1,eagerState:null,next:null},Na(e)){if(t)throw Error(r(479))}else null!==(t=Pr(e,n,i,2))&&jc(t,0,2)}function Na(e){var t=e.alternate;return e===vo||null!==t&&t===vo}function $a(e,t){ko=xo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ba(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_e(e,n)}}var Wa={readContext:Si,use:No,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useLayoutEffect:Po,useInsertionEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useSyncExternalStore:Po,useId:Po,useHostTransitionStatus:Po,useFormState:Po,useActionState:Po,useOptimistic:Po,useMemoCache:Po,useCacheRefresh:Po},Va={readContext:Si,use:No,useCallback:function(e,t){return Lo().memoizedState=[e,void 0===t?null:t],e},useContext:Si,useEffect:ga,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,fa(4194308,4,ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fa(4194308,4,e,t)},useInsertionEffect:function(e,t){fa(4,2,e,t)},useMemo:function(e,t){var n=Lo();t=void 0===t?null:t;var r=e();if(wo){ce(!0);try{e()}finally{ce(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Lo();if(void 0!==n){var i=n(t);if(wo){ce(!0);try{n(t)}finally{ce(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ma.bind(null,vo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Lo().memoizedState=e},useState:function(e){var t=(e=Qo(e)).queue,n=La.bind(null,vo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ka,useDeferredValue:function(e,t){return _a(Lo(),e,t)},useTransition:function(){var e=Qo(!1);return e=Ea.bind(null,vo,e.queue,!0,!1),Lo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=vo,o=Lo();if(ni){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===oc)throw Error(r(349));124&sc||qo(i,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ga(Yo.bind(null,i,a,e),[e]),i.flags|=2048,da(9,{destroy:void 0,resource:void 0},Go.bind(null,i,a,n,t),null),n},useId:function(){var e=Lo(),t=oc.identifierPrefix;if(ni){var n=Xr;t="«"+t+"R"+(n=(Yr&~(1<<32-ue(Yr)-1)).toString(32)+n),0<(n=So++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Eo++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ia,useFormState:aa,useActionState:aa,useOptimistic:function(e){var t=Lo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ja.bind(null,vo,!0,n),n.dispatch=t,[e,t]},useMemoCache:$o,useCacheRefresh:function(){return Lo().memoizedState=Aa.bind(null,vo)}},Ha={readContext:Si,use:No,useCallback:wa,useContext:Si,useEffect:ma,useImperativeHandle:xa,useInsertionEffect:va,useLayoutEffect:ba,useMemo:Sa,useReducer:Wo,useRef:pa,useState:function(){return Wo(Bo)},useDebugValue:ka,useDeferredValue:function(e,t){return Ca(Do(),bo.memoizedState,e,t)},useTransition:function(){var e=Wo(Bo)[0],t=Do().memoizedState;return["boolean"==typeof e?e:jo(e),t]},useSyncExternalStore:Uo,useId:Oa,useHostTransitionStatus:Ia,useFormState:sa,useActionState:sa,useOptimistic:function(e,t){return Zo(Do(),0,e,t)},useMemoCache:$o,useCacheRefresh:Fa},Ua={readContext:Si,use:No,useCallback:wa,useContext:Si,useEffect:ma,useImperativeHandle:xa,useInsertionEffect:va,useLayoutEffect:ba,useMemo:Sa,useReducer:Ho,useRef:pa,useState:function(){return Ho(Bo)},useDebugValue:ka,useDeferredValue:function(e,t){var n=Do();return null===bo?_a(n,e,t):Ca(n,bo.memoizedState,e,t)},useTransition:function(){var e=Ho(Bo)[0],t=Do().memoizedState;return["boolean"==typeof e?e:jo(e),t]},useSyncExternalStore:Uo,useId:Oa,useHostTransitionStatus:Ia,useFormState:ua,useActionState:ua,useOptimistic:function(e,t){var n=Do();return null!==bo?Zo(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:$o,useCacheRefresh:Fa},qa=null,Ga=0;function Ya(e){var t=Ga;return Ga+=1,null===qa&&(qa=[]),Yi(qa,e,t)}function Xa(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Qa(e,t){if(t.$$typeof===u)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Za(e){return(0,e._init)(e._payload)}function Ja(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Mr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===f?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===S&&Za(i)===t.type)?(Xa(t=o(t,n.props),n),t.return=e,t):(Xa(t=Dr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$r(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=jr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function g(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Nr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case d:return Xa(n=Dr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=$r(t,e.mode,n)).return=e,t;case S:return g(e,t=(0,t._init)(t._payload),n)}if(T(t)||P(t))return(t=jr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return g(e,Ya(t),n);if(t.$$typeof===b)return g(e,_i(e,t),n);Qa(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case d:return n.key===i?c(e,t,n,r):null;case p:return n.key===i?u(e,t,n,r):null;case S:return m(e,t,n=(i=n._init)(n._payload),r)}if(T(n)||P(n))return null!==i?null:h(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,Ya(n),r);if(n.$$typeof===b)return m(e,t,_i(e,n),r);Qa(e,n)}return null}function v(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case d:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return v(e,t,n,r=(0,r._init)(r._payload),i)}if(T(r)||P(r))return h(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return v(e,t,n,Ya(r),i);if(r.$$typeof===b)return v(e,t,n,_i(t,r),i);Qa(t,r)}return null}function y(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===f&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case d:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===f){if(7===c.tag){n(l,c.sibling),(h=o(c,u.props.children)).return=l,l=h;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===S&&Za(x)===c.type){n(l,c.sibling),Xa(h=o(c,u.props),u),h.return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===f?((h=jr(u.props.children,l.mode,h,u.key)).return=l,l=h):(Xa(h=Dr(u.type,u.key,u.props,null,l.mode,h),u),h.return=l,l=h)}return s(l);case p:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(h=o(c,u.children||[])).return=l,l=h;break e}n(l,c);break}t(l,c),c=c.sibling}(h=$r(u,l.mode,h)).return=l,l=h}return s(l);case S:return y(l,c,u=(x=u._init)(u._payload),h)}if(T(u))return function(r,o,s,l){for(var c=null,u=null,d=o,p=o=0,f=null;null!==d&&p<s.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var h=m(r,d,s[p],l);if(null===h){null===d&&(d=f);break}e&&d&&null===h.alternate&&t(r,d),o=a(h,o,p),null===u?c=h:u.sibling=h,u=h,d=f}if(p===s.length)return n(r,d),ni&&Kr(r,p),c;if(null===d){for(;p<s.length;p++)null!==(d=g(r,s[p],l))&&(o=a(d,o,p),null===u?c=d:u.sibling=d,u=d);return ni&&Kr(r,p),c}for(d=i(d);p<s.length;p++)null!==(f=v(d,r,p,s[p],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),o=a(f,o,p),null===u?c=f:u.sibling=f,u=f);return e&&d.forEach(function(e){return t(r,e)}),ni&&Kr(r,p),c}(l,c,u,h);if(P(u)){if("function"!=typeof(x=P(u)))throw Error(r(150));return function(o,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,p=s,f=s=0,h=null,b=l.next();null!==p&&!b.done;f++,b=l.next()){p.index>f?(h=p,p=null):h=p.sibling;var y=m(o,p,b.value,c);if(null===y){null===p&&(p=h);break}e&&p&&null===y.alternate&&t(o,p),s=a(y,s,f),null===d?u=y:d.sibling=y,d=y,p=h}if(b.done)return n(o,p),ni&&Kr(o,f),u;if(null===p){for(;!b.done;f++,b=l.next())null!==(b=g(o,b.value,c))&&(s=a(b,s,f),null===d?u=b:d.sibling=b,d=b);return ni&&Kr(o,f),u}for(p=i(p);!b.done;f++,b=l.next())null!==(b=v(p,o,f,b.value,c))&&(e&&null!==b.alternate&&p.delete(null===b.key?f:b.key),s=a(b,s,f),null===d?u=b:d.sibling=b,d=b);return e&&p.forEach(function(e){return t(o,e)}),ni&&Kr(o,f),u}(l,c,u=x.call(u),h)}if("function"==typeof u.then)return y(l,c,Ya(u),h);if(u.$$typeof===b)return y(l,c,_i(l,u),h);Qa(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(h=o(c,u)).return=l,l=h):(n(l,c),(h=Nr(u,l.mode,h)).return=l,l=h),s(l)):n(l,c)}return function(e,t,n,r){try{Ga=0;var i=y(e,t,n,r);return qa=null,i}catch(a){if(a===Wi||a===Hi)throw a;var o=Fr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var es=Ja(!0),ts=Ja(!1),ns=L(null),is=null;function os(e){var t=e.alternate;j(ds,1&ds.current),j(ns,e),null===is&&(null===t||null!==uo.current||null!==t.memoizedState)&&(is=e)}function as(e){if(22===e.tag){if(j(ds,ds.current),j(ns,e),null===is){var t=e.alternate;null!==t&&null!==t.memoizedState&&(is=e)}}else ls()}function ls(){j(ds,ds.current),j(ns,ns.current)}function cs(e){D(ns),is===e&&(is=null),D(ds)}var ds=L(0);function ps(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||bd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Lc(),i=to(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=no(e,i,r))&&(jc(t,0,r),ro(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Lc(),i=to(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=no(e,i,r))&&(jc(t,0,r),ro(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lc(),r=to(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=no(e,r,n))&&(jc(t,0,n),ro(t,e,n))}};function ms(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Gn(n,r)&&Gn(i,o))}function vs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hs.enqueueReplaceState(t,t.state,null)}function bs(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=c({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}var ys="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)};function xs(e){ys(e)}function ks(e){}function ws(e){ys(e)}function Ss(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function _s(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Cs(e,t,n){return(n=to(n)).tag=3,n.payload={element:null},n.callback=function(){Ss(e,t)},n}function Es(e){return(e=to(e)).tag=3,e}function Ps(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){_s(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){_s(t,n,r),"function"!=typeof i&&(null===Ec?Ec=new Set([this]):Ec.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var zs=Error(r(461)),Rs=!1;function Ts(e,t,n,r){t.child=null===e?ts(t,null,n,r):es(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return wi(t),r=Ro(e,t,n,a,o,i),s=Fo(),null===e||Rs?(ni&&s&&Zr(t),t.flags|=1,Ts(e,t,r,i),t.child):(Ao(e,t,i),Qs(e,t,i))}function Os(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ar(o)||void 0!==o.defaultProps||null!==n.compare?((e=Dr(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Fs(e,t,o,r,i))}if(o=e.child,!Zs(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Gn)(a,r)&&e.ref===t.ref)return Qs(e,t,i)}return t.flags|=1,(e=Mr(o,r)).ref=t.ref,e.return=t,t.child=e}function Fs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Gn(o,r)&&e.ref===t.ref){if(Rs=!1,t.pendingProps=r=o,!Zs(e,i))return t.lanes=e.lanes,Qs(e,t,i);131072&e.flags&&(Rs=!0)}}return Ds(e,t,n,r,i)}function As(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==o?o.baseLanes|n:n,null!==e){for(i=t.child=e.child,o=0;null!==i;)o=o|i.lanes|i.childLanes,i=i.sibling;t.childLanes=o&~r}else t.childLanes=0,t.child=null;return Ms(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Ms(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&$i(0,null!==o?o.cachePool:null),null!==o?fo(t,o):ho(),as(t)}else null!==o?($i(0,o.cachePool),fo(t,o),ls(),t.memoizedState=null):(null!==e&&$i(0,null),ho(),ls());return Ts(e,t,i,n),t.child}function Ms(e,t,n,r){var i=Ni();return i=null===i?null:{parent:Ri._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&$i(0,null),ho(),as(t),null!==e&&xi(e,t,r,!0),null}function Ls(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ds(e,t,n,r,i){return wi(t),n=Ro(e,t,n,r,void 0,i),r=Fo(),null===e||Rs?(ni&&r&&Zr(t),t.flags|=1,Ts(e,t,n,i),t.child):(Ao(e,t,i),Qs(e,t,i))}function js(e,t,n,r,i,o){return wi(t),t.updateQueue=null,n=Io(t,r,n,i),To(e),r=Fo(),null===e||Rs?(ni&&r&&Zr(t),t.flags|=1,Ts(e,t,n,o),t.child):(Ao(e,t,o),Qs(e,t,o))}function Ns(e,t,n,r,i){if(wi(t),null===t.stateNode){var o=Ir,a=n.contextType;"object"==typeof a&&null!==a&&(o=Si(a)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=hs,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},Ji(t),a=n.contextType,o.context="object"==typeof a&&null!==a?Si(a):Ir,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(fs(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&hs.enqueueReplaceState(o,o.state,null),so(t,r,o,i),ao(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=bs(n,s);o.props=l;var c=o.context,u=n.contextType;a=Ir,"object"==typeof u&&null!==u&&(a=Si(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||c!==a)&&vs(t,o,r,a),Zi=!1;var p=t.memoizedState;o.state=p,so(t,r,o,i),ao(),c=t.memoizedState,s||p!==c||Zi?("function"==typeof d&&(fs(t,n,d,r),c=t.memoizedState),(l=Zi||ms(t,n,l,r,p,c,a))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,eo(e,t),u=bs(n,a=t.memoizedProps),o.props=u,d=t.pendingProps,p=o.context,c=n.contextType,l=Ir,"object"==typeof c&&null!==c&&(l=Si(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||p!==l)&&vs(t,o,r,l),Zi=!1,p=t.memoizedState,o.state=p,so(t,r,o,i),ao();var f=t.memoizedState;a!==d||p!==f||Zi||null!==e&&null!==e.dependencies&&ki(e.dependencies)?("function"==typeof s&&(fs(t,n,s,r),f=t.memoizedState),(u=Zi||ms(t,n,u,r,p,f,l)||null!==e&&null!==e.dependencies&&ki(e.dependencies))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ls(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=es(t,e.child,null,i),t.child=es(t,null,n,i)):Ts(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Qs(e,t,i),e}function $s(e,t,n,r){return ui(),t.flags|=256,Ts(e,t,n,r),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ws(e){return{baseLanes:e,cachePool:Bi()}}function Vs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=bc),e}function Hs(e,t,n){var i,o=t.pendingProps,a=!1,s=!!(128&t.flags);if((i=s)||(i=(null===e||null!==e.memoizedState)&&!!(2&ds.current)),i&&(a=!0,t.flags&=-129),i=!!(32&t.flags),t.flags&=-33,null===e){if(ni){if(a?os(t):ls(),ni){var l,c=ti;if(l=c){e:{for(l=c,c=ii;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=yd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Gr?{id:Yr,overflow:Xr}:null,retryLane:536870912,hydrationErrors:null},(l=Fr(18,null,null,0)).stateNode=c,l.return=t,t.child=l,ei=t,ti=null,l=!0):l=!1}l||ai(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return bd(c)?t.lanes=32:t.lanes=536870912,null;cs(t)}return c=o.children,o=o.fallback,a?(ls(),c=qs({mode:"hidden",children:c},a=t.mode),o=jr(o,a,n,null),c.return=t,o.return=t,c.sibling=o,t.child=c,(a=t.child).memoizedState=Ws(n),a.childLanes=Vs(e,i,n),t.memoizedState=Bs,o):(os(t),Us(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(os(t),t.flags&=-257,t=Gs(e,t,n)):null!==t.memoizedState?(ls(),t.child=e.child,t.flags|=128,t=null):(ls(),a=o.fallback,c=t.mode,o=qs({mode:"visible",children:o.children},c),(a=jr(a,c,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,es(t,e.child,null,n),(o=t.child).memoizedState=Ws(n),o.childLanes=Vs(e,i,n),t.memoizedState=Bs,t=a);else if(os(t),bd(c)){if(i=c.nextSibling&&c.nextSibling.dataset)var u=i.dgst;i=u,(o=Error(r(419))).stack="",o.digest=i,pi({value:o,source:null,stack:null}),t=Gs(e,t,n)}else if(Rs||xi(e,t,n,!1),i=0!==(n&e.childLanes),Rs||i){if(null!==(i=oc)&&0!==(o=0!==((o=42&(o=n&-n)?1:Ce(o))&(i.suspendedLanes|n))?0:o)&&o!==l.retryLane)throw l.retryLane=o,zr(e,o),jc(i,0,o),zs;"$?"===c.data||Xc(),t=Gs(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ti=yd(c.nextSibling),ei=t,ni=!0,ri=null,ii=!1,null!==e&&(Ur[qr++]=Yr,Ur[qr++]=Xr,Ur[qr++]=Gr,Yr=e.id,Xr=e.overflow,Gr=t),(t=Us(t,o.children)).flags|=4096);return t}return a?(ls(),a=o.fallback,c=t.mode,u=(l=e.child).sibling,(o=Mr(l,{mode:"hidden",children:o.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?a=Mr(u,a):(a=jr(a,c,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,null===(c=e.child.memoizedState)?c=Ws(n):(null!==(l=c.cachePool)?(u=Ri._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Bi(),c={baseLanes:c.baseLanes|n,cachePool:l}),a.memoizedState=c,a.childLanes=Vs(e,i,n),t.memoizedState=Bs,o):(os(t),e=(n=e.child).sibling,(n=Mr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(i=t.deletions)?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function Us(e,t){return(t=qs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function qs(e,t){return(e=Fr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gs(e,t,n){return es(t,e.child,null,n),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ys(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),bi(e.return,t,n)}function Xs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ks(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ts(e,t,r.children,n),2&(r=ds.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ys(e,n,t);else if(19===e.tag)Ys(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(j(ds,r),i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ps(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ps(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xs(t,!0,n,null,o);break;case"together":Xs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),gc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(xi(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Mr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ki(e))}function Js(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Rs=!0;else{if(!(Zs(e,n)||128&t.flags))return Rs=!1,function(e,t,n){switch(t.tag){case 3:V(t,t.stateNode.containerInfo),mi(0,Ri,e.memoizedState.cache),ui();break;case 27:case 5:U(t);break;case 4:V(t,t.stateNode.containerInfo);break;case 10:mi(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(os(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Hs(e,t,n):(os(t),null!==(e=Qs(e,t,n))?e.sibling:null);os(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(xi(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return Ks(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),j(ds,ds.current),r)break;return null;case 22:case 23:return t.lanes=0,As(e,t,n);case 24:mi(0,Ri,e.memoizedState.cache)}return Qs(e,t,n)}(e,t,n);Rs=!!(131072&e.flags)}else Rs=!1,ni&&1048576&t.flags&&Qr(t,Hr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,o=i._init;if(i=o(i._payload),t.type=i,"function"!=typeof i){if(null!=i){if((o=i.$$typeof)===y){t.tag=11,t=Is(null,t,i,e,n);break e}if(o===w){t.tag=14,t=Os(null,t,i,e,n);break e}}throw t=R(i)||i,Error(r(306,t,""))}Ar(i)?(e=bs(i,e),t.tag=1,t=Ns(null,t,i,e,n)):(t.tag=0,t=Ds(null,t,i,e,n))}return t;case 0:return Ds(e,t,t.type,t.pendingProps,n);case 1:return Ns(e,t,i=t.type,o=bs(i,t.pendingProps),n);case 3:e:{if(V(t,t.stateNode.containerInfo),null===e)throw Error(r(387));i=t.pendingProps;var a=t.memoizedState;o=a.element,eo(e,t),so(t,i,null,n);var s=t.memoizedState;if(i=s.cache,mi(0,Ri,i),i!==a.cache&&yi(t,[Ri],n,!0),ao(),i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$s(e,t,i,n);break e}if(i!==o){pi(o=kr(Error(r(424)),t)),t=$s(e,t,i,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ti=yd(e.firstChild),ei=t,ni=!0,ri=null,ii=!0,n=ts(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ui(),i===o){t=Qs(e,t,n);break e}Ts(e,t,i,n)}t=t.child}return t;case 26:return Ls(e,t),null===e?(n=Td(t.type,null,t.pendingProps,null))?t.memoizedState=n:ni||(n=t.type,e=t.pendingProps,(i=od(B.current).createElement(n))[Re]=t,i[Te]=e,nd(i,n,e),We(i),t.stateNode=i):t.memoizedState=Td(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return U(t),null===e&&ni&&(i=t.stateNode=wd(t.type,t.pendingProps,B.current),ei=t,ii=!0,o=ti,gd(t.type)?(xd=o,ti=yd(i.firstChild)):ti=o),Ts(e,t,t.pendingProps.children,n),Ls(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ni&&((o=i=ti)&&(null!==(i=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Le])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=yd(e.nextSibling)))break}return null}(i,t.type,t.pendingProps,ii))?(t.stateNode=i,ei=t,ti=yd(i.firstChild),ii=!1,o=!0):o=!1),o||ai(t)),U(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,ld(o,a)?i=null:null!==s&&ld(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=Ro(e,t,Oo,null,null,n),Kd._currentValue=o),Ls(e,t),Ts(e,t,i,n),t.child;case 6:return null===e&&ni&&((e=n=ti)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=yd(e.nextSibling)))return null}return e}(n,t.pendingProps,ii))?(t.stateNode=n,ei=t,ti=null,e=!0):e=!1),e||ai(t)),null;case 13:return Hs(e,t,n);case 4:return V(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=es(t,null,i,n):Ts(e,t,i,n),t.child;case 11:return Is(e,t,t.type,t.pendingProps,n);case 7:return Ts(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ts(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,mi(0,t.type,i.value),Ts(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,wi(t),i=i(o=Si(o)),t.flags|=1,Ts(e,t,i,n),t.child;case 14:return Os(e,t,t.type,t.pendingProps,n);case 15:return Fs(e,t,t.type,t.pendingProps,n);case 19:return Ks(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},null===e?((n=qs(i,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Mr(e.child,i)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return As(e,t,n);case 24:return wi(t),i=Si(Ri),null===e?(null===(o=Ni())&&(o=oc,a=Ti(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:i,cache:o},Ji(t),mi(0,Ri,o)):(0!==(e.lanes&n)&&(eo(e,t),so(t,null,null,n),ao()),o=e.memoizedState,a=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),mi(0,Ri,i)):(i=a.cache,mi(0,Ri,i),i!==o.cache&&yi(t,[Ri],n,!0))),Ts(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Vd(t)){if(null!==(t=ns.current)&&((4194048&sc)===sc?null!==is:(62914560&sc)!==sc&&!(536870912&sc)||t!==is))throw Xi=Ui,Vi;e.flags|=8192}}function nl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?xe():536870912,e.lanes|=t,yc|=t)}function rl(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function il(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ol(e,t,n){var i=t.pendingProps;switch(Jr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return il(t),null;case 3:return n=t.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vi(Ri),H(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ci(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,di())),il(t),null;case 26:return n=t.memoizedState,null===e?(el(t),null!==n?(il(t),tl(t,n)):(il(t),t.flags&=-16777217)):n?n!==e.memoizedState?(el(t),il(t),tl(t,n)):(il(t),t.flags&=-16777217):(e.memoizedProps!==i&&el(t),il(t),t.flags&=-16777217),null;case 27:q(t),n=B.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return il(t),null}e=N.current,ci(t)?si(t):(e=wd(o,i,n),t.stateNode=e,el(t))}return il(t),null;case 5:if(q(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if(!i){if(null===t.stateNode)throw Error(r(166));return il(t),null}if(e=N.current,ci(t))si(t);else{switch(o=od(B.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof i.is?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e="string"==typeof i.is?o.createElement(n,{is:i.is}):o.createElement(n)}}e[Re]=t,e[Te]=i;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(nd(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return il(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==i&&el(t);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(e=B.current,ci(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,null!==(o=ei))switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Re]=t,(e=!!(e.nodeValue===n||null!==i&&!0===i.suppressHydrationWarning||Zu(e.nodeValue,n)))||ai(t)}else(e=od(e).createTextNode(i))[Re]=t,t.stateNode=e}return il(t),null;case 13:if(i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ci(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(r(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(r(317));o[Re]=t}else ui(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;il(t),o=!1}else o=di(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(cs(t),t):(cs(t),null)}if(cs(t),128&t.flags)return t.lanes=n,t;if(n=null!==i,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(i=t.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(o=i.alternate.memoizedState.cachePool.pool);var a=null;null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(a=i.memoizedState.cachePool.pool),a!==o&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nl(t,t.updateQueue),il(t),null;case 4:return H(),null===e&&Wu(t.stateNode.containerInfo),il(t),null;case 10:return vi(t.type),il(t),null;case 19:if(D(ds),null===(o=t.memoizedState))return il(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)rl(o,!1);else{if(0!==hc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ps(e))){for(t.flags|=128,rl(o,!1),e=a.updateQueue,t.updateQueue=e,nl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Lr(n,e),n=n.sibling;return j(ds,1&ds.current|2),t.child}e=e.sibling}null!==o.tail&&Z()>_c&&(t.flags|=128,i=!0,rl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ps(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,nl(t,e),rl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ni)return il(t),null}else 2*Z()-o.renderingStartTime>_c&&536870912!==n&&(t.flags|=128,i=!0,rl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,e=ds.current,j(ds,i?1&e|2:1&e),t):(il(t),null);case 22:case 23:return cs(t),go(),i=null!==t.memoizedState,null!==e?null!==e.memoizedState!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?!!(536870912&n)&&!(128&t.flags)&&(il(t),6&t.subtreeFlags&&(t.flags|=8192)):il(t),null!==(n=t.updateQueue)&&nl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),i=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),null!==e&&D(ji),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vi(Ri),il(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function al(e,t){switch(Jr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vi(Ri),H(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return q(t),null;case 13:if(cs(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));ui()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return D(ds),null;case 4:return H(),null;case 10:return vi(t.type),null;case 22:case 23:return cs(t),go(),null!==e&&D(ji),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vi(Ri),null;default:return null}}function sl(e,t){switch(Jr(t),t.tag){case 3:vi(Ri),H();break;case 26:case 27:case 5:q(t);break;case 4:H();break;case 13:cs(t);break;case 19:D(ds);break;case 10:vi(t.type);break;case 22:case 23:cs(t),go(),null!==e&&D(ji);break;case 24:vi(Ri)}}function ll(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){pu(t,t.return,s)}}function cl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,c=s;try{c()}catch(u){pu(i,l,u)}}}r=r.next}while(r!==o)}}catch(u){pu(t,t.return,u)}}function ul(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{co(t,n)}catch(r){pu(e,e.return,r)}}}function dl(e,t,n){n.props=bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){pu(e,t,r)}}function pl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(i){pu(e,t,i)}}function fl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(i){pu(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(o){pu(e,t,o)}else n.current=null}function hl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){pu(e,e.return,i)}}function gl(e,t,n){try{var i=e.stateNode;!function(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":c=p;default:i.hasOwnProperty(h)||ed(e,t,h,null,i,p)}}for(var f in i){var h=i[f];if(p=n[f],i.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":a=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==p&&ed(e,t,f,h,i,p)}}return void ft(e,s,l,c,u,d,a,o);case"select":for(a in h=s=l=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:i.hasOwnProperty(a)||ed(e,t,a,null,i,c)}for(o in i)if(a=i[o],c=n[o],i.hasOwnProperty(o)&&(null!=a||null!=c))switch(o){case"value":f=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&ed(e,t,o,a,i,c)}return t=l,n=s,i=h,void(null!=f?mt(e,!!n,f,!1):!!i!=!!n&&(null!=t?mt(e,!!n,t,!0):mt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=f=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!i.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,i,o)}for(s in i)if(o=i[s],a=n[s],i.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":f=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(r(91));break;default:o!==a&&ed(e,t,s,o,i,a)}return void vt(e,f,h);case"option":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!i.hasOwnProperty(g)&&("selected"===g?e.selected=!1:ed(e,t,g,null,i,f));for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||null==f&&null==h||("selected"===c?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:ed(e,t,c,f,i,h));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 m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!i.hasOwnProperty(m)&&ed(e,t,m,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:ed(e,t,u,f,i,h)}return;default:if(St(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!i.hasOwnProperty(v)&&td(e,t,v,void 0,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||td(e,t,d,f,i,h);return}}for(var b in n)f=n[b],n.hasOwnProperty(b)&&null!=f&&!i.hasOwnProperty(b)&&ed(e,t,b,null,i,f);for(p in i)f=i[p],h=n[p],!i.hasOwnProperty(p)||f===h||null==f&&null==h||ed(e,t,p,f,i,h)}(i,e.type,n,t),i[Te]=t}catch(o){pu(e,e.return,o)}}function ml(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&gd(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ml(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&gd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ju));else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&gd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function xl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);nd(t,r,n),t[Re]=e,t[Te]=n}catch(o){pu(e,e.return,o)}}var kl=!1,wl=!1,Sl=!1,_l="function"==typeof WeakSet?WeakSet:Set,Cl=null;function El(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Nl(e,n),4&r&&ll(5,n);break;case 1:if(Nl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){pu(n,n.return,a)}else{var i=bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){pu(n,n.return,s)}}64&r&&ul(n),512&r&&pl(n,n.return);break;case 3:if(Nl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{co(e,t)}catch(a){pu(n,n.return,a)}}break;case 27:null===t&&4&r&&xl(n);case 26:case 5:Nl(e,n),null===t&&4&r&&hl(n),512&r&&pl(n,n.return);break;case 12:Nl(e,n);break;case 13:Nl(e,n),4&r&&Ol(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=mu.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||kl)){t=null!==t&&null!==t.memoizedState||wl,i=kl;var o=wl;kl=r,(wl=t)&&!o?Bl(e,n,!!(8772&n.subtreeFlags)):Nl(e,n),kl=i,wl=o}break;case 30:break;default:Nl(e,n)}}function Pl(e){var t=e.alternate;null!==t&&(e.alternate=null,Pl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&De(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var zl=null,Rl=!1;function Tl(e,t,n){for(n=n.child;null!==n;)Il(e,t,n),n=n.sibling}function Il(e,t,n){if(le&&"function"==typeof le.onCommitFiberUnmount)try{le.onCommitFiberUnmount(se,n)}catch(o){}switch(n.tag){case 26:wl||fl(n,t),Tl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wl||fl(n,t);var r=zl,i=Rl;gd(n.type)&&(zl=n.stateNode,Rl=!1),Tl(e,t,n),Sd(n.stateNode),zl=r,Rl=i;break;case 5:wl||fl(n,t);case 6:if(r=zl,i=Rl,zl=null,Tl(e,t,n),Rl=i,null!==(zl=r))if(Rl)try{(9===zl.nodeType?zl.body:"HTML"===zl.nodeName?zl.ownerDocument.body:zl).removeChild(n.stateNode)}catch(a){pu(n,t,a)}else try{zl.removeChild(n.stateNode)}catch(a){pu(n,t,a)}break;case 18:null!==zl&&(Rl?(md(9===(e=zl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Rp(e)):md(zl,n.stateNode));break;case 4:r=zl,i=Rl,zl=n.stateNode.containerInfo,Rl=!0,Tl(e,t,n),zl=r,Rl=i;break;case 0:case 11:case 14:case 15:wl||cl(2,n,t),wl||cl(4,n,t),Tl(e,t,n);break;case 1:wl||(fl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&dl(n,t,r)),Tl(e,t,n);break;case 21:Tl(e,t,n);break;case 22:wl=(r=wl)||null!==n.memoizedState,Tl(e,t,n),wl=r;break;default:Tl(e,t,n)}}function Ol(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Rp(e)}catch(n){pu(t,t.return,n)}}function Fl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new _l),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new _l),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Al(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var o=n[i],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(gd(l.type)){zl=l.stateNode,Rl=!1;break e}break;case 5:zl=l.stateNode,Rl=!1;break e;case 3:case 4:zl=l.stateNode.containerInfo,Rl=!0;break e}l=l.return}if(null===zl)throw Error(r(160));Il(a,s,o),zl=null,Rl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ll(t,e),t=t.sibling}var Ml=null;function Ll(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Al(t,e),Dl(e),4&i&&(cl(3,e,e.return),ll(3,e),cl(5,e,e.return));break;case 1:Al(t,e),Dl(e),512&i&&(wl||null===n||fl(n,n.return)),64&i&&kl&&null!==(e=e.updateQueue)&&null!==(i=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?i:n.concat(i));break;case 26:var o=Ml;if(Al(t,e),Dl(e),512&i&&(wl||null===n||fl(n,n.return)),4&i){var a=null!==n?n.memoizedState:null;if(i=e.memoizedState,null===n)if(null===i)if(null===e.stateNode){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":(!(a=o.getElementsByTagName("title")[0])||a[Le]||a[Re]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(i),o.head.insertBefore(a,o.querySelector("head > title"))),nd(a,i,n),a[Re]=e,We(a),i=a;break e;case"link":var s=Bd("link","href",o).get(i+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}nd(a=o.createElement(i),i,n),o.head.appendChild(a);break;case"meta":if(s=Bd("meta","content",o).get(i+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}nd(a=o.createElement(i),i,n),o.head.appendChild(a);break;default:throw Error(r(468,i))}a[Re]=e,We(a),i=a}e.stateNode=i}else Wd(o,e.type,e.stateNode);else e.stateNode=Ld(o,i,e.memoizedProps);else a!==i?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===i?Wd(o,e.type,e.stateNode):Ld(o,i,e.memoizedProps)):null===i&&null!==e.stateNode&&gl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Al(t,e),Dl(e),512&i&&(wl||null===n||fl(n,n.return)),null!==n&&4&i&&gl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Al(t,e),Dl(e),512&i&&(wl||null===n||fl(n,n.return)),32&e.flags){o=e.stateNode;try{yt(o,"")}catch(h){pu(e,e.return,h)}}4&i&&null!=e.stateNode&&gl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&i&&(Sl=!0);break;case 6:if(Al(t,e),Dl(e),4&i){if(null===e.stateNode)throw Error(r(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){pu(e,e.return,h)}}break;case 3:if($d=null,o=Ml,Ml=Ed(t.containerInfo),Al(t,e),Ml=o,Dl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Rp(t.containerInfo)}catch(h){pu(e,e.return,h)}Sl&&(Sl=!1,jl(e));break;case 4:i=Ml,Ml=Ed(e.stateNode.containerInfo),Al(t,e),Dl(e),Ml=i;break;case 12:default:Al(t,e),Dl(e);break;case 13:Al(t,e),Dl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Sc=Z()),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Fl(e,i));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=kl,d=wl;if(kl=u||o,wl=d||c,Al(t,e),wl=d,kl=u,Dl(e),8192&i)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||kl||wl||$l(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(h){pu(c,c.return,h)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(h){pu(c,c.return,h)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&i&&null!==(i=e.updateQueue)&&null!==(n=i.retryQueue)&&(i.retryQueue=null,Fl(e,n));break;case 19:Al(t,e),Dl(e),4&i&&null!==(i=e.updateQueue)&&(e.updateQueue=null,Fl(e,i));case 30:case 21:}}function Dl(e){var t=e.flags;if(2&t){try{for(var n,i=e.return;null!==i;){if(ml(i)){n=i;break}i=i.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode;yl(e,vl(e),o);break;case 5:var a=n.stateNode;32&n.flags&&(yt(a,""),n.flags&=-33),yl(e,vl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;bl(e,vl(e),s);break;default:throw Error(r(161))}}catch(l){pu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function jl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;jl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)El(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),$l(t);break;case 1:fl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&dl(t,t.return,n),$l(t);break;case 27:Sd(t.stateNode);case 26:case 5:fl(t,t.return),$l(t);break;case 22:null===t.memoizedState&&$l(t);break;default:$l(t)}e=e.sibling}}function Bl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Bl(i,o,n),ll(4,o);break;case 1:if(Bl(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){pu(r,r.return,c)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)lo(l[i],s)}catch(c){pu(r,r.return,c)}}n&&64&a&&ul(o),pl(o,o.return);break;case 27:xl(o);case 26:case 5:Bl(i,o,n),n&&null===r&&4&a&&hl(o),pl(o,o.return);break;case 12:Bl(i,o,n);break;case 13:Bl(i,o,n),n&&4&a&&Ol(i,o);break;case 22:null===o.memoizedState&&Bl(i,o,n),pl(o,o.return);break;case 30:break;default:Bl(i,o,n)}t=t.sibling}}function Wl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ii(n))}function Vl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ii(e))}function Hl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Ul(e,t,n,r),t=t.sibling}function Ul(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Hl(e,t,n,r),2048&i&&ll(9,t);break;case 1:case 13:default:Hl(e,t,n,r);break;case 3:Hl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ii(e)));break;case 12:if(2048&i){Hl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){pu(t,t.return,l)}}else Hl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?Hl(e,t,n,r):Gl(e,t):2&o._visibility?Hl(e,t,n,r):(o._visibility|=2,ql(e,t,n,r,!!(10256&t.subtreeFlags))),2048&i&&Wl(a,t);break;case 24:Hl(e,t,n,r),2048&i&&Vl(t.alternate,t)}}function ql(e,t,n,r,i){for(i=i&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var o=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:ql(o,a,s,l,i),ll(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?ql(o,a,s,l,i):Gl(o,a):(u._visibility|=2,ql(o,a,s,l,i)),i&&2048&c&&Wl(a.alternate,a);break;case 24:ql(o,a,s,l,i),i&&2048&c&&Vl(a.alternate,a);break;default:ql(o,a,s,l,i)}t=t.sibling}}function Gl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Gl(n,r),2048&i&&Wl(r.alternate,r);break;case 24:Gl(n,r),2048&i&&Vl(r.alternate,r);break;default:Gl(n,r)}t=t.sibling}}var Yl=8192;function Xl(e){if(e.subtreeFlags&Yl)for(e=e.child;null!==e;)Kl(e),e=e.sibling}function Kl(e){switch(e.tag){case 26:Xl(e),e.flags&Yl&&null!==e.memoizedState&&function(e,t,n){if(null===Hd)throw Error(r(475));var i=Hd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=Id(n.href),a=e.querySelector(Od(o));if(a)return null!==(e=a._p)&&"object"==typeof e&&"function"==typeof e.then&&(i.count++,i=qd.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=a,void We(a);a=e.ownerDocument||e,n=Fd(n),(o=_d.get(o))&&jd(n,o),We(a=a.createElement("link"));var s=a;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(a,"link",n),t.instance=a}null===i.stylesheets&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(i.count++,t=qd.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}(Ml,e.memoizedState,e.memoizedProps);break;case 5:default:Xl(e);break;case 3:case 4:var t=Ml;Ml=Ed(e.stateNode.containerInfo),Xl(e),Ml=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Yl,Yl=16777216,Xl(e),Yl=t):Xl(e))}}function Ql(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Zl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,tc(r,e)}Ql(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Zl(e),2048&e.flags&&cl(9,e,e.return);break;case 3:case 12:default:Zl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,ec(e)):Zl(e)}}function ec(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,tc(r,e)}Ql(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:cl(8,t,t.return),ec(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,ec(t));break;default:ec(t)}e=e.sibling}}function tc(e,t){for(;null!==Cl;){var n=Cl;switch(n.tag){case 0:case 11:case 15:cl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ii(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Cl=r;else e:for(n=e;null!==Cl;){var i=(r=Cl).sibling,o=r.return;if(Pl(r),r===n){Cl=null;break e}if(null!==i){i.return=o,Cl=i;break e}Cl=o}}}var nc={getCacheForType:function(e){var t=Si(Ri),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},rc="function"==typeof WeakMap?WeakMap:Map,ic=0,oc=null,ac=null,sc=0,lc=0,cc=null,uc=!1,dc=!1,pc=!1,fc=0,hc=0,gc=0,mc=0,vc=0,bc=0,yc=0,xc=null,kc=null,wc=!1,Sc=0,_c=1/0,Cc=null,Ec=null,Pc=0,zc=null,Rc=null,Tc=0,Ic=0,Oc=null,Fc=null,Ac=0,Mc=null;function Lc(){return 2&ic&&0!==sc?sc&-sc:null!==I.T?0!==Ai?Ai:Iu():Pe()}function Dc(){0===bc&&(bc=536870912&sc&&!ni?536870912:ye());var e=ns.current;return null!==e&&(e.flags|=32),bc}function jc(e,t,n){(e!==oc||2!==lc&&9!==lc)&&null===e.cancelPendingCommit||(Uc(e,0),Wc(e,sc,bc,!1)),we(e,n),2&ic&&e===oc||(e===oc&&(!(2&ic)&&(mc|=n),4===hc&&Wc(e,sc,bc,!1)),_u(e))}function Nc(e,t,n){if(6&ic)throw Error(r(327));for(var i=!n&&!(124&t)&&0===(t&e.expiredLanes)||ve(e,t),o=i?function(e,t){var n=ic;ic|=2;var i=Gc(),o=Yc();oc!==e||sc!==t?(Cc=null,_c=Z()+500,Uc(e,t)):dc=ve(e,t);e:for(;;)try{if(0!==lc&&null!==ac){t=ac;var a=cc;t:switch(lc){case 1:lc=0,cc=null,tu(e,t,a,1);break;case 2:case 9:if(qi(a)){lc=0,cc=null,eu(t);break}t=function(){2!==lc&&9!==lc||oc!==e||(lc=7),_u(e)},a.then(t,t);break e;case 3:lc=7;break e;case 4:lc=5;break e;case 7:qi(a)?(lc=0,cc=null,eu(t)):(lc=0,cc=null,tu(e,t,a,7));break;case 5:var s=null;switch(ac.tag){case 26:s=ac.memoizedState;case 5:case 27:var l=ac;if(!s||Vd(s)){lc=0,cc=null;var c=l.sibling;if(null!==c)ac=c;else{var u=l.return;null!==u?(ac=u,nu(u)):ac=null}break t}}lc=0,cc=null,tu(e,t,a,5);break;case 6:lc=0,cc=null,tu(e,t,a,6);break;case 8:Hc(),hc=6;break e;default:throw Error(r(462))}}Zc();break}catch(d){qc(e,d)}return gi=hi=null,I.H=i,I.A=o,ic=n,null!==ac?0:(oc=null,sc=0,Cr(),hc)}(e,t):Kc(e,t,!0),a=i;;){if(0===o){dc&&!i&&Wc(e,t,0,!1);break}if(n=e.current.alternate,!a||Bc(n)){if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=xc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,s).flags|=256),2!==(s=Kc(l,s,!1))){if(pc&&!c){l.errorRecoveryDisabledLanes|=a,mc|=a,o=4;break e}a=kc,kc=o,null!==a&&(null===kc?kc=a:kc.push.apply(kc,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){Uc(e,0),Wc(e,t,0,!0);break}e:{switch(i=e,a=o){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Wc(i,t,bc,!uc);break e;case 2:kc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(o=Sc+300-Z())){if(Wc(i,t,bc,!uc),0!==me(i,0,!0))break e;i.timeoutHandle=ud($c.bind(null,i,n,kc,Cc,wc,t,bc,mc,yc,uc,a,2,-0,0),o)}else $c(i,n,kc,Cc,wc,t,bc,mc,yc,uc,a,0,-0,0)}break}o=Kc(e,t,!1),a=!1}_u(e)}function $c(e,t,n,i,o,a,s,l,c,u,d,p,f,h){if(e.timeoutHandle=-1,(8192&(p=t.subtreeFlags)||!(16785408&~p))&&(Hd={stylesheets:null,count:0,unsuspend:Ud},Kl(t),null!==(p=function(){if(null===Hd)throw Error(r(475));var e=Hd;return e.stylesheets&&0===e.count&&Yd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Yd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=p(iu.bind(null,e,t,a,n,i,o,s,l,c,d,1,f,h)),void Wc(e,a,s,!u);iu(e,t,a,n,i,o,s,l,c)}function Bc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!qn(o(),i))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wc(e,t,n,r){t&=~vc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-ue(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&Se(e,n,t)}function Vc(){return!!(6&ic)||(Cu(0),!1)}function Hc(){if(null!==ac){if(0===lc)var e=ac.return;else gi=hi=null,Mo(e=ac),qa=null,Ga=0,e=ac;for(;null!==e;)sl(e.alternate,e),e=e.return;ac=null}}function Uc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Hc(),oc=e,ac=n=Mr(e.current,null),sc=t,lc=0,cc=null,uc=!1,dc=ve(e,t),pc=!1,yc=bc=vc=mc=gc=hc=0,kc=xc=null,wc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-ue(r),o=1<<i;t|=e[i],r&=~o}return fc=t,Cr(),n}function qc(e,t){vo=null,I.H=Wa,t===Wi||t===Hi?(t=Ki(),lc=3):t===Vi?(t=Ki(),lc=4):lc=t===zs?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,cc=t,null===ac&&(hc=1,Ss(e,kr(t,e.current)))}function Gc(){var e=I.H;return I.H=Wa,null===e?Wa:e}function Yc(){var e=I.A;return I.A=nc,e}function Xc(){hc=4,uc||(4194048&sc)!==sc&&null!==ns.current||(dc=!0),!(134217727&gc)&&!(134217727&mc)||null===oc||Wc(oc,sc,bc,!1)}function Kc(e,t,n){var r=ic;ic|=2;var i=Gc(),o=Yc();oc===e&&sc===t||(Cc=null,Uc(e,t)),t=!1;var a=hc;e:for(;;)try{if(0!==lc&&null!==ac){var s=ac,l=cc;switch(lc){case 8:Hc(),a=6;break e;case 3:case 2:case 9:case 6:null===ns.current&&(t=!0);var c=lc;if(lc=0,cc=null,tu(e,s,l,c),n&&dc){a=0;break e}break;default:c=lc,lc=0,cc=null,tu(e,s,l,c)}}Qc(),a=hc;break}catch(u){qc(e,u)}return t&&e.shellSuspendCounter++,gi=hi=null,ic=r,I.H=i,I.A=o,null===ac&&(oc=null,sc=0,Cr()),a}function Qc(){for(;null!==ac;)Jc(ac)}function Zc(){for(;null!==ac&&!K();)Jc(ac)}function Jc(e){var t=Js(e.alternate,e,fc);e.memoizedProps=e.pendingProps,null===t?nu(e):ac=t}function eu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=js(n,t,t.pendingProps,t.type,void 0,sc);break;case 11:t=js(n,t,t.pendingProps,t.type.render,t.ref,sc);break;case 5:Mo(t);default:sl(n,t),t=Js(n,t=ac=Lr(t,fc),fc)}e.memoizedProps=e.pendingProps,null===t?nu(e):ac=t}function tu(e,t,n,i){gi=hi=null,Mo(t),qa=null,Ga=0;var o=t.return;try{if(function(e,t,n,i,o){if(n.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(t=n.alternate)&&xi(t,n,o,!0),null!==(n=ns.current)){switch(n.tag){case 13:return null===is?Xc():null===n.alternate&&0===hc&&(hc=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===Ui?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([i]):t.add(i),fu(e,i,o)),!1;case 22:return n.flags|=65536,i===Ui?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([i]):n.add(i),fu(e,i,o)),!1}throw Error(r(435,n.tag))}return fu(e,i,o),Xc(),!1}if(ni)return null!==(t=ns.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==oi&&pi(kr(e=Error(r(422),{cause:i}),n))):(i!==oi&&pi(kr(t=Error(r(423),{cause:i}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,i=kr(i,n),io(e,o=Cs(e.stateNode,i,o)),4!==hc&&(hc=2)),!1;var a=Error(r(520),{cause:i});if(a=kr(a,n),null===xc?xc=[a]:xc.push(a),4!==hc&&(hc=2),null===t)return!0;i=kr(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,io(n,e=Cs(n.stateNode,i,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Ec&&Ec.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,Ps(o=Es(o),e,n,i),io(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,sc))return hc=1,Ss(e,kr(n,e.current)),void(ac=null)}catch(a){if(null!==o)throw ac=o,a;return hc=1,Ss(e,kr(n,e.current)),void(ac=null)}32768&t.flags?(ni||1===i?e=!0:dc||536870912&sc?e=!1:(uc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=ns.current)&&13===i.tag&&(i.flags|=16384)),ru(t,e)):nu(t)}function nu(e){var t=e;do{if(32768&t.flags)return void ru(t,uc);e=t.return;var n=ol(t.alternate,t,fc);if(null!==n)return void(ac=n);if(null!==(t=t.sibling))return void(ac=t);ac=t=e}while(null!==t);0===hc&&(hc=5)}function ru(e,t){do{var n=al(e.alternate,e);if(null!==n)return n.flags&=32767,void(ac=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ac=e);ac=e=n}while(null!==e);hc=6,ac=null}function iu(e,t,n,i,o,a,s,l,c){e.cancelPendingCommit=null;do{cu()}while(0!==Pc);if(6&ic)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-ue(n),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var f=p[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Se(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,a|=_r,s,l,c),e===oc&&(ac=oc=null,sc=0),Rc=t,zc=e,Tc=n,Ic=a,Oc=o,Fc=i,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,Y(ne,function(){return uu(),null})):(e.callbackNode=null,e.callbackPriority=0),i=!!(13878&t.flags),13878&t.subtreeFlags||i){i=I.T,I.T=null,o=O.p,O.p=2,s=ic,ic|=4;try{!function(e,t){if(e=e.containerInfo,rd=ip,Zn(e=Qn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;e:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==i&&3!==p.nodeType||(c=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break e;if(f===n&&++u===o&&(l=s),f===a&&++d===i&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(id={focusedElem:e,selectionRange:n},ip=!1,Cl=t;null!==Cl;)if(e=(t=Cl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cl=e;else for(;null!==Cl;){switch(a=(t=Cl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,i=n.stateNode;try{var g=bs(n.type,o);e=i.getSnapshotBeforeUpdate(g,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(m){pu(n,n.return,m)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Cl=e;break}Cl=t.return}}(e,t)}finally{ic=s,O.p=o,I.T=i}}Pc=1,ou(),au(),su()}}function ou(){if(1===Pc){Pc=0;var e=zc,t=Rc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=I.T,I.T=null;var r=O.p;O.p=2;var i=ic;ic|=4;try{Ll(t,e);var o=id,a=Qn(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&Kn(s.ownerDocument.documentElement,s)){if(null!==l&&Zn(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!f.extend&&g>m&&(a=m,m=g,g=a);var v=Xn(s,g),b=Xn(s,m);if(v&&b&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var y=d.createRange();y.setStart(v.node,v.offset),f.removeAllRanges(),g>m?(f.addRange(y),f.extend(b.node,b.offset)):(y.setEnd(b.node,b.offset),f.addRange(y))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}ip=!!rd,id=rd=null}finally{ic=i,O.p=r,I.T=n}}e.current=t,Pc=2}}function au(){if(2===Pc){Pc=0;var e=zc,t=Rc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=I.T,I.T=null;var r=O.p;O.p=2;var i=ic;ic|=4;try{El(e,t.alternate,t)}finally{ic=i,O.p=r,I.T=n}}Pc=3}}function su(){if(4===Pc||3===Pc){Pc=0,Q();var e=zc,t=Rc,n=Tc,r=Fc;10256&t.subtreeFlags||10256&t.flags?Pc=5:(Pc=0,Rc=zc=null,lu(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Ec=null),Ee(n),t=t.stateNode,le&&"function"==typeof le.onCommitFiberRoot)try{le.onCommitFiberRoot(se,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=I.T,i=O.p,O.p=2,I.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{I.T=t,O.p=i}}3&Tc&&cu(),_u(e),i=e.pendingLanes,4194090&n&&42&i?e===Mc?Ac++:(Ac=0,Mc=e):Ac=0,Cu(0)}}function lu(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ii(t))}function cu(e){return ou(),au(),su(),uu()}function uu(){if(5!==Pc)return!1;var e=zc,t=Ic;Ic=0;var n=Ee(Tc),i=I.T,o=O.p;try{O.p=32>n?32:n,I.T=null,n=Oc,Oc=null;var a=zc,s=Tc;if(Pc=0,Rc=zc=null,Tc=0,6&ic)throw Error(r(331));var l=ic;if(ic|=4,Jl(a.current),Ul(a,a.current,s,n),ic=l,Cu(0),le&&"function"==typeof le.onPostCommitFiberRoot)try{le.onPostCommitFiberRoot(se,a)}catch(c){}return!0}finally{O.p=o,I.T=i,lu(e,t)}}function du(e,t,n){t=kr(n,t),null!==(e=no(e,t=Cs(e.stateNode,t,2),2))&&(we(e,2),_u(e))}function pu(e,t,n){if(3===e.tag)du(e,e,n);else for(;null!==t;){if(3===t.tag){du(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ec||!Ec.has(r))){e=kr(n,e),null!==(r=no(t,n=Es(2),2))&&(Ps(n,r,t,e),we(r,2),_u(r));break}}t=t.return}}function fu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new rc;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(pc=!0,i.add(n),e=hu.bind(null,e,t,n),t.then(e,e))}function hu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oc===e&&(sc&n)===n&&(4===hc||3===hc&&(62914560&sc)===sc&&300>Z()-Sc?!(2&ic)&&Uc(e,0):vc|=n,yc===sc&&(yc=0)),_u(e)}function gu(e,t){0===t&&(t=xe()),null!==(e=zr(e,t))&&(we(e,t),_u(e))}function mu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),gu(e,n)}function vu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==i&&i.delete(t),gu(e,n)}var bu=null,yu=null,xu=!1,ku=!1,wu=!1,Su=0;function _u(e){e!==yu&&null===e.next&&(null===yu?bu=yu=e:yu=yu.next=e),ku=!0,xu||(xu=!0,fd(function(){6&ic?Y(ee,Eu):Pu()}))}function Cu(e,t){if(!wu&&ku){wu=!0;do{for(var n=!1,r=bu;null!==r;){if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-ue(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Tu(r,o))}else o=sc,!(3&(o=me(r,r===oc?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||ve(r,o)||(n=!0,Tu(r,o));r=r.next}}while(n);wu=!1}}function Eu(){Pu()}function Pu(){ku=xu=!1;var e,t=0;0!==Su&&(((e=window.event)&&"popstate"===e.type?e!==cd&&(cd=e,!0):(cd=null,!1))&&(t=Su),Su=0);for(var n=Z(),r=null,i=bu;null!==i;){var o=i.next,a=zu(i,n);0===a?(i.next=null,null===r?bu=o:r.next=o,null===o&&(yu=r)):(r=i,(0!==t||3&a)&&(ku=!0)),i=o}Cu(t)}function zu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-ue(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=be(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=sc,n=me(e,e===(t=oc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lc||9===lc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&X(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||ve(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&X(r),Ee(n)){case 2:case 8:n=te;break;case 32:default:n=ne;break;case 268435456:n=ie}return r=Ru.bind(null,e),n=Y(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&X(r),e.callbackPriority=2,e.callbackNode=null,2}function Ru(e,t){if(0!==Pc&&5!==Pc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=sc;return 0===(r=me(e,e===oc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Nc(e,r,t),zu(e,Z()),null!=e.callbackNode&&e.callbackNode===n?Ru.bind(null,e):null)}function Tu(e,t){if(cu())return null;Nc(e,t,!0)}function Iu(){return 0===Su&&(Su=ye()),Su}function Ou(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Et(""+e)}function Fu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Au=0;Au<br.length;Au++){var Mu=br[Au];yr(Mu.toLowerCase(),"on"+(Mu[0].toUpperCase()+Mu.slice(1)))}yr(ur,"onAnimationEnd"),yr(dr,"onAnimationIteration"),yr(pr,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(fr,"onTransitionRun"),yr(hr,"onTransitionStart"),yr(gr,"onTransitionCancel"),yr(mr,"onTransitionEnd"),qe("onMouseEnter",["mouseout","mouseover"]),qe("onMouseLeave",["mouseout","mouseover"]),qe("onPointerEnter",["pointerout","pointerover"]),qe("onPointerLeave",["pointerout","pointerover"]),Ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="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(" "),Du=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function ju(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){ys(u)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){ys(u)}i.currentTarget=null,o=l}}}}function Nu(e,t){var n=t[Oe];void 0===n&&(n=t[Oe]=new Set);var r=e+"__bubble";n.has(r)||(Vu(t,e,2,!1),n.add(r))}function $u(e,t,n){var r=0;t&&(r|=4),Vu(n,e,r,t)}var Bu="_reactListening"+Math.random().toString(36).slice(2);function Wu(e){if(!e[Bu]){e[Bu]=!0,Ve.forEach(function(t){"selectionchange"!==t&&(Du.has(t)||$u(t,!1,e),$u(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bu]||(t[Bu]=!0,$u("selectionchange",!1,t))}}function Vu(e,t,n,r){switch(dp(t)){case 2:var i=op;break;case 8:i=ap;break;default:i=sp}n=i.bind(null,t,n,e),i=void 0,!Lt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hu(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=je(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ft(function(){var r=a,i=zt(n),s=[];e:{var l=vr.get(e);if(void 0!==l){var c=Kt,u=e;switch(e){case"keypress":if(0===Wt(n))break e;case"keydown":case"keyup":c=pn;break;case"focusin":u="focus",c=nn;break;case"focusout":u="blur",c=nn;break;case"beforeblur":case"afterblur":c=nn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=en;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=tn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=hn;break;case ur:case dr:case pr:c=rn;break;case mr:c=gn;break;case"scroll":case"scrollend":c=Zt;break;case"wheel":c=mn;break;case"copy":case"cut":case"paste":c=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=fn;break;case"toggle":case"beforetoggle":c=vn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===f||null!=(m=At(g,f))&&d.push(Uu(g,m,h)),p)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Pt||!(u=n.relatedTarget||n.fromElement)||!je(u)&&!u[Ie])&&(c||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?je(u):null)&&(p=o(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=en,m="onMouseLeave",f="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=fn,m="onPointerLeave",f="onPointerEnter",g="pointer"),p=null==c?l:$e(c),h=null==u?l:$e(u),(l=new d(m,g+"leave",c,n,i)).target=p,l.relatedTarget=h,m=null,je(i)===r&&((d=new d(f,g+"enter",u,n,i)).target=h,d.relatedTarget=p,m=d),p=m,c&&u)e:{for(f=u,g=0,h=d=c;h;h=Gu(h))g++;for(h=0,m=f;m;m=Gu(m))h++;for(;0<g-h;)d=Gu(d),g--;for(;0<h-g;)f=Gu(f),h--;for(;g--;){if(d===f||null!==f&&d===f.alternate)break e;d=Gu(d),f=Gu(f)}d=null}else d=null;null!==c&&Yu(s,l,c,d,!1),null!==u&&null!==p&&Yu(s,p,u,d,!0)}if("select"===(c=(l=r?$e(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Mn;else if(Rn(l))if(Ln)v=Un;else{v=Vn;var b=Wn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&St(r.elementType)&&(v=Mn):v=Hn;switch(v&&(v=v(e,r))?Tn(s,v,n,i):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&>(l,"number",l.value)),b=r?$e(r):window,e){case"focusin":(Rn(b)||"true"===b.contentEditable)&&(er=b,tr=r,nr=null);break;case"focusout":nr=tr=er=null;break;case"mousedown":rr=!0;break;case"contextmenu":case"mouseup":case"dragend":rr=!1,ir(s,n,i);break;case"selectionchange":if(Jn)break;case"keydown":case"keyup":ir(s,n,i)}var y;if(yn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Pn?Cn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(wn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==x?"onCompositionEnd"===x&&Pn&&(y=Bt()):(Nt="value"in(jt=i)?jt.value:jt.textContent,Pn=!0)),0<(b=qu(r,x)).length&&(x=new an(x,e,null,n,i),s.push({event:x,listeners:b}),(y||null!==(y=En(n)))&&(x.data=y))),(y=kn?function(e,t){switch(e){case"compositionend":return En(t);case"keypress":return 32!==t.which?null:(_n=!0,Sn);case"textInput":return(e=t.data)===Sn&&_n?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!yn&&Cn(e,t)?(e=Bt(),$t=Nt=jt=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=qu(r,"onBeforeInput")).length&&(b=new an("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:x}),b.data=y),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=Ou((i[Te]||null).action),a=r.submitter;a&&null!==(t=(t=a[Te]||null)?Ou(t.formAction):a.getAttribute("formAction"))&&(o=t,a=null);var s=new Kt("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Su){var e=a?Fu(i,a):new FormData(i);za(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?Fu(i,a):new FormData(i),za(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}ju(s,t)})}function Uu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qu(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=At(e,n))&&r.unshift(Uu(e,i,o)),null!=(i=At(e,t))&&r.push(Uu(e,i,o))),3===e.tag)return r;e=e.return}return[]}function Gu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Yu(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,i?null!=(c=At(n,o))&&a.unshift(Uu(n,c,l)):i||null!=(c=At(n,o))&&a.push(Uu(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xu=/\r\n?/g,Ku=/\u0000|\uFFFD/g;function Qu(e){return("string"==typeof e?e:""+e).replace(Xu,"\n").replace(Ku,"")}function Zu(e,t){return t=Qu(t),Qu(e)===t}function Ju(){}function ed(e,t,n,i,o,a){switch(n){case"children":"string"==typeof i?"body"===t||"textarea"===t&&""===i||yt(e,i):("number"==typeof i||"bigint"==typeof i)&&"body"!==t&&yt(e,""+i);break;case"className":Je(e,"class",i);break;case"tabIndex":Je(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Je(e,n,i);break;case"style":wt(e,i,a);break;case"data":if("object"!==t){Je(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=Et(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if("function"==typeof i){e.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}if("function"==typeof a&&("formAction"===n?("input"!==t&&ed(e,t,"name",o.name,o,null),ed(e,t,"formEncType",o.formEncType,o,null),ed(e,t,"formMethod",o.formMethod,o,null),ed(e,t,"formTarget",o.formTarget,o,null)):(ed(e,t,"encType",o.encType,o,null),ed(e,t,"method",o.method,o,null),ed(e,t,"target",o.target,o,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(n);break}i=Et(""+i),e.setAttribute(n,i);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}n=Et(""+i),e.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":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""+i):e.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":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===i?e.setAttribute(n,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Nu("beforetoggle",e),Nu("toggle",e),Ze(e,"popover",i);break;case"xlinkActuate":et(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":et(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":et(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":et(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":et(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":et(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":et(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":et(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":et(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ze(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&Ze(e,n=_t.get(n)||n,i)}}function td(e,t,n,i,o,a){switch(n){case"style":wt(e,i,a);break;case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(r(61));if(null!=(n=i.__html)){if(null!=o.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof i?yt(e,i):("number"==typeof i||"bigint"==typeof i)&&yt(e,""+i);break;case"onScroll":null!=i&&Nu("scroll",e);break;case"onScrollEnd":null!=i&&Nu("scrollend",e);break;case"onClick":null!=i&&(e.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:He.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(a=null!=(a=e[Te]||null)?a[n]:null)&&e.removeEventListener(t,a,o),"function"!=typeof i)?n in e?e[n]=i:!0===i?e.setAttribute(n,""):Ze(e,n,i):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nu("error",e),Nu("load",e);var i,o=!1,a=!1;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(null!=s)switch(i){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,i,s,n,null)}}return a&&ed(e,t,"srcSet",n.srcSet,n,null),void(o&&ed(e,t,"src",n.src,n,null));case"input":Nu("invalid",e);var l=i=s=a=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,o,d,n,null)}}return ht(e,i,l,c,u,s,a,!1),void lt(e);case"select":for(a in Nu("invalid",e),o=s=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":i=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:ed(e,t,a,l,n,null)}return t=i,n=s,e.multiple=!!o,void(null!=t?mt(e,!!o,t,!1):null!=n&&mt(e,!!o,n,!0));case"textarea":for(s in Nu("invalid",e),i=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ed(e,t,s,l,n,null)}return bt(e,o,a,i),void lt(e);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:ed(e,t,c,o,n,null));return;case"dialog":Nu("beforetoggle",e),Nu("toggle",e),Nu("cancel",e),Nu("close",e);break;case"iframe":case"object":Nu("load",e);break;case"video":case"audio":for(o=0;o<Lu.length;o++)Nu(Lu[o],e);break;case"image":Nu("error",e),Nu("load",e);break;case"details":Nu("toggle",e);break;case"embed":case"source":case"link":Nu("error",e),Nu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,u,o,n,null)}return;default:if(St(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&td(e,t,d,o,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(o=n[l])&&ed(e,t,l,o,n,null)}var rd=null,id=null;function od(e){return 9===e.nodeType?e:e.ownerDocument}function ad(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cd=null,ud="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,pd="function"==typeof Promise?Promise:void 0,fd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(hd)}:ud;function hd(e){setTimeout(function(){throw e})}function gd(e){return"head"===e}function md(e,t){var n=t,r=0,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0<r&&8>r){n=r;var a=e.ownerDocument;if(1&n&&Sd(a.documentElement),2&n&&Sd(a.body),4&n)for(Sd(n=a.head),a=n.firstChild;a;){var s=a.nextSibling,l=a.nodeName;a[Le]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=s}}if(0===i)return e.removeChild(o),void Rp(t);i--}else"$"===n||"$?"===n||"$!"===n?i++:r=n.charCodeAt(0)-48;else r=0;n=o}while(n);Rp(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vd(n),De(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function bd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function yd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var xd=null;function kd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function wd(e,t,n){switch(t=od(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);De(e)}var _d=new Map,Cd=new Set;function Ed(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Pd=O.d;O.d={f:function(){var e=Pd.f(),t=Vc();return e||t},r:function(e){var t=Ne(e);null!==t&&5===t.tag&&"form"===t.type?Ta(t):Pd.r(e)},D:function(e){Pd.D(e),Rd("dns-prefetch",e,null)},C:function(e,t){Pd.C(e,t),Rd("preconnect",e,t)},L:function(e,t,n){Pd.L(e,t,n);var r=zd;if(r&&e&&t){var i='link[rel="preload"][as="'+pt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+pt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+pt(n.imageSizes)+'"]')):i+='[href="'+pt(e)+'"]';var o=i;switch(t){case"style":o=Id(e);break;case"script":o=Ad(e)}_d.has(o)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),_d.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Od(o))||"script"===t&&r.querySelector(Md(o))||(nd(t=r.createElement("link"),"link",e),We(t),r.head.appendChild(t)))}},m:function(e,t){Pd.m(e,t);var n=zd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+pt(r)+'"][href="'+pt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ad(e)}if(!_d.has(o)&&(e=c({rel:"modulepreload",href:e},t),_d.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Md(o)))return}nd(r=n.createElement("link"),"link",e),We(r),n.head.appendChild(r)}}},X:function(e,t){Pd.X(e,t);var n=zd;if(n&&e){var r=Be(n).hoistableScripts,i=Ad(e),o=r.get(i);o||((o=n.querySelector(Md(i)))||(e=c({src:e,async:!0},t),(t=_d.get(i))&&Nd(e,t),We(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Pd.S(e,t,n);var r=zd;if(r&&e){var i=Be(r).hoistableStyles,o=Id(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Od(o)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=_d.get(o))&&jd(e,n);var l=a=r.createElement("link");We(l),nd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Dd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,t){Pd.M(e,t);var n=zd;if(n&&e){var r=Be(n).hoistableScripts,i=Ad(e),o=r.get(i);o||((o=n.querySelector(Md(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=_d.get(i))&&Nd(e,t),We(o=n.createElement("script")),nd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var zd="undefined"==typeof document?null:document;function Rd(e,t,n){var r=zd;if(r&&"string"==typeof t&&t){var i=pt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),Cd.has(i)||(Cd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(nd(t=r.createElement("link"),"link",e),We(t),r.head.appendChild(t)))}}function Td(e,t,n,i){var o,a,s,l,c=(c=B.current)?Ed(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Id(n.href),(i=(n=Be(c).hoistableStyles).get(t))||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Id(n.href);var u=Be(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Od(e)))&&!u._p&&(d.instance=u,d.state.loading=5),_d.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_d.set(e,n),u||(o=c,a=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=o.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),nd(a,"link",s),We(a),o.head.appendChild(a))))),t&&null===i)throw Error(r(528,""));return d}if(t&&null!==i)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Ad(n),(i=(n=Be(c).hoistableScripts).get(t))||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Id(e){return'href="'+pt(e)+'"'}function Od(e){return'link[rel="stylesheet"]['+e+"]"}function Fd(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Ad(e){return'[src="'+pt(e)+'"]'}function Md(e){return"script[async]"+e}function Ld(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pt(n.href)+'"]');if(i)return t.instance=i,We(i),i;var o=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return We(i=(e.ownerDocument||e).createElement("style")),nd(i,"style",o),Dd(i,n.precedence,e),t.instance=i;case"stylesheet":o=Id(n.href);var a=e.querySelector(Od(o));if(a)return t.state.loading|=4,t.instance=a,We(a),a;i=Fd(n),(o=_d.get(o))&&jd(i,o),We(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),nd(a,"link",i),t.state.loading|=4,Dd(a,n.precedence,e),t.instance=a;case"script":return a=Ad(n.src),(o=e.querySelector(Md(a)))?(t.instance=o,We(o),o):(i=n,(o=_d.get(a))&&Nd(i=c({},n),o),We(o=(e=e.ownerDocument||e).createElement("script")),nd(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(i=t.instance,t.state.loading|=4,Dd(i,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Nd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var $d=null;function Bd(e,t,n){if(null===$d){var r=new Map,i=$d=new Map;i.set(n,r)}else(r=(i=$d).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Le]||o[Re]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function Wd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Vd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var Hd=null;function Ud(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Yd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Gd=null;function Yd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Gd=new Map,t.forEach(Xd,e),Gd=null,qd.call(e))}function Xd(e,t){if(!(4&t.state.loading)){var n=Gd.get(e);if(n)var r=n.get(null);else{n=new Map,Gd.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=qd.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var Kd={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Qd(e,t,n,r,i,o,a,s){this.tag=1,this.containerInfo=e,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=ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ke(0),this.hiddenUpdates=ke(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Zd(e,t,n,r,i,o,a,s,l,c,u,d){return e=new Qd(e,t,n,a,s,l,c,d),t=1,!0===o&&(t|=24),o=Fr(3,null,null,t),e.current=o,o.stateNode=e,(t=Ti()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Ji(o),e}function Jd(e){return e?e=Ir:Ir}function ep(e,t,n,r,i,o){i=Jd(i),null===r.context?r.context=i:r.pendingContext=i,(r=to(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=no(e,r,t))&&(jc(n,0,t),ro(n,e,t))}function tp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function np(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function rp(e){if(13===e.tag){var t=zr(e,67108864);null!==t&&jc(t,0,67108864),np(e,67108864)}}var ip=!0;function op(e,t,n,r){var i=I.T;I.T=null;var o=O.p;try{O.p=2,sp(e,t,n,r)}finally{O.p=o,I.T=i}}function ap(e,t,n,r){var i=I.T;I.T=null;var o=O.p;try{O.p=8,sp(e,t,n,r)}finally{O.p=o,I.T=i}}function sp(e,t,n,r){if(ip){var i=lp(r);if(null===i)Hu(e,t,r,cp,n),xp(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return fp=kp(fp,e,t,n,r,i),!0;case"dragenter":return hp=kp(hp,e,t,n,r,i),!0;case"mouseover":return gp=kp(gp,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return mp.set(o,kp(mp.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,vp.set(o,kp(vp.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(xp(e,r),4&t&&-1<yp.indexOf(e)){for(;null!==i;){var o=Ne(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=ge(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-ue(a);s.entanglements[1]|=l,a&=~l}_u(o),!(6&ic)&&(_c=Z()+500,Cu(0))}}break;case 13:null!==(s=zr(o,2))&&jc(s,0,2),Vc(),np(o,2)}if(null===(o=lp(r))&&Hu(e,t,r,cp,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hu(e,t,r,null,n)}}function lp(e){return up(e=zt(e))}var cp=null;function up(e){if(cp=null,null!==(e=je(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cp=e,null}function dp(e){switch(e){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(J()){case ee:return 2;case te:return 8;case ne:case re:return 32;case ie:return 268435456;default:return 32}default:return 32}}var pp=!1,fp=null,hp=null,gp=null,mp=new Map,vp=new Map,bp=[],yp="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 xp(e,t){switch(e){case"focusin":case"focusout":fp=null;break;case"dragenter":case"dragleave":hp=null;break;case"mouseover":case"mouseout":gp=null;break;case"pointerover":case"pointerout":mp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vp.delete(t.pointerId)}}function kp(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=Ne(t))&&rp(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function wp(e){var t=je(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void function(e){var t=O.p;try{return O.p=e,function(){if(13===n.tag){var e=Lc();e=Ce(e);var t=zr(n,e);null!==t&&jc(t,0,e),np(n,e)}}()}finally{O.p=t}}(e.priority)}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Sp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=lp(e.nativeEvent);if(null!==n)return null!==(t=Ne(n))&&rp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function _p(e,t,n){Sp(e)&&n.delete(t)}function Cp(){pp=!1,null!==fp&&Sp(fp)&&(fp=null),null!==hp&&Sp(hp)&&(hp=null),null!==gp&&Sp(gp)&&(gp=null),mp.forEach(_p),vp.forEach(_p)}function Ep(t,n){t.blockedOn===n&&(t.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Cp)))}var Pp=null;function zp(t){Pp!==t&&(Pp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pp===t&&(Pp=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if("function"!=typeof r){if(null===up(r||n))continue;break}var o=Ne(n);null!==o&&(t.splice(e,3),e-=3,za(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Rp(e){function t(t){return Ep(t,e)}null!==fp&&Ep(fp,e),null!==hp&&Ep(hp,e),null!==gp&&Ep(gp,e),mp.forEach(t),vp.forEach(t);for(var n=0;n<bp.length;n++){var r=bp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bp.length&&null===(n=bp[0]).blockedOn;)wp(n),null===n.blockedOn&&bp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Te]||null;if("function"==typeof o)a||zp(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Te]||null)s=a.formAction;else if(null!==up(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Tp(e){this._internalRoot=e}function Ip(e){this._internalRoot=e}Ip.prototype.render=Tp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ep(t.current,Lc(),e,t,null,null)},Ip.prototype.unmount=Tp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Vc(),t[Ie]=null}},Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bp.length&&0!==t&&t<bp[n].priority;n++);bp.splice(n,0,e),0===n&&wp(e)}};var Op=t.version;if("19.1.1"!==Op)throw Error(r(527,Op,"19.1.1"));O.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(i=a.return)){n=i;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return s(a),e;if(l===i)return s(a),t;l=l.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=l;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,i=l;break}if(u===i){c=!0,i=a,n=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===n){c=!0,n=l,i=a;break}if(u===i){c=!0,i=l,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?l(e):null)?null:e.stateNode};var Fp={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ap=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ap.isDisabled&&Ap.supportsFiber)try{se=Ap.inject(Fp),le=Ap}catch(Lp){}}return rs.createRoot=function(e,t){if(!i(e))throw Error(r(299));var n=!1,o="",a=xs,s=ks,l=ws;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Zd(e,1,!1,null,0,n,o,a,s,l,0,null),e[Ie]=t.current,Wu(e),new Tp(t)},rs.hydrateRoot=function(e,t,n){if(!i(e))throw Error(r(299));var o=!1,a="",s=xs,l=ks,c=ws,u=null;return null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Zd(e,1,!0,t,0,o,a,s,l,c,0,u)).context=Jd(null),n=t.current,(a=to(o=Ce(o=Lc()))).callback=null,no(n,a,o),n=o,t.current.lanes=n,we(t,n),_u(t),e[Ie]=t.current,Wu(e),new Ip(t)},rs.version="19.1.1",rs}function vs(){return ds||(ds=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),ns.exports=ms()),ns.exports}const bs=La(vs());function ys(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ks=ys(function(e){return xs.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ws=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ss="-ms-",_s="-moz-",Cs="-webkit-",Es="comm",Ps="rule",zs="decl",Rs="@keyframes",Ts=Math.abs,Is=String.fromCharCode,Os=Object.assign;function Fs(e){return e.trim()}function As(e,t,n){return e.replace(t,n)}function Ms(e,t){return e.indexOf(t)}function Ls(e,t){return 0|e.charCodeAt(t)}function Ds(e,t,n){return e.slice(t,n)}function js(e){return e.length}function Ns(e){return e.length}function $s(e,t){return t.push(e),e}var Bs=1,Ws=1,Vs=0,Hs=0,Us=0,qs="";function Gs(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Bs,column:Ws,length:a,return:""}}function Ys(e,t){return Os(Gs("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xs(){return Us=Hs>0?Ls(qs,--Hs):0,Ws--,10===Us&&(Ws=1,Bs--),Us}function Ks(){return Us=Hs<Vs?Ls(qs,Hs++):0,Ws++,10===Us&&(Ws=1,Bs++),Us}function Qs(){return Ls(qs,Hs)}function Zs(){return Hs}function Js(e,t){return Ds(qs,e,t)}function el(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tl(e){return Bs=Ws=1,Vs=js(qs=e),Hs=0,[]}function nl(e){return qs="",e}function rl(e){return Fs(Js(Hs-1,al(91===e?e+2:40===e?e+1:e)))}function il(e){for(;(Us=Qs())&&Us<33;)Ks();return el(e)>2||el(Us)>3?"":" "}function ol(e,t){for(;--t&&Ks()&&!(Us<48||Us>102||Us>57&&Us<65||Us>70&&Us<97););return Js(e,Zs()+(t<6&&32==Qs()&&32==Ks()))}function al(e){for(;Ks();)switch(Us){case e:return Hs;case 34:case 39:34!==e&&39!==e&&al(Us);break;case 40:41===e&&al(e);break;case 92:Ks()}return Hs}function sl(e,t){for(;Ks()&&e+Us!==57&&(e+Us!==84||47!==Qs()););return"/*"+Js(t,Hs-1)+"*"+Is(47===e?e:Ks())}function ll(e){for(;!el(Qs());)Ks();return Js(e,Hs)}function cl(e){return nl(ul("",null,null,null,[""],e=tl(e),0,[0],e))}function ul(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=i,k=o,w=r,S=y;m;)switch(h=b,b=Ks()){case 40:if(108!=h&&58==Ls(S,d-1)){-1!=Ms(S+=As(rl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=rl(b);break;case 9:case 10:case 13:case 32:S+=il(h);break;case 92:S+=ol(Zs()-1,7);continue;case 47:switch(Qs()){case 42:case 47:$s(pl(sl(Ks(),Zs()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=js(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=As(S,/\f/g,"")),f>0&&js(S)-d&&$s(f>32?fl(S+";",r,n,d-1):fl(As(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if($s(w=dl(S,t,n,c,u,i,s,y,x=[],k=[],d),o),123===b)if(0===u)ul(S,t,w,w,x,o,d,s,k);else switch(99===p&&110===Ls(S,3)?100:p){case 100:case 108:case 109:case 115:ul(e,w,w,r&&$s(dl(e,w,w,0,0,i,s,y,i,x=[],d),k),i,k,d,s,r?x:k);break;default:ul(S,w,w,w,[""],k,0,s,k)}}c=u=f=0,g=v=1,y=S="",d=a;break;case 58:d=1+js(S),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Xs())continue;switch(S+=Is(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(js(S)-1)*v,v=1;break;case 64:45===Qs()&&(S+=rl(Ks())),p=Qs(),u=d=js(y=S+=ll(Zs())),b++;break;case 45:45===h&&2==js(S)&&(g=0)}}return o}function dl(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],f=Ns(p),h=0,g=0,m=0;h<r;++h)for(var v=0,b=Ds(e,d+1,d=Ts(g=a[h])),y=e;v<f;++v)(y=Fs(g>0?p[v]+" "+b:As(b,/&\f/g,p[v])))&&(l[m++]=y);return Gs(e,t,n,0===i?Ps:s,l,c,u)}function pl(e,t,n){return Gs(e,t,n,Es,Is(Us),Ds(e,2,-2),0)}function fl(e,t,n,r){return Gs(e,t,n,zs,Ds(e,0,r),Ds(e,r+1,-1),r)}function hl(e,t){for(var n="",r=Ns(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gl(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zs:return e.return=e.return||e.value;case Es:return"";case Rs:return e.return=e.value+"{"+hl(e.children,r)+"}";case Ps:e.value=e.props.join(",")}return js(n=hl(e.children,r))?e.return=e.value+"{"+n+"}":""}var ml=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},vl=function(e,t,n){for(var r=0,i=0;r=i,i=Qs(),38===r&&12===i&&(t[n]=1),!el(i);)Ks();return Js(e,Hs)},bl=new WeakMap,yl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||bl.get(n))&&!r){bl.set(e,!0);for(var i=[],o=function(e,t){return nl(function(e,t){var n=-1,r=44;do{switch(el(r)){case 0:38===r&&12===Qs()&&(t[n]=1),e[n]+=vl(Hs-1,t,n);break;case 2:e[n]+=rl(r);break;case 4:if(44===r){e[++n]=58===Qs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Is(r)}}while(r=Ks());return e}(tl(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},xl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kl(e,t){switch(function(e,t){return 45^Ls(e,0)?(((t<<2^Ls(e,0))<<2^Ls(e,1))<<2^Ls(e,2))<<2^Ls(e,3):0}(e,t)){case 5103:return Cs+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Cs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cs+e+_s+e+Ss+e+e;case 6828:case 4268:return Cs+e+Ss+e+e;case 6165:return Cs+e+Ss+"flex-"+e+e;case 5187:return Cs+e+As(e,/(\w+).+(:[^]+)/,Cs+"box-$1$2"+Ss+"flex-$1$2")+e;case 5443:return Cs+e+Ss+"flex-item-"+As(e,/flex-|-self/,"")+e;case 4675:return Cs+e+Ss+"flex-line-pack"+As(e,/align-content|flex-|-self/,"")+e;case 5548:return Cs+e+Ss+As(e,"shrink","negative")+e;case 5292:return Cs+e+Ss+As(e,"basis","preferred-size")+e;case 6060:return Cs+"box-"+As(e,"-grow","")+Cs+e+Ss+As(e,"grow","positive")+e;case 4554:return Cs+As(e,/([^-])(transform)/g,"$1"+Cs+"$2")+e;case 6187:return As(As(As(e,/(zoom-|grab)/,Cs+"$1"),/(image-set)/,Cs+"$1"),e,"")+e;case 5495:case 3959:return As(e,/(image-set\([^]*)/,Cs+"$1$`$1");case 4968:return As(As(e,/(.+:)(flex-)?(.*)/,Cs+"box-pack:$3"+Ss+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cs+e+e;case 4095:case 3583:case 4068:case 2532:return As(e,/(.+)-inline(.+)/,Cs+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(js(e)-1-t>6)switch(Ls(e,t+1)){case 109:if(45!==Ls(e,t+4))break;case 102:return As(e,/(.+:)(.+)-([^]+)/,"$1"+Cs+"$2-$3$1"+_s+(108==Ls(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ms(e,"stretch")?kl(As(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ls(e,t+1))break;case 6444:switch(Ls(e,js(e)-3-(~Ms(e,"!important")&&10))){case 107:return As(e,":",":"+Cs)+e;case 101:return As(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cs+(45===Ls(e,14)?"inline-":"")+"box$3$1"+Cs+"$2$3$1"+Ss+"$2box$3")+e}break;case 5936:switch(Ls(e,t+11)){case 114:return Cs+e+Ss+As(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cs+e+Ss+As(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cs+e+Ss+As(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cs+e+Ss+e+e}return e}var wl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zs:e.return=kl(e.value,e.length);break;case Rs:return hl([Ys(e,{value:As(e.value,"@","@"+Cs)})],r);case Ps:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return hl([Ys(e,{props:[As(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return hl([Ys(e,{props:[As(t,/:(plac\w+)/,":"+Cs+"input-$1")]}),Ys(e,{props:[As(t,/:(plac\w+)/,":-moz-$1")]}),Ys(e,{props:[As(t,/:(plac\w+)/,Ss+"input-$1")]})],r)}return""})}}],Sl=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||wl,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,p=[gl,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[yl,xl].concat(o,p),u=Ns(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,hl(cl(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ws({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};const _l=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"}));function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(null,arguments)}var El,Pl,zl,Rl,Tl={exports:{}},Il={};function Ol(){if(El)return Il;El=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Il.AsyncMode=l,Il.ConcurrentMode=c,Il.ContextConsumer=s,Il.ContextProvider=a,Il.Element=t,Il.ForwardRef=u,Il.Fragment=r,Il.Lazy=h,Il.Memo=f,Il.Portal=n,Il.Profiler=o,Il.StrictMode=i,Il.Suspense=d,Il.isAsyncMode=function(e){return x(e)||y(e)===l},Il.isConcurrentMode=x,Il.isContextConsumer=function(e){return y(e)===s},Il.isContextProvider=function(e){return y(e)===a},Il.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Il.isForwardRef=function(e){return y(e)===u},Il.isFragment=function(e){return y(e)===r},Il.isLazy=function(e){return y(e)===h},Il.isMemo=function(e){return y(e)===f},Il.isPortal=function(e){return y(e)===n},Il.isProfiler=function(e){return y(e)===o},Il.isStrictMode=function(e){return y(e)===i},Il.isSuspense=function(e){return y(e)===d},Il.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},Il.typeOf=y,Il}function Fl(){return Pl||(Pl=1,Tl.exports=Ol()),Tl.exports}function Al(){if(Rl)return zl;Rl=1;var e=Fl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return zl=function e(t,r,i){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,i)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=o(t),g=o(r),m=0;m<f.length;++m){var v=f[m];if(!(n[v]||i&&i[v]||g&&g[v]||h&&h[v])){var b=c(r,v);try{a(t,v,b)}catch(y){}}}}return t}}const Ml=La(Al());function Ll(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Dl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},jl=function(e,t,n){Dl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Nl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$l=/[A-Z]|^ms/g,Bl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wl=function(e){return 45===e.charCodeAt(1)},Vl=function(e){return null!=e&&"boolean"!=typeof e},Hl=ys(function(e){return Wl(e)?e:e.replace($l,"-$&").toLowerCase()}),Ul=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Bl,function(e,t,n){return Gl={name:t,styles:n,next:Gl},t})}return 1===Nl[e]||Wl(e)||"number"!=typeof t||0===t?t:t+"px"};function ql(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Gl={name:i.name,styles:i.styles,next:Gl},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Gl={name:a.name,styles:a.styles,next:Gl},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ql(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Vl(s)&&(r+=Hl(o)+":"+Ul(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ql(e,t,a);switch(o){case"animation":case"animationName":r+=Hl(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Vl(a[c])&&(r+=Hl(o)+":"+Ul(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Gl,l=n(e);return Gl=s,ql(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Gl,Yl=/label:\s*([^\s;{]+)\s*(;|$)/g;function Xl(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Gl=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=ql(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=ql(n,t,e[a]),r&&(i+=o[a]);Yl.lastIndex=0;for(var s,l="";null!==(s=Yl.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Gl}}var Kl,Ql,Zl=!!Ja.useInsertionEffect&&Ja.useInsertionEffect,Jl=Zl||function(e){return e()},ec=Zl||Qa.useLayoutEffect,tc=Qa.createContext("undefined"!=typeof HTMLElement?Sl({key:"css"}):null),nc=tc.Provider,rc=function(e){return Qa.forwardRef(function(t,n){var r=Qa.useContext(tc);return e(t,r,n)})},ic=Qa.createContext({}),oc=ml(function(e){return ml(function(t){return function(e,t){return"function"==typeof t?t(e):Cl({},e,t)}(e,t)})}),ac={}.hasOwnProperty,sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Dl(t,n,r),Jl(function(){return jl(t,n,r)}),null},cc=rc(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[sc],o=[r],a="";"string"==typeof e.className?a=Ll(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Xl(o,void 0,Qa.useContext(ic));a+=t.key+"-"+s.name;var l={};for(var c in e)ac.call(e,c)&&"css"!==c&&c!==sc&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Qa.createElement(Qa.Fragment,null,Qa.createElement(lc,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Qa.createElement(i,l))}),uc=cc,dc=function(e,t){var n=arguments;if(null==t||!ac.call(t,"css"))return Qa.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=uc,i[1]=function(e,t){var n={};for(var r in t)ac.call(t,r)&&(n[r]=t[r]);return n[sc]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return Qa.createElement.apply(null,i)};Kl=dc||(dc={}),Ql||(Ql=Kl.JSX||(Kl.JSX={}));var pc=rc(function(e,t){var n=Xl([e.styles],void 0,Qa.useContext(ic)),r=Qa.useRef();return ec(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),ec(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&jl(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function fc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xl(t)}var hc=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i},gc=function(e){var t=e.cache,n=e.serializedArr;return Jl(function(){for(var e=0;e<n.length;e++)jl(t,n[e],!1)}),null},mc=rc(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=Xl(r,t.registered);return n.push(o),Dl(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=Ll(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,hc(n))},theme:Qa.useContext(ic)},o=e.children(i);return Qa.createElement(Qa.Fragment,null,Qa.createElement(gc,{cache:t,serializedArr:n}),o)});const vc=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:nc,ClassNames:mc,Global:pc,ThemeContext:ic,ThemeProvider:function(e){var t=Qa.useContext(ic);return e.theme!==t&&(t=oc(t)(e.theme)),Qa.createElement(ic.Provider,{value:t},e.children)},__unsafe_useEmotionCache:function(){return Qa.useContext(tc)},get createElement(){return dc},css:fc,get jsx(){return dc},keyframes:function(){var e=fc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},useTheme:function(){return Qa.useContext(ic)},withEmotionCache:rc,withTheme:function(e){var t=e.displayName||e.name||"Component",n=Qa.forwardRef(function(t,n){var r=Qa.useContext(ic);return Qa.createElement(e,Cl({theme:r,ref:n},t))});return n.displayName="WithTheme("+t+")",Ml(n,e)}},Symbol.toStringTag,{value:"Module"}));function bc(...e){return function(...t){e.forEach(e=>e?.(...t))}}const yc=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),xc=/^on[A-Z]/;function kc(...e){let t={};for(let n of e){for(let e in t)xc.test(e)&&"function"==typeof t[e]&&"function"==typeof n[e]?t[e]=bc(t[e],n[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==n[e]?n[e]:t[e]:Object.assign({},t[e]??{},n[e]??{}):yc(t[e],n[e]);for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}function wc(e){const t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}const Sc=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" "),_c=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),Cc=e=>"string"==typeof e,Ec=e=>"function"==typeof e,Pc=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};function zc(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,s=Qa.createContext(a);return s.displayName=t,[s.Provider,function e(){const t=Qa.useContext(s);if(!t&&n){const t=new Error(o??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Rc,Tc]=zc({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function Ic(e){const{value:t,children:n}=e;return qa.jsxs(Rc,{value:t,children:[!t._config.disableLayers&&qa.jsx(pc,{styles:t.layers.atRule}),qa.jsx(pc,{styles:t._global}),n]})}const Oc=(e,t)=>((e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]})(e,Ec(t)?t:e=>t.includes(e)),Fc=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ac(e){return"string"==typeof e&&Fc.has(e)}var Mc;const Lc=(Mc=ks).default||Mc,Dc=e=>"theme"!==e;let jc="undefined"!=typeof document;const Nc=({cache:e,serialized:t,isStringTag:n})=>{Dl(e,t,n);const r=Jl(()=>jl(e,t,n));if(!jc&&void 0!==r){let n=t.name,i=t.next;for(;void 0!==i;)n=Sc(n,i.name),i=i.next;return qa.jsx("style",{"data-emotion":Sc(e.key,n),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},$c={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Bc=((e,t={},n={})=>{if(r=$c,i=e,Object.prototype.hasOwnProperty.call(r,i)){n.forwardProps||(n.forwardProps=[]);const t=$c[e];n.forwardProps=Pc([...n.forwardProps,...t])}var r,i;const o=e.__emotion_real===e,a=o&&e.__emotion_base||e;let s,l;void 0!==n&&(s=n.label,l=n.target);let c=[];const u=rc((r,i,s)=>{const{cva:u,isValidProperty:d}=Tc(),p=t.__cva__?t:u(t),f=Hc(e.__emotion_cva,p);var h;!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=(h=n.forwardProps,(e,t)=>!!h.includes(e)||!t?.includes(e)&&!d(e)));const g=((e,t,n)=>{let r;if(t){const n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?t=>e.__emotion_forwardProp(t)&&n(t):n}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r})(e,n,o)||((t,n)=>{const r="string"==typeof e&&e.charCodeAt(0)>96?Lc:Dc,i=!n?.includes(t)&&!d(t);return r(t)&&i}),m=Qa.useMemo(()=>Object.assign({},n.defaultProps,wc(r)),[r]),{props:v,styles:b}=function(e,t,n){const{css:r,isValidProperty:i}=Tc(),{children:o,...a}=e,s=Qa.useMemo(()=>{const[e,r]=Oc(a,e=>n(e,t.variantKeys)),[o,s]=Oc(r,t.variantKeys),[l,c]=Oc(s,i);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:c}},[t.variantKeys,n,a,i]),{css:l,...c}=s.styleProps,u=Qa.useMemo(()=>{const e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:Qa.useMemo(()=>{return r(u,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),c);var e},[r,u,l,c]),props:{...s.forwardedProps,...s.elementProps,children:o}}}(m,f,g);let y="",x=[b],k=v;if(null==v.theme){k={};for(let e in v)k[e]=v[e];k.theme=Qa.useContext(ic)}"string"==typeof v.className?y=Ll(i.registered,x,v.className):null!=v.className&&(y=Sc(y,v.className));const w=Xl(c.concat(x),i.registered,k);w.styles&&(y=Sc(y,`${i.key}-${w.name}`)),void 0!==l&&(y=Sc(y,l));const S=!g("as");let _=S&&v.as||a,C={};for(let e in v)if(!S||"as"!==e){if(Ac(e)){C[e.replace("html","").toLowerCase()]=v[e];continue}g(e)&&(C[e]=v[e])}let E=y.trim();E?C.className=E:Reflect.deleteProperty(C,"className"),C.ref=s;const P=n.forwardAsChild||n.forwardProps?.includes("asChild");if(v.asChild&&!P){const e=Qa.isValidElement(v.children)?Qa.Children.only(v.children):Qa.Children.toArray(v.children).find(Qa.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");_=e.type,C.children=null,Reflect.deleteProperty(C,"asChild"),C=kc(C,e.props),C.ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}(s,function(e){const t=Qa.version;return Cc(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return C.as&&P?(C.as=void 0,qa.jsxs(Qa.Fragment,{children:[qa.jsx(Nc,{cache:i,serialized:w,isStringTag:"string"==typeof _}),qa.jsx(_,{asChild:!0,...C,children:qa.jsx(v.as,{children:C.children})})]})):qa.jsxs(Qa.Fragment,{children:[qa.jsx(Nc,{cache:i,serialized:w,isStringTag:"string"==typeof _}),qa.jsx(_,{...C})]})});return u.displayName=void 0!==s?s:`chakra(${"string"==typeof a?a:a.displayName||a.name||"Component"})`,u.__emotion_real=u,u.__emotion_base=a,u.__emotion_forwardProp=n.shouldForwardProp,u.__emotion_cva=t,Object.defineProperty(u,"toString",{value:()=>`.${l}`}),u}).bind(),Wc=new Map,Vc=new Proxy(Bc,{apply:(e,t,n)=>Bc(...n),get:(e,t)=>(Wc.has(t)||Wc.set(t,Bc(t)),Wc.get(t))}),Hc=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),Uc=Vc("div");Uc.displayName="Box";const qc=Object.freeze({}),Gc=Object.freeze({});function Yc(e){const{key:t,recipe:n}=e,r=(i=t||n.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[o,a]=zc({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(e){const{unstyled:r,...i}=e,o=function(e){const{key:t,recipe:n}=e,r=Tc();return Qa.useMemo(()=>{const e=n||(null!=t?r.getRecipe(t):{});return r.cva(structuredClone(e))},[t,n,r])}({key:t,recipe:i.recipe||n}),[a,s]=Qa.useMemo(()=>o.splitVariantProps(i),[o,i]);return{styles:r?qc:o(a),className:o.className,props:s}}return{withContext:(e,t)=>{const n=Vc(e,{},t),r=Qa.forwardRef((e,t)=>{const r=a(),i=Qa.useMemo(()=>kc(r,e),[e,r]),{styles:o,className:l,props:c}=s(i);return qa.jsx(n,{...c,ref:t,css:[o,i.css],className:Sc(l,i.className)})});return r.displayName=e.displayName||e.name,r},PropsProvider:o,withPropsProvider:function(){return o},usePropsContext:a,useRecipeResult:s}}const Xc=Qa.forwardRef(function(e,t){const{templateAreas:n,column:r,row:i,autoFlow:o,autoRows:a,templateRows:s,autoColumns:l,templateColumns:c,inline:u,...d}=e;return qa.jsx(Vc.div,{...d,ref:t,css:[{display:u?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:l,gridColumn:r,gridRow:i,gridAutoFlow:o,gridAutoRows:a,gridTemplateRows:s,gridTemplateColumns:c},e.css]})});var Kc=e=>"string"==typeof e;Function.prototype.toString.call(Object);var Qc=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})};function Zc(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,s=Qa.createContext(a);return s.displayName=t,[s.Provider,function e(){const t=Qa.useContext(s);if(!t&&n){const t=new Error(o??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Jc]=Zc({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var eu=e=>"object"==typeof e&&null!==e,tu=e=>eu(e)&&9===e.nodeType;function nu(e){return tu(e)?e:(e=>eu(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function ru(e){return(e=>(e=>eu(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e)(e)?ru(e.host):tu(e)?e.defaultView??window:(e=>eu(e)&&1===e.nodeType&&"string"==typeof e.nodeName)(e)?e.ownerDocument?.defaultView??window:window}var iu=new WeakMap,ou=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),au=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,su=e=>{const t={};let n;for(;n=au.exec(e);)t[n[1]]=n[2];return t},lu=(e,t)=>{if(Kc(e)){if(Kc(t))return`${e};${t}`;e=su(e)}else Kc(t)&&(t=su(t));return Object.assign({},e??{},t??{})};function cu(...e){let t={};for(let n of e){if(!n)continue;for(let r in t)r.startsWith("on")&&"function"==typeof t[r]&&"function"==typeof n[r]?t[r]=Qc(n[r],t[r]):t[r]="className"!==r&&"class"!==r?"style"!==r?void 0!==n[r]?n[r]:t[r]:lu(t[r],n[r]):ou(t[r],n[r]);for(let r in n)void 0===t[r]&&(t[r]=n[r]);const e=Object.getOwnPropertySymbols(n);for(let r of e)t[r]=n[r]}return t}function uu(...e){return t=>{const n=[];for(const r of e)if("function"==typeof r){const e=r(t);"function"==typeof e&&n.push(e)}else r&&(r.current=t);if(n.length)return()=>{for(const e of n)e()}}}const du=e=>{const t=Qa.memo(Qa.forwardRef((t,n)=>{const{asChild:r,children:i,...o}=t;if(!r)return Qa.createElement(e,{...o,ref:n},i);if(!Qa.isValidElement(i))return null;const a=Qa.Children.only(i),s=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a);return Qa.cloneElement(a,{...cu(o,a.props),ref:n?uu(n,s):s})}));return t.displayName=e.displayName||e.name,t},pu=(()=>{const e=new Map;return new Proxy(du,{apply:(e,t,n)=>du(n[0]),get(t,n){const r=n;return e.has(r)||e.set(r,du(r)),e.get(r)}})})();var fu=()=>e=>Array.from(new Set(e));const hu=Vc("span"),{withContext:gu}=Yc({key:"text"}),mu=gu("p");function vu(e,t){const n=Tc().normalizeValue(e),r=function(e={}){e.fallback||(e.fallback="base");const t=Tc();let n=!1;const r=t.breakpoints.values.map(({min:t,name:r})=>{const i={breakpoint:r,query:`(min-width: ${t})`,fallback:!n};return r===e.fallback&&(n=!0),i}).filter(({breakpoint:t})=>!!e.breakpoints?.includes(t)),i=r.map(({fallback:e})=>e),o=function(e,t={}){const{fallback:n=[],ssr:r=!0,getWindow:i}=t,o=function(e,t=[]){const n=Qa.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Qa.useInsertionEffect(()=>{n.current=e}),Qa.useCallback((...e)=>n.current?.(...e),t)}(i),a=Array.isArray(e)?e:[e],s=n?.filter(e=>null!=e),[l,c]=Qa.useState(()=>a.map((e,t)=>{if(!r){const{media:t,matches:n}=(i?.()??window).matchMedia(e);return{media:t,matches:n}}return{media:e,matches:!!s[t]}}));return Qa.useEffect(()=>{const e=o()??window;c(t=>{const n=a.map(t=>{const{media:n,matches:r}=e.matchMedia(t);return{media:n,matches:r}});return t.every((e,t)=>e.matches===n[t].matches&&e.media===n[t].media)?t:n});const t=a.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},r=t.map(e=>function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(e,n));return()=>r.forEach(e=>e())},[o]),l.map(e=>e.matches)}(r.map(e=>e.query),{fallback:i,ssr:e.ssr}).lastIndexOf(!0);return r[o]?.breakpoint??e.fallback}({breakpoints:Object.keys(n),...t});return n[r]}var bu=(e,t=[])=>({parts:(...n)=>{if(xu(t))return bu(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>bu(e,[...t,...n]),omit:(...n)=>bu(e,t.filter(e=>!n.includes(e))),rename:e=>bu(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:[`&[data-scope="${yu(e)}"][data-part="${yu(n)}"]`,`& [data-scope="${yu(e)}"][data-part="${yu(n)}"]`].join(", "),attrs:{"data-scope":yu(e),"data-part":yu(n)}}}),{})}),yu=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),xu=e=>0===e.length,ku=bu("collapsible").parts("root","trigger","content","indicator");ku.build(),fu()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var wu=bu("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);wu.build(),fu()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),fu()(["xChannel","yChannel"]),fu()(["channel","orientation"]),fu()(["value","disabled"]),fu()(["value","respectAlpha"]),fu()(["size"]);var Su=bu("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Su.build(),fu()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),fu()(["value","disabled"]);var _u=bu("avatar").parts("root","image","fallback");_u.build(),fu()(["dir","id","ids","onStatusChange","getRootNode"]);var Cu=bu("checkbox").parts("root","label","control","indicator");Cu.build(),fu()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const Eu=Cu.extendWith("group"),[Pu,zu]=Zc({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var Ru=bu("clipboard").parts("root","control","trigger","indicator","input","label");Ru.build(),fu()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),fu()(["copied"]);const Tu=wu.extendWith("view");var Iu=bu("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Iu.build(),fu()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]),fu()(["htmlFor"]),fu()(["id"]),fu()(["item","persistFocus"]);const Ou=Iu.extendWith("empty");var Fu=bu("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Fu.build(),fu()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var Au=bu("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Au.build(),fu()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Mu=bu("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Mu.build();var Lu=e=>{if(!e)return;const t=function(e){return iu.has(e)||iu.set(e,ru(e).getComputedStyle(e)),iu.get(e)}(e),n=ru(e),r=nu(e),i=()=>{requestAnimationFrame(()=>{let n;e.style.height="auto",n="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&n>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),n=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${n}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);const o=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(o,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),i()}});const s=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});s.observe(e);const l=new n.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),r.fonts?.removeEventListener("loadingdone",i),s.disconnect(),l.disconnect()}};const Du=Qa.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=Qa.useRef(null),o=zu(),a=cu(o?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return Qa.useEffect(()=>{if(n)return Lu(i.current)},[n]),qa.jsx(pu.textarea,{...a,ref:uu(t,i)})});Du.displayName="FieldTextarea";const ju=bu("fieldset").parts("root","errorText","helperText","legend");ju.build();var Nu=bu("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Nu.build(),fu()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),fu()(["file","type"]);const $u=e=>{const{value:t,children:n}=e,[r,i]=Qa.useState(),o=Qa.useMemo(()=>()=>{return("function"==typeof(e=t)?e():e)??r?.getRootNode()??document;var e},[t,r]),a=Qa.useMemo(()=>({getRootNode:o,getWindow:()=>ru(o()),getDocument:()=>nu(o())}),[o]);return qa.jsxs(Jc,{value:a,children:[n,!t&&qa.jsx("span",{hidden:!0,ref:i})]})};var Bu=bu("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Bu.build(),fu()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Wu=bu("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");Wu.build(),fu()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),fu()(["node","indexPath"]);var Vu=bu("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Vu.build(),fu()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),fu()(["item","highlightOnHover"]),fu()(["id"]),fu()(["htmlFor"]);const Hu=Vu.extendWith("empty");var Uu=bu("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Uu.build(),fu()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),fu()(["closeOnSelect","disabled","value","valueText"]),fu()(["htmlFor"]),fu()(["id"]),fu()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);var qu=bu("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");qu.build(),fu()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Gu=bu("pinInput").parts("root","label","input","control");Gu.build(),fu()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Yu=bu("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Yu.build(),fu()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var Xu=bu("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Xu.build(),fu()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Ku=bu("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Ku.build(),fu()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Qu=bu("radio-group").parts("root","label","item","itemText","itemControl","indicator");Qu.build(),fu()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),fu()(["value","disabled","invalid"]);var Zu=bu("rating-group").parts("root","label","item","control");Zu.build(),fu()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),fu()(["index"]);var Ju=bu("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Ju.build(),fu()(["dir","getRootNode","ids","id"]);const ed=Qu.rename("segment-group");ed.build();var td=bu("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");td.build(),fu()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),fu()(["item","persistFocus"]),fu()(["id"]),fu()(["htmlFor"]);var nd=bu("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");nd.build(),fu()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),fu()(["index","name"]);var rd=bu("switch").parts("root","label","control","thumb");rd.build(),fu()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var id=bu("tooltip").parts("trigger","arrow","arrowTip","positioner","content");function od(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}id.build(),fu()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);const ad=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function sd(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>sd(e));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=sd(e[n]);return t}function ld(e,t){if(null==t)return e;for(const n of Object.keys(t))if(void 0!==t[n]&&"__proto__"!==n)if(!_c(e[n])&&_c(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&_c(t[n]))ld(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)_c(e[n][r])&&_c(t[n][r])?ld(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function cd(e,...t){for(const n of t)ld(e,n);return e}const ud=e=>null!=e;function dd(e,t,n={}){const{stop:r,getKey:i}=n;return function e(n,o=[]){if(_c(n)||Array.isArray(n)){const a={};for(const[s,l]of Object.entries(n)){const c=i?.(s,l)??s,u=[...o,c];if(r?.(n,u))return t(n,o);const d=e(l,u);ud(d)&&(a[c]=d)}return a}return t(n,o)}(e)}function pd(e,t){return Array.isArray(e)?e.map(e=>ud(e)?t(e):e):_c(e)?dd(e,e=>t(e)):ud(e)?t(e):e}const fd=["value","type","description"],hd=(...e)=>{const t=cd({},...e.map(sd));return t.theme?.tokens&&dd(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!fd.includes(e)).length>0,n=fd.some(t=>null!=e[t]);return t&&n&&(e.DEFAULT||(e.DEFAULT={}),fd.forEach(t=>{var n;null!=e[t]&&((n=e.DEFAULT)[t]||(n[t]=e[t]),delete e[t])})),e},{stop(e){return(t=e)&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(e).some(e=>fd.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase());var t}}),t};function gd(){const e=e=>e;return new Proxy(e,{get:()=>e})}const md=gd(),vd=gd(),bd=/[^a-zA-Z0-9_\u0081-\uffff-]/g,yd=/[A-Z]/g;function xd(e,t={}){const{fallback:n="",prefix:r=""}=t,i=function(e){return e.replace(yd,e=>`-${e.toLowerCase()}`)}(["-",r,(o=e,`${o}`.replace(bd,e=>`\\${e}`))].filter(Boolean).join("-"));var o;return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const kd=(e,t)=>null!=t?`${e}(${t})`:t,wd=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Sd=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),_d=ad("borderColor"),Cd=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Ed=xd("bg-currentcolor"),Pd=e=>e===Ed.ref||"currentBg"===e,zd=e=>({...e("colors"),currentBg:Ed}),Rd={conditions:{hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"},utilities:{background:{values:zd,shorthand:["bg"],transform(e,t){if(Pd(t.raw))return{background:Ed.ref};const n=ad("background")(e,t);return{...n,[Ed.var]:n?.background}}},backgroundColor:{values:zd,shorthand:["bgColor"],transform(e,t){if(Pd(t.raw))return{backgroundColor:Ed.ref};const n=ad("backgroundColor")(e,t);return{...n,[Ed.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:zd,transform:ad("--gradient-from")},gradientTo:{values:zd,transform:ad("--gradient-to")},gradientVia:{values:zd,transform:(e,t)=>({...ad("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:zd,transform:ad("borderColor")},borderTopColor:{values:zd,transform:ad("borderTopColor")},borderBlockStartColor:{values:zd,transform:ad("borderBlockStartColor")},borderBottomColor:{values:zd,transform:ad("borderBottomColor")},borderBlockEndColor:{values:zd,transform:ad("borderBlockEndColor")},borderLeftColor:{values:zd,transform:ad("borderLeftColor")},borderInlineStartColor:{values:zd,shorthand:["borderStartColor"],transform:ad("borderInlineStartColor")},borderRightColor:{values:zd,transform:ad("borderRightColor")},borderInlineEndColor:{values:zd,shorthand:["borderEndColor"],transform:ad("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:zd,transform:ad("color")},fill:{values:zd,transform:ad("fill")},stroke:{values:zd,transform:ad("stroke")},accentColor:{values:zd,transform:ad("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:zd,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":_d(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:zd,transform:ad("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":kd("blur",e)})},brightness:{transform:e=>({"--brightness":kd("brightness",e)})},contrast:{transform:e=>({"--contrast":kd("contrast",e)})},grayscale:{transform:e=>({"--grayscale":kd("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":kd("hue-rotate",wd(e))})},invert:{transform:e=>({"--invert":kd("invert",e)})},saturate:{transform:e=>({"--saturate":kd("saturate",e)})},sepia:{transform:e=>({"--sepia":kd("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":kd("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":kd("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":kd("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":kd("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":kd("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":kd("hue-rotate",wd(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":kd("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":kd("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":kd("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":kd("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:zd,transform:ad("outlineColor")},focusRing:Sd("&:is(:focus, [data-focus])"),focusVisibleRing:Sd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:zd,transform:ad("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>{const r=n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[r]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){const r=n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[r]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:zd,transform:ad("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:zd,transform:ad("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:zd,transform:ad("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:zd,transform:ad("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":wd(e)})},skewY:{transform:e=>({"--skew-y":wd(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:wd(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":wd(e)})},rotateY:{transform:e=>({"--rotate-y":wd(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Cd("all");case"position":return Cd("left, right, top, bottom, inset-inline, inset-block");case"colors":return Cd("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Cd("opacity");case"shadow":return Cd("box-shadow");case"transform":return Cd("transform");case"size":return Cd("width, height");case"backgrounds":return Cd("background, background-color, background-image, background-position");case"common":return Cd("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>Td[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:zd,transform:ad("caretColor")},cursor:{values:"cursor"}}},Td={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Id="".split(","),Od="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat(Id),Fd=new Map(Od.map(e=>[e,!0]));function Ad(e){const t=Object.create(null);return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}var Md,Ld,Dd=/&|@/,jd=Ad(e=>Fd.has(e)||e.startsWith("--")||Dd.test(e));function Nd(e,t){const n={};return dd(e,(e,t)=>{e&&(n[t.join(".")]=e.value)},{stop:t}),n}function $d(){if(Ld)return Md;Ld=1,Md=o,o.default=o,o.stable=c,o.stableStringify=c;var e="[...]",t="[Circular]",n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,a){var l;void 0===a&&(a=i()),s(e,"",0,[],void 0,0,a);try{l=0===r.length?JSON.stringify(e,t,o):JSON.stringify(e,d(t),o)}catch(u){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return l}function a(e,t,i,o){var a=Object.getOwnPropertyDescriptor(o,i);void 0!==a.get?a.configurable?(Object.defineProperty(o,i,{value:e}),n.push([o,i,t,a])):r.push([t,i,e]):(o[i]=e,n.push([o,i,t]))}function s(n,r,i,o,l,c,u){var d;if(c+=1,"object"==typeof n&&null!==n){for(d=0;d<o.length;d++)if(o[d]===n)return void a(t,n,r,l);if(void 0!==u.depthLimit&&c>u.depthLimit)return void a(e,n,r,l);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(e,n,r,l);if(o.push(n),Array.isArray(n))for(d=0;d<n.length;d++)s(n[d],d,d,o,n,c,u);else{var p=Object.keys(n);for(d=0;d<p.length;d++){var f=p[d];s(n[f],f,d,o,n,c,u)}}o.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function c(e,t,o,a){void 0===a&&(a=i());var s,l=u(e,"",0,[],void 0,0,a)||e;try{s=0===r.length?JSON.stringify(l,t,o):JSON.stringify(l,d(t),o)}catch(p){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var c=n.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(r,i,o,s,c,d,p){var f;if(d+=1,"object"==typeof r&&null!==r){for(f=0;f<s.length;f++)if(s[f]===r)return void a(t,r,i,c);try{if("function"==typeof r.toJSON)return}catch(v){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void a(e,r,i,c);if(void 0!==p.edgesLimit&&o+1>p.edgesLimit)return void a(e,r,i,c);if(s.push(r),Array.isArray(r))for(f=0;f<r.length;f++)u(r[f],f,f,s,r,d,p);else{var h={},g=Object.keys(r).sort(l);for(f=0;f<g.length;f++){var m=g[f];u(r[m],m,f,s,r,d,p),h[m]=r[m]}if(void 0===c)return h;n.push([c,i,r]),c[i]=h}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(r.length>0)for(var i=0;i<r.length;i++){var o=r[i];if(o[1]===t&&o[0]===n){n=o[2],r.splice(i,1);break}}return e.call(this,t,n)}}return Md}const Bd=La($d()),Wd=e=>{const t=Object.create(null);return function(...n){const r=n.map(e=>Bd(e)).join("|");return void 0===t[r]&&(t[r]=e(...n)),t[r]}},Vd="px",Hd="em",Ud="rem";function qd(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${Vd}|${Hd}|${Ud}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r?.[1]}function Gd(e=""){if("number"==typeof e)return`${e}px`;const t=qd(e);return t?t===Vd?e:t===Hd||t===Ud?`${16*parseFloat(e)}${Vd}`:void 0:e}function Yd(e=""){const t=qd(e);return t?t===Ud?e:t===Hd?`${parseFloat(e)}${Ud}`:t===Vd?`${parseFloat(e)/16}${Ud}`:void 0:e}function Xd(e){return Yd(parseFloat(Gd(e)??"")-.04+"px")}function Kd({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Qd=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),Zd=Qd("width"),Jd=Qd("height"),ep=e=>({isMin:pp(e.minMax,e.maxMin,e.min),isMax:pp(e.maxMin,e.minMax,e.max)}),{isMin:tp,isMax:np}=ep(Zd),{isMin:rp,isMax:ip}=ep(Jd),op=/print/i,ap=/^print$/i,sp=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,lp=/(\d)/,cp=Number.MAX_VALUE,up={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function dp(e){const t=sp.exec(e)||(tp(e)||rp(e)?lp.exec(e):null);if(!t)return cp;if("0"===t[0])return 0;const n=parseFloat(t[1]),r=t[2];return n*(up[r]||1)}function pp(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}const fp=Wd((e,t)=>{const n=function(e,t){const n=op.test(e),r=ap.test(e),i=op.test(t),o=ap.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}(e,t);if(null!==n)return n;const r=tp(e)||rp(e),i=np(e)||ip(e),o=tp(t)||rp(t),a=np(t)||ip(t);if(r&&a)return-1;if(i&&o)return 1;const s=dp(e),l=dp(t);return s===cp&&l===cp?e.localeCompare(t):s===cp?1:l===cp?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function hp(e){return e.sort(([e],[t])=>fp(e,t))}function gp(e){const t=[],n=[],r={};for(const[a,s]of Object.entries(e))a.startsWith("@media")?t.push([a,s]):a.startsWith("@container")?n.push([a,s]):_c(s)?r[a]=gp(s):r[a]=s;const i=hp(t),o=hp(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const mp=/\s*!(important)?/i;function vp(e){const{transform:t,conditions:n,normalize:r}=e,i=(o=e,Wd(function(...e){return cd({},...function(e){const t=function(...e){return e.filter(e=>_c(e)&&Object.keys(wc(e)).length>0)}(...e);return 1===t.length?t:t.map(e=>o.normalize(e))}(e))}));var o;return Wd(function(...e){const o=i(...e),a=r(o),s=Object.create(null);return dd(a,(e,r)=>{const i=!!Cc(o=e)&&mp.test(o);var o;if(null==e)return;const[a,...l]=n.sort(r).map(n.resolve);i&&(e=(e=>Cc(e)?e.replace(mp,"").trim():e)(e));let c=t(a,e)??Object.create(null);c=dd(c,e=>Cc(e)&&i?`${e} !important`:e,{getKey:e=>n.expandAtRule(e)}),function(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);cd(r,n)}(s,l.flat(),c)}),gp(s)})}const bp=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});const yp={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},xp={reset:0,base:1,tokens:2,recipes:3};const kp=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,wp=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Sp=e=>(e+"").replace(kp,wp),_p=(e,t)=>{let n="",r=0,i="char",o="",a="";const s=[];for(;r<e.length;){const l=e[r];if("{"===l){const i=e.indexOf("}",r);if(-1===i)break;const o=e.slice(r+1,i);n+=t(o)??o,r=i+1;continue}if("token"===i&&","===l){""===e[r]&&r++,i="fallback",s.push(i);const l=t(o);l?.endsWith(")")&&(n+=l.slice(0,-1)),o="",a="";continue}if("fallback"===i&&", var("===a+l){const t=Cp(e.slice(r+1))+r+1,o=e.slice(r+1,t);if(-1===t)break;n+=", var("+o+")",r=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(r++,")"===l){i=s.pop()??i??"char",a+=l;const e=o?t(o)??Sp(o):o;if(a)if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const e=_p(a,t);e&&(a=e.slice(0,-1))}else if(a){const e=t(a);e&&(a=e)}const r=n.at(-1);a?r?.trim()?n+=e.slice(0,-1)+", "+a+")":n+=a:n+=e||")",o="",a="",i="char";continue}"token"===i&&(o+=l),"fallback"===i&&(a+=l);continue}const c=e.indexOf("token(",r);if(-1!==c){const t=c+6;n+=e.slice(r,c),r=t,i="token",s.push(i);continue}n+=l,r++}return n},Cp=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if("("===r)n.push(r);else if(")"===r&&(n.pop(),0===n.length))return t;t++}return t};function Ep(e){const t={};return e.forEach((e,n)=>{e instanceof Map?t[n]=Object.fromEntries(e):t[n]=e}),t}const Pp=/({([^}]*)})/g,zp=/[{}]/g,Rp=/\w+\.\w+/,Tp=e=>{if(!Cc(e))return[];const t=e.match(Pp);return t?t.map(e=>e.replace(zp,"")).map(e=>e.trim()):[]};function Ip(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((e,n)=>{const r=t[n];if(r.extensions.conditions)return e;const i=Ip(r);return e.replace(`{${n}}`,i)},e.value),delete e.extensions.references,e.value}function Op(e){return _c(e)&&e.reference?e.reference:String(e)}const Fp=(e,...t)=>t.map(Op).join(` ${e} `).replace(/calc/g,""),Ap=(...e)=>`calc(${Fp("+",...e)})`,Mp=(...e)=>`calc(${Fp("-",...e)})`,Lp=(...e)=>`calc(${Fp("*",...e)})`,Dp=(...e)=>`calc(${Fp("/",...e)})`,jp=e=>{const t=Op(e);return null==t||Number.isNaN(parseFloat(t))?Lp(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Np=Object.assign(e=>({add:(...t)=>Np(Ap(e,...t)),subtract:(...t)=>Np(Mp(e,...t)),multiply:(...t)=>Np(Lp(e,...t)),divide:(...t)=>Np(Dp(e,...t)),negate:()=>Np(jp(e)),toString:()=>e.toString()}),{add:Ap,subtract:Mp,multiply:Lp,divide:Dp,negate:jp}),$p={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const n=e.path.slice(),a=r(n,t);if(Cc(e.value)&&"0rem"===e.value)return;const s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:n}),s.value=Np.negate(a.ref);const l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),o(s)})}},Bp=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Wp={enforce:"post",transform(e){e.allTokens.filter(e=>Bp.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:Gd(e.value)})})}},Vp=[$p,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:e})=>"colors"===e.category),o=new Map,a=new Map;i.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{o.set(r(e),e)}),t.roots.forEach(n=>{const i=r(n),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===n.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const i=n.concat(e);o.set(r(i),[])}}))}),o.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),i=r(t),o=r(t.slice(1));n({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:o,virtual:!0}},"pre")})}},Wp,{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],Hp=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions;return{cssVar:r((i?o:e.path).filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,i=Tp(e.value);return i.length?(i.forEach(t=>{const i=r(t.split("."),n);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value):e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),0===n.length){const t=[...e.path];t.shift(),n=t}if(0===n.length)return{};const r=n.reduce((e,t,n,r)=>{const i=r.slice(0,n+1);return e.push(i),e},[]),i=n[0],o=t.formatTokenName(n),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,n,r)=>(e.push(r.slice(n)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:o,roots:r,keys:a}}}}],Up=e=>_c(e)&&Object.prototype.hasOwnProperty.call(e,"value");function qp(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=e=>e.join("."),a=[],s=new Map,l=new Map,c=new Map,u=new Map,d=new Map,p=new Map,f=new Map,h=new Map,g=[];function m(e,t){a.push(e),s.set(e.name,e),t&&h.forEach(n=>{n.enforce===t&&C(n,e)})}const v=function(e){return e?{breakpoints:pd(e,e=>({value:e})),sizes:Object.fromEntries(Object.entries(e).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}}}(i),b=wc({...n,breakpoints:v.breakpoints,sizes:{...n.sizes,...v.sizes}});function y(e){return s.get(e)}let x={};const k=Wd((e,t)=>d.get(e)??t),w=Wd(e=>x[e]||null),S=Wd(e=>_p(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,n]=e.split("/");if(!t||!n)return{invalid:!0,value:t};const r=k(t),i=y(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:t};const o=r??t;return{invalid:!1,color:o,value:`color-mix(in srgb, ${o} ${i?100*Number(i)+"%":`${n}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return k(e)||(Rp.test(e)?Sp(e):e)})),_={prefix:t,allTokens:a,tokenMap:s,registerToken:m,getByName:y,formatTokenName:o,formatCssVar:(e,t)=>xd(e.join("-"),{prefix:t}),flatMap:d,cssVarMap:c,categoryMap:f,colorPaletteMap:u,getVar:k,getCategoryValues:w,expandReferenceInValue:S};function C(e,t){if(t.extensions.references)return;if(Ec(e.match)&&!e.match(t))return;const n=(r=t,e.transform(r,_));var r;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,n);break;case"value"===e.type:t.value=n;break;default:t[e.type]=n}}function E(e){g.forEach(t=>{t.enforce===e&&t.transform(_)})}function P(e){h.forEach(t=>{t.enforce===e&&a.forEach(e=>{C(t,e)})})}return dd(b,(e,t)=>{const n=t.includes("DEFAULT"),r=(t=Gp(t))[0],i=o(t),a=Cc(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:r,prop:o(t.slice(1))}};n&&(s.extensions.default=!0),m(s)},{stop:Up}),dd(r,(e,t)=>{const n=t.includes("DEFAULT"),r=(t=Yp(Gp(t)))[0],i=o(t),a=Cc(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:r,conditions:a.value,condition:"base",prop:o(t.slice(1))}};n&&(s.extensions.default=!0),m(s)},{stop:Up}),function(...e){e.forEach(e=>{h.set(e.name,e)})}(...Hp),function(...e){g.push(...e)}(...Vp),E("pre"),P("pre"),a.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return dd(t,(t,r)=>{const i=Yp(r);if(!i.length)return;const o=structuredClone(e);o.value=t,o.extensions.condition=i.join(":"),n.push(o)}),n}(e);t&&0!==t.length&&t.forEach(e=>{m(e)})}),a.forEach(e=>{if(t=e.value,!Pp.test(t))return;var t;const n=function(e){return Tp(e).map(e=>y(e)).filter(Boolean)}(e.value);e.extensions.references=n.reduce((e,t)=>(e[t.name]=t,e),{})}),a.forEach(e=>{Ip(e)}),E("post"),P("post"),a.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:n}=e.extensions;t&&(f.has(t)||f.set(t,new Map),f.get(t).set(n,e))}(e),function(e){const{condition:t,negative:n,virtual:r,cssVar:i}=e.extensions;!n&&!r&&t&&i&&(c.has(t)||c.set(t,new Map),c.get(t).set(i.var,e.value))}(e),function(e){const{category:t,prop:n,cssVar:r,negative:i}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const o=i?e.extensions.conditions?e.originalValue:e.value:r.ref;p.get(t).set(n,o),d.set([t,n].join("."),o)}(e),function(e){const{colorPalette:t,virtual:n,default:r}=e.extensions;t&&!n&&t.roots.forEach(n=>{const i=o(n);u.has(i)||u.set(i,new Map);const a=function(e,t){const n=e.findIndex((n,r)=>t.every((t,n)=>e[r+n]===t));return-1===n||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}([...e.path],[...n]),s=y(o(a));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(u.get(i).set(l,e.extensions.cssVar.ref),r&&1===n.length){const r=y(o(["colors","colorPalette"]));if(!r)return;const i=y(o(e.path));if(!i)return;const a=t.keys[0]?.filter(Boolean);if(!a.length)return;const s=o(n.concat(a));u.has(s)||u.set(s,new Map),u.get(s).set(r.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),x=Ep(p),_}function Gp(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function Yp(e){return e.filter(e=>"base"!==e)}var Xp;Xp=["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"],Array.from(new Set(Xp));const Kp={};function Qp(...e){const t=hd(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=function(e){const t=e.layers??yp,n=Object.values(t).sort((e,t)=>xp[e]-xp[t]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(n,r){if(e.disableLayers)return r;const i=t[n];return{[`@layer ${i}`]:r}}}}(t),c=qp({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:a}),u=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],n,r)=>{let i=null;return n<=r.length-1&&(i=r[n+1]?.[1]),null!=i&&(i=Xd(i)),[e,{name:e,min:Yd(t),max:i}]})}(e),n=Object.fromEntries(t);function r(e){return n[e]}function i(e){return Kd(r(e))}const o=function(){const e=function(){const e=Object.keys(n),t=function(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}(e),o=e.flatMap(e=>{const t=r(e),n=[`${e}Down`,Kd({max:Xd(t.min)})];return[[e,Kd({min:t.min})],[`${e}Only`,i(e)],n]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const n=r(e),i=r(t);return[`${e}To${o=t,o.charAt(0).toUpperCase()+o.slice(1)}`,Kd({min:n.min,max:Xd(i.min)})];var o}));return Object.fromEntries(o)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(n),only:i,keys:function(){return["base",...Object.keys(n)]},conditions:o,getCondition:e=>o[e],up:function(e){return Kd({min:r(e).min})},down:function(e){return Kd({max:Xd(r(e).min)})}}}(n.breakpoints??Kp),d=(e=>{const{breakpoints:t,conditions:n={}}=e,r=(i=n,o=(e,t)=>[`_${e}`,t],Object.fromEntries(Object.entries(i).map(([e,t])=>o(e,t))));var i,o;const a=Object.assign({},r,t.conditions);function s(){return Object.keys(a)}function l(e){return s().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:s,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{const n=l(e),r=l(t);return n&&!r?1:!n&&r?-1:0})},has:l,resolve:function(e){return Reflect.get(a,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??Kp,breakpoints:u}),p=function(e){const t=(n=e.config,Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t])));var n;const r=e.tokens,i=new Map,o=new Map;function a(e,n){t[e]=n,s(e,n)}const s=(e,t)=>{const n=u(t);n&&(o.set(e,n),c(e,t))},l=new Map,c=(e,t)=>{if(!t)return;const n=u(t,e=>`type:Tokens["${e}"]`);if("object"==typeof n&&n.type)return void l.set(e,new Set([`type:${n.type}`]));if(n){const t=new Set(Object.keys(n));l.set(e,t)}const r=l.get(e)??new Set;t.property&&l.set(e,r.add(`CssProperties["${t.property}"]`))},u=(e,t)=>{const{values:n}=e,i=e=>{const n=t?.(e);return n?{[n]:n}:void 0};return Cc(n)?i?.(n)??r.getCategoryValues(n)??{}:Array.isArray(n)?n.reduce((e,t)=>(e[t]=t,e),{}):Ec(n)?n(t?i:r.getCategoryValues):n},d=Wd((e,t)=>({[e]:e.startsWith("--")?r.getVar(t,t):t})),p=Object.assign(r.getVar,{raw:e=>r.getByName(e)}),f=Wd((e,n)=>{const i=g(e);Cc(n)&&!n.includes("_EMO_")&&(n=r.expandReferenceInValue(n));const a=t[i];if(!a)return d(i,n);const s=o.get(i)?.[n];return a.transform?a.transform(s??n,{raw:n,token:p,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||"currentBg"===n)return{invalid:!0,value:n};const i=t(`colors.${n}`),o=t.raw(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const a=i??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${o?100*Number(o)+"%":`${r}%`}, transparent)`}})(e,p)}}):d(e,s??n)});(()=>{for(const[e,n]of Object.entries(t)){const{shorthand:t}=n??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>i.set(t,e))}})(),(()=>{const e=Ep(r.colorPaletteMap);a("colorPalette",{values:Object.keys(e),transform:Wd(t=>e[t])})})(),(()=>{for(const[e,n]of Object.entries(t))n&&s(e,n)})(),(()=>{for(const[e,n]of Object.entries(t))n&&c(e,n)})();const h=i.size>0,g=Wd(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:h,transform:f,shorthands:i,resolveShorthand:g,register:a,getTypes:()=>{const e=new Map;for(const[t,n]of l.entries()){if(0===n.size){e.set(t,["string"]);continue}const r=Array.from(n).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,r)}return e},addPropertyType:(e,t)=>{const n=l.get(e)??new Set;l.set(e,new Set([...n,...t]))}}}({config:r,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:r}=n,i=wc({textStyle:e,layerStyle:t,animationStyle:r});for(const[n,o]of Object.entries(i)){const e=Nd(o??Kp,Zp);p.register(n,{values:Object.keys(e),transform:t=>b(e[t])})}}(),p.addPropertyType("animationName",Object.keys(n.keyframes??Kp));const f=new Set(["css",...p.keys(),...d.keys()]),h=Wd(e=>f.has(e)||jd(e)),g=e=>Array.isArray(e)?e.reduce((e,t,n)=>{const r=d.breakpoints[n];return null!=t&&(e[r]=t),e},{}):e,m=function(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(e){return dd(e,n,{stop:e=>Array.isArray(e),getKey:r?i:void 0})}}({utility:p,normalize:g}),v=function(e){const{conditions:t,isValidProperty:n}=e;return function(e){return dd(e,e=>e,{getKey:(e,r)=>_c(r)?t.has(e)||n(e)?e:function(e){const t=[];let n=0,r="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];"\\"!==a||i?i?(i=!1,r+=a):("("===a?n++:")"===a&&n--,","===a&&0===n?(t.push(r.trim()),r=""):r+=a):(i=!0,r+=a)}return r&&t.push(r.trim()),t}(e).map(e=>"&"+e).join(", "):e})}}({conditions:d,isValidProperty:h}),b=vp({transform:p.transform,conditions:d,normalize:m}),y=function(e){const{css:t,conditions:n,normalize:r,layers:i}=e;return function o(a={}){const{base:s,variants:l,defaultVariants:c,compoundVariants:u}=bp(a),d=vp({conditions:n,normalize:r,transform:(e,t)=>l[e]?.[t]}),p=(e={})=>{const n=r({...c,...wc(e)});let o={...s};cd(o,d(n));const a=function(e,n){let r={};return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>n[e]===t))&&(r=t(r,e.css))}),r}(u,n);return i.wrap("recipes",t(o,a))},f=Object.keys(l),h=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(p(e)),{className:a.className,__cva__:!0,variantMap:h,variantKeys:f,raw:p,config:a,splitVariantProps:e=>{const t=od(e,["recipe"]),[n,r]=Oc(t,f);return f.includes("colorPalette")||(n.colorPalette=e.colorPalette||c.colorPalette),f.includes("orientation")&&(r.orientation=e.orientation),[n,r]},merge(t){return o(function(e){const{css:t}=e;return function(e,n){const r=bp(n.config),i=Pc(e.variantKeys,Object.keys(n.variants)),o=t(e.base,r.base),a=Object.fromEntries(i.map(n=>[n,t(e.config.variants[n],r.variants[n])])),s=cd(e.config.defaultVariants,r.defaultVariants),l=[...e.compoundVariants,...r.compoundVariants];return{className:Sc(e.className,n.className),base:o,variants:a,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:d,normalize:m,layers:l}),x=function(e){const{cva:t}=e;return function(e={}){const n=Object.entries(((e={})=>{const t=t=>{return{base:e.base?.[t]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(n=e.compoundVariants,r=t,n.filter(e=>e.css[r]).map(e=>({...e,css:e.css[r]}))):[]};var n,r},n=(e.slots??[]).map(e=>[e,t(e)]);for(const[r,i]of Object.entries(e.variants??{}))for(const[e,t]of Object.entries(i))n.forEach(([n,i])=>{var o;(o=i.variants)[r]??(o[r]={}),i.variants[r][e]=t[n]??{}});return Object.fromEntries(n)})(e)).map(([e,n])=>[e,t(n)]),r=e.variants??{},i=Object.keys(r),o=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)]));let a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=n.map(([t,n])=>[t,n(e)]);return Object.fromEntries(t)},{variantMap:o,variantKeys:i,splitVariantProps:function(t){const n=od(t,["recipe"]),[r,o]=Oc(n,i);return i.includes("colorPalette")||(r.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(o.orientation=t.orientation),[r,o]},classNameMap:a})}}({cva:y});function k(){const e={};for(const[t,n]of c.cssVarMap.entries()){const r=Object.fromEntries(n);if(0===Object.keys(r).length)continue;const i="base"===t?o:d.resolve(t),a=i.startsWith("@");cd(e,b(v({[i]:a?{[o]:r}:r})))}return l.wrap("tokens",e)}function w(){const e=Object.fromEntries(Object.entries(n.keyframes??Kp).map(([e,t])=>[`@keyframes ${e}`,t])),t=Object.assign({},e,b(v(i)));return l.wrap("base",t)}function S(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=_c(t)?t:{};let i="";n&&"parent"===r?i=`${n} `:n&&"element"===r&&(i=`&${n}`);const o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if("element"===r){const e=Object.entries(o).reduce((e,[t,n])=>(e[t]={[i]:n},e),{});Object.assign(a,e)}else i?a[i]=o:Object.assign(a,o);return a}({preflight:s});return l.wrap("reset",e)}const _=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:n,virtual:r,conditions:i}=e.extensions,o=i||r?n.ref:e.value;t.set(e.name,{value:o,variable:n.ref})}),t}(c),C=(e,t)=>_.get(e)?.value||t;function E(e){return Object.hasOwnProperty.call(n.recipes??Kp,e)}function P(e){return Object.hasOwnProperty.call(n.slotRecipes??Kp,e)}C.var=(e,t)=>_.get(e)?.variable||t;const z=[S(),w(),k()],R={layerStyles:Jp(n.layerStyles??Kp),textStyles:Jp(n.textStyles??Kp),animationStyles:Jp(n.animationStyles??Kp),tokens:ef(c,Object.keys(n.tokens??Kp),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:ef(c,Object.keys(n.semanticTokens??Kp),e=>!!e.extensions.conditions),keyframes:tf(n.keyframes??Kp),breakpoints:tf(n.breakpoints??Kp)};return{$$chakra:!0,_config:t,_global:z,breakpoints:u,tokens:c,conditions:d,utility:p,token:C,properties:f,layers:l,isValidProperty:h,splitCssProps:function(e){return Oc(e,h)},normalizeValue:g,getTokenCss:k,getGlobalCss:w,getPreflightCss:S,css:b,cva:y,sva:x,getRecipe:function(e,t){return n.recipes?.[e]??t},getSlotRecipe:function(e,t){return n.slotRecipes?.[e]??t},hasRecipe:function(e){return E(e)||P(e)},isRecipe:E,isSlotRecipe:P,query:R}}const Zp=e=>_c(e)&&"value"in e,Jp=e=>({list:()=>Object.keys(Nd(e,Zp)),search(e){return this.list().filter(t=>t.includes(e))}}),ef=(e,t,n)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,r])=>(n(r,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),tf=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),nf="var(--chakra-empty,/*!*/ /*!*/)",rf={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":nf,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,nf])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,nf])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}},of={className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}},af={className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},{variants:sf,defaultVariants:lf}=of,cf={className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}},uf={className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}},df={className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}},pf={badge:of,button:{className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:sf,defaultVariants:lf},container:{className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}},heading:{className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}},input:uf,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:uf.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}},kbd:{className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}},link:{className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}},mark:{className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}},separator:{className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}},skeleton:{className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}},skipNavLink:{className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}},spinner:{className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}},textarea:{className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}},icon:{className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}},checkmark:af,radiomark:df,colorSwatch:cf},ff=vd.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),hf=vd.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),gf=vd.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),mf=Su.extendWith("itemBody"),vf=bu("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),bf=bu("alert").parts("title","description","root","indicator","content"),yf=bu("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),xf=bu("blockquote").parts("root","icon","content","caption"),kf=bu("card").parts("root","header","body","footer","title","description"),wf=bu("checkbox-card",["root","control","label","description","addon","indicator","content"]),Sf=bu("data-list").parts("root","item","itemLabel","itemValue"),_f=Fu.extendWith("header","body","footer","backdrop"),Cf=Fu.extendWith("header","body","footer","backdrop"),Ef=Au.extendWith("textarea"),Pf=bu("empty-state",["root","content","indicator","title","description"]),zf=Mu.extendWith("requiredIndicator"),Rf=ju.extendWith("content"),Tf=Nu.extendWith("itemContent","dropzoneContent","fileText"),If=bu("list").parts("root","item","indicator"),Of=Uu.extendWith("itemCommand"),Ff=bu("select").parts("root","field","indicator"),Af=Yu.extendWith("header","body","footer"),Mf=Qu.extendWith("itemAddon","itemIndicator"),Lf=Mf.extendWith("itemContent","itemDescription"),Df=Zu.extendWith("itemIndicator"),jf=td.extendWith("indicatorGroup"),Nf=Ou.extendWith("indicatorGroup","empty"),$f=nd.extendWith("markerIndicator"),Bf=bu("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Wf=bu("status").parts("root","indicator"),Vf=bu("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Hf=rd.extendWith("indicator"),Uf=bu("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),qf=bu("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Gf=bu("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Yf=bu("tag").parts("root","label","closeTrigger","startElement","endElement"),Xf=bu("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Kf=Tu.extendWith("channelText"),Qf=bu("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Ru.extendWith("valueText");const Zf=Hu,Jf={className:"chakra-accordion",slots:mf.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}},eh={className:"chakra-action-bar",slots:vf.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}},th={slots:bf.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}},nh={slots:_u.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}},rh={className:"chakra-blockquote",slots:xf.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}},ih={className:"chakra-breadcrumb",slots:yf.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}},oh={className:"chakra-card",slots:kf.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}},ah={slots:Eu.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:af.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:af.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:af.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:af.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:af.variants?.size?.lg}},variant:{outline:{control:af.variants?.variant?.outline},solid:{control:af.variants?.variant?.solid},subtle:{control:af.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},sh={slots:wf.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:af.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:af.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:af.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:af.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:af.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:af.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:af.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:af.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},lh={slots:Qf.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}},ch={slots:ku.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}},uh={className:"colorPicker",slots:Kf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...cf.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...uf.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:uf.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:uf.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:uf.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:uf.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:uf.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:uf.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:uf.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:uf.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:uf.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},dh={className:"chakra-combobox",slots:Nf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}},ph={slots:Sf.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}},fh={slots:_f.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}},hh={slots:Cf.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}},gh={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},mh={slots:Ef.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...gh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...gh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}},vh={slots:Pf.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}},bh={className:"chakra-field",slots:zf.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}},yh={className:"fieldset",slots:Rf.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}},xh={className:"chakra-file-upload",slots:Tf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}},kh={className:"chakra-hover-card",slots:Bu.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},wh={className:"chakra-list",slots:If.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}},Sh={className:"chakra-listbox",slots:Zf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}},_h={className:"chakra-menu",slots:Of.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}},Ch={className:"chakra-select",slots:jf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}},Eh={className:"chakra-native-select",slots:Ff.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:Ch.variants?.variant.outline.trigger},subtle:{field:Ch.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:Ch.defaultVariants};function Ph(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const zh={display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}},Rh={className:"chakra-number-input",slots:qu.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...uf.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...zh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...zh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:uf.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:uf.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:uf.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:uf.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ph(uf.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}},{variants:Th,defaultVariants:Ih}=uf,Oh={className:"chakra-pin-input",slots:Gu.keys(),base:{input:{...uf.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ph(Th.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ph(Th.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Ih},Fh={className:"chakra-popover",slots:Af.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}},Ah={slots:Xu.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}},Mh={className:"chakra-progress-circle",slots:Xu.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}},Lh={slots:Ku.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}},Dh={className:"chakra-radio-card",slots:Lf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:df.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:df.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:df.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:df.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:df.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:df.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:df.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:df.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}},jh={className:"chakra-radio-group",slots:Mf.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:df.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:df.variants?.variant?.outline},subtle:{itemControl:df.variants?.variant?.subtle},solid:{itemControl:df.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:df.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:df.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:df.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:df.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},Nh={className:"chakra-rating-group",slots:Df.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}},$h={className:"chakra-scroll-area",slots:Ju.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}},Bh={className:"chakra-segment-group",slots:ed.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}},Wh={className:"chakra-slider",slots:$f.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}},Vh={className:"chakra-stat",slots:Bf.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}},Hh={className:"chakra-status",slots:Wf.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}},Uh={className:"chakra-steps",slots:Vf.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}},qh={slots:Hf.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}},Gh={className:"chakra-table",slots:Uf.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}},Yh={slots:Gf.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},Xh=of.variants?.variant,Kh={slots:Yf.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:Xh?.subtle},solid:{root:Xh?.solid},outline:{root:Xh?.outline},surface:{root:Xh?.surface}}},defaultVariants:{size:"md",variant:"surface"}},Qh={slots:Xf.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}},Zh={display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}},Jh={flex:"1"},eg={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},tg={_selected:{layerStyle:"fill.solid"}},ng={accordion:Jf,actionBar:eh,alert:th,avatar:nh,blockquote:rh,breadcrumb:ih,card:oh,checkbox:ah,checkboxCard:sh,codeBlock:lh,collapsible:ch,dataList:ph,dialog:fh,drawer:hh,editable:mh,emptyState:vh,field:bh,fieldset:yh,fileUpload:xh,hoverCard:kh,list:wh,listbox:Sh,menu:_h,nativeSelect:Eh,numberInput:Rh,pinInput:Oh,popover:Fh,progress:Ah,progressCircle:Mh,radioCard:Dh,radioGroup:jh,ratingGroup:Nh,scrollArea:$h,segmentGroup:Bh,select:Ch,combobox:dh,slider:Wh,stat:Vh,steps:Uh,switch:qh,table:Gh,tabs:Yh,tag:Kh,toast:{slots:qf.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}},tooltip:{slots:id.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}},status:Hh,timeline:Qh,colorPicker:uh,qrCode:Lh,treeView:{slots:Wu.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Zh,item:Zh,itemText:Jh,branchText:Jh,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:eg,item:eg},solid:{branchControl:tg,item:tg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},rg=md.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),ig=md.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),og=md.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),ag=md.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),sg=md.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),lg=md.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),cg=md.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),ug=md.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),dg=md.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),pg=md.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),fg='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',hg=md.fonts({heading:{value:`Inter, ${fg}`},body:{value:`Inter, ${fg}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),gg=md.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),mg=md.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),vg=md.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),bg=md.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),yg=md.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),xg=md.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),kg=md.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),wg=md.sizes({...yg,...bg,...kg,...xg}),Sg=md.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),_g=hd(Rd,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:rf,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}},tokens:{aspectRatios:ig,animations:rg,blurs:og,borders:ag,colors:sg,durations:cg,easings:ug,fonts:hg,fontSizes:dg,fontWeights:pg,letterSpacings:gg,lineHeights:mg,radii:vg,spacing:bg,sizes:wg,zIndex:Sg,cursor:lg},semanticTokens:{colors:ff,shadows:gf,radii:hf},recipes:pf,slotRecipes:ng,textStyles:{"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}},layerStyles:{"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}},animationStyles:{"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}}});function Cg(e,t){const n=Tc();return Qa.useMemo(()=>(Array.isArray(t)?t:[t]).map(t=>n.token(`${e}.${t}`,t)),[n,e,t])}Qp(_g);const Eg=Vc("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Eg.displayName="AbsoluteCenter";const{withContext:Pg}=Yc({key:"badge"}),zg=Pg("span"),{withContext:Rg}=Yc({key:"spinner"}),Tg=Rg("span"),Ig=Qa.forwardRef(function(e,t){const{spinner:n=qa.jsx(Tg,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:r="start",children:i,text:o,visible:a=!0,...s}=e;return a?o?qa.jsxs(hu,{ref:t,display:"contents",...s,children:["start"===r&&n,o,"end"===r&&n]}):n?qa.jsxs(hu,{ref:t,display:"contents",...s,children:[qa.jsx(Eg,{display:"inline-flex",children:n}),qa.jsx(hu,{visibility:"hidden",display:"contents",children:i})]}):qa.jsx(hu,{ref:t,display:"contents",...s,children:i}):i}),{useRecipeResult:Og,usePropsContext:Fg}=Yc({key:"button"}),Ag=Qa.forwardRef(function(e,t){const n=Fg(),r=Qa.useMemo(()=>kc(n,e),[n,e]),i=Og(r),{loading:o,loadingText:a,children:s,spinner:l,spinnerPlacement:c,...u}=i.props;return qa.jsx(Vc.button,{type:"button",ref:t,...u,"data-loading":(d=o,d?"":void 0),disabled:o||u.disabled,className:Sc(i.className,r.className),css:[i.styles,r.css],children:!r.asChild&&o?qa.jsx(Ig,{spinner:l,text:a,spinnerPlacement:c,children:s}):s});var d}),Mg=Qa.forwardRef(function(e,t){return qa.jsx(Ag,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})}),Lg=Qa.forwardRef(function(e,t){const{direction:n="column",align:r,justify:i,gap:o="0.5rem",wrap:a,children:s,separator:l,className:c,...u}=e,d=Qa.useMemo(()=>function(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":pd(n,e=>r[e])}}({gap:o,direction:n}),[o,n]),p=Qa.useMemo(()=>Qa.isValidElement(l)?function(e){return Qa.Children.toArray(e).filter(e=>Qa.isValidElement(e))}(s).map((e,t,n)=>{const r=void 0!==e.key?e.key:t,i=l,o=Qa.cloneElement(i,{css:[d,i.props.css]});return qa.jsxs(Qa.Fragment,{children:[e,t===n.length-1?null:o]},r)}):s,[s,l,d]);return qa.jsx(Vc.div,{ref:t,display:"flex",alignItems:r,justifyContent:i,flexDirection:n,flexWrap:a,gap:l?void 0:o,className:Sc("chakra-stack",c),...u,children:p})}),{useRecipeResult:Dg}=Yc({key:"icon"}),jg=Qa.forwardRef(function(e,t){const{styles:n,className:r,props:i}=Dg({asChild:!e.as,...e});return qa.jsx(Vc.svg,{ref:t,focusable:!1,"aria-hidden":"true",...i,css:[n,e.css],className:Sc(r,e.className)})});function Ng(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=Qa.Children.toArray(e.path),a=Qa.forwardRef((e,r)=>qa.jsx(jg,{ref:r,asChild:!1,viewBox:t,...i,...e,children:o.length?o:qa.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const $g=Qa.forwardRef(function(e,t){const{direction:n,align:r,justify:i,wrap:o,basis:a,grow:s,shrink:l,inline:c,...u}=e;return qa.jsx(Vc.div,{ref:t,...u,css:{display:c?"inline-flex":"flex",flexDirection:n,alignItems:r,justifyContent:i,flexWrap:o,flexBasis:a,flexGrow:s,flexShrink:l,...e.css}})}),Bg=Qa.forwardRef(function(e,t){const{align:n,fit:r="cover",...i}=e;return qa.jsx(Vc.img,{ref:t,objectFit:r,objectPosition:n,className:Sc("chakra-image",e.className),...i})}),{withContext:Wg}=Yc({key:"link"}),Vg=Wg("a"),Hg=Qa.forwardRef(function(e,t){const{columns:n,minChildWidth:r,...i}=e,o=Tc(),a=r?function(e,t){return pd(e,e=>{const n=t.tokens.getVar(`sizes.${e}`,"number"==typeof(r=e)?`${r}px`:r);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(r,o):pd(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return qa.jsx(Xc,{ref:t,templateColumns:a,...i})}),Ug=Qa.forwardRef(function(e,t){return qa.jsx(Lg,{align:"center",...e,direction:"row",ref:t})}),qg=Qa.forwardRef(function(e,t){return qa.jsx(Lg,{align:"center",...e,direction:"column",ref:t})}),{StylesProvider:Gg,ClassNamesProvider:Yg,useRecipeResult:Xg,withContext:Kg}=(()=>{const{key:e,recipe:t}={key:"table"},n=(r=e||t.className||"Component").charAt(0).toUpperCase()+r.slice(1);var r;const[i,o]=zc({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[a,s]=zc({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=zc({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(n){const{unstyled:r,...i}=n,o=function(e){const{key:t,recipe:n}=e,r=Tc();return Qa.useMemo(()=>{const e=n||(null!=t?r.getSlotRecipe(t):{});return r.sva(structuredClone(e))},[t,n,r])}({key:e,recipe:i.recipe||t}),[a,s]=Qa.useMemo(()=>o.splitVariantProps(i),[i,o]);return{styles:Qa.useMemo(()=>r?Gc:o(a),[r,a,o]),classNames:o.classNameMap,props:s}}return{StylesProvider:i,ClassNamesProvider:a,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(e,t,n)=>{const{defaultProps:r,...o}=n??{},s=Vc(e,{},o),l=Qa.forwardRef((e,o)=>{const l=c(),d=Qa.useMemo(()=>kc(r??{},l,e),[l,e]),{styles:p,props:f,classNames:h}=u(d),g=h[t],m=qa.jsx(i,{value:p,children:qa.jsx(a,{value:h,children:qa.jsx(s,{ref:o,...f,css:[p[t],d.css],className:Sc(d.className,g)})})});return n?.wrapElement?.(m,d)??m});return l.displayName=e.displayName||e.name,l},withContext:(e,t,n)=>{const r=Vc(e,{},n),i=Qa.forwardRef((e,n)=>{const{unstyled:i,...a}=e,l=o(),c=s(),u=c?.[t];return qa.jsx(r,{...a,css:[!i&&t?l[t]:void 0,e.css],ref:n,className:Sc(e.className,u)})});return i.displayName=e.displayName||e.name,i},withRootProvider:function(e,t={}){const{defaultProps:n}=t,r=t=>{const r=c(),o=Qa.useMemo(()=>kc(n,r,t),[r,t]),{styles:s,classNames:l,props:d}=u(o);return qa.jsx(i,{value:s,children:qa.jsx(a,{value:l,children:qa.jsx(e,{...d})})})};return r.displayName=e.displayName||e.name,r},useStyles:o,useClassNames:s}})(),Qg=Qa.forwardRef(function({native:e,...t},n){const{styles:r,props:i,classNames:o}=Xg(t),a=Qa.useMemo(()=>e?{...r.root,"& thead":r.header,"& tbody":r.body,"& tfoot":r.footer,"& thead th":r.columnHeader,"& tr":r.row,"& td":r.cell,"& caption":r.caption}:r.root,[r,e]);return qa.jsx(Yg,{value:o,children:qa.jsx(Gg,{value:r,children:qa.jsx(Vc.table,{ref:n,...i,css:[a,t.css],className:Sc(o?.root,t.className)})})})}),Zg=Kg("tr","row");Vc("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Jg=Kg("thead","header");Kg("tfoot","footer");const em=Kg("th","columnHeader"),tm=Kg("td","cell");Kg("caption","caption",{defaultProps:{captionSide:"bottom"}});const nm=Kg("tbody","body");Kg("colgroup"),Kg("col");const{withContext:rm}=Yc({key:"textarea"}),im=rm(Du),om=()=>{const[e,t]=Qa.useState(!1),n=Qa.useCallback(()=>{const e=window.innerWidth;t(e<=768)},[]);return Qa.useEffect(()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[n]),{isMobile:e}},am=e=>`Hi, I'm ${e||"Dori"}!`,sm="https://standardapi.dori.tech",lm={demoSharingData:`${sm}/bot-sharing-data/`,runAssistant:`${sm}/v2/run-assistant`,streamV2:`${sm}/v2/stream`,searchProductLog:`${sm}/search-selected-item-log`,getUploadUrl:`${sm}/get-upload-url`,trackProductView:`${sm}/roi/track-view`},cm=Aa("fetchBotDataBySharingID",async e=>async function(e,t=3){let n;for(let i=0;i<t;i++)try{return await e()}catch(r){if(n=r,i===t-1)throw n}throw n}(async()=>{const t=lm.demoSharingData+e,n=await fetch(t);if(200!==n.status)throw new Error(`Network response was not ok: ${n.status}`);return await n.json()},3)),um=Aa("sendMessageToStreamAPI",async(e,t,n,r,i,o,a,s)=>{const l={assistant_id:t.assistant_id,thread_id:n||void 0,message:e,src:"undefined"!=typeof window?window.location.href:"",platform:"shopify_widget",image_url:s};let c;Object.keys(l).forEach(e=>void 0===l[e]&&delete l[e]);const u={Accept:"application/json","Content-Type":"application/json"};"undefined"!=typeof window&&window.idToken&&(u.Authorization=`Bearer ${window.idToken}`);try{c=await fetch(lm.runAssistant,{method:"POST",headers:u,body:JSON.stringify(l),signal:a?.signal})}catch(h){throw h}if(a?.signal.aborted)return;if(429===c.status)return void i("You have exceeded the request limit. Please wait at least 24 hours and try again.");if(402===c.status)return void i("Hello 😊 The smart assistant for this business is currently inactive because the subscription has expired. If you have any questions, please contact the business directly. We hope to be back in service soon!");if(!c.ok)throw new Error(`Run assistant request failed with status ${c.status}: ${c.statusText}`);let d;try{d=await c.json()}catch(g){throw new Error("Failed to parse run assistant response")}const p=d.thread_id;if(!p)throw new Error("No thread_id received from run assistant");const f=`${lm.streamV2}/${p}`;return new Promise(e=>{const t=new EventSource(f),n=()=>{t.close(),e()};a&&a.signal.addEventListener("abort",n),t.onopen=()=>{},t.onerror=()=>{},t.onmessage=e=>{Fa("SSE message parse",()=>{const t=JSON.parse(e.data),n={thread_id:t.thread_id,text:t.text,wait:t.wait,tool_name:t.tool_name,products:t.products,status:t.status,suggestions:t.suggestions};Object.keys(n).forEach(e=>void 0===n[e]&&delete n[e]),Object.keys(n).length>0&&r(n)})()},t.addEventListener("start",()=>{}),t.addEventListener("end",()=>{a&&a.signal.removeEventListener("abort",n),t.close(),o(),e()})})}),dm=Aa("trackProductClick",async(e,t,n)=>{const r={log:{assistant_id:t.assistant_id,thread_id:n,created_at:(new Date).toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(lm.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})}),pm=Aa("trackProductViewsBatch",async(e,t,n,r,i,o,a)=>{if(0===e.length)return;const s={customer_email:o||null,customer_id:a||null,external_product_ids:e,thread_id:t,platform:r,session_key:n,sharing_id:i};await fetch(lm.trackProductView,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)})}),fm={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Carefully saving your order...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Searching for similar products...",track_order:"Checking your order status...",thinking:"Thinking..."},hm=Qa.createContext(void 0);function gm({children:e}){const[h,g]=Qa.useState(null),[m,v]=Qa.useState(!1),[b,y]=Qa.useState(null),[x,k]=Qa.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[w,S]=Qa.useState([]),[_,C]=Qa.useState("welcome"),[E,P]=Qa.useState(!1),[z,R]=Qa.useState("starting"),T=Qa.useRef(null),[I,O]=Qa.useState(!0),F=Qa.useRef(null),A=Qa.useCallback(()=>{I&&(e=>{if(!e)return;const t=e.closest('[data-scroll-container="chat-messages"]');t&&setTimeout(()=>{t.scrollTo({top:t.scrollHeight,behavior:"smooth"})},100)})(T.current)},[I]);Qa.useEffect(()=>{A()},[w,A]),function({botData:e,chatState:u,messages:d,currentStep:p,setBotData:f,setChatState:h,setMessages:g,setCurrentStep:m}){const[v,b]=Qa.useState(!1);Qa.useEffect(()=>{(()=>{if(t()){const e=s();if(e){f(e.botData);const t=l(),n={...e.chatState,threadId:t||e.chatState.threadId};h(n),g(e.messages.filter(e=>"loading"!==e.type)),m("initial-greeting"===e.currentStep?"initial-greeting":"ongoing"),c(),b(!0)}}else{const e=l();e&&(h({repliedProduct:null,threadId:e,isRequestInProgress:!1}),c()),b(!0)}})()},[f,h,g,m]),Qa.useEffect(()=>{v&&(n(),r(e))},[e,v]),Qa.useEffect(()=>{v&&i(u)},[u,v]),Qa.useEffect(()=>{v&&o(d)},[d,v]),Qa.useEffect(()=>{v&&a(p)},[p,v])}({botData:h,chatState:x,messages:w,currentStep:_,setBotData:g,setChatState:k,setMessages:S,setCurrentStep:C});const M=Qa.useCallback(e=>{k(t=>({...t,repliedProduct:e}))},[]),L=Fa("parseSuggestedReply",e=>{if(!e)return[];if(Array.isArray(e))return e;try{return JSON.parse(e)}catch(t){return[]}}),D=Qa.useCallback(()=>{F.current&&(F.current.abort(),F.current=null),k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),C("ongoing"),S(e=>e.filter(e=>"loading"!==e.type))},[]),j=Qa.useCallback(Aa("initializeBot",async e=>{if(!e||""===e.trim())return void y("Invalid sharing ID provided");v(!0),y(null);let t=!1;const n=await(async()=>{if(window.moriBotDataPromise)try{return await window.moriBotDataPromise}catch(r){}else if(await new Promise(e=>setTimeout(e,50)),window.moriBotDataPromise)try{return await window.moriBotDataPromise}catch(r){}const n=await cm(e);return n.error?(y(n.error),t=!0,null):n.data?n.data:(t=!0,null)})();if(!n)return void(t||y("No bot data found"));d();const r={...n,sharing_id:e,suggestedReply:L(n.suggestedReply)};g(r),C("initial-greeting")}),[L]),N=Qa.useCallback(Fa("addWelcomeMessage",()=>{const e={id:Date.now().toString(),type:"welcome",timestamp:new Date,content:h?.wellcomeMessage||"I'm here to help with anything on your mind about your purchase!"};S(t=>[...t,e])}),[h?.wellcomeMessage]),$=Qa.useCallback(Aa("sendMessage",async({message:e,imageUrl:t,apiMessage:n},r)=>{if(!h||E)return;const i={id:Date.now().toString(),type:"user",content:e,timestamp:new Date,repliedProduct:r,imageUrl:t};S(e=>[...e.filter(e=>"suggestions"!==e.type),i]),F.current&&(F.current.abort(),F.current=null),C("thinking"),P(!0),R("generating"),k(e=>({...e,isRequestInProgress:!0})),F.current=new AbortController;let o={id:(Date.now()+1).toString(),type:"loading",content:"Let me check that for a moment...",timestamp:new Date};S(e=>[...e,o]);let a=n||e;r&&(a=`this message is replied to product with id ${r.id}: ${e}`);let s="",l=null,c=[],u=[];try{await um(a,h,x.threadId,e=>{Fa("streaming chunk handler",()=>{if(e.thread_id)e.thread_id!==x.threadId&&d(),p(e.thread_id),f(e.thread_id),k(t=>({...t,threadId:e.thread_id||null}));else if(e.wait)l&&s.trim()&&S(e=>e.map(e=>e.id===l?.id?{...e,content:s}:e)),l=null,s="",S(t=>{return[...t.filter(e=>"loading"!==e.type),{id:(Date.now()+Math.random()).toString(),type:"loading",content:(n=e.tool_name,n&&n in fm?fm[n]:"Let me check that for a moment..."),timestamp:new Date}];var n});else if(e.text)if(s+=e.text,l)S(e=>e.map(e=>e.id===l?.id?{...e,content:s}:e));else{const e={id:(Date.now()+Math.random()).toString(),type:"dori",content:s,timestamp:new Date};S(t=>[...t.filter(e=>"loading"!==e.type),e]),l=e}else e.products&&e.products.length>0?(d(),c=[...c,...e.products],S(t=>{const n=[...t.filter(e=>"loading"!==e.type)],r=n.findIndex(e=>e.id===l?.id),i={id:(Date.now()+3).toString(),type:"products",content:"Recommended Products:",timestamp:new Date,products:c,tool_call_id:e.products?.[0]?.tool_call_id||""};return-1!==r?n.splice(r+1,0,i):n.push(i),n})):e.suggestions&&e.suggestions.length>0&&(u=[...u,...e.suggestions])})()},e=>{if(F.current?.signal.aborted)return F.current=null,k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),C("ongoing"),void S(e=>e.filter(e=>"loading"!==e.type));S(t=>[...t.filter(e=>"loading"!==e.type),{id:(Date.now()+2).toString(),type:"dori",content:e,timestamp:new Date}]),F.current=null,k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),C("ongoing")},()=>{u.length>0&&S(e=>{const t=[...e.filter(e=>"suggestions"!==e.type&&"loading"!==e.type)],n=t.findIndex(e=>e.id===l?.id),r={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:u};return-1!==n?t.splice(n+1,0,r):t.push(r),t}),F.current=null,k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),C("ongoing")},F.current,t)}catch(g){F.current?.signal.aborted||"AbortError"===g.name?(F.current=null,k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),C("ongoing"),S(e=>e.filter(e=>"loading"!==e.type))):(S(e=>[...e.filter(e=>"loading"!==e.type),{id:(Date.now()+2).toString(),type:"dori",content:"An error has occurred. Please try again.",timestamp:new Date}]),C("ongoing"),k(e=>({...e,isRequestInProgress:!1,repliedProduct:null})),P(!1),R("starting"),F.current=null)}}),[h,E,x.threadId]),B=Qa.useCallback(()=>{F.current&&(F.current.abort(),F.current=null),u(),S([]),C("welcome"),P(!1),R("starting"),k({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),W=Qa.useCallback(e=>{g(t=>t?{...t,...e}:null)},[]),V={botData:h,isLoadingBot:m,botError:b,chatState:x,messages:w,currentStep:_,isInputDisabled:E,inputState:z,initializeBot:j,sendMessage:$,stopCurrentRequest:D,setCurrentStep:C,setInputState:R,messagesEndRef:T,addWelcomeMessage:N,setRepliedProduct:M,resetBot:B,updateBotData:W,setAutoScrollEnabled:O};return qa.jsx(hm.Provider,{value:V,children:e})}function mm(){const e=Qa.useContext(hm);if(void 0===e)throw new Error("useChatContext must be used within a ChatProvider");return e}function vm(e,t){const n={white:"255, 255, 255",black:"0, 0, 0",transparent:"0, 0, 0"};if(n[e.toLowerCase()])return`rgba(${n[e.toLowerCase()]}, ${t})`;let r=e.replace("#","");return 3===r.length&&(r=r.split("").map(e=>e+e).join("")),6!==r.length?e:`rgba(${parseInt(r.substring(0,2),16)}, ${parseInt(r.substring(2,4),16)}, ${parseInt(r.substring(4,6),16)}, ${t})`}function bm(e,t){let n=e.replace("#","");if(3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length)return e;const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return`rgb(${Math.min(255,Math.round(r+t/100*(255-r)))}, ${Math.min(255,Math.round(i+t/100*(255-i)))}, ${Math.min(255,Math.round(o+t/100*(255-o)))})`}function ym(e,t){if("black"===e.toLowerCase())return e;if("white"===e.toLowerCase()){const e=255-Math.round(t/100*255);return`rgb(${e}, ${e}, ${e})`}let n=e.replace("#","");if(3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length)return e;const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),o=parseInt(n.substring(4,6),16);return`rgb(${Math.max(0,Math.round(r*(1-t/100)))}, ${Math.max(0,Math.round(i*(1-t/100)))}, ${Math.max(0,Math.round(o*(1-t/100)))})`}function xm(e,t,n=.5){const r=e=>{if("white"===e.toLowerCase())return[255,255,255];if("black"===e.toLowerCase())return[0,0,0];let t=e.replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length?[0,0,0]:[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]},[i,o,a]=r(e),[s,l,c]=r(t);return`rgb(${Math.round(i*(1-n)+s*n)}, ${Math.round(o*(1-n)+l*n)}, ${Math.round(a*(1-n)+c*n)})`}function km(e){const t=Array.isArray(e)?e[0]:e;return`linear-gradient(126deg, ${ym(t,5)} 16%, ${bm(t,10)} 88%)`}const wm=Ng({displayName:"CloseIcon",viewBox:"0 0 24 24",path:qa.jsx("path",{d:"M6.26915 5.7309C5.98798 5.44973 5.53209 5.44973 5.25092 5.7309C4.96975 6.01207 4.96975 6.46796 5.25092 6.74913L10.5018 12L5.25092 17.2509C4.96975 17.5321 4.96975 17.9879 5.25092 18.2691C5.53209 18.5503 5.98798 18.5503 6.26915 18.2691L11.52 13.0183L16.7709 18.2691C17.0521 18.5503 17.5079 18.5503 17.7891 18.2691C18.0703 17.9879 18.0703 17.5321 17.7891 17.2509L12.5383 12L17.7891 6.74913C18.0703 6.46796 18.0703 6.01207 17.7891 5.7309C17.5079 5.44973 17.0521 5.44973 16.7709 5.7309L11.52 10.9817L6.26915 5.7309Z",fill:"currentColor"})}),Sm=Ng({displayName:"ExpandIcon",viewBox:"0 0 24 24",path:qa.jsx("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z",fill:"currentColor"})}),_m=Ng({displayName:"ReplyIcon",viewBox:"0 0 15 12",path:qa.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16536 1.81467C7.16536 0.791333 5.9427 0.263999 5.1987 0.965999L1.30003 4.64C1.15132 4.78022 1.03284 4.94936 0.951856 5.13703C0.870874 5.3247 0.829102 5.52694 0.829102 5.73133C0.829102 5.93573 0.870874 6.13797 0.951856 6.32563C1.03284 6.5133 1.15132 6.68244 1.30003 6.82267L5.19736 10.5C5.94136 11.202 7.1647 10.674 7.1647 9.65133V8.33467C7.93731 8.19507 8.73376 8.28024 9.45939 8.58006C10.185 8.87989 10.8093 9.38175 11.258 10.026L11.7927 10.794C12.5207 11.84 14.162 11.3247 14.162 10.0507V9.738C14.162 5.89267 10.9394 2.87667 7.1647 3.05733L7.16536 1.81467ZM5.8847 1.69333C5.90839 1.67111 5.93807 1.6563 5.97007 1.65072C6.00208 1.64514 6.03501 1.64904 6.06483 1.66193C6.09465 1.67482 6.12005 1.69614 6.13791 1.72328C6.15577 1.75042 6.16531 1.78218 6.16536 1.81467V3.54C6.16536 3.87333 6.45736 4.132 6.78803 4.092C10.1767 3.68 13.1627 6.32467 13.1627 9.73867V10.0507C13.1627 10.3453 12.7827 10.4647 12.614 10.2227L12.0787 9.45467C11.4785 8.5928 10.6268 7.93727 9.63996 7.57763C8.65317 7.21799 7.5794 7.17179 6.56536 7.44533C6.45052 7.47639 6.34911 7.54442 6.27681 7.6389C6.2045 7.73337 6.16534 7.84903 6.16536 7.968V9.65067C6.16531 9.68315 6.15577 9.71492 6.13791 9.74205C6.12005 9.76919 6.09465 9.79051 6.06483 9.8034C6.03501 9.81629 6.00208 9.82019 5.97007 9.81461C5.93807 9.80903 5.90839 9.79422 5.8847 9.772L1.9867 6.09533C1.93716 6.04859 1.8977 5.99223 1.87072 5.92969C1.84375 5.86716 1.82984 5.79977 1.82984 5.73167C1.82984 5.66356 1.84375 5.59618 1.87072 5.53364C1.8977 5.4711 1.93716 5.41474 1.9867 5.368L5.8847 1.69333Z",fill:"currentColor"})}),Cm=Ng({displayName:"SuggestionIcon",viewBox:"0 0 16 16",path:qa.jsx("path",{d:"M4.56503 3.915C5.11896 2.73832 6.04737 1.77849 7.20497 1.18572C8.36257 0.592947 9.68402 0.400681 10.9625 0.63901C12.2411 0.877339 13.4045 1.53281 14.2708 2.50286C15.137 3.4729 15.6573 4.70277 15.75 6C15.8332 7.19515 15.548 8.38706 14.9329 9.41516C14.3178 10.4433 13.4024 11.2581 12.31 11.75C11.9379 12.672 11.3425 13.4871 10.5774 14.122C9.81221 14.7569 8.90126 15.1917 7.92642 15.3873C6.95158 15.5829 5.94341 15.5332 4.99255 15.2426C4.04169 14.952 3.17794 14.4297 2.47896 13.7226C1.77998 13.0155 1.26768 12.1458 0.988107 11.1916C0.708538 10.2375 0.670468 9.2288 0.877321 8.25629C1.08417 7.28377 1.52946 6.37791 2.17316 5.62013C2.81685 4.86235 3.63877 4.27641 4.56503 3.915ZM9.90503 1.5H9.60503C8.52019 1.56681 7.48862 1.99351 6.67357 2.71256C5.85852 3.43161 5.30656 4.40195 5.10503 5.47L10.675 1.565C10.4205 1.52309 10.163 1.50136 9.90503 1.5ZM11.905 1.93L5.33003 6.555L5.06003 6.745C5.11592 7.4665 5.33108 8.16663 5.69003 8.79499L13.565 3.155C13.1023 2.63199 12.5329 2.21427 11.895 1.93H11.905ZM14.145 3.97L6.25003 9.60999C6.70986 10.1331 7.27572 10.5524 7.91003 10.84L14.75 5.82C14.6759 5.16869 14.47 4.53927 14.145 3.97ZM14.75 7.065L9.10503 11.2C9.4681 11.2629 9.83728 11.283 10.205 11.26C11.33 11.1916 12.3968 10.7368 13.225 9.97234C14.0532 9.20793 14.5919 8.1809 14.75 7.065ZM6.75003 14.5C7.59348 14.4958 8.42238 14.2798 9.16061 13.8718C9.89883 13.4638 10.5227 12.8769 10.975 12.165C10.7406 12.2117 10.5035 12.2434 10.265 12.26H9.90003C8.40699 12.257 6.97069 11.6876 5.88117 10.6668C4.79165 9.64592 4.13007 8.24969 4.03003 6.76C4.00121 6.25734 4.03819 5.75307 4.14003 5.26C3.22219 5.83357 2.51524 6.68948 2.12538 7.69915C1.73553 8.70883 1.68382 9.81774 1.97803 10.8593C2.27224 11.9009 2.89648 12.8189 3.75697 13.4754C4.61746 14.1318 5.66774 14.4914 6.75003 14.5Z",fill:"currentColor"})}),Em=Ng({displayName:"AiSearchIcon",viewBox:"0 0 16 16",path:qa.jsxs(qa.Fragment,{children:[qa.jsx("path",{d:"M8 2.66683C5.42267 2.66683 3.33333 4.75617 3.33333 7.3335H2C2 4.01979 4.68629 1.3335 8 1.3335C11.3137 1.3335 14 4.01979 14 7.3335C14 8.75016 13.509 10.0522 12.6879 11.0786L14.8047 13.1954L13.8619 14.1382L11.7451 12.0214C10.7187 12.8425 9.41667 13.3335 8 13.3335V12.0002C10.5773 12.0002 12.6667 9.91083 12.6667 7.3335C12.6667 4.75617 10.5773 2.66683 8 2.66683Z",fill:"currentColor"}),qa.jsx("path",{d:"M5.85714 6.6665L2 11.2498H4.57143L4.14286 13.9998L8 9.4165H5.42857L5.85714 6.6665Z",fill:"currentColor"})]})}),Pm=Ng({displayName:"SquareBlackIcon",viewBox:"0 0 32 32",path:qa.jsxs(qa.Fragment,{children:[qa.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),qa.jsx("path",{d:"M22 10H10V22H22V10Z",fill:"white"})]})}),zm=Ng({displayName:"ArrowUpBlackIcon",viewBox:"0 0 32 32",path:qa.jsxs(qa.Fragment,{children:[qa.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"currentColor"}),qa.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5858 11.0002C15.3669 10.2191 16.6332 10.2191 17.4143 11.0002L20.3738 13.9597C20.7643 14.3502 20.7643 14.9834 20.3738 15.3739C19.9833 15.7644 19.3501 15.7644 18.9596 15.3739L17 13.4144V21.0002C17 21.5524 16.5523 22.0002 16 22.0002C15.4478 22.0002 15 21.5524 15 21.0002V13.4144L13.0405 15.3739C12.65 15.7644 12.0168 15.7645 11.6263 15.3739C11.2358 14.9834 11.2358 14.3502 11.6263 13.9597L14.5858 11.0002Z",fill:"white"})]})}),Rm=Ng({displayName:"ArrowLeftIcon",viewBox:"0 0 32 32",path:qa.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0002 17.4139C10.2191 16.6329 10.2191 15.3665 11.0002 14.5855L13.9597 11.6259C14.3502 11.2354 14.9834 11.2354 15.3739 11.6259C15.7644 12.0165 15.7644 12.6496 15.3739 13.0401L13.4144 14.9997H21.0002C21.5524 14.9997 22.0002 15.4474 22.0002 15.9997C22.0002 16.552 21.5524 16.9997 21.0002 16.9997H13.4144L15.3739 18.9592C15.7644 19.3498 15.7645 19.9829 15.3739 20.3735C14.9834 20.764 14.3502 20.764 13.9597 20.3735L11.0002 17.4139Z",fill:"currentColor"})}),Tm=Ng({displayName:"ReloadIcon",viewBox:"0 0 24 24",path:qa.jsx("path",{d:"M19.146 4.854l-1.489 1.489A8 8 0 1 0 12 20a8.094 8.094 0 0 0 7.371-4.886 1 1 0 1 0-1.842-.779A6.071 6.071 0 0 1 12 18a6 6 0 1 1 4.243-10.243l-1.39 1.39a.5.5 0 0 0 .354.854H19.5A.5.5 0 0 0 20 9.5V5.207a.5.5 0 0 0-.854-.353z"})}),Im=Ng({displayName:"AiBigIcon",viewBox:"0 0 24 24",path:qa.jsx("path",{d:"M18.423 9.97031L16.7505 10.5726C15.8336 10.903 15.0009 11.4317 14.3118 12.1208C13.6226 12.81 13.094 13.6427 12.7635 14.5596L12.1613 16.2321C12.1492 16.2651 12.1272 16.2936 12.0984 16.3137C12.0695 16.3339 12.0352 16.3447 12 16.3447C11.9649 16.3447 11.9305 16.3339 11.9017 16.3137C11.8728 16.2936 11.8509 16.2651 11.8388 16.2321L11.2365 14.5596C10.9061 13.6427 10.3774 12.81 9.68826 12.1208C8.99911 11.4317 8.16641 10.903 7.24953 10.5726L5.57703 9.97031C5.544 9.9582 5.51549 9.93624 5.49535 9.9074C5.47521 9.87856 5.46441 9.84423 5.46441 9.80906C5.46441 9.77388 5.47521 9.73955 5.49535 9.71071C5.51549 9.68188 5.544 9.65992 5.57703 9.64781L7.24953 9.04556C8.16641 8.7151 8.99911 8.18645 9.68826 7.49729C10.3774 6.80814 10.9061 5.97544 11.2365 5.05856L11.8388 3.38606C11.8509 3.35303 11.8728 3.32452 11.9017 3.30438C11.9305 3.28424 11.9649 3.27344 12 3.27344C12.0352 3.27344 12.0695 3.28424 12.0984 3.30438C12.1272 3.32452 12.1492 3.35303 12.1613 3.38606L12.7635 5.05856C13.094 5.97544 13.6226 6.80814 14.3118 7.49729C15.0009 8.18645 15.8336 8.7151 16.7505 9.04556L18.423 9.64781C18.4564 9.65958 18.4853 9.68141 18.5057 9.71029C18.5261 9.73917 18.5371 9.77368 18.5371 9.80906C18.5371 9.84443 18.5261 9.87894 18.5057 9.90782C18.4853 9.9367 18.4564 9.95853 18.423 9.97031ZM22.4423 17.4988L21.5955 17.8041C21.1313 17.9715 20.7097 18.2393 20.3607 18.5883C20.0118 18.9372 19.744 19.3588 19.5765 19.8231L19.2713 20.6698C19.2652 20.6866 19.254 20.7011 19.2394 20.7113C19.2248 20.7216 19.2074 20.727 19.1895 20.727C19.1717 20.727 19.1543 20.7216 19.1396 20.7113C19.125 20.7011 19.1139 20.6866 19.1078 20.6698L18.8025 19.8231C18.635 19.3588 18.3673 18.9372 18.0183 18.5883C17.6694 18.2393 17.2478 17.9715 16.7835 17.8041L15.9368 17.4988C15.92 17.4927 15.9055 17.4816 15.8953 17.467C15.885 17.4523 15.8795 17.4349 15.8795 17.4171C15.8795 17.3992 15.885 17.3818 15.8953 17.3672C15.9055 17.3525 15.92 17.3414 15.9368 17.3353L16.7835 17.0301C17.2478 16.8626 17.6694 16.5948 18.0183 16.2459C18.3673 15.8969 18.635 15.4753 18.8025 15.0111L19.1078 14.1643C19.1139 14.1475 19.125 14.133 19.1396 14.1228C19.1543 14.1126 19.1717 14.1071 19.1895 14.1071C19.2074 14.1071 19.2248 14.1126 19.2394 14.1228C19.254 14.133 19.2652 14.1475 19.2713 14.1643L19.5765 15.0111C19.744 15.4753 20.0118 15.8969 20.3607 16.2459C20.7097 16.5948 21.1313 16.8626 21.5955 17.0301L22.4423 17.3353C22.4591 17.3414 22.4735 17.3525 22.4838 17.3672C22.494 17.3818 22.4995 17.3992 22.4995 17.4171C22.4995 17.4349 22.494 17.4523 22.4838 17.467C22.4735 17.4816 22.4591 17.4927 22.4423 17.4988ZM8.06253 17.4988L7.21578 17.8041C6.75155 17.9715 6.32995 18.2393 5.98098 18.5883C5.63201 18.9372 5.36426 19.3588 5.19678 19.8231L4.89153 20.6698C4.88542 20.6866 4.8743 20.7011 4.85967 20.7113C4.84505 20.7216 4.82763 20.727 4.80978 20.727C4.79192 20.727 4.7745 20.7216 4.75988 20.7113C4.74525 20.7011 4.73413 20.6866 4.72803 20.6698L4.42278 19.8231C4.2553 19.3588 3.98754 18.9372 3.63858 18.5883C3.28961 18.2393 2.86801 17.9715 2.40378 17.8041L1.55703 17.4988C1.54025 17.4927 1.52576 17.4816 1.51552 17.467C1.50528 17.4523 1.49979 17.4349 1.49979 17.4171C1.49979 17.3992 1.50528 17.3818 1.51552 17.3672C1.52576 17.3525 1.54025 17.3414 1.55703 17.3353L2.40378 17.0301C2.86801 16.8626 3.28961 16.5948 3.63858 16.2459C3.98754 15.8969 4.2553 15.4753 4.42278 15.0111L4.72803 14.1643C4.73413 14.1475 4.74525 14.133 4.75988 14.1228C4.7745 14.1126 4.79192 14.1071 4.80978 14.1071C4.82763 14.1071 4.84505 14.1126 4.85967 14.1228C4.8743 14.133 4.88542 14.1475 4.89153 14.1643L5.19678 15.0111C5.36426 15.4753 5.63201 15.8969 5.98098 16.2459C6.32995 16.5948 6.75155 16.8626 7.21578 17.0301L8.06253 17.3353C8.13903 17.3631 8.13903 17.4718 8.06253 17.4988Z",fill:"currentColor"})});Ng({displayName:"AiRainbowIconBase",viewBox:"0 0 24 24",path:qa.jsxs(qa.Fragment,{children:[qa.jsx("g",{clipPath:"url(#clip0_497_8063)",children:qa.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:"url(#paint0_linear_497_8063)"})}),qa.jsxs("defs",{children:[qa.jsxs("linearGradient",{id:"paint0_linear_497_8063",x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[qa.jsx("stop",{stopColor:"#FF7E90"}),qa.jsx("stop",{offset:"0.463542",stopColor:"#A939FF"}),qa.jsx("stop",{offset:"1",stopColor:"#0020FF"})]}),qa.jsx("clipPath",{id:"clip0_497_8063",children:qa.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})});const Om=e=>{const t=Cg("colors","primary"),[n,r,i]=function(e){const t=Array.isArray(e)?e[0]:e;return[bm(t,15),t,ym(t,10)]}(t),o=Za.useMemo(()=>`rainbow-gradient-${Math.random().toString(36).substr(2,9)}`,[]),{w:a,width:s,transform:l}=e,c="string"==typeof a?a:"string"==typeof s?s:"number"==typeof a?`${a}px`:"number"==typeof s?`${s}px`:"24px";return qa.jsx(Uc,{position:"relative",display:"inline-block",width:c,height:c,transform:l,children:qa.jsxs("svg",{viewBox:"0 0 24 24",width:c,height:c,style:{display:"block"},children:[qa.jsxs("defs",{children:[qa.jsxs("linearGradient",{id:o,x1:"19.4467",y1:"10.3723",x2:"4.37004",y2:"16.438",gradientUnits:"userSpaceOnUse",children:[qa.jsx("stop",{stopColor:n}),qa.jsx("stop",{offset:"0.463542",stopColor:r}),qa.jsx("stop",{offset:"1",stopColor:i})]}),qa.jsx("clipPath",{id:`clip-${o}`,children:qa.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),qa.jsx("g",{clipPath:`url(#clip-${o})`,children:qa.jsx("path",{d:"M18.2468 14.5235L16.5735 13.9236C15.656 13.5949 14.6772 13.4727 13.7071 13.5656C12.7369 13.6585 11.7991 13.9643 10.9607 14.4612L9.43171 15.3679C9.40135 15.3857 9.36627 15.3937 9.3312 15.3909C9.29614 15.3881 9.26279 15.3746 9.23566 15.3522C9.20853 15.3298 9.18892 15.2996 9.1795 15.2657C9.17007 15.2318 9.17128 15.1959 9.18296 15.1627L9.78291 13.4893C10.1116 12.5718 10.2338 11.5931 10.1409 10.6229C10.0479 9.65274 9.74213 8.71502 9.24525 7.87657L8.33853 6.34758C8.32077 6.31722 8.31275 6.28213 8.31557 6.24707C8.31839 6.21201 8.33191 6.17866 8.3543 6.15152C8.37668 6.12439 8.40686 6.10479 8.44075 6.09537C8.47464 6.08594 8.51061 6.08715 8.54379 6.09883L10.2171 6.69878C11.1346 7.02745 12.1134 7.14967 13.0835 7.05674C14.0537 6.9638 14.9914 6.65799 15.8299 6.16111L17.3589 5.2544C17.3893 5.23664 17.4243 5.22862 17.4594 5.23144C17.4945 5.23426 17.5278 5.24778 17.5549 5.27016C17.5821 5.29255 17.6017 5.32273 17.6111 5.35662C17.6205 5.39051 17.6193 5.42648 17.6076 5.45966L17.0077 7.13298C16.679 8.05051 16.5568 9.02924 16.6497 9.99941C16.7427 10.9696 17.0485 11.9073 17.5454 12.7458L18.4521 14.2748C18.4703 14.3051 18.4787 14.3403 18.4761 14.3756C18.4734 14.4109 18.4599 14.4445 18.4374 14.4717C18.4149 14.499 18.3845 14.5187 18.3503 14.5279C18.3162 14.5372 18.28 14.5357 18.2468 14.5235ZM16.5553 22.8884L15.7079 22.5849C15.2433 22.4186 14.7477 22.3568 14.2564 22.4039C13.7652 22.451 13.2903 22.6057 12.8657 22.8572L12.0913 23.316C12.0759 23.3251 12.0581 23.3292 12.0403 23.3278C12.0225 23.3264 12.0056 23.3195 11.9918 23.3081C11.978 23.2968 11.9681 23.2815 11.9633 23.2643C11.9586 23.2471 11.9592 23.2288 11.9652 23.212L12.2687 22.3646C12.4349 21.8999 12.4968 21.4043 12.4497 20.9131C12.4026 20.4218 12.2479 19.9469 11.9964 19.5223L11.5376 18.7479C11.5285 18.7325 11.5244 18.7147 11.5258 18.697C11.5272 18.6792 11.5341 18.6622 11.5454 18.6485C11.5568 18.6347 11.5721 18.6247 11.5893 18.62C11.6065 18.6152 11.6248 18.6159 11.6416 18.6218L12.489 18.9253C12.9537 19.0916 13.4493 19.1534 13.9405 19.1063C14.4318 19.0593 14.9067 18.9045 15.3313 18.653L16.1057 18.1942C16.1211 18.1851 16.1388 18.1811 16.1566 18.1825C16.1744 18.1839 16.1914 18.1907 16.2051 18.2021C16.2189 18.2134 16.2289 18.2288 16.2336 18.246C16.2384 18.2632 16.2377 18.2814 16.2318 18.2983L15.9283 19.1456C15.762 19.6103 15.7002 20.1059 15.7473 20.5972C15.7943 21.0884 15.9491 21.5633 16.2006 21.9879L16.6594 22.7623C16.6684 22.7777 16.6725 22.7955 16.6711 22.8133C16.6697 22.8311 16.6629 22.848 16.6515 22.8618C16.6402 22.8756 16.6248 22.8855 16.6076 22.8903C16.5904 22.895 16.5722 22.8944 16.5553 22.8884ZM5.46406 13.7363L4.61667 13.4328C4.15202 13.2666 3.65642 13.2047 3.16515 13.2518C2.67388 13.2989 2.19903 13.4536 1.77439 13.7051L1.00002 14.1639C0.984637 14.173 0.966838 14.1771 0.949042 14.1757C0.931245 14.1743 0.914312 14.1674 0.900542 14.1561C0.886772 14.1447 0.876831 14.1294 0.872069 14.1122C0.867305 14.095 0.86795 14.0767 0.873916 14.0599L1.17739 13.2125C1.34367 12.7478 1.40549 12.2522 1.35843 11.761C1.31137 11.2697 1.15659 10.7948 0.90512 10.3702L0.44629 9.59584C0.437238 9.58045 0.43314 9.56265 0.43455 9.54486C0.435961 9.52706 0.442813 9.51013 0.454176 9.49636C0.465538 9.48259 0.48086 9.47265 0.498065 9.46789C0.51527 9.46312 0.533525 9.46377 0.55035 9.46973L1.39774 9.77321C1.8624 9.93949 2.358 10.0013 2.84926 9.95424C3.34053 9.90718 3.81538 9.75241 4.24002 9.50094L5.01439 9.04211C5.02978 9.03306 5.04757 9.02896 5.06537 9.03037C5.08317 9.03178 5.1001 9.03863 5.11387 9.04999C5.12764 9.06135 5.13758 9.07668 5.14234 9.09388C5.14711 9.11109 5.14646 9.12934 5.1405 9.14617L4.83702 9.99356C4.67074 10.4582 4.60893 10.9538 4.65599 11.4451C4.70305 11.9363 4.85782 12.4112 5.10929 12.8358L5.56812 13.6102C5.60947 13.6803 5.54025 13.7642 5.46406 13.7363Z",fill:`url(#${o})`})})]})})},Fm=""+new URL("dori.ico",import.meta.url).href,Am=({onClose:e,isMobile:t=!1,isExpanded:n=!1,onToggleExpand:r,onReload:i})=>{const{botData:o}=mm();return qa.jsxs($g,{justify:"space-between",align:"center",flexShrink:0,children:[qa.jsx(Bg,{src:o?.bot_image?o?.bot_image:Fm,alt:"Bot Image",w:"40px",h:"40px",borderRadius:"50%"}),qa.jsxs(Ug,{gap:3,children:[!t&&r&&qa.jsxs(Ag,{variant:"outline",size:"sm",borderRadius:"4px",px:3,height:"auto",lineHeight:"1.5",border:"none",color:"text",bgColor:"lightBackground",_hover:{bgColor:"veryLightBackground"},padding:"5px 9px",onClick:()=>r?.(),fontFamily:"Estedad-FD, system-ui, sans-serif",children:[qa.jsx(Sm,{boxSize:"16px",color:"text"}),n?"Minimize":"Show Full Screen"]}),i&&qa.jsx(Mg,{size:"sm",variant:"ghost","aria-label":"Reload",onClick:i,color:"text",_hover:{bgColor:"mutedText"},children:qa.jsx(Tm,{boxSize:t?"16px":"24px",color:"text"})}),qa.jsx(Mg,{size:"sm",variant:"ghost","aria-label":"Close",onClick:()=>{n&&r?.(),e()},color:"text",_hover:{bgColor:"mutedText"},children:qa.jsx(wm,{boxSize:t?"16px":"24px",color:"text"})})]})]})};class Mm{static async getUploadCredentials(e){const t={file_extension:e,expires_in:3600,content_length_range:{min_bytes:1024,max_bytes:10485760}},n=await fetch(lm.getUploadUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:t})});if(!n.ok)throw new Error(`Failed to get upload credentials: ${n.status} ${n.statusText}`);return await n.json()}static async compressImage(e,t=1024,n=.8){return new Promise(r=>{const i=document.createElement("canvas"),o=i.getContext("2d"),a=new Image;a.onload=()=>{const{width:s,height:l}=this.calculateDimensions(a.width,a.height,t);i.width=s,i.height=l,o.drawImage(a,0,0,s,l),i.toBlob(t=>{const o=new File([t],e.name,{type:"image/jpeg",lastModified:Date.now()});r({file:o,preview:i.toDataURL("image/jpeg",n),format:"jpeg"})},"image/jpeg",n)},a.src=URL.createObjectURL(e)})}static getFileExtension(e){const t=e.name.split(".").pop()?.toLowerCase();switch(t){case"jpg":case"jpeg":default:return"jpeg";case"webp":return"webp";case"png":return"png";case"heic":return"heic"}}static calculateDimensions(e,t,n){if(e<=n)return{width:e,height:t};const r=t/e;return{width:n,height:Math.round(n*r)}}static async uploadImage(e,t){const n=new FormData;Object.entries(e.fields).forEach(([e,t])=>{n.append(e,t)}),n.append("file",t);const r=await fetch(e.url,{method:"POST",body:n});if(!r.ok&&204!==r.status)throw new Error("Error uploading image");return e.public_url}}const Lm=()=>{const[e,t]=Qa.useState(null),[n,r]=Qa.useState(!1);return{uploadedImage:e,isUploading:n,handleFileSelect:()=>{const e=document.createElement("input");e.type="file",e.accept="image/jpeg,image/jpg,image/webp,image/png,image/heic",e.onchange=e=>{const n=e.target.files?.[0];n&&(async e=>{try{r(!0);const n=await Mm.compressImage(e),i=await Mm.getUploadCredentials(n.format),o=await Mm.uploadImage(i,n.file);t({url:o,preview:n.preview,name:e.name,size:n.file.size})}catch(n){alert("Failed to upload image")}finally{r(!1)}})(n)},e.click()},removeImage:()=>{e?.preview&&URL.revokeObjectURL(e.preview),t(null)}}};var Dm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},jm=Za.createContext&&Za.createContext(Dm),Nm=["attr","size","title"];function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(this,arguments)}function Bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bm(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vm(e){return e&&e.map((e,t)=>Za.createElement(e.tag,Wm({key:t},e.attr),Vm(e.child)))}function Hm(e){return t=>Za.createElement(Um,$m({attr:Wm({},e.attr)},t),Vm(e.child))}function Um(e){var t=t=>{var n,{attr:r,size:i,title:o}=e,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Nm),s=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),Za.createElement("svg",$m({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:Wm(Wm({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Za.createElement("title",null,o),e.children)};return void 0!==jm?Za.createElement(jm.Consumer,null,e=>t(e)):t(Dm)}function qm(e){return Hm({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"},child:[]}]})(e)}const Gm=({imageUrl:e,onRemove:t})=>qa.jsxs("div",{style:{position:"relative",display:"inline-block",background:"transparent"},children:[qa.jsx(Bg,{src:e,alt:"Uploaded image",w:"80px",h:"80px",borderRadius:"12px",objectFit:"cover",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.11)"}),qa.jsx(Mg,{position:"absolute",top:"6px",right:"6px",bg:"primary","aria-label":"Remove image",onClick:t,size:"sm",borderRadius:"50%",minW:"24px",h:"24px",children:qa.jsx(wm,{boxSize:"14px",filter:"brightness(0) invert(1) drop-shadow(0 0 1px white)"})})]}),Ym=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r,isMobileView:i})=>{const{chatState:{repliedProduct:o},setRepliedProduct:a}=mm(),[s,l]=Qa.useState(t),{uploadedImage:c,isUploading:u,handleFileSelect:d,removeImage:p}=Lm();Qa.useEffect(()=>{l(h(t))},[t]);const f=e=>{(s.trim()||e||c)&&(r?.({message:e??s.trim(),imageUrl:c?.url},o?.product),a?.(null),l(""),p())},h=e=>e.trimStart();return qa.jsxs(qg,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:[c&&qa.jsx(Uc,{position:"absolute",bottom:o?i?"300px":"190px":"90px",left:"12px",zIndex:1e3,bg:"transparent",pointerEvents:"auto",children:qa.jsx(Gm,{imageUrl:c.preview,onRemove:p})}),qa.jsx(Uc,{bgColor:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:o?i?"300px":"190px":"90px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:qa.jsxs(Uc,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[o&&qa.jsxs(qg,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",borderColor:"borderColor",bgColor:"lightBackground",children:[qa.jsxs(Ug,{justify:"space-between",align:"center",w:"full",children:[qa.jsx(Bg,{src:o?.product?.image,alt:"product",w:"40px",h:"40px"}),qa.jsx(mu,{fontSize:"12px",fontWeight:400,color:"text",children:o?.product?.name}),qa.jsx(Mg,{bg:"transparent","aria-label":"Remove product",onClick:()=>a?.(null),children:qa.jsx(wm,{boxSize:"24px",color:"text"})})]}),o?.suggestions&&o.suggestions.length>0&&qa.jsxs(qa.Fragment,{children:[qa.jsx(Uc,{display:{base:"none",md:"block"},w:"full",children:qa.jsx(Ug,{w:"full",justify:"flex-start",align:"center",gap:2,children:o.suggestions.map(e=>qa.jsx(Ag,{variant:"outline",bg:"transparent",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),h:"32px",px:3,minW:"unset",flex:1,lineHeight:"1.5",overflow:"hidden",children:qa.jsx(Uc,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:e})},e))})}),qa.jsx(Uc,{display:{base:"block",md:"none"},w:"full",children:qa.jsx(qg,{w:"full",align:"stretch",gap:"8px",children:o.suggestions.map(e=>qa.jsx(Ag,{variant:"outline",bg:"transparent",w:"full",color:"text",fontSize:"12px",borderColor:"borderColor",borderRadius:"24px",fontWeight:400,onClick:()=>f(e),children:e},e))})})]})]}),qa.jsx(im,{value:s,onChange:e=>(e=>{const t=h(e);l(t),n?.(t)})(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f())},placeholder:e,fontSize:"16px",color:"text",fontWeight:300,resize:"none",lineHeight:"1.5",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),qa.jsx(Mg,{position:"absolute",bottom:"8px",left:"12px",size:"xs",borderRadius:"full",bg:"background","aria-label":"Upload image",onClick:d,_hover:{bg:"background"},disabled:u,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",color:"text",children:u?qa.jsx(Tg,{size:"sm",color:"text"}):qa.jsx(qm,{size:"full",color:"text"})}),qa.jsx(Mg,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Send",onClick:()=>f(),_hover:{bg:"veryLightBackground"},disabled:!s.trim()&&!c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"background",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:qa.jsx(zm,{boxSize:"30px",color:"primary"})})]})})]})},Xm=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:n}=mm();return qa.jsx(qg,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:qa.jsx(Uc,{bg:"lightBackground",borderRadius:"32px",position:"relative",p:3,w:"full",h:"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:qa.jsx(Uc,{position:"absolute",top:0,left:0,right:0,bottom:0,p:3,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:qa.jsxs(Ug,{justify:"space-between",align:"center",h:"full",children:[qa.jsx(mu,{color:"mutedText",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),qa.jsx(Mg,{size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Stop",onClick:()=>{n?.(),t?.()},_hover:{bg:"veryLightBackground"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:qa.jsx(Pm,{boxSize:"30px",color:"primary"})})]})})})})},Km=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r})=>{const[i,o]=Qa.useState(t),[a,s]=Qa.useState(!1),{uploadedImage:l,isUploading:c,handleFileSelect:u,removeImage:d}=Lm(),p=Qa.useRef(null);Qa.useEffect(()=>{o(g(t))},[t]);const f=()=>{(i.trim()||l)&&(r?.({message:i.trim(),imageUrl:l?.url}),o(""),d())},h=e=>` ${e}`,g=e=>e.trimStart();return qa.jsxs(qg,{gap:2,align:"stretch",children:[l&&qa.jsx(Uc,{mb:2,alignSelf:"flex-start",bg:"transparent",children:qa.jsx(Gm,{imageUrl:l.preview,onRemove:d})}),qa.jsxs(Uc,{bg:"lightBackground",borderRadius:"24px",position:"relative",p:2,w:"full",h:a?"80px":"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:()=>{s(!0),setTimeout(()=>{if(p.current){p.current.focus();const e=p.current.value.length;p.current.setSelectionRange(e,e)}},100)},children:[qa.jsx(Uc,{position:"absolute",top:"8px",left:"8px",zIndex:2,children:qa.jsx(Om,{w:"24px",h:"24px",transform:"rotate(2700deg)",color:"primary"})}),qa.jsx(Uc,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:a?0:1,transform:a?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:a?"none":"auto",children:qa.jsx(Ug,{justify:"space-between",align:"center",h:"full",children:qa.jsx(mu,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),qa.jsx(Mg,{position:"absolute",bottom:"7.5px",right:"52px",size:"xs",borderRadius:"full",bg:"background",color:"text","aria-label":"Upload image",onClick:e=>{e.stopPropagation(),u()},_hover:{bg:"veryLightBackground"},disabled:c,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,border:"1px solid",borderColor:"borderColor",children:c?qa.jsx(Tg,{size:"sm"}):qa.jsx(qm,{size:"24px"})}),qa.jsx(Mg,{position:"absolute",bottom:"8px",right:"12px",size:"xs",borderRadius:"full",bg:"primary","aria-label":"Send",onClick:e=>{e.stopPropagation(),f()},_hover:{bg:"darkPrimary"},disabled:!i.trim()&&!l,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"lightPrimary",cursor:"not-allowed"},transform:"scale(1) rotate(180deg)",zIndex:2,children:qa.jsx(Rm,{boxSize:"30px",color:"text"})}),qa.jsx(Uc,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:a?1:0,transform:a?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:a?"auto":"none",children:qa.jsx(im,{ref:p,value:h(i),onChange:e=>(e=>{const t=g(e);o(t),n?.(t)})(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f())},placeholder:h(e),fontSize:"16px",color:"text",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"mutedText"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2,lineHeight:"1.5"})})]})]})},Qm=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:n="",onChange:r,onSend:i,onStop:o})=>{const[a,s]=Qa.useState(!1);return Qa.useEffect(()=>{const e=()=>{s(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),"starting"===e?qa.jsx(Ym,{placeholder:t,value:n,onChange:r,onSend:i,isMobileView:a}):"generating"===e?qa.jsx(Xm,{placeholder:t,onStop:o,isMobileView:a}):qa.jsx(Km,{placeholder:t,value:n,onChange:r,onSend:i})},Zm=(e,t)=>{const n=e.includes("?")?"&":"?";return`${e}${n}utm_source=customer_referral&utm_medium=widget&utm_campaign=powered_by&utm_term=${t}`},Jm=()=>{const{botData:e}=mm(),{isMobile:t}=om();return qa.jsxs(Ug,{gapX:2,justifyContent:t?"start":"center",align:"center",alignContent:"center",alignItems:"center",w:"full",wrap:t?"wrap":"nowrap",children:[qa.jsxs(Vg,{href:Zm("https://dori.tech/",e?.sharing_id||""),target:"_blank",children:[qa.jsxs(mu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",fontFamily:"Estedad-FD, system-ui, sans-serif",lineHeight:"1.4",children:["Powered by"," "]}),qa.jsx(Bg,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori-16px.webp",alt:"Bot Image",h:{base:"14px",md:"16px"}}),!t&&qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"mutedText",textAlign:"center",lineHeight:"1.4",children:"-"})]}),qa.jsx(Uc,{fontSize:"10px",color:"mutedText",px:0,py:0,bg:"transparent",border:"none",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1,children:qa.jsx(Uc,{as:"span",children:"AI can make mistakes. Check important info"})})]})},ev=({onStartChat:e,isMobile:t,isExpanded:n=!1,onToggleExpand:r,onClose:i})=>{const{inputValue:o,handleInputChange:a}=((e="")=>{const[t,n]=Qa.useState(e),r=Qa.useCallback(e=>{n(e)},[]),i=Qa.useCallback(e=>{t.trim()&&e&&(e(t.trim()),n(""))},[t]),o=Qa.useCallback((e,t)=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),i(t))},[i]),a=Qa.useCallback(()=>{n("")},[]),s=Qa.useCallback(e=>{n(e)},[]);return{inputValue:t,setInputValue:n,handleInputChange:r,handleSubmit:i,handleKeyPress:o,clearInput:a,setInput:s}})(),{botData:s}=mm(),l=s?.white_label?.is_white_labeled??!1,c=km(Cg("colors","primary")),u=({message:t,imageUrl:n})=>{(t.trim()||n)&&e(t.trim(),n)};return qa.jsxs(qa.Fragment,{children:[qa.jsx(Am,{onClose:i,isMobile:t,isExpanded:n,onToggleExpand:r}),qa.jsxs(qg,{h:"full",justify:"space-between",align:"stretch",gap:6,children:[qa.jsx(qg,{gap:4,w:"full",align:"start",mb:"32px",children:qa.jsx(mu,{fontWeight:n?600:500,fontStyle:"normal",fontSize:"24px",letterSpacing:"0",textAlign:n?"center":"right",fontFamily:"Estedad-FD, system-ui, sans-serif",css:{background:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:am(s?.agent_name)})}),qa.jsxs(qg,{gap:4,align:"stretch",flex:1,justify:"start",children:[qa.jsx(Uc,{children:qa.jsx(Qm,{state:"minimized",placeholder:"Ask anything you need",value:o,onChange:a,onSend:u})}),qa.jsx(Uc,{w:"full",children:qa.jsx(Uc,{display:"grid",gridTemplateColumns:{base:"1fr",md:"1fr 1fr"},gap:3,w:"full",children:s?.suggestedReply.map((e,t)=>qa.jsxs(Ag,{variant:"outline",borderRadius:"24px",border:"1px solid #EDEDED",borderColor:"borderColor",bg:"lightBackground",color:"text",fontSize:"14px",fontWeight:400,padding:"8px 12px 8px 12px",_hover:{bg:"veryLightBackground",borderColor:"borderColor"},onClick:()=>(e=>{u({message:e,imageUrl:void 0})})(e),justifyContent:"start",w:"full",height:"auto",lineHeight:"1.5",whiteSpace:"pre-wrap",children:[qa.jsx(Em,{boxSize:"16px",color:"text"}),qa.jsx(Uc,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})]},t))})})]}),!l&&qa.jsx(Uc,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:qa.jsx(Jm,{variant:"default"})})]})]})},tv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rv={};function iv(e,t){return(rv.jsx?nv:tv).test(e)}const ov=/[ \t\n\f\r]/g;function av(e){return""===e.replace(ov,"")}class sv{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function lv(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new sv(n,r,t)}function cv(e){return e.toLowerCase()}sv.prototype.normal={},sv.prototype.property={},sv.prototype.space=void 0;class uv{constructor(e,t){this.attribute=t,this.property=e}}uv.prototype.attribute="",uv.prototype.booleanish=!1,uv.prototype.boolean=!1,uv.prototype.commaOrSpaceSeparated=!1,uv.prototype.commaSeparated=!1,uv.prototype.defined=!1,uv.prototype.mustUseProperty=!1,uv.prototype.number=!1,uv.prototype.overloadedBoolean=!1,uv.prototype.property="",uv.prototype.spaceSeparated=!1,uv.prototype.space=void 0;let dv=0;const pv=yv(),fv=yv(),hv=yv(),gv=yv(),mv=yv(),vv=yv(),bv=yv();function yv(){return 2**++dv}const xv=Object.freeze(Object.defineProperty({__proto__:null,boolean:pv,booleanish:fv,commaOrSpaceSeparated:bv,commaSeparated:vv,number:gv,overloadedBoolean:hv,spaceSeparated:mv},Symbol.toStringTag,{value:"Module"})),kv=Object.keys(xv);class wv extends uv{constructor(e,t,n,r){let i=-1;if(super(e,t),Sv(this,"space",r),"number"==typeof n)for(;++i<kv.length;){const e=kv[i];Sv(this,kv[i],(n&xv[e])===xv[e])}}}function Sv(e,t,n){n&&(e[t]=n)}function _v(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new wv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[cv(r)]=r,n[cv(o.attribute)]=r}return new sv(t,n,e.space)}wv.prototype.defined=!0;const Cv=_v({properties:{ariaActiveDescendant:null,ariaAtomic:fv,ariaAutoComplete:null,ariaBusy:fv,ariaChecked:fv,ariaColCount:gv,ariaColIndex:gv,ariaColSpan:gv,ariaControls:mv,ariaCurrent:null,ariaDescribedBy:mv,ariaDetails:null,ariaDisabled:fv,ariaDropEffect:mv,ariaErrorMessage:null,ariaExpanded:fv,ariaFlowTo:mv,ariaGrabbed:fv,ariaHasPopup:null,ariaHidden:fv,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mv,ariaLevel:gv,ariaLive:null,ariaModal:fv,ariaMultiLine:fv,ariaMultiSelectable:fv,ariaOrientation:null,ariaOwns:mv,ariaPlaceholder:null,ariaPosInSet:gv,ariaPressed:fv,ariaReadOnly:fv,ariaRelevant:null,ariaRequired:fv,ariaRoleDescription:mv,ariaRowCount:gv,ariaRowIndex:gv,ariaRowSpan:gv,ariaSelected:fv,ariaSetSize:gv,ariaSort:null,ariaValueMax:gv,ariaValueMin:gv,ariaValueNow:gv,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ev(e,t){return t in e?e[t]:t}function Pv(e,t){return Ev(e,t.toLowerCase())}const zv=_v({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vv,acceptCharset:mv,accessKey:mv,action:null,allow:null,allowFullScreen:pv,allowPaymentRequest:pv,allowUserMedia:pv,alt:null,as:null,async:pv,autoCapitalize:null,autoComplete:mv,autoFocus:pv,autoPlay:pv,blocking:mv,capture:null,charSet:null,checked:pv,cite:null,className:mv,cols:gv,colSpan:null,content:null,contentEditable:fv,controls:pv,controlsList:mv,coords:gv|vv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pv,defer:pv,dir:null,dirName:null,disabled:pv,download:hv,draggable:fv,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pv,formTarget:null,headers:mv,height:gv,hidden:hv,high:gv,href:null,hrefLang:null,htmlFor:mv,httpEquiv:mv,id:null,imageSizes:null,imageSrcSet:null,inert:pv,inputMode:null,integrity:null,is:null,isMap:pv,itemId:null,itemProp:mv,itemRef:mv,itemScope:pv,itemType:mv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pv,low:gv,manifest:null,max:null,maxLength:gv,media:null,method:null,min:null,minLength:gv,multiple:pv,muted:pv,name:null,nonce:null,noModule:pv,noValidate:pv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:pv,optimum:gv,pattern:null,ping:mv,placeholder:null,playsInline:pv,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pv,referrerPolicy:null,rel:mv,required:pv,reversed:pv,rows:gv,rowSpan:gv,sandbox:mv,scope:null,scoped:pv,seamless:pv,selected:pv,shadowRootClonable:pv,shadowRootDelegatesFocus:pv,shadowRootMode:null,shape:null,size:gv,sizes:null,slot:null,span:gv,spellCheck:fv,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gv,step:null,style:null,tabIndex:gv,target:null,title:null,translate:null,type:null,typeMustMatch:pv,useMap:null,value:fv,width:gv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mv,axis:null,background:null,bgColor:null,border:gv,borderColor:null,bottomMargin:gv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pv,declare:pv,event:null,face:null,frame:null,frameBorder:null,hSpace:gv,leftMargin:gv,link:null,longDesc:null,lowSrc:null,marginHeight:gv,marginWidth:gv,noResize:pv,noHref:pv,noShade:pv,noWrap:pv,object:null,profile:null,prompt:null,rev:null,rightMargin:gv,rules:null,scheme:null,scrolling:fv,standby:null,summary:null,text:null,topMargin:gv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pv,disableRemotePlayback:pv,prefix:null,property:null,results:gv,security:null,unselectable:null},space:"html",transform:Pv}),Rv=_v({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:bv,accentHeight:gv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gv,amplitude:gv,arabicForm:null,ascent:gv,attributeName:null,attributeType:null,azimuth:gv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gv,by:null,calcMode:null,capHeight:gv,className:mv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:gv,diffuseConstant:gv,direction:null,display:null,dur:null,divisor:gv,dominantBaseline:null,download:pv,dx:null,dy:null,edgeMode:null,editable:null,elevation:gv,enableBackground:null,end:null,event:null,exponent:gv,externalResourcesRequired:null,fill:null,fillOpacity:gv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:vv,g2:vv,glyphName:vv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gv,horizOriginX:gv,horizOriginY:gv,id:null,ideographic:gv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gv,k:gv,k1:gv,k2:gv,k3:gv,k4:gv,kernelMatrix:bv,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:gv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:gv,overlineThickness:gv,paintOrder:null,panose1:null,path:null,pathLength:gv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gv,pointsAtY:gv,pointsAtZ:gv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bv,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bv,rev:bv,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bv,requiredFeatures:bv,requiredFonts:bv,requiredFormats:bv,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:gv,specularExponent:gv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gv,strikethroughThickness:gv,string:null,stroke:null,strokeDashArray:bv,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gv,strokeOpacity:gv,strokeWidth:null,style:null,surfaceScale:gv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bv,tabIndex:gv,tableValues:null,target:null,targetX:gv,targetY:gv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bv,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gv,underlineThickness:gv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gv,values:null,vAlphabetic:gv,vMathematical:gv,vectorEffect:null,vHanging:gv,vIdeographic:gv,version:null,vertAdvY:gv,vertOriginX:gv,vertOriginY:gv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ev}),Tv=_v({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Iv=_v({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pv}),Ov=_v({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Fv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Av=/[A-Z]/g,Mv=/-[a-z]/g,Lv=/^data[-\w.:]+$/i;function Dv(e){return"-"+e.toLowerCase()}function jv(e){return e.charAt(1).toUpperCase()}const Nv=lv([Cv,zv,Tv,Iv,Ov],"html"),$v=lv([Cv,Rv,Tv,Iv,Ov],"svg");var Bv,Wv,Vv,Hv={};function Uv(){if(Wv)return Bv;Wv=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return Bv=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,p=1;function f(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function m(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=s,!u.silent)throw t}function v(e){var t=e.exec(s);if(t){var n=t[0];return f(n),s=s.slice(n.length),t}}function b(){v(n)}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return m("End of comment missing");var n=s.slice(2,t-2);return p+=2,f(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function k(){var t=h(),n=v(r);if(n){if(x(),!v(i))return m("property missing ':'");var s=v(o),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return v(a),u}}return g.prototype.content=s,b(),function(){var e,t=[];for(y(t);e=k();)!1!==e&&(t.push(e),y(t));return t}()}}function qv(){if(Vv)return Hv;Vv=1;var e=Hv&&Hv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var i=(0,t.default)(e),o="function"==typeof n;return i.forEach(function(e){if("declaration"===e.type){var t=e.property,i=e.value;o?n(t,i,e):i&&((r=r||{})[t]=i)}}),r};var t=e(Uv());return Hv}var Gv,Yv,Xv,Kv={};function Qv(){if(Gv)return Kv;Gv=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};return Kv.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(i,a):s.replace(r,a)).replace(t,o))},Kv}function Zv(){if(Xv)return Yv;Xv=1;var e=Yv&&Yv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},t=e(qv()),n=Qv();function r(e,r){var i={};return e&&"string"==typeof e?((0,t.default)(e,function(e,t){e&&t&&(i[(0,n.camelCase)(e,r)]=t)}),i):i}return r.default=r,Yv=r}const Jv=La(Zv()),eb=nb("end"),tb=nb("start");function nb(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function rb(e){return e&&"object"==typeof e?"position"in e||"type"in e?ob(e.position):"start"in e||"end"in e?ob(e):"line"in e||"column"in e?ib(e):"":""}function ib(e){return ab(e&&e.line)+":"+ab(e&&e.column)}function ob(e){return ib(e&&e.start)+"-"+ib(e&&e.end)}function ab(e){return e&&"number"==typeof e?e:1}class sb extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=rb(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}sb.prototype.file="",sb.prototype.name="",sb.prototype.reason="",sb.prototype.message="",sb.prototype.stack="",sb.prototype.column=void 0,sb.prototype.line=void 0,sb.prototype.ancestors=void 0,sb.prototype.cause=void 0,sb.prototype.fatal=void 0,sb.prototype.place=void 0,sb.prototype.ruleId=void 0,sb.prototype.source=void 0;const lb={}.hasOwnProperty,cb=new Map,ub=/[A-Z]/g,db=new Set(["table","tbody","thead","tfoot","tr"]),pb=new Set(["td","th"]),fb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hb(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=$v,e.schema=i),e.ancestors.push(t);const o=yb(e,t.tagName,!1),a=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&lb.call(t.properties,i)){const o=bb(e,i,t.properties[i]);if(o){const[i,a]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&pb.has(t.tagName)?r=a:n[i]=a}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=vb(e,t);return db.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&av(t.value):av(t));var t})),gb(e,a,o,t),mb(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return e.evaluater.evaluateExpression(n.expression)}xb(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=$v,e.schema=i),e.ancestors.push(t);const o=null===t.name?e.Fragment:yb(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(t.argument))}else xb(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];o=e.evaluater.evaluateExpression(t.expression)}else xb(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),s=vb(e,t);return gb(e,a,o,t),mb(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xb(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return mb(r,vb(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function gb(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function mb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vb(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:cb;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}const s=hb(e,o,a);void 0!==s&&n.push(s)}return n}function bb(e,t,n){const r=function(e,t){const n=cv(t);let r=t,i=uv;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Lv.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Mv,jv);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Mv.test(e)){let n=e.replace(Av,Dv);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=wv}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Jv(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new sb("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=fb+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)lb.call(e,n)&&(t[kb(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Fv[r.property]||r.property:r.attribute,n]}}function yb(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=iv(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=iv(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return lb.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);xb(e)}function xb(e,t){const n=new sb("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function kb(e){let t=e.replace(ub,wb);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function wb(e){return"-"+e.toLowerCase()}const Sb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_b={};function Cb(e,t){return Eb(e,"boolean"!=typeof _b.includeImageAlt||_b.includeImageAlt,"boolean"!=typeof _b.includeHtml||_b.includeHtml)}function Eb(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Pb(e.children,t,n)}return Array.isArray(e)?Pb(e,t,n):""}function Pb(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Eb(e[i],t,n);return r.join("")}const zb=document.createElement("i");function Rb(e){const t="&"+e+";";zb.innerHTML=t;const n=zb.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function Tb(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ib(e,t){return e.length>0?(Tb(e,e.length,0,t),e):t}const Ob={}.hasOwnProperty;function Fb(e){const t={};let n=-1;for(;++n<e.length;)Ab(t,e[n]);return t}function Ab(e,t){let n;for(n in t){const r=(Ob.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Ob.call(r,o)||(r[o]=[]);const e=i[o];Mb(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Mb(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Tb(e,0,0,r)}function Lb(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Db(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jb=Kb(/[A-Za-z]/),Nb=Kb(/[\dA-Za-z]/),$b=Kb(/[#-'*+\--9=?A-Z^-~]/);function Bb(e){return null!==e&&(e<32||127===e)}const Wb=Kb(/\d/),Vb=Kb(/[\dA-Fa-f]/),Hb=Kb(/[!-/:-@[-`{-~]/);function Ub(e){return null!==e&&e<-2}function qb(e){return null!==e&&(e<0||32===e)}function Gb(e){return-2===e||-1===e||32===e}const Yb=Kb(new RegExp("\\p{P}|\\p{S}","u")),Xb=Kb(/\s/);function Kb(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Qb(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&Nb(e.charCodeAt(n+1))&&Nb(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Zb(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Gb(r)?(e.enter(n),a(r)):t(r)};function a(r){return Gb(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const Jb={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Zb(e,t,"linePrefix");e.consume(n)},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Ub(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},ey={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Tb(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return h(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ty,u,d)(i)}function u(e){return r&&b(),v(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(ty,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&b(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):Ub(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Tb(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ty={tokenize:function(e,t,n){return Zb(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ny(e){return null===e||qb(e)||Xb(e)?1:Yb(e)?2:void 0}function ry(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const iy={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};oy(d,-s),oy(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[u][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Ib(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Ib(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Ib(l,ry(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Ib(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Ib(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Tb(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ny(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=ny(s),u=!c||2===c&&i||n.includes(s),d=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!d)),l._close=Boolean(42===o?d:d&&(c||!u)),t(s)}}};function oy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ay={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return jb(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Nb(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Nb(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Bb(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):$b(t)?(e.consume(t),l):n(t)}function c(e){return Nb(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Nb(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},sy={partial:!0,tokenize:function(e,t,n){return function(t){return Gb(t)?Zb(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Ub(e)?t(e):n(e)}}},ly={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Gb(t)?Zb(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ly,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Gb(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},cy={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Hb(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},uy={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Nb,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Vb,c):(e.enter("characterReferenceValue"),i=7,o=Wb,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==Nb||Rb(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}},dy={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},py={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),Gb(t)?Zb(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Gb(t)?Zb(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||Ub(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Gb(t)?Zb(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Ub(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(dy,f,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Ub(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Gb(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Zb(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||Ub(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ub(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function f(t){return e.attempt(i,b,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&Gb(t)?Zb(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||Ub(t)?e.check(dy,f,b)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Ub(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function b(n){return e.exit("codeFenced"),t(n)}}},fy={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Zb(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):Ub(t)?e.attempt(hy,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Ub(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},hy={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Ub(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Zb(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Ub(e)?i(e):n(e)}}},gy={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Ub(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Ub(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};class my{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&vy(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),vy(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vy(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);vy(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);vy(this.left,t.reverse())}}}function vy(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function by(e){const t={};let n,r,i,o,a,s,l,c=-1;const u=new my(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,yy(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Tb(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function yy(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,p=-1,f=n,h=0,g=0;const m=[g];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(g=p+1,m.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),p=m.length;p--;){const t=s.slice(m[p],m[p+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const xy={resolve:function(e){return by(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Ub(t)?e.check(ky,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ky={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Zb(e,i,"linePrefix")};function i(i){if(null===i||Ub(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function wy(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||Bb(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Ub(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return u||null!==i&&41!==i&&!qb(i)?u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||Bb(i)?n(i):(e.consume(i),92===i?g:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Sy(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Ub(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Ub(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Gb(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function _y(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):Ub(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Zb(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Ub(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Cy(e,t){let n;return function r(i){return Ub(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Gb(i)?Zb(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Ey={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Sy.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Db(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return qb(t)?Cy(e,s)(t):s(t)}function s(t){return wy(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Py,c,c)(t)}function c(t){return Gb(t)?Zb(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Ub(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Py={partial:!0,tokenize:function(e,t,n){return function(t){return qb(t)?Cy(e,r)(t):n(t)};function r(t){return _y(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Gb(t)?Zb(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Ub(e)?t(e):n(e)}}},zy={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Ub(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ry={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Tb(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||qb(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Ub(n)?(e.exit("atxHeading"),t(n)):Gb(n)?Zb(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||qb(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}}},Ty=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Iy=["pre","script","style","textarea"],Oy={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,f):63===s?(e.consume(s),i=3,r.interrupt?t:A):jb(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(o){return 45===o?(e.consume(o),i=2,d):91===o?(e.consume(o),i=5,s=0,p):jb(o)?(e.consume(o),i=4,r.interrupt?t:A):n(o)}function d(i){return 45===i?(e.consume(i),r.interrupt?t:A):n(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:E:p):n(i)}function f(t){return jb(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||qb(s)){const l=47===s,c=a.toLowerCase();return l||o||!Iy.includes(c)?Ty.includes(a.toLowerCase())?(i=6,l?(e.consume(s),g):r.interrupt?t(s):E(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):v(s)):(i=1,r.interrupt?t(s):E(s))}return 45===s||Nb(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:E):n(i)}function m(t){return Gb(t)?(e.consume(t),m):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||jb(t)?(e.consume(t),b):Gb(t)?(e.consume(t),v):_(t)}function b(t){return 45===t||46===t||58===t||95===t||Nb(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),x):Gb(t)?(e.consume(t),y):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,k):Gb(t)?(e.consume(t),x):w(t)}function k(t){return t===l?(e.consume(t),l=null,S):null===t||Ub(t)?n(t):(e.consume(t),k)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||qb(t)?y(t):(e.consume(t),w)}function S(e){return 47===e||62===e||Gb(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Ub(t)?E(t):Gb(t)?(e.consume(t),C):n(t)}function E(t){return 45===t&&2===i?(e.consume(t),T):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),A):93===t&&5===i?(e.consume(t),F):!Ub(t)||6!==i&&7!==i?null===t||Ub(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(Fy,L,P)(t))}function P(t){return e.check(Ay,z,L)(t)}function z(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||Ub(t)?P(t):(e.enter("htmlFlowData"),E(t))}function T(t){return 45===t?(e.consume(t),A):E(t)}function I(t){return 47===t?(e.consume(t),a="",O):E(t)}function O(t){if(62===t){const n=a.toLowerCase();return Iy.includes(n)?(e.consume(t),M):E(t)}return jb(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),O):E(t)}function F(t){return 93===t?(e.consume(t),A):E(t)}function A(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),A):E(t)}function M(t){return null===t||Ub(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),M)}function L(n){return e.exit("htmlFlow"),t(n)}}},Fy={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(sy,t,n)}}},Ay={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return Ub(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},My={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):jb(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,f):jb(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Ub(t)?(a=u,O(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function f(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):Ub(t)?(a=h,O(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?I(t):93===t?(e.consume(t),m):h(t)}function v(t){return null===t||62===t?I(t):Ub(t)?(a=v,O(t)):(e.consume(t),v)}function b(t){return null===t?n(t):63===t?(e.consume(t),y):Ub(t)?(a=b,O(t)):(e.consume(t),b)}function y(e){return 62===e?I(e):b(e)}function x(t){return jb(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||Nb(t)?(e.consume(t),k):w(t)}function w(t){return Ub(t)?(a=w,O(t)):Gb(t)?(e.consume(t),w):I(t)}function S(t){return 45===t||Nb(t)?(e.consume(t),S):47===t||62===t||qb(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),I):58===t||95===t||jb(t)?(e.consume(t),C):Ub(t)?(a=_,O(t)):Gb(t)?(e.consume(t),_):I(t)}function C(t){return 45===t||46===t||58===t||95===t||Nb(t)?(e.consume(t),C):E(t)}function E(t){return 61===t?(e.consume(t),P):Ub(t)?(a=E,O(t)):Gb(t)?(e.consume(t),E):_(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,z):Ub(t)?(a=P,O(t)):Gb(t)?(e.consume(t),P):(e.consume(t),R)}function z(t){return t===i?(e.consume(t),i=void 0,T):null===t?n(t):Ub(t)?(a=z,O(t)):(e.consume(t),z)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||qb(t)?_(t):(e.consume(t),R)}function T(e){return 47===e||62===e||qb(e)?_(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return Gb(t)?Zb(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):A(t)}function A(t){return e.enter("htmlTextData"),a(t)}}},Ly={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&Tb(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Ib(o,e.slice(r+1,r+s+3)),o=Ib(o,[["enter",u,t]]),o=Ib(o,ry(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=Ib(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=Ib(o,e.slice(i+1)),o=Ib(o,[["exit",l,t]]),Tb(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){return i?i._inactive?u(t):(o=r.parser.defined.includes(Db(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(Dy,c,o?c:u)(t):91===t?e.attempt(jy,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Ny,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},Dy={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return qb(t)?Cy(e,i)(t):i(t)}function i(t){return 41===t?c(t):wy(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return qb(t)?Cy(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?_y(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return qb(t)?Cy(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},jy={tokenize:function(e,t,n){const r=this;return function(t){return Sy.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Db(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Ny={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},$y={name:"labelStartImage",resolveAll:Ly.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},By={name:"labelStartLink",resolveAll:Ly.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},Wy={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Zb(e,t,"linePrefix")}}},Vy={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||Ub(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),Gb(t)?Zb(e,o,"whitespace")(t):o(t))}}},Hy={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(sy,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Zb(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Gb(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qy,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Zb(e,e.attempt(Hy,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Wb(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Vy,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Wb(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(sy,r.interrupt?n:c,e.attempt(Uy,d,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return Gb(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Uy={partial:!0,tokenize:function(e,t,n){const r=this;return Zb(e,function(e){const i=r.events[r.events.length-1];return!Gb(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},qy={partial:!0,tokenize:function(e,t,n){const r=this;return Zb(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},Gy={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Gb(t)?Zb(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Ub(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},Yy={tokenize:function(e){const t=this,n=e.attempt(sy,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Zb(e,e.attempt(this.parser.constructs.flow,r,e.attempt(xy,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Xy={resolveAll:Jy()},Ky=Zy("string"),Qy=Zy("text");function Zy(e){return{resolveAll:Jy("text"===e?ex:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Jy(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ex(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const tx={42:Hy,43:Hy,45:Hy,48:Hy,49:Hy,50:Hy,51:Hy,52:Hy,53:Hy,54:Hy,55:Hy,56:Hy,57:Hy,62:ly},nx={91:Ey},rx={[-2]:fy,[-1]:fy,32:fy},ix={35:Ry,42:Vy,45:[Gy,Vy],60:Oy,61:Gy,95:Vy,96:py,126:py},ox={38:uy,92:cy},ax={[-5]:Wy,[-4]:Wy,[-3]:Wy,33:$y,38:uy,42:iy,60:[ay,My],91:By,92:[zy,cy],93:Ly,95:iy,96:gy},sx={null:[iy,Xy]},lx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:nx,disable:{null:[]},document:tx,flow:ix,flowInitial:rx,insideSpan:sx,string:ox,text:ax},Symbol.toStringTag,{value:"Module"}));function cx(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:g(function(e,t){m(e,t.from)}),check:g(h),consume:function(e){Ub(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,v()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){return a=Ib(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}(),null!==a[a.length-1]?[]:(m(t,0),c.events=ry(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e){u=u(e)}function h(e,t){t.restore()}function g(e,t){return function(n,i,o){let a,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(h=n,function(e){const t=null!==e&&h[e],n=null!==e&&h.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var h;function g(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){return f=function(){const e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,v()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,y)(n)}}function b(t){return e(d,f),i}function y(e){return f.restore(),++u<a.length?m(a[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Tb(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const ux=/[\0\t\n\r]/g,dx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function px(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Lb(n.slice(t?2:1),t?16:10)}return Rb(n)||e}const fx={}.hasOwnProperty;function hx(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(b),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(g),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(h),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(h,o),codeText:i(function(){return{type:"inlineCode",value:""}},o),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(m),hardBreakTrailing:i(m),htmlFlow:i(v,o),htmlFlowData:u,htmlText:i(v,o),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:o,link:i(b),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(y),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(g),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=Lb(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=Rb(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=gx(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Db(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(dx,px)}(t),n.identifier=Db(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=gx(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Db(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};mx(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:o,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];fx.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||bx).call(s,void 0,e[0])}for(i.position={start:gx(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:gx(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function r(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:gx(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+rb({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||bx).call(this,e,r[0])),n.position.end=gx(e.end)}function c(){return Cb(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:gx(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=gx(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function v(){return{type:"html",value:""}}function b(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!by(e););return e}(function(e){const t={constructs:Fb([lx,...(e||{}).extensions||[]]),content:n(Jb),defined:[],document:n(ey),flow:n(Yy),lazy:{},string:n(Ky),text:n(Qy)};return t;function n(e){return function(n){return cx(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,d,p;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(ux.lastIndex=u,l=ux.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){n=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function gx(e){return{line:e.line,column:e.column,offset:e.offset}}function mx(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?mx(e,r):vx(e,r)}}function vx(e,t){let n;for(n in t)if(fx.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function bx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rb({start:t.start,end:t.end})+") is still open")}function yx(e){const t=this;t.parser=function(n){return hx(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xx(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function kx(e){const t=e.spread;return null==t?e.children.length>1:t}function wx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Sx(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Sx(t.slice(i),i>0,!1)),o.join("")}function Sx(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const _x={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Qb(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return xx(e,t);const i={src:Qb(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Qb(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return xx(e,t);const i={href:Qb(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Qb(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=kx(n[r])}return t}(n):kx(t),o={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=tb(t.children[1]),a=eb(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:wx(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Cx,yaml:Cx,definition:Cx,footnoteDefinition:Cx};function Cx(){}const Ex="object"==typeof self?self:globalThis,Px=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Ex[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new Ex[o](a),i)};return r})(new Map,e)(0),zx="",{toString:Rx}={},{keys:Tx}=Object,Ix=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Rx.call(e).slice(8,-1);switch(n){case"Array":return[1,zx];case"Object":return[2,zx];case"Date":return[3,zx];case"RegExp":return[4,zx];case"Map":return[5,zx];case"Set":return[6,zx];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ox=([e,t])=>0===e&&("function"===t||"symbol"===t),Fx=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=Ix(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([a,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([a,n],r);for(const t of Tx(r))!e&&Ox(Ix(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[i,a]of r)(e||!Ox(Ix(i))&&!Ox(Ix(a)))&&t.push([o(i),o(a)]);return n}case 6:{const t=[],n=i([a,t],r);for(const i of r)!e&&Ox(Ix(i))||t.push(o(i));return n}}const{message:l}=r;return i([a,{name:s,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Ax="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Px(Fx(e,t)):structuredClone(e):(e,t)=>Px(Fx(e,t));function Mx(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Lx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Dx=function(e){if(null==e)return Nx;if("function"==typeof e)return jx(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dx(e[n]);return jx(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return jx(function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,jx(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function jx(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Nx(){return!0}const $x=[],Bx=!1;function Wx(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=Dx(i),a=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=$x;if((!t||o(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?$x:[e]}(n(i,l)),p[0]===Bx))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Bx)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function Vx(e,t,n,r){let i,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),Wx(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}const Hx={}.hasOwnProperty,Ux={};function qx(e,t){e.position&&(t.position=function(e){const t=tb(e),n=eb(e);if(t&&n)return{start:t,end:n}}(e))}function Gx(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,Ax(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Yx(e,t){const n=t.data||{},r=!("value"in t)||Hx.call(n,"hProperties")||Hx.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Xx(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Kx(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Qx(e,t){const n=function(e,t){const n=t||Ux,r=new Map,i=new Map,o=new Map,a={..._x,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Kx(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Kx(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Gx,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(Hx.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ax(n);return r.children=s.all(e),r}return Ax(e)}return(s.options.unknownHandler||Yx)(s,e,t)},options:n,patch:qx,wrap:Xx};return Vx(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Mx,r=e.options.footnoteBackLabel||Lx,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),a=String(i.identifier).toUpperCase(),c=Qb(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else o.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ax(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Zx(e,t){return e&&"run"in e?async function(n,r){const i=Qx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Qx(n,{file:r,...e||t})}}function Jx(e){if(e)throw e}var ek,tk;function nk(){if(tk)return ek;tk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return ek=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},ek}const rk=La(nk());function ik(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const ok=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');uk(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},ak=function(e){if(uk(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},sk=function(e){uk(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},lk=function(...e){let t,n=-1;for(;++n<e.length;)uk(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){uk(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},ck="/";function uk(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dk=function(){return"/"};function pk(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const fk=["history","path","basename","stem","extname","dirname"];class hk{constructor(e){let t;t=e?pk(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":dk(),this.data={},this.history=[],this.messages=[];let n,r=-1;for(;++r<fk.length;){const e=fk[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)fk.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ok(this.path):void 0}set basename(e){mk(e,"basename"),gk(e,"basename"),this.path=lk(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ak(this.path):void 0}set dirname(e){vk(this.basename,"dirname"),this.path=lk(e||"",this.basename)}get extname(){return"string"==typeof this.path?sk(this.path):void 0}set extname(e){if(gk(e,"extname"),vk(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lk(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){pk(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!pk(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),mk(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ok(this.path,this.extname):void 0}set stem(e){mk(e,"stem"),gk(e,"stem"),this.path=lk(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new sb(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function gk(e,t){if(e&&e.includes(ck))throw new Error("`"+t+"` cannot be a path: did not expect `"+ck+"`")}function mk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const bk=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},yk={}.hasOwnProperty;class xk extends bk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return function(...t){const a=e.length>t.length;let s;a&&t.push(r);try{s=e.apply(this,t)}catch(o){if(a&&n)throw o;return r(o)}a||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new xk;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(rk(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(_k("data",this.frozen),this.namespace[e]=t,this):yk.call(this.namespace,e)&&this.namespace[e]||void 0:e?(_k("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Pk(e),n=this.parser||this.Parser;return wk("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),wk("process",this.parser||this.Parser),Sk("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Pk(e),a=n.parse(o);function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){if(e||!t||!r)return s(e);const i=t,o=n.stringify(i,r);var a;"string"==typeof(a=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),wk("processSync",this.parser||this.Parser),Sk("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Jx(e),t=r}),Ek("processSync","process",n),t}run(e,t,n){Ck(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const a=Pk(t);r.run(e,a,function(t,r,a){const s=r||e;t?o(t):i?i(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Jx(e),n=t,r=!0}),Ek("runSync","run",r),n}stringify(e,t){this.freeze();const n=Pk(t),r=this.compiler||this.Compiler;return Sk("stringify",r),Ck(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(_k("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):o(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=rk(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const a=n[i][1];ik(a)&&ik(r)&&(r=rk(!0,a,r)),n[i]=[e,r,...o]}}}}const kk=(new xk).freeze();function wk(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Sk(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function _k(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ck(e){if(!ik(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ek(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pk(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new hk(e)}const zk=[],Rk={allowDangerousHtml:!0},Tk=/^(https?|ircs?|mailto|xmpp)$/i,Ik=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ok(e){const t=function(e){const t=e.rehypePlugins||zk,n=e.remarkPlugins||zk,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rk}:Rk;return kk().use(yx).use(n).use(Zx,r).use(t)}(e),n=function(e){const t=e.children||"",n=new hk;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Fk;for(const c of Ik);return Vx(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Sb)if(Object.hasOwn(Sb,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Sb[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,o){const a=Array.isArray(i.children),s=tb(n);return t(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,r=function(e,t,n,r){const a=Array.isArray(n.children)?o:i;return r?a(t,n,r):a(t,n)}}var i,o;const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?$v:Nv,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=hb(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(e,{Fragment:qa.Fragment,components:i,ignoreInvalidStyle:!0,jsx:qa.jsx,jsxs:qa.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function Fk(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Tk.test(e.slice(0,t))?e:""}const Ak=({message:e,type:t="default"})=>{const n="loading"===t,{botData:r}=mm();return qa.jsxs(Uc,{position:"relative",width:"full",children:[qa.jsx(Uc,{opacity:"0",bg:"lightBackground",borderRadius:"24px",padding:"16px",children:qa.jsx(mu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),qa.jsx(Uc,{h:"50px"}),qa.jsx(Uc,{position:"absolute",left:0,bottom:0,children:qa.jsx(Bg,{src:r?.agent_image||Fm,alt:"Dori",w:"24px",h:"24px",borderRadius:"50%"})}),qa.jsx(Uc,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),qa.jsx(Uc,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"lightBackground",borderRadius:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor"}),qa.jsx(Uc,{position:"absolute",left:"35px",bottom:"35px",bg:"lightBackground",borderRadius:"24px",padding:"16px",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:n?qa.jsx(mu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"mutedText",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):qa.jsx(mu,{fontWeight:400,fontSize:"14px",lineHeight:"21px",color:"text",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},Mk={AED:"د.إ",ARS:"$",AUD:"$",BDT:"৳",BHD:"ب.د",BRL:"R$",CAD:"$",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DZD:"دج",EGP:"E£",EUR:"€",GBP:"£",HKD:"$",HUF:"Ft",IDR:"Rp",INR:"₹",IQD:"ع.د",IRT:"تومان",JOD:"د.أ",JPY:"¥",KES:"KSh",KMF:"CF",KRW:"₩",KWD:"د.ك",LBP:"ل.ل",LKR:"Rs",LYD:"ل.د",MAD:"د.م.",MRU:"UM",MXN:"$",MYR:"RM",NGN:"₦",NOK:"kr",NZD:"$",OMR:"ر.ع.",PHP:"₱",PKR:"₨",PLN:"zł",QAR:"ر.ق",RUB:"₽",SAR:"ر.س",SDG:"ج.س.",SEK:"kr",SGD:"$",SOS:"Sh",SYP:"ل.س",THB:"฿",TND:"د.ت",TRY:"₺",UAH:"₴",USD:"$",VND:"₫",YER:"﷼",ZAR:"R"},Lk=({product:e,isDesktop:t=!1})=>{const{sendMessage:n,setRepliedProduct:r,botData:i,chatState:o}=mm(),a=(i?.currency||"USD").split(" - ")[0]?.trim().toUpperCase()||"USD",s=Mk[a]||a,{name:l,price:c,originalPrice:u,discount:d,image:p,id:f,url:h}=e,[g,m]=Qa.useState(!1),v=Cg("colors","background"),b=Array.isArray(v)?v[0]:v,[y,x]=Qa.useState(b),k=Qa.useRef(null),w=e.description?.length&&e.description?.length>130;Qa.useEffect(()=>{(()=>{if(!k.current)return;const e=k.current,t=()=>{try{const t=document.createElement("canvas"),n=t.getContext("2d");if(!n)return;t.width=e.naturalWidth||e.width,t.height=e.naturalHeight||e.height,n.drawImage(e,0,0);const r=[{x:0,y:0},{x:t.width-1,y:0},{x:0,y:t.height-1},{x:t.width-1,y:t.height-1}],i=[];let o=!1;if(r.forEach(({x:e,y:t})=>{const r=n.getImageData(e,t,1,1).data,[a,s,l,c]=r;if(c<128)o=!0;else{const e=`rgb(${a}, ${s}, ${l})`;i.push(e)}}),o&&0===i.length)return void x(b);if(0===i.length)return void x(b);const a={};i.forEach(e=>{a[e]=(a[e]||0)+1});const s=Object.keys(a).reduce((e,t)=>a[e]>a[t]?e:t);x(s)}catch(t){x(b)}};if(!(e.complete&&e.naturalWidth>0))return e.addEventListener("load",t),()=>{e.removeEventListener("load",t)};t()})()},[p,b]);const S=async()=>{if(!h||!i)return;const t=(e=>{const t=e.includes("?")?"&":"?";return`${e}${t}utm_source=dori&utm_medium=dori_widget&utm_campaign=dori_product_recommendation`})(h);window.open(t,"_blank","noopener,noreferrer"),dm(e,i,o.threadId)};return qa.jsxs(qg,{gap:1,children:[qa.jsx(Uc,{bg:"background",borderRadius:"16px",border:"1px solid",borderColor:"borderColor",p:2,w:t?"full":"159.5px",children:qa.jsxs(qg,{gap:2,align:"stretch",children:[qa.jsx(Uc,{position:"relative",cursor:"pointer",onClick:S,_hover:{opacity:.9},transition:"all 0.3s ease",bg:y,borderRadius:"md",children:qa.jsx(Bg,{ref:k,src:p,alt:l,w:"full",h:"124px",objectFit:"contain",borderRadius:"md",crossOrigin:"anonymous"})}),qa.jsx(mu,{fontWeight:600,fontSize:"12px",lineHeight:"24px",color:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:l,fontFamily:"Estedad-FD, system-ui, sans-serif",cursor:"pointer",onClick:S,_hover:{color:"primary"},transition:"color 0.2s",children:l}),qa.jsx(Uc,{borderRadius:"8px",padding:"4px 8px",w:"full",bg:"lightBackground",cursor:g?"default":"pointer",onClick:g?void 0:()=>{m(!0)},_hover:g?{}:{bg:"veryLightBackground"},transition:"background-color 0.2s",children:qa.jsxs(mu,{fontSize:"12px",fontWeight:400,color:"text",lineHeight:"24px",overflow:"hidden",title:e.description,fontFamily:"Estedad-FD, system-ui, sans-serif",children:[w&&!g?e.description?.substring(0,130)+"... ":e.description,w&&!g&&qa.jsx(mu,{as:"span",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"Estedad-FD, system-ui, sans-serif",children:"More"})]})}),qa.jsx(Ug,{justify:"space-between",align:"end",children:qa.jsxs(qg,{gap:1,align:"start",children:[d&&qa.jsxs(Ug,{gap:1,children:[qa.jsxs(mu,{fontSize:"xs",color:"mutedText",textDecoration:"line-through",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[s,u?.toLocaleString()]}),qa.jsxs(zg,{bg:"errorBackground",color:"error",fontSize:"xs",borderRadius:"24px",children:[d,"%"]})]}),!!c&&c>0&&qa.jsxs(mu,{fontSize:"12px",fontWeight:"700",color:"text",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[s,c?.toLocaleString()||0]})]})})]})}),qa.jsxs(Ug,{gap:.5,w:t?"full":"159.5px",children:[qa.jsx(Mg,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"0px",color:"primary",borderColor:"borderColor",borderRadius:"4px",_hover:{bg:"veryLightBackground"},borderWidth:"1px",onClick:()=>{r({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Are there other colors available?"]})},children:qa.jsx(_m,{boxSize:"16px"})}),qa.jsxs(Ag,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"4px",color:"primary",borderRadius:"4px",flex:1,fontWeight:400,onClick:()=>{n({message:`Do you have similar to ${l}`,apiMessage:`Do you have similar to ${f}`})},_hover:{bg:"veryLightBackground"},borderColor:"borderColor",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[qa.jsx(Cm,{boxSize:"16px"}),"Similar"]})]})]})};var Dk=(e=>(e.OTHER="other",e.SHOPIFY="shopify",e.WORDPRESS_WOOCOMMERCE="wordpress_woocommerce",e))(Dk||{});const jk=({products:e})=>{const{chatState:t,botData:n}=mm(),r=Qa.useRef(new Set);return Qa.useEffect(()=>{const i=void 0!==window.wp||void 0!==window.wc||document.querySelector('meta[name="generator"][content*="WordPress"]')?Dk.WORDPRESS_WOOCOMMERCE:void 0!==window.Shopify||document.querySelector('meta[name="shopify-checkout-api-token"]')||document.querySelector('script[src*="cdn.shopify.com"]')?Dk.SHOPIFY:Dk.OTHER;if(i===Dk.OTHER)return;if(!t.threadId||!n?.sharing_id)return;if(h())return;const o=g(),a=[];e.forEach(e=>{const t=e.external_product_id||"-";r.current.has(t)||(r.current.add(t),a.push(t))}),a.length>0&&pm(a,t.threadId||"",o,i,n.sharing_id)},[e,t.threadId,n?.sharing_id]),qa.jsx(qg,{align:"stretch",gap:2,w:"full",children:qa.jsx(Uc,{px:1,w:"full",children:qa.jsx(Hg,{dir:"ltr",columns:{base:1,md:2},gapX:{base:1,md:2},gapY:{base:2,md:4},w:"full",children:e.map(e=>qa.jsx(Lk,{product:e,isDesktop:!0},e.id))})})})},Nk=({suggestions:e})=>{const{sendMessage:t}=mm();return qa.jsx(qg,{maxW:{base:"230px",md:"70%"},gap:2,align:"stretch",alignSelf:"flex-start",children:e.slice(0,3).map((e,n)=>qa.jsx(Ag,{bg:n%2==0?"background":"lightBackground",border:"1px solid",borderColor:"borderColor",borderRadius:"24px",px:4,h:"auto",lineHeight:"1.5",py:2,onClick:()=>(e=>{t({message:e})})(e),_hover:{bg:"lightBackground",borderColor:"primary"},_active:{bg:"veryLightBackground"},textAlign:"center",justifyContent:"center",w:"full",children:qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"text",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:e})},n))})};function $k(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Bk(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Wk(e){return"function"==typeof e?e:function(){return e}}const Vk="phrasing",Hk=["autolink","link","image","label"];function Uk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qk(e){this.config.enter.autolinkProtocol.call(this,e)}function Gk(e){this.config.exit.autolinkProtocol.call(this,e)}function Yk(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function Xk(e){this.config.exit.autolinkEmail.call(this,e)}function Kk(e){this.exit(e)}function Qk(e){!function(e,t,n){const r=Dx((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Bk(e[0]),Wk(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Wx(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let o=a(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Jk]],{ignore:["link","linkReference"]})}function Zk(e,t,n,r,i){let o="";if(!ew(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=$k(e,"(");let o=$k(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Jk(e,t,n,r){return!(!ew(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ew(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Xb(n)||Yb(n))&&(!t||47!==n)}function tw(){this.buffer()}function nw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rw(){this.buffer()}function iw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ow(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=Db(this.sliceSerialize(e)).toLowerCase(),n.label=t}function aw(e){this.exit(e)}function sw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=Db(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lw(e){this.exit(e)}function cw(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function uw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let a=o.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");return a+=o.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),a+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?pw:dw))),s(),a},footnoteReference:cw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function dw(e,t,n){return 0===t?e:pw(e,0,n)}function pw(e,t,n){return(n?"":" ")+e}cw.peek=function(){return"["};const fw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function hw(e){this.enter({type:"delete",children:[]},e)}function gw(e){this.exit(e)}function mw(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function vw(e){return e.length}function bw(e){return null==e?"":String(e)}function yw(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function xw(e,t,n){return">"+(n?"":" ")+e}function kw(e,t){return ww(e,t.inConstruct,!0)&&!ww(e,t.notInConstruct,!1)}function ww(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Sw(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&kw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function _w(e,t,n){return(n?"":" ")+e}function Cw(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ew(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Pw(e,t,n){const r=ny(e),i=ny(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function zw(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=Pw(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ew(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Pw(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Ew(d));const f=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function Rw(e){return e.value||""}function Tw(e,t,n,r){const i=Cw(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function Iw(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ow(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Fw(e,t){const n=Cb(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Aw(e,t,n,r){const i=Cw(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Fw(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function Mw(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Lw(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Dw(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}mw.peek=function(){return"~"},zw.peek=function(e,t,n){return n.options.emphasis||"*"},Rw.peek=function(){return"<"},Tw.peek=function(){return"!"},Iw.peek=function(){return"!"},Ow.peek=function(){return"`"},Aw.peek=function(e,t,n){return Fw(e,n)?"<":"["},Mw.peek=function(){return"["};const jw=Dx(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Nw(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=Pw(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ew(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Pw(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Ew(d));const f=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}Nw.peek=function(e,t,n){return n.options.strong||"*"};const $w={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),xw);return i(),a},break:Sw,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,_w);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=Cw(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:zw,hardBreak:Sw,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Vx(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Bx}),Boolean((!e.depth||e.depth<3)&&Cb(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=Ew(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:Rw,image:Tw,imageReference:Iw,inlineCode:Ow,link:Aw,linkReference:Mw,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Lw(n);const s=e.ordered?"."===a?")":".":function(e){const t=Lw(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Dw(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Lw(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){return(e.children.some(function(e){return jw(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Nw,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Dw(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Bw(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ww(e){this.exit(e),this.data.inTable=void 0}function Vw(e){this.enter({type:"tableRow",children:[]},e)}function Hw(e){this.exit(e)}function Uw(e){this.enter({type:"tableCell",children:[]},e)}function qw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Gw)),this.stack[this.stack.length-1].value=t,this.exit(e)}function Gw(e,t){return"|"===t?t:e}function Yw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=$w.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||vw,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const a=bw(e[u][o]);if(!1!==n.alignDelimiters){const e=i(a);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(a)}a[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=yw(r[d]);else{const e=yw(r);for(;++d<c;)o[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[d]&&(l[d]=i),f[d]=i),p[d]=a}a.splice(1,0,p),s.splice(1,0,f),u=-1;const h=[];for(;++u<a.length;){const e=a[u],t=s[u];d=-1;const r=[];for(;++d<c;){const i=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function Xw(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Kw(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Qw(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=$w.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const Zw={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},Jw={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(tS,l,s)(t):null===t||qb(t)||Xb(t)||45!==t&&Yb(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},eS={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(tS,t,o)(a):null===a||qb(a)||Xb(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},tS={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||qb(a)||Xb(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||qb(e)||Xb(e)?t(e):r(e)}function o(e){return jb(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):jb(t)?(e.consume(t),a):n(t)}},partial:!0},nS={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Nb(e)?n(e):t(e)}},partial:!0},rS={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!lS.call(r,r.previous)||pS(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zw,e.attempt(Jw,e.attempt(eS,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:lS},iS={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!cS.call(r,r.previous)||pS(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(jb(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||Bb(t)||qb(t)||Xb(t)||Yb(t)?n(t):e.attempt(Jw,e.attempt(eS,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:cS},oS={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){return dS(t)&&uS.call(r,r.previous)&&!pS(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return dS(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(nS,c,l)(t):45===t||95===t||Nb(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&jb(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:uS},aS={};let sS=48;for(;sS<123;)aS[sS]=oS,sS++,58===sS?sS=65:91===sS&&(sS=97);function lS(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||qb(e)}function cS(e){return!jb(e)}function uS(e){return!(47===e||dS(e))}function dS(e){return 43===e||45===e||46===e||95===e||Nb(e)}function pS(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}aS[43]=oS,aS[45]=oS,aS[46]=oS,aS[95]=oS,aS[72]=[oS,iS],aS[104]=[oS,iS],aS[87]=[oS,rS],aS[119]=[oS,rS];const fS={tokenize:function(e,t,n){const r=this;return Zb(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function hS(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=Db(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function gS(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function mS(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||qb(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Db(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return qb(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function vS(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||qb(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Db(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return qb(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Zb(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function bS(e,t,n){return e.check(sy,t,e.attempt(fS,t,n))}function yS(e){e.exit("gfmFootnoteDefinition")}function xS(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const l=ny(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=ny(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&Tb(a,a.length,0,ry(s,e.slice(r+1,n),t)),Tb(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),Tb(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class kS{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function wS(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function SS(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:s;return o===x&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):Ub(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Gb(t)?Zb(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||qb(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Gb(t)?Zb(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):y(t)}function f(t){return Gb(t)?Zb(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||Ub(t)?b(t):y(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Gb(t)?Zb(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?p(n):(null===n||Ub(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function x(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||Ub(n)?(e.exit("tableRow"),t(n)):Gb(n)?Zb(e,k,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||qb(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function _S(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new kS;for(;++o<e.length;){const f=e[o],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(ES(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=CS(p,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=CS(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===h.type?(u=!0,d=o):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=o,0!==l[1]?(c[0]=c[1],i=CS(p,t,l,s,o,i)):0!==c[1]&&(i=CS(p,t,c,s,o,i)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=o)}for(0!==d&&ES(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=wS(t.events,o))}return e}function CS(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},PS(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=PS(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=PS(t.events,n[2]),o=PS(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},PS(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ES(e,t,n,r,i){const o=[],a=PS(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function PS(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const zS={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return qb(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Ub(r)?t(r):Gb(r)?e.check({tokenize:RS},t,n)(r):n(r)}}};function RS(e,t,n){return Zb(e,function(e){return null===e?n(e):t(e)},"whitespace")}const TS={};function IS(e){const t=e||TS,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Fb([{text:aS},{document:{91:{name:"gfmFootnoteDefinition",tokenize:vS,continuation:{tokenize:bS},exit:yS}},text:{91:{name:"gfmFootnoteCall",tokenize:mS},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hS,resolveTo:gS}}},xS(e),{flow:{null:{name:"table",tokenize:SS,resolveAll:_S}}},{text:{91:zS}}])}(t)),i.push([{transforms:[Qk],enter:{literalAutolink:Uk,literalAutolinkEmail:qk,literalAutolinkHttp:qk,literalAutolinkWww:qk},exit:{literalAutolink:Kk,literalAutolinkEmail:Xk,literalAutolinkHttp:Gk,literalAutolinkWww:Yk}},{enter:{gfmFootnoteCallString:tw,gfmFootnoteCall:nw,gfmFootnoteDefinitionLabelString:rw,gfmFootnoteDefinition:iw},exit:{gfmFootnoteCallString:ow,gfmFootnoteCall:aw,gfmFootnoteDefinitionLabelString:sw,gfmFootnoteDefinition:lw}},{canContainEols:["delete"],enter:{strikethrough:hw},exit:{strikethrough:gw}},{enter:{table:Bw,tableData:Uw,tableHeader:Uw,tableRow:Vw},exit:{codeText:qw,table:Ww,tableData:Hw,tableHeader:Hw,tableRow:Hw}},{exit:{taskListCheckValueChecked:Xw,taskListCheckValueUnchecked:Xw,paragraph:Kw}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vk,notInConstruct:Hk},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vk,notInConstruct:Hk},{character:":",before:"[ps]",after:"\\/",inConstruct:Vk,notInConstruct:Hk}]},uw(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fw}],handlers:{delete:mw}},Yw(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Qw}}]}}(t))}const OS=({message:e})=>{const t=Cg("colors","lightBackground"),n=Cg("colors","background"),r=Cg("colors","mutedText"),i=Cg("colors","text"),o=km(Cg("colors","primary"));return"welcome"===e.type?qa.jsx(Ak,{message:e.content}):"loading"===e.type?e.content&&qa.jsx(Ak,{message:e.content,type:"loading"}):"user"===e.type?qa.jsxs(Uc,{maxW:"220px",alignSelf:"flex-end",mb:2,children:[e.imageUrl&&qa.jsx(Uc,{w:"120px",h:"120px",mb:2,borderRadius:"12px",background:o,children:qa.jsx(Bg,{src:e.imageUrl,alt:"Uploaded image",w:"100%",h:"100%",borderRadius:"12px",objectFit:"cover"})}),(e.content.length>0||e.repliedProduct)&&qa.jsxs(qg,{bg:"lightBackground",borderRadius:"24px",px:3,py:2,gap:2,alignItems:"start",w:"full",borderWidth:"1px",borderStyle:"solid",borderColor:"borderColor",children:[e.repliedProduct&&qa.jsxs(Ug,{bg:"background",borderRadius:"12px",p:2,gap:2,w:"full",children:[qa.jsx(Bg,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"text",children:e.repliedProduct.name})]}),qa.jsx(Ok,{components:{p:({children:e})=>qa.jsx(mu,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"text",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})},children:e.content})]})]}):"products"===e.type?qa.jsx(Uc,{maxW:"100%",alignSelf:"flex-start",mb:4,w:"full",children:qa.jsx(jk,{products:e.products||[]})}):"suggestions"===e.type?qa.jsx(Nk,{suggestions:e.suggestions||[]}):qa.jsx(qg,{align:"stretch",gap:2,children:qa.jsx(Uc,{w:"full",alignSelf:"flex-start",children:qa.jsx(Ok,{remarkPlugins:[IS],components:{p:({children:e})=>qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.5",children:e}),ol:({children:e})=>qa.jsx(Uc,{as:"ol",p:1.5,textAlign:"left",mb:1.5,listStyleType:"decimal",listStylePosition:"inside",children:e}),ul:({children:e})=>qa.jsx(Uc,{as:"ul",p:1.5,textAlign:"left",mb:1.5,listStyleType:"disc",listStylePosition:"inside",children:e}),li:({children:e})=>qa.jsx(mu,{as:"li",fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",display:"list-item",children:e}),img:({src:e,alt:t})=>qa.jsx(Bg,{src:e,alt:t||"",maxW:"100%",borderRadius:"6px",my:1.5}),a:({children:e,href:t})=>qa.jsx(Vg,{href:t,target:"_blank",display:"block",wordBreak:"break-word",overflowWrap:"anywhere",children:qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"primary",textAlign:"left",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:e})}),table:({children:e})=>qa.jsx(Uc,{overflowX:"auto",maxW:"100%",css:{"&::-webkit-scrollbar":{height:"5px"},"&::-webkit-scrollbar-track":{background:t,borderRadius:"8px"},"&::-webkit-scrollbar-thumb":{background:r,borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:i}},children:qa.jsx(Qg,{size:"sm",variant:"outline",w:"full",my:1.5,striped:!0,children:e})}),thead:({children:e})=>qa.jsx(Jg,{children:e}),tbody:({children:e})=>qa.jsx(nm,{children:e}),tr:({children:e})=>qa.jsx(Zg,{css:{"&:nth-child(even)":{backgroundColor:n},"&:nth-child(odd)":{backgroundColor:t}},children:e}),th:({children:e})=>qa.jsx(em,{fontSize:"12px",fontWeight:"600",color:"text",textAlign:"left",lineHeight:"1.5",px:1.5,py:.75,textTransform:"none",letterSpacing:"normal",border:"1px solid",borderColor:"borderColor",whiteSpace:"nowrap",bg:"lightBackground",children:e}),td:({children:e})=>qa.jsx(tm,{fontSize:"12px",fontWeight:"400",color:"text",textAlign:"left",lineHeight:"1.5",px:1.5,py:.75,border:"1px solid",borderColor:"borderColor",bg:"transparent",children:e})},children:e.content})})})},FS=({header:e})=>{const t=mm(),{botData:n}=mm(),r=km(Cg("colors","primary"));return qa.jsxs(qa.Fragment,{children:[e,qa.jsx(mu,{fontWeight:"600",fontStyle:"normal",fontSize:"24px",letterSpacing:"0",w:"fit-content",transition:"opacity 0.5s ease",fontFamily:"Estedad-FD, system-ui, sans-serif",css:{background:r,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:am(n?.agent_name)}),qa.jsxs(qg,{flex:1,justify:"center",align:"stretch",gap:4,minH:0,transition:"opacity 0.5s ease",opacity:1,children:[qa.jsx(Uc,{flex:1,overflowY:"scroll",overflowX:"hidden","data-scroll-container":"chat-messages",overscrollBehavior:"contain",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:qa.jsxs(qg,{overscrollBehavior:"contain",gap:2,align:"stretch",pb:2,children:[t.messages.map(e=>qa.jsx(OS,{message:e},e.id)),qa.jsx("div",{ref:t.messagesEndRef,style:{height:"1px"}})]})}),qa.jsx(Uc,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:qa.jsx(Qm,{state:t.inputState,placeholder:"generating"===t.inputState?"Processing...":"What's your question?",onSend:t.isInputDisabled?void 0:t.sendMessage,onStop:t.stopCurrentRequest})})]})]})},AS=({containerRef:e,isOpen:t,showSuggestionScreen:n,scrollableSelector:r='[data-scroll-container="chat-messages"]'})=>{Qa.useEffect(()=>{if(!t||!e.current)return;const n=e.current,i=()=>n.querySelector(r),o=e=>{const t=i();e.preventDefault(),e.stopPropagation(),t&&(t.scrollTop+=e.deltaY)};let a=0,s=0,l=0,c=null,u=null,d=0;const p=()=>{null!==u&&(cancelAnimationFrame(u),u=null)},f=e=>{p(),a=e.touches[0].clientY,s=e.touches[0].clientX},h=e=>{const t=i(),n=e.touches[0].clientY,r=e.touches[0].clientX,o=a-n,u=s-r;var p;e.preventDefault(),e.stopPropagation(),Math.abs(o)>Math.abs(u)&&(t&&(l+=1.2*o,p=t,null===c&&(c=requestAnimationFrame(()=>(e=>{e.scrollTop+=l,l=0,c=null})(p)))),d=o,a=n)},g=()=>{const e=i();e&&Math.abs(d)>.5?(e=>{const t=()=>{d*=.92,Math.abs(d)<.4?u=null:(e.scrollTop+=d,u=requestAnimationFrame(t))};u=requestAnimationFrame(t)})(e):d=0};return n.addEventListener("wheel",o,{passive:!1}),n.addEventListener("touchstart",f,{passive:!1}),n.addEventListener("touchmove",h,{passive:!1}),n.addEventListener("touchend",g,{passive:!1}),n.addEventListener("touchcancel",g,{passive:!1}),()=>{n.removeEventListener("wheel",o),n.removeEventListener("touchstart",f),n.removeEventListener("touchmove",h),n.removeEventListener("touchend",g),n.removeEventListener("touchcancel",g),p(),null!==c&&cancelAnimationFrame(c)}},[t,n,r])},MS=({children:e,showSuggestionScreen:t,isOpen:n,isExpanded:r=!1})=>{const{isMobile:i}=om(),{botData:o}=mm(),a=Qa.useRef(null),s=o?.white_label?.is_white_labeled??!1,l=o?.customization?.position?.align??"right",c=Cg("colors","borderColor"),u={bgColor:"background",zIndex:9999,overflow:"hidden",willChange:"transform",pointerEvents:n?"auto":"none",overscrollBehavior:"contain"},d={position:"fixed",top:"0",left:"0",right:"0",bottom:"0",transform:n?"translateY(0)":"translateY(100vh)",transition:"all 0.5s ease",visibility:n?"visible":"hidden",opacity:n?1:0,...u},p={position:"fixed",[l]:r?"50%":"20px",top:"50%",visibility:n?"visible":"hidden",opacity:n?1:0,transform:n?r?"right"===l?"translate(50%, -50%)":"translate(-50%, -50%)":"translateY(-50%)":r?"right"===l?"translate(50%, -50%) translateX(120%)":"translate(-50%, -50%) translateX(-120%)":"right"===l?"translateY(-50%) translateX(120%)":"translateY(-50%) translateX(-120%)",width:r?"max(600px, 90vh)":"600px",height:r?"max(600px, 90vh)":"600px",transition:"all 0.5s ease",border:`1px solid ${c}`,borderRadius:"24px",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)",...u},f=i?d:p;return AS({containerRef:a,isOpen:n,showSuggestionScreen:t}),qa.jsx(Uc,{ref:a,...f,children:qa.jsxs(qg,{p:6,pb:2,h:"full",justify:"flex-start",align:"stretch",gap:2,children:[e,!t&&!s&&qa.jsx(Uc,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:qa.jsx(Jm,{variant:"default"})})]})})},LS=({isOpen:n,onClose:r,isExpanded:i=!1,onToggleExpand:o})=>{const{sendMessage:a,addWelcomeMessage:s,resetBot:l}=mm(),{showSuggestionScreen:c,goToChat:u,goToSuggestion:d}=(n=>{const[r,i]=Qa.useState(!0),o=Qa.useRef(!1),a=Qa.useRef(!1);return Qa.useEffect(()=>{if(!a.current){const n=e();t()&&n.length>0&&(o.current=!0,i(!1)),a.current=!0}},[]),Qa.useEffect(()=>{n&&!o.current?i(!0):n&&o.current&&i(!1)},[n]),{showSuggestionScreen:r,goToChat:Qa.useCallback(()=>{o.current=!0,i(!1)},[]),goToSuggestion:Qa.useCallback(()=>{o.current=!1,i(!0)},[])}})(n),{isMobile:p}=om(),f=Qa.useRef(!1);Qa.useEffect(()=>{n&&!f.current&&(Ia(),f.current=!0)},[n]);const h=p;return qa.jsx(MS,{showSuggestionScreen:c,isOpen:n,isExpanded:i,children:c?qa.jsx(ev,{onStartChat:(e,t)=>{u(),s(),a({message:e,imageUrl:t})},isMobile:h,isExpanded:i,onToggleExpand:o,onClose:r}):qa.jsx(FS,{header:qa.jsx(Am,{onClose:r,isMobile:h,isExpanded:i,onToggleExpand:o,onReload:()=>{l(),d()}})})})},DS=(e,t)=>t?(e=>e?.customization?.mobile?.position?{align:e.customization?.mobile?.position?.align??"right",sideSpacing:e.customization?.mobile?.position?.side_spacing??8,bottomSpacing:e.customization?.mobile?.position?.bottom_spacing??0}:{align:"right",sideSpacing:8,bottomSpacing:20})(e):(e=>e?.customization?.position?{align:e.customization?.position?.align??"right",sideSpacing:e.customization?.position?.side_spacing??16,bottomSpacing:e.customization?.position?.bottom_spacing??0}:{align:"right",sideSpacing:16,bottomSpacing:60})(e),jS=({onClick:e})=>{const{botData:t}=mm(),n=Cg("colors","primary"),r=Cg("colors","background"),i=Cg("colors","lightBackground"),o=km(n),a=function(e,t){const n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return`linear-gradient(223deg, ${n} 0%, ${r} 25%, ${bm(r,3)} 50%, ${r} 76%, ${n} 100%)`}(r,i),[s,l]=Qa.useState("expanded"),[c,u]=Qa.useState(!1),[d,p]=Qa.useState(!0),[f,h]=Qa.useState(!1),g=vu({base:!0,md:!1})??!1,b=DS(t,g),y=t?.agent_name?`Ask ${t?.agent_name}!`:"Ask Dori!",x=()=>{v(),l("expanded"),p(!1);const e=setTimeout(()=>{u(!0);const e=setTimeout(()=>{p(!0);const e=setTimeout(()=>{p(!1),setTimeout(()=>{l("minimized")},0)},3e3);return()=>clearTimeout(e)},100);return()=>clearTimeout(e)},100);return()=>clearTimeout(e)};return Qa.useEffect(()=>{const e=m();return h(!0),e?x():(()=>{l("minimized"),p(!1);const e=setTimeout(()=>{u(!0)},0);return()=>clearTimeout(e)})()},[]),Qa.useEffect(()=>{const e=setInterval(()=>{m()&&x()},1e4);return()=>clearInterval(e)},[f]),qa.jsxs(Uc,{position:"relative",transform:c?`translateY(calc(-50% + ${b.bottomSpacing}px)) scale(1)`:`translateY(calc(-50% + ${b.bottomSpacing}px + 100px)) scale(0.9)`,opacity:c?1:0,transition:"all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)",children:["expanded"===s&&qa.jsx(Uc,{position:"absolute",bottom:"100%",[b.align]:"0",mb:2,w:{base:"90vw",md:"25vw"},maxW:{base:"90vw",md:"300px"},bg:a,borderRadius:"16px",p:2,pe:3,boxShadow:"lg",opacity:d?1:0,transform:d?"translateY(0) scale(1)":"translateY(10px) scale(0.95)",transition:"all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)",children:qa.jsxs(Ug,{gap:1,align:"center",width:"100%",justifyContent:"flex-start",children:[qa.jsx(Mg,{size:"xs",variant:"ghost","aria-label":"Close",onClick:()=>{p(!1),setTimeout(()=>{l("minimized")},0)},color:"text",_hover:{bg:"rgba(0,0,0,0.1)"},h:"auto",p:1,children:qa.jsx(wm,{boxSize:"16px"})}),qa.jsx(mu,{fontSize:"12px",fontWeight:"400",color:"text",lineHeight:"1.75",flex:1,width:"100%",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t?.wellcomeMessage||"I'm here to help you find the best option!"})]})}),qa.jsx(Ag,{borderRadius:"right"===b.align?"32px 0px 32px 32px":"0px 32px 32px 32px",borderWidth:0,bg:o,color:"text",p:{base:2,md:3},border:"none !important",w:"expanded"===s?{base:"120px",md:"150px"}:{base:"48px",md:"56px"},h:"auto",transition:"width 0.15s linear, min-width 0.15s linear, max-width 0.15s linear",onClick:()=>{e&&(e(),"minimized"===s&&(p(!1),setTimeout(()=>{l("expanded"),setTimeout(()=>{setTimeout(()=>{p(!0)},50)},100)},0)))},_hover:{transform:"scale(1.05)",boxShadow:"0 10px 25px rgba(0, 0, 0, 0.2)",filter:"brightness(1.1)",border:"none"},_focus:{border:"none",outline:"none",boxShadow:"none"},_active:{transform:"scale(0.98)",border:"none",outline:"none",boxShadow:"none"},children:qa.jsxs(Ug,{gap:"expanded"==s?2:0,position:"relative",w:"expanded"==s?"full":"auto",justify:"space-between",children:["expanded"==s&&qa.jsx(mu,{fontSize:{base:"14px",md:"16px"},fontWeight:{base:"500",md:"600"},lineHeight:"1.5",whiteSpace:"nowrap",overflow:"hidden",fontFamily:"Estedad-FD, system-ui, sans-serif",color:"background",children:y}),qa.jsx(Im,{boxSize:{base:"20px",md:"24px"},color:"background",transform:"expanded"===s?"rotate(0deg)":"right"===b.align?"rotate(90deg)":"rotate(-90deg)",transition:"transform 0.15s linear"})]})})]})};function NS(){const[e,n]=Qa.useState(!1),[r,i]=Qa.useState(!1),[o,a]=Qa.useState(""),{botData:s,updateBotData:l}=mm(),{isCurrentPathBanned:c}=(e=>{const[t,n]=Qa.useState("");return Qa.useEffect(()=>{const e=()=>{n("undefined"==typeof window?"":window.location.pathname)};e();const t=()=>{e()};window.addEventListener("popstate",t);const r=history.pushState,i=history.replaceState;return history.pushState=function(...t){r.apply(history,t),e()},history.replaceState=function(...t){i.apply(history,t),e()},()=>{window.removeEventListener("popstate",t),history.pushState=r,history.replaceState=i}},[]),{isCurrentPathBanned:()=>((e,t=[])=>{if(!t||0===t.length)return!1;const n=e.replace(/^\/+/,"").toLowerCase();return t.some(e=>{const t=e.replace(/^\/+/,"").toLowerCase();return n.includes(t)})})(t,e)}})(s?.banned_paths||[]);!function({sharingId:e}){const{initializeBot:n,resetBot:r}=mm(),i=Qa.useRef(void 0);Qa.useEffect(()=>{i.current&&e&&i.current!==e&&r?.(),i.current=e,e&&!t()&&n(e)},[e,n,r])}({sharingId:o});const u=vu({base:!0,md:!1})??!1,d=(e=>{const{align:t,sideSpacing:n}=e;return{top:"50%",[t]:`${n}px`}})(DS(s,u));return Qa.useEffect(()=>{window.chatbotData?a(window.chatbotData.sharingID):Fa("useEffect sharing ID",()=>{a((()=>{const e=document.querySelector("script#dori-side-widget");return e?.getAttribute("data-sharing-id")||""})());const e=document.querySelector("script#dori-side-widget");if(!e)return;const t=new MutationObserver(t=>{for(const n of t)if("attributes"===n.type&&"data-sharing-id"===n.attributeName){const t=e.getAttribute("data-sharing-id")||"";a(t)}});return t.observe(e,{attributes:!0,attributeFilter:["data-sharing-id"]}),()=>{t.disconnect()}})()},[]),Qa.useEffect(()=>{const e=e=>{n(!0),e?.expand&&i(!0)},t=()=>n(!1),r=()=>n(e=>!e),o=e=>{l(e)},a=window;a.doriWidget={...a.doriWidget,open:e,close:t,toggle:r,updateConfig:o};const s=t=>{const n=t.detail;e(n)};return window.addEventListener("dori:open-widget",s),window.addEventListener("dori:close-widget",t),window.addEventListener("dori:toggle-widget",r),()=>{a.doriWidget&&(a.doriWidget.open===e&&delete a.doriWidget.open,a.doriWidget.close===t&&delete a.doriWidget.close,a.doriWidget.toggle===r&&delete a.doriWidget.toggle,a.doriWidget.updateConfig===o&&delete a.doriWidget.updateConfig),window.removeEventListener("dori:open-widget",s),window.removeEventListener("dori:close-widget",t),window.removeEventListener("dori:toggle-widget",r)}},[l]),qa.jsx(Uc,{fontFamily:"Estedad-FD, system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:!(!0!==s?.is_widget_enabled&&null!==s?.is_widget_enabled||c())&&qa.jsxs(qa.Fragment,{children:[qa.jsx(LS,{isOpen:e,onClose:()=>n(!1),isExpanded:r,onToggleExpand:e=>i(void 0===e?!r:e)}),!e&&qa.jsx(Uc,{position:"fixed",zIndex:"1000",...d,children:qa.jsx(jS,{onClick:()=>{n(!e)}})})]})})}function $S(){return qa.jsx(NS,{})}var BS={};const WS=Da(vc),VS=Da(_l);var HS,US={},qS={};function GS(){if(HS)return qS;HS=1;var e=Ka(),t=gs();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.scope"),v=Symbol.for("react.activity"),b=Symbol.for("react.legacy_hidden"),y=Symbol.for("react.memo_cache_sentinel"),x=Symbol.for("react.view_transition"),k=Symbol.iterator,w=Array.isArray;function S(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var _=Object.assign,C=Object.prototype.hasOwnProperty,E=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]*$"),P={},z={};function R(e){return!!C.call(z,e)||!C.call(P,e)&&(E.test(e)?z[e]=!0:(P[e]=!0,!1))}var T=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(" ")),I=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"]]),O=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=O.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var A=/([A-Z])/g,M=/^ms-/,L=/^[\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 D(e){return L.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var j=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},B=N.d;N.d={f:B.f,r:B.r,D:function(e){var t=sn||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(We,Ve)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(ae(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),qn(t)}else B.D(e)},C:function(e,t){var n=sn||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(We,Ve)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(He,Ue)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(ae(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));qn(n)}}else B.C(e,t)},L:function(e,t,n){var r=sn||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(u))return;i.imageResources[u]=W,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(c=Be(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.image[u]=W,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=c):(ae(i=[],_({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(u,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;ae(a=[],_({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?W:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),ae(a,_({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?W:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=W,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(u=Be(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.font[e]=W,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=u):"font"===(ae(i=[],e=_({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}qn(r)}}else B.L(e,t,n)},m:function(e,t){var n=sn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?W:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=W}ae(o,_({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),qn(n)}}else B.m(e,t)},X:function(e,t){var n=sn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=_({src:e,async:!0},t),o&&(2===o.length&&$e(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),de(e,t),qn(n))}}else B.X(e,t)},S:function(e,t,n){var r=sn||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:F(t),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:_({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&$e(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),qn(r))}}else B.S(e,t,n)},M:function(e,t){var n=sn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=_({src:e,type:"module",async:!0},t),o&&(2===o.length&&$e(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),de(e,t),qn(n))}}else B.M(e,t)}};var W=[],V=/(<\/|<)(s)(cript)/gi;function H(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function U(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function q(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function G(e,t,n){switch(t){case"noscript":return q(2,null,1|e.tagScope);case"select":return q(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return q(4,null,e.tagScope);case"picture":return q(2,null,2|e.tagScope);case"math":return q(5,null,e.tagScope);case"foreignObject":return q(2,null,e.tagScope);case"table":return q(6,null,e.tagScope);case"thead":case"tbody":case"tfoot":return q(7,null,e.tagScope);case"colgroup":return q(9,null,e.tagScope);case"tr":return q(8,null,e.tagScope);case"head":if(2>e.insertionMode)return q(3,null,e.tagScope);break;case"html":if(0===e.insertionMode)return q(1,null,e.tagScope)}return 6<=e.insertionMode||2>e.insertionMode?q(2,null,e.tagScope):e}var Y=new Map;function X(e,t){if("object"!=typeof t)throw Error(n(62));var r,i=!0;for(r in t)if(C.call(t,r)){var o=t[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=F(r);o=F((""+o).trim())}else void 0===(a=Y.get(r))&&(a=F(r.replace(A,"-$1").toLowerCase().replace(M,"-ms-")),Y.set(r,a)),o="number"==typeof o?0===o||T.has(r)?""+o:o+"px":F((""+o).trim());i?(i=!1,e.push(' style="',a,":",o)):e.push(";",a,":",o)}}i||e.push('"')}function K(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""')}function Q(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(" ",t,'="',F(n),'"')}var Z=F("javascript:throw new Error('React form unexpectedly submitted.')");function J(e,t){this.push('<input type="hidden"'),ee(e),Q(this,"name",t),Q(this,"value",e),this.push("/>")}function ee(e){if("string"!=typeof e)throw Error(n(480))}function te(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach(ee)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function ne(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var c=te(t,r);null!==c?(s=c.name,r=c.action||"",i=c.encType,o=c.method,a=c.target,l=c.data):(e.push(" ","formAction",'="',Z,'"'),a=o=i=r=s=null,oe(t,n))}return null!=s&&re(e,"name",s),null!=r&&re(e,"formAction",r),null!=i&&re(e,"formEncType",i),null!=o&&re(e,"formMethod",o),null!=a&&re(e,"formTarget",a),l}function re(e,t,n){switch(t){case"className":Q(e,"class",n);break;case"tabIndex":Q(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Q(e,t,n);break;case"style":X(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=D(""+n),e.push(" ",t,'="',F(n),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":K(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=D(""+n),e.push(" ","xlink:href",'="',F(n),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',F(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":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'=""');break;case"capture":case"download":!0===n?e.push(" ",t,'=""'):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(" ",t,'="',F(n),'"');break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(" ",t,'="',F(n),'"');break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(" ",t,'="',F(n),'"');break;case"xlinkActuate":Q(e,"xlink:actuate",n);break;case"xlinkArcrole":Q(e,"xlink:arcrole",n);break;case"xlinkRole":Q(e,"xlink:role",n);break;case"xlinkShow":Q(e,"xlink:show",n);break;case"xlinkTitle":Q(e,"xlink:title",n);break;case"xlinkType":Q(e,"xlink:type",n);break;case"xmlBase":Q(e,"xml:base",n);break;case"xmlLang":Q(e,"xml:lang",n);break;case"xmlSpace":Q(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&R(t=I.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(" ",t,'="',F(n),'"')}}}function ie(e,t,r){if(null!=t){if(null!=r)throw Error(n(60));if("object"!=typeof t||!("__html"in t))throw Error(n(61));null!=(t=t.__html)&&e.push(""+t)}}function oe(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',"<\/script>"))}function ae(e,t){for(var r in e.push(me("link")),t)if(C.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:re(e,r,i)}}return e.push("/>"),null}var se=/(<\/|<)(s)(tyle)/gi;function le(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function ce(e,t,r){for(var i in e.push(me(r)),t)if(C.call(t,i)){var o=t[i];if(null!=o)switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,r));default:re(e,i,o)}}return e.push("/>"),null}function ue(e,t){e.push(me("title"));var n,r=null,i=null;for(n in t)if(C.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:re(e,n,o)}}return e.push(">"),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(F(""+t)),ie(e,i,r),e.push(be("title")),null}function de(e,t){e.push(me("script"));var n,r=null,i=null;for(n in t)if(C.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:re(e,n,o)}}return e.push(">"),ie(e,i,r),"string"==typeof r&&e.push((""+r).replace(V,H)),e.push(be("script")),null}function pe(e,t,n){e.push(me(n));var r,i=n=null;for(r in t)if(C.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:re(e,r,o)}}return e.push(">"),ie(e,i,n),n}function fe(e,t,n){e.push(me(n));var r,i=n=null;for(r in t)if(C.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:re(e,r,o)}}return e.push(">"),ie(e,i,n),"string"==typeof n?(e.push(F(n)),null):n}var he=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ge=new Map;function me(e){var t=ge.get(e);if(void 0===t){if(!he.test(e))throw Error(n(65,e));t="<"+e,ge.set(e,t)}return t}var ve=new Map;function be(e){var t=ve.get(e);return void 0===t&&(t="</"+e+">",ve.set(e,t)),t}function ye(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks,t.contribution|=1),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks,t.contribution|=4),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks,t.contribution|=2)}function xe(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return!(n<t.length)||(n=t[n],t.length=0,e.push(n))}function ke(e,t,r){if(e.push('\x3c!--$?--\x3e<template id="'),null===r)throw Error(n(395));return e.push(t.boundaryPrefix),t=r.toString(16),e.push(t),e.push('"></template>')}function we(e,t){0!==(t=t.contribution)&&(e.push("\x3c!--"),e.push(""+t),e.push("--\x3e"))}var Se=/[<\u2028\u2029]/g;function _e(e){return JSON.stringify(e).replace(Se,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Ce=/[&><\u2028\u2029]/g;function Ee(e){return JSON.stringify(e).replace(Ce,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Pe=!1,ze=!0;function Re(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push('<style media="not all" data-precedence="'),this.push(e.precedence),this.push('" data-href="');r<n.length-1;r++)this.push(n[r]),this.push(" ");for(this.push(n[r]),this.push('">'),r=0;r<t.length;r++)this.push(t[r]);ze=this.push("</style>"),Pe=!0,t.length=0,n.length=0}}function Te(e){return 2!==e.state&&(Pe=!0)}function Ie(e,t,n){return Pe=!1,ze=!0,t.styles.forEach(Re,e),t.stylesheets.forEach(Te),Pe&&(n.stylesToHoist=!0),ze}function Oe(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var Fe=[];function Ae(e){ae(Fe,e.props);for(var t=0;t<Fe.length;t++)this.push(Fe[t]);Fe.length=0,e.state=2}function Me(e){var t=0<e.sheets.size;e.sheets.forEach(Ae,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push('<style data-precedence="'),this.push(e.precedence),e=0,r.length){for(this.push('" data-href="');e<r.length-1;e++)this.push(r[e]),this.push(" ");this.push(r[e])}for(this.push('">'),e=0;e<n.length;e++)this.push(n[e]);this.push("</style>"),n.length=0,r.length=0}}function Le(e){if(0===e.state){e.state=1;var t=e.props;for(ae(Fe,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Fe.length;e++)this.push(Fe[e]);Fe.length=0}}function De(e){e.sheets.forEach(Le,this),e.sheets.clear()}function je(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=D(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!R(t))return;t=""+n}e.push(","),r=Ee(r),e.push(r),e.push(","),r=Ee(t),e.push(r)}function Ne(){return{styles:new Set,stylesheets:new Set}}function $e(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function Be(e,t,n){for(var r in t="<"+(e=(""+e).replace(We,Ve))+'>; rel=preload; as="'+(t=(""+t).replace(He,Ue))+'"',n)C.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(He,Ue)+'"');return t}var We=/[<>\r\n]/g;function Ve(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var He=/["';,\r\n]/g;function Ue(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function qe(e){this.styles.add(e)}function Ge(e){this.stylesheets.add(e)}function Ye(e,t,n,r){return n.generateStaticMarkup?(e.push(F(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(F(t)),e=!0),e)}function Xe(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push("\x3c!-- --\x3e")}var Ke=Function.prototype.bind,Qe=Symbol.for("react.client.reference");function Ze(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Qe?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case s:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList";case v:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case i:return"Portal";case u:return(e.displayName||"Context")+".Provider";case c:return(e._context.displayName||"Context")+".Consumer";case d:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(t=e.displayName||null)?t:Ze(e.type)||"Memo";case g:t=e._payload,e=e._init;try{return Ze(e(t))}catch(n){}}return null}var Je={},et=null;function tt(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(n(401))}else{if(null===r)throw Error(n(401));tt(e,r)}t.context._currentValue2=t.value}}function nt(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&nt(e)}function rt(e){var t=e.parent;null!==t&&rt(t),e.context._currentValue2=e.value}function it(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(n(402));e.depth===t.depth?tt(e,t):it(e,t)}function ot(e,t){var r=t.parent;if(null===r)throw Error(n(402));e.depth===r.depth?tt(e,r):ot(e,r),t.context._currentValue2=t.value}function at(e){var t=et;t!==e&&(null===t?rt(e):null===e?nt(t):t.depth===e.depth?tt(t,e):t.depth>e.depth?it(t,e):ot(t,e),et=e)}var st={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},lt={id:1,overflow:""};function ct(e,t,n){var r=e.id;e=e.overflow;var i=32-ut(r)-1;r&=~(1<<i),n+=1;var o=32-ut(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-ut(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var ut=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(dt(e)/pt|0)|0},dt=Math.log,pt=Math.LN2,ft=Error(n(460));function ht(){}var gt=null;function mt(){if(null===gt)throw Error(n(459));var e=gt;return gt=null,e}var vt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},bt=null,yt=null,xt=null,kt=null,wt=null,St=null,_t=!1,Ct=!1,Et=0,Pt=0,zt=-1,Rt=0,Tt=null,It=null,Ot=0;function Ft(){if(null===bt)throw Error(n(321));return bt}function At(){if(0<Ot)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Mt(){return null===St?null===wt?(_t=!1,wt=St=At()):(_t=!0,St=wt):null===St.next?(_t=!1,St=St.next=At()):(_t=!0,St=St.next),St}function Lt(){var e=Tt;return Tt=null,e}function Dt(){kt=xt=yt=bt=null,Ct=!1,wt=null,Ot=0,St=It=null}function jt(e,t){return"function"==typeof t?t(e):t}function Nt(e,t,n){if(bt=Ft(),St=Mt(),_t){var r=St.queue;if(t=r.dispatch,null!==It&&void 0!==(n=It.get(r))){It.delete(r),r=St.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return St.memoizedState=r,[r,t]}return[St.memoizedState,t]}return e=e===jt?"function"==typeof t?t():t:void 0!==n?n(t):t,St.memoizedState=e,e=(e=St.queue={last:null,dispatch:null}).dispatch=Bt.bind(null,bt,e),[St.memoizedState,e]}function $t(e,t){if(bt=Ft(),t=void 0===t?null:t,null!==(St=Mt())){var n=St.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!vt(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),St.memoizedState=[e,t],e}function Bt(e,t,r){if(25<=Ot)throw Error(n(301));if(e===bt)if(Ct=!0,e={action:r,next:null},null===It&&(It=new Map),void 0===(r=It.get(t)))It.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Wt(){throw Error(n(394))}function Vt(){throw Error(n(479))}function Ht(e,t,n){Ft();var r=Pt++,i=xt;if("function"==typeof e.$$FORM_ACTION){var o=null,a=kt;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0))&&(zt=r,t=i[0])}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Ut(e){var t=Rt;return Rt+=1,null===Tt&&(Tt=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ht,ht),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(ht,ht):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw gt=t,ft}}(Tt,e,t)}function qt(){throw Error(n(393))}function Gt(){}var Yt,Xt,Kt={readContext:function(e){return e._currentValue2},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Ut(e);if(e.$$typeof===u)return e._currentValue2}throw Error(n(438,String(e)))},useContext:function(e){return Ft(),e._currentValue2},useMemo:$t,useReducer:Nt,useRef:function(e){bt=Ft();var t=(St=Mt()).memoizedState;return null===t?(e={current:e},St.memoizedState=e):t},useState:function(e){return Nt(jt,e)},useInsertionEffect:Gt,useLayoutEffect:Gt,useCallback:function(e,t){return $t(function(){return e},t)},useImperativeHandle:Gt,useEffect:Gt,useDebugValue:Gt,useDeferredValue:function(e,t){return Ft(),void 0!==t?t:e},useTransition:function(){return Ft(),[!1,Wt]},useId:function(){var e=yt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-ut(e)-1)).toString(32)+t;var r=Qt;if(null===r)throw Error(n(404));return t=Et++,e="«"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+"»"},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(n(407));return r()},useOptimistic:function(e){return Ft(),[e,Vt]},useActionState:Ht,useFormState:Ht,useHostTransitionStatus:function(){return Ft(),$},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return qt}},Qt=null,Zt={getCacheForType:function(){throw Error(n(248))}};function Jt(e){if(void 0===Yt)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yt=t&&t[1]||"",Xt=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Yt+e+Xt}var en=!1;function tn(e,t){if(!e||en)return"";en=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{en=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Jt(n):""}function nn(e){if("string"==typeof e)return Jt(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?tn(e,!0):tn(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case d:return tn(e.render,!1);case h:return tn(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return Jt("Lazy")}return nn(e)}if("string"==typeof e.name)return n=e.env,Jt(e.name+(n?" ["+n+"]":""))}switch(e){case f:return Jt("SuspenseList");case p:return Jt("Suspense")}return""}function rn(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"[%s] "+e[0]," "+t+" "):e.splice(0,0,"[%s] "," "+t+" "),e.unshift(console),(t=Ke.apply(console.error,e))()}return null}function on(){}function an(e,t,n,r,i,o,a,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?rn:i,this.onPostpone=void 0===c?on:c,this.onAllReady=void 0===o?on:o,this.onShellReady=void 0===a?on:a,this.onShellError=void 0===s?on:s,this.onFatalError=void 0===l?on:l,this.formState=void 0===u?null:u}var sn=null;function ln(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,Ln(e))}function cn(e,t,n,r){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:Ne(),fallbackState:Ne(),contentPreamble:n,fallbackPreamble:r,trackedContentKeyPath:null,trackedFallbackNode:null}}function un(e,t,n,r,i,o,a,s,l,c,u,d,p,f,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return ln(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:c,formatContext:u,context:d,treeContext:p,componentStack:f,thenableState:t,isFallback:h};return l.add(g),g}function dn(e,t,n,r,i,o,a,s,l,c,u,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return ln(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function pn(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function fn(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===r&&(e.componentStack={parent:e.componentStack,type:t.type})}function hn(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=nn(r.type),r=r.parent}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function gn(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function mn(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,e.destination.destroy(t)):(e.status=13,e.fatalError=t)}function vn(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,bt={},yt=t,xt=e,kt=n,Pt=Et=0,zt=-1,Rt=0,Tt=a,e=r(i,o);Ct;)Ct=!1,Pt=Et=0,zt=-1,Rt=0,Ot+=1,St=null,e=r(i,o);return Dt(),e}function bn(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===a?l.push("\x3c!--F!--\x3e"):l.push("\x3c!--F--\x3e")}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=ct(n,1,0),Pn(e,t,r,-1),t.treeContext=n):s?Pn(e,t,r,-1):kn(e,t,r,-1),t.keyPath=o}function yn(t,r,i,y,k,S){if("function"==typeof y)if(y.prototype&&y.prototype.isReactComponent){var E=k;if("ref"in k)for(var P in E={},k)"ref"!==P&&(E[P]=k[P]);var z=y.defaultProps;if(z)for(var T in E===k&&(E=_({},E,k)),z)void 0===E[T]&&(E[T]=z[T]);k=E,E=Je,"object"==typeof(z=y.contextType)&&null!==z&&(E=z._currentValue2);var I=void 0!==(E=new y(k,E)).state?E.state:null;if(E.updater=st,E.props=k,E.state=I,z={queue:[],replace:!1},E._reactInternals=z,S=y.contextType,E.context="object"==typeof S&&null!==S?S._currentValue2:Je,"function"==typeof(S=y.getDerivedStateFromProps)&&(I=null==(S=S(k,I))?I:_({},I,S),E.state=I),"function"!=typeof y.getDerivedStateFromProps&&"function"!=typeof E.getSnapshotBeforeUpdate&&("function"==typeof E.UNSAFE_componentWillMount||"function"==typeof E.componentWillMount))if(y=E.state,"function"==typeof E.componentWillMount&&E.componentWillMount(),"function"==typeof E.UNSAFE_componentWillMount&&E.UNSAFE_componentWillMount(),y!==E.state&&st.enqueueReplaceState(E,E.state,null),null!==z.queue&&0<z.queue.length)if(y=z.queue,S=z.replace,z.queue=null,z.replace=!1,S&&1===y.length)E.state=y[0];else{for(z=S?y[0]:E.state,I=!0,S=S?1:0;S<y.length;S++)null!=(T="function"==typeof(T=y[S])?T.call(E,z,k,void 0):T)&&(I?(I=!1,z=_({},z,T)):_(z,T));E.state=z}else z.queue=null;if(y=E.render(),12===t.status)throw null;k=r.keyPath,r.keyPath=i,kn(t,r,y,-1),r.keyPath=k}else{if(y=vn(t,r,i,y,k,void 0),12===t.status)throw null;bn(t,r,i,y,0!==Et,Pt,zt)}else{if("string"!=typeof y){switch(y){case b:case a:case s:case o:return y=r.keyPath,r.keyPath=i,kn(t,r,k.children,-1),void(r.keyPath=y);case v:return void("hidden"!==k.mode&&(y=r.keyPath,r.keyPath=i,kn(t,r,k.children,-1),r.keyPath=y));case f:return y=r.keyPath,r.keyPath=i,kn(t,r,k.children,-1),void(r.keyPath=y);case x:case m:throw Error(n(343));case p:e:if(null!==r.replay){y=r.keyPath,r.keyPath=i,i=k.children;try{Pn(t,r,i,-1)}finally{r.keyPath=y}}else{y=r.keyPath;var O=r.blockedBoundary;S=r.blockedPreamble;var A=r.hoistableState;T=r.blockedSegment,P=k.fallback,k=k.children;var M=new Set,L=2>r.formatContext.insertionMode?cn(0,M,{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}):cn(0,M,null,null);null!==t.trackedPostpones&&(L.trackedContentKeyPath=i);var j=pn(0,T.chunks.length,L,r.formatContext,!1,!1);T.children.push(j),T.lastPushedText=!1;var N=pn(0,0,null,r.formatContext,!1,!1);if(N.parentFlushed=!0,null!==t.trackedPostpones){z=[(E=[i[0],"Suspense Fallback",i[2]])[1],E[2],[],null],t.trackedPostpones.workingMap.set(E,z),L.trackedFallbackNode=z,r.blockedSegment=j,r.blockedPreamble=L.fallbackPreamble,r.keyPath=E,j.status=6;try{Pn(t,r,P,-1),Xe(j.chunks,t.renderState,j.lastPushedText,j.textEmbedded),j.status=1}catch($){throw j.status=12===t.status?3:4,$}finally{r.blockedSegment=T,r.blockedPreamble=S,r.keyPath=y}fn(r=un(t,null,k,-1,L,N,L.contentPreamble,L.contentState,r.abortSet,i,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(r)}else{r.blockedBoundary=L,r.blockedPreamble=L.contentPreamble,r.hoistableState=L.contentState,r.blockedSegment=N,r.keyPath=i,N.status=6;try{if(Pn(t,r,k,-1),Xe(N.chunks,t.renderState,N.lastPushedText,N.textEmbedded),N.status=1,An(L,N),0===L.pendingTasks&&0===L.status){L.status=1,0===t.pendingRootTasks&&r.blockedPreamble&&Nn(t);break e}}catch(B){L.status=4,12===t.status?(N.status=3,E=t.fatalError):(N.status=4,E=B),I=gn(t,E,z=hn(r.componentStack)),L.errorDigest=I,_n(t,L)}finally{r.blockedBoundary=O,r.blockedPreamble=S,r.hoistableState=A,r.blockedSegment=T,r.keyPath=y}fn(r=un(t,null,P,-1,O,j,L.fallbackPreamble,L.fallbackState,M,[i[0],"Suspense Fallback",i[2]],r.formatContext,r.context,r.treeContext,r.componentStack,!0)),t.pingedTasks.push(r)}}return}if("object"==typeof y&&null!==y)switch(y.$$typeof){case d:if("ref"in k)for(L in E={},k)"ref"!==L&&(E[L]=k[L]);else E=k;return void bn(t,r,i,y=vn(t,r,i,y.render,E,S),0!==Et,Pt,zt);case h:return void yn(t,r,i,y.type,k,S);case l:case u:if(z=k.children,E=r.keyPath,k=k.value,I=y._currentValue2,y._currentValue2=k,et=y={parent:S=et,depth:null===S?0:S.depth+1,context:y,parentValue:I,value:k},r.context=y,r.keyPath=i,kn(t,r,z,-1),null===(t=et))throw Error(n(403));return t.context._currentValue2=t.parentValue,t=et=t.parent,r.context=t,void(r.keyPath=E);case c:return y=(k=k.children)(y._context._currentValue2),k=r.keyPath,r.keyPath=i,kn(t,r,y,-1),void(r.keyPath=k);case g:if(y=(E=y._init)(y._payload),12===t.status)throw null;return void yn(t,r,i,y,k,S)}throw Error(n(130,null==y?y:typeof y,""))}if(null===(E=r.blockedSegment))E=k.children,z=r.formatContext,I=r.keyPath,r.formatContext=G(z,y,k),r.keyPath=i,Pn(t,r,E,-1),r.formatContext=z,r.keyPath=I;else{S=function(t,r,i,o,a,s,l,c,u,d){switch(r){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":t.push(me("a"));var p,f=null,h=null;for(p in i)if(C.call(i,p)){var g=i[p];if(null!=g)switch(p){case"children":f=g;break;case"dangerouslySetInnerHTML":h=g;break;case"href":""===g?Q(t,"href",""):re(t,p,g);break;default:re(t,p,g)}}if(t.push(">"),ie(t,h,f),"string"==typeof f){t.push(F(f));var m=null}else m=f;return m;case"select":t.push(me("select"));var v,b=null,y=null;for(v in i)if(C.call(i,v)){var x=i[v];if(null!=x)switch(v){case"children":b=x;break;case"dangerouslySetInnerHTML":y=x;break;case"defaultValue":case"value":break;default:re(t,v,x)}}return t.push(">"),ie(t,y,b),b;case"option":var k=c.selectedValue;t.push(me("option"));var S,E=null,P=null,z=null,T=null;for(S in i)if(C.call(i,S)){var I=i[S];if(null!=I)switch(S){case"children":E=I;break;case"selected":z=I;break;case"dangerouslySetInnerHTML":T=I;break;case"value":P=I;default:re(t,S,I)}}if(null!=k){var O=null!==P?""+P:function(t){var n="";return e.Children.forEach(t,function(e){null!=e&&(n+=e)}),n}(E);if(w(k)){for(var A=0;A<k.length;A++)if(""+k[A]===O){t.push(' selected=""');break}}else""+k===O&&t.push(' selected=""')}else z&&t.push(' selected=""');return t.push(">"),ie(t,T,E),E;case"textarea":t.push(me("textarea"));var M,L=null,j=null,N=null;for(M in i)if(C.call(i,M)){var $=i[M];if(null!=$)switch(M){case"children":N=$;break;case"value":L=$;break;case"defaultValue":j=$;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:re(t,M,$)}}if(null===L&&null!==j&&(L=j),t.push(">"),null!=N){if(null!=L)throw Error(n(92));if(w(N)){if(1<N.length)throw Error(n(93));L=""+N[0]}L=""+N}return"string"==typeof L&&"\n"===L[0]&&t.push("\n"),null!==L&&t.push(F(""+L)),null;case"input":t.push(me("input"));var B,V=null,H=null,U=null,q=null,G=null,Y=null,ee=null,he=null,ge=null;for(B in i)if(C.call(i,B)){var ve=i[B];if(null!=ve)switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":V=ve;break;case"formAction":H=ve;break;case"formEncType":U=ve;break;case"formMethod":q=ve;break;case"formTarget":G=ve;break;case"defaultChecked":ge=ve;break;case"defaultValue":ee=ve;break;case"checked":he=ve;break;case"value":Y=ve;break;default:re(t,B,ve)}}var ye=ne(t,o,a,H,U,q,G,V);return null!==he?K(t,"checked",he):null!==ge&&K(t,"checked",ge),null!==Y?re(t,"value",Y):null!==ee&&re(t,"value",ee),t.push("/>"),null!=ye&&ye.forEach(J,t),null;case"button":t.push(me("button"));var xe,ke=null,we=null,Se=null,_e=null,Ce=null,Ee=null,Pe=null;for(xe in i)if(C.call(i,xe)){var ze=i[xe];if(null!=ze)switch(xe){case"children":ke=ze;break;case"dangerouslySetInnerHTML":we=ze;break;case"name":Se=ze;break;case"formAction":_e=ze;break;case"formEncType":Ce=ze;break;case"formMethod":Ee=ze;break;case"formTarget":Pe=ze;break;default:re(t,xe,ze)}}var Re=ne(t,o,a,_e,Ce,Ee,Pe,Se);if(t.push(">"),null!=Re&&Re.forEach(J,t),ie(t,we,ke),"string"==typeof ke){t.push(F(ke));var Te=null}else Te=ke;return Te;case"form":t.push(me("form"));var Ie,Oe=null,Fe=null,Ae=null,Me=null,Le=null,De=null;for(Ie in i)if(C.call(i,Ie)){var je=i[Ie];if(null!=je)switch(Ie){case"children":Oe=je;break;case"dangerouslySetInnerHTML":Fe=je;break;case"action":Ae=je;break;case"encType":Me=je;break;case"method":Le=je;break;case"target":De=je;break;default:re(t,Ie,je)}}var Ne=null,We=null;if("function"==typeof Ae){var Ve=te(o,Ae);null!==Ve?(Ae=Ve.action||"",Me=Ve.encType,Le=Ve.method,De=Ve.target,Ne=Ve.data,We=Ve.name):(t.push(" ","action",'="',Z,'"'),De=Le=Me=Ae=null,oe(o,a))}if(null!=Ae&&re(t,"action",Ae),null!=Me&&re(t,"encType",Me),null!=Le&&re(t,"method",Le),null!=De&&re(t,"target",De),t.push(">"),null!==We&&(t.push('<input type="hidden"'),Q(t,"name",We),t.push("/>"),null!=Ne&&Ne.forEach(J,t)),ie(t,Fe,Oe),"string"==typeof Oe){t.push(F(Oe));var He=null}else He=Oe;return He;case"menuitem":for(var Ue in t.push(me("menuitem")),i)if(C.call(i,Ue)){var qe=i[Ue];if(null!=qe)switch(Ue){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:re(t,Ue,qe)}}return t.push(">"),null;case"object":t.push(me("object"));var Ge,Ye=null,Xe=null;for(Ge in i)if(C.call(i,Ge)){var Ke=i[Ge];if(null!=Ke)switch(Ge){case"children":Ye=Ke;break;case"dangerouslySetInnerHTML":Xe=Ke;break;case"data":var Qe=D(""+Ke);if(""===Qe)break;t.push(" ","data",'="',F(Qe),'"');break;default:re(t,Ge,Ke)}}if(t.push(">"),ie(t,Xe,Ye),"string"==typeof Ye){t.push(F(Ye));var Ze=null}else Ze=Ye;return Ze;case"title":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Je=ue(t,i);else d?Je=null:(ue(a.hoistableChunks,i),Je=void 0);return Je;case"link":var et=i.rel,tt=i.href,nt=i.precedence;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof et||"string"!=typeof tt||""===tt){ae(t,i);var rt=null}else if("stylesheet"===i.rel)if("string"!=typeof nt||null!=i.disabled||i.onLoad||i.onError)rt=ae(t,i);else{var it=a.styles.get(nt),ot=o.styleResources.hasOwnProperty(tt)?o.styleResources[tt]:void 0;if(null!==ot){o.styleResources[tt]=null,it||(it={precedence:F(nt),rules:[],hrefs:[],sheets:new Map},a.styles.set(nt,it));var at={state:0,props:_({},i,{"data-precedence":i.precedence,precedence:null})};if(ot){2===ot.length&&$e(at.props,ot);var st=a.preloads.stylesheets.get(tt);st&&0<st.length?st.length=0:at.state=1}it.sheets.set(tt,at),l&&l.stylesheets.add(at)}else if(it){var lt=it.sheets.get(tt);lt&&l&&l.stylesheets.add(lt)}u&&t.push("\x3c!-- --\x3e"),rt=null}else i.onLoad||i.onError?rt=ae(t,i):(u&&t.push("\x3c!-- --\x3e"),rt=d?null:ae(a.hoistableChunks,i));return rt;case"script":var ct=i.async;if("string"!=typeof i.src||!i.src||!ct||"function"==typeof ct||"symbol"==typeof ct||i.onLoad||i.onError||4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var ut=de(t,i);else{var dt=i.src;if("module"===i.type)var pt=o.moduleScriptResources,ft=a.preloads.moduleScripts;else pt=o.scriptResources,ft=a.preloads.scripts;var ht=pt.hasOwnProperty(dt)?pt[dt]:void 0;if(null!==ht){pt[dt]=null;var gt=i;if(ht){2===ht.length&&$e(gt=_({},i),ht);var mt=ft.get(dt);mt&&(mt.length=0)}var vt=[];a.scripts.add(vt),de(vt,gt)}u&&t.push("\x3c!-- --\x3e"),ut=null}return ut;case"style":var bt=i.precedence,yt=i.href;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof bt||"string"!=typeof yt||""===yt){t.push(me("style"));var xt,kt=null,wt=null;for(xt in i)if(C.call(i,xt)){var St=i[xt];if(null!=St)switch(xt){case"children":kt=St;break;case"dangerouslySetInnerHTML":wt=St;break;default:re(t,xt,St)}}t.push(">");var _t=Array.isArray(kt)?2>kt.length?kt[0]:null:kt;"function"!=typeof _t&&"symbol"!=typeof _t&&null!=_t&&t.push((""+_t).replace(se,le)),ie(t,wt,kt),t.push(be("style"));var Ct=null}else{var Et=a.styles.get(bt);if(null!==(o.styleResources.hasOwnProperty(yt)?o.styleResources[yt]:void 0)){o.styleResources[yt]=null,Et?Et.hrefs.push(F(yt)):(Et={precedence:F(bt),rules:[],hrefs:[F(yt)],sheets:new Map},a.styles.set(bt,Et));var Pt,zt=Et.rules,Rt=null,Tt=null;for(Pt in i)if(C.call(i,Pt)){var It=i[Pt];if(null!=It)switch(Pt){case"children":Rt=It;break;case"dangerouslySetInnerHTML":Tt=It}}var Ot=Array.isArray(Rt)?2>Rt.length?Rt[0]:null:Rt;"function"!=typeof Ot&&"symbol"!=typeof Ot&&null!=Ot&&zt.push((""+Ot).replace(se,le)),ie(zt,Tt,Rt)}Et&&l&&l.styles.add(Et),u&&t.push("\x3c!-- --\x3e"),Ct=void 0}return Ct;case"meta":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Ft=ce(t,i,"meta");else u&&t.push("\x3c!-- --\x3e"),Ft=d?null:"string"==typeof i.charSet?ce(a.charsetChunks,i,"meta"):"viewport"===i.name?ce(a.viewportChunks,i,"meta"):ce(a.hoistableChunks,i,"meta");return Ft;case"listing":case"pre":t.push(me(r));var At,Mt=null,Lt=null;for(At in i)if(C.call(i,At)){var Dt=i[At];if(null!=Dt)switch(At){case"children":Mt=Dt;break;case"dangerouslySetInnerHTML":Lt=Dt;break;default:re(t,At,Dt)}}if(t.push(">"),null!=Lt){if(null!=Mt)throw Error(n(60));if("object"!=typeof Lt||!("__html"in Lt))throw Error(n(61));var jt=Lt.__html;null!=jt&&("string"==typeof jt&&0<jt.length&&"\n"===jt[0]?t.push("\n",jt):t.push(""+jt))}return"string"==typeof Mt&&"\n"===Mt[0]&&t.push("\n"),Mt;case"img":var Nt=i.src,$t=i.srcSet;if(!("lazy"===i.loading||!Nt&&!$t||"string"!=typeof Nt&&null!=Nt||"string"!=typeof $t&&null!=$t)&&"low"!==i.fetchPriority&&0==!!(3&c.tagScope)&&("string"!=typeof Nt||":"!==Nt[4]||"d"!==Nt[0]&&"D"!==Nt[0]||"a"!==Nt[1]&&"A"!==Nt[1]||"t"!==Nt[2]&&"T"!==Nt[2]||"a"!==Nt[3]&&"A"!==Nt[3])&&("string"!=typeof $t||":"!==$t[4]||"d"!==$t[0]&&"D"!==$t[0]||"a"!==$t[1]&&"A"!==$t[1]||"t"!==$t[2]&&"T"!==$t[2]||"a"!==$t[3]&&"A"!==$t[3])){var Bt="string"==typeof i.sizes?i.sizes:void 0,Wt=$t?$t+"\n"+(Bt||""):Nt,Vt=a.preloads.images,Ht=Vt.get(Wt);if(Ht)("high"===i.fetchPriority||10>a.highImagePreloads.size)&&(Vt.delete(Wt),a.highImagePreloads.add(Ht));else if(!o.imageResources.hasOwnProperty(Wt)){o.imageResources[Wt]=W;var Ut,qt=i.crossOrigin,Gt="string"==typeof qt?"use-credentials"===qt?qt:"":void 0,Yt=a.headers;Yt&&0<Yt.remainingCapacity&&"string"!=typeof i.srcSet&&("high"===i.fetchPriority||500>Yt.highImagePreloads.length)&&(Ut=Be(Nt,"image",{imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:Gt,integrity:i.integrity,nonce:i.nonce,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.refererPolicy}),0<=(Yt.remainingCapacity-=Ut.length+2))?(a.resets.image[Wt]=W,Yt.highImagePreloads&&(Yt.highImagePreloads+=", "),Yt.highImagePreloads+=Ut):(ae(Ht=[],{rel:"preload",as:"image",href:$t?void 0:Nt,imageSrcSet:$t,imageSizes:Bt,crossOrigin:Gt,integrity:i.integrity,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.referrerPolicy}),"high"===i.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(Ht):(a.bulkPreloads.add(Ht),Vt.set(Wt,Ht)))}}return ce(t,i,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return ce(t,i,r);case"head":if(2>c.insertionMode){var Xt=s||a.preamble;if(Xt.headChunks)throw Error(n(545,"`<head>`"));Xt.headChunks=[];var Kt=pe(Xt.headChunks,i,"head")}else Kt=fe(t,i,"head");return Kt;case"body":if(2>c.insertionMode){var Qt=s||a.preamble;if(Qt.bodyChunks)throw Error(n(545,"`<body>`"));Qt.bodyChunks=[];var Zt=pe(Qt.bodyChunks,i,"body")}else Zt=fe(t,i,"body");return Zt;case"html":if(0===c.insertionMode){var Jt=s||a.preamble;if(Jt.htmlChunks)throw Error(n(545,"`<html>`"));Jt.htmlChunks=[""];var en=pe(Jt.htmlChunks,i,"html")}else en=fe(t,i,"html");return en;default:if(-1!==r.indexOf("-")){t.push(me(r));var tn,nn=null,rn=null;for(tn in i)if(C.call(i,tn)){var on=i[tn];if(null!=on){var an=tn;switch(tn){case"children":nn=on;break;case"dangerouslySetInnerHTML":rn=on;break;case"style":X(t,on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":an="class";default:if(R(tn)&&"function"!=typeof on&&"symbol"!=typeof on&&!1!==on){if(!0===on)on="";else if("object"==typeof on)continue;t.push(" ",an,'="',F(on),'"')}}}}return t.push(">"),ie(t,rn,nn),nn}}return fe(t,i,r)}(E.chunks,y,k,t.resumableState,t.renderState,r.blockedPreamble,r.hoistableState,r.formatContext,E.lastPushedText,r.isFallback),E.lastPushedText=!1,z=r.formatContext,I=r.keyPath,r.keyPath=i,3===(r.formatContext=G(z,y,k)).insertionMode?(i=pn(0,0,null,r.formatContext,!1,!1),E.preambleChildren.push(i),fn(i=un(t,null,S,-1,r.blockedBoundary,i,r.blockedPreamble,r.hoistableState,t.abortableTasks,r.keyPath,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(i)):Pn(t,r,S,-1),r.formatContext=z,r.keyPath=I;e:{switch(r=E.chunks,t=t.resumableState,y){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=z.insertionMode){t.hasBody=!0;break e}break;case"html":if(0===z.insertionMode){t.hasHtml=!0;break e}break;case"head":if(1>=z.insertionMode)break e}r.push(be(y))}E.lastPushedText=!1}}}function xn(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=pn(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,Pn(e,t,r,i),s.status=1,null===a?e.completedRootSegment=s:(An(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function kn(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?xn(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,fn(t),wn(e,t),t.componentStack=n)}function wn(e,t){var o=t.node,a=t.childIndex;if(null!==o){if("object"==typeof o){switch(o.$$typeof){case r:var s=o.type,l=o.key,c=o.props,d=void 0!==(o=c.ref)?o:null,f=Ze(s),h=null==l?-1===a?0:a:l;if(l=[t.keyPath,f,h],null!==t.replay)e:{var m=t.replay;for(a=m.nodes,o=0;o<a.length;o++){var v=a[o];if(h===v[1]){if(4===v.length){if(null!==f&&f!==v[0])throw Error(n(490,v[0],f));var b=v[2];f=v[3],h=t.node,t.replay={nodes:b,slots:f,pendingTasks:1};try{if(yn(e,t,l,s,c,d),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(z){if("object"==typeof z&&null!==z&&(z===ft||"function"==typeof z.then))throw t.node===h&&(t.replay=m),z;t.replay.pendingTasks--,c=hn(t.componentStack),Rn(e,l=t.blockedBoundary,b,f,s=z,c=gn(e,s,c))}t.replay=m}else{if(s!==p)throw Error(n(490,"Suspense",Ze(s)||"Unknown"));t:{m=void 0,s=v[5],d=v[2],f=v[3],h=null===v[4]?[]:v[4][2],v=null===v[4]?null:v[4][3];var y=t.keyPath,x=t.replay,S=t.blockedBoundary,_=t.hoistableState,C=c.children,E=c.fallback,P=new Set;(c=2>t.formatContext.insertionMode?cn(0,P,U(),U()):cn(0,P,null,null)).parentFlushed=!0,c.rootSegmentID=s,t.blockedBoundary=c,t.hoistableState=c.contentState,t.keyPath=l,t.replay={nodes:d,slots:f,pendingTasks:1};try{if(Pn(e,t,C,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));if(t.replay.pendingTasks--,0===c.pendingTasks&&0===c.status){c.status=1,e.completedBoundaries.push(c);break t}}catch(R){c.status=4,m=gn(e,R,b=hn(t.componentStack)),c.errorDigest=m,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(c)}finally{t.blockedBoundary=S,t.hoistableState=_,t.replay=x,t.keyPath=y}fn(t=dn(e,null,{nodes:h,slots:v,pendingTasks:0},E,-1,S,c.fallbackState,P,[l[0],"Suspense Fallback",l[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}a.splice(o,1);break e}}}else yn(e,t,l,s,c,d);return;case i:throw Error(n(257));case g:if(o=(b=o._init)(o._payload),12===e.status)throw null;return void kn(e,t,o,a)}if(w(o))return void Sn(e,t,o,a);if((b=null===o||"object"!=typeof o?null:"function"==typeof(b=k&&o[k]||o["@@iterator"])?b:null)&&(b=b.call(o))){if(!(o=b.next()).done){c=[];do{c.push(o.value),o=b.next()}while(!o.done);Sn(e,t,c,a)}return}if("function"==typeof o.then)return t.thenableState=null,kn(e,t,Ut(o),a);if(o.$$typeof===u)return kn(e,t,o._currentValue2,a);throw a=Object.prototype.toString.call(o),Error(n(31,"[object Object]"===a?"object with keys {"+Object.keys(o).join(", ")+"}":a))}"string"==typeof o?null!==(a=t.blockedSegment)&&(a.lastPushedText=Ye(a.chunks,o,e.renderState,a.lastPushedText)):"number"!=typeof o&&"bigint"!=typeof o||null!==(a=t.blockedSegment)&&(a.lastPushedText=Ye(a.chunks,""+o,e.renderState,a.lastPushedText))}}function Sn(e,t,r,i){var o=t.keyPath;if(-1===i||(t.keyPath=[t.keyPath,"Fragment",i],null===t.replay)){if(a=t.treeContext,s=r.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(i=0;i<s;i++)c=r[i],t.treeContext=ct(a,s,i),"number"==typeof(u=l[i])?(xn(e,t,u,c,i),delete l[i]):Pn(e,t,c,i);return t.treeContext=a,void(t.keyPath=o)}for(l=0;l<s;l++)i=r[l],t.treeContext=ct(a,s,l),Pn(e,t,i,l);t.treeContext=a,t.keyPath=o}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var c=s[l];if(c[1]===i){i=c[2],c=c[3],t.replay={nodes:i,slots:c,pendingTasks:1};try{if(Sn(e,t,r,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(d){if("object"==typeof d&&null!==d&&(d===ft||"function"==typeof d.then))throw d;t.replay.pendingTasks--,r=hn(t.componentStack);var u=t.blockedBoundary;Rn(e,u,i,c,d,r=gn(e,d,r))}t.replay=a,s.splice(l,1);break}}t.keyPath=o}}function _n(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function Cn(e,t,n){return dn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function En(e,t,n){var r=t.blockedSegment,i=pn(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,un(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function Pn(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return kn(e,t,n,r)}catch(p){if(Dt(),"object"==typeof(n=p===ft?mt():p)&&null!==n){if("function"==typeof n.then)return e=Cn(e,t,r=Lt()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void at(o);if("Maximum call stack size exceeded"===n.message)return n=Cn(e,t,n=Lt()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void at(o)}}else{var u=c.children.length,d=c.chunks.length;try{return kn(e,t,n,r)}catch(f){if(Dt(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===ft?mt():f)&&null!==n){if("function"==typeof n.then)return e=En(e,t,r=Lt()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void at(o);if("Maximum call stack size exceeded"===n.message)return n=En(e,t,n=Lt()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void at(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,at(o),n}function zn(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,Mn(this,t,e))}function Rn(e,t,r,i,o,a){for(var s=0;s<r.length;s++){var l=r[s];if(4===l.length)Rn(e,t,l[2],l[3],o,a);else{l=l[5];var c=e,u=a,d=cn(0,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=u,d.parentFlushed&&c.clientRenderedBoundaries.push(d)}}if(r.length=0,null!==i){if(null===t)throw Error(n(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof i)for(var p in i)delete i[p]}}function Tn(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}if(i=hn(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return gn(t,n,i),void mn(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=gn(t,n,i),Rn(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&On(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=gn(t,n,i),r.status=4,r.errorDigest=e,_n(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Tn(e,t,n)}),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&Fn(t)}function In(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),c=l.next();0<i.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,f=u.props,h=Be(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=W,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:W}}r(o?{Link:o}:{})}}}catch(g){gn(e,g,{})}}function On(e){null===e.trackedPostpones&&In(e,!0),null===e.trackedPostpones&&Nn(e),e.onShellError=on,(e=e.onShellReady)()}function Fn(e){In(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),Nn(e),(e=e.onAllReady)()}function An(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&An(e,n)}else e.completedSegments.push(t)}function Mn(e,t,r){if(null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&On(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&1===r.status&&An(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(zn,e),t.fallbackAbortableTasks.clear(),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&Nn(e))):null!==r&&r.parentFlushed&&1===r.status&&(An(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&Fn(e)}function Ln(e){if(14!==e.status&&13!==e.status){var t=et,r=j.H;j.H=Kt;var i=j.A;j.A=Zt;var o=sn;sn=e;var a=Qt;Qt=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var c=l[s],u=e,d=c.blockedSegment;if(null===d){var p=u;if(0!==c.replay.pendingTasks){at(c.context);try{if("number"==typeof c.replay.slots?xn(p,c,c.replay.slots,c.node,c.childIndex):wn(p,c),1===c.replay.pendingTasks&&0<c.replay.nodes.length)throw Error(n(488));c.replay.pendingTasks--,c.abortSet.delete(c),Mn(p,c.blockedBoundary,null)}catch(C){Dt();var f=C===ft?mt():C;if("object"==typeof f&&null!==f&&"function"==typeof f.then){var h=c.ping;f.then(h,h),c.thenableState=Lt()}else{c.replay.pendingTasks--,c.abortSet.delete(c);var g=hn(c.componentStack);u=void 0;var m=p,v=c.blockedBoundary,b=12===p.status?p.fatalError:f;Rn(m,v,c.replay.nodes,c.replay.slots,b,u=gn(m,b,g)),p.pendingRootTasks--,0===p.pendingRootTasks&&On(p),p.allPendingTasks--,0===p.allPendingTasks&&Fn(p)}}}}else if(p=void 0,0===(m=d).status){m.status=6,at(c.context);var y=m.children.length,x=m.chunks.length;try{wn(u,c),Xe(m.chunks,u.renderState,m.lastPushedText,m.textEmbedded),c.abortSet.delete(c),m.status=1,Mn(u,c.blockedBoundary,m)}catch(C){Dt(),m.children.length=y,m.chunks.length=x;var k=C===ft?mt():12===u.status?u.fatalError:C;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,c.thenableState=Lt();var w=c.ping;k.then(w,w)}else{var S=hn(c.componentStack);c.abortSet.delete(c),m.status=4;var _=c.blockedBoundary;p=gn(u,k,S),null===_?mn(u,k):(_.pendingTasks--,4!==_.status&&(_.status=4,_.errorDigest=p,_n(u,_),_.parentFlushed&&u.clientRenderedBoundaries.push(_),0===u.pendingRootTasks&&null===u.trackedPostpones&&null!==_.contentPreamble&&Nn(u))),u.allPendingTasks--,0===u.allPendingTasks&&Fn(u)}}}}l.splice(0,s),null!==e.destination&&Un(e,e.destination)}catch(E){gn(e,E,{}),mn(e,E)}finally{Qt=a,j.H=r,j.A=i,r===Kt&&at(t),sn=o}}}function Dn(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=jn(e,t.children[i],n)||r;return r}function jn(e,t,r){var i=t.boundary;if(null===i)return Dn(e,t,r);var o=i.contentPreamble,a=i.fallbackPreamble;if(null===o||null===a)return!1;switch(i.status){case 1:if(ye(e.renderState,o),!(t=i.completedSegments[0]))throw Error(n(391));return Dn(e,t,r);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return ye(e.renderState,a),Dn(e,t,r);default:return!0}}function Nn(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=jn(e,e.completedRootSegment,t),r=e.renderState.preamble;(!1===n||r.headChunks&&r.bodyChunks)&&(e.completedPreambleSegments=t)}}function $n(e,t,r,i){switch(r.parentFlushed=!0,r.status){case 0:r.id=e.nextSegmentId++;case 5:return i=r.id,r.lastPushedText=!1,r.textEmbedded=!1,e=e.renderState,t.push('<template id="'),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0,a=r.chunks,s=0;r=r.children;for(var l=0;l<r.length;l++){for(o=r[l];s<o.index;s++)t.push(a[s]);o=Bn(e,t,o,i)}for(;s<a.length-1;s++)t.push(a[s]);return s<a.length&&(o=t.push(a[s])),o;default:throw Error(n(390))}}function Bn(e,t,r,i){var o=r.boundary;if(null===o)return $n(e,t,r,i);if(o.parentFlushed=!0,4===o.status){if(!e.renderState.generateStaticMarkup){var a=o.errorDigest;t.push("\x3c!--$!--\x3e"),t.push("<template"),a&&(t.push(' data-dgst="'),a=F(a),t.push(a),t.push('"')),t.push("></template>")}return $n(e,t,r,i),e.renderState.generateStaticMarkup?t=!0:((e=o.fallbackPreamble)&&we(t,e),t=t.push("\x3c!--/$--\x3e")),t}if(1!==o.status)return 0===o.status&&(o.rootSegmentID=e.nextSegmentId++),0<o.completedSegments.length&&e.partialBoundaries.push(o),ke(t,e.renderState,o.rootSegmentID),i&&((o=o.fallbackState).styles.forEach(qe,i),o.stylesheets.forEach(Ge,i)),$n(e,t,r,i),t.push("\x3c!--/$--\x3e");if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),ke(t,e.renderState,o.rootSegmentID),$n(e,t,r,i),t.push("\x3c!--/$--\x3e");if(i&&((r=o.contentState).styles.forEach(qe,i),r.stylesheets.forEach(Ge,i)),e.renderState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(r=o.completedSegments).length)throw Error(n(391));return Bn(e,t,r[0],i),e.renderState.generateStaticMarkup?t=!0:((e=o.contentPreamble)&&we(t,e),t=t.push("\x3c!--/$--\x3e")),t}function Wn(e,t,r,i){return function(e,t,r,i){switch(r.insertionMode){case 0:case 1:case 3:case 2:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 4:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 5:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 8:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');case 9:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push('">');default:throw Error(n(397))}}(t,e.renderState,r.parentFormatContext,r.id),Bn(e,t,r,i),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push("</div>");case 4:return e.push("</svg>");case 5:return e.push("</math>");case 6:return e.push("</table>");case 7:return e.push("</tbody></table>");case 8:return e.push("</tr></table>");case 9:return e.push("</colgroup></table>");default:throw Error(n(397))}}(t,r.parentFormatContext)}function Vn(e,t,r){for(var i=r.completedSegments,o=0;o<i.length;o++)Hn(e,t,r,i[o]);i.length=0,Ie(t,r.contentState,e.renderState),i=e.resumableState,e=e.renderState,o=r.rootSegmentID,r=r.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),a?2&i.instructions?8&i.instructions?t.push('$RR("'):(i.instructions|=8,t.push('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("')):(i.instructions|=10,t.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("')):2&i.instructions?t.push('$RC("'):(i.instructions|=2,t.push('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("')),i=o.toString(16),t.push(e.boundaryPrefix),t.push(i),t.push('","'),t.push(e.segmentPrefix),t.push(i),a?(t.push('",'),function(e,t){e.push("[");var r="[";t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)e.push(r),t=Ee(""+t.props.href),e.push(t),e.push("]"),r=",[";else{e.push(r);var i=t.props["data-precedence"],o=t.props,a=D(""+t.props.href);for(var s in a=Ee(a),e.push(a),i=""+i,e.push(","),i=Ee(i),e.push(i),o)if(C.call(o,s)&&null!=(i=o[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:je(e,s,i)}e.push("]"),r=",[",t.state=3}}),e.push("]")}(t,r)):t.push('"'),r=t.push(")<\/script>"),xe(t,e)&&r}function Hn(e,t,r,i){if(2===i.status)return!0;var o=r.contentState,a=i.id;if(-1===a){if(-1===(i.id=r.rootSegmentID))throw Error(n(392));return Wn(e,t,i,o)}return a===r.rootSegmentID?Wn(e,t,i,o):(Wn(e,t,i,o),r=e.resumableState,e=e.renderState,t.push(e.startInlineScript),1&r.instructions?t.push('$RS("'):(r.instructions|=1,t.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t=t.push('")<\/script>'))}function Un(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;var o,a=e.renderState,s=a.preamble,l=s.htmlChunks,c=s.headChunks;if(l){for(o=0;o<l.length;o++)t.push(l[o]);if(c)for(o=0;o<c.length;o++)t.push(c[o]);else{var u=me("head");t.push(u),t.push(">")}}else if(c)for(o=0;o<c.length;o++)t.push(c[o]);var d=a.charsetChunks;for(o=0;o<d.length;o++)t.push(d[o]);d.length=0,a.preconnects.forEach(Oe,t),a.preconnects.clear();var p=a.viewportChunks;for(o=0;o<p.length;o++)t.push(p[o]);p.length=0,a.fontPreloads.forEach(Oe,t),a.fontPreloads.clear(),a.highImagePreloads.forEach(Oe,t),a.highImagePreloads.clear(),a.styles.forEach(Me,t);var f=a.importMapChunks;for(o=0;o<f.length;o++)t.push(f[o]);f.length=0,a.bootstrapScripts.forEach(Oe,t),a.scripts.forEach(Oe,t),a.scripts.clear(),a.bulkPreloads.forEach(Oe,t),a.bulkPreloads.clear();var h=a.hoistableChunks;for(o=0;o<h.length;o++)t.push(h[o]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(s=0;s<g.length;s++)Bn(e,t,g[s],null)}var m=e.renderState.preamble,v=m.headChunks;if(m.htmlChunks||v){var b=be("head");t.push(b)}var y=m.bodyChunks;if(y)for(i=0;i<y.length;i++)t.push(y[i]);Bn(e,t,r,null),e.completedRootSegment=null,xe(t,e.renderState)}var x=e.renderState;r=0;var k=x.viewportChunks;for(r=0;r<k.length;r++)t.push(k[r]);k.length=0,x.preconnects.forEach(Oe,t),x.preconnects.clear(),x.fontPreloads.forEach(Oe,t),x.fontPreloads.clear(),x.highImagePreloads.forEach(Oe,t),x.highImagePreloads.clear(),x.styles.forEach(De,t),x.scripts.forEach(Oe,t),x.scripts.clear(),x.bulkPreloads.forEach(Oe,t),x.bulkPreloads.clear();var w=x.hoistableChunks;for(r=0;r<w.length;r++)t.push(w[r]);w.length=0;var S=e.clientRenderedBoundaries;for(n=0;n<S.length;n++){var _=S[n];x=t;var C=e.resumableState,E=e.renderState,P=_.rootSegmentID,z=_.errorDigest;x.push(E.startInlineScript),4&C.instructions?x.push('$RX("'):(C.instructions|=4,x.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')),x.push(E.boundaryPrefix);var R=P.toString(16);if(x.push(R),x.push('"'),z){x.push(",");var T=_e(z||"");x.push(T)}var I=x.push(")<\/script>");if(!I)return e.destination=null,n++,void S.splice(0,n)}S.splice(0,n);var O=e.completedBoundaries;for(n=0;n<O.length;n++)if(!Vn(e,t,O[n]))return e.destination=null,n++,void O.splice(0,n);O.splice(0,n);var F=e.partialBoundaries;for(n=0;n<F.length;n++){var A=F[n];e:{S=e,_=t;var M=A.completedSegments;for(I=0;I<M.length;I++)if(!Hn(S,_,A,M[I])){I++,M.splice(0,I);var L=!1;break e}M.splice(0,I),L=Ie(_,A.contentState,S.renderState)}if(!L)return e.destination=null,n++,void F.splice(0,n)}F.splice(0,n);var D=e.completedBoundaries;for(n=0;n<D.length;n++)if(!Vn(e,t,D[n]))return e.destination=null,n++,void D.splice(0,n);D.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&(e.flushScheduled=!1,(n=e.resumableState).hasBody&&(F=be("body"),t.push(F)),n.hasHtml&&(n=be("html"),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function qn(e){if(!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination){e.flushScheduled=!0;var t=e.destination;t?Un(e,t):e.flushScheduled=!1}}function Gn(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var r=e.abortableTasks;if(0<r.size){var i=void 0===t?Error(n(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(n(530)):t;e.fatalError=i,r.forEach(function(t){return Tn(t,e,i)}),r.clear()}null!==e.destination&&Un(e,e.destination)}catch(o){gn(e,o,{}),mn(e,o)}}function Yn(){}function Xn(e,t,r,i){var o,a=!1,s=null,l="",c=!1;if(e=function(e,t,n,r,i,o){return(n=pn(t=new an(t,n,r,1/0,o,void 0,function(){c=!0},void 0,void 0,void 0,void 0),0,null,r,!1,!1)).parentFlushed=!0,fn(e=un(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,lt,null,!1)),t.pingedTasks.push(e),t}(e,t={idPrefix:void 0===(o=t?t.identifierPrefix:void 0)?"":o,nextFormID:0,streamingFormat:0,bootstrapScriptContent:undefined,bootstrapScripts:undefined,bootstrapModules:undefined,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}},function(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,o=e.bootstrapScripts,a=e.bootstrapModules;void 0!==i&&r.push("<script>",(""+i).replace(V,H),"<\/script>"),i=n+"P:";var s=n+"S:";n+="B:";var l=new Set,c=new Set,u=new Set,d=new Map,p=new Set,f=new Set,h=new Set,g={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(void 0!==o)for(var m=0;m<o.length;m++){var v,b=o[m],y=void 0,x=void 0,k={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};"string"==typeof b?k.href=v=b:(k.href=v=b.src,k.integrity=x="string"==typeof b.integrity?b.integrity:void 0,k.crossOrigin=y="string"==typeof b||null==b.crossOrigin?void 0:"use-credentials"===b.crossOrigin?"use-credentials":"");var w=v;(b=e).scriptResources[w]=null,b.moduleScriptResources[w]=null,ae(b=[],k),p.add(b),r.push('<script src="',F(v)),"string"==typeof x&&r.push('" integrity="',F(x)),"string"==typeof y&&r.push('" crossorigin="',F(y)),r.push('" async=""><\/script>')}if(void 0!==a)for(o=0;o<a.length;o++)y=v=void 0,x={rel:"modulepreload",fetchPriority:"low",nonce:void 0},"string"==typeof(k=a[o])?x.href=m=k:(x.href=m=k.src,x.integrity=y="string"==typeof k.integrity?k.integrity:void 0,x.crossOrigin=v="string"==typeof k||null==k.crossOrigin?void 0:"use-credentials"===k.crossOrigin?"use-credentials":""),b=m,(k=e).scriptResources[b]=null,k.moduleScriptResources[b]=null,ae(k=[],x),p.add(k),r.push('<script type="module" src="',F(m)),"string"==typeof y&&r.push('" integrity="',F(y)),"string"==typeof v&&r.push('" crossorigin="',F(v)),r.push('" async=""><\/script>');return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:"<script>",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:l,fontPreloads:c,highImagePreloads:u,styles:d,bootstrapScripts:p,scripts:f,bulkPreloads:h,preloads:g,stylesToHoist:!1,generateStaticMarkup:t}}(t,r),q(0,null,0),0,Yn),e.flushScheduled=null!==e.destination,Ln(e),10===e.status&&(e.status=11),null===e.trackedPostpones&&In(e,0===e.pendingRootTasks),Gn(e,i),function(e,t){if(13===e.status)e.status=14,t.destroy(e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{Un(e,t)}catch(n){gn(e,n,{}),mn(e,n)}}}(e,{push:function(e){return null!==e&&(l+=e),!0},destroy:function(e){a=!0,s=e}}),a&&s!==i)throw s;if(!c)throw Error(n(426));return l}return qS.renderToStaticMarkup=function(e,t){return Xn(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},qS.renderToString=function(e,t){return Xn(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},qS.version="19.1.1",qS}var YS,XS,KS={};function QS(){if(YS)return KS;YS=1;var e=Ka(),t=gs();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.scope"),v=Symbol.for("react.activity"),b=Symbol.for("react.legacy_hidden"),y=Symbol.for("react.memo_cache_sentinel"),x=Symbol.for("react.view_transition"),k=Symbol.iterator,w=Array.isArray;function S(e,t){var n=3&e.length,r=e.length-n,i=t;for(t=0;t<r;){var o=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24;++t,i=27492+(65535&(i=5*(65535&(i=(i^=o=461845907*(65535&(o=(o=3432918353*(65535&o)+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16)}switch(o=0,n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:i^=461845907*(65535&(o=(o=3432918353*(65535&(o^=255&e.charCodeAt(t)))+((3432918353*(o>>>16)&65535)<<16)&4294967295)<<15|o>>>17))+((461845907*(o>>>16)&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,((i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295)^i>>>16)>>>0}var _=new MessageChannel,C=[];function E(e){C.push(e),_.port2.postMessage(null)}function P(e){setTimeout(function(){throw e})}_.port1.onmessage=function(){var e=C.shift();e&&e()};var z=Promise,R="function"==typeof queueMicrotask?queueMicrotask:function(e){z.resolve(null).then(e).catch(P)},T=null,I=0;function O(e,t){if(0!==t.byteLength)if(2048<t.byteLength)0<I&&(e.enqueue(new Uint8Array(T.buffer,0,I)),T=new Uint8Array(2048),I=0),e.enqueue(t);else{var n=T.length-I;n<t.byteLength&&(0===n?e.enqueue(T):(T.set(t.subarray(0,n),I),e.enqueue(T),t=t.subarray(n)),T=new Uint8Array(2048),I=0),T.set(t,I),I+=t.byteLength}}function F(e,t){return O(e,t),!0}function A(e){T&&0<I&&(e.enqueue(new Uint8Array(T.buffer,0,I)),T=null,I=0)}var M=new TextEncoder;function L(e){return M.encode(e)}function D(e){return M.encode(e)}function j(e,t){"function"==typeof e.error?e.error(t):e.close()}var N=Object.assign,$=Object.prototype.hasOwnProperty,B=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]*$"),W={},V={};function H(e){return!!$.call(V,e)||!$.call(W,e)&&(B.test(e)?V[e]=!0:(W[e]=!0,!1))}var U=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(" ")),q=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"]]),G=/["'&<>]/;function Y(e){if("boolean"==typeof e||"number"==typeof e||"bigint"==typeof e)return""+e;e=""+e;var t=G.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.slice(i,n)),i=n+1,r+=t}e=i!==n?r+e.slice(i,n):r}return e}var X=/([A-Z])/g,K=/^ms-/,Q=/^[\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 Z(e){return Q.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var J=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=ee.d;ee.d={f:ne.f,r:ne.r,D:function(e){var t=ci||null;if(t){var n,r,i=t.resumableState,o=t.renderState;if("string"==typeof e&&e)i.dnsResources.hasOwnProperty(e)||(i.dnsResources[e]=null,(r=(i=o.headers)&&0<i.remainingCapacity)&&(n="<"+(""+e).replace(qn,Gn)+">; rel=dns-prefetch",r=0<=(i.remainingCapacity-=n.length+2)),r?(o.resets.dns[e]=null,i.preconnects&&(i.preconnects+=", "),i.preconnects+=n):(Ke(n=[],{href:e,rel:"dns-prefetch"}),o.preconnects.add(n))),Xi(t)}else ne.D(e)},C:function(e,t){var n=ci||null;if(n){var r=n.resumableState,i=n.renderState;if("string"==typeof e&&e){var o,a,s="use-credentials"===t?"credentials":"string"==typeof t?"anonymous":"default";if(!r.connectResources[s].hasOwnProperty(e))r.connectResources[s][e]=null,(a=(r=i.headers)&&0<r.remainingCapacity)&&(a="<"+(""+e).replace(qn,Gn)+">; rel=preconnect","string"==typeof t&&(a+='; crossorigin="'+(""+t).replace(Yn,Xn)+'"'),o=a,a=0<=(r.remainingCapacity-=o.length+2)),a?(i.resets.connect[s][e]=null,r.preconnects&&(r.preconnects+=", "),r.preconnects+=o):(Ke(s=[],{rel:"preconnect",href:e,crossOrigin:t}),i.preconnects.add(s));Xi(n)}}else ne.C(e,t)},L:function(e,t,n){var r=ci||null;if(r){var i=r.resumableState,o=r.renderState;if(t&&e){switch(t){case"image":if(n)var a=n.imageSrcSet,s=n.imageSizes,l=n.fetchPriority;var c,u=a?a+"\n"+(s||""):e;if(i.imageResources.hasOwnProperty(u))return;i.imageResources[u]=re,(i=o.headers)&&0<i.remainingCapacity&&"string"!=typeof a&&"high"===l&&(c=Un(e,t,n),0<=(i.remainingCapacity-=c.length+2))?(o.resets.image[u]=re,i.highImagePreloads&&(i.highImagePreloads+=", "),i.highImagePreloads+=c):(Ke(i=[],N({rel:"preload",href:a?void 0:e,as:t},n)),"high"===l?o.highImagePreloads.add(i):(o.bulkPreloads.add(i),o.preloads.images.set(u,i)));break;case"style":if(i.styleResources.hasOwnProperty(e))return;Ke(a=[],N({rel:"preload",href:e,as:t},n)),i.styleResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?re:[n.crossOrigin,n.integrity],o.preloads.stylesheets.set(e,a),o.bulkPreloads.add(a);break;case"script":if(i.scriptResources.hasOwnProperty(e))return;a=[],o.preloads.scripts.set(e,a),o.bulkPreloads.add(a),Ke(a,N({rel:"preload",href:e,as:t},n)),i.scriptResources[e]=!n||"string"!=typeof n.crossOrigin&&"string"!=typeof n.integrity?re:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if((a=i.unknownResources[t]).hasOwnProperty(e))return}else a={},i.unknownResources[t]=a;a[e]=re,(i=o.headers)&&0<i.remainingCapacity&&"font"===t&&(u=Un(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(o.resets.font[e]=re,i.fontPreloads&&(i.fontPreloads+=", "),i.fontPreloads+=u):"font"===(Ke(i=[],e=N({rel:"preload",href:e,as:t},n)),t)?o.fontPreloads.add(i):o.bulkPreloads.add(i)}Xi(r)}}else ne.L(e,t,n)},m:function(e,t){var n=ci||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=t&&"string"==typeof t.as?t.as:"script";if("script"===o){if(r.moduleScriptResources.hasOwnProperty(e))return;o=[],r.moduleScriptResources[e]=!t||"string"!=typeof t.crossOrigin&&"string"!=typeof t.integrity?re:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,o)}else{if(r.moduleUnknownResources.hasOwnProperty(o)){var a=r.unknownResources[o];if(a.hasOwnProperty(e))return}else a={},r.moduleUnknownResources[o]=a;o=[],a[e]=re}Ke(o,N({rel:"modulepreload",href:e},t)),i.bulkPreloads.add(o),Xi(n)}}else ne.m(e,t)},X:function(e,t){var n=ci||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;null!==o&&(r.scriptResources[e]=null,t=N({src:e,async:!0},t),o&&(2===o.length&&Hn(t,o),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),tt(e,t),Xi(n))}}else ne.X(e,t)},S:function(e,t,n){var r=ci||null;if(r){var i=r.resumableState,o=r.renderState;if(e){t=t||"default";var a=o.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;null!==s&&(i.styleResources[e]=null,a||(a={precedence:L(Y(t)),rules:[],hrefs:[],sheets:new Map},o.styles.set(t,a)),t={state:0,props:N({rel:"stylesheet",href:e,"data-precedence":t},n)},s&&(2===s.length&&Hn(t.props,s),(o=o.preloads.stylesheets.get(e))&&0<o.length?o.length=0:t.state=1),a.sheets.set(e,t),Xi(r))}}else ne.S(e,t,n)},M:function(e,t){var n=ci||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var o=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;null!==o&&(r.moduleScriptResources[e]=null,t=N({src:e,type:"module",async:!0},t),o&&(2===o.length&&Hn(t,o),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),tt(e,t),Xi(n))}}else ne.M(e,t)}};var re=[];D('"></template>');var ie=D("<script>"),oe=D("<\/script>"),ae=D('<script src="'),se=D('<script type="module" src="'),le=D('" nonce="'),ce=D('" integrity="'),ue=D('" crossorigin="'),de=D('" async=""><\/script>'),pe=/(<\/|<)(s)(cript)/gi;function fe(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}var he=D('<script type="importmap">'),ge=D("<\/script>");function me(e,t,n,r,i,o){var a=void 0===t?ie:D('<script nonce="'+Y(t)+'">'),s=e.idPrefix;n=[];var l=e.bootstrapScriptContent,c=e.bootstrapScripts,u=e.bootstrapModules;if(void 0!==l&&n.push(a,L((""+l).replace(pe,fe)),oe),l=[],void 0!==r&&(l.push(he),l.push(L((""+JSON.stringify(r)).replace(pe,fe))),l.push(ge)),r=i?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+("number"==typeof o?o:2e3)}:null,i={placeholderPrefix:D(s+"P:"),segmentPrefix:D(s+"S:"),boundaryPrefix:D(s+"B:"),startInlineScript:a,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},externalRuntimeScript:null,bootstrapChunks:n,importMapChunks:l,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:t,hoistableState:null,stylesToHoist:!1},void 0!==c)for(r=0;r<c.length;r++){var d=c[r];s=a=void 0,l={rel:"preload",as:"script",fetchPriority:"low",nonce:t},"string"==typeof d?l.href=o=d:(l.href=o=d.src,l.integrity=s="string"==typeof d.integrity?d.integrity:void 0,l.crossOrigin=a="string"==typeof d||null==d.crossOrigin?void 0:"use-credentials"===d.crossOrigin?"use-credentials":"");var p=o;(d=e).scriptResources[p]=null,d.moduleScriptResources[p]=null,Ke(d=[],l),i.bootstrapScripts.add(d),n.push(ae,L(Y(o))),t&&n.push(le,L(Y(t))),"string"==typeof s&&n.push(ce,L(Y(s))),"string"==typeof a&&n.push(ue,L(Y(a))),n.push(de)}if(void 0!==u)for(c=0;c<u.length;c++)a=o=void 0,s={rel:"modulepreload",fetchPriority:"low",nonce:t},"string"==typeof(l=u[c])?s.href=r=l:(s.href=r=l.src,s.integrity=a="string"==typeof l.integrity?l.integrity:void 0,s.crossOrigin=o="string"==typeof l||null==l.crossOrigin?void 0:"use-credentials"===l.crossOrigin?"use-credentials":""),d=r,(l=e).scriptResources[d]=null,l.moduleScriptResources[d]=null,Ke(l=[],s),i.bootstrapScripts.add(l),n.push(se,L(Y(r))),t&&n.push(le,L(Y(t))),"string"==typeof a&&n.push(ce,L(Y(a))),"string"==typeof o&&n.push(ue,L(Y(o))),n.push(de);return i}function ve(e,t,n,r,i){return{idPrefix:void 0===e?"":e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function be(){return{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}}function ye(e,t,n){return{insertionMode:e,selectedValue:t,tagScope:n}}function xe(e){return ye("http://www.w3.org/2000/svg"===e?4:"http://www.w3.org/1998/Math/MathML"===e?5:0,null,0)}function ke(e,t,n){switch(t){case"noscript":return ye(2,null,1|e.tagScope);case"select":return ye(2,null!=n.value?n.value:n.defaultValue,e.tagScope);case"svg":return ye(4,null,e.tagScope);case"picture":return ye(2,null,2|e.tagScope);case"math":return ye(5,null,e.tagScope);case"foreignObject":return ye(2,null,e.tagScope);case"table":return ye(6,null,e.tagScope);case"thead":case"tbody":case"tfoot":return ye(7,null,e.tagScope);case"colgroup":return ye(9,null,e.tagScope);case"tr":return ye(8,null,e.tagScope);case"head":if(2>e.insertionMode)return ye(3,null,e.tagScope);break;case"html":if(0===e.insertionMode)return ye(1,null,e.tagScope)}return 6<=e.insertionMode||2>e.insertionMode?ye(2,null,e.tagScope):e}var we=D("\x3c!-- --\x3e");function Se(e,t,n,r){return""===t?r:(r&&e.push(we),e.push(L(Y(t))),!0)}var _e=new Map,Ce=D(' style="'),Ee=D(":"),Pe=D(";");function ze(e,t){if("object"!=typeof t)throw Error(n(62));var r,i=!0;for(r in t)if($.call(t,r)){var o=t[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var a=L(Y(r));o=L(Y((""+o).trim()))}else void 0===(a=_e.get(r))&&(a=D(Y(r.replace(X,"-$1").toLowerCase().replace(K,"-ms-"))),_e.set(r,a)),o="number"==typeof o?0===o||U.has(r)?L(""+o):L(o+"px"):L(Y((""+o).trim()));i?(i=!1,e.push(Ce,a,Ee,o)):e.push(Pe,a,Ee,o)}}i||e.push(Ie)}var Re=D(" "),Te=D('="'),Ie=D('"'),Oe=D('=""');function Fe(e,t,n){n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Re,L(t),Oe)}function Ae(e,t,n){"function"!=typeof n&&"symbol"!=typeof n&&"boolean"!=typeof n&&e.push(Re,L(t),Te,L(Y(n)),Ie)}var Me=D(Y("javascript:throw new Error('React form unexpectedly submitted.')")),Le=D('<input type="hidden"');function De(e,t){this.push(Le),je(e),Ae(this,"name",t),Ae(this,"value",e),this.push(Ve)}function je(e){if("string"!=typeof e)throw Error(n(480))}function Ne(e,t){if("function"==typeof t.$$FORM_ACTION){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);if(r){var i=r.data;null!=i&&i.forEach(je)}return r}catch(o){if("object"==typeof o&&null!==o&&"function"==typeof o.then)throw o}}return null}function $e(e,t,n,r,i,o,a,s){var l=null;if("function"==typeof r){var c=Ne(t,r);null!==c?(s=c.name,r=c.action||"",i=c.encType,o=c.method,a=c.target,l=c.data):(e.push(Re,L("formAction"),Te,Me,Ie),a=o=i=r=s=null,Ge(t,n))}return null!=s&&Be(e,"name",s),null!=r&&Be(e,"formAction",r),null!=i&&Be(e,"formEncType",i),null!=o&&Be(e,"formMethod",o),null!=a&&Be(e,"formTarget",a),l}function Be(e,t,n){switch(t){case"className":Ae(e,"class",n);break;case"tabIndex":Ae(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ae(e,t,n);break;case"style":ze(e,n);break;case"src":case"href":if(""===n)break;case"action":case"formAction":if(null==n||"function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=Z(""+n),e.push(Re,L(t),Te,L(Y(n)),Ie);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Fe(e,t.toLowerCase(),n);break;case"xlinkHref":if("function"==typeof n||"symbol"==typeof n||"boolean"==typeof n)break;n=Z(""+n),e.push(Re,L("xlink:href"),Te,L(Y(n)),Ie);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":"function"!=typeof n&&"symbol"!=typeof n&&e.push(Re,L(t),Te,L(Y(n)),Ie);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":n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Re,L(t),Oe);break;case"capture":case"download":!0===n?e.push(Re,L(t),Oe):!1!==n&&"function"!=typeof n&&"symbol"!=typeof n&&e.push(Re,L(t),Te,L(Y(n)),Ie);break;case"cols":case"rows":case"size":case"span":"function"!=typeof n&&"symbol"!=typeof n&&!isNaN(n)&&1<=n&&e.push(Re,L(t),Te,L(Y(n)),Ie);break;case"rowSpan":case"start":"function"==typeof n||"symbol"==typeof n||isNaN(n)||e.push(Re,L(t),Te,L(Y(n)),Ie);break;case"xlinkActuate":Ae(e,"xlink:actuate",n);break;case"xlinkArcrole":Ae(e,"xlink:arcrole",n);break;case"xlinkRole":Ae(e,"xlink:role",n);break;case"xlinkShow":Ae(e,"xlink:show",n);break;case"xlinkTitle":Ae(e,"xlink:title",n);break;case"xlinkType":Ae(e,"xlink:type",n);break;case"xmlBase":Ae(e,"xml:base",n);break;case"xmlLang":Ae(e,"xml:lang",n);break;case"xmlSpace":Ae(e,"xml:space",n);break;default:if((!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&H(t=q.get(t)||t)){switch(typeof n){case"function":case"symbol":return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return}e.push(Re,L(t),Te,L(Y(n)),Ie)}}}var We=D(">"),Ve=D("/>");function He(e,t,r){if(null!=t){if(null!=r)throw Error(n(60));if("object"!=typeof t||!("__html"in t))throw Error(n(61));null!=(t=t.__html)&&e.push(L(""+t))}}var Ue=D(' selected=""'),qe=D('addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});');function Ge(e,t){!(16&e.instructions)&&(e.instructions|=16,t.bootstrapChunks.unshift(t.startInlineScript,qe,oe))}var Ye=D("\x3c!--F!--\x3e"),Xe=D("\x3c!--F--\x3e");function Ke(e,t){for(var r in e.push(st("link")),t)if($.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Be(e,r,i)}}return e.push(Ve),null}var Qe=/(<\/|<)(s)(tyle)/gi;function Ze(e,t,n,r){return t+("s"===n?"\\73 ":"\\53 ")+r}function Je(e,t,r){for(var i in e.push(st(r)),t)if($.call(t,i)){var o=t[i];if(null!=o)switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,r));default:Be(e,i,o)}}return e.push(Ve),null}function et(e,t){e.push(st("title"));var n,r=null,i=null;for(n in t)if($.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Be(e,n,o)}}return e.push(We),"function"!=typeof(t=Array.isArray(r)?2>r.length?r[0]:null:r)&&"symbol"!=typeof t&&null!=t&&e.push(L(Y(""+t))),He(e,i,r),e.push(ut("title")),null}function tt(e,t){e.push(st("script"));var n,r=null,i=null;for(n in t)if($.call(t,n)){var o=t[n];if(null!=o)switch(n){case"children":r=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Be(e,n,o)}}return e.push(We),He(e,i,r),"string"==typeof r&&e.push(L((""+r).replace(pe,fe))),e.push(ut("script")),null}function nt(e,t,n){e.push(st(n));var r,i=n=null;for(r in t)if($.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Be(e,r,o)}}return e.push(We),He(e,i,n),n}function rt(e,t,n){e.push(st(n));var r,i=n=null;for(r in t)if($.call(t,r)){var o=t[r];if(null!=o)switch(r){case"children":n=o;break;case"dangerouslySetInnerHTML":i=o;break;default:Be(e,r,o)}}return e.push(We),He(e,i,n),"string"==typeof n?(e.push(L(Y(n))),null):n}var it=D("\n"),ot=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,at=new Map;function st(e){var t=at.get(e);if(void 0===t){if(!ot.test(e))throw Error(n(65,e));t=D("<"+e),at.set(e,t)}return t}var lt=D("<!DOCTYPE html>");var ct=new Map;function ut(e){var t=ct.get(e);return void 0===t&&(t=D("</"+e+">"),ct.set(e,t)),t}function dt(e,t){null===(e=e.preamble).htmlChunks&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks,t.contribution|=1),null===e.headChunks&&t.headChunks&&(e.headChunks=t.headChunks,t.contribution|=4),null===e.bodyChunks&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks,t.contribution|=2)}function pt(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)O(e,t[n]);return!(n<t.length)||(n=t[n],t.length=0,F(e,n))}var ft=D('<template id="'),ht=D('"></template>'),gt=D("\x3c!--$--\x3e"),mt=D('\x3c!--$?--\x3e<template id="'),vt=D('"></template>'),bt=D("\x3c!--$!--\x3e"),yt=D("\x3c!--/$--\x3e"),xt=D("<template"),kt=D('"'),wt=D(' data-dgst="');D(' data-msg="'),D(' data-stck="'),D(' data-cstck="');var St=D("></template>");function _t(e,t,r){if(O(e,mt),null===r)throw Error(n(395));return O(e,t.boundaryPrefix),O(e,L(r.toString(16))),F(e,vt)}var Ct=D("\x3c!--"),Et=D("--\x3e");function Pt(e,t){0!==(t=t.contribution)&&(O(e,Ct),O(e,L(""+t)),O(e,Et))}var zt=D('<div hidden id="'),Rt=D('">'),Tt=D("</div>"),It=D('<svg aria-hidden="true" style="display:none" id="'),Ot=D('">'),Ft=D("</svg>"),At=D('<math aria-hidden="true" style="display:none" id="'),Mt=D('">'),Lt=D("</math>"),Dt=D('<table hidden id="'),jt=D('">'),Nt=D("</table>"),$t=D('<table hidden><tbody id="'),Bt=D('">'),Wt=D("</tbody></table>"),Vt=D('<table hidden><tr id="'),Ht=D('">'),Ut=D("</tr></table>"),qt=D('<table hidden><colgroup id="'),Gt=D('">'),Yt=D("</colgroup></table>"),Xt=D('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Kt=D('$RS("'),Qt=D('","'),Zt=D('")<\/script>');D('<template data-rsi="" data-sid="'),D('" data-pid="');var Jt=D('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'),en=D('$RC("'),tn=D('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),nn=D('$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'),rn=D('$RR("'),on=D('","'),an=D('",'),sn=D('"'),ln=D(")<\/script>");D('<template data-rci="" data-bid="'),D('<template data-rri="" data-bid="'),D('" data-sid="'),D('" data-sty="');var cn=D('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),un=D('$RX("'),dn=D('"'),pn=D(","),fn=D(")<\/script>");D('<template data-rxi="" data-bid="'),D('" data-dgst="'),D('" data-msg="'),D('" data-stck="'),D('" data-cstck="');var hn=/[<\u2028\u2029]/g;function gn(e){return JSON.stringify(e).replace(hn,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var mn=/[&><\u2028\u2029]/g;function vn(e){return JSON.stringify(e).replace(mn,function(e){switch(e){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var bn=D('<style media="not all" data-precedence="'),yn=D('" data-href="'),xn=D('">'),kn=D("</style>"),wn=!1,Sn=!0;function _n(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(O(this,bn),O(this,e.precedence),O(this,yn);r<n.length-1;r++)O(this,n[r]),O(this,On);for(O(this,n[r]),O(this,xn),r=0;r<t.length;r++)O(this,t[r]);Sn=F(this,kn),wn=!0,t.length=0,n.length=0}}function Cn(e){return 2!==e.state&&(wn=!0)}function En(e,t,n){return wn=!1,Sn=!0,t.styles.forEach(_n,e),t.stylesheets.forEach(Cn),wn&&(n.stylesToHoist=!0),Sn}function Pn(e){for(var t=0;t<e.length;t++)O(this,e[t]);e.length=0}var zn=[];function Rn(e){Ke(zn,e.props);for(var t=0;t<zn.length;t++)O(this,zn[t]);zn.length=0,e.state=2}var Tn=D('<style data-precedence="'),In=D('" data-href="'),On=D(" "),Fn=D('">'),An=D("</style>");function Mn(e){var t=0<e.sheets.size;e.sheets.forEach(Rn,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(O(this,Tn),O(this,e.precedence),e=0,r.length){for(O(this,In);e<r.length-1;e++)O(this,r[e]),O(this,On);O(this,r[e])}for(O(this,Fn),e=0;e<n.length;e++)O(this,n[e]);O(this,An),n.length=0,r.length=0}}function Ln(e){if(0===e.state){e.state=1;var t=e.props;for(Ke(zn,{rel:"preload",as:"style",href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<zn.length;e++)O(this,zn[e]);zn.length=0}}function Dn(e){e.sheets.forEach(Ln,this),e.sheets.clear()}var jn=D("["),Nn=D(",["),$n=D(","),Bn=D("]");function Wn(e,t,n){var r=t.toLowerCase();switch(typeof n){case"function":case"symbol":return}switch(t){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":r="class",t=""+n;break;case"hidden":if(!1===n)return;t="";break;case"src":case"href":t=""+(n=Z(n));break;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])||!H(t))return;t=""+n}O(e,$n),O(e,L(vn(r))),O(e,$n),O(e,L(vn(t)))}function Vn(){return{styles:new Set,stylesheets:new Set}}function Hn(e,t){null==e.crossOrigin&&(e.crossOrigin=t[0]),null==e.integrity&&(e.integrity=t[1])}function Un(e,t,n){for(var r in t="<"+(e=(""+e).replace(qn,Gn))+'>; rel=preload; as="'+(t=(""+t).replace(Yn,Xn))+'"',n)$.call(n,r)&&"string"==typeof(e=n[r])&&(t+="; "+r.toLowerCase()+'="'+(""+e).replace(Yn,Xn)+'"');return t}var qn=/[<>\r\n]/g;function Gn(e){switch(e){case"<":return"%3C";case">":return"%3E";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Yn=/["';,\r\n]/g;function Xn(e){switch(e){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case"\n":return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Kn(e){this.styles.add(e)}function Qn(e){this.stylesheets.add(e)}var Zn=Function.prototype.bind,Jn=Symbol.for("react.client.reference");function er(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Jn?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case s:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList";case v:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case i:return"Portal";case u:return(e.displayName||"Context")+".Provider";case c:return(e._context.displayName||"Context")+".Consumer";case d:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(t=e.displayName||null)?t:er(e.type)||"Memo";case g:t=e._payload,e=e._init;try{return er(e(t))}catch(n){}}return null}var tr={},nr=null;function rr(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(n(401))}else{if(null===r)throw Error(n(401));rr(e,r)}t.context._currentValue=t.value}}function ir(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&ir(e)}function or(e){var t=e.parent;null!==t&&or(t),e.context._currentValue=e.value}function ar(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(n(402));e.depth===t.depth?rr(e,t):ar(e,t)}function sr(e,t){var r=t.parent;if(null===r)throw Error(n(402));e.depth===r.depth?rr(e,r):sr(e,r),t.context._currentValue=t.value}function lr(e){var t=nr;t!==e&&(null===t?or(e):null===e?ir(t):t.depth===e.depth?rr(t,e):t.depth>e.depth?ar(t,e):sr(t,e),nr=e)}var cr={enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},ur={id:1,overflow:""};function dr(e,t,n){var r=e.id;e=e.overflow;var i=32-pr(r)-1;r&=~(1<<i),n+=1;var o=32-pr(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-pr(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var pr=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(fr(e)/hr|0)|0},fr=Math.log,hr=Math.LN2,gr=Error(n(460));function mr(){}var vr=null;function br(){if(null===vr)throw Error(n(459));var e=vr;return vr=null,e}var yr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},xr=null,kr=null,wr=null,Sr=null,_r=null,Cr=null,Er=!1,Pr=!1,zr=0,Rr=0,Tr=-1,Ir=0,Or=null,Fr=null,Ar=0;function Mr(){if(null===xr)throw Error(n(321));return xr}function Lr(){if(0<Ar)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Dr(){return null===Cr?null===_r?(Er=!1,_r=Cr=Lr()):(Er=!0,Cr=_r):null===Cr.next?(Er=!1,Cr=Cr.next=Lr()):(Er=!0,Cr=Cr.next),Cr}function jr(){var e=Or;return Or=null,e}function Nr(){Sr=wr=kr=xr=null,Pr=!1,_r=null,Ar=0,Cr=Fr=null}function $r(e,t){return"function"==typeof t?t(e):t}function Br(e,t,n){if(xr=Mr(),Cr=Dr(),Er){var r=Cr.queue;if(t=r.dispatch,null!==Fr&&void 0!==(n=Fr.get(r))){Fr.delete(r),r=Cr.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Cr.memoizedState=r,[r,t]}return[Cr.memoizedState,t]}return e=e===$r?"function"==typeof t?t():t:void 0!==n?n(t):t,Cr.memoizedState=e,e=(e=Cr.queue={last:null,dispatch:null}).dispatch=Vr.bind(null,xr,e),[Cr.memoizedState,e]}function Wr(e,t){if(xr=Mr(),t=void 0===t?null:t,null!==(Cr=Dr())){var n=Cr.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!yr(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Cr.memoizedState=[e,t],e}function Vr(e,t,r){if(25<=Ar)throw Error(n(301));if(e===xr)if(Pr=!0,e={action:r,next:null},null===Fr&&(Fr=new Map),void 0===(r=Fr.get(t)))Fr.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Hr(){throw Error(n(394))}function Ur(){throw Error(n(479))}function qr(e,t,n){Mr();var r=Rr++,i=wr;if("function"==typeof e.$$FORM_ACTION){var o=null,a=Sr;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(null!==i&&"function"==typeof s){var l=i[1];s.call(e,i[2],i[3])&&l===(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0))&&(Tr=r,t=i[0])}var c=e.bind(null,t);return e=function(e){c(e)},"function"==typeof c.$$FORM_ACTION&&(e.$$FORM_ACTION=function(e){e=c.$$FORM_ACTION(e),void 0!==n&&(n+="",e.action=n);var t=e.data;return t&&(null===o&&(o=void 0!==n?"p"+n:"k"+S(JSON.stringify([a,null,r]),0)),t.append("$ACTION_KEY",o)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Gr(e){var t=Ir;return Ir+=1,null===Or&&(Or=[]),function(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(mr,mr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch("string"==typeof t.status?t.then(mr,mr):((e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}throw vr=t,gr}}(Or,e,t)}function Yr(){throw Error(n(393))}function Xr(){}var Kr,Qr,Zr={readContext:function(e){return e._currentValue},use:function(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Gr(e);if(e.$$typeof===u)return e._currentValue}throw Error(n(438,String(e)))},useContext:function(e){return Mr(),e._currentValue},useMemo:Wr,useReducer:Br,useRef:function(e){xr=Mr();var t=(Cr=Dr()).memoizedState;return null===t?(e={current:e},Cr.memoizedState=e):t},useState:function(e){return Br($r,e)},useInsertionEffect:Xr,useLayoutEffect:Xr,useCallback:function(e,t){return Wr(function(){return e},t)},useImperativeHandle:Xr,useEffect:Xr,useDebugValue:Xr,useDeferredValue:function(e,t){return Mr(),void 0!==t?t:e},useTransition:function(){return Mr(),[!1,Hr]},useId:function(){var e=kr.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pr(e)-1)).toString(32)+t;var r=Jr;if(null===r)throw Error(n(404));return t=zr++,e="«"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+"»"},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(n(407));return r()},useOptimistic:function(e){return Mr(),[e,Ur]},useActionState:qr,useFormState:qr,useHostTransitionStatus:function(){return Mr(),te},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=y;return t},useCacheRefresh:function(){return Yr}},Jr=null,ei={getCacheForType:function(){throw Error(n(248))}};function ti(e){if(void 0===Kr)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kr=t&&t[1]||"",Qr=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Kr+e+Qr}var ni=!1;function ri(e,t){if(!e||ni)return"";ni=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{ni=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ti(n):""}function ii(e){if("string"==typeof e)return ti(e);if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?ri(e,!0):ri(e,!1);if("object"==typeof e&&null!==e){switch(e.$$typeof){case d:return ri(e.render,!1);case h:return ri(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch(r){return ti("Lazy")}return ii(e)}if("string"==typeof e.name)return n=e.env,ti(e.name+(n?" ["+n+"]":""))}switch(e){case f:return ti("SuspenseList");case p:return ti("Suspense")}return""}function oi(e){if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var t=e.environmentName;"string"==typeof(e=[e].slice(0))[0]?e.splice(0,1,"%c%s%c "+e[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""):e.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+t+" ",""),e.unshift(console),(t=Zn.apply(console.error,e))()}return null}function ai(){}function si(e,t,n,r,i,o,a,s,l,c,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=void 0===r?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=void 0===i?oi:i,this.onPostpone=void 0===c?ai:c,this.onAllReady=void 0===o?ai:o,this.onShellReady=void 0===a?ai:a,this.onShellError=void 0===s?ai:s,this.onFatalError=void 0===l?ai:l,this.formState=void 0===u?null:u}function li(e,t,n,r,i,o,a,s,l,c,u,d){return(n=hi(t=new si(t,n,r,i,o,a,s,l,c,u,d),0,null,r,!1,!1)).parentFlushed=!0,gi(e=pi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,ur,null,!1)),t.pingedTasks.push(e),t}var ci=null;function ui(e,t){e.pingedTasks.push(t),1===e.pingedTasks.length&&(e.flushScheduled=null!==e.destination,null!==e.trackedPostpones||10===e.status?R(function(){return ji(e)}):E(function(){return ji(e)}))}function di(e,t,n,r){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null,contentState:Vn(),fallbackState:Vn(),contentPreamble:n,fallbackPreamble:r,trackedContentKeyPath:null,trackedFallbackNode:null}}function pi(e,t,n,r,i,o,a,s,l,c,u,d,p,f,h){e.allPendingTasks++,null===i?e.pendingRootTasks++:i.pendingTasks++;var g={replay:null,node:n,childIndex:r,ping:function(){return ui(e,g)},blockedBoundary:i,blockedSegment:o,blockedPreamble:a,hoistableState:s,abortSet:l,keyPath:c,formatContext:u,context:d,treeContext:p,componentStack:f,thenableState:t,isFallback:h};return l.add(g),g}function fi(e,t,n,r,i,o,a,s,l,c,u,d,p,f){e.allPendingTasks++,null===o?e.pendingRootTasks++:o.pendingTasks++,n.pendingTasks++;var h={replay:n,node:r,childIndex:i,ping:function(){return ui(e,h)},blockedBoundary:o,blockedSegment:null,blockedPreamble:null,hoistableState:a,abortSet:s,keyPath:l,formatContext:c,context:u,treeContext:d,componentStack:p,thenableState:t,isFallback:f};return s.add(h),h}function hi(e,t,n,r,i,o){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function gi(e){var t=e.node;"object"==typeof t&&null!==t&&t.$$typeof===r&&(e.componentStack={parent:e.componentStack,type:t.type})}function mi(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n="",r=e;do{n+=ii(r.type),r=r.parent}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function vi(e,t,n){if(null==(t=(e=e.onError)(t,n))||"string"==typeof t)return t}function bi(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),null!==e.destination?(e.status=14,j(e.destination,t)):(e.status=13,e.fatalError=t)}function yi(e,t,n,r,i,o){var a=t.thenableState;for(t.thenableState=null,xr={},kr=t,wr=e,Sr=n,Rr=zr=0,Tr=-1,Ir=0,Or=a,e=r(i,o);Pr;)Pr=!1,Rr=zr=0,Tr=-1,Ir=0,Ar+=1,Cr=null,e=r(i,o);return Nr(),e}function xi(e,t,n,r,i,o,a){var s=!1;if(0!==o&&null!==e.formState){var l=t.blockedSegment;if(null!==l){s=!0,l=l.chunks;for(var c=0;c<o;c++)c===a?l.push(Ye):l.push(Xe)}}o=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=dr(n,1,0),Ri(e,t,r,-1),t.treeContext=n):s?Ri(e,t,r,-1):Si(e,t,r,-1),t.keyPath=o}function ki(t,r,i,y,k,S){if("function"==typeof y)if(y.prototype&&y.prototype.isReactComponent){var _=k;if("ref"in k)for(var C in _={},k)"ref"!==C&&(_[C]=k[C]);var E=y.defaultProps;if(E)for(var P in _===k&&(_=N({},_,k)),E)void 0===_[P]&&(_[P]=E[P]);k=_,_=tr,"object"==typeof(E=y.contextType)&&null!==E&&(_=E._currentValue);var z=void 0!==(_=new y(k,_)).state?_.state:null;if(_.updater=cr,_.props=k,_.state=z,E={queue:[],replace:!1},_._reactInternals=E,S=y.contextType,_.context="object"==typeof S&&null!==S?S._currentValue:tr,"function"==typeof(S=y.getDerivedStateFromProps)&&(z=null==(S=S(k,z))?z:N({},z,S),_.state=z),"function"!=typeof y.getDerivedStateFromProps&&"function"!=typeof _.getSnapshotBeforeUpdate&&("function"==typeof _.UNSAFE_componentWillMount||"function"==typeof _.componentWillMount))if(y=_.state,"function"==typeof _.componentWillMount&&_.componentWillMount(),"function"==typeof _.UNSAFE_componentWillMount&&_.UNSAFE_componentWillMount(),y!==_.state&&cr.enqueueReplaceState(_,_.state,null),null!==E.queue&&0<E.queue.length)if(y=E.queue,S=E.replace,E.queue=null,E.replace=!1,S&&1===y.length)_.state=y[0];else{for(E=S?y[0]:_.state,z=!0,S=S?1:0;S<y.length;S++)null!=(P="function"==typeof(P=y[S])?P.call(_,E,k,void 0):P)&&(z?(z=!1,E=N({},E,P)):N(E,P));_.state=E}else E.queue=null;if(y=_.render(),12===t.status)throw null;k=r.keyPath,r.keyPath=i,Si(t,r,y,-1),r.keyPath=k}else{if(y=yi(t,r,i,y,k,void 0),12===t.status)throw null;xi(t,r,i,y,0!==zr,Rr,Tr)}else{if("string"!=typeof y){switch(y){case b:case a:case s:case o:return y=r.keyPath,r.keyPath=i,Si(t,r,k.children,-1),void(r.keyPath=y);case v:return void("hidden"!==k.mode&&(y=r.keyPath,r.keyPath=i,Si(t,r,k.children,-1),r.keyPath=y));case f:return y=r.keyPath,r.keyPath=i,Si(t,r,k.children,-1),void(r.keyPath=y);case x:case m:throw Error(n(343));case p:e:if(null!==r.replay){y=r.keyPath,r.keyPath=i,i=k.children;try{Ri(t,r,i,-1)}finally{r.keyPath=y}}else{y=r.keyPath;var R=r.blockedBoundary;S=r.blockedPreamble;var T=r.hoistableState;P=r.blockedSegment,C=k.fallback,k=k.children;var I=new Set,O=2>r.formatContext.insertionMode?di(0,I,{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0},{htmlChunks:null,headChunks:null,bodyChunks:null,contribution:0}):di(0,I,null,null);null!==t.trackedPostpones&&(O.trackedContentKeyPath=i);var F=hi(0,P.chunks.length,O,r.formatContext,!1,!1);P.children.push(F),P.lastPushedText=!1;var A=hi(0,0,null,r.formatContext,!1,!1);if(A.parentFlushed=!0,null!==t.trackedPostpones){E=[(_=[i[0],"Suspense Fallback",i[2]])[1],_[2],[],null],t.trackedPostpones.workingMap.set(_,E),O.trackedFallbackNode=E,r.blockedSegment=F,r.blockedPreamble=O.fallbackPreamble,r.keyPath=_,F.status=6;try{Ri(t,r,C,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(we),F.status=1}catch(M){throw F.status=12===t.status?3:4,M}finally{r.blockedSegment=P,r.blockedPreamble=S,r.keyPath=y}gi(r=pi(t,null,k,-1,O,A,O.contentPreamble,O.contentState,r.abortSet,i,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(r)}else{r.blockedBoundary=O,r.blockedPreamble=O.contentPreamble,r.hoistableState=O.contentState,r.blockedSegment=A,r.keyPath=i,A.status=6;try{if(Ri(t,r,k,-1),A.lastPushedText&&A.textEmbedded&&A.chunks.push(we),A.status=1,Li(O,A),0===O.pendingTasks&&0===O.status){O.status=1,0===t.pendingRootTasks&&r.blockedPreamble&&Bi(t);break e}}catch(D){O.status=4,12===t.status?(A.status=3,_=t.fatalError):(A.status=4,_=D),z=vi(t,_,E=mi(r.componentStack)),O.errorDigest=z,Ei(t,O)}finally{r.blockedBoundary=R,r.blockedPreamble=S,r.hoistableState=T,r.blockedSegment=P,r.keyPath=y}gi(r=pi(t,null,C,-1,R,F,O.fallbackPreamble,O.fallbackState,I,[i[0],"Suspense Fallback",i[2]],r.formatContext,r.context,r.treeContext,r.componentStack,!0)),t.pingedTasks.push(r)}}return}if("object"==typeof y&&null!==y)switch(y.$$typeof){case d:if("ref"in k)for(O in _={},k)"ref"!==O&&(_[O]=k[O]);else _=k;return void xi(t,r,i,y=yi(t,r,i,y.render,_,S),0!==zr,Rr,Tr);case h:return void ki(t,r,i,y.type,k,S);case l:case u:if(E=k.children,_=r.keyPath,k=k.value,z=y._currentValue,y._currentValue=k,nr=y={parent:S=nr,depth:null===S?0:S.depth+1,context:y,parentValue:z,value:k},r.context=y,r.keyPath=i,Si(t,r,E,-1),null===(t=nr))throw Error(n(403));return t.context._currentValue=t.parentValue,t=nr=t.parent,r.context=t,void(r.keyPath=_);case c:return y=(k=k.children)(y._context._currentValue),k=r.keyPath,r.keyPath=i,Si(t,r,y,-1),void(r.keyPath=k);case g:if(y=(_=y._init)(y._payload),12===t.status)throw null;return void ki(t,r,i,y,k,S)}throw Error(n(130,null==y?y:typeof y,""))}if(null===(_=r.blockedSegment))_=k.children,E=r.formatContext,z=r.keyPath,r.formatContext=ke(E,y,k),r.keyPath=i,Ri(t,r,_,-1),r.formatContext=E,r.keyPath=z;else{S=function(t,r,i,o,a,s,l,c,u,d){switch(r){case"div":case"span":case"svg":case"path":case"g":case"p":case"li":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":break;case"a":t.push(st("a"));var p,f=null,h=null;for(p in i)if($.call(i,p)){var g=i[p];if(null!=g)switch(p){case"children":f=g;break;case"dangerouslySetInnerHTML":h=g;break;case"href":""===g?Ae(t,"href",""):Be(t,p,g);break;default:Be(t,p,g)}}if(t.push(We),He(t,h,f),"string"==typeof f){t.push(L(Y(f)));var m=null}else m=f;return m;case"select":t.push(st("select"));var v,b=null,y=null;for(v in i)if($.call(i,v)){var x=i[v];if(null!=x)switch(v){case"children":b=x;break;case"dangerouslySetInnerHTML":y=x;break;case"defaultValue":case"value":break;default:Be(t,v,x)}}return t.push(We),He(t,y,b),b;case"option":var k=c.selectedValue;t.push(st("option"));var S,_=null,C=null,E=null,P=null;for(S in i)if($.call(i,S)){var z=i[S];if(null!=z)switch(S){case"children":_=z;break;case"selected":E=z;break;case"dangerouslySetInnerHTML":P=z;break;case"value":C=z;default:Be(t,S,z)}}if(null!=k){var R=null!==C?""+C:function(t){var n="";return e.Children.forEach(t,function(e){null!=e&&(n+=e)}),n}(_);if(w(k)){for(var T=0;T<k.length;T++)if(""+k[T]===R){t.push(Ue);break}}else""+k===R&&t.push(Ue)}else E&&t.push(Ue);return t.push(We),He(t,P,_),_;case"textarea":t.push(st("textarea"));var I,O=null,F=null,A=null;for(I in i)if($.call(i,I)){var M=i[I];if(null!=M)switch(I){case"children":A=M;break;case"value":O=M;break;case"defaultValue":F=M;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Be(t,I,M)}}if(null===O&&null!==F&&(O=F),t.push(We),null!=A){if(null!=O)throw Error(n(92));if(w(A)){if(1<A.length)throw Error(n(93));O=""+A[0]}O=""+A}return"string"==typeof O&&"\n"===O[0]&&t.push(it),null!==O&&t.push(L(Y(""+O))),null;case"input":t.push(st("input"));var D,j=null,B=null,W=null,V=null,U=null,q=null,G=null,X=null,K=null;for(D in i)if($.call(i,D)){var Q=i[D];if(null!=Q)switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":j=Q;break;case"formAction":B=Q;break;case"formEncType":W=Q;break;case"formMethod":V=Q;break;case"formTarget":U=Q;break;case"defaultChecked":K=Q;break;case"defaultValue":G=Q;break;case"checked":X=Q;break;case"value":q=Q;break;default:Be(t,D,Q)}}var J=$e(t,o,a,B,W,V,U,j);return null!==X?Fe(t,"checked",X):null!==K&&Fe(t,"checked",K),null!==q?Be(t,"value",q):null!==G&&Be(t,"value",G),t.push(Ve),null!=J&&J.forEach(De,t),null;case"button":t.push(st("button"));var ee,te=null,ne=null,ie=null,oe=null,ae=null,se=null,le=null;for(ee in i)if($.call(i,ee)){var ce=i[ee];if(null!=ce)switch(ee){case"children":te=ce;break;case"dangerouslySetInnerHTML":ne=ce;break;case"name":ie=ce;break;case"formAction":oe=ce;break;case"formEncType":ae=ce;break;case"formMethod":se=ce;break;case"formTarget":le=ce;break;default:Be(t,ee,ce)}}var ue=$e(t,o,a,oe,ae,se,le,ie);if(t.push(We),null!=ue&&ue.forEach(De,t),He(t,ne,te),"string"==typeof te){t.push(L(Y(te)));var de=null}else de=te;return de;case"form":t.push(st("form"));var pe,fe=null,he=null,ge=null,me=null,ve=null,be=null;for(pe in i)if($.call(i,pe)){var ye=i[pe];if(null!=ye)switch(pe){case"children":fe=ye;break;case"dangerouslySetInnerHTML":he=ye;break;case"action":ge=ye;break;case"encType":me=ye;break;case"method":ve=ye;break;case"target":be=ye;break;default:Be(t,pe,ye)}}var xe=null,ke=null;if("function"==typeof ge){var Se=Ne(o,ge);null!==Se?(ge=Se.action||"",me=Se.encType,ve=Se.method,be=Se.target,xe=Se.data,ke=Se.name):(t.push(Re,L("action"),Te,Me,Ie),be=ve=me=ge=null,Ge(o,a))}if(null!=ge&&Be(t,"action",ge),null!=me&&Be(t,"encType",me),null!=ve&&Be(t,"method",ve),null!=be&&Be(t,"target",be),t.push(We),null!==ke&&(t.push(Le),Ae(t,"name",ke),t.push(Ve),null!=xe&&xe.forEach(De,t)),He(t,he,fe),"string"==typeof fe){t.push(L(Y(fe)));var _e=null}else _e=fe;return _e;case"menuitem":for(var Ce in t.push(st("menuitem")),i)if($.call(i,Ce)){var Ee=i[Ce];if(null!=Ee)switch(Ce){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Be(t,Ce,Ee)}}return t.push(We),null;case"object":t.push(st("object"));var Pe,Oe=null,je=null;for(Pe in i)if($.call(i,Pe)){var qe=i[Pe];if(null!=qe)switch(Pe){case"children":Oe=qe;break;case"dangerouslySetInnerHTML":je=qe;break;case"data":var Ye=Z(""+qe);if(""===Ye)break;t.push(Re,L("data"),Te,L(Y(Ye)),Ie);break;default:Be(t,Pe,qe)}}if(t.push(We),He(t,je,Oe),"string"==typeof Oe){t.push(L(Y(Oe)));var Xe=null}else Xe=Oe;return Xe;case"title":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var ot=et(t,i);else d?ot=null:(et(a.hoistableChunks,i),ot=void 0);return ot;case"link":var at=i.rel,ct=i.href,dt=i.precedence;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof at||"string"!=typeof ct||""===ct){Ke(t,i);var pt=null}else if("stylesheet"===i.rel)if("string"!=typeof dt||null!=i.disabled||i.onLoad||i.onError)pt=Ke(t,i);else{var ft=a.styles.get(dt),ht=o.styleResources.hasOwnProperty(ct)?o.styleResources[ct]:void 0;if(null!==ht){o.styleResources[ct]=null,ft||(ft={precedence:L(Y(dt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(dt,ft));var gt={state:0,props:N({},i,{"data-precedence":i.precedence,precedence:null})};if(ht){2===ht.length&&Hn(gt.props,ht);var mt=a.preloads.stylesheets.get(ct);mt&&0<mt.length?mt.length=0:gt.state=1}ft.sheets.set(ct,gt),l&&l.stylesheets.add(gt)}else if(ft){var vt=ft.sheets.get(ct);vt&&l&&l.stylesheets.add(vt)}u&&t.push(we),pt=null}else i.onLoad||i.onError?pt=Ke(t,i):(u&&t.push(we),pt=d?null:Ke(a.hoistableChunks,i));return pt;case"script":var bt=i.async;if("string"!=typeof i.src||!i.src||!bt||"function"==typeof bt||"symbol"==typeof bt||i.onLoad||i.onError||4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var yt=tt(t,i);else{var xt=i.src;if("module"===i.type)var kt=o.moduleScriptResources,wt=a.preloads.moduleScripts;else kt=o.scriptResources,wt=a.preloads.scripts;var St=kt.hasOwnProperty(xt)?kt[xt]:void 0;if(null!==St){kt[xt]=null;var _t=i;if(St){2===St.length&&Hn(_t=N({},i),St);var Ct=wt.get(xt);Ct&&(Ct.length=0)}var Et=[];a.scripts.add(Et),tt(Et,_t)}u&&t.push(we),yt=null}return yt;case"style":var Pt=i.precedence,zt=i.href;if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp||"string"!=typeof Pt||"string"!=typeof zt||""===zt){t.push(st("style"));var Rt,Tt=null,It=null;for(Rt in i)if($.call(i,Rt)){var Ot=i[Rt];if(null!=Ot)switch(Rt){case"children":Tt=Ot;break;case"dangerouslySetInnerHTML":It=Ot;break;default:Be(t,Rt,Ot)}}t.push(We);var Ft=Array.isArray(Tt)?2>Tt.length?Tt[0]:null:Tt;"function"!=typeof Ft&&"symbol"!=typeof Ft&&null!=Ft&&t.push(L((""+Ft).replace(Qe,Ze))),He(t,It,Tt),t.push(ut("style"));var At=null}else{var Mt=a.styles.get(Pt);if(null!==(o.styleResources.hasOwnProperty(zt)?o.styleResources[zt]:void 0)){o.styleResources[zt]=null,Mt?Mt.hrefs.push(L(Y(zt))):(Mt={precedence:L(Y(Pt)),rules:[],hrefs:[L(Y(zt))],sheets:new Map},a.styles.set(Pt,Mt));var Lt,Dt=Mt.rules,jt=null,Nt=null;for(Lt in i)if($.call(i,Lt)){var $t=i[Lt];if(null!=$t)switch(Lt){case"children":jt=$t;break;case"dangerouslySetInnerHTML":Nt=$t}}var Bt=Array.isArray(jt)?2>jt.length?jt[0]:null:jt;"function"!=typeof Bt&&"symbol"!=typeof Bt&&null!=Bt&&Dt.push(L((""+Bt).replace(Qe,Ze))),He(Dt,Nt,jt)}Mt&&l&&l.styles.add(Mt),u&&t.push(we),At=void 0}return At;case"meta":if(4===c.insertionMode||1&c.tagScope||null!=i.itemProp)var Wt=Je(t,i,"meta");else u&&t.push(we),Wt=d?null:"string"==typeof i.charSet?Je(a.charsetChunks,i,"meta"):"viewport"===i.name?Je(a.viewportChunks,i,"meta"):Je(a.hoistableChunks,i,"meta");return Wt;case"listing":case"pre":t.push(st(r));var Vt,Ht=null,Ut=null;for(Vt in i)if($.call(i,Vt)){var qt=i[Vt];if(null!=qt)switch(Vt){case"children":Ht=qt;break;case"dangerouslySetInnerHTML":Ut=qt;break;default:Be(t,Vt,qt)}}if(t.push(We),null!=Ut){if(null!=Ht)throw Error(n(60));if("object"!=typeof Ut||!("__html"in Ut))throw Error(n(61));var Gt=Ut.__html;null!=Gt&&("string"==typeof Gt&&0<Gt.length&&"\n"===Gt[0]?t.push(it,L(Gt)):t.push(L(""+Gt)))}return"string"==typeof Ht&&"\n"===Ht[0]&&t.push(it),Ht;case"img":var Yt=i.src,Xt=i.srcSet;if(!("lazy"===i.loading||!Yt&&!Xt||"string"!=typeof Yt&&null!=Yt||"string"!=typeof Xt&&null!=Xt)&&"low"!==i.fetchPriority&&0==!!(3&c.tagScope)&&("string"!=typeof Yt||":"!==Yt[4]||"d"!==Yt[0]&&"D"!==Yt[0]||"a"!==Yt[1]&&"A"!==Yt[1]||"t"!==Yt[2]&&"T"!==Yt[2]||"a"!==Yt[3]&&"A"!==Yt[3])&&("string"!=typeof Xt||":"!==Xt[4]||"d"!==Xt[0]&&"D"!==Xt[0]||"a"!==Xt[1]&&"A"!==Xt[1]||"t"!==Xt[2]&&"T"!==Xt[2]||"a"!==Xt[3]&&"A"!==Xt[3])){var Kt="string"==typeof i.sizes?i.sizes:void 0,Qt=Xt?Xt+"\n"+(Kt||""):Yt,Zt=a.preloads.images,Jt=Zt.get(Qt);if(Jt)("high"===i.fetchPriority||10>a.highImagePreloads.size)&&(Zt.delete(Qt),a.highImagePreloads.add(Jt));else if(!o.imageResources.hasOwnProperty(Qt)){o.imageResources[Qt]=re;var en,tn=i.crossOrigin,nn="string"==typeof tn?"use-credentials"===tn?tn:"":void 0,rn=a.headers;rn&&0<rn.remainingCapacity&&"string"!=typeof i.srcSet&&("high"===i.fetchPriority||500>rn.highImagePreloads.length)&&(en=Un(Yt,"image",{imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:nn,integrity:i.integrity,nonce:i.nonce,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.refererPolicy}),0<=(rn.remainingCapacity-=en.length+2))?(a.resets.image[Qt]=re,rn.highImagePreloads&&(rn.highImagePreloads+=", "),rn.highImagePreloads+=en):(Ke(Jt=[],{rel:"preload",as:"image",href:Xt?void 0:Yt,imageSrcSet:Xt,imageSizes:Kt,crossOrigin:nn,integrity:i.integrity,type:i.type,fetchPriority:i.fetchPriority,referrerPolicy:i.referrerPolicy}),"high"===i.fetchPriority||10>a.highImagePreloads.size?a.highImagePreloads.add(Jt):(a.bulkPreloads.add(Jt),Zt.set(Qt,Jt)))}}return Je(t,i,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Je(t,i,r);case"head":if(2>c.insertionMode){var on=s||a.preamble;if(on.headChunks)throw Error(n(545,"`<head>`"));on.headChunks=[];var an=nt(on.headChunks,i,"head")}else an=rt(t,i,"head");return an;case"body":if(2>c.insertionMode){var sn=s||a.preamble;if(sn.bodyChunks)throw Error(n(545,"`<body>`"));sn.bodyChunks=[];var ln=nt(sn.bodyChunks,i,"body")}else ln=rt(t,i,"body");return ln;case"html":if(0===c.insertionMode){var cn=s||a.preamble;if(cn.htmlChunks)throw Error(n(545,"`<html>`"));cn.htmlChunks=[lt];var un=nt(cn.htmlChunks,i,"html")}else un=rt(t,i,"html");return un;default:if(-1!==r.indexOf("-")){t.push(st(r));var dn,pn=null,fn=null;for(dn in i)if($.call(i,dn)){var hn=i[dn];if(null!=hn){var gn=dn;switch(dn){case"children":pn=hn;break;case"dangerouslySetInnerHTML":fn=hn;break;case"style":ze(t,hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":gn="class";default:if(H(dn)&&"function"!=typeof hn&&"symbol"!=typeof hn&&!1!==hn){if(!0===hn)hn="";else if("object"==typeof hn)continue;t.push(Re,L(gn),Te,L(Y(hn)),Ie)}}}}return t.push(We),He(t,fn,pn),pn}}return rt(t,i,r)}(_.chunks,y,k,t.resumableState,t.renderState,r.blockedPreamble,r.hoistableState,r.formatContext,_.lastPushedText,r.isFallback),_.lastPushedText=!1,E=r.formatContext,z=r.keyPath,r.keyPath=i,3===(r.formatContext=ke(E,y,k)).insertionMode?(i=hi(0,0,null,r.formatContext,!1,!1),_.preambleChildren.push(i),gi(i=pi(t,null,S,-1,r.blockedBoundary,i,r.blockedPreamble,r.hoistableState,t.abortableTasks,r.keyPath,r.formatContext,r.context,r.treeContext,r.componentStack,r.isFallback)),t.pingedTasks.push(i)):Ri(t,r,S,-1),r.formatContext=E,r.keyPath=z;e:{switch(r=_.chunks,t=t.resumableState,y){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=E.insertionMode){t.hasBody=!0;break e}break;case"html":if(0===E.insertionMode){t.hasHtml=!0;break e}break;case"head":if(1>=E.insertionMode)break e}r.push(ut(y))}_.lastPushedText=!1}}}function wi(e,t,n,r,i){var o=t.replay,a=t.blockedBoundary,s=hi(0,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,Ri(e,t,r,i),s.status=1,null===a?e.completedRootSegment=s:(Li(a,s),a.parentFlushed&&e.partialBoundaries.push(a))}finally{t.replay=o,t.blockedSegment=null}}function Si(e,t,n,r){null!==t.replay&&"number"==typeof t.replay.slots?wi(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,gi(t),_i(e,t),t.componentStack=n)}function _i(e,t){var o=t.node,a=t.childIndex;if(null!==o){if("object"==typeof o){switch(o.$$typeof){case r:var s=o.type,l=o.key,c=o.props,d=void 0!==(o=c.ref)?o:null,f=er(s),h=null==l?-1===a?0:a:l;if(l=[t.keyPath,f,h],null!==t.replay)e:{var m=t.replay;for(a=m.nodes,o=0;o<a.length;o++){var v=a[o];if(h===v[1]){if(4===v.length){if(null!==f&&f!==v[0])throw Error(n(490,v[0],f));var b=v[2];f=v[3],h=t.node,t.replay={nodes:b,slots:f,pendingTasks:1};try{if(ki(e,t,l,s,c,d),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(z){if("object"==typeof z&&null!==z&&(z===gr||"function"==typeof z.then))throw t.node===h&&(t.replay=m),z;t.replay.pendingTasks--,c=mi(t.componentStack),Ii(e,l=t.blockedBoundary,b,f,s=z,c=vi(e,s,c))}t.replay=m}else{if(s!==p)throw Error(n(490,"Suspense",er(s)||"Unknown"));t:{m=void 0,s=v[5],d=v[2],f=v[3],h=null===v[4]?[]:v[4][2],v=null===v[4]?null:v[4][3];var y=t.keyPath,x=t.replay,S=t.blockedBoundary,_=t.hoistableState,C=c.children,E=c.fallback,P=new Set;(c=2>t.formatContext.insertionMode?di(0,P,be(),be()):di(0,P,null,null)).parentFlushed=!0,c.rootSegmentID=s,t.blockedBoundary=c,t.hoistableState=c.contentState,t.keyPath=l,t.replay={nodes:d,slots:f,pendingTasks:1};try{if(Ri(e,t,C,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));if(t.replay.pendingTasks--,0===c.pendingTasks&&0===c.status){c.status=1,e.completedBoundaries.push(c);break t}}catch(R){c.status=4,m=vi(e,R,b=mi(t.componentStack)),c.errorDigest=m,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(c)}finally{t.blockedBoundary=S,t.hoistableState=_,t.replay=x,t.keyPath=y}gi(t=fi(e,null,{nodes:h,slots:v,pendingTasks:0},E,-1,S,c.fallbackState,P,[l[0],"Suspense Fallback",l[2]],t.formatContext,t.context,t.treeContext,t.componentStack,!0)),e.pingedTasks.push(t)}}a.splice(o,1);break e}}}else ki(e,t,l,s,c,d);return;case i:throw Error(n(257));case g:if(o=(b=o._init)(o._payload),12===e.status)throw null;return void Si(e,t,o,a)}if(w(o))return void Ci(e,t,o,a);if((b=null===o||"object"!=typeof o?null:"function"==typeof(b=k&&o[k]||o["@@iterator"])?b:null)&&(b=b.call(o))){if(!(o=b.next()).done){c=[];do{c.push(o.value),o=b.next()}while(!o.done);Ci(e,t,c,a)}return}if("function"==typeof o.then)return t.thenableState=null,Si(e,t,Gr(o),a);if(o.$$typeof===u)return Si(e,t,o._currentValue,a);throw a=Object.prototype.toString.call(o),Error(n(31,"[object Object]"===a?"object with keys {"+Object.keys(o).join(", ")+"}":a))}"string"==typeof o?null!==(a=t.blockedSegment)&&(a.lastPushedText=Se(a.chunks,o,e.renderState,a.lastPushedText)):"number"!=typeof o&&"bigint"!=typeof o||null!==(a=t.blockedSegment)&&(a.lastPushedText=Se(a.chunks,""+o,e.renderState,a.lastPushedText))}}function Ci(e,t,r,i){var o=t.keyPath;if(-1===i||(t.keyPath=[t.keyPath,"Fragment",i],null===t.replay)){if(a=t.treeContext,s=r.length,null!==t.replay&&null!==(l=t.replay.slots)&&"object"==typeof l){for(i=0;i<s;i++)c=r[i],t.treeContext=dr(a,s,i),"number"==typeof(u=l[i])?(wi(e,t,u,c,i),delete l[i]):Ri(e,t,c,i);return t.treeContext=a,void(t.keyPath=o)}for(l=0;l<s;l++)i=r[l],t.treeContext=dr(a,s,l),Ri(e,t,i,l);t.treeContext=a,t.keyPath=o}else{for(var a=t.replay,s=a.nodes,l=0;l<s.length;l++){var c=s[l];if(c[1]===i){i=c[2],c=c[3],t.replay={nodes:i,slots:c,pendingTasks:1};try{if(Ci(e,t,r,-1),1===t.replay.pendingTasks&&0<t.replay.nodes.length)throw Error(n(488));t.replay.pendingTasks--}catch(d){if("object"==typeof d&&null!==d&&(d===gr||"function"==typeof d.then))throw d;t.replay.pendingTasks--,r=mi(t.componentStack);var u=t.blockedBoundary;Ii(e,u,i,c,d,r=vi(e,d,r))}t.replay=a,s.splice(l,1);break}}t.keyPath=o}}function Ei(e,t){null!==(e=e.trackedPostpones)&&null!==(t=t.trackedContentKeyPath)&&void 0!==(t=e.workingMap.get(t))&&(t.length=4,t[2]=[],t[3]=null)}function Pi(e,t,n){return fi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function zi(e,t,n){var r=t.blockedSegment,i=hi(0,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,pi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.componentStack,t.isFallback)}function Ri(e,t,n,r){var i=t.formatContext,o=t.context,a=t.keyPath,s=t.treeContext,l=t.componentStack,c=t.blockedSegment;if(null===c)try{return Si(e,t,n,r)}catch(p){if(Nr(),"object"==typeof(n=p===gr?br():p)&&null!==n){if("function"==typeof n.then)return e=Pi(e,t,r=jr()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lr(o);if("Maximum call stack size exceeded"===n.message)return n=Pi(e,t,n=jr()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lr(o)}}else{var u=c.children.length,d=c.chunks.length;try{return Si(e,t,n,r)}catch(f){if(Nr(),c.children.length=u,c.chunks.length=d,"object"==typeof(n=f===gr?br():f)&&null!==n){if("function"==typeof n.then)return e=zi(e,t,r=jr()).ping,n.then(e,e),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lr(o);if("Maximum call stack size exceeded"===n.message)return n=zi(e,t,n=jr()),e.pingedTasks.push(n),t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,t.componentStack=l,void lr(o)}}}throw t.formatContext=i,t.context=o,t.keyPath=a,t.treeContext=s,lr(o),n}function Ti(e){var t=e.blockedBoundary;null!==(e=e.blockedSegment)&&(e.status=3,Di(this,t,e))}function Ii(e,t,r,i,o,a){for(var s=0;s<r.length;s++){var l=r[s];if(4===l.length)Ii(e,t,l[2],l[3],o,a);else{l=l[5];var c=e,u=a,d=di(0,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=l,d.status=4,d.errorDigest=u,d.parentFlushed&&c.clientRenderedBoundaries.push(d)}}if(r.length=0,null!==i){if(null===t)throw Error(n(487));if(4!==t.status&&(t.status=4,t.errorDigest=a,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),"object"==typeof i)for(var p in i)delete i[p]}}function Oi(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(null!==i){if(6===i.status)return;i.status=3}if(i=mi(e.componentStack),null===r){if(13!==t.status&&14!==t.status){if(null===(r=e.replay))return vi(t,n,i),void bi(t,n);r.pendingTasks--,0===r.pendingTasks&&0<r.nodes.length&&(e=vi(t,n,i),Ii(t,null,r.nodes,r.slots,n,e)),t.pendingRootTasks--,0===t.pendingRootTasks&&Ai(t)}}else r.pendingTasks--,4!==r.status&&(r.status=4,e=vi(t,n,i),r.status=4,r.errorDigest=e,Ei(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Oi(e,t,n)}),r.fallbackAbortableTasks.clear();t.allPendingTasks--,0===t.allPendingTasks&&Mi(t)}function Fi(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var o=i.preconnects;if(i.fontPreloads&&(o&&(o+=", "),o+=i.fontPreloads),i.highImagePreloads&&(o&&(o+=", "),o+=i.highImagePreloads),!t){var a=n.styles.values(),s=a.next();e:for(;0<i.remainingCapacity&&!s.done;s=a.next())for(var l=s.value.sheets.values(),c=l.next();0<i.remainingCapacity&&!c.done;c=l.next()){var u=c.value,d=u.props,p=d.href,f=u.props,h=Un(f.href,"style",{crossOrigin:f.crossOrigin,integrity:f.integrity,nonce:f.nonce,type:f.type,fetchPriority:f.fetchPriority,referrerPolicy:f.referrerPolicy,media:f.media});if(!(0<=(i.remainingCapacity-=h.length+2)))break e;n.resets.style[p]=re,o&&(o+=", "),o+=h,n.resets.style[p]="string"==typeof d.crossOrigin||"string"==typeof d.integrity?[d.crossOrigin,d.integrity]:re}}r(o?{Link:o}:{})}}}catch(g){vi(e,g,{})}}function Ai(e){null===e.trackedPostpones&&Fi(e,!0),null===e.trackedPostpones&&Bi(e),e.onShellError=ai,(e=e.onShellReady)()}function Mi(e){Fi(e,null===e.trackedPostpones||null===e.completedRootSegment||5!==e.completedRootSegment.status),Bi(e),(e=e.onAllReady)()}function Li(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary&&-1===t.children[0].id){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Li(e,n)}else e.completedSegments.push(t)}function Di(e,t,r){if(null===t){if(null!==r&&r.parentFlushed){if(null!==e.completedRootSegment)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&Ai(e)}else t.pendingTasks--,4!==t.status&&(0===t.pendingTasks?(0===t.status&&(t.status=1),null!==r&&r.parentFlushed&&1===r.status&&Li(t,r),t.parentFlushed&&e.completedBoundaries.push(t),1===t.status&&(t.fallbackAbortableTasks.forEach(Ti,e),t.fallbackAbortableTasks.clear(),0===e.pendingRootTasks&&null===e.trackedPostpones&&null!==t.contentPreamble&&Bi(e))):null!==r&&r.parentFlushed&&1===r.status&&(Li(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&Mi(e)}function ji(e){if(14!==e.status&&13!==e.status){var t=nr,r=J.H;J.H=Zr;var i=J.A;J.A=ei;var o=ci;ci=e;var a=Jr;Jr=e.resumableState;try{var s,l=e.pingedTasks;for(s=0;s<l.length;s++){var c=l[s],u=e,d=c.blockedSegment;if(null===d){var p=u;if(0!==c.replay.pendingTasks){lr(c.context);try{if("number"==typeof c.replay.slots?wi(p,c,c.replay.slots,c.node,c.childIndex):_i(p,c),1===c.replay.pendingTasks&&0<c.replay.nodes.length)throw Error(n(488));c.replay.pendingTasks--,c.abortSet.delete(c),Di(p,c.blockedBoundary,null)}catch(C){Nr();var f=C===gr?br():C;if("object"==typeof f&&null!==f&&"function"==typeof f.then){var h=c.ping;f.then(h,h),c.thenableState=jr()}else{c.replay.pendingTasks--,c.abortSet.delete(c);var g=mi(c.componentStack);u=void 0;var m=p,v=c.blockedBoundary,b=12===p.status?p.fatalError:f;Ii(m,v,c.replay.nodes,c.replay.slots,b,u=vi(m,b,g)),p.pendingRootTasks--,0===p.pendingRootTasks&&Ai(p),p.allPendingTasks--,0===p.allPendingTasks&&Mi(p)}}}}else if(p=void 0,0===(m=d).status){m.status=6,lr(c.context);var y=m.children.length,x=m.chunks.length;try{_i(u,c),m.lastPushedText&&m.textEmbedded&&m.chunks.push(we),c.abortSet.delete(c),m.status=1,Di(u,c.blockedBoundary,m)}catch(C){Nr(),m.children.length=y,m.chunks.length=x;var k=C===gr?br():12===u.status?u.fatalError:C;if("object"==typeof k&&null!==k&&"function"==typeof k.then){m.status=0,c.thenableState=jr();var w=c.ping;k.then(w,w)}else{var S=mi(c.componentStack);c.abortSet.delete(c),m.status=4;var _=c.blockedBoundary;p=vi(u,k,S),null===_?bi(u,k):(_.pendingTasks--,4!==_.status&&(_.status=4,_.errorDigest=p,Ei(u,_),_.parentFlushed&&u.clientRenderedBoundaries.push(_),0===u.pendingRootTasks&&null===u.trackedPostpones&&null!==_.contentPreamble&&Bi(u))),u.allPendingTasks--,0===u.allPendingTasks&&Mi(u)}}}}l.splice(0,s),null!==e.destination&&Gi(e,e.destination)}catch(E){vi(e,E,{}),bi(e,E)}finally{Jr=a,J.H=r,J.A=i,r===Zr&&lr(t),ci=o}}}function Ni(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=$i(e,t.children[i],n)||r;return r}function $i(e,t,r){var i=t.boundary;if(null===i)return Ni(e,t,r);var o=i.contentPreamble,a=i.fallbackPreamble;if(null===o||null===a)return!1;switch(i.status){case 1:if(dt(e.renderState,o),!(t=i.completedSegments[0]))throw Error(n(391));return Ni(e,t,r);case 5:if(null!==e.trackedPostpones)return!0;case 4:if(1===t.status)return dt(e.renderState,a),Ni(e,t,r);default:return!0}}function Bi(e){if(e.completedRootSegment&&null===e.completedPreambleSegments){var t=[],n=$i(e,e.completedRootSegment,t),r=e.renderState.preamble;(!1===n||r.headChunks&&r.bodyChunks)&&(e.completedPreambleSegments=t)}}function Wi(e,t,r,i){switch(r.parentFlushed=!0,r.status){case 0:r.id=e.nextSegmentId++;case 5:return i=r.id,r.lastPushedText=!1,r.textEmbedded=!1,e=e.renderState,O(t,ft),O(t,e.placeholderPrefix),O(t,e=L(i.toString(16))),F(t,ht);case 1:r.status=2;var o=!0,a=r.chunks,s=0;r=r.children;for(var l=0;l<r.length;l++){for(o=r[l];s<o.index;s++)O(t,a[s]);o=Vi(e,t,o,i)}for(;s<a.length-1;s++)O(t,a[s]);return s<a.length&&(o=F(t,a[s])),o;default:throw Error(n(390))}}function Vi(e,t,r,i){var o=r.boundary;if(null===o)return Wi(e,t,r,i);if(o.parentFlushed=!0,4===o.status){var a=o.errorDigest;return F(t,bt),O(t,xt),a&&(O(t,wt),O(t,L(Y(a))),O(t,kt)),F(t,St),Wi(e,t,r,i),(e=o.fallbackPreamble)&&Pt(t,e),F(t,yt)}if(1!==o.status)return 0===o.status&&(o.rootSegmentID=e.nextSegmentId++),0<o.completedSegments.length&&e.partialBoundaries.push(o),_t(t,e.renderState,o.rootSegmentID),i&&((o=o.fallbackState).styles.forEach(Kn,i),o.stylesheets.forEach(Qn,i)),Wi(e,t,r,i),F(t,yt);if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),_t(t,e.renderState,o.rootSegmentID),Wi(e,t,r,i),F(t,yt);if(i&&((r=o.contentState).styles.forEach(Kn,i),r.stylesheets.forEach(Qn,i)),F(t,gt),1!==(r=o.completedSegments).length)throw Error(n(391));return Vi(e,t,r[0],i),(e=o.contentPreamble)&&Pt(t,e),F(t,yt)}function Hi(e,t,r,i){return function(e,t,r,i){switch(r.insertionMode){case 0:case 1:case 3:case 2:return O(e,zt),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Rt);case 4:return O(e,It),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Ot);case 5:return O(e,At),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Mt);case 6:return O(e,Dt),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,jt);case 7:return O(e,$t),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Bt);case 8:return O(e,Vt),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Ht);case 9:return O(e,qt),O(e,t.segmentPrefix),O(e,L(i.toString(16))),F(e,Gt);default:throw Error(n(397))}}(t,e.renderState,r.parentFormatContext,r.id),Vi(e,t,r,i),function(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return F(e,Tt);case 4:return F(e,Ft);case 5:return F(e,Lt);case 6:return F(e,Nt);case 7:return F(e,Wt);case 8:return F(e,Ut);case 9:return F(e,Yt);default:throw Error(n(397))}}(t,r.parentFormatContext)}function Ui(e,t,r){for(var i=r.completedSegments,o=0;o<i.length;o++)qi(e,t,r,i[o]);i.length=0,En(t,r.contentState,e.renderState),i=e.resumableState,e=e.renderState,o=r.rootSegmentID,r=r.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,O(t,e.startInlineScript),a?2&i.instructions?8&i.instructions?O(t,rn):(i.instructions|=8,O(t,nn)):(i.instructions|=10,O(t,tn)):2&i.instructions?O(t,en):(i.instructions|=2,O(t,Jt)),i=L(o.toString(16)),O(t,e.boundaryPrefix),O(t,i),O(t,on),O(t,e.segmentPrefix),O(t,i),a?(O(t,an),function(e,t){O(e,jn);var r=jn;t.stylesheets.forEach(function(t){if(2!==t.state)if(3===t.state)O(e,r),O(e,L(vn(""+t.props.href))),O(e,Bn),r=Nn;else{O(e,r);var i=t.props["data-precedence"],o=t.props,a=Z(""+t.props.href);for(var s in O(e,L(vn(a))),i=""+i,O(e,$n),O(e,L(vn(i))),o)if($.call(o,s)&&null!=(i=o[s]))switch(s){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Wn(e,s,i)}O(e,Bn),r=Nn,t.state=3}}),O(e,Bn)}(t,r)):O(t,sn),r=F(t,ln),pt(t,e)&&r}function qi(e,t,r,i){if(2===i.status)return!0;var o=r.contentState,a=i.id;if(-1===a){if(-1===(i.id=r.rootSegmentID))throw Error(n(392));return Hi(e,t,i,o)}return a===r.rootSegmentID?Hi(e,t,i,o):(Hi(e,t,i,o),r=e.resumableState,O(t,(e=e.renderState).startInlineScript),1&r.instructions?O(t,Kt):(r.instructions|=1,O(t,Xt)),O(t,e.segmentPrefix),O(t,a=L(a.toString(16))),O(t,Qt),O(t,e.placeholderPrefix),O(t,a),t=F(t,Zt))}function Gi(e,t){T=new Uint8Array(2048),I=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(null!==r){if(5===r.status)return;var i=e.completedPreambleSegments;if(null===i)return;var o,a=e.renderState,s=a.preamble,l=s.htmlChunks,c=s.headChunks;if(l){for(o=0;o<l.length;o++)O(t,l[o]);if(c)for(o=0;o<c.length;o++)O(t,c[o]);else O(t,st("head")),O(t,We)}else if(c)for(o=0;o<c.length;o++)O(t,c[o]);var u=a.charsetChunks;for(o=0;o<u.length;o++)O(t,u[o]);u.length=0,a.preconnects.forEach(Pn,t),a.preconnects.clear();var d=a.viewportChunks;for(o=0;o<d.length;o++)O(t,d[o]);d.length=0,a.fontPreloads.forEach(Pn,t),a.fontPreloads.clear(),a.highImagePreloads.forEach(Pn,t),a.highImagePreloads.clear(),a.styles.forEach(Mn,t);var p=a.importMapChunks;for(o=0;o<p.length;o++)O(t,p[o]);p.length=0,a.bootstrapScripts.forEach(Pn,t),a.scripts.forEach(Pn,t),a.scripts.clear(),a.bulkPreloads.forEach(Pn,t),a.bulkPreloads.clear();var f=a.hoistableChunks;for(o=0;o<f.length;o++)O(t,f[o]);for(a=f.length=0;a<i.length;a++){var h=i[a];for(s=0;s<h.length;s++)Vi(e,t,h[s],null)}var g=e.renderState.preamble,m=g.headChunks;(g.htmlChunks||m)&&O(t,ut("head"));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)O(t,v[i]);Vi(e,t,r,null),e.completedRootSegment=null,pt(t,e.renderState)}var b=e.renderState;r=0;var y=b.viewportChunks;for(r=0;r<y.length;r++)O(t,y[r]);y.length=0,b.preconnects.forEach(Pn,t),b.preconnects.clear(),b.fontPreloads.forEach(Pn,t),b.fontPreloads.clear(),b.highImagePreloads.forEach(Pn,t),b.highImagePreloads.clear(),b.styles.forEach(Dn,t),b.scripts.forEach(Pn,t),b.scripts.clear(),b.bulkPreloads.forEach(Pn,t),b.bulkPreloads.clear();var x=b.hoistableChunks;for(r=0;r<x.length;r++)O(t,x[r]);x.length=0;var k=e.clientRenderedBoundaries;for(n=0;n<k.length;n++){var w=k[n];b=t;var S=e.resumableState,_=e.renderState,C=w.rootSegmentID,E=w.errorDigest;O(b,_.startInlineScript),4&S.instructions?O(b,un):(S.instructions|=4,O(b,cn)),O(b,_.boundaryPrefix),O(b,L(C.toString(16))),O(b,dn),E&&(O(b,pn),O(b,L(gn(E||""))));var P=F(b,fn);if(!P)return e.destination=null,n++,void k.splice(0,n)}k.splice(0,n);var z=e.completedBoundaries;for(n=0;n<z.length;n++)if(!Ui(e,t,z[n]))return e.destination=null,n++,void z.splice(0,n);z.splice(0,n),A(t),T=new Uint8Array(2048),I=0;var R=e.partialBoundaries;for(n=0;n<R.length;n++){var M=R[n];e:{k=e,w=t;var D=M.completedSegments;for(P=0;P<D.length;P++)if(!qi(k,w,M,D[P])){P++,D.splice(0,P);var j=!1;break e}D.splice(0,P),j=En(w,M.contentState,k.renderState)}if(!j)return e.destination=null,n++,void R.splice(0,n)}R.splice(0,n);var N=e.completedBoundaries;for(n=0;n<N.length;n++)if(!Ui(e,t,N[n]))return e.destination=null,n++,void N.splice(0,n);N.splice(0,n)}}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length?(e.flushScheduled=!1,(n=e.resumableState).hasBody&&O(t,ut("body")),n.hasHtml&&O(t,ut("html")),A(t),e.status=14,t.close(),e.destination=null):A(t)}}function Yi(e){e.flushScheduled=null!==e.destination,R(function(){return ji(e)}),E(function(){10===e.status&&(e.status=11),null===e.trackedPostpones&&Fi(e,0===e.pendingRootTasks)})}function Xi(e){!1===e.flushScheduled&&0===e.pingedTasks.length&&null!==e.destination&&(e.flushScheduled=!0,E(function(){var t=e.destination;t?Gi(e,t):e.flushScheduled=!1}))}function Ki(e,t){if(13===e.status)e.status=14,j(t,e.fatalError);else if(14!==e.status&&null===e.destination){e.destination=t;try{Gi(e,t)}catch(n){vi(e,n,{}),bi(e,n)}}}function Qi(e,t){11!==e.status&&10!==e.status||(e.status=12);try{var r=e.abortableTasks;if(0<r.size){var i=void 0===t?Error(n(432)):"object"==typeof t&&null!==t&&"function"==typeof t.then?Error(n(530)):t;e.fatalError=i,r.forEach(function(t){return Oi(t,e,i)}),r.clear()}null!==e.destination&&Gi(e,e.destination)}catch(o){vi(e,o,{}),bi(e,o)}}function Zi(){var t=e.version;if("19.1.1"!==t)throw Error(n(527,t,"19.1.1"))}return Zi(),Zi(),KS.prerender=function(e,t){return new Promise(function(n,r){var i,o=t?t.onHeaders:void 0;o&&(i=function(e){o(new Headers(e))});var a=ve(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=function(e,t,r,i,o,a,l,c,u,d,p){return(e=li(e,t,r,i,o,a,function(){var e={prelude:new ReadableStream({type:"bytes",pull:function(e){Ki(s,e)},cancel:function(e){s.destination=null,Qi(s,e)}},{highWaterMark:0})};n(e)},void 0,void 0,d,p,void 0)).trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}(e,a,me(a,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,i,t?t.maxHeadersLength:void 0),xe(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,0,0,0,r,t?t.onPostpone:void 0);if(t&&t.signal){var l=t.signal;if(l.aborted)Qi(s,l.reason);else{var c=function(){Qi(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}}Yi(s)})},KS.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,a,s=new Promise(function(e,t){o=e,i=t}),l=t?t.onHeaders:void 0;l&&(a=function(e){l(new Headers(e))});var c=ve(t?t.identifierPrefix:void 0,t&&t.unstable_externalRuntimeSrc,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=li(e,c,me(c,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),xe(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var e=new ReadableStream({type:"bytes",pull:function(e){Ki(u,e)},cancel:function(e){u.destination=null,Qi(u,e)}},{highWaterMark:0});e.allReady=s,n(e)},function(e){s.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Qi(u,d.reason);else{var p=function(){Qi(u,d.reason),d.removeEventListener("abort",p)};d.addEventListener("abort",p)}}Yi(u)})},KS.version="19.1.1",KS}function ZS(){return XS||(XS=1,e=GS(),t=QS(),US.version=e.version,US.renderToString=e.renderToString,US.renderToStaticMarkup=e.renderToStaticMarkup,US.renderToReadableStream=t.renderToReadableStream,t.resume&&(US.resume=t.resume)),US;var e,t}var JS,e_,t_,n_,r_,i_,o_={exports:{}};function a_(){return e_?JS:(e_=1,JS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function s_(){if(n_)return t_;n_=1;var e=a_();function t(){}function n(){}return n.resetWarningCache=t,t_=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function l_(){return r_||(r_=1,o_.exports=s_()()),o_.exports}function c_(){if(i_)return BS;i_=1,Object.defineProperty(BS,"__esModule",{value:!0});var e=Ka(),t=WS,n=VS,r=gs(),i=ZS(),o=l_();function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(e),l=a(n),c=a(o),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Ma?Ma:"undefined"!=typeof self?self:{};function d(e,t){return e(t={exports:{}},t.exports),t.exports}var p=d(function(e){var t,n,r,i,o,a,s,l,c,d,p,f,h,g,m;t=u,n=function(e,t,r){if(!l(t)||d(t)||p(t)||f(t)||s(t))return t;var i,o=0,a=0;if(c(t))for(i=[],a=t.length;o<a;o++)i.push(n(e,t[o],r));else for(var u in i={},t)Object.prototype.hasOwnProperty.call(t,u)&&(i[e(u,r)]=n(e,t[u],r));return i},r=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},i=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},o=function(e,t){return(n=e,r=t,i=(r=r||{}).separator||"_",o=r.split||/(?=[A-Z])/,n.split(o).join(i)).toLowerCase();var n,r,i,o},a=Object.prototype.toString,s=function(e){return"function"==typeof e},l=function(e){return e===Object(e)},c=function(e){return"[object Array]"==a.call(e)},d=function(e){return"[object Date]"==a.call(e)},p=function(e){return"[object RegExp]"==a.call(e)},f=function(e){return"[object Boolean]"==a.call(e)},h=function(e){return(e-=0)==e},g=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},m={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(e,t){return n(g(r,t),e)},decamelizeKeys:function(e,t){return n(g(o,t),e,t)},pascalizeKeys:function(e,t){return n(g(i,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}).decamelize,f=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},h=d(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t}),g=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},m=e.createContext(null);function v(e){var t=e.children,n=void 0===t?"":t,r=g(e,["children"]);return"string"!=typeof n&&(n=i.renderToString(n)),s.default.createElement("template",h({},r,{dangerouslySetInnerHTML:{__html:n}}))}function b(e){var t=e.root,n=e.children,i=void 0===n?null:n;return r.createPortal(i,t)}v.propTypes={children:c.default.oneOfType([c.default.string,c.default.node])},b.propTypes={root:c.default.object.isRequired,children:c.default.node};var y=new Map;function x(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(r,i){var o=p(i,{separator:"-"}),a="".concat(t,"-").concat(o);return y.has(a)||y.set(a,function(t){var n=e.forwardRef(function(n,i){var o,a,l=n.mode,c=void 0===l?"open":l,u=n.delegatesFocus,d=void 0!==u&&u,p=n.styleSheets,y=void 0===p?[]:p,x=n.ssr,k=void 0!==x&&x,w=n.children,S=g(n,["mode","delegatesFocus","styleSheets","ssr","children"]),_=(o=i,a=e.useRef(o&&o.current),e.useEffect(function(){o&&(o.current=a.current)},[o]),a),C=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done)&&(n.push(s.value),n.length!==t);i=!0);}catch(r){o=!0,a=r}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.useState(null),2),E=C[0],P=C[1],z="node_".concat(c).concat(d);return e.useLayoutEffect(function(){if(_.current)try{if("function"==typeof i&&i(_.current),k){var e=_.current.shadowRoot;return void P(e)}var t=_.current.attachShadow({mode:c,delegatesFocus:d});y.length>0&&(t.adoptedStyleSheets=y),P(t)}catch(r){!function(e){var t=e.error,n=e.styleSheets,r=e.root;if("NotSupportedError"!==t.name)throw t;n.length>0&&(r.adoptedStyleSheets=n)}({error:r,styleSheets:y,root:E})}},[i,_,y]),s.default.createElement(s.default.Fragment,null,s.default.createElement(t.tag,h({key:z,ref:_},S),(E||k)&&s.default.createElement(m.Provider,{value:E},k?s.default.createElement(v,{shadowroot:c,shadowrootmode:c},t.render({root:E,ssr:k,children:w})):s.default.createElement(b,{root:E},t.render({root:E,ssr:k,children:w})))))});return n.propTypes={mode:c.default.oneOf(["open","closed"]),delegatesFocus:c.default.bool,styleSheets:c.default.arrayOf(c.default.instanceOf(globalThis.CSSStyleSheet)),ssr:c.default.bool,children:c.default.node},n}({tag:o,render:n})),y.get(a)}})}x();var k=new WeakMap,w=x({},"emotion",function(e){var n,r=e.root,i=e.children,o=k.get(r)||(n=l.default({container:r,key:"react-shadow"}),k.set(r,n),n);return s.default.createElement(t.CacheProvider,{value:o},s.default.createElement(s.default.Fragment,null,i))});return BS.default=w,BS}const u_=La(c_()),d_=":host",p_=(e,t,n)=>e?.[t]||n,f_=e=>{const t={cssVarsRoot:d_,conditions:{light:`${d_} &, .light &`},preflight:{scope:d_},globalCss:{[d_]:_g.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"'Estedad-FD', system-ui, sans-serif"},body:{value:"'Estedad-FD', system-ui, sans-serif"}},colors:(()=>{const{primary:t,background:n,text:r,accent:i}=(e=>({primary:p_(e,"primary","#0070f3"),background:p_(e,"background","#f7fafc"),text:p_(e,"textPrimary","#1a202c"),accent:p_(e,"error","#ff383c")}))(e),o=xm(n,r,.05),a=vm(r,.6),s=xm(n,r,.1),l=ym(t,10),c=ym(t,15);return{primary:{value:t},background:{value:n},text:{value:r},error:{value:i},errorBackground:{value:vm(i,.14)},darkPrimary:{value:l},veryDarkPrimary:{value:c},lightBackground:{value:o},veryLightBackground:{value:bm(o,15)},mutedText:{value:a},borderColor:{value:s}}})(),fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}},spacing:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},28:{value:"112px"},32:{value:"128px"},36:{value:"144px"},40:{value:"160px"},44:{value:"176px"},48:{value:"192px"},52:{value:"208px"},56:{value:"224px"},60:{value:"240px"},64:{value:"256px"},72:{value:"288px"},80:{value:"320px"},96:{value:"384px"}},fontSizes:{"2xs":{value:"10px"},xs:{value:"12px"},sm:{value:"14px"},md:{value:"16px"},lg:{value:"18px"},xl:{value:"20px"},"2xl":{value:"24px"},"3xl":{value:"30px"},"4xl":{value:"36px"},"5xl":{value:"48px"},"6xl":{value:"60px"},"7xl":{value:"72px"},"8xl":{value:"96px"},"9xl":{value:"128px"}},borderWidths:{0:{value:"0px"},1:{value:"1px"},2:{value:"2px"},4:{value:"4px"},8:{value:"8px"}},radii:{none:{value:"0px"},sm:{value:"2px"},md:{value:"4px"},lg:{value:"8px"},xl:{value:"12px"},"2xl":{value:"16px"},"3xl":{value:"24px"},"4xl":{value:"32px"},full:{value:"9999px"}},lineHeights:{3:{value:"12px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},none:{value:"1"},tight:{value:"1.25"},snug:{value:"1.375"},normal:{value:"1.5"},relaxed:{value:"1.625"},loose:{value:"2"}},sizes:{0:{value:"0px"},.5:{value:"2px"},1:{value:"4px"},1.5:{value:"6px"},2:{value:"8px"},2.5:{value:"10px"},3:{value:"12px"},3.5:{value:"14px"},4:{value:"16px"},5:{value:"20px"},6:{value:"24px"},7:{value:"28px"},8:{value:"32px"},9:{value:"36px"},10:{value:"40px"},12:{value:"48px"},14:{value:"56px"},16:{value:"64px"},20:{value:"80px"},24:{value:"96px"},full:{value:"100%"},"3xs":{value:"224px"},"2xs":{value:"256px"},xs:{value:"320px"},sm:{value:"384px"},md:{value:"448px"},lg:{value:"512px"},xl:{value:"576px"},"2xl":{value:"672px"},"3xl":{value:"768px"},"4xl":{value:"896px"},"5xl":{value:"1024px"},"6xl":{value:"1152px"},"7xl":{value:"1280px"},"8xl":{value:"1440px"}}}}};return Qp(_g,t)};f_();const h_={primary:"#0070f3",background:"#ffffff",textPrimary:"#1a202c",error:"#ff383c"};function g_({children:e}){const{botData:t}=mm(),n=Qa.useMemo(()=>f_(t?.theme??h_),[t?.theme]);return qa.jsx(Ic,{value:n,children:e})}function m_({children:e}){const[t,n]=Qa.useState(null),[r,i]=Qa.useState(null);return Qa.useEffect(()=>{if(!t?.shadowRoot||r)return;const e=Sl({key:"root",container:t.shadowRoot});i(e)},[t,r]),qa.jsx(u_.div,{ref:n,style:{backgroundColor:"transparent",display:"block"},children:t&&r&&qa.jsx($u,{value:()=>t.shadowRoot??document,children:qa.jsx(nc,{value:r,children:qa.jsx(gm,{children:qa.jsx(g_,{children:e})})})})})}class v_ extends Qa.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){Oa(e,{errorInfo:{componentStack:t.componentStack}})}render(){return this.state.hasError?null:this.props.children}}function b_(){const e=[];let t=document.getElementById("dori-react-widget-host");t||(t=document.createElement("div"),t.id="dori-react-widget-host",document.body.appendChild(t));const n=bs.createRoot(t);return n.render(qa.jsx(Za.StrictMode,{children:qa.jsx(v_,{children:qa.jsx(m_,{children:qa.jsx($S,{})})})})),e.push(n),()=>{e.forEach(e=>e.unmount())}}export{b_ as initializeDoriWidget};
|