maidr 3.9.0 → 3.9.1
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/maidr.js +33 -33
- package/dist/maidr.js.map +1 -1
- package/package.json +1 -1
package/dist/maidr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(br){typeof define=="function"&&define.amd?define(br):br()})(function(){"use strict";var rae=Object.defineProperty;var iae=(br,g4,b1)=>g4 in br?rae(br,g4,{enumerable:!0,configurable:!0,writable:!0,value:b1}):br[g4]=b1;var
|
|
2
|
-
`),le(xe,"OPEN_BRACKET","["),le(xe,"POLYLINE","polyline"),le(xe,"SPACE"," "),le(xe,"THROUGH"," through "),le(xe,"TRANSPARENT","transparent"),le(xe,"VISIBLE","visible"),le(xe,"X","x"),le(xe,"Y","y");let ag=class{constructor(){le(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,r=1){const s=this.items.lastIndexOf(t);return s!==-1?(this.items.splice(s,r),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}};const og=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function lg(e,t,r,s){e.addEventListener?e.addEventListener(t,r,s):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mc(e,t,r,s){e.removeEventListener?e.removeEventListener(t,r,s):e.detachEvent&&e.detachEvent("on".concat(t),r)}function kH(e,t){const r=t.slice(0,t.length-1);for(let s=0;s<r.length;s++)r[s]=e[r[s].toLowerCase()];return r}function NH(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function WP(e,t){const r=e.length>=t.length?e:t,s=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)s.indexOf(r[a])===-1&&(o=!1);return o}const yc={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":og?173:189,"=":og?61:187,";":og?59:186,"'":222,"[":219,"]":221,"\\":220},o5={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},vc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},M3={16:!1,18:!1,17:!1,91:!1},L2={};for(let e=1;e<20;e++)yc["f".concat(e)]=111+e;let d2=[],gc=null,BH="all";const M0=new Map,Lc=e=>yc[e.toLowerCase()]||o5[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),YP=e=>Object.keys(yc).find(t=>yc[t]===e),KP=e=>Object.keys(o5).find(t=>o5[t]===e);function PH(e){BH=e||"all"}function xc(){return BH||"all"}function JP(){return d2.slice(0)}function ej(){return d2.map(e=>YP(e)||KP(e)||String.fromCharCode(e))}function tj(){const e=[];return Object.keys(L2).forEach(t=>{L2[t].forEach(r=>{let{key:s,scope:o,mods:a,shortcut:i}=r;e.push({scope:o,shortcut:i,mods:a,keys:s.split("+").map(l=>Lc(l))})})}),e}function nj(e){const t=e.target||e.srcElement,{tagName:r}=t;let s=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(s=!1),s}function rj(e){return typeof e=="string"&&(e=Lc(e)),d2.indexOf(e)!==-1}function ij(e,t){let r,s;e||(e=xc());for(const o in L2)if(Object.prototype.hasOwnProperty.call(L2,o))for(r=L2[o],s=0;s<r.length;)r[s].scope===e?r.splice(s,1).forEach(i=>{let{element:l}=i;return sg(l)}):s++;xc()===e&&PH(t||"all")}function aj(e){let t=e.keyCode||e.which||e.charCode;const r=d2.indexOf(t);if(r>=0&&d2.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&d2.splice(0,d2.length),(t===93||t===224)&&(t=91),t in M3){M3[t]=!1;for(const s in o5)o5[s]===t&&(F3[s]=!1)}}function jH(e){if(typeof e>"u")Object.keys(L2).forEach(o=>{Array.isArray(L2[o])&&L2[o].forEach(a=>hp(a)),delete L2[o]}),sg(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&hp(o)});else if(typeof e=="object")e.key&&hp(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];let[o,a]=r;typeof o=="function"&&(a=o,o=""),hp({key:e,scope:o,method:a,splitKey:"+"})}}const hp=e=>{let{key:t,scope:r,method:s,splitKey:o="+"}=e;NH(t).forEach(i=>{const l=i.split(o),T=l.length,u=l[T-1],Q=u==="*"?"*":Lc(u);if(!L2[Q])return;r||(r=xc());const f=T>1?kH(o5,l):[],h=[];L2[Q]=L2[Q].filter(p=>{const g=(s?p.method===s:!0)&&p.scope===r&&WP(p.mods,f);return g&&h.push(p.element),!g}),h.forEach(p=>sg(p))})};function IH(e,t,r,s){if(t.element!==s)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in M3)Object.prototype.hasOwnProperty.call(M3,a)&&(!M3[a]&&t.mods.indexOf(+a)>-1||M3[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!M3[16]&&!M3[18]&&!M3[17]&&!M3[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(d2),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function FH(e,t){const r=L2["*"];let s=e.keyCode||e.which||e.charCode;if(!F3.filter.call(this,e))return;if((s===93||s===224)&&(s=91),d2.indexOf(s)===-1&&s!==229&&d2.push(s),["metaKey","ctrlKey","altKey","shiftKey"].forEach(l=>{const T=vc[l];e[l]&&d2.indexOf(T)===-1?d2.push(T):!e[l]&&d2.indexOf(T)>-1?d2.splice(d2.indexOf(T),1):l==="metaKey"&&e[l]&&(d2=d2.filter(u=>u in vc||u===s))}),s in M3){M3[s]=!0;for(const l in o5)if(Object.prototype.hasOwnProperty.call(o5,l)){const T=vc[o5[l]];F3[l]=e[T]}if(!r)return}for(const l in M3)Object.prototype.hasOwnProperty.call(M3,l)&&(M3[l]=e[vc[l]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(d2.indexOf(17)===-1&&d2.push(17),d2.indexOf(18)===-1&&d2.push(18),M3[17]=!0,M3[18]=!0);const o=xc();if(r)for(let l=0;l<r.length;l++)r[l].scope===o&&(e.type==="keydown"&&r[l].keydown||e.type==="keyup"&&r[l].keyup)&&IH(e,r[l],o,t);if(!(s in L2))return;const a=L2[s],i=a.length;for(let l=0;l<i;l++)if((e.type==="keydown"&&a[l].keydown||e.type==="keyup"&&a[l].keyup)&&a[l].key){const T=a[l],{splitKey:u}=T,Q=T.key.split(u),f=[];for(let h=0;h<Q.length;h++)f.push(Lc(Q[h]));f.sort().join("")===d2.sort().join("")&&IH(e,T,o,t)}}function F3(e,t,r){d2=[];const s=NH(e);let o=[],a="all",i=document,l=0,T=!1,u=!0,Q="+",f=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(i=t.element),t.keyup&&(T=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(Q=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(a=t),h&&jH(e,a);l<s.length;l++)e=s[l].split(Q),o=[],e.length>1&&(o=kH(o5,e)),e=e[e.length-1],e=e==="*"?"*":Lc(e),e in L2||(L2[e]=[]),L2[e].push({keyup:T,keydown:u,scope:a,mods:o,shortcut:s[l],method:r,key:s[l],splitKey:Q,element:i});if(typeof i<"u"&&window){if(!M0.has(i)){const p=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return FH(g,i)},v=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;FH(g,i),aj(g)};M0.set(i,{keydownListener:p,keyupListenr:v,capture:f}),lg(i,"keydown",p,f),lg(i,"keyup",v,f)}if(!gc){const p=()=>{d2=[]};gc={listener:p,capture:f},lg(window,"focus",p,f)}}}function oj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(L2).forEach(r=>{L2[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function sg(e){const t=Object.values(L2).flat();if(t.findIndex(s=>{let{element:o}=s;return o===e})<0){const{keydownListener:s,keyupListenr:o,capture:a}=M0.get(e)||{};s&&o&&(mc(e,"keyup",o,a),mc(e,"keydown",s,a),M0.delete(e))}if((t.length<=0||M0.size<=0)&&(Object.keys(M0).forEach(o=>{const{keydownListener:a,keyupListenr:i,capture:l}=M0.get(o)||{};a&&i&&(mc(o,"keyup",i,l),mc(o,"keydown",a,l),M0.delete(o))}),M0.clear(),Object.keys(L2).forEach(o=>delete L2[o]),gc)){const{listener:o,capture:a}=gc;mc(window,"focus",o,a),gc=null}}const ug={getPressedKeyString:ej,setScope:PH,getScope:xc,deleteScope:ij,getPressedKeyCodes:JP,getAllKeyCodes:tj,isPressed:rj,filter:nj,trigger:oj,unbind:jH,keyMap:yc,modifier:o5,modifierMap:vc};for(const e in ug)Object.prototype.hasOwnProperty.call(ug,e)&&(F3[e]=ug[e]);if(typeof window<"u"){const e=window.hotkeys;F3.noConflict=t=>(t&&window.hotkeys===F3&&(window.hotkeys=e),F3),window.hotkeys=F3}class lj{constructor(t){le(this,"id");le(this,"instructionContext");le(this,"plotContext");le(this,"scopeContext");this.id=t.id,this.plotContext=new ag,this.scopeContext=new ag;const r=t.state;if(r.empty||r.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(b1.SUBPLOT);return}this.scopeContext.push(b1.TRACE);const s=t.activeSubplot.state;if(s.empty||s.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.removeLast(t)||this.scopeContext.push(t),F3.setScope(this.scope)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,r){this.active.moveToIndex(t,r)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const r=this.active;r.moveOnce(t),this.active.notifyStateUpdate(),this.plotContext.push(r.activeTrace)}}enterSubplot(){if(this.active.state.type==="figure"){const r=this.active;this.plotContext.push(r.activeSubplot),this.active.notifyStateUpdate(),this.plotContext.push(r.activeSubplot.activeTrace),this.toggleScope(b1.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(b1.TRACE))}getInstruction(t){const r=this.instructionContext.state;if(r.empty)return`No ${r.type} info available`;const s=t?"Click to activate.":xe.EMPTY;switch(r.type){case"figure":return`This is a MAIDR figure containing ${r.size} subplots. ${s} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a MAIDR subplot containing ${r.size} layers, and this is layer 1 of ${r.size}: ${r.trace.traceType} plot. ${s} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":return`This is a maidr plot of type: ${r.traceType}. ${s} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}const sj="unavailable",uj="X",cj="Y",Tj="unavailable";class cg{constructor(){le(this,"observers");le(this,"isInitialEntry");le(this,"isOutOfBounds");le(this,"row");le(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}moveToExtreme(t){switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.values[this.row].length-1;break;case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,r){this.isMovable([t,r])&&(this.row=t,this.col=r,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){if(Array.isArray(t)){const[r,s]=t;return r>=0&&r<this.values.length&&s>=0&&s<this.values[this.row].length}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1)),this.col=Math.max(0,Math.min(this.col,this.values[this.row].length-1))}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(r=>r!==t)}notifyStateUpdate(){const t=this.state;for(const r of this.observers)r.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}}class f9 extends cg{constructor(r){var s,o,a;super();le(this,"id");le(this,"type");le(this,"title");le(this,"xAxis");le(this,"yAxis");le(this,"fill");this.id=r.id,this.type=r.type,this.title=r.title??sj,this.xAxis=((s=r.axes)==null?void 0:s.x)??uj,this.yAxis=((o=r.axes)==null?void 0:o.y)??cj,this.fill=((a=r.axes)==null?void 0:a.fill)??Tj}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(r=>r.forEach(s=>{(Array.isArray(s)?s:[s]).forEach(a=>a.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isOutOfBounds?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,type:"trace",traceType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){return this.highlightValues===null||this.isInitialEntry?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:this.values[this.row].length,BACKWARD:this.values[this.row].length}}hasMultiPoints(){return!1}}var U2=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(U2||{}),R2=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(R2||{});class z3{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const r=t.flat();return this.safeMin(r)}static maxFrom2D(t){const r=t.flat();return this.safeMax(r)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let r=t[0],s=t[0];for(let o=1;o<t.length;o++){const a=t[o];a<r&&(r=a),a>s&&(s=a)}return{min:r,max:s}}static minMaxFrom2D(t){const r=t.flat();return this.minMax(r)}}class pp{constructor(){}static parse(t){const r=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(r)){let o=r.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const s=r.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return s?{r:Number.parseInt(s[1],10),g:Number.parseInt(s[2],10),b:Number.parseInt(s[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,r){const s=this.calculateLuminance(t),o=this.calculateLuminance(r);return(Math.max(s,o)+.05)/(Math.min(s,o)+.05)}static calculateLuminance(t){const[r,s,o]=[t.r,t.g,t.b].map(a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*r+.7152*s+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class u2{constructor(){}static async toBase64(t){try{const r=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r).replace(/'/g,"%27").replace(/"/g,"%22")}`,a=await new Promise((T,u)=>{const Q=new Image;Q.onload=()=>T(Q),Q.onerror=()=>u(new Error("Failed to load SVG image")),Q.src=o}),i=document.createElement("canvas");[i.width,i.height]=[a.naturalWidth,a.naturalHeight];const l=i.getContext("2d");return l?(l.drawImage(a,0,0),i.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(r){return console.error("Error converting SVG to Base 64:",r instanceof Error?r.message:r),""}}static selectAllElements(t,r=!0){return Array.from(document.querySelectorAll(t)).map(s=>{if(!r)return s;const o=s.cloneNode(!0);return o.setAttribute(xe.VISIBILITY,xe.HIDDEN),s.insertAdjacentElement(xe.AFTER_END,o),o})}static selectElement(t,r=!0){const s=document.querySelector(t);if(!r)return s;const o=s==null?void 0:s.cloneNode(!0);return o==null||o.setAttribute(xe.VISIBILITY,xe.HIDDEN),s==null||s.insertAdjacentElement(xe.AFTER_END,o),o}static createEmptyElement(t="rect"){const r=document.createElementNS(this.SVG_NAMESPACE,t);return r.setAttribute(xe.FILL,xe.TRANSPARENT),r.setAttribute(xe.STROKE,xe.TRANSPARENT),r.setAttribute(xe.VISIBILITY,xe.HIDDEN),r}static createCircleElement(t,r,s){var u;const o=window.getComputedStyle(s),a=o.stroke||o.fill,i=o.strokeWidth||"2",l=Number.parseFloat(i)*2,T=document.createElementNS(this.SVG_NAMESPACE,xe.CIRCLE);return T.setAttribute(xe.CIRCLE_X,String(t)),T.setAttribute(xe.CIRCLE_Y,String(r)),T.setAttribute(xe.RADIUS,String(l)),T.setAttribute(xe.FILL,a),T.setAttribute(xe.STROKE,a),T.setAttribute(xe.STROKE_WIDTH,i),T.setAttribute(xe.VISIBILITY,xe.HIDDEN),(u=s.parentElement)==null||u.insertAdjacentElement(xe.AFTER_END,T),T}static createLineElement(t,r){const o=t.getBBox();let a,i,l,T;switch(r){case"top":[a,i,l,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[a,i,l,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[a,i,l,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[a,i,l,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const u=window.getComputedStyle(t),Q=document.createElementNS(this.SVG_NAMESPACE,xe.LINE);return Q.setAttribute(xe.X1,String(a)),Q.setAttribute(xe.Y1,String(i)),Q.setAttribute(xe.X2,String(l)),Q.setAttribute(xe.Y2,String(T)),Q.setAttribute(xe.STROKE,u.stroke),Q.setAttribute(xe.STROKE_WIDTH,u.strokeWidth||"2"),Q.setAttribute(xe.VISIBILITY,xe.HIDDEN),t.insertAdjacentElement(xe.AFTER_END,Q),Q}static createHighlightElement(t,r){const s=t.cloneNode(!0),o=t.tagName.toLowerCase(),a=o===xe.POLYLINE||o===xe.LINE,i=a?window.getComputedStyle(t).getPropertyValue(xe.STROKE):window.getComputedStyle(t).getPropertyValue(xe.FILL),l=this.getHighlightColor(i,r);if(s.setAttribute(xe.VISIBILITY,xe.VISIBLE),s.setAttribute(xe.STROKE,l),s.setAttribute(xe.FILL,l),s.style.fill=l,s.style.stroke=l,a){const T=window.getComputedStyle(s).getPropertyValue(xe.STROKE_WIDTH);s.setAttribute(xe.STROKE_WIDTH,`${T+2}`)}return t.insertAdjacentElement(xe.AFTER_END,s),s}static getHighlightColor(t,r){const s=pp.parse(t);if(!s)return r;const o=pp.invert(s);return pp.getContrastRatio(s,o)>=4.5?pp.rgbToString(o):r}}le(u2,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class Tg extends f9{constructor(r,s){super(r);le(this,"points");le(this,"barValues");le(this,"highlightValues");le(this,"orientation");le(this,"min");le(this,"max");this.points=s,this.orientation=r.orientation??U2.VERTICAL,this.barValues=s.map(o=>o.map(a=>this.orientation===U2.VERTICAL?Number(a.y):Number(a.x))),this.min=this.barValues.map(o=>z3.safeMin(o)),this.max=this.barValues.map(o=>z3.safeMax(o)),this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const r=this.orientation===U2.VERTICAL,s=r?this.barValues[this.row].length:this.barValues.length,o=r?this.col:this.row,a=r?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:z3.safeMin(this.min),max:z3.safeMax(this.max),size:s,index:o,value:a,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const r=this.orientation===U2.VERTICAL,s=this.points[this.row][this.col],o=r?this.xAxis:this.yAxis,a=r?s.x:s.y,i=r?this.yAxis:this.xAxis,l=r?s.y:s.x;return{main:{label:o,value:a},cross:{label:i,value:l}}}mapToSvgElements(r){if(!r)return null;const s=[u2.selectAllElements(r)];if(s.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(s[o].length!==this.points[o].length)return null;return s}}class Qj extends Tg{constructor(t){super(t,[t.data])}}const fj="Lower outlier(s)",dj="Upper outlier(s)",hj="Minimum",pj="Maximum",mj="25%",yj="50%",vj="75%";class gj extends f9{constructor(r){super(r);le(this,"points");le(this,"boxValues");le(this,"highlightValues");le(this,"orientation");le(this,"sections");le(this,"min");le(this,"max");this.points=r.data,this.orientation=r.orientation??U2.VERTICAL,this.sections=[fj,hj,mj,yj,vj,pj,dj];const s=[a=>a.lowerOutliers,a=>a.min,a=>a.q1,a=>a.q2,a=>a.q3,a=>a.max,a=>a.upperOutliers];this.orientation===U2.HORIZONTAL?this.boxValues=this.points.map(a=>s.map(i=>i(a))):this.boxValues=s.map(a=>this.points.map(i=>a(i)));const o=this.boxValues.map(a=>a.flatMap(i=>Array.isArray(i)?i:[i]));this.min=z3.minFrom2D(o),this.max=z3.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(r,s){const o=this.orientation===U2.HORIZONTAL;r=o?r:s,s=o?s:r,super.moveToIndex(r,s)}get values(){return this.boxValues}audio(){const r=this.orientation===U2.HORIZONTAL,s=this.boxValues[this.row][this.col],o=r?this.sections.length:this.points.length,a=r?this.col:this.col;return{min:this.min,max:this.max,size:o,index:a,value:s}}braille(){const r=this.orientation===U2.HORIZONTAL,s=r?this.row:this.col,o=r?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:s,col:o}}text(){const r=this.orientation===U2.HORIZONTAL,s=r?this.points[this.row]:this.points[this.col],o=r?this.yAxis:this.xAxis,a=r?this.sections[this.col]:this.sections[this.row],i=r?this.xAxis:this.yAxis,l=this.boxValues[this.row][this.col];return{main:{label:o,value:s.fill},cross:{label:i,value:l},section:a}}mapToSvgElements(r){if(!r||r.length!==this.points.length)return null;const s=this.orientation===U2.VERTICAL,o=new Array;if(s)for(let a=0;a<this.sections.length;a++)o.push(Array.from({length:r.length}));return r.forEach((a,i)=>{const l=a.lowerOutliers.flatMap(H=>u2.selectAllElements(H)),T=a.upperOutliers.flatMap(H=>u2.selectAllElements(H)),u=u2.selectElement(a.min)??u2.createEmptyElement(),Q=u2.selectElement(a.max)??u2.createEmptyElement(),f=u2.selectElement(a.iq)??u2.createEmptyElement(),h=u2.selectElement(a.q2)??u2.createEmptyElement(),[p,v]=s?[u2.createLineElement(f,"top"),u2.createLineElement(f,"bottom")]:[u2.createLineElement(f,"left"),u2.createLineElement(f,"right")],g=[l,u,p,h,v,Q,T];s?g.forEach((H,L)=>{o[L][i]=H}):o.push(g)}),o}}const Lj="Trend";class xj extends f9{constructor(r){super(r);le(this,"candles");le(this,"candleValues");le(this,"orientation");le(this,"sections",["open","high","low","close"]);le(this,"currentSegmentType","open");le(this,"currentPointIndex",0);le(this,"sortedSegmentsByPoint");le(this,"segmentPositionMaps");le(this,"min");le(this,"max");const s=r.data;this.candles=s.map(o=>({...o,trend:o.close>o.open?"Bull":o.close<o.open?"Bear":"Neutral"})),this.orientation=r.orientation??U2.VERTICAL,this.candleValues=this.sections.map(o=>this.candles.map(a=>a[o])),this.min=z3.minFrom2D(this.candleValues),this.max=z3.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="open",this.orientation===U2.HORIZONTAL?this.col=0:this.row=0}precomputeSortedSegments(){return this.candles.map(r=>this.sections.map(o=>[o,r[o]]).sort((o,a)=>o[1]-a[1]).map(o=>o[0]))}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(r=>{const s=new Map;return r.forEach((o,a)=>{s.set(o,a)}),s})}getSegmentPositionInSortedOrder(r,s){return this.segmentPositionMaps[r].get(s)??0}getSegmentTypeAtSortedPosition(r,s){return this.sortedSegmentsByPoint[r][s]??"open"}updateVisualSegmentPosition(){const r=this.sections.indexOf(this.currentSegmentType);this.orientation===U2.HORIZONTAL?this.col=r:this.row=r}updateVisualPointPosition(){this.orientation===U2.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}switch(r){case"UPWARD":case"DOWNWARD":{const s=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=r==="UPWARD"?s+1:s-1;if(o>=0&&o<this.sections.length)this.currentSegmentType=this.getSegmentTypeAtSortedPosition(this.currentPointIndex,o),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const s=r==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(s>=0&&s<this.candles.length)this.currentPointIndex=s,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(r){switch(this.isInitialEntry&&this.handleInitialEntry(),r){case"UPWARD":{const s=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=s[s.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const s=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=s[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r))return super.isMovable(r);if(this.isInitialEntry)return!0;switch(r){case"UPWARD":case"DOWNWARD":{const s=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=r==="UPWARD"?s+1:s-1;return o>=0&&o<this.sections.length}case"FORWARD":case"BACKWARD":{const s=r==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return s>=0&&s<this.candles.length}}}dispose(){this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){const r=this.candles[this.currentPointIndex][this.currentSegmentType];return{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:r}}braille(){return{empty:!1,id:this.id,values:this.candleValues,min:this.min,max:this.max,row:this.row,col:this.col}}get highlightValues(){return null}text(){const r=this.candles[this.currentPointIndex],s=r[this.currentSegmentType];return{main:{label:this.orientation===U2.HORIZONTAL?this.yAxis:this.xAxis,value:r.value},cross:{label:this.orientation===U2.HORIZONTAL?this.xAxis:this.yAxis,value:s},section:this.currentSegmentType,fill:{label:Lj,value:r.trend}}}}class bj extends f9{constructor(r){super(r);le(this,"heatmapValues");le(this,"highlightValues");le(this,"x");le(this,"y");le(this,"min");le(this,"max");const s=r.data;this.x=s.x,this.y=s.y,this.heatmapValues=s.points;const{min:o,max:a}=z3.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=a,this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(r){if(!r)return null;const s=this.heatmapValues.length,o=this.heatmapValues[0].length,a=u2.selectAllElements(r);if(a.length===0||a.length!==s*o)return null;const i=new Array;if(a[0]instanceof SVGPathElement)for(let l=0;l<s;l++){const T=s-1-l,u=new Array;for(let Q=0;Q<o;Q++){const f=T*o+Q;u.push(a[f])}i.push(u)}else if(a[0]instanceof SVGRectElement)for(let l=0;l<s;l++){const T=new Array;for(let u=0;u<o;u++){const Q=u*s+l;T.push(a[Q])}i.push(T)}return i}}class Hj extends Tg{constructor(t){super(t,[t.data])}text(){const t=this.orientation===U2.VERTICAL,r=this.points[this.row][this.col],s=t?r.xMin:r.yMin,o=t?r.xMax:r.yMax;return{...super.text(),range:{min:s,max:o}}}}const Ej="Type",zH=/[ML]\s*(-?\d+(\.\d+)?)\s+(-?\d+(\.\d+)?)/g;class qH extends f9{constructor(r){super(r);le(this,"points");le(this,"lineValues");le(this,"highlightValues");le(this,"min");le(this,"max");this.points=r.data,this.lineValues=this.points.map(s=>s.map(o=>Number(o.y))),this.min=this.lineValues.map(s=>z3.safeMin(s)),this.max=this.lineValues.map(s=>z3.safeMax(s)),this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const r=this.points[this.row][this.col],s=r.fill?{fill:{label:Ej,value:r.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...s}}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}if(r==="UPWARD"||r==="DOWNWARD"){const s=this.findNearestLineByYValue(r);if(s!==null&&s!==this.row){this.row=s,this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}switch(r){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r)){const[s,o]=r;return s>=0&&s<this.values.length&&o>=0&&o<this.values[this.row].length}switch(r){case"UPWARD":case"DOWNWARD":return this.findNearestLineByYValue(r)!==null;case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findNearestLineByYValue(r){const s=this.col,o=this.values[this.row][s];let a=null,i=Number.POSITIVE_INFINITY;for(let l=0;l<this.values.length;l++){if(l===this.row||s>=this.values[l].length)continue;const T=this.values[l][s];if(!(r==="UPWARD"?T>o:T<o))continue;const Q=Math.abs(T-o);Q<i&&(i=Q,a=l)}return a}mapToSvgElements(r){if(!r||r.length!==this.lineValues.length)return null;const s=new Array;for(let o=0;o<r.length;o++){const a=u2.selectElement(r[o],!1);if(!a)return null;const i=new Array;if(a instanceof SVGPathElement){const T=a.getAttribute(xe.D)||xe.EMPTY;let u=zH.exec(T);for(;u!==null;)i.push({x:Number.parseFloat(u[1]),y:Number.parseFloat(u[3])}),u=zH.exec(T)}else if(a instanceof SVGPolylineElement){const u=(a.getAttribute(xe.POINTS)||xe.EMPTY).split(/\s+/).filter(Boolean);for(const Q of u){const[f,h]=Q.split(xe.COMMA);i.push({x:Number.parseFloat(f),y:Number.parseFloat(h)})}}if(i.length!==this.lineValues[o].length)return null;const l=new Array;for(const T of i){if(Number.isNaN(T.x)||Number.isNaN(T.y))return null;l.push(u2.createCircleElement(T.x,T.y,a))}s.push(l)}return s}}class Mj extends f9{constructor(r){super(r);le(this,"mode");le(this,"xPoints");le(this,"yPoints");le(this,"xValues");le(this,"yValues");le(this,"highlightXValues");le(this,"highlightYValues");le(this,"minX");le(this,"maxX");le(this,"minY");le(this,"maxY");this.mode="column";const s=r.data,o=[...s].sort((T,u)=>T.x-u.x||T.y-u.y);this.xPoints=new Array;let a=null;for(const T of o)(!a||a.x!==T.x)&&(a={x:T.x,y:[]},this.xPoints.push(a)),a.y.push(T.y);const i=[...s].sort((T,u)=>T.y-u.y||T.x-u.x);this.yPoints=new Array;let l=null;for(const T of i)(!l||l.y!==T.y)&&(l={y:T.y,x:[]},this.yPoints.push(l)),l.x.push(T.x);this.xValues=this.xPoints.map(T=>T.x),this.yValues=this.yPoints.map(T=>T.y),this.minX=z3.safeMin(this.xValues),this.maxX=z3.safeMax(this.xValues),this.minY=z3.safeMin(this.yValues),this.maxY=z3.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(r.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(r=>r.forEach(s=>s.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(r=>r.forEach(s=>s.remove())),this.highlightYValues.length=0),super.dispose()}get values(){return this.mode==="column"?[this.xValues]:[this.yValues]}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const r=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:r.y.length,index:this.col,value:r.y,...this.getAudioGroupIndex()}}else{const r=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:r.x.length,index:this.row,value:r.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type}}text(){if(this.mode==="column"){const r=this.xPoints[this.col];return{main:{label:this.xAxis,value:r.x},cross:{label:this.yAxis,value:r.y}}}else{const r=this.yPoints[this.row];return{main:{label:this.yAxis,value:r.y},cross:{label:this.xAxis,value:r.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type};const r=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return r?{empty:!1,elements:r}:{empty:!0,type:"trace",traceType:this.type}}hasMultiPoints(){return!0}toggleNavigation(){if(this.mode==="column"){const r=this.xPoints[this.col],s=r.y[Math.floor(r.y.length/2)];this.row=this.yValues.indexOf(s),this.mode="row"}else{const r=this.yPoints[this.row],s=r.x[Math.floor(r.x.length/2)];this.col=this.xValues.indexOf(s),this.mode="column"}}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(r){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(r){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(r){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(r){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(r){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r))return!1;if(this.mode==="column")switch(r){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(r){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(r){if(!r)return[null,null];const s=u2.selectAllElements(r);if(s.length===0)return[null,null];const o=new Map,a=new Map;s.forEach(T=>{const u=Number.parseFloat(T.getAttribute("x")||""),Q=Number.parseFloat(T.getAttribute("y")||"");Number.isNaN(u)||(o.has(u)||o.set(u,[]),o.get(u).push(T)),Number.isNaN(Q)||(a.has(Q)||a.set(Q,[]),a.get(Q).push(T))});const i=Array.from(o.entries()).sort(([T],[u])=>T-u).map(([T,u])=>u),l=Array.from(a.entries()).sort(([T],[u])=>u-T).map(([T,u])=>u);return[i,l]}}const $H="Sum",Sj="Level",_j="undefined";class Aj extends Tg{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,r=new Array;for(let a=0;a<this.barValues[0].length;a++){const i=this.barValues.reduce((T,u)=>T+u[a],0);t.push(i);const l=this.orientation===U2.VERTICAL?{x:this.points[0][a].x,y:i,fill:$H}:{x:i,y:this.points[0][a].y,fill:$H};r.push(l)}this.points.push(r),this.barValues.push(t);const{min:s,max:o}=z3.minMax(t);this.min.push(s),this.max.push(o)}text(){return{...super.text(),fill:{label:Sj,value:this.points[this.row][this.col].fill??_j}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!0}mapToSvgElements(t){if(!t)return new Array;const r=u2.selectAllElements(t);if(r.length===0)return new Array;const s=new Array;if(r[0]instanceof SVGPathElement)for(let o=0,a=0;o<this.barValues.length;o++){const i=new Array;for(let l=0;l<this.barValues[o].length;l++){if(a>=r.length)return new Array;this.barValues[o][l]===0?i.push(u2.createEmptyElement()):i.push(r[a++])}s.push(i)}else if(r[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)s.push(new Array);for(let o=0,a=0;o<this.barValues[0].length;o++)for(let i=this.barValues.length-1;i>=0;i--){if(a>=r.length)return new Array;this.barValues[i][o]===0?s[i].push(u2.createEmptyElement()):s[i].push(r[a++])}}return s}}class Oj extends qH{constructor(t){super(t)}audio(){const t=this.lineValues[this.row],r=this.col,s=l=>t[Math.max(0,Math.min(l,t.length-1))],o=r>0?s(r-1):s(r),a=s(r),i=r<t.length-1?s(r+1):s(r);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:r,value:[o,a,i],isContinuous:!0,...this.getAudioGroupIndex()}}}class Cj{static create(t){switch(t.type){case R2.BAR:return new Qj(t);case R2.BOX:return new gj(t);case R2.CANDLESTICK:return new xj(t);case R2.HEATMAP:return new bj(t);case R2.HISTOGRAM:return new Hj(t);case R2.LINE:return new qH(t);case R2.SCATTER:return new Mj(t);case R2.SMOOTH:return new Oj(t);case R2.DODGED:case R2.NORMALIZED:case R2.STACKED:return new Aj(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const wj="MAIDR Plot",Vj="unavailable",Dj="unavailable";class Rj extends cg{constructor(r){super();le(this,"id");le(this,"title");le(this,"subtitle");le(this,"caption");le(this,"subplots");le(this,"size");this.id=r.id,this.title=r.title??wj,this.subtitle=r.subtitle??Vj,this.caption=r.caption??Dj;const s=r.subplots;this.subplots=s.map(o=>o.map(a=>new kj(a))),this.size=this.subplots.reduce((o,a)=>o+a.length,0)}dispose(){this.subplots.forEach(r=>r.forEach(s=>s.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const r=this.col+1+this.subplots.slice(0,this.row).reduce((s,o)=>s+o.length,0);return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:r,subplot:this.activeSubplot.state,traceTypes:this.activeSubplot.traceTypes}}}class kj extends cg{constructor(r){super();le(this,"traces");le(this,"traceTypes");le(this,"size");this.isInitialEntry=!1;const s=r.layers;this.size=s.length,this.traces=s.map(o=>[Cj.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const a=o.state;return a.empty?xe.EMPTY:a.traceType})}dispose(){this.traces.forEach(r=>r.forEach(s=>s.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state}}}const es=class es{constructor(){le(this,"basePalette");le(this,"extendedPalette");this.basePalette=[{waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}}],this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const r=this.extendedPalette.get(t);if(r)return r;const s=this.generateExtendedEntry(t);return this.extendedPalette.set(t,s),s}get basePaletteSize(){return this.basePalette.length}generateExtendedPalette(){[{waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((r,s)=>{this.extendedPalette.set(this.basePalette.length+s,r)})}generateExtendedEntry(t){const r=t%this.basePalette.length,s=this.basePalette[r],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),a=this.generateHarmonics(o),i=this.generateTimbreModulation(o,s.timbreModulation);return{waveType:s.waveType,harmonicMix:{fundamental:1,harmonics:a},timbreModulation:i}}generateHarmonics(t){const r=[],s=es.MIN_HARMONICS+t%es.HARMONIC_VARIATION;for(let o=0;o<s;o++){const a=1+(o+1)*(.5+t*.3%1),i=.4/(o+1)*(1-t*.1%.3);r.push({frequency:a,amplitude:i})}return r}generateTimbreModulation(t,r){const s=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,r.attack*s)),decay:Math.max(.05,Math.min(.3,r.decay*s)),sustain:Math.max(.4,Math.min(.9,r.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,r.release*s))}}};le(es,"MIN_HARMONICS",2),le(es,"HARMONIC_VARIATION",3);let Qg=es;const UH=200,GH=1e3,Nj=100,Bj=440,Pj=880,ZH=.3,jj=.5;class Ij{constructor(t,r){le(this,"notification");le(this,"audioPalette");le(this,"isCombinedAudio");le(this,"mode");le(this,"activeAudioIds");le(this,"volume");le(this,"audioContext");le(this,"compressor");this.notification=t,this.audioPalette=new Qg,this.isCombinedAudio=!1,this.mode="on",this.updateMode(r),this.activeAudioIds=new Map,this.volume=jj,this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const r=this.audioContext.createGain();return r.gain.value=.5,t.connect(r),r.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const r=t.type==="subplot"?t.trace:t;r.empty||r.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=r.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}update(t){if(this.updateMode(t),this.mode==="off"||t.type!=="trace")return;if(t.empty){this.playEmptyTone();return}const r=t.audio,s=r.groupIndex,a=s!==void 0?this.audioPalette.getPaletteEntry(s):void 0;if(r.isContinuous)this.playSmooth(r.value,r.min,r.max,r.size,r.index,a);else if(Array.isArray(r.value)){const i=r.value;if(i.length===0){this.playZeroTone();return}let l=0;const T=this.mode==="on"?50:0,u=new Array,Q=()=>{l<i.length?(this.playTone(r.min,r.max,i[l],r.size,l++,a),u.push(setTimeout(Q,T))):this.stop(u)};Q()}else{const i=r.value;i===0?this.playZeroTone():this.playTone(r.min,r.max,i,r.size,r.index,a)}}playTone(t,r,s,o,a,i){const l={min:t,max:r},T={min:UH,max:GH},u=this.interpolate(s,l,T),Q={min:0,max:o},f={min:-1,max:1},h=this.clamp(this.interpolate(a,Q,f),-1,1);return this.playOscillator(u,h,i)}createOscillators(t,r){const s=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=r,s.push(o),t.harmonicMix)for(const a of t.harmonicMix.harmonics){const i=this.audioContext.createOscillator();i.type=t.waveType,i.frequency.value=a.frequency*r,s.push(i)}return s}createGainNodes(t,r,s,o){const a=[],i=this.audioContext.currentTime;for(let l=0;l<t.length;l++){const T=this.audioContext.createGain();let u=s;if(l===0)r.harmonicMix&&(u*=r.harmonicMix.fundamental);else{const f=r.harmonicMix.harmonics[l-1];u*=f.amplitude}const Q=this.createAdsrEnvelope(T,r,u,i,o);Q!==null&&T.gain.setValueCurveAtTime(Q,i,o),a.push(T)}return a}playOscillator(t,r=0,s){const o=ZH,a=this.volume;s||(s={waveType:"sine"});const i=this.createOscillators(s,t),l=this.createGainNodes(i,s,a,o),T=this.audioContext.createStereoPanner();T.pan.value=r;const u=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let h=0;h<i.length;h++)i[h].connect(l[h]),l[h].connect(T);T.connect(u),u.connect(this.compressor),i.forEach(h=>h.start());const Q=h=>{u.disconnect(this.compressor),T.disconnect(u);for(let p=0;p<i.length;p++)l[p].disconnect(T),i[p].stop(),i[p].disconnect(l[p]);this.activeAudioIds.delete(h)},f=setTimeout(()=>Q(f),o*1e3*2);return this.activeAudioIds.set(f,i),f}createAdsrEnvelope(t,r,s,o,a){if(r!=null&&r.timbreModulation){const{attack:i,decay:l,sustain:T,release:u}=r.timbreModulation,Q=a*i,f=a*l,h=a*u,p=a-Q-f-h;return t.gain.setValueAtTime(1e-4*s,o),t.gain.linearRampToValueAtTime(s,o+Q),t.gain.linearRampToValueAtTime(T*s,o+Q+f),p>0&&t.gain.setValueAtTime(T*s,o+Q+f+p),t.gain.linearRampToValueAtTime(1e-4*s,o+a),null}else return[.5*s,s,.5*s,.5*s,.5*s,.1*s,1e-4*s]}playSmooth(t,r,s,o,a,i){const l=this.audioContext,T=l.currentTime,u=ZH,Q=(i==null?void 0:i.waveType)||"sine",f=t.map(M=>this.interpolate(M,{min:r,max:s},{min:UH,max:GH}));f.length<2&&f.push(f[0]);const h=this.clamp(this.interpolate(a,{min:0,max:o-1},{min:-1,max:1}),-1,1),p=l.createOscillator();p.type=Q,p.frequency.setValueCurveAtTime(f,T,u);const v=l.createGain(),g=this.createAdsrEnvelope(v,i,this.volume,T,u);g!==null&&v.gain.setValueCurveAtTime(g,T,u);const H=l.createStereoPanner();H.pan.value=h,p.connect(v),v.connect(H),H.connect(this.compressor),p.start(T),p.stop(T+u);const L=setTimeout(()=>{p.disconnect(),v.disconnect(),H.disconnect(),this.activeAudioIds.delete(L)},u*1e3*2);this.activeAudioIds.set(L,[p])}playEmptyTone(){const t=this.audioContext,r=t.currentTime,s=.2,o=[500,1e3,1500,2100,2700],a=[1,.6,.4,.2,.1],i=t.createGain();i.gain.setValueAtTime(.3,r),i.gain.exponentialRampToValueAtTime(.01,r+s),i.connect(this.compressor);const l=[];for(let Q=0;Q<o.length;Q++){const f=t.createOscillator(),h=t.createGain();f.frequency.value=o[Q],f.type="sine",h.gain.setValueAtTime(a[Q]*this.volume,r),h.gain.exponentialRampToValueAtTime(.001,r+s),f.connect(h),h.connect(i),f.start(r),f.stop(r+s),l.push(f)}const T=Q=>{i.disconnect(),l.forEach(f=>{f.disconnect()}),this.activeAudioIds.delete(Q)},u=setTimeout(()=>T(u),s*1e3*2);return this.activeAudioIds.set(u,l),u}playZeroTone(){return this.playOscillator(Nj,0,{waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(Bj,0,{waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(Pj,0,{waveType:"sine"})}interpolate(t,r,s){return r.min===0&&r.max===0?0:(t-r.min)/(r.max-r.min)*(s.max-s.min)+s.min}clamp(t,r,s){return Math.max(r,Math.min(t,s))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const r=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(r)}stop(t){(Array.isArray(t)?t:[t]).forEach(s=>{const o=this.activeAudioIds.get(s);if(!o){clearInterval(s);return}o.forEach(a=>{a==null||a.disconnect(),a==null||a.stop()}),clearTimeout(s),this.activeAudioIds.delete(s)})}stopAll(){this.activeAudioIds.entries().forEach(([t,r])=>{clearTimeout(t),r.forEach(s=>{s.disconnect(),s.stop()})}),this.activeAudioIds.clear()}}const Fj=250,zj=50,qj=500,$j=4e3,Uj=20;class Gj{constructor(t,r){le(this,"context");le(this,"notification");le(this,"autoplayId");le(this,"currentDirection");le(this,"userSpeed");le(this,"defaultSpeed");le(this,"minSpeed");le(this,"maxSpeed");le(this,"autoplayRate");le(this,"totalDuration");le(this,"interval");le(this,"onChangeEmitter");le(this,"onChange");this.notification=r,this.context=t,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=Fj,this.minSpeed=zj,this.maxSpeed=qj,this.autoplayRate=this.defaultSpeed,this.totalDuration=$j,this.interval=Uj,this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}start(t,r){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,r),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,r){if(this.userSpeed!==null)return this.userSpeed;if(r&&!r.empty){const s=Math.ceil(this.totalDuration/r.autoplay[t]);return this.defaultSpeed=s,this.minSpeed=Math.min(this.minSpeed,s),s}return this.defaultSpeed}}const XH=32;class bc{encode(t){const r=new Array,s=new Array,o=new Array;for(let a=0;a<t.values.length;a++){s.push(new Array);const i=(t.max[a]-t.min[a])/4,l=t.min[a]+i,T=l+i,u=T+i;for(let Q=0;Q<t.values[a].length;Q++)t.values[a][Q]===0?r.push(" "):t.values[a][Q]<=l||t.values[a][Q]<=T?r.push("⠤"):t.values[a][Q]<=u?r.push("⠒"):r.push("⠉"),s[a].push(o.length),o.push({row:a,col:Q});r.push(xe.NEW_LINE),s[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class Zj{constructor(){le(this,"GLOBAL_MIN","globalMin");le(this,"GLOBAL_MAX","globalMax");le(this,"BLANK","blank");le(this,"LOWER_OUTLIER","lowerOutlier");le(this,"UPPER_OUTLIER","upperOutlier");le(this,"MIN","min");le(this,"MAX","max");le(this,"Q1","q1");le(this,"Q2","q2");le(this,"Q3","q3")}encode(t,r=XH){const s=new Array,o=new Array,a=new Array;for(let i=0;i<t.values.length;i++){const l=t.values[i],T=[{type:this.GLOBAL_MIN,value:t.min},...l.lowerOutliers.map(V=>({type:this.LOWER_OUTLIER,value:V})),{type:this.MIN,value:l.min},{type:this.Q1,value:l.q1},{type:this.Q2,value:l.q2},{type:this.Q3,value:l.q3},{type:this.MAX,value:l.max},...l.upperOutliers.map(V=>({type:this.UPPER_OUTLIER,value:V})),{type:this.GLOBAL_MAX,value:t.max}],u=new Array;let Q=!0;for(let V=0;V<T.length-1;V++){const k=T[V],B=T[V+1],R=Math.abs(Q?B.value-k.value:k.value-T[V-1].value);k.type===this.LOWER_OUTLIER||k.type===this.UPPER_OUTLIER?(u.push({type:k.type,length:0,numChars:1}),u.push({type:this.BLANK,length:R,numChars:0})):k.type===this.Q2?(Q=!1,u.push({type:this.Q2,length:0,numChars:2})):k.type===this.GLOBAL_MIN||k.type===this.GLOBAL_MAX?u.push({type:this.BLANK,length:R,numChars:0}):u.push({type:k.type,length:R,numChars:1})}let f=u.reduce((V,k)=>V+(k.numChars>0?k.numChars:0),0),[h,p,v,g]=[-1,-1,-1,-1];for(let V=0;V<u.length;V++)u[V].type===this.MIN&&u[V].length>0&&(h=V),u[V].type===this.MAX&&u[V].length>0&&(p=V),u[V].type===this.Q1&&(v=V),u[V].type===this.Q3&&(g=V);h!==-1&&p!==-1&&u[h].length!==u[p].length&&(u[h].length>u[p].length?(u[h].numChars++,f++):(u[p].numChars++,f++)),v!==-1&&g!==-1&&u[v].length!==u[g].length&&(u[v].length>u[g].length?(u[v].numChars++,f++):(u[g].numChars++,f++));const H=Math.max(0,r-f),L=u.reduce((V,k)=>V+(k.type!==this.Q2&&k.length>0?k.length:0),0);for(const V of u)if(V.type!==this.Q2&&V.length>0){const k=Math.round(V.length/L*H);V.numChars+=k}const M=u.reduce((V,k)=>V+k.numChars,0);let A=r-M,C=0;for(;A!==0;){const V=u[C%u.length];V.type!==this.BLANK&&V.type!==this.Q2&&V.length>0&&(V.numChars+=A>0?1:-1,A+=A>0?-1:1),C++}let E=-1;const _=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];a.push(Array.from({length:_.length}).fill(-1));for(const V of u){V.type!==this.BLANK&&V.type!==this.GLOBAL_MIN&&V.type!==this.GLOBAL_MAX&&(E=_.indexOf(V.type),a[i][E]=s.length);for(let k=0;k<V.numChars;k++){let B="⠀";V.type===this.MIN||V.type===this.MAX?B="⠒":V.type===this.Q1||V.type===this.Q3?B="⠿":V.type===this.Q2?B=k===0?"⠸":"⠇":V.type===this.LOWER_OUTLIER||V.type===this.UPPER_OUTLIER?B="⠂":V.type===this.BLANK&&(B="⠀"),s.push(B),o.push({row:i,col:E})}}for(let V=0;V<3;V++)if(a[i][V]===-1){for(let k=V+1;k<=3;k++)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}for(let V=6;V>3;V--)if(a[i][V]===-1){for(let k=V-1;k>=3;k--)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}s.push(xe.NEW_LINE),o.push({row:i,col:E})}return{value:s.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class Xj{encode(t){const r=new Array,s=new Array,o=new Array,a=(t.max-t.min)/3,i=t.min+a,l=i+a;for(let T=0;T<t.values.length;T++){s.push(new Array);for(let u=0;u<t.values[T].length;u++)t.values[T][u]===0?r.push(" "):t.values[T][u]<=i?r.push("⠤"):t.values[T][u]<=l?r.push("⠒"):r.push("⠉"),s[T].push(o.length),o.push({row:T,col:u});r.push(xe.NEW_LINE),s[T].push(o.length),o.push({row:T,col:t.values[T].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class WH{encode(t){const r=new Array,s=new Array,o=new Array;for(let a=0;a<t.values.length;a++){s.push(new Array);const{low:i,medium:l,mediumHigh:T,high:u}=this.getThresholds(a,t);for(let Q=0;Q<t.values[a].length;Q++){const f=t.values[a][Q],h=Q>0?t.values[a][Q-1]:null,p=this.getBrailleChar(f,h,i,l,T,u);r.push(p),s[a].push(o.length),o.push({row:a,col:Q})}r.push(xe.NEW_LINE),s[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}getBrailleChar(t,r,s,o,a,i){return t<=s&&r!==null&&r>s?r<=o?"⢄":r<=a?"⢆":"⢇":t<=s?"⣀":r!==null&&r<=s?t<=o?"⡠":t<=a?"⡰":"⡸":t<=o&&r!==null&&r>o?r<=a?"⠢":"⠣":t<=o?"⠤":r!==null&&r<=o?t<=a?"⠔":"⠜":t<=a&&r!==null&&r>a?"⠑":t<=a?"⠒":r!==null&&r<=a?"⠊":t<=i?"⠉":""}}class Wj extends WH{getThresholds(t,r){const s=(r.max-r.min)/4,o=r.min+s,a=o+s,i=a+s,l=r.max;return{low:o,medium:a,mediumHigh:i,high:l}}}class Yj extends WH{getThresholds(t,r){const s=(r.max[t]-r.min[t])/4,o=r.min[t]+s,a=o+s,i=a+s,l=r.max[t];return{low:o,medium:a,mediumHigh:i,high:l}}}class Kj{constructor(t,r,s){le(this,"context");le(this,"notification");le(this,"display");le(this,"enabled");le(this,"cacheId");le(this,"cache");le(this,"encoders");le(this,"onChangeEmitter");le(this,"onChange");this.context=t,this.notification=r,this.display=s,this.enabled=!1,this.cacheId=xe.EMPTY,this.cache=null,this.encoders=new Map([[R2.BAR,new bc],[R2.BOX,new Zj],[R2.CANDLESTICK,new Wj],[R2.DODGED,new bc],[R2.HEATMAP,new Xj],[R2.HISTOGRAM,new bc],[R2.LINE,new Yj],[R2.NORMALIZED,new bc],[R2.STACKED,new bc]]),this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const r=t.type==="subplot"?t.trace:t;if(r.empty||r.braille.empty||!this.encoders.has(r.traceType))return;const s=r.braille;if(this.cacheId!==s.id||this.cache===null){const o=this.encoders.get(r.traceType);this.cache=o.encode(s,XH),this.cacheId=s.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[s.row][s.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:r,col:s}=this.cache.indexToCell[t];this.context.moveToIndex(r,s)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const s=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(s);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(b1.BRAILLE);const r=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(r)}}var YH=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(YH||{});class KH{constructor(){}static async post(t,r,s){const o={...this.DEFAULT_HEADERS,...s};return this.request(t,"POST",o,r)}static async request(t,r,s,o){try{const a=await fetch(t,{method:r,headers:s,body:o});return a.ok?{success:!0,data:await a.json()}:{success:!1,error:{statusCode:a.status,message:`API Error: ${a.status} - ${a.statusText}`}}}catch(a){return console.error(`Error in API ${r} request to ${t}:`,a),{success:!1,error:{statusCode:YH.SERVER_ERROR,message:a instanceof Error?a.message:"Unknown error occurred"}}}}}le(KH,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const Jj=`You are an expert accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
|
|
1
|
+
(function(br){typeof define=="function"&&define.amd?define(br):br()})(function(){"use strict";var rae=Object.defineProperty;var iae=(br,g4,b1)=>g4 in br?rae(br,g4,{enumerable:!0,configurable:!0,writable:!0,value:b1}):br[g4]=b1;var oe=(br,g4,b1)=>iae(br,typeof g4!="symbol"?g4+"":g4,b1);function br(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(s,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var g4=(e=>(e.CLICK="click",e.DOM_LOADED="DOMContentLoaded",e.FOCUS_IN="focusin",e.FOCUS_OUT="focusout",e.SELECTION_CHANGE="selectionchange",e))(g4||{}),b1=(e=>(e.BRAILLE="BRAILLE",e.CHAT="CHAT",e.HELP="HELP",e.FIGURE_LABEL="FIGURE_LABEL",e.SUBPLOT="SUBPLOT",e.TRACE="TRACE",e.TRACE_LABEL="TRACE_LABEL",e.REVIEW="REVIEW",e.SETTINGS="SETTINGS",e))(b1||{});class Q9{constructor(){oe(this,"listeners");oe(this,"event",t=>(this.listeners.add(t),{dispose:()=>this.listeners.delete(t)}));this.listeners=new Set}dispose(){this.listeners.clear()}fire(t){for(const r of this.listeners)r(t)}}class xe{constructor(){}}oe(xe,"ARTICLE","article"),oe(xe,"DIV","div"),oe(xe,"FIGURE","figure"),oe(xe,"IMAGE","img"),oe(xe,"INPUT","input"),oe(xe,"TEXT_AREA","textarea"),oe(xe,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),oe(xe,"MAIDR_ARTICLE","maidr-article"),oe(xe,"MAIDR_FIGURE","maidr-figure"),oe(xe,"MAIDR_HIGHLIGHT","maidr-highlight"),oe(xe,"REACT_CONTAINER","maidr-react-container"),oe(xe,"REVIEW_INPUT","maidr-review-input"),oe(xe,"TEXT_CONTAINER","maidr-text-container"),oe(xe,"ARIA_LABEL","aria-label"),oe(xe,"CIRCLE_X","cx"),oe(xe,"CIRCLE_Y","cy"),oe(xe,"D","d"),oe(xe,"FILL","fill"),oe(xe,"POINTS","points"),oe(xe,"RADIUS","r"),oe(xe,"ROLE","role"),oe(xe,"STROKE","stroke"),oe(xe,"STROKE_WIDTH","stroke-width"),oe(xe,"TITLE","title"),oe(xe,"VISIBILITY","visibility"),oe(xe,"X1","x1"),oe(xe,"X2","x2"),oe(xe,"Y1","y1"),oe(xe,"Y2","y2"),oe(xe,"AFTER_END","afterend"),oe(xe,"APPLICATION","application"),oe(xe,"ARE"," are "),oe(xe,"CIRCLE","circle"),oe(xe,"CLOSE_BRACKET","]"),oe(xe,"COMMA",","),oe(xe,"COMMA_SPACE",", "),oe(xe,"EMPTY",""),oe(xe,"HIDDEN","hidden"),oe(xe,"IS"," is "),oe(xe,"LINE","line"),oe(xe,"MAIDR_DATA","maidr-data"),oe(xe,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),oe(xe,"NEW_LINE",`
|
|
2
|
+
`),oe(xe,"OPEN_BRACKET","["),oe(xe,"POLYLINE","polyline"),oe(xe,"SPACE"," "),oe(xe,"THROUGH"," through "),oe(xe,"TRANSPARENT","transparent"),oe(xe,"VISIBLE","visible"),oe(xe,"X","x"),oe(xe,"Y","y");let ag=class{constructor(){oe(this,"items");this.items=new Array}push(t){this.items.push(t)}pop(){return this.items.pop()}peek(){return this.items[this.items.length-1]}removeLast(t,r=1){const s=this.items.lastIndexOf(t);return s!==-1?(this.items.splice(s,r),!0):!1}isEmpty(){return this.items.length===0}size(){return this.items.length}clear(){this.items.length=0}};const og=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function lg(e,t,r,s){e.addEventListener?e.addEventListener(t,r,s):e.attachEvent&&e.attachEvent("on".concat(t),r)}function mc(e,t,r,s){e.removeEventListener?e.removeEventListener(t,r,s):e.detachEvent&&e.detachEvent("on".concat(t),r)}function kH(e,t){const r=t.slice(0,t.length-1);for(let s=0;s<r.length;s++)r[s]=e[r[s].toLowerCase()];return r}function NH(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function WP(e,t){const r=e.length>=t.length?e:t,s=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)s.indexOf(r[a])===-1&&(o=!1);return o}const yc={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":og?173:189,"=":og?61:187,";":og?59:186,"'":222,"[":219,"]":221,"\\":220},o5={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},vc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},M3={16:!1,18:!1,17:!1,91:!1},L2={};for(let e=1;e<20;e++)yc["f".concat(e)]=111+e;let d2=[],gc=null,BH="all";const M0=new Map,Lc=e=>yc[e.toLowerCase()]||o5[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),YP=e=>Object.keys(yc).find(t=>yc[t]===e),KP=e=>Object.keys(o5).find(t=>o5[t]===e);function PH(e){BH=e||"all"}function xc(){return BH||"all"}function JP(){return d2.slice(0)}function ej(){return d2.map(e=>YP(e)||KP(e)||String.fromCharCode(e))}function tj(){const e=[];return Object.keys(L2).forEach(t=>{L2[t].forEach(r=>{let{key:s,scope:o,mods:a,shortcut:i}=r;e.push({scope:o,shortcut:i,mods:a,keys:s.split("+").map(l=>Lc(l))})})}),e}function nj(e){const t=e.target||e.srcElement,{tagName:r}=t;let s=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(s=!1),s}function rj(e){return typeof e=="string"&&(e=Lc(e)),d2.indexOf(e)!==-1}function ij(e,t){let r,s;e||(e=xc());for(const o in L2)if(Object.prototype.hasOwnProperty.call(L2,o))for(r=L2[o],s=0;s<r.length;)r[s].scope===e?r.splice(s,1).forEach(i=>{let{element:l}=i;return sg(l)}):s++;xc()===e&&PH(t||"all")}function aj(e){let t=e.keyCode||e.which||e.charCode;const r=d2.indexOf(t);if(r>=0&&d2.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&d2.splice(0,d2.length),(t===93||t===224)&&(t=91),t in M3){M3[t]=!1;for(const s in o5)o5[s]===t&&(F3[s]=!1)}}function jH(e){if(typeof e>"u")Object.keys(L2).forEach(o=>{Array.isArray(L2[o])&&L2[o].forEach(a=>hp(a)),delete L2[o]}),sg(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&hp(o)});else if(typeof e=="object")e.key&&hp(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];let[o,a]=r;typeof o=="function"&&(a=o,o=""),hp({key:e,scope:o,method:a,splitKey:"+"})}}const hp=e=>{let{key:t,scope:r,method:s,splitKey:o="+"}=e;NH(t).forEach(i=>{const l=i.split(o),T=l.length,u=l[T-1],Q=u==="*"?"*":Lc(u);if(!L2[Q])return;r||(r=xc());const f=T>1?kH(o5,l):[],h=[];L2[Q]=L2[Q].filter(p=>{const g=(s?p.method===s:!0)&&p.scope===r&&WP(p.mods,f);return g&&h.push(p.element),!g}),h.forEach(p=>sg(p))})};function IH(e,t,r,s){if(t.element!==s)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in M3)Object.prototype.hasOwnProperty.call(M3,a)&&(!M3[a]&&t.mods.indexOf(+a)>-1||M3[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!M3[16]&&!M3[18]&&!M3[17]&&!M3[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(d2),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function FH(e,t){const r=L2["*"];let s=e.keyCode||e.which||e.charCode;if(!F3.filter.call(this,e))return;if((s===93||s===224)&&(s=91),d2.indexOf(s)===-1&&s!==229&&d2.push(s),["metaKey","ctrlKey","altKey","shiftKey"].forEach(l=>{const T=vc[l];e[l]&&d2.indexOf(T)===-1?d2.push(T):!e[l]&&d2.indexOf(T)>-1?d2.splice(d2.indexOf(T),1):l==="metaKey"&&e[l]&&(d2=d2.filter(u=>u in vc||u===s))}),s in M3){M3[s]=!0;for(const l in o5)if(Object.prototype.hasOwnProperty.call(o5,l)){const T=vc[o5[l]];F3[l]=e[T]}if(!r)return}for(const l in M3)Object.prototype.hasOwnProperty.call(M3,l)&&(M3[l]=e[vc[l]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(d2.indexOf(17)===-1&&d2.push(17),d2.indexOf(18)===-1&&d2.push(18),M3[17]=!0,M3[18]=!0);const o=xc();if(r)for(let l=0;l<r.length;l++)r[l].scope===o&&(e.type==="keydown"&&r[l].keydown||e.type==="keyup"&&r[l].keyup)&&IH(e,r[l],o,t);if(!(s in L2))return;const a=L2[s],i=a.length;for(let l=0;l<i;l++)if((e.type==="keydown"&&a[l].keydown||e.type==="keyup"&&a[l].keyup)&&a[l].key){const T=a[l],{splitKey:u}=T,Q=T.key.split(u),f=[];for(let h=0;h<Q.length;h++)f.push(Lc(Q[h]));f.sort().join("")===d2.sort().join("")&&IH(e,T,o,t)}}function F3(e,t,r){d2=[];const s=NH(e);let o=[],a="all",i=document,l=0,T=!1,u=!0,Q="+",f=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(i=t.element),t.keyup&&(T=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(Q=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(a=t),h&&jH(e,a);l<s.length;l++)e=s[l].split(Q),o=[],e.length>1&&(o=kH(o5,e)),e=e[e.length-1],e=e==="*"?"*":Lc(e),e in L2||(L2[e]=[]),L2[e].push({keyup:T,keydown:u,scope:a,mods:o,shortcut:s[l],method:r,key:s[l],splitKey:Q,element:i});if(typeof i<"u"&&window){if(!M0.has(i)){const p=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return FH(g,i)},v=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;FH(g,i),aj(g)};M0.set(i,{keydownListener:p,keyupListenr:v,capture:f}),lg(i,"keydown",p,f),lg(i,"keyup",v,f)}if(!gc){const p=()=>{d2=[]};gc={listener:p,capture:f},lg(window,"focus",p,f)}}}function oj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(L2).forEach(r=>{L2[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function sg(e){const t=Object.values(L2).flat();if(t.findIndex(s=>{let{element:o}=s;return o===e})<0){const{keydownListener:s,keyupListenr:o,capture:a}=M0.get(e)||{};s&&o&&(mc(e,"keyup",o,a),mc(e,"keydown",s,a),M0.delete(e))}if((t.length<=0||M0.size<=0)&&(Object.keys(M0).forEach(o=>{const{keydownListener:a,keyupListenr:i,capture:l}=M0.get(o)||{};a&&i&&(mc(o,"keyup",i,l),mc(o,"keydown",a,l),M0.delete(o))}),M0.clear(),Object.keys(L2).forEach(o=>delete L2[o]),gc)){const{listener:o,capture:a}=gc;mc(window,"focus",o,a),gc=null}}const ug={getPressedKeyString:ej,setScope:PH,getScope:xc,deleteScope:ij,getPressedKeyCodes:JP,getAllKeyCodes:tj,isPressed:rj,filter:nj,trigger:oj,unbind:jH,keyMap:yc,modifier:o5,modifierMap:vc};for(const e in ug)Object.prototype.hasOwnProperty.call(ug,e)&&(F3[e]=ug[e]);if(typeof window<"u"){const e=window.hotkeys;F3.noConflict=t=>(t&&window.hotkeys===F3&&(window.hotkeys=e),F3),window.hotkeys=F3}class lj{constructor(t){oe(this,"id");oe(this,"instructionContext");oe(this,"plotContext");oe(this,"scopeContext");this.id=t.id,this.plotContext=new ag,this.scopeContext=new ag;const r=t.state;if(r.empty||r.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(b1.SUBPLOT);return}this.scopeContext.push(b1.TRACE);const s=t.activeSubplot.state;if(s.empty||s.size!==1){this.instructionContext=t.activeSubplot,this.plotContext.push(t.activeSubplot),this.plotContext.push(t.activeSubplot.activeTrace);return}this.instructionContext=t.activeSubplot.activeTrace,this.plotContext.push(t.activeSubplot.activeTrace)}dispose(){this.plotContext.clear(),this.scopeContext.clear()}get active(){return this.plotContext.peek()}get state(){return this.active.state}toggleScope(t){this.scopeContext.removeLast(t)||this.scopeContext.push(t),F3.setScope(this.scope)}get scope(){return this.scopeContext.peek()}isMovable(t){return this.active.isMovable(t)}moveOnce(t){this.active.moveOnce(t)}moveToExtreme(t){this.active.moveToExtreme(t)}moveToIndex(t,r){this.active.moveToIndex(t,r)}stepTrace(t){if(this.plotContext.size()>1){this.plotContext.pop();const r=this.active;r.moveOnce(t),this.active.notifyStateUpdate(),this.plotContext.push(r.activeTrace)}}enterSubplot(){if(this.active.state.type==="figure"){const r=this.active;this.plotContext.push(r.activeSubplot),this.active.notifyStateUpdate(),this.plotContext.push(r.activeSubplot.activeTrace),this.toggleScope(b1.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(b1.TRACE))}getInstruction(t){const r=this.instructionContext.state;if(r.empty)return`No ${r.type} info available`;const s=t?"Click to activate.":xe.EMPTY;switch(r.type){case"figure":return`This is a MAIDR figure containing ${r.size} subplots. ${s} Use arrow keys to navigate subplots and press 'ENTER'.`;case"subplot":return`This is a MAIDR subplot containing ${r.size} layers, and this is layer 1 of ${r.size}: ${r.trace.traceType} plot. ${s} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`;case"trace":return`This is a maidr plot of type: ${r.traceType}. ${s} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}const sj="unavailable",uj="X",cj="Y",Tj="unavailable";class cg{constructor(){oe(this,"observers");oe(this,"isInitialEntry");oe(this,"isOutOfBounds");oe(this,"row");oe(this,"col");this.observers=new Array,this.isInitialEntry=!0,this.isOutOfBounds=!1,this.row=0,this.col=0}dispose(){for(const t of this.observers)this.removeObserver(t);this.observers.length=0}moveOnce(t){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(t)){this.notifyOutOfBounds();return}switch(t){case"UPWARD":this.row+=1;break;case"DOWNWARD":this.row-=1;break;case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}moveToExtreme(t){switch(this.isInitialEntry&&this.handleInitialEntry(),t){case"UPWARD":this.row=this.values.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.col=this.values[this.row].length-1;break;case"BACKWARD":this.col=0;break}this.notifyStateUpdate()}moveToIndex(t,r){this.isMovable([t,r])&&(this.row=t,this.col=r,this.isInitialEntry=!1,this.notifyStateUpdate())}isMovable(t){if(Array.isArray(t)){const[r,s]=t;return r>=0&&r<this.values.length&&s>=0&&s<this.values[this.row].length}switch(t){case"UPWARD":return this.row<this.values.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=Math.max(0,Math.min(this.row,this.values.length-1)),this.col=Math.max(0,Math.min(this.col,this.values[this.row].length-1))}addObserver(t){this.observers.push(t)}removeObserver(t){this.observers=this.observers.filter(r=>r!==t)}notifyStateUpdate(){const t=this.state;for(const r of this.observers)r.update(t)}notifyOutOfBounds(){this.isOutOfBounds=!0,this.notifyStateUpdate(),this.isOutOfBounds=!1}}class f9 extends cg{constructor(r){var s,o,a;super();oe(this,"id");oe(this,"type");oe(this,"title");oe(this,"xAxis");oe(this,"yAxis");oe(this,"fill");this.id=r.id,this.type=r.type,this.title=r.title??sj,this.xAxis=((s=r.axes)==null?void 0:s.x)??uj,this.yAxis=((o=r.axes)==null?void 0:o.y)??cj,this.fill=((a=r.axes)==null?void 0:a.fill)??Tj}dispose(){this.values.length=0,this.highlightValues&&(this.highlightValues.forEach(r=>r.forEach(s=>{(Array.isArray(s)?s:[s]).forEach(a=>a.remove())})),this.highlightValues.length=0),super.dispose()}get state(){return this.isOutOfBounds?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,type:"trace",traceType:this.type,title:this.title,xAxis:this.xAxis,yAxis:this.yAxis,fill:this.fill,hasMultiPoints:this.hasMultiPoints(),audio:this.audio(),braille:this.braille(),text:this.text(),autoplay:this.autoplay,highlight:this.highlight()}}highlight(){return this.highlightValues===null||this.isInitialEntry?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}getAudioGroupIndex(){return this.values&&this.values.length>1?{groupIndex:this.row}:{}}get autoplay(){return{UPWARD:this.values.length,DOWNWARD:this.values.length,FORWARD:this.values[this.row].length,BACKWARD:this.values[this.row].length}}hasMultiPoints(){return!1}}var U2=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(U2||{}),R2=(e=>(e.BAR="bar",e.BOX="box",e.CANDLESTICK="candlestick",e.DODGED="dodged_bar",e.HEATMAP="heat",e.HISTOGRAM="hist",e.LINE="line",e.NORMALIZED="stacked_normalized_bar",e.SCATTER="point",e.SMOOTH="smooth",e.STACKED="stacked_bar",e))(R2||{});class z3{constructor(){}static safeMin(t){return t.length===0?1/0:Math.min(...t)}static safeMax(t){return t.length===0?-1/0:Math.max(...t)}static minFrom2D(t){const r=t.flat();return this.safeMin(r)}static maxFrom2D(t){const r=t.flat();return this.safeMax(r)}static minMax(t){if(t.length===0)return{min:1/0,max:-1/0};let r=t[0],s=t[0];for(let o=1;o<t.length;o++){const a=t[o];a<r&&(r=a),a>s&&(s=a)}return{min:r,max:s}}static minMaxFrom2D(t){const r=t.flat();return this.minMax(r)}}class pp{constructor(){}static parse(t){const r=t.replace(/\s/g,"").toLowerCase();if(/^#(?:[a-f0-9]{3}){1,2}$/.test(r)){let o=r.substring(1).split("");return o.length===3&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),{r:Number.parseInt(o[0]+o[1],16),g:Number.parseInt(o[2]+o[3],16),b:Number.parseInt(o[4]+o[5],16)}}const s=r.match(/^rgba?\((\d+),(\d+),(\d+)(?:,\d*(?:\.\d*)?)?\)$/);return s?{r:Number.parseInt(s[1],10),g:Number.parseInt(s[2],10),b:Number.parseInt(s[3],10)}:null}static invert(t){return{r:255-t.r,g:255-t.g,b:255-t.b}}static getContrastRatio(t,r){const s=this.calculateLuminance(t),o=this.calculateLuminance(r);return(Math.max(s,o)+.05)/(Math.min(s,o)+.05)}static calculateLuminance(t){const[r,s,o]=[t.r,t.g,t.b].map(a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*r+.7152*s+.0722*o}static rgbToString(t){return`rgb(${t.r}, ${t.g}, ${t.b})`}}class u2{constructor(){}static async toBase64(t){try{const r=new XMLSerializer().serializeToString(t).replace(/>\s+</g,"> <").replace(/\s{2,}/g," ").trim(),o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r).replace(/'/g,"%27").replace(/"/g,"%22")}`,a=await new Promise((T,u)=>{const Q=new Image;Q.onload=()=>T(Q),Q.onerror=()=>u(new Error("Failed to load SVG image")),Q.src=o}),i=document.createElement("canvas");[i.width,i.height]=[a.naturalWidth,a.naturalHeight];const l=i.getContext("2d");return l?(l.drawImage(a,0,0),i.toDataURL("image/jpeg",.92)):(console.error("Error converting SVG to Base 64: Canvas context unavailable"),"")}catch(r){return console.error("Error converting SVG to Base 64:",r instanceof Error?r.message:r),""}}static selectAllElements(t,r=!0){return Array.from(document.querySelectorAll(t)).map(s=>{if(!r)return s;const o=s.cloneNode(!0);return o.setAttribute(xe.VISIBILITY,xe.HIDDEN),s.insertAdjacentElement(xe.AFTER_END,o),o})}static selectElement(t,r=!0){const s=document.querySelector(t);if(!r)return s;const o=s==null?void 0:s.cloneNode(!0);return o==null||o.setAttribute(xe.VISIBILITY,xe.HIDDEN),s==null||s.insertAdjacentElement(xe.AFTER_END,o),o}static createEmptyElement(t="rect"){const r=document.createElementNS(this.SVG_NAMESPACE,t);return r.setAttribute(xe.FILL,xe.TRANSPARENT),r.setAttribute(xe.STROKE,xe.TRANSPARENT),r.setAttribute(xe.VISIBILITY,xe.HIDDEN),r}static createCircleElement(t,r,s){var u;const o=window.getComputedStyle(s),a=o.stroke||o.fill,i=o.strokeWidth||"2",l=Number.parseFloat(i)*2,T=document.createElementNS(this.SVG_NAMESPACE,xe.CIRCLE);return T.setAttribute(xe.CIRCLE_X,String(t)),T.setAttribute(xe.CIRCLE_Y,String(r)),T.setAttribute(xe.RADIUS,String(l)),T.setAttribute(xe.FILL,a),T.setAttribute(xe.STROKE,a),T.setAttribute(xe.STROKE_WIDTH,i),T.setAttribute(xe.VISIBILITY,xe.HIDDEN),(u=s.parentElement)==null||u.insertAdjacentElement(xe.AFTER_END,T),T}static createLineElement(t,r){const o=t.getBBox();let a,i,l,T;switch(r){case"top":[a,i,l,T]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[a,i,l,T]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[a,i,l,T]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[a,i,l,T]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const u=window.getComputedStyle(t),Q=document.createElementNS(this.SVG_NAMESPACE,xe.LINE);return Q.setAttribute(xe.X1,String(a)),Q.setAttribute(xe.Y1,String(i)),Q.setAttribute(xe.X2,String(l)),Q.setAttribute(xe.Y2,String(T)),Q.setAttribute(xe.STROKE,u.stroke),Q.setAttribute(xe.STROKE_WIDTH,u.strokeWidth||"2"),Q.setAttribute(xe.VISIBILITY,xe.HIDDEN),t.insertAdjacentElement(xe.AFTER_END,Q),Q}static createHighlightElement(t,r){const s=t.cloneNode(!0),o=t.tagName.toLowerCase(),a=o===xe.POLYLINE||o===xe.LINE,i=a?window.getComputedStyle(t).getPropertyValue(xe.STROKE):window.getComputedStyle(t).getPropertyValue(xe.FILL),l=this.getHighlightColor(i,r);if(s.setAttribute(xe.VISIBILITY,xe.VISIBLE),s.setAttribute(xe.STROKE,l),s.setAttribute(xe.FILL,l),s.style.fill=l,s.style.stroke=l,a){const T=window.getComputedStyle(s).getPropertyValue(xe.STROKE_WIDTH);s.setAttribute(xe.STROKE_WIDTH,`${T+2}`)}return t.insertAdjacentElement(xe.AFTER_END,s),s}static getHighlightColor(t,r){const s=pp.parse(t);if(!s)return r;const o=pp.invert(s);return pp.getContrastRatio(s,o)>=4.5?pp.rgbToString(o):r}}oe(u2,"SVG_NAMESPACE","http://www.w3.org/2000/svg");class Tg extends f9{constructor(r,s){super(r);oe(this,"points");oe(this,"barValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"min");oe(this,"max");this.points=s,this.orientation=r.orientation??U2.VERTICAL,this.barValues=s.map(o=>o.map(a=>this.orientation===U2.VERTICAL?Number(a.y):Number(a.x))),this.min=this.barValues.map(o=>z3.safeMin(o)),this.max=this.barValues.map(o=>z3.safeMax(o)),this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.barValues}audio(){const r=this.orientation===U2.VERTICAL,s=r?this.barValues[this.row].length:this.barValues.length,o=r?this.col:this.row,a=r?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{min:z3.safeMin(this.min),max:z3.safeMax(this.max),size:s,index:o,value:a,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.barValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const r=this.orientation===U2.VERTICAL,s=this.points[this.row][this.col],o=r?this.xAxis:this.yAxis,a=r?s.x:s.y,i=r?this.yAxis:this.xAxis,l=r?s.y:s.x;return{main:{label:o,value:a},cross:{label:i,value:l}}}mapToSvgElements(r){if(!r)return null;const s=[u2.selectAllElements(r)];if(s.length!==this.points.length)return null;for(let o=0;o<this.points.length;o++)if(s[o].length!==this.points[o].length)return null;return s}}class Qj extends Tg{constructor(t){super(t,[t.data])}}const fj="Lower outlier(s)",dj="Upper outlier(s)",hj="Minimum",pj="Maximum",mj="25%",yj="50%",vj="75%";class gj extends f9{constructor(r){super(r);oe(this,"points");oe(this,"boxValues");oe(this,"highlightValues");oe(this,"orientation");oe(this,"sections");oe(this,"min");oe(this,"max");this.points=r.data,this.orientation=r.orientation??U2.VERTICAL,this.sections=[fj,hj,mj,yj,vj,pj,dj];const s=[a=>a.lowerOutliers,a=>a.min,a=>a.q1,a=>a.q2,a=>a.q3,a=>a.max,a=>a.upperOutliers];this.orientation===U2.HORIZONTAL?this.boxValues=this.points.map(a=>s.map(i=>i(a))):this.boxValues=s.map(a=>this.points.map(i=>a(i)));const o=this.boxValues.map(a=>a.flatMap(i=>Array.isArray(i)?i:[i]));this.min=z3.minFrom2D(o),this.max=z3.maxFrom2D(o),this.row=this.boxValues.length-1,this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(r,s){const o=this.orientation===U2.HORIZONTAL;r=o?r:s,s=o?s:r,super.moveToIndex(r,s)}get values(){return this.boxValues}audio(){const r=this.orientation===U2.HORIZONTAL,s=this.boxValues[this.row][this.col],o=r?this.sections.length:this.points.length,a=r?this.col:this.col;return{min:this.min,max:this.max,size:o,index:a,value:s}}braille(){const r=this.orientation===U2.HORIZONTAL,s=r?this.row:this.col,o=r?this.col:this.row;return{empty:!1,id:this.id,values:this.points,min:this.min,max:this.max,row:s,col:o}}text(){const r=this.orientation===U2.HORIZONTAL,s=r?this.points[this.row]:this.points[this.col],o=r?this.yAxis:this.xAxis,a=r?this.sections[this.col]:this.sections[this.row],i=r?this.xAxis:this.yAxis,l=this.boxValues[this.row][this.col];return{main:{label:o,value:s.fill},cross:{label:i,value:l},section:a}}mapToSvgElements(r){if(!r||r.length!==this.points.length)return null;const s=this.orientation===U2.VERTICAL,o=new Array;if(s)for(let a=0;a<this.sections.length;a++)o.push(Array.from({length:r.length}));return r.forEach((a,i)=>{const l=a.lowerOutliers.flatMap(H=>u2.selectAllElements(H)),T=a.upperOutliers.flatMap(H=>u2.selectAllElements(H)),u=u2.selectElement(a.min)??u2.createEmptyElement(),Q=u2.selectElement(a.max)??u2.createEmptyElement(),f=u2.selectElement(a.iq)??u2.createEmptyElement(),h=u2.selectElement(a.q2)??u2.createEmptyElement(),[p,v]=s?[u2.createLineElement(f,"top"),u2.createLineElement(f,"bottom")]:[u2.createLineElement(f,"left"),u2.createLineElement(f,"right")],g=[l,u,p,h,v,Q,T];s?g.forEach((H,L)=>{o[L][i]=H}):o.push(g)}),o}}const Lj="Trend";class xj extends f9{constructor(r){super(r);oe(this,"candles");oe(this,"candleValues");oe(this,"orientation");oe(this,"sections",["open","high","low","close"]);oe(this,"currentSegmentType","open");oe(this,"currentPointIndex",0);oe(this,"sortedSegmentsByPoint");oe(this,"segmentPositionMaps");oe(this,"min");oe(this,"max");const s=r.data;this.candles=s.map(o=>({...o,trend:o.close>o.open?"Bull":o.close<o.open?"Bear":"Neutral"})),this.orientation=r.orientation??U2.VERTICAL,this.candleValues=this.sections.map(o=>this.candles.map(a=>a[o])),this.min=z3.minFrom2D(this.candleValues),this.max=z3.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="open",this.orientation===U2.HORIZONTAL?this.col=0:this.row=0}precomputeSortedSegments(){return this.candles.map(r=>this.sections.map(o=>[o,r[o]]).sort((o,a)=>o[1]-a[1]).map(o=>o[0]))}precomputePositionMaps(){return this.sortedSegmentsByPoint.map(r=>{const s=new Map;return r.forEach((o,a)=>{s.set(o,a)}),s})}getSegmentPositionInSortedOrder(r,s){return this.segmentPositionMaps[r].get(s)??0}getSegmentTypeAtSortedPosition(r,s){return this.sortedSegmentsByPoint[r][s]??"open"}updateVisualSegmentPosition(){const r=this.sections.indexOf(this.currentSegmentType);this.orientation===U2.HORIZONTAL?this.col=r:this.row=r}updateVisualPointPosition(){this.orientation===U2.HORIZONTAL?this.row=this.currentPointIndex:this.col=this.currentPointIndex}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}switch(r){case"UPWARD":case"DOWNWARD":{const s=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=r==="UPWARD"?s+1:s-1;if(o>=0&&o<this.sections.length)this.currentSegmentType=this.getSegmentTypeAtSortedPosition(this.currentPointIndex,o),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}case"FORWARD":case"BACKWARD":{const s=r==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;if(s>=0&&s<this.candles.length)this.currentPointIndex=s,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();else{this.notifyOutOfBounds();return}break}}this.notifyStateUpdate()}moveToExtreme(r){switch(this.isInitialEntry&&this.handleInitialEntry(),r){case"UPWARD":{const s=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=s[s.length-1],this.updateVisualSegmentPosition();break}case"DOWNWARD":{const s=this.sortedSegmentsByPoint[this.currentPointIndex];this.currentSegmentType=s[0],this.updateVisualSegmentPosition();break}case"FORWARD":{this.currentPointIndex=this.candles.length-1,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}case"BACKWARD":{this.currentPointIndex=0,this.updateVisualPointPosition(),this.updateVisualSegmentPosition();break}}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r))return super.isMovable(r);if(this.isInitialEntry)return!0;switch(r){case"UPWARD":case"DOWNWARD":{const s=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType),o=r==="UPWARD"?s+1:s-1;return o>=0&&o<this.sections.length}case"FORWARD":case"BACKWARD":{const s=r==="FORWARD"?this.currentPointIndex+1:this.currentPointIndex-1;return s>=0&&s<this.candles.length}}}dispose(){this.candles.length=0,super.dispose()}get values(){return this.candleValues}audio(){const r=this.candles[this.currentPointIndex][this.currentSegmentType];return{min:this.min,max:this.max,size:this.candles.length,index:this.currentPointIndex,value:r}}braille(){return{empty:!1,id:this.id,values:this.candleValues,min:this.min,max:this.max,row:this.row,col:this.col}}get highlightValues(){return null}text(){const r=this.candles[this.currentPointIndex],s=r[this.currentSegmentType];return{main:{label:this.orientation===U2.HORIZONTAL?this.yAxis:this.xAxis,value:r.value},cross:{label:this.orientation===U2.HORIZONTAL?this.xAxis:this.yAxis,value:s},section:this.currentSegmentType,fill:{label:Lj,value:r.trend}}}}class bj extends f9{constructor(r){super(r);oe(this,"heatmapValues");oe(this,"highlightValues");oe(this,"x");oe(this,"y");oe(this,"min");oe(this,"max");const s=r.data;this.x=s.x,this.y=s.y,this.heatmapValues=s.points;const{min:o,max:a}=z3.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=a,this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.heatmapValues.length=0,this.x.length=0,this.y.length=0,super.dispose()}get values(){return this.heatmapValues}audio(){return{min:this.min,max:this.max,size:this.heatmapValues.length,index:this.col,value:this.heatmapValues[this.row][this.col]}}braille(){return{empty:!1,id:this.id,values:this.heatmapValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){return{main:{label:this.xAxis,value:this.x[this.col]},cross:{label:this.yAxis,value:this.y[this.row]},fill:{label:this.fill,value:String(this.heatmapValues[this.row][this.col])}}}mapToSvgElements(r){if(!r)return null;const s=this.heatmapValues.length,o=this.heatmapValues[0].length,a=u2.selectAllElements(r);if(a.length===0||a.length!==s*o)return null;const i=new Array;if(a[0]instanceof SVGPathElement)for(let l=0;l<s;l++){const T=s-1-l,u=new Array;for(let Q=0;Q<o;Q++){const f=T*o+Q;u.push(a[f])}i.push(u)}else if(a[0]instanceof SVGRectElement)for(let l=0;l<s;l++){const T=new Array;for(let u=0;u<o;u++){const Q=u*s+l;T.push(a[Q])}i.push(T)}return i}}class Hj extends Tg{constructor(t){super(t,[t.data])}text(){const t=this.orientation===U2.VERTICAL,r=this.points[this.row][this.col],s=t?r.xMin:r.yMin,o=t?r.xMax:r.yMax;return{...super.text(),range:{min:s,max:o}}}}const Ej="Type",zH=/[ML]\s*(-?\d+(\.\d+)?)\s+(-?\d+(\.\d+)?)/g;class qH extends f9{constructor(r){super(r);oe(this,"points");oe(this,"lineValues");oe(this,"highlightValues");oe(this,"min");oe(this,"max");this.points=r.data,this.lineValues=this.points.map(s=>s.map(o=>Number(o.y))),this.min=this.lineValues.map(s=>z3.safeMin(s)),this.max=this.lineValues.map(s=>z3.safeMax(s)),this.highlightValues=this.mapToSvgElements(r.selectors)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get values(){return this.lineValues}audio(){return{min:this.min[this.row],max:this.max[this.row],size:this.points[this.row].length,index:this.col,value:this.points[this.row][this.col].y,...this.getAudioGroupIndex()}}braille(){return{empty:!1,id:this.id,values:this.lineValues,min:this.min,max:this.max,row:this.row,col:this.col}}text(){const r=this.points[this.row][this.col],s=r.fill?{fill:{label:Ej,value:r.fill}}:{};return{main:{label:this.xAxis,value:this.points[this.row][this.col].x},cross:{label:this.yAxis,value:this.points[this.row][this.col].y},...s}}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}if(r==="UPWARD"||r==="DOWNWARD"){const s=this.findNearestLineByYValue(r);if(s!==null&&s!==this.row){this.row=s,this.notifyStateUpdate();return}else{this.notifyOutOfBounds();return}}switch(r){case"FORWARD":this.col+=1;break;case"BACKWARD":this.col-=1;break}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r)){const[s,o]=r;return s>=0&&s<this.values.length&&o>=0&&o<this.values[this.row].length}switch(r){case"UPWARD":case"DOWNWARD":return this.findNearestLineByYValue(r)!==null;case"FORWARD":return this.col<this.values[this.row].length-1;case"BACKWARD":return this.col>0}}findNearestLineByYValue(r){const s=this.col,o=this.values[this.row][s];let a=null,i=Number.POSITIVE_INFINITY;for(let l=0;l<this.values.length;l++){if(l===this.row||s>=this.values[l].length)continue;const T=this.values[l][s];if(!(r==="UPWARD"?T>o:T<o))continue;const Q=Math.abs(T-o);Q<i&&(i=Q,a=l)}return a}mapToSvgElements(r){if(!r||r.length!==this.lineValues.length)return null;const s=new Array;for(let o=0;o<r.length;o++){const a=u2.selectElement(r[o],!1);if(!a)return null;const i=new Array;if(a instanceof SVGPathElement){const T=a.getAttribute(xe.D)||xe.EMPTY;let u=zH.exec(T);for(;u!==null;)i.push({x:Number.parseFloat(u[1]),y:Number.parseFloat(u[3])}),u=zH.exec(T)}else if(a instanceof SVGPolylineElement){const u=(a.getAttribute(xe.POINTS)||xe.EMPTY).split(/\s+/).filter(Boolean);for(const Q of u){const[f,h]=Q.split(xe.COMMA);i.push({x:Number.parseFloat(f),y:Number.parseFloat(h)})}}if(i.length!==this.lineValues[o].length)return null;const l=new Array;for(const T of i){if(Number.isNaN(T.x)||Number.isNaN(T.y))return null;l.push(u2.createCircleElement(T.x,T.y,a))}s.push(l)}return s}}class Mj extends f9{constructor(r){super(r);oe(this,"mode");oe(this,"xPoints");oe(this,"yPoints");oe(this,"xValues");oe(this,"yValues");oe(this,"highlightXValues");oe(this,"highlightYValues");oe(this,"minX");oe(this,"maxX");oe(this,"minY");oe(this,"maxY");this.mode="column";const s=r.data,o=[...s].sort((T,u)=>T.x-u.x||T.y-u.y);this.xPoints=new Array;let a=null;for(const T of o)(!a||a.x!==T.x)&&(a={x:T.x,y:[]},this.xPoints.push(a)),a.y.push(T.y);const i=[...s].sort((T,u)=>T.y-u.y||T.x-u.x);this.yPoints=new Array;let l=null;for(const T of i)(!l||l.y!==T.y)&&(l={y:T.y,x:[]},this.yPoints.push(l)),l.x.push(T.x);this.xValues=this.xPoints.map(T=>T.x),this.yValues=this.yPoints.map(T=>T.y),this.minX=z3.safeMin(this.xValues),this.maxX=z3.safeMax(this.xValues),this.minY=z3.safeMin(this.yValues),this.maxY=z3.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(r.selectors)}dispose(){this.xPoints.length=0,this.yPoints.length=0,this.xValues.length=0,this.yValues.length=0,this.highlightXValues&&(this.highlightXValues.forEach(r=>r.forEach(s=>s.remove())),this.highlightXValues.length=0),this.highlightYValues&&(this.highlightYValues.forEach(r=>r.forEach(s=>s.remove())),this.highlightYValues.length=0),super.dispose()}get values(){return this.mode==="column"?[this.xValues]:[this.yValues]}get highlightValues(){return this.mode==="column"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}audio(){if(this.mode==="column"){const r=this.xPoints[this.col];return{min:this.minY,max:this.maxY,size:r.y.length,index:this.col,value:r.y,...this.getAudioGroupIndex()}}else{const r=this.yPoints[this.row];return{min:this.minX,max:this.maxX,size:r.x.length,index:this.row,value:r.x,...this.getAudioGroupIndex()}}}braille(){return{empty:!0,type:"trace",traceType:this.type}}text(){if(this.mode==="column"){const r=this.xPoints[this.col];return{main:{label:this.xAxis,value:r.x},cross:{label:this.yAxis,value:r.y}}}else{const r=this.yPoints[this.row];return{main:{label:this.yAxis,value:r.y},cross:{label:this.xAxis,value:r.x}}}}get autoplay(){return{UPWARD:this.yValues.length,DOWNWARD:this.yValues.length,FORWARD:this.xValues.length,BACKWARD:this.xValues.length}}highlight(){if(this.highlightValues===null)return{empty:!0,type:"trace",traceType:this.type};const r=this.mode==="column"?this.col<this.highlightValues.length?this.highlightValues[this.col]:null:this.row<this.highlightValues.length?this.highlightValues[this.row]:null;return r?{empty:!1,elements:r}:{empty:!0,type:"trace",traceType:this.type}}hasMultiPoints(){return!0}toggleNavigation(){if(this.mode==="column"){const r=this.xPoints[this.col],s=r.y[Math.floor(r.y.length/2)];this.row=this.yValues.indexOf(s),this.mode="row"}else{const r=this.yPoints[this.row],s=r.x[Math.floor(r.x.length/2)];this.col=this.xValues.indexOf(s),this.mode="column"}}moveOnce(r){if(this.isInitialEntry){this.handleInitialEntry(),this.notifyStateUpdate();return}if(!this.isMovable(r)){this.notifyOutOfBounds();return}if(this.mode==="column")switch(r){case"FORWARD":this.col++;break;case"BACKWARD":this.col--;break;case"UPWARD":case"DOWNWARD":{this.toggleNavigation();break}}else switch(r){case"UPWARD":this.row++;break;case"DOWNWARD":this.row--;break;case"FORWARD":case"BACKWARD":{this.toggleNavigation();break}}this.notifyStateUpdate()}moveToExtreme(r){if(this.isInitialEntry&&this.handleInitialEntry(),this.mode==="column")switch(r){case"UPWARD":this.toggleNavigation(),this.row=this.yPoints.length-1;break;case"DOWNWARD":this.toggleNavigation(),this.row=0;break;case"FORWARD":this.col=this.xPoints.length-1;break;case"BACKWARD":this.col=0;break}else switch(r){case"UPWARD":this.row=this.yPoints.length-1;break;case"DOWNWARD":this.row=0;break;case"FORWARD":this.toggleNavigation(),this.col=this.xPoints.length-1;break;case"BACKWARD":this.toggleNavigation(),this.col=0;break}this.notifyStateUpdate()}isMovable(r){if(Array.isArray(r))return!1;if(this.mode==="column")switch(r){case"FORWARD":return this.col<this.xPoints.length-1;case"BACKWARD":return this.col>0;case"UPWARD":case"DOWNWARD":return!0}else switch(r){case"UPWARD":return this.row<this.yPoints.length-1;case"DOWNWARD":return this.row>0;case"FORWARD":case"BACKWARD":return!0}}mapToSvgElements(r){if(!r)return[null,null];const s=u2.selectAllElements(r);if(s.length===0)return[null,null];const o=new Map,a=new Map;s.forEach(T=>{const u=Number.parseFloat(T.getAttribute("x")||""),Q=Number.parseFloat(T.getAttribute("y")||"");Number.isNaN(u)||(o.has(u)||o.set(u,[]),o.get(u).push(T)),Number.isNaN(Q)||(a.has(Q)||a.set(Q,[]),a.get(Q).push(T))});const i=Array.from(o.entries()).sort(([T],[u])=>T-u).map(([T,u])=>u),l=Array.from(a.entries()).sort(([T],[u])=>u-T).map(([T,u])=>u);return[i,l]}}const $H="Sum",Sj="Level",_j="undefined";class Aj extends Tg{constructor(t){super(t,t.data),this.createSummaryLevel()}createSummaryLevel(){const t=new Array,r=new Array;for(let a=0;a<this.barValues[0].length;a++){const i=this.barValues.reduce((T,u)=>T+u[a],0);t.push(i);const l=this.orientation===U2.VERTICAL?{x:this.points[0][a].x,y:i,fill:$H}:{x:i,y:this.points[0][a].y,fill:$H};r.push(l)}this.points.push(r),this.barValues.push(t);const{min:s,max:o}=z3.minMax(t);this.min.push(s),this.max.push(o)}text(){return{...super.text(),fill:{label:Sj,value:this.points[this.row][this.col].fill??_j}}}highlight(){return this.highlightValues===null||this.row===this.barValues.length-1?{empty:!0,type:"trace",traceType:this.type}:{empty:!1,elements:this.highlightValues[this.row][this.col]}}hasMultiPoints(){return!0}mapToSvgElements(t){if(!t)return new Array;const r=u2.selectAllElements(t);if(r.length===0)return new Array;const s=new Array;if(r[0]instanceof SVGPathElement)for(let o=0,a=0;o<this.barValues.length;o++){const i=new Array;for(let l=0;l<this.barValues[o].length;l++){if(a>=r.length)return new Array;this.barValues[o][l]===0?i.push(u2.createEmptyElement()):i.push(r[a++])}s.push(i)}else if(r[0]instanceof SVGRectElement){for(let o=0;o<this.barValues.length;o++)s.push(new Array);for(let o=0,a=0;o<this.barValues[0].length;o++)for(let i=this.barValues.length-1;i>=0;i--){if(a>=r.length)return new Array;this.barValues[i][o]===0?s[i].push(u2.createEmptyElement()):s[i].push(r[a++])}}return s}}class Oj extends qH{constructor(t){super(t)}audio(){const t=this.lineValues[this.row],r=this.col,s=l=>t[Math.max(0,Math.min(l,t.length-1))],o=r>0?s(r-1):s(r),a=s(r),i=r<t.length-1?s(r+1):s(r);return{min:this.min[this.row],max:this.max[this.row],size:t.length,index:r,value:[o,a,i],isContinuous:!0,...this.getAudioGroupIndex()}}}class Cj{static create(t){switch(t.type){case R2.BAR:return new Qj(t);case R2.BOX:return new gj(t);case R2.CANDLESTICK:return new xj(t);case R2.HEATMAP:return new bj(t);case R2.HISTOGRAM:return new Hj(t);case R2.LINE:return new qH(t);case R2.SCATTER:return new Mj(t);case R2.SMOOTH:return new Oj(t);case R2.DODGED:case R2.NORMALIZED:case R2.STACKED:return new Aj(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const wj="MAIDR Plot",Vj="unavailable",Dj="unavailable";class Rj extends cg{constructor(r){super();oe(this,"id");oe(this,"title");oe(this,"subtitle");oe(this,"caption");oe(this,"subplots");oe(this,"size");this.id=r.id,this.title=r.title??wj,this.subtitle=r.subtitle??Vj,this.caption=r.caption??Dj;const s=r.subplots;this.subplots=s.map(o=>o.map(a=>new kj(a))),this.size=this.subplots.reduce((o,a)=>o+a.length,0)}dispose(){this.subplots.forEach(r=>r.forEach(s=>s.dispose())),this.subplots.length=0,super.dispose()}get values(){return this.subplots}get activeSubplot(){return this.subplots[this.row][this.col]}get state(){if(this.isOutOfBounds)return{empty:!0,type:"figure"};const r=this.col+1+this.subplots.slice(0,this.row).reduce((s,o)=>s+o.length,0);return{empty:!1,type:"figure",title:this.title,subtitle:this.subtitle,caption:this.caption,size:this.size,index:r,subplot:this.activeSubplot.state,traceTypes:this.activeSubplot.traceTypes}}}class kj extends cg{constructor(r){super();oe(this,"traces");oe(this,"traceTypes");oe(this,"size");this.isInitialEntry=!1;const s=r.layers;this.size=s.length,this.traces=s.map(o=>[Cj.create(o)]),this.traceTypes=this.traces.flat().map(o=>{const a=o.state;return a.empty?xe.EMPTY:a.traceType})}dispose(){this.traces.forEach(r=>r.forEach(s=>s.dispose())),this.traces.length=0,super.dispose()}get values(){return this.traces}get activeTrace(){return this.traces[this.row][this.col]}get state(){return this.isOutOfBounds?{empty:!0,type:"subplot"}:{empty:!1,type:"subplot",size:this.size,index:this.row+1,trace:this.activeTrace.state}}}const es=class es{constructor(){oe(this,"basePalette");oe(this,"extendedPalette");this.basePalette=[{waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}}],this.extendedPalette=new Map,this.generateExtendedPalette()}dispose(){this.extendedPalette.clear()}getPaletteEntry(t){if(t<this.basePalette.length)return this.basePalette[t];const r=this.extendedPalette.get(t);if(r)return r;const s=this.generateExtendedEntry(t);return this.extendedPalette.set(t,s),s}get basePaletteSize(){return this.basePalette.length}generateExtendedPalette(){[{waveType:"sine",harmonicMix:{fundamental:1,harmonics:[{frequency:2,amplitude:.3},{frequency:3,amplitude:.15}]},timbreModulation:{attack:.02,decay:.15,sustain:.7,release:.3}},{waveType:"square",harmonicMix:{fundamental:1,harmonics:[{frequency:1.5,amplitude:.4},{frequency:2.5,amplitude:.2}]},timbreModulation:{attack:.01,decay:.08,sustain:.6,release:.4}},{waveType:"sawtooth",harmonicMix:{fundamental:1,harmonics:[{frequency:1.25,amplitude:.35},{frequency:2,amplitude:.25},{frequency:3,amplitude:.1}]},timbreModulation:{attack:.03,decay:.2,sustain:.5,release:.35}},{waveType:"triangle",harmonicMix:{fundamental:1,harmonics:[{frequency:.5,amplitude:.2},{frequency:4,amplitude:.15}]},timbreModulation:{attack:.025,decay:.18,sustain:.8,release:.25}}].forEach((r,s)=>{this.extendedPalette.set(this.basePalette.length+s,r)})}generateExtendedEntry(t){const r=t%this.basePalette.length,s=this.basePalette[r],o=Math.floor((t-this.basePalette.length)/this.basePalette.length),a=this.generateHarmonics(o),i=this.generateTimbreModulation(o,s.timbreModulation);return{waveType:s.waveType,harmonicMix:{fundamental:1,harmonics:a},timbreModulation:i}}generateHarmonics(t){const r=[],s=es.MIN_HARMONICS+t%es.HARMONIC_VARIATION;for(let o=0;o<s;o++){const a=1+(o+1)*(.5+t*.3%1),i=.4/(o+1)*(1-t*.1%.3);r.push({frequency:a,amplitude:i})}return r}generateTimbreModulation(t,r){const s=1+t*.2%.5;return{attack:Math.max(.005,Math.min(.05,r.attack*s)),decay:Math.max(.05,Math.min(.3,r.decay*s)),sustain:Math.max(.4,Math.min(.9,r.sustain+t*.1%.2)),release:Math.max(.1,Math.min(.5,r.release*s))}}};oe(es,"MIN_HARMONICS",2),oe(es,"HARMONIC_VARIATION",3);let Qg=es;const UH=200,GH=1e3,Nj=100,Bj=440,Pj=880,ZH=.3,jj=.5;class Ij{constructor(t,r){oe(this,"notification");oe(this,"audioPalette");oe(this,"isCombinedAudio");oe(this,"mode");oe(this,"activeAudioIds");oe(this,"volume");oe(this,"audioContext");oe(this,"compressor");this.notification=t,this.audioPalette=new Qg,this.isCombinedAudio=!1,this.mode="on",this.updateMode(r),this.activeAudioIds=new Map,this.volume=jj,this.audioContext=new AudioContext,this.compressor=this.initCompressor()}dispose(){this.stopAll(),this.audioPalette.dispose(),this.audioContext.state!=="closed"&&(this.compressor.disconnect(),this.audioContext.close())}initCompressor(){const t=this.audioContext.createDynamicsCompressor();t.threshold.value=-50,t.knee.value=40,t.ratio.value=12,t.attack.value=0,t.release.value=.25;const r=this.audioContext.createGain();return r.gain.value=.5,t.connect(r),r.connect(this.audioContext.destination),t}updateMode(t){if(t.empty||t.type==="figure")return;const r=t.type==="subplot"?t.trace:t;r.empty||r.hasMultiPoints===this.isCombinedAudio||(this.isCombinedAudio=r.hasMultiPoints,this.mode!=="off"&&(this.isCombinedAudio?this.mode="combined":this.mode="on"))}update(t){if(this.updateMode(t),this.mode==="off"||t.type!=="trace")return;if(t.empty){this.playEmptyTone();return}const r=t.audio,s=r.groupIndex,a=s!==void 0?this.audioPalette.getPaletteEntry(s):void 0;if(r.isContinuous)this.playSmooth(r.value,r.min,r.max,r.size,r.index,a);else if(Array.isArray(r.value)){const i=r.value;if(i.length===0){this.playZeroTone();return}let l=0;const T=this.mode==="on"?50:0,u=new Array,Q=()=>{l<i.length?(this.playTone(r.min,r.max,i[l],r.size,l++,a),u.push(setTimeout(Q,T))):this.stop(u)};Q()}else{const i=r.value;i===0?this.playZeroTone():this.playTone(r.min,r.max,i,r.size,r.index,a)}}playTone(t,r,s,o,a,i){const l={min:t,max:r},T={min:UH,max:GH},u=this.interpolate(s,l,T),Q={min:0,max:o},f={min:-1,max:1},h=this.clamp(this.interpolate(a,Q,f),-1,1);return this.playOscillator(u,h,i)}createOscillators(t,r){const s=[],o=this.audioContext.createOscillator();if(o.type=t.waveType,o.frequency.value=r,s.push(o),t.harmonicMix)for(const a of t.harmonicMix.harmonics){const i=this.audioContext.createOscillator();i.type=t.waveType,i.frequency.value=a.frequency*r,s.push(i)}return s}createGainNodes(t,r,s,o){const a=[],i=this.audioContext.currentTime;for(let l=0;l<t.length;l++){const T=this.audioContext.createGain();let u=s;if(l===0)r.harmonicMix&&(u*=r.harmonicMix.fundamental);else{const f=r.harmonicMix.harmonics[l-1];u*=f.amplitude}const Q=this.createAdsrEnvelope(T,r,u,i,o);Q!==null&&T.gain.setValueCurveAtTime(Q,i,o),a.push(T)}return a}playOscillator(t,r=0,s){const o=ZH,a=this.volume;s||(s={waveType:"sine"});const i=this.createOscillators(s,t),l=this.createGainNodes(i,s,a,o),T=this.audioContext.createStereoPanner();T.pan.value=r;const u=new PannerNode(this.audioContext,{distanceModel:"linear",positionX:0,positionY:0,positionZ:0,orientationX:0,orientationY:0,orientationZ:-1,refDistance:1,maxDistance:1e4,rolloffFactor:10,coneInnerAngle:40,coneOuterAngle:50,coneOuterGain:.4});for(let h=0;h<i.length;h++)i[h].connect(l[h]),l[h].connect(T);T.connect(u),u.connect(this.compressor),i.forEach(h=>h.start());const Q=h=>{u.disconnect(this.compressor),T.disconnect(u);for(let p=0;p<i.length;p++)l[p].disconnect(T),i[p].stop(),i[p].disconnect(l[p]);this.activeAudioIds.delete(h)},f=setTimeout(()=>Q(f),o*1e3*2);return this.activeAudioIds.set(f,i),f}createAdsrEnvelope(t,r,s,o,a){if(r!=null&&r.timbreModulation){const{attack:i,decay:l,sustain:T,release:u}=r.timbreModulation,Q=a*i,f=a*l,h=a*u,p=a-Q-f-h;return t.gain.setValueAtTime(1e-4*s,o),t.gain.linearRampToValueAtTime(s,o+Q),t.gain.linearRampToValueAtTime(T*s,o+Q+f),p>0&&t.gain.setValueAtTime(T*s,o+Q+f+p),t.gain.linearRampToValueAtTime(1e-4*s,o+a),null}else return[.5*s,s,.5*s,.5*s,.5*s,.1*s,1e-4*s]}playSmooth(t,r,s,o,a,i){const l=this.audioContext,T=l.currentTime,u=ZH,Q=(i==null?void 0:i.waveType)||"sine",f=t.map(M=>this.interpolate(M,{min:r,max:s},{min:UH,max:GH}));f.length<2&&f.push(f[0]);const h=this.clamp(this.interpolate(a,{min:0,max:o-1},{min:-1,max:1}),-1,1),p=l.createOscillator();p.type=Q,p.frequency.setValueCurveAtTime(f,T,u);const v=l.createGain(),g=this.createAdsrEnvelope(v,i,this.volume,T,u);g!==null&&v.gain.setValueCurveAtTime(g,T,u);const H=l.createStereoPanner();H.pan.value=h,p.connect(v),v.connect(H),H.connect(this.compressor),p.start(T),p.stop(T+u);const L=setTimeout(()=>{p.disconnect(),v.disconnect(),H.disconnect(),this.activeAudioIds.delete(L)},u*1e3*2);this.activeAudioIds.set(L,[p])}playEmptyTone(){const t=this.audioContext,r=t.currentTime,s=.2,o=[500,1e3,1500,2100,2700],a=[1,.6,.4,.2,.1],i=t.createGain();i.gain.setValueAtTime(.3,r),i.gain.exponentialRampToValueAtTime(.01,r+s),i.connect(this.compressor);const l=[];for(let Q=0;Q<o.length;Q++){const f=t.createOscillator(),h=t.createGain();f.frequency.value=o[Q],f.type="sine",h.gain.setValueAtTime(a[Q]*this.volume,r),h.gain.exponentialRampToValueAtTime(.001,r+s),f.connect(h),h.connect(i),f.start(r),f.stop(r+s),l.push(f)}const T=Q=>{i.disconnect(),l.forEach(f=>{f.disconnect()}),this.activeAudioIds.delete(Q)},u=setTimeout(()=>T(u),s*1e3*2);return this.activeAudioIds.set(u,l),u}playZeroTone(){return this.playOscillator(Nj,0,{waveType:"triangle"})}playWaitingTone(){return setInterval(()=>this.playOscillator(Bj,0,{waveType:"sine"}),1e3)}playCompleteTone(){return this.playOscillator(Pj,0,{waveType:"sine"})}interpolate(t,r,s){return r.min===0&&r.max===0?0:(t-r.min)/(r.max-r.min)*(s.max-s.min)+s.min}clamp(t,r,s){return Math.max(r,Math.min(t,s))}toggle(){switch(this.mode){case"off":this.mode=this.isCombinedAudio?"combined":"on";break;case"on":this.mode="off";break;case"combined":this.mode="on";break}const r=`Sound is ${this.isCombinedAudio&&this.mode==="on"?"separate":this.mode}`;this.notification.notify(r)}stop(t){(Array.isArray(t)?t:[t]).forEach(s=>{const o=this.activeAudioIds.get(s);if(!o){clearInterval(s);return}o.forEach(a=>{a==null||a.disconnect(),a==null||a.stop()}),clearTimeout(s),this.activeAudioIds.delete(s)})}stopAll(){this.activeAudioIds.entries().forEach(([t,r])=>{clearTimeout(t),r.forEach(s=>{s.disconnect(),s.stop()})}),this.activeAudioIds.clear()}setVolume(t){this.volume=Math.min(Math.max(t/100,0),1)}}const Fj=250,zj=50,qj=500,$j=4e3,Uj=20;class Gj{constructor(t,r){oe(this,"context");oe(this,"notification");oe(this,"autoplayId");oe(this,"currentDirection");oe(this,"userSpeed");oe(this,"defaultSpeed");oe(this,"minSpeed");oe(this,"maxSpeed");oe(this,"autoplayRate");oe(this,"totalDuration");oe(this,"interval");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=r,this.context=t,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=Fj,this.minSpeed=zj,this.maxSpeed=qj,this.autoplayRate=this.defaultSpeed,this.totalDuration=$j,this.interval=Uj,this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.stop(),this.onChangeEmitter.dispose()}start(t,r){this.stop(),this.onChangeEmitter.fire({type:"start"}),this.autoplayRate=this.getAutoplayRate(t,r),this.currentDirection=t,this.autoplayId=setInterval(()=>{this.context.isMovable(t)?this.context.moveOnce(t):this.stop()},this.autoplayRate)}stop(){this.autoplayId&&clearInterval(this.autoplayId),this.autoplayId=null,this.currentDirection=null,this.onChangeEmitter.fire({type:"stop"})}restart(){this.autoplayId&&clearInterval(this.autoplayId),this.currentDirection&&this.start(this.currentDirection)}speedUp(){const t=this.userSpeed??this.autoplayRate;t-this.interval>this.minSpeed?(this.userSpeed=t-this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed up")):this.notification.notify("Max speed")}speedDown(){const t=this.userSpeed??this.autoplayRate;t+this.interval<=this.maxSpeed?(this.userSpeed=t+this.interval,this.autoplayRate=this.userSpeed,this.restart(),this.notification.notify("Speed down")):this.notification.notify("Min speed")}resetSpeed(){this.userSpeed=null,this.autoplayRate=this.defaultSpeed,this.restart(),this.notification.notify("Reset speed")}getAutoplayRate(t,r){if(this.userSpeed!==null)return this.userSpeed;if(r&&!r.empty){const s=Math.ceil(this.totalDuration/r.autoplay[t]);return this.defaultSpeed=s,this.minSpeed=Math.min(this.minSpeed,s),s}return this.defaultSpeed}}const XH=32;class bc{encode(t){const r=new Array,s=new Array,o=new Array;for(let a=0;a<t.values.length;a++){s.push(new Array);const i=(t.max[a]-t.min[a])/4,l=t.min[a]+i,T=l+i,u=T+i;for(let Q=0;Q<t.values[a].length;Q++)t.values[a][Q]===0?r.push(" "):t.values[a][Q]<=l||t.values[a][Q]<=T?r.push("⠤"):t.values[a][Q]<=u?r.push("⠒"):r.push("⠉"),s[a].push(o.length),o.push({row:a,col:Q});r.push(xe.NEW_LINE),s[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class Zj{constructor(){oe(this,"GLOBAL_MIN","globalMin");oe(this,"GLOBAL_MAX","globalMax");oe(this,"BLANK","blank");oe(this,"LOWER_OUTLIER","lowerOutlier");oe(this,"UPPER_OUTLIER","upperOutlier");oe(this,"MIN","min");oe(this,"MAX","max");oe(this,"Q1","q1");oe(this,"Q2","q2");oe(this,"Q3","q3")}encode(t,r=XH){const s=new Array,o=new Array,a=new Array;for(let i=0;i<t.values.length;i++){const l=t.values[i],T=[{type:this.GLOBAL_MIN,value:t.min},...l.lowerOutliers.map(V=>({type:this.LOWER_OUTLIER,value:V})),{type:this.MIN,value:l.min},{type:this.Q1,value:l.q1},{type:this.Q2,value:l.q2},{type:this.Q3,value:l.q3},{type:this.MAX,value:l.max},...l.upperOutliers.map(V=>({type:this.UPPER_OUTLIER,value:V})),{type:this.GLOBAL_MAX,value:t.max}],u=new Array;let Q=!0;for(let V=0;V<T.length-1;V++){const k=T[V],B=T[V+1],R=Math.abs(Q?B.value-k.value:k.value-T[V-1].value);k.type===this.LOWER_OUTLIER||k.type===this.UPPER_OUTLIER?(u.push({type:k.type,length:0,numChars:1}),u.push({type:this.BLANK,length:R,numChars:0})):k.type===this.Q2?(Q=!1,u.push({type:this.Q2,length:0,numChars:2})):k.type===this.GLOBAL_MIN||k.type===this.GLOBAL_MAX?u.push({type:this.BLANK,length:R,numChars:0}):u.push({type:k.type,length:R,numChars:1})}let f=u.reduce((V,k)=>V+(k.numChars>0?k.numChars:0),0),[h,p,v,g]=[-1,-1,-1,-1];for(let V=0;V<u.length;V++)u[V].type===this.MIN&&u[V].length>0&&(h=V),u[V].type===this.MAX&&u[V].length>0&&(p=V),u[V].type===this.Q1&&(v=V),u[V].type===this.Q3&&(g=V);h!==-1&&p!==-1&&u[h].length!==u[p].length&&(u[h].length>u[p].length?(u[h].numChars++,f++):(u[p].numChars++,f++)),v!==-1&&g!==-1&&u[v].length!==u[g].length&&(u[v].length>u[g].length?(u[v].numChars++,f++):(u[g].numChars++,f++));const H=Math.max(0,r-f),L=u.reduce((V,k)=>V+(k.type!==this.Q2&&k.length>0?k.length:0),0);for(const V of u)if(V.type!==this.Q2&&V.length>0){const k=Math.round(V.length/L*H);V.numChars+=k}const M=u.reduce((V,k)=>V+k.numChars,0);let A=r-M,C=0;for(;A!==0;){const V=u[C%u.length];V.type!==this.BLANK&&V.type!==this.Q2&&V.length>0&&(V.numChars+=A>0?1:-1,A+=A>0?-1:1),C++}let E=-1;const _=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];a.push(Array.from({length:_.length}).fill(-1));for(const V of u){V.type!==this.BLANK&&V.type!==this.GLOBAL_MIN&&V.type!==this.GLOBAL_MAX&&(E=_.indexOf(V.type),a[i][E]=s.length);for(let k=0;k<V.numChars;k++){let B="⠀";V.type===this.MIN||V.type===this.MAX?B="⠒":V.type===this.Q1||V.type===this.Q3?B="⠿":V.type===this.Q2?B=k===0?"⠸":"⠇":V.type===this.LOWER_OUTLIER||V.type===this.UPPER_OUTLIER?B="⠂":V.type===this.BLANK&&(B="⠀"),s.push(B),o.push({row:i,col:E})}}for(let V=0;V<3;V++)if(a[i][V]===-1){for(let k=V+1;k<=3;k++)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}for(let V=6;V>3;V--)if(a[i][V]===-1){for(let k=V-1;k>=3;k--)if(a[i][k]!==-1){a[i][V]=a[i][k];break}}s.push(xe.NEW_LINE),o.push({row:i,col:E})}return{value:s.join(xe.EMPTY),cellToIndex:a,indexToCell:o}}}class Xj{encode(t){const r=new Array,s=new Array,o=new Array,a=(t.max-t.min)/3,i=t.min+a,l=i+a;for(let T=0;T<t.values.length;T++){s.push(new Array);for(let u=0;u<t.values[T].length;u++)t.values[T][u]===0?r.push(" "):t.values[T][u]<=i?r.push("⠤"):t.values[T][u]<=l?r.push("⠒"):r.push("⠉"),s[T].push(o.length),o.push({row:T,col:u});r.push(xe.NEW_LINE),s[T].push(o.length),o.push({row:T,col:t.values[T].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}}class WH{encode(t){const r=new Array,s=new Array,o=new Array;for(let a=0;a<t.values.length;a++){s.push(new Array);const{low:i,medium:l,mediumHigh:T,high:u}=this.getThresholds(a,t);for(let Q=0;Q<t.values[a].length;Q++){const f=t.values[a][Q],h=Q>0?t.values[a][Q-1]:null,p=this.getBrailleChar(f,h,i,l,T,u);r.push(p),s[a].push(o.length),o.push({row:a,col:Q})}r.push(xe.NEW_LINE),s[a].push(o.length),o.push({row:a,col:t.values[a].length})}return{value:r.join(xe.EMPTY),cellToIndex:s,indexToCell:o}}getBrailleChar(t,r,s,o,a,i){return t<=s&&r!==null&&r>s?r<=o?"⢄":r<=a?"⢆":"⢇":t<=s?"⣀":r!==null&&r<=s?t<=o?"⡠":t<=a?"⡰":"⡸":t<=o&&r!==null&&r>o?r<=a?"⠢":"⠣":t<=o?"⠤":r!==null&&r<=o?t<=a?"⠔":"⠜":t<=a&&r!==null&&r>a?"⠑":t<=a?"⠒":r!==null&&r<=a?"⠊":t<=i?"⠉":""}}class Wj extends WH{getThresholds(t,r){const s=(r.max-r.min)/4,o=r.min+s,a=o+s,i=a+s,l=r.max;return{low:o,medium:a,mediumHigh:i,high:l}}}class Yj extends WH{getThresholds(t,r){const s=(r.max[t]-r.min[t])/4,o=r.min[t]+s,a=o+s,i=a+s,l=r.max[t];return{low:o,medium:a,mediumHigh:i,high:l}}}class Kj{constructor(t,r,s){oe(this,"context");oe(this,"notification");oe(this,"display");oe(this,"enabled");oe(this,"cacheId");oe(this,"cache");oe(this,"encoders");oe(this,"onChangeEmitter");oe(this,"onChange");this.context=t,this.notification=r,this.display=s,this.enabled=!1,this.cacheId=xe.EMPTY,this.cache=null,this.encoders=new Map([[R2.BAR,new bc],[R2.BOX,new Zj],[R2.CANDLESTICK,new Wj],[R2.DODGED,new bc],[R2.HEATMAP,new Xj],[R2.HISTOGRAM,new bc],[R2.LINE,new Yj],[R2.NORMALIZED,new bc],[R2.STACKED,new bc]]),this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose(),this.cache=null,this.encoders.clear()}update(t){if(!this.enabled||t.empty)return;const r=t.type==="subplot"?t.trace:t;if(r.empty||r.braille.empty||!this.encoders.has(r.traceType))return;const s=r.braille;if(this.cacheId!==s.id||this.cache===null){const o=this.encoders.get(r.traceType);this.cache=o.encode(s,XH),this.cacheId=s.id}this.onChangeEmitter.fire({value:this.cache.value.trim(),index:this.cache.cellToIndex[s.row][s.col]})}moveToIndex(t){if(!this.enabled||this.cache===null||t<0||t>=this.cache.indexToCell.length)return;const{row:r,col:s}=this.cache.indexToCell[t];this.context.moveToIndex(r,s)}toggle(t){if(t.empty){this.notification.notify("No info for braille");return}if(t.braille.empty){const s=`Braille is not supported for plot type: ${t.braille.traceType}`;this.notification.notify(s);return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(b1.BRAILLE);const r=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(r)}}var YH=(e=>(e[e.OK=200]="OK",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.SERVER_ERROR=500]="SERVER_ERROR",e))(YH||{});class KH{constructor(){}static async post(t,r,s){const o={...this.DEFAULT_HEADERS,...s};return this.request(t,"POST",o,r)}static async request(t,r,s,o){try{const a=await fetch(t,{method:r,headers:s,body:o});return a.ok?{success:!0,data:await a.json()}:{success:!1,error:{statusCode:a.status,message:`API Error: ${a.status} - ${a.statusText}`}}}catch(a){return console.error(`Error in API ${r} request to ${t}:`,a),{success:!1,error:{statusCode:YH.SERVER_ERROR,message:a instanceof Error?a.message:"Unknown error occurred"}}}}}oe(KH,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const Jj=`You are an expert accessibility assistant specializing in describing statistical visualizations to blind users. Your role is to:
|
|
3
3
|
1. Provide clear, concise, and accurate descriptions of charts and graphs
|
|
4
4
|
2. Focus on the most important patterns and insights
|
|
5
5
|
3. Use accessible language that assumes basic statistical knowledge
|
|
@@ -16,9 +16,9 @@ Please help me understand: {message}
|
|
|
16
16
|
|
|
17
17
|
Focus on providing a clear, structured response that helps me understand the key insights from this visualization.`;function fg(e){return`${Jj}
|
|
18
18
|
|
|
19
|
-
${e}`}function dg(e){return eI.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}class tI{constructor(t,r){
|
|
19
|
+
${e}`}function dg(e){return eI.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}class tI{constructor(t,r){oe(this,"display");oe(this,"models");this.display=t,this.models={GPT:new nI(t.plot,r,"gpt-4o"),CLAUDE:new rI(t.plot,r,"claude-3-7-sonnet-latest"),GEMINI:new iI(t.plot,r,"gemini-2.0-flash")}}async sendMessage(t,r){return this.models[t].getLlmResponse(r)}toggle(){this.display.toggleFocus(b1.CHAT)}}class hg{constructor(t,r){oe(this,"svg");oe(this,"json");oe(this,"maidrBaseUrl");oe(this,"codeQueryParam");this.svg=t,this.json=JSON.stringify(r),this.maidrBaseUrl="https://maidr-service.azurewebsites.net/api",this.codeQueryParam="I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D"}async getLlmResponse(t){var r;try{const s=await u2.toBase64(this.svg),o=this.getPayload(t.customInstruction,this.json,s,"",t.message),a=t.clientToken?this.getMaidrUrl():this.getApiUrl(t.apiKey),i=this.getHeaders(t),l=await KH.post(a,o,i);return l.success?l.data?this.formatResponse(l.data):{success:!1,error:"Response unavailable"}:{success:!1,error:(r=l.error)==null?void 0:r.message}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error occurred"}}}getMaidrUrl(){return`${this.maidrBaseUrl}/${this.getEndPoint()}?code=${this.codeQueryParam}`}getHeaders(t){const r={"Content-Type":"application/json"};return t.clientToken?r.Authentication=`${t.email} ${t.clientToken}`:r.Authorization=`Bearer ${t.apiKey}`,r}}class nI extends hg{constructor(r,s,o){super(r,s);oe(this,"version");this.version=o}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(r,s,o,a,i){const l={maidrJson:s,currentPositionText:a,message:i};return JSON.stringify({model:this.version,max_tokens:1e3,messages:[{role:"system",content:fg(r)},{role:"user",content:[{type:"text",text:dg(l)},{type:"image_url",image_url:{url:o}}]}]})}formatResponse(r){return r.choices.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:r.choices[0].message.content}}getHeaders(r){return super.getHeaders(r)}}class rI extends hg{constructor(r,s,o){super(r,s);oe(this,"version");this.version=o}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(r,s,o,a,i){const l={maidrJson:s,currentPositionText:a,message:i};return JSON.stringify({anthropic_version:this.version,max_tokens:256,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:o}},{type:"text",text:`${fg(r)}
|
|
20
20
|
|
|
21
|
-
${dg(l)}`}]}]})}formatResponse(r){return r.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:r.content[0].text}}getHeaders(r){const s=super.getHeaders(r);return s["anthropic-version"]=this.version,s}}class iI extends hg{constructor(r,s,o){super(r,s);
|
|
21
|
+
${dg(l)}`}]}]})}formatResponse(r){return r.content.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:r.content[0].text}}getHeaders(r){const s=super.getHeaders(r);return s["anthropic-version"]=this.version,s}}class iI extends hg{constructor(r,s,o){super(r,s);oe(this,"version");this.version=o}getApiUrl(r){if(!r)throw new Error("API key is required for Gemini API");return`https://generativelanguage.googleapis.com/v1beta/models/${this.version}:generateContent?key=${r}`}getEndPoint(){return"gemini"}getPayload(r,s,o,a,i){const l={maidrJson:s,currentPositionText:a,message:i};return JSON.stringify({generationConfig:{},safetySettings:[],contents:[{role:"user",parts:[{text:fg(r)}]},{role:"user",parts:[{text:dg(l)},{inlineData:{data:o.split(",")[1],mimeType:"image/svg+xml"}}]}]})}formatResponse(r){return r.candidates.length===0?{success:!1,error:"Invalid response format"}:{success:!0,data:r.candidates[0].content.parts[0].text}}getHeaders(r){const s=super.getHeaders(r);return delete s.Authorization,s}}function Hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mp={exports:{}},Gt={};/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react.production.js
|
|
24
24
|
*
|
|
@@ -64,7 +64,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/return e.NODE_ENV!=="production"&&function(){function t(u,Q){return u===Q&&(u!==0||1/u===1/Q)||u!==u&&Q!==Q}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=wa(),s=typeof Object.is=="function"?Object.is:t,o=r.useSyncExternalStore,a=r.useRef,i=r.useEffect,l=r.useMemo,T=r.useDebugValue;yg.useSyncExternalStoreWithSelector=function(u,Q,f,h,p){var v=a(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=l(function(){function L(_){if(!M){if(M=!0,A=_,_=h(_),p!==void 0&&g.hasValue){var V=g.value;if(p(V,_))return C=V}return C=_}if(V=C,s(A,_))return V;var k=h(_);return p!==void 0&&p(V,k)?(A=_,V):(A=_,C=k)}var M=!1,A,C,E=f===void 0?null:f;return[function(){return L(Q())},E===null?void 0:function(){return L(E())}]},[Q,f,h,p]);var H=o(u,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=H},[H]),T(H),H},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),yg}var iE;function uI(){if(iE)return yp.exports;iE=1;var e={};return e.NODE_ENV==="production"?yp.exports=lI():yp.exports=sI(),yp.exports}var cI=uI(),Mc={};function TI(e){e()}function QI(){let e=null,t=null;return{clear(){e=null,t=null},notify(){TI(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var aE={notify(){},get:()=>[]};function fI(e,t){let r,s=aE,o=0,a=!1;function i(g){Q();const H=s.subscribe(g);let L=!1;return()=>{L||(L=!0,H(),f())}}function l(){s.notify()}function T(){v.onStateChange&&v.onStateChange()}function u(){return a}function Q(){o++,r||(r=e.subscribe(T),s=QI())}function f(){o--,r&&o===0&&(r(),r=void 0,s.clear(),s=aE)}function h(){a||(a=!0,Q())}function p(){a&&(a=!1,f())}const v={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:T,isSubscribed:u,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>s};return v}var dI=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hI=dI(),pI=()=>typeof navigator<"u"&&navigator.product==="ReactNative",mI=pI(),yI=()=>hI||mI?ae.useLayoutEffect:ae.useEffect,vI=yI(),vg=Symbol.for("react-redux-context"),gg=typeof globalThis<"u"?globalThis:{};function gI(){if(!ae.createContext)return{};const e=gg[vg]??(gg[vg]=new Map);let t=e.get(ae.createContext);return t||(t=ae.createContext(null),Mc.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ae.createContext,t)),t}var vp=gI();function LI(e){const{children:t,context:r,serverState:s,store:o}=e,a=ae.useMemo(()=>{const T=fI(o),u={store:o,subscription:T,getServerState:s?()=>s:void 0};if(Mc.NODE_ENV==="production")return u;{const{identityFunctionCheck:Q="once",stabilityCheck:f="once"}=e;return Object.assign(u,{stabilityCheck:f,identityFunctionCheck:Q})}},[o,s]),i=ae.useMemo(()=>o.getState(),[o]);vI(()=>{const{subscription:T}=a;return T.onStateChange=T.notifyNestedSubs,T.trySubscribe(),i!==o.getState()&&T.notifyNestedSubs(),()=>{T.tryUnsubscribe(),T.onStateChange=void 0}},[a,i]);const l=r||vp;return ae.createElement(l.Provider,{value:a},t)}var xI=LI;function oE(e=vp){return function(){const r=ae.useContext(e);if(Mc.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var bI=oE(),HI=(e,t)=>e===t;function EI(e=vp){const t=e===vp?bI:oE(e),r=(s,o={})=>{const{equalityFn:a=HI}=typeof o=="function"?{equalityFn:o}:o;if(Mc.NODE_ENV!=="production"){if(!s)throw new Error("You must pass a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as an equality function to useSelector")}const i=t(),{store:l,subscription:T,getServerState:u}=i,Q=ae.useRef(!0),f=ae.useCallback({[s.name](p){const v=s(p);if(Mc.NODE_ENV!=="production"){const{devModeChecks:g={}}=typeof o=="function"?{}:o,{identityFunctionCheck:H,stabilityCheck:L}=i,{identityFunctionCheck:M,stabilityCheck:A}={stabilityCheck:L,identityFunctionCheck:H,...g};if(A==="always"||A==="once"&&Q.current){const C=s(p);if(!a(v,C)){let E;try{throw new Error}catch(_){({stack:E}=_)}console.warn("Selector "+(s.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
66
66
|
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:p,selected:v,selected2:C,stack:E})}}if((M==="always"||M==="once"&&Q.current)&&v===p){let C;try{throw new Error}catch(E){({stack:C}=E)}console.warn("Selector "+(s.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
67
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:C})}Q.current&&(Q.current=!1)}return v}}[s.name],[s]),h=cI.useSyncExternalStoreWithSelector(T.addNestedSub,l.getState,u||l.getState,f,a);return ae.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var MI=EI();const SI=MI,gf=class gf{constructor(){le(this,"viewModels");this.viewModels=new Map}static get instance(){return this.registry||(this.registry=new gf),this.registry}register(t,r){this.viewModels.set(t,r)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear(),gf.registry=null}};le(gf,"registry");let l5=gf;function Sc(e){return l5.instance.get(e)}function d9(e){return SI(t=>t[e])}var k2={};function S3(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _I=typeof Symbol=="function"&&Symbol.observable||"@@observable",lE=_I,Lg=()=>Math.random().toString(36).substring(7).split("").join("."),AI={INIT:`@@redux/INIT${Lg()}`,REPLACE:`@@redux/REPLACE${Lg()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lg()}`},m7=AI;function _c(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function OI(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(VI(e))return"date";if(wI(e))return"error";const r=CI(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function CI(e){return typeof e.constructor=="function"?e.constructor.name:null}function wI(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function VI(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Va(e){let t=typeof e;return k2.NODE_ENV!=="production"&&(t=OI(e)),t}function sE(e,t,r){if(typeof e!="function")throw new Error(k2.NODE_ENV==="production"?S3(2):`Expected the root reducer to be a function. Instead, received: '${Va(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k2.NODE_ENV==="production"?S3(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k2.NODE_ENV==="production"?S3(1):`Expected the enhancer to be a function. Instead, received: '${Va(r)}'`);return r(sE)(e,t)}let s=e,o=t,a=new Map,i=a,l=0,T=!1;function u(){i===a&&(i=new Map,a.forEach((H,L)=>{i.set(L,H)}))}function Q(){if(T)throw new Error(k2.NODE_ENV==="production"?S3(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(H){if(typeof H!="function")throw new Error(k2.NODE_ENV==="production"?S3(4):`Expected the listener to be a function. Instead, received: '${Va(H)}'`);if(T)throw new Error(k2.NODE_ENV==="production"?S3(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;u();const M=l++;return i.set(M,H),function(){if(L){if(T)throw new Error(k2.NODE_ENV==="production"?S3(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,u(),i.delete(M),a=null}}}function h(H){if(!_c(H))throw new Error(k2.NODE_ENV==="production"?S3(7):`Actions must be plain objects. Instead, the actual type was: '${Va(H)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof H.type>"u")throw new Error(k2.NODE_ENV==="production"?S3(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof H.type!="string")throw new Error(k2.NODE_ENV==="production"?S3(17):`Action "type" property must be a string. Instead, the actual type was: '${Va(H.type)}'. Value was: '${H.type}' (stringified)`);if(T)throw new Error(k2.NODE_ENV==="production"?S3(9):"Reducers may not dispatch actions.");try{T=!0,o=s(o,H)}finally{T=!1}return(a=i).forEach(M=>{M()}),H}function p(H){if(typeof H!="function")throw new Error(k2.NODE_ENV==="production"?S3(10):`Expected the nextReducer to be a function. Instead, received: '${Va(H)}`);s=H,h({type:m7.REPLACE})}function v(){const H=f;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(k2.NODE_ENV==="production"?S3(11):`Expected the observer to be an object. Instead, received: '${Va(L)}'`);function M(){const C=L;C.next&&C.next(Q())}return M(),{unsubscribe:H(M)}},[lE](){return this}}}return h({type:m7.INIT}),{dispatch:h,subscribe:f,getState:Q,replaceReducer:p,[lE]:v}}function uE(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function DI(e,t,r,s){const o=Object.keys(t),a=r&&r.type===m7.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!_c(e))return`The ${a} has unexpected type of "${Va(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const i=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!s[l]);if(i.forEach(l=>{s[l]=!0}),!(r&&r.type===m7.REPLACE)&&i.length>0)return`Unexpected ${i.length>1?"keys":"key"} "${i.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function RI(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:m7.INIT})>"u")throw new Error(k2.NODE_ENV==="production"?S3(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:m7.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k2.NODE_ENV==="production"?S3(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${m7.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function kI(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const l=t[i];k2.NODE_ENV!=="production"&&typeof e[l]>"u"&&uE(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const s=Object.keys(r);let o;k2.NODE_ENV!=="production"&&(o={});let a;try{RI(r)}catch(i){a=i}return function(l={},T){if(a)throw a;if(k2.NODE_ENV!=="production"){const f=DI(l,r,T,o);f&&uE(f)}let u=!1;const Q={};for(let f=0;f<s.length;f++){const h=s[f],p=r[h],v=l[h],g=p(v,T);if(typeof g>"u"){const H=T&&T.type;throw new Error(k2.NODE_ENV==="production"?S3(14):`When called with an action of type ${H?`"${String(H)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}Q[h]=g,u=u||g!==v}return u=u||s.length!==Object.keys(l).length,u?Q:l}}function gp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function NI(...e){return t=>(r,s)=>{const o=t(r,s);let a=()=>{throw new Error(k2.NODE_ENV==="production"?S3(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const i={getState:o.getState,dispatch:(T,...u)=>a(T,...u)},l=e.map(T=>T(i));return a=gp(...l)(o.dispatch),{...o,dispatch:a}}}function cE(e){return _c(e)&&"type"in e&&typeof e.type=="string"}var Ac={},TE=Symbol.for("immer-nothing"),QE=Symbol.for("immer-draftable"),d6=Symbol.for("immer-state"),BI=Ac.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function G4(e,...t){if(Ac.NODE_ENV!=="production"){const r=BI[e],s=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${s}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var h9=Object.getPrototypeOf;function y7(e){return!!e&&!!e[d6]}function S0(e){var t;return e?fE(e)||Array.isArray(e)||!!e[QE]||!!((t=e.constructor)!=null&&t[QE])||bp(e)||Hp(e):!1}var PI=Object.prototype.constructor.toString();function fE(e){if(!e||typeof e!="object")return!1;const t=h9(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===PI}function Lp(e,t){xp(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,s)=>t(s,r,e))}function xp(e){const t=e[d6];return t?t.type_:Array.isArray(e)?1:bp(e)?2:Hp(e)?3:0}function xg(e,t){return xp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dE(e,t,r){const s=xp(e);s===2?e.set(t,r):s===3?e.add(r):e[t]=r}function jI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bp(e){return e instanceof Map}function Hp(e){return e instanceof Set}function v7(e){return e.copy_||e.base_}function bg(e,t){if(bp(e))return new Map(e);if(Hp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=fE(e);if(t===!0||t==="class_only"&&!r){const s=Object.getOwnPropertyDescriptors(e);delete s[d6];let o=Reflect.ownKeys(s);for(let a=0;a<o.length;a++){const i=o[a],l=s[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(s[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[i]})}return Object.create(h9(e),s)}else{const s=h9(e);if(s!==null&&r)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function Hg(e,t=!1){return Ep(e)||y7(e)||!S0(e)||(xp(e)>1&&(e.set=e.add=e.clear=e.delete=II),Object.freeze(e),t&&Object.entries(e).forEach(([r,s])=>Hg(s,!0))),e}function II(){G4(2)}function Ep(e){return Object.isFrozen(e)}var FI={};function g7(e){const t=FI[e];return t||G4(0,e),t}var Oc;function hE(){return Oc}function zI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pE(e,t){t&&(g7("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Eg(e){Mg(e),e.drafts_.forEach(qI),e.drafts_=null}function Mg(e){e===Oc&&(Oc=e.parent_)}function mE(e){return Oc=zI(Oc,e)}function qI(e){const t=e[d6];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function yE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[d6].modified_&&(Eg(t),G4(4)),S0(e)&&(e=Mp(t,e),t.parent_||Sp(t,e)),t.patches_&&g7("Patches").generateReplacementPatches_(r[d6].base_,e,t.patches_,t.inversePatches_)):e=Mp(t,r,[]),Eg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TE?e:void 0}function Mp(e,t,r){if(Ep(t))return t;const s=t[d6];if(!s)return Lp(t,(o,a)=>vE(e,s,t,o,a,r)),t;if(s.scope_!==e)return t;if(!s.modified_)return Sp(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let a=o,i=!1;s.type_===3&&(a=new Set(o),o.clear(),i=!0),Lp(a,(l,T)=>vE(e,s,o,l,T,r,i)),Sp(e,o,!1),r&&e.patches_&&g7("Patches").generatePatches_(s,r,e.patches_,e.inversePatches_)}return s.copy_}function vE(e,t,r,s,o,a,i){if(Ac.NODE_ENV!=="production"&&o===r&&G4(5),y7(o)){const l=a&&t&&t.type_!==3&&!xg(t.assigned_,s)?a.concat(s):void 0,T=Mp(e,o,l);if(dE(r,s,T),y7(T))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(S0(o)&&!Ep(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mp(e,o),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,s)&&Sp(e,o)}}function Sp(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hg(t,r)}function $I(e,t){const r=Array.isArray(e),s={type_:r?1:0,scope_:t?t.scope_:hE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,a=Sg;r&&(o=[s],a=Cc);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return s.draft_=l,s.revoke_=i,l}var Sg={get(e,t){if(t===d6)return e;const r=v7(e);if(!xg(r,t))return UI(e,r,t);const s=r[t];return e.finalized_||!S0(s)?s:s===_g(e.base_,t)?(Og(e),e.copy_[t]=Cg(s,e)):s},has(e,t){return t in v7(e)},ownKeys(e){return Reflect.ownKeys(v7(e))},set(e,t,r){const s=gE(v7(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,r),!0;if(!e.modified_){const o=_g(v7(e),t),a=o==null?void 0:o[d6];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(jI(r,o)&&(r!==void 0||xg(e.base_,t)))return!0;Og(e),Ag(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _g(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Og(e),Ag(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=v7(e),s=Reflect.getOwnPropertyDescriptor(r,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:r[t]}},defineProperty(){G4(11)},getPrototypeOf(e){return h9(e.base_)},setPrototypeOf(){G4(12)}},Cc={};Lp(Sg,(e,t)=>{Cc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cc.deleteProperty=function(e,t){return Ac.NODE_ENV!=="production"&&isNaN(parseInt(t))&&G4(13),Cc.set.call(this,e,t,void 0)},Cc.set=function(e,t,r){return Ac.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&G4(14),Sg.set.call(this,e[0],t,r,e[0])};function _g(e,t){const r=e[d6];return(r?v7(r):e)[t]}function UI(e,t,r){var o;const s=gE(t,r);return s?"value"in s?s.value:(o=s.get)==null?void 0:o.call(e.draft_):void 0}function gE(e,t){if(!(t in e))return;let r=h9(e);for(;r;){const s=Object.getOwnPropertyDescriptor(r,t);if(s)return s;r=h9(r)}}function Ag(e){e.modified_||(e.modified_=!0,e.parent_&&Ag(e.parent_))}function Og(e){e.copy_||(e.copy_=bg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var GI=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,s)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const i=this;return function(T=a,...u){return i.produce(T,Q=>r.call(this,Q,...u))}}typeof r!="function"&&G4(6),s!==void 0&&typeof s!="function"&&G4(7);let o;if(S0(t)){const a=mE(this),i=Cg(t,void 0);let l=!0;try{o=r(i),l=!1}finally{l?Eg(a):Mg(a)}return pE(a,s),yE(o,a)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===TE&&(o=void 0),this.autoFreeze_&&Hg(o,!0),s){const a=[],i=[];g7("Patches").generateReplacementPatches_(t,o,a,i),s(a,i)}return o}else G4(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,T=>t(T,...l));let s,o;return[this.produce(t,r,(i,l)=>{s=i,o=l}),s,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){S0(e)||G4(8),y7(e)&&(e=ZI(e));const t=mE(this),r=Cg(e,void 0);return r[d6].isManual_=!0,Mg(t),r}finishDraft(e,t){const r=e&&e[d6];(!r||!r.isManual_)&&G4(9);const{scope_:s}=r;return pE(s,t),yE(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const s=g7("Patches").applyPatches_;return y7(e)?s(e,t):this.produce(e,o=>s(o,t))}};function Cg(e,t){const r=bp(e)?g7("MapSet").proxyMap_(e,t):Hp(e)?g7("MapSet").proxySet_(e,t):$I(e,t);return(t?t.scope_:hE()).drafts_.push(r),r}function ZI(e){return y7(e)||G4(10,e),LE(e)}function LE(e){if(!S0(e)||Ep(e))return e;const t=e[d6];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bg(e,t.scope_.immer_.useStrictShallowCopy_)}else r=bg(e,!0);return Lp(r,(s,o)=>{dE(r,s,LE(o))}),t&&(t.finalized_=!1),r}var h6=new GI,xE=h6.produce;h6.produceWithPatches.bind(h6),h6.setAutoFreeze.bind(h6),h6.setUseStrictShallowCopy.bind(h6),h6.applyPatches.bind(h6),h6.createDraft.bind(h6),h6.finishDraft.bind(h6);var XI={},WI=(e,t,r)=>{if(t.length===1&&t[0]===r){let s=!1;try{const o={};e(o)===o&&(s=!0)}catch{}if(s){let o;try{throw new Error}catch(a){({stack:o}=a)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
67
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:C})}Q.current&&(Q.current=!1)}return v}}[s.name],[s]),h=cI.useSyncExternalStoreWithSelector(T.addNestedSub,l.getState,u||l.getState,f,a);return ae.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var MI=EI();const SI=MI,gf=class gf{constructor(){oe(this,"viewModels");this.viewModels=new Map}static get instance(){return this.registry||(this.registry=new gf),this.registry}register(t,r){this.viewModels.set(t,r)}get(t){if(!this.viewModels.has(t))throw new Error(`Error while loading view model for ${t}`);return this.viewModels.get(t)}dispose(){this.viewModels.clear(),gf.registry=null}};oe(gf,"registry");let l5=gf;function Sc(e){return l5.instance.get(e)}function d9(e){return SI(t=>t[e])}var k2={};function S3(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _I=typeof Symbol=="function"&&Symbol.observable||"@@observable",lE=_I,Lg=()=>Math.random().toString(36).substring(7).split("").join("."),AI={INIT:`@@redux/INIT${Lg()}`,REPLACE:`@@redux/REPLACE${Lg()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Lg()}`},m7=AI;function _c(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function OI(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(VI(e))return"date";if(wI(e))return"error";const r=CI(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function CI(e){return typeof e.constructor=="function"?e.constructor.name:null}function wI(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function VI(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Va(e){let t=typeof e;return k2.NODE_ENV!=="production"&&(t=OI(e)),t}function sE(e,t,r){if(typeof e!="function")throw new Error(k2.NODE_ENV==="production"?S3(2):`Expected the root reducer to be a function. Instead, received: '${Va(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k2.NODE_ENV==="production"?S3(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k2.NODE_ENV==="production"?S3(1):`Expected the enhancer to be a function. Instead, received: '${Va(r)}'`);return r(sE)(e,t)}let s=e,o=t,a=new Map,i=a,l=0,T=!1;function u(){i===a&&(i=new Map,a.forEach((H,L)=>{i.set(L,H)}))}function Q(){if(T)throw new Error(k2.NODE_ENV==="production"?S3(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function f(H){if(typeof H!="function")throw new Error(k2.NODE_ENV==="production"?S3(4):`Expected the listener to be a function. Instead, received: '${Va(H)}'`);if(T)throw new Error(k2.NODE_ENV==="production"?S3(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let L=!0;u();const M=l++;return i.set(M,H),function(){if(L){if(T)throw new Error(k2.NODE_ENV==="production"?S3(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,u(),i.delete(M),a=null}}}function h(H){if(!_c(H))throw new Error(k2.NODE_ENV==="production"?S3(7):`Actions must be plain objects. Instead, the actual type was: '${Va(H)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof H.type>"u")throw new Error(k2.NODE_ENV==="production"?S3(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof H.type!="string")throw new Error(k2.NODE_ENV==="production"?S3(17):`Action "type" property must be a string. Instead, the actual type was: '${Va(H.type)}'. Value was: '${H.type}' (stringified)`);if(T)throw new Error(k2.NODE_ENV==="production"?S3(9):"Reducers may not dispatch actions.");try{T=!0,o=s(o,H)}finally{T=!1}return(a=i).forEach(M=>{M()}),H}function p(H){if(typeof H!="function")throw new Error(k2.NODE_ENV==="production"?S3(10):`Expected the nextReducer to be a function. Instead, received: '${Va(H)}`);s=H,h({type:m7.REPLACE})}function v(){const H=f;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(k2.NODE_ENV==="production"?S3(11):`Expected the observer to be an object. Instead, received: '${Va(L)}'`);function M(){const C=L;C.next&&C.next(Q())}return M(),{unsubscribe:H(M)}},[lE](){return this}}}return h({type:m7.INIT}),{dispatch:h,subscribe:f,getState:Q,replaceReducer:p,[lE]:v}}function uE(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function DI(e,t,r,s){const o=Object.keys(t),a=r&&r.type===m7.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!_c(e))return`The ${a} has unexpected type of "${Va(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const i=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!s[l]);if(i.forEach(l=>{s[l]=!0}),!(r&&r.type===m7.REPLACE)&&i.length>0)return`Unexpected ${i.length>1?"keys":"key"} "${i.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function RI(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:m7.INIT})>"u")throw new Error(k2.NODE_ENV==="production"?S3(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:m7.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k2.NODE_ENV==="production"?S3(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${m7.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function kI(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const l=t[i];k2.NODE_ENV!=="production"&&typeof e[l]>"u"&&uE(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const s=Object.keys(r);let o;k2.NODE_ENV!=="production"&&(o={});let a;try{RI(r)}catch(i){a=i}return function(l={},T){if(a)throw a;if(k2.NODE_ENV!=="production"){const f=DI(l,r,T,o);f&&uE(f)}let u=!1;const Q={};for(let f=0;f<s.length;f++){const h=s[f],p=r[h],v=l[h],g=p(v,T);if(typeof g>"u"){const H=T&&T.type;throw new Error(k2.NODE_ENV==="production"?S3(14):`When called with an action of type ${H?`"${String(H)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}Q[h]=g,u=u||g!==v}return u=u||s.length!==Object.keys(l).length,u?Q:l}}function gp(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function NI(...e){return t=>(r,s)=>{const o=t(r,s);let a=()=>{throw new Error(k2.NODE_ENV==="production"?S3(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const i={getState:o.getState,dispatch:(T,...u)=>a(T,...u)},l=e.map(T=>T(i));return a=gp(...l)(o.dispatch),{...o,dispatch:a}}}function cE(e){return _c(e)&&"type"in e&&typeof e.type=="string"}var Ac={},TE=Symbol.for("immer-nothing"),QE=Symbol.for("immer-draftable"),d6=Symbol.for("immer-state"),BI=Ac.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function G4(e,...t){if(Ac.NODE_ENV!=="production"){const r=BI[e],s=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${s}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var h9=Object.getPrototypeOf;function y7(e){return!!e&&!!e[d6]}function S0(e){var t;return e?fE(e)||Array.isArray(e)||!!e[QE]||!!((t=e.constructor)!=null&&t[QE])||bp(e)||Hp(e):!1}var PI=Object.prototype.constructor.toString();function fE(e){if(!e||typeof e!="object")return!1;const t=h9(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===PI}function Lp(e,t){xp(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,s)=>t(s,r,e))}function xp(e){const t=e[d6];return t?t.type_:Array.isArray(e)?1:bp(e)?2:Hp(e)?3:0}function xg(e,t){return xp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dE(e,t,r){const s=xp(e);s===2?e.set(t,r):s===3?e.add(r):e[t]=r}function jI(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bp(e){return e instanceof Map}function Hp(e){return e instanceof Set}function v7(e){return e.copy_||e.base_}function bg(e,t){if(bp(e))return new Map(e);if(Hp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=fE(e);if(t===!0||t==="class_only"&&!r){const s=Object.getOwnPropertyDescriptors(e);delete s[d6];let o=Reflect.ownKeys(s);for(let a=0;a<o.length;a++){const i=o[a],l=s[i];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(s[i]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[i]})}return Object.create(h9(e),s)}else{const s=h9(e);if(s!==null&&r)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function Hg(e,t=!1){return Ep(e)||y7(e)||!S0(e)||(xp(e)>1&&(e.set=e.add=e.clear=e.delete=II),Object.freeze(e),t&&Object.entries(e).forEach(([r,s])=>Hg(s,!0))),e}function II(){G4(2)}function Ep(e){return Object.isFrozen(e)}var FI={};function g7(e){const t=FI[e];return t||G4(0,e),t}var Oc;function hE(){return Oc}function zI(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pE(e,t){t&&(g7("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Eg(e){Mg(e),e.drafts_.forEach(qI),e.drafts_=null}function Mg(e){e===Oc&&(Oc=e.parent_)}function mE(e){return Oc=zI(Oc,e)}function qI(e){const t=e[d6];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function yE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[d6].modified_&&(Eg(t),G4(4)),S0(e)&&(e=Mp(t,e),t.parent_||Sp(t,e)),t.patches_&&g7("Patches").generateReplacementPatches_(r[d6].base_,e,t.patches_,t.inversePatches_)):e=Mp(t,r,[]),Eg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TE?e:void 0}function Mp(e,t,r){if(Ep(t))return t;const s=t[d6];if(!s)return Lp(t,(o,a)=>vE(e,s,t,o,a,r)),t;if(s.scope_!==e)return t;if(!s.modified_)return Sp(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let a=o,i=!1;s.type_===3&&(a=new Set(o),o.clear(),i=!0),Lp(a,(l,T)=>vE(e,s,o,l,T,r,i)),Sp(e,o,!1),r&&e.patches_&&g7("Patches").generatePatches_(s,r,e.patches_,e.inversePatches_)}return s.copy_}function vE(e,t,r,s,o,a,i){if(Ac.NODE_ENV!=="production"&&o===r&&G4(5),y7(o)){const l=a&&t&&t.type_!==3&&!xg(t.assigned_,s)?a.concat(s):void 0,T=Mp(e,o,l);if(dE(r,s,T),y7(T))e.canAutoFreeze_=!1;else return}else i&&r.add(o);if(S0(o)&&!Ep(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mp(e,o),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,s)&&Sp(e,o)}}function Sp(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hg(t,r)}function $I(e,t){const r=Array.isArray(e),s={type_:r?1:0,scope_:t?t.scope_:hE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,a=Sg;r&&(o=[s],a=Cc);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return s.draft_=l,s.revoke_=i,l}var Sg={get(e,t){if(t===d6)return e;const r=v7(e);if(!xg(r,t))return UI(e,r,t);const s=r[t];return e.finalized_||!S0(s)?s:s===_g(e.base_,t)?(Og(e),e.copy_[t]=Cg(s,e)):s},has(e,t){return t in v7(e)},ownKeys(e){return Reflect.ownKeys(v7(e))},set(e,t,r){const s=gE(v7(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,r),!0;if(!e.modified_){const o=_g(v7(e),t),a=o==null?void 0:o[d6];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(jI(r,o)&&(r!==void 0||xg(e.base_,t)))return!0;Og(e),Ag(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _g(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Og(e),Ag(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=v7(e),s=Reflect.getOwnPropertyDescriptor(r,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:r[t]}},defineProperty(){G4(11)},getPrototypeOf(e){return h9(e.base_)},setPrototypeOf(){G4(12)}},Cc={};Lp(Sg,(e,t)=>{Cc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cc.deleteProperty=function(e,t){return Ac.NODE_ENV!=="production"&&isNaN(parseInt(t))&&G4(13),Cc.set.call(this,e,t,void 0)},Cc.set=function(e,t,r){return Ac.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&G4(14),Sg.set.call(this,e[0],t,r,e[0])};function _g(e,t){const r=e[d6];return(r?v7(r):e)[t]}function UI(e,t,r){var o;const s=gE(t,r);return s?"value"in s?s.value:(o=s.get)==null?void 0:o.call(e.draft_):void 0}function gE(e,t){if(!(t in e))return;let r=h9(e);for(;r;){const s=Object.getOwnPropertyDescriptor(r,t);if(s)return s;r=h9(r)}}function Ag(e){e.modified_||(e.modified_=!0,e.parent_&&Ag(e.parent_))}function Og(e){e.copy_||(e.copy_=bg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var GI=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,s)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const i=this;return function(T=a,...u){return i.produce(T,Q=>r.call(this,Q,...u))}}typeof r!="function"&&G4(6),s!==void 0&&typeof s!="function"&&G4(7);let o;if(S0(t)){const a=mE(this),i=Cg(t,void 0);let l=!0;try{o=r(i),l=!1}finally{l?Eg(a):Mg(a)}return pE(a,s),yE(o,a)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===TE&&(o=void 0),this.autoFreeze_&&Hg(o,!0),s){const a=[],i=[];g7("Patches").generateReplacementPatches_(t,o,a,i),s(a,i)}return o}else G4(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,T=>t(T,...l));let s,o;return[this.produce(t,r,(i,l)=>{s=i,o=l}),s,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){S0(e)||G4(8),y7(e)&&(e=ZI(e));const t=mE(this),r=Cg(e,void 0);return r[d6].isManual_=!0,Mg(t),r}finishDraft(e,t){const r=e&&e[d6];(!r||!r.isManual_)&&G4(9);const{scope_:s}=r;return pE(s,t),yE(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const s=g7("Patches").applyPatches_;return y7(e)?s(e,t):this.produce(e,o=>s(o,t))}};function Cg(e,t){const r=bp(e)?g7("MapSet").proxyMap_(e,t):Hp(e)?g7("MapSet").proxySet_(e,t):$I(e,t);return(t?t.scope_:hE()).drafts_.push(r),r}function ZI(e){return y7(e)||G4(10,e),LE(e)}function LE(e){if(!S0(e)||Ep(e))return e;const t=e[d6];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=bg(e,t.scope_.immer_.useStrictShallowCopy_)}else r=bg(e,!0);return Lp(r,(s,o)=>{dE(r,s,LE(o))}),t&&(t.finalized_=!1),r}var h6=new GI,xE=h6.produce;h6.produceWithPatches.bind(h6),h6.setAutoFreeze.bind(h6),h6.setUseStrictShallowCopy.bind(h6),h6.applyPatches.bind(h6),h6.createDraft.bind(h6),h6.finishDraft.bind(h6);var XI={},WI=(e,t,r)=>{if(t.length===1&&t[0]===r){let s=!1;try{const o={};e(o)===o&&(s=!0)}catch{}if(s){let o;try{throw new Error}catch(a){({stack:o}=a)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
68
68
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
69
69
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
70
70
|
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},YI=(e,t,r)=>{const{memoize:s,memoizeOptions:o}=t,{inputSelectorResults:a,inputSelectorResultsCopy:i}=e,l=s(()=>({}),...o);if(!(l.apply(null,a)===l.apply(null,i))){let u;try{throw new Error}catch(Q){({stack:u}=Q)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
@@ -78,7 +78,7 @@ Take a look at the logic that dispatched this action: `,p,`
|
|
|
78
78
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
79
79
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(g.measureTime(()=>{const H=f.getState(),L=wg(H,"",t,r,a,Q);if(L){const{keyPath:M,value:A}=L;console.error(`A non-serializable value was detected in the state, in the path: \`${M}\`. Value:`,A,`
|
|
80
80
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
81
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),g.warnIfExceeded()),v}}}function Op(e){return typeof e=="boolean"}var LF=()=>function(t){const{thunk:r=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new OE;if(r&&(Op(r)?i.push(cF):i.push(TF(r.extraArgument))),wt.NODE_ENV!=="production"){if(s){let l={};Op(s)||(l=s),i.unshift(vF(l))}if(o){let l={};Op(o)||(l=o),i.push(gF(l))}if(a){let l={};Op(a)||(l=a),i.unshift(pF(l))}}return i},xF="RTK_autoBatch",kE=e=>t=>{setTimeout(t,e)},bF=(e={type:"raf"})=>t=>(...r)=>{const s=t(...r);let o=!0,a=!1,i=!1;const l=new Set,T=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kE(10):e.type==="callback"?e.queueNotification:kE(e.timeout),u=()=>{i=!1,a&&(a=!1,l.forEach(Q=>Q()))};return Object.assign({},s,{subscribe(Q){const f=()=>o&&Q(),h=s.subscribe(f);return l.add(Q),()=>{h(),l.delete(Q)}},dispatch(Q){var f;try{return o=!((f=Q==null?void 0:Q.meta)!=null&&f[xF]),a=!o,a&&(i||(i=!0,T(u))),s.dispatch(Q)}finally{o=!0}}})},HF=e=>function(r){const{autoBatch:s=!0}=r??{};let o=new OE(e);return s&&o.push(bF(typeof s=="object"?s:void 0)),o};function EF(e){const t=LF(),{reducer:r=void 0,middleware:s,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let T;if(typeof r=="function")T=r;else if(_c(r))T=kI(r);else throw new Error(wt.NODE_ENV==="production"?i2(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(wt.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(wt.NODE_ENV==="production"?i2(2):"`middleware` field must be a callback");let u;if(typeof s=="function"){if(u=s(t),wt.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(wt.NODE_ENV==="production"?i2(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(wt.NODE_ENV!=="production"&&u.some(g=>typeof g!="function"))throw new Error(wt.NODE_ENV==="production"?i2(4):"each middleware provided to configureStore must be a function");if(wt.NODE_ENV!=="production"&&a){let g=new Set;u.forEach(H=>{if(g.has(H))throw new Error(wt.NODE_ENV==="production"?i2(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");g.add(H)})}let Q=gp;o&&(Q=QF({trace:wt.NODE_ENV!=="production",...typeof o=="object"&&o}));const f=NI(...u),h=HF(f);if(wt.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(wt.NODE_ENV==="production"?i2(5):"`enhancers` field must be a callback");let p=typeof l=="function"?l(h):h();if(wt.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(wt.NODE_ENV==="production"?i2(6):"`enhancers` callback must return an array");if(wt.NODE_ENV!=="production"&&p.some(g=>typeof g!="function"))throw new Error(wt.NODE_ENV==="production"?i2(7):"each enhancer provided to configureStore must be a function");wt.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const v=Q(...p);return sE(T,i,v)}function NE(e){const t={},r=[];let s;const o={addCase(a,i){if(wt.NODE_ENV!=="production"){if(r.length>0)throw new Error(wt.NODE_ENV==="production"?i2(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(s)throw new Error(wt.NODE_ENV==="production"?i2(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(wt.NODE_ENV==="production"?i2(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(wt.NODE_ENV==="production"?i2(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=i,o},addMatcher(a,i){if(wt.NODE_ENV!=="production"&&s)throw new Error(wt.NODE_ENV==="production"?i2(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(wt.NODE_ENV!=="production"&&s)throw new Error(wt.NODE_ENV==="production"?i2(31):"`builder.addDefaultCase` can only be called once");return s=a,o}};return e(o),[t,r,s]}function MF(e){return typeof e=="function"}function SF(e,t){if(wt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(wt.NODE_ENV==="production"?i2(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,s,o]=NE(t),a;if(MF(e))a=()=>CE(e());else{const l=CE(e);a=()=>l}function i(l=a(),T){let u=[r[T.type],...s.filter(({matcher:Q})=>Q(T)).map(({reducer:Q})=>Q)];return u.filter(Q=>!!Q).length===0&&(u=[o]),u.reduce((Q,f)=>{if(f)if(y7(Q)){const p=f(Q,T);return p===void 0?Q:p}else{if(S0(Q))return xE(Q,h=>f(h,T));{const h=f(Q,T);if(h===void 0){if(Q===null)return Q;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return Q},l)}return i.getInitialState=a,i}var _F=Symbol.for("rtk-slice-createasyncthunk");function AF(e,t){return`${e}/${t}`}function OF({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[_F];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(wt.NODE_ENV==="production"?i2(11):"`name` is a required option for createSlice");typeof process<"u"&&wt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof o.reducers=="function"?o.reducers(wF()):o.reducers)||{},T=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},Q={addCase(C,E){const _=typeof C=="string"?C:C.type;if(!_)throw new Error(wt.NODE_ENV==="production"?i2(12):"`context.addCase` cannot be called with an empty action type");if(_ in u.sliceCaseReducersByType)throw new Error(wt.NODE_ENV==="production"?i2(13):"`context.addCase` cannot be called with two reducers for the same action type: "+_);return u.sliceCaseReducersByType[_]=E,Q},addMatcher(C,E){return u.sliceMatchers.push({matcher:C,reducer:E}),Q},exposeAction(C,E){return u.actionCreators[C]=E,Q},exposeCaseReducer(C,E){return u.sliceCaseReducersByName[C]=E,Q}};T.forEach(C=>{const E=l[C],_={reducerName:C,type:AF(a,C),createNotation:typeof o.reducers=="function"};DF(E)?kF(_,E,Q,t):VF(_,E,Q)});function f(){if(wt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(wt.NODE_ENV==="production"?i2(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[C={},E=[],_=void 0]=typeof o.extraReducers=="function"?NE(o.extraReducers):[o.extraReducers],V={...C,...u.sliceCaseReducersByType};return SF(o.initialState,k=>{for(let B in V)k.addCase(B,V[B]);for(let B of u.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of E)k.addMatcher(B.matcher,B.reducer);_&&k.addDefaultCase(_)})}const h=C=>C,p=new Map,v=new WeakMap;let g;function H(C,E){return g||(g=f()),g(C,E)}function L(){return g||(g=f()),g.getInitialState()}function M(C,E=!1){function _(k){let B=k[C];if(typeof B>"u"){if(E)B=Ap(v,_,L);else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?i2(15):"selectSlice returned undefined for an uninjected slice reducer")}return B}function V(k=h){const B=Ap(p,E,()=>new WeakMap);return Ap(B,k,()=>{const R={};for(const[F,q]of Object.entries(o.selectors??{}))R[F]=CF(q,k,()=>Ap(v,k,L),E);return R})}return{reducerPath:C,getSelectors:V,get selectors(){return V(_)},selectSlice:_}}const A={name:a,reducer:H,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:L,...M(i),injectInto(C,{reducerPath:E,..._}={}){const V=E??i;return C.inject({reducerPath:V,reducer:H},_),{...A,...M(V,!0)}}};return A}}function CF(e,t,r,s){function o(a,...i){let l=t(a);if(typeof l>"u"){if(s)l=r();else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?i2(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...i)}return o.unwrapped=e,o}var L7=OF();function wF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function VF({type:e,reducerName:t,createNotation:r},s,o){let a,i;if("reducer"in s){if(r&&!RF(s))throw new Error(wt.NODE_ENV==="production"?i2(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=s.reducer,i=s.prepare}else a=s;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?_E(e,i):_E(e))}function DF(e){return e._reducerDefinitionType==="asyncThunk"}function RF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kF({type:e,reducerName:t},r,s,o){if(!o)throw new Error(wt.NODE_ENV==="production"?i2(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:l,rejected:T,settled:u,options:Q}=r,f=o(e,a,Q);s.exposeAction(t,f),i&&s.addCase(f.fulfilled,i),l&&s.addCase(f.pending,l),T&&s.addCase(f.rejected,T),u&&s.addMatcher(f.settled,u),s.exposeCaseReducer(t,{fulfilled:i||Cp,pending:l||Cp,rejected:T||Cp,settled:u||Cp})}function Cp(){}function i2(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class x7{constructor(t){le(this,"store");le(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const BE={value:"",index:-1},PE=L7({name:"braille",initialState:BE,reducers:{update(e,t){return t.payload},reset(){return BE}}}),{update:NF,reset:BF}=PE.actions;class PF extends x7{constructor(r,s){super(r);le(this,"brailleService");this.brailleService=s,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(BF())}registerListener(){this.disposables.push(this.brailleService.onChange(r=>{this.store.dispatch(NF(r))}))}get state(){return this.store.getState().braille}moveToIndex(r){this.brailleService.moveToIndex(r)}update(r){this.brailleService.update(r)}toggle(r){this.brailleService.toggle(r)}}const jF=PE.reducer,jE={messages:[]},IE=L7({name:"chat",initialState:jE,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS"})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const r=e.messages.find(s=>s.model===t.payload.model&&s.timestamp===t.payload.timestamp);r&&(r.text=t.payload.data,r.status="SUCCESS")},updateError:(e,t)=>{const r=e.messages.find(s=>s.model===t.payload.model&&s.timestamp===t.payload.timestamp);r&&(r.text=`Error: ${t.payload.error}`,r.status="FAILED")},reset(){return jE}}}),{addUserMessage:IF,addSystemMessage:FF,addPendingResponse:zF,updateResponse:qF,updateError:FE,reset:$F}=IE.actions;class UF extends x7{constructor(r,s,o){super(r);le(this,"chatService");le(this,"audioService");this.chatService=s,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch($F())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:r}=this.snapshot.settings;return Object.values(r.models).some(s=>s.enabled)}toggle(){this.chatService.toggle()}loadInitialMessage(){const r=new Date().toISOString(),s=this.canSend?"Welcome to the Chart Assistant. You can ask questions about the chart and get AI-powered responses.":"No agents are enabled. Please enable at least one agent in the settings page.";this.store.dispatch(FF({text:s,timestamp:r}))}async sendMessage(r){const{llm:s}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(IF({text:r,timestamp:o}));const a=Object.keys(s.models).filter(i=>s.models[i].enabled);await Promise.all(a.map(async i=>{const l=this.audioService.playWaitingTone();try{this.store.dispatch(zF({model:i,timestamp:o}));const T=s.models[i],u=await this.chatService.sendMessage(i,{message:r,customInstruction:s.customInstruction,expertise:s.customExpertise??s.expertiseLevel,apiKey:T.apiKey});this.audioService.stop(l),u.error?this.store.dispatch(FE({model:i,error:u.error,timestamp:o})):(this.store.dispatch(qF({model:i,data:u.data,timestamp:o})),this.audioService.playCompleteTone())}catch(T){this.audioService.stop(l),this.store.dispatch(FE({model:i,error:T instanceof Error?T.message:"Error processing request",timestamp:o}))}}))}}const GF=IE.reducer,zE={focus:null},qE=L7({name:"display",initialState:zE,reducers:{update(e,t){e.focus=t.payload},reset(){return zE}}}),{update:ZF,reset:XF}=qE.actions;class WF extends x7{constructor(r,s){super(r);le(this,"displayService");this.displayService=s,this.registerListeners()}dispose(){super.dispose(),this.store.dispatch(XF())}registerListeners(){this.disposables.push(this.displayService.onChange(r=>{this.store.dispatch(ZF(r.value))}))}get state(){return this.store.getState().display}}const YF=qE.reducer,$E={items:[]},UE=L7({name:"help",initialState:$E,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return $E}}}),{setHelpItems:KF,reset:JF}=UE.actions;class ez extends x7{constructor(r,s){super(r);le(this,"helpService");this.helpService=s}toggle(){const r=this.helpService.getMenuItems();this.store.dispatch(KF(r)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(JF())}get state(){return this.store.getState().help}}const tz=UE.reducer,GE={value:""},ZE=L7({name:"review",initialState:GE,reducers:{update(e,t){e.value=t.payload},reset(){return GE}}}),{update:nz,reset:rz}=ZE.actions;class iz extends x7{constructor(r,s){super(r);le(this,"reviewService");this.reviewService=s,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(rz())}registerListener(){this.disposables.push(this.reviewService.onChange(r=>{this.store.dispatch(nz(r.value))}))}get state(){return this.store.getState().review}toggle(r){this.reviewService.toggle(r)}}const az=ZE.reducer,XE={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{GPT:{enabled:!1,apiKey:"",name:"GPT",version:"gpt-4o"},CLAUDE:{enabled:!1,apiKey:"",name:"Claude",version:"claude-3-7-sonnet-latest"},GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}},WE=L7({name:"settings",initialState:XE,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>XE}}),{update:Vg,reset:oz}=WE.actions;class lz extends x7{constructor(r,s){super(r);le(this,"settingsService");this.settingsService=s,this.load()}dispose(){super.dispose(),this.store.dispatch(oz())}get state(){return this.store.getState().settings}load(){const r=this.settingsService.loadSettings();this.store.dispatch(Vg(r))}saveAndClose(r){this.settingsService.saveSettings(r),this.store.dispatch(Vg(r)),this.toggle()}reset(){const r=this.settingsService.resetSettings();this.store.dispatch(Vg(r))}toggle(){this.settingsService.toggle()}}const sz=WE.reducer,YE={enabled:!0,announce:!0,value:"",message:null},KE=L7({name:"text",initialState:YE,reducers:{update(e,t){e.message=null,e.value=t.payload},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},reset(){return YE}}}),{update:uz,announceText:cz,toggle:Tz,notify:Qz,reset:fz}=KE.actions;class dz extends x7{constructor(r,s,o,a){super(r);le(this,"textService");this.textService=s,this.registerListeners(o,a)}dispose(){super.dispose(),this.store.dispatch(fz())}registerListeners(r,s){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(r.onChange(o=>{this.notify(o.value)})),this.disposables.push(s.onChange(o=>{switch(o.type){case"start":this.setAriaAnnouncement(!1);break;case"stop":this.setAriaAnnouncement(!0);break}}))}get state(){return this.store.getState().text}toggle(){const r=this.textService.toggle();this.store.dispatch(Tz(r))}update(r){const s=this.textService.format(r);this.store.dispatch(uz(s))}notify(r){this.store.dispatch(Qz(r))}setAriaAnnouncement(r){this.store.dispatch(cz(r))}}const hz=KE.reducer,Da=EF({reducer:{braille:jF,chat:GF,display:YF,help:tz,review:az,settings:sz,text:hz}}),pz=()=>{const e=ae.useId(),t=Sc("braille"),{value:r,index:s}=d9("braille"),o=ae.useRef(null),a=ae.useRef(s),i=l=>{const T=l.target,u=T.selectionStart;if(u>=r.length){T.setSelectionRange(a.current,a.current);return}u!==a.current&&(a.current=u,t.moveToIndex(u))};return ae.useEffect(()=>{const l=o.current;if(l)return l.addEventListener(g4.SELECTION_CHANGE,i),()=>{l.removeEventListener(g4.SELECTION_CHANGE,i)}},[]),ae.useEffect(()=>{const l=o.current;l&&(l.value=r,l.selectionStart=s,l.selectionEnd=s,l.focus(),a.current=s)},[r,s]),_e.createElement("div",{id:e},_e.createElement("textarea",{id:`${xe.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:r,autoCapitalize:"off",rows:5,cols:50}))},JE=e=>e,eM=(()=>{let e=JE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=JE}}})();function Hr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(s=>r.searchParams.append("args[]",s)),`Minified MUI error #${e}; visit ${r} for the full message.`}var mz={};function st(e){if(typeof e!="string")throw new Error(mz.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dg(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}var wp={exports:{}},Vp={exports:{}},O1={};/** @license React v16.13.1
|
|
81
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),g.warnIfExceeded()),v}}}function Op(e){return typeof e=="boolean"}var LF=()=>function(t){const{thunk:r=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:a=!0}=t??{};let i=new OE;if(r&&(Op(r)?i.push(cF):i.push(TF(r.extraArgument))),wt.NODE_ENV!=="production"){if(s){let l={};Op(s)||(l=s),i.unshift(vF(l))}if(o){let l={};Op(o)||(l=o),i.push(gF(l))}if(a){let l={};Op(a)||(l=a),i.unshift(pF(l))}}return i},xF="RTK_autoBatch",kE=e=>t=>{setTimeout(t,e)},bF=(e={type:"raf"})=>t=>(...r)=>{const s=t(...r);let o=!0,a=!1,i=!1;const l=new Set,T=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kE(10):e.type==="callback"?e.queueNotification:kE(e.timeout),u=()=>{i=!1,a&&(a=!1,l.forEach(Q=>Q()))};return Object.assign({},s,{subscribe(Q){const f=()=>o&&Q(),h=s.subscribe(f);return l.add(Q),()=>{h(),l.delete(Q)}},dispatch(Q){var f;try{return o=!((f=Q==null?void 0:Q.meta)!=null&&f[xF]),a=!o,a&&(i||(i=!0,T(u))),s.dispatch(Q)}finally{o=!0}}})},HF=e=>function(r){const{autoBatch:s=!0}=r??{};let o=new OE(e);return s&&o.push(bF(typeof s=="object"?s:void 0)),o};function EF(e){const t=LF(),{reducer:r=void 0,middleware:s,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let T;if(typeof r=="function")T=r;else if(_c(r))T=kI(r);else throw new Error(wt.NODE_ENV==="production"?i2(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(wt.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(wt.NODE_ENV==="production"?i2(2):"`middleware` field must be a callback");let u;if(typeof s=="function"){if(u=s(t),wt.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(wt.NODE_ENV==="production"?i2(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(wt.NODE_ENV!=="production"&&u.some(g=>typeof g!="function"))throw new Error(wt.NODE_ENV==="production"?i2(4):"each middleware provided to configureStore must be a function");if(wt.NODE_ENV!=="production"&&a){let g=new Set;u.forEach(H=>{if(g.has(H))throw new Error(wt.NODE_ENV==="production"?i2(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");g.add(H)})}let Q=gp;o&&(Q=QF({trace:wt.NODE_ENV!=="production",...typeof o=="object"&&o}));const f=NI(...u),h=HF(f);if(wt.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(wt.NODE_ENV==="production"?i2(5):"`enhancers` field must be a callback");let p=typeof l=="function"?l(h):h();if(wt.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(wt.NODE_ENV==="production"?i2(6):"`enhancers` callback must return an array");if(wt.NODE_ENV!=="production"&&p.some(g=>typeof g!="function"))throw new Error(wt.NODE_ENV==="production"?i2(7):"each enhancer provided to configureStore must be a function");wt.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const v=Q(...p);return sE(T,i,v)}function NE(e){const t={},r=[];let s;const o={addCase(a,i){if(wt.NODE_ENV!=="production"){if(r.length>0)throw new Error(wt.NODE_ENV==="production"?i2(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(s)throw new Error(wt.NODE_ENV==="production"?i2(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(wt.NODE_ENV==="production"?i2(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(wt.NODE_ENV==="production"?i2(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=i,o},addMatcher(a,i){if(wt.NODE_ENV!=="production"&&s)throw new Error(wt.NODE_ENV==="production"?i2(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:i}),o},addDefaultCase(a){if(wt.NODE_ENV!=="production"&&s)throw new Error(wt.NODE_ENV==="production"?i2(31):"`builder.addDefaultCase` can only be called once");return s=a,o}};return e(o),[t,r,s]}function MF(e){return typeof e=="function"}function SF(e,t){if(wt.NODE_ENV!=="production"&&typeof t=="object")throw new Error(wt.NODE_ENV==="production"?i2(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,s,o]=NE(t),a;if(MF(e))a=()=>CE(e());else{const l=CE(e);a=()=>l}function i(l=a(),T){let u=[r[T.type],...s.filter(({matcher:Q})=>Q(T)).map(({reducer:Q})=>Q)];return u.filter(Q=>!!Q).length===0&&(u=[o]),u.reduce((Q,f)=>{if(f)if(y7(Q)){const p=f(Q,T);return p===void 0?Q:p}else{if(S0(Q))return xE(Q,h=>f(h,T));{const h=f(Q,T);if(h===void 0){if(Q===null)return Q;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return Q},l)}return i.getInitialState=a,i}var _F=Symbol.for("rtk-slice-createasyncthunk");function AF(e,t){return`${e}/${t}`}function OF({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[_F];return function(o){const{name:a,reducerPath:i=a}=o;if(!a)throw new Error(wt.NODE_ENV==="production"?i2(11):"`name` is a required option for createSlice");typeof process<"u"&&wt.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof o.reducers=="function"?o.reducers(wF()):o.reducers)||{},T=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},Q={addCase(C,E){const _=typeof C=="string"?C:C.type;if(!_)throw new Error(wt.NODE_ENV==="production"?i2(12):"`context.addCase` cannot be called with an empty action type");if(_ in u.sliceCaseReducersByType)throw new Error(wt.NODE_ENV==="production"?i2(13):"`context.addCase` cannot be called with two reducers for the same action type: "+_);return u.sliceCaseReducersByType[_]=E,Q},addMatcher(C,E){return u.sliceMatchers.push({matcher:C,reducer:E}),Q},exposeAction(C,E){return u.actionCreators[C]=E,Q},exposeCaseReducer(C,E){return u.sliceCaseReducersByName[C]=E,Q}};T.forEach(C=>{const E=l[C],_={reducerName:C,type:AF(a,C),createNotation:typeof o.reducers=="function"};DF(E)?kF(_,E,Q,t):VF(_,E,Q)});function f(){if(wt.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(wt.NODE_ENV==="production"?i2(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[C={},E=[],_=void 0]=typeof o.extraReducers=="function"?NE(o.extraReducers):[o.extraReducers],V={...C,...u.sliceCaseReducersByType};return SF(o.initialState,k=>{for(let B in V)k.addCase(B,V[B]);for(let B of u.sliceMatchers)k.addMatcher(B.matcher,B.reducer);for(let B of E)k.addMatcher(B.matcher,B.reducer);_&&k.addDefaultCase(_)})}const h=C=>C,p=new Map,v=new WeakMap;let g;function H(C,E){return g||(g=f()),g(C,E)}function L(){return g||(g=f()),g.getInitialState()}function M(C,E=!1){function _(k){let B=k[C];if(typeof B>"u"){if(E)B=Ap(v,_,L);else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?i2(15):"selectSlice returned undefined for an uninjected slice reducer")}return B}function V(k=h){const B=Ap(p,E,()=>new WeakMap);return Ap(B,k,()=>{const R={};for(const[F,q]of Object.entries(o.selectors??{}))R[F]=CF(q,k,()=>Ap(v,k,L),E);return R})}return{reducerPath:C,getSelectors:V,get selectors(){return V(_)},selectSlice:_}}const A={name:a,reducer:H,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:L,...M(i),injectInto(C,{reducerPath:E,..._}={}){const V=E??i;return C.inject({reducerPath:V,reducer:H},_),{...A,...M(V,!0)}}};return A}}function CF(e,t,r,s){function o(a,...i){let l=t(a);if(typeof l>"u"){if(s)l=r();else if(wt.NODE_ENV!=="production")throw new Error(wt.NODE_ENV==="production"?i2(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...i)}return o.unwrapped=e,o}var L7=OF();function wF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function VF({type:e,reducerName:t,createNotation:r},s,o){let a,i;if("reducer"in s){if(r&&!RF(s))throw new Error(wt.NODE_ENV==="production"?i2(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=s.reducer,i=s.prepare}else a=s;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?_E(e,i):_E(e))}function DF(e){return e._reducerDefinitionType==="asyncThunk"}function RF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kF({type:e,reducerName:t},r,s,o){if(!o)throw new Error(wt.NODE_ENV==="production"?i2(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:i,pending:l,rejected:T,settled:u,options:Q}=r,f=o(e,a,Q);s.exposeAction(t,f),i&&s.addCase(f.fulfilled,i),l&&s.addCase(f.pending,l),T&&s.addCase(f.rejected,T),u&&s.addMatcher(f.settled,u),s.exposeCaseReducer(t,{fulfilled:i||Cp,pending:l||Cp,rejected:T||Cp,settled:u||Cp})}function Cp(){}function i2(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}class x7{constructor(t){oe(this,"store");oe(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const BE={value:"",index:-1},PE=L7({name:"braille",initialState:BE,reducers:{update(e,t){return t.payload},reset(){return BE}}}),{update:NF,reset:BF}=PE.actions;class PF extends x7{constructor(r,s){super(r);oe(this,"brailleService");this.brailleService=s,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(BF())}registerListener(){this.disposables.push(this.brailleService.onChange(r=>{this.store.dispatch(NF(r))}))}get state(){return this.store.getState().braille}moveToIndex(r){this.brailleService.moveToIndex(r)}update(r){this.brailleService.update(r)}toggle(r){this.brailleService.toggle(r)}}const jF=PE.reducer,jE={messages:[]},IE=L7({name:"chat",initialState:jE,reducers:{addUserMessage:(e,t)=>{e.messages.push({id:`msg-${Date.now()}`,text:t.payload.text,isUser:!0,timestamp:t.payload.timestamp,status:"SUCCESS"})},addSystemMessage:(e,t)=>{e.messages.push({id:`system-${Date.now()}`,text:t.payload.text,isUser:!1,timestamp:t.payload.timestamp,status:"SUCCESS"})},addPendingResponse:(e,t)=>{e.messages.push({id:`resp-${Date.now()}-${t.payload.model}`,text:"Processing request...",isUser:!1,model:t.payload.model,timestamp:t.payload.timestamp,status:"PENDING"})},updateResponse:(e,t)=>{const r=e.messages.find(s=>s.model===t.payload.model&&s.timestamp===t.payload.timestamp);r&&(r.text=t.payload.data,r.status="SUCCESS")},updateError:(e,t)=>{const r=e.messages.find(s=>s.model===t.payload.model&&s.timestamp===t.payload.timestamp);r&&(r.text=`Error: ${t.payload.error}`,r.status="FAILED")},reset(){return jE}}}),{addUserMessage:IF,addSystemMessage:FF,addPendingResponse:zF,updateResponse:qF,updateError:FE,reset:$F}=IE.actions;class UF extends x7{constructor(r,s,o){super(r);oe(this,"chatService");oe(this,"audioService");this.chatService=s,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch($F())}get state(){return this.snapshot.chat}get snapshot(){return this.store.getState()}get canSend(){const{llm:r}=this.snapshot.settings;return Object.values(r.models).some(s=>s.enabled)}toggle(){this.chatService.toggle()}loadInitialMessage(){const r=new Date().toISOString(),s=this.canSend?"Welcome to the Chart Assistant. You can ask questions about the chart and get AI-powered responses.":"No agents are enabled. Please enable at least one agent in the settings page.";this.store.dispatch(FF({text:s,timestamp:r}))}async sendMessage(r){const{llm:s}=this.snapshot.settings,o=new Date().toISOString();this.store.dispatch(IF({text:r,timestamp:o}));const a=Object.keys(s.models).filter(i=>s.models[i].enabled);await Promise.all(a.map(async i=>{const l=this.audioService.playWaitingTone();try{this.store.dispatch(zF({model:i,timestamp:o}));const T=s.models[i],u=await this.chatService.sendMessage(i,{message:r,customInstruction:s.customInstruction,expertise:s.customExpertise??s.expertiseLevel,apiKey:T.apiKey});this.audioService.stop(l),u.error?this.store.dispatch(FE({model:i,error:u.error,timestamp:o})):(this.store.dispatch(qF({model:i,data:u.data,timestamp:o})),this.audioService.playCompleteTone())}catch(T){this.audioService.stop(l),this.store.dispatch(FE({model:i,error:T instanceof Error?T.message:"Error processing request",timestamp:o}))}}))}}const GF=IE.reducer,zE={focus:null},qE=L7({name:"display",initialState:zE,reducers:{update(e,t){e.focus=t.payload},reset(){return zE}}}),{update:ZF,reset:XF}=qE.actions;class WF extends x7{constructor(r,s){super(r);oe(this,"displayService");this.displayService=s,this.registerListeners()}dispose(){super.dispose(),this.store.dispatch(XF())}registerListeners(){this.disposables.push(this.displayService.onChange(r=>{this.store.dispatch(ZF(r.value))}))}get state(){return this.store.getState().display}}const YF=qE.reducer,$E={items:[]},UE=L7({name:"help",initialState:$E,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return $E}}}),{setHelpItems:KF,reset:JF}=UE.actions;class ez extends x7{constructor(r,s){super(r);oe(this,"helpService");this.helpService=s}toggle(){const r=this.helpService.getMenuItems();this.store.dispatch(KF(r)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(JF())}get state(){return this.store.getState().help}}const tz=UE.reducer,GE={value:""},ZE=L7({name:"review",initialState:GE,reducers:{update(e,t){e.value=t.payload},reset(){return GE}}}),{update:nz,reset:rz}=ZE.actions;class iz extends x7{constructor(r,s){super(r);oe(this,"reviewService");this.reviewService=s,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(rz())}registerListener(){this.disposables.push(this.reviewService.onChange(r=>{this.store.dispatch(nz(r.value))}))}get state(){return this.store.getState().review}toggle(r){this.reviewService.toggle(r)}}const az=ZE.reducer,XE={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{GPT:{enabled:!1,apiKey:"",name:"GPT",version:"gpt-4o"},CLAUDE:{enabled:!1,apiKey:"",name:"Claude",version:"claude-3-7-sonnet-latest"},GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}},WE=L7({name:"settings",initialState:XE,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>XE}}),{update:Vg,reset:oz}=WE.actions;class lz extends x7{constructor(r,s){super(r);oe(this,"settingsService");this.settingsService=s,this.load()}dispose(){super.dispose(),this.store.dispatch(oz())}get state(){return this.store.getState().settings}load(){const r=this.settingsService.loadSettings();this.store.dispatch(Vg(r))}saveAndClose(r){this.settingsService.saveSettings(r),this.store.dispatch(Vg(r)),this.toggle()}reset(){const r=this.settingsService.resetSettings();this.store.dispatch(Vg(r))}toggle(){this.settingsService.toggle()}}const sz=WE.reducer,YE={enabled:!0,announce:!0,value:"",message:null},KE=L7({name:"text",initialState:YE,reducers:{update(e,t){e.message=null,e.value=t.payload},announceText(e,t){e.announce=t.payload},toggle(e,t){e.enabled=t.payload},notify(e,t){e.message=t.payload},reset(){return YE}}}),{update:uz,announceText:cz,toggle:Tz,notify:Qz,reset:fz}=KE.actions;class dz extends x7{constructor(r,s,o,a){super(r);oe(this,"textService");this.textService=s,this.registerListeners(o,a)}dispose(){super.dispose(),this.store.dispatch(fz())}registerListeners(r,s){this.disposables.push(this.textService.onChange(o=>{this.update(o.value)})),this.disposables.push(r.onChange(o=>{this.notify(o.value)})),this.disposables.push(s.onChange(o=>{switch(o.type){case"start":this.setAriaAnnouncement(!1);break;case"stop":this.setAriaAnnouncement(!0);break}}))}get state(){return this.store.getState().text}toggle(){const r=this.textService.toggle();this.store.dispatch(Tz(r))}update(r){const s=this.textService.format(r);this.store.dispatch(uz(s))}notify(r){this.store.dispatch(Qz(r))}setAriaAnnouncement(r){this.store.dispatch(cz(r))}}const hz=KE.reducer,Da=EF({reducer:{braille:jF,chat:GF,display:YF,help:tz,review:az,settings:sz,text:hz}}),pz=()=>{const e=ae.useId(),t=Sc("braille"),{value:r,index:s}=d9("braille"),o=ae.useRef(null),a=ae.useRef(s),i=l=>{const T=l.target,u=T.selectionStart;if(u>=r.length){T.setSelectionRange(a.current,a.current);return}u!==a.current&&(a.current=u,t.moveToIndex(u))};return ae.useEffect(()=>{const l=o.current;if(l)return l.addEventListener(g4.SELECTION_CHANGE,i),()=>{l.removeEventListener(g4.SELECTION_CHANGE,i)}},[]),ae.useEffect(()=>{const l=o.current;l&&(l.value=r,l.selectionStart=s,l.selectionEnd=s,l.focus(),a.current=s)},[r,s]),_e.createElement("div",{id:e},_e.createElement("textarea",{id:`${xe.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:r,autoCapitalize:"off",rows:5,cols:50}))},JE=e=>e,eM=(()=>{let e=JE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=JE}}})();function Hr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(s=>r.searchParams.append("args[]",s)),`Minified MUI error #${e}; visit ${r} for the full message.`}var mz={};function st(e){if(typeof e!="string")throw new Error(mz.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dg(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}var wp={exports:{}},Vp={exports:{}},O1={};/** @license React v16.13.1
|
|
82
82
|
* react-is.production.min.js
|
|
83
83
|
*
|
|
84
84
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -203,9 +203,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
203
203
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
204
204
|
2. You might be breaking the Rules of Hooks
|
|
205
205
|
3. You might have more than one copy of React in the same app
|
|
206
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var T=wa(),u={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},Q=Symbol.for("react.portal"),f=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),G3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,G3.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error("Target container is not a DOM element.");return s(h,p,null,v)},G3.flushSync=function(h){var p=f.T,v=u.p;try{if(f.T=null,u.p=2,h)return h()}finally{f.T=p,u.p=v,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},G3.preconnect=function(h,p){typeof h=="string"&&h?p!=null&&typeof p!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(p)):p!=null&&typeof p.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(p.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h)),typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(h,p))},G3.prefetchDNS=function(h){if(typeof h!="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h));else if(1<arguments.length){var p=arguments[1];typeof p=="object"&&p.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(p)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(p))}typeof h=="string"&&u.d.D(h)},G3.preinit=function(h,p){if(typeof h=="string"&&h?p==null||typeof p!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(p)):p.as!=="style"&&p.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(p.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h)),typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,g=o(v,p.crossOrigin),H=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:H,fetchPriority:L}):v==="script"&&u.d.X(h,{crossOrigin:g,integrity:H,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},G3.preinitModule=function(h,p){var v="";if(typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p!==void 0&&typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":p&&"as"in p&&p.as!=="script"&&(v+=" The `as` option encountered was "+i(p.as)+"."),v)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",v);else switch(v=p&&typeof p.as=="string"?p.as:"script",v){case"script":break;default:v=i(v),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',v,h)}typeof h=="string"&&(typeof p=="object"&&p!==null?(p.as==null||p.as==="script")&&(v=o(p.as,p.crossOrigin),u.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})):p==null&&u.d.M(h))},G3.preload=function(h,p){var v="";if(typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p==null||typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":typeof p.as=="string"&&p.as||(v+=" The `as` option encountered was "+a(p.as)+"."),v&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',v),typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){v=p.as;var g=o(v,p.crossOrigin);u.d.L(h,v,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},G3.preloadModule=function(h,p){var v="";typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p!==void 0&&typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":p&&"as"in p&&typeof p.as!="string"&&(v+=" The `as` option encountered was "+a(p.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',v),typeof h=="string"&&(p?(v=o(p.as,p.crossOrigin),u.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})):u.d.m(h))},G3.requestFormReset=function(h){u.d.r(h)},G3.unstable_batchedUpdates=function(h,p){return h(p)},G3.useFormState=function(h,p,v){return l().useFormState(h,p,v)},G3.useFormStatus=function(){return l().useHostTransitionStatus()},G3.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),G3}var IS;function mL(){if(IS)return hm.exports;IS=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}}return e.NODE_ENV==="production"?(t(),hm.exports=BG()):hm.exports=PG(),hm.exports}var FS=mL();const pm=Hc(FS),zS={disabled:!1};var qS={},jG=qS.NODE_ENV!=="production"?S.oneOfType([S.number,S.shape({enter:S.number,exit:S.number,appear:S.number}).isRequired]):null;qS.NODE_ENV!=="production"&&S.oneOfType([S.string,S.shape({enter:S.string,exit:S.string,active:S.string}),S.shape({enter:S.string,enterDone:S.string,enterActive:S.string,exit:S.string,exitDone:S.string,exitActive:S.string})]);const mm=_e.createContext(null);var IG=function(t){return t.scrollTop},FG={},Jc="unmounted",E7="exited",M7="entering",V9="entered",yL="exiting",Cr=function(e){BS(t,e);function t(s,o){var a;a=e.call(this,s,o)||this;var i=o,l=i&&!i.isMounting?s.enter:s.appear,T;return a.appearStatus=null,s.in?l?(T=E7,a.appearStatus=M7):T=V9:s.unmountOnExit||s.mountOnEnter?T=Jc:T=E7,a.state={status:T},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Jc?{status:E7}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==M7&&i!==V9&&(a=M7):(i===M7||i===V9)&&(a=yL)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===M7){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:pm.findDOMNode(this);i&&IG(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===E7&&this.setState({status:Jc})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,T=this.props.nodeRef?[l]:[pm.findDOMNode(this),l],u=T[0],Q=T[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!i||zS.disabled){this.safeSetState({status:V9},function(){a.props.onEntered(u)});return}this.props.onEnter(u,Q),this.safeSetState({status:M7},function(){a.props.onEntering(u,Q),a.onTransitionEnd(h,function(){a.safeSetState({status:V9},function(){a.props.onEntered(u,Q)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:pm.findDOMNode(this);if(!a||zS.disabled){this.safeSetState({status:E7},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:yL},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:E7},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:pm.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var T=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=T[0],Q=T[1];this.props.addEndListener(u,Q)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Jc)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=NS(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _e.createElement(mm.Provider,{value:null},typeof i=="function"?i(o,l):_e.cloneElement(_e.Children.only(i),l))},t}(_e.Component);Cr.contextType=mm,Cr.propTypes=FG.NODE_ENV!=="production"?{nodeRef:S.shape({current:typeof Element>"u"?S.any:function(e,t,r,s,o,a){var i=e[t];return S.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,s,o,a)}}),children:S.oneOfType([S.func.isRequired,S.element.isRequired]).isRequired,in:S.bool,mountOnEnter:S.bool,unmountOnExit:S.bool,appear:S.bool,enter:S.bool,exit:S.bool,timeout:function(t){var r=jG;t.addEndListener||(r=r.isRequired);for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:S.func,onEnter:S.func,onEntering:S.func,onEntered:S.func,onExit:S.func,onExiting:S.func,onExited:S.func}:{};function D9(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:D9,onEntering:D9,onEntered:D9,onExit:D9,onExiting:D9,onExited:D9},Cr.UNMOUNTED=Jc,Cr.EXITED=E7,Cr.ENTERING=M7,Cr.ENTERED=V9,Cr.EXITING=yL;function zG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vL(e,t){var r=function(a){return t&&ae.isValidElement(a)?t(a):a},s=Object.create(null);return e&&ae.Children.map(e,function(o){return o}).forEach(function(o){s[o.key]=r(o)}),s}function qG(e,t){e=e||{},t=t||{};function r(Q){return Q in t?t[Q]:e[Q]}var s=Object.create(null),o=[];for(var a in e)a in t?o.length&&(s[a]=o,o=[]):o.push(a);var i,l={};for(var T in t){if(s[T])for(i=0;i<s[T].length;i++){var u=s[T][i];l[s[T][i]]=r(u)}l[T]=r(T)}for(i=0;i<o.length;i++)l[o[i]]=r(o[i]);return l}function S7(e,t,r){return r[t]!=null?r[t]:e.props[t]}function $G(e,t){return vL(e.children,function(r){return ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:S7(r,"appear",e),enter:S7(r,"enter",e),exit:S7(r,"exit",e)})})}function UG(e,t,r){var s=vL(e.children),o=qG(t,s);return Object.keys(o).forEach(function(a){var i=o[a];if(ae.isValidElement(i)){var l=a in t,T=a in s,u=t[a],Q=ae.isValidElement(u)&&!u.props.in;T&&(!l||Q)?o[a]=ae.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:S7(i,"exit",e),enter:S7(i,"enter",e)}):!T&&l&&!Q?o[a]=ae.cloneElement(i,{in:!1}):T&&l&&ae.isValidElement(u)&&(o[a]=ae.cloneElement(i,{onExited:r.bind(null,i),in:u.props.in,exit:S7(i,"exit",e),enter:S7(i,"enter",e)}))}}),o}var GG={},ZG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},XG={component:"div",childFactory:function(t){return t}},gL=function(e){BS(t,e);function t(s,o){var a;a=e.call(this,s,o)||this;var i=a.handleExited.bind(zG(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,l=a.handleExited,T=a.firstRender;return{children:T?$G(o,l):UG(o,i,l),firstRender:!1}},r.handleExited=function(o,a){var i=vL(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var T=$p({},l.children);return delete T[o.key],{children:T}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=NS(o,["component","childFactory"]),T=this.state.contextValue,u=ZG(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?_e.createElement(mm.Provider,{value:T},u):_e.createElement(mm.Provider,{value:T},_e.createElement(a,l,u))},t}(_e.Component);gL.propTypes=GG.NODE_ENV!=="production"?{component:S.any,children:S.node,appear:S.bool,enter:S.bool,exit:S.bool,childFactory:S.func}:{},gL.defaultProps=XG;const $S={};function US(e,t){const r=ae.useRef($S);return r.current===$S&&(r.current=e(t)),r}const WG=[];function YG(e){ae.useEffect(e,WG)}class LL{constructor(){le(this,"currentId",null);le(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});le(this,"disposeEffect",()=>this.clear)}static create(){return new LL}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function GS(){const e=US(LL.create).current;return YG(e.disposeEffect),e}function KG(e){const{prototype:t={}}=e;return!!t.isReactComponent}function JG(e,t,r,s,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!KG(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${s} \`${i}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xL=V0(S.elementType,JG),ZS=e=>e.scrollTop;function ym(e,t){const{timeout:r,easing:s,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof s=="object"?s[t.mode]:s),delay:o.transitionDelay}}var eZ={};function tZ(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function XS(e,t,r,s){const o=e[t];if(o==null||!Number.isInteger(o)){const a=tZ(o);return new RangeError(`Invalid ${s} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function WS(e,t,r,s){return e[t]===void 0?null:XS(e,t,r,s)}function bL(){return null}WS.isRequired=XS,bL.isRequired=bL;const YS=eZ.NODE_ENV==="production"?bL:WS;function nZ(e){return Yt("MuiPaper",e)}Zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var KS={};const rZ=e=>{const{square:t,elevation:r,variant:s,classes:o}=e,a={root:["root",s,!t&&"rounded",s==="elevation"&&`elevation${r}`]};return t1(a,nZ,o)},iZ=tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})($t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vm=ae.forwardRef(function(t,r){var p;const s=s1({props:t,name:"MuiPaper"}),o=C9(),{className:a,component:i="div",elevation:l=1,square:T=!1,variant:u="elevation",...Q}=s,f={...s,component:i,elevation:l,square:T,variant:u},h=rZ(f);return KS.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
206
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var T=wa(),u={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},Q=Symbol.for("react.portal"),f=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),G3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,G3.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error("Target container is not a DOM element.");return s(h,p,null,v)},G3.flushSync=function(h){var p=f.T,v=u.p;try{if(f.T=null,u.p=2,h)return h()}finally{f.T=p,u.p=v,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},G3.preconnect=function(h,p){typeof h=="string"&&h?p!=null&&typeof p!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(p)):p!=null&&typeof p.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(p.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h)),typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(h,p))},G3.prefetchDNS=function(h){if(typeof h!="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h));else if(1<arguments.length){var p=arguments[1];typeof p=="object"&&p.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(p)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(p))}typeof h=="string"&&u.d.D(h)},G3.preinit=function(h,p){if(typeof h=="string"&&h?p==null||typeof p!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(p)):p.as!=="style"&&p.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(p.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(h)),typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,g=o(v,p.crossOrigin),H=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?u.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:H,fetchPriority:L}):v==="script"&&u.d.X(h,{crossOrigin:g,integrity:H,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},G3.preinitModule=function(h,p){var v="";if(typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p!==void 0&&typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":p&&"as"in p&&p.as!=="script"&&(v+=" The `as` option encountered was "+i(p.as)+"."),v)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",v);else switch(v=p&&typeof p.as=="string"?p.as:"script",v){case"script":break;default:v=i(v),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',v,h)}typeof h=="string"&&(typeof p=="object"&&p!==null?(p.as==null||p.as==="script")&&(v=o(p.as,p.crossOrigin),u.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})):p==null&&u.d.M(h))},G3.preload=function(h,p){var v="";if(typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p==null||typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":typeof p.as=="string"&&p.as||(v+=" The `as` option encountered was "+a(p.as)+"."),v&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',v),typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){v=p.as;var g=o(v,p.crossOrigin);u.d.L(h,v,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},G3.preloadModule=function(h,p){var v="";typeof h=="string"&&h||(v+=" The `href` argument encountered was "+a(h)+"."),p!==void 0&&typeof p!="object"?v+=" The `options` argument encountered was "+a(p)+".":p&&"as"in p&&typeof p.as!="string"&&(v+=" The `as` option encountered was "+a(p.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',v),typeof h=="string"&&(p?(v=o(p.as,p.crossOrigin),u.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})):u.d.m(h))},G3.requestFormReset=function(h){u.d.r(h)},G3.unstable_batchedUpdates=function(h,p){return h(p)},G3.useFormState=function(h,p,v){return l().useFormState(h,p,v)},G3.useFormStatus=function(){return l().useHostTransitionStatus()},G3.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),G3}var IS;function mL(){if(IS)return hm.exports;IS=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}}return e.NODE_ENV==="production"?(t(),hm.exports=BG()):hm.exports=PG(),hm.exports}var FS=mL();const pm=Hc(FS),zS={disabled:!1};var qS={},jG=qS.NODE_ENV!=="production"?S.oneOfType([S.number,S.shape({enter:S.number,exit:S.number,appear:S.number}).isRequired]):null;qS.NODE_ENV!=="production"&&S.oneOfType([S.string,S.shape({enter:S.string,exit:S.string,active:S.string}),S.shape({enter:S.string,enterDone:S.string,enterActive:S.string,exit:S.string,exitDone:S.string,exitActive:S.string})]);const mm=_e.createContext(null);var IG=function(t){return t.scrollTop},FG={},Jc="unmounted",E7="exited",M7="entering",V9="entered",yL="exiting",Cr=function(e){BS(t,e);function t(s,o){var a;a=e.call(this,s,o)||this;var i=o,l=i&&!i.isMounting?s.enter:s.appear,T;return a.appearStatus=null,s.in?l?(T=E7,a.appearStatus=M7):T=V9:s.unmountOnExit||s.mountOnEnter?T=Jc:T=E7,a.state={status:T},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Jc?{status:E7}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==M7&&i!==V9&&(a=M7):(i===M7||i===V9)&&(a=yL)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===M7){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:pm.findDOMNode(this);i&&IG(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===E7&&this.setState({status:Jc})},r.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,T=this.props.nodeRef?[l]:[pm.findDOMNode(this),l],u=T[0],Q=T[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!i||zS.disabled){this.safeSetState({status:V9},function(){a.props.onEntered(u)});return}this.props.onEnter(u,Q),this.safeSetState({status:M7},function(){a.props.onEntering(u,Q),a.onTransitionEnd(h,function(){a.safeSetState({status:V9},function(){a.props.onEntered(u,Q)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:pm.findDOMNode(this);if(!a||zS.disabled){this.safeSetState({status:E7},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:yL},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:E7},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:pm.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var T=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=T[0],Q=T[1];this.props.addEndListener(u,Q)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Jc)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=NS(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _e.createElement(mm.Provider,{value:null},typeof i=="function"?i(o,l):_e.cloneElement(_e.Children.only(i),l))},t}(_e.Component);Cr.contextType=mm,Cr.propTypes=FG.NODE_ENV!=="production"?{nodeRef:S.shape({current:typeof Element>"u"?S.any:function(e,t,r,s,o,a){var i=e[t];return S.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,s,o,a)}}),children:S.oneOfType([S.func.isRequired,S.element.isRequired]).isRequired,in:S.bool,mountOnEnter:S.bool,unmountOnExit:S.bool,appear:S.bool,enter:S.bool,exit:S.bool,timeout:function(t){var r=jG;t.addEndListener||(r=r.isRequired);for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:S.func,onEnter:S.func,onEntering:S.func,onEntered:S.func,onExit:S.func,onExiting:S.func,onExited:S.func}:{};function D9(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:D9,onEntering:D9,onEntered:D9,onExit:D9,onExiting:D9,onExited:D9},Cr.UNMOUNTED=Jc,Cr.EXITED=E7,Cr.ENTERING=M7,Cr.ENTERED=V9,Cr.EXITING=yL;function zG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vL(e,t){var r=function(a){return t&&ae.isValidElement(a)?t(a):a},s=Object.create(null);return e&&ae.Children.map(e,function(o){return o}).forEach(function(o){s[o.key]=r(o)}),s}function qG(e,t){e=e||{},t=t||{};function r(Q){return Q in t?t[Q]:e[Q]}var s=Object.create(null),o=[];for(var a in e)a in t?o.length&&(s[a]=o,o=[]):o.push(a);var i,l={};for(var T in t){if(s[T])for(i=0;i<s[T].length;i++){var u=s[T][i];l[s[T][i]]=r(u)}l[T]=r(T)}for(i=0;i<o.length;i++)l[o[i]]=r(o[i]);return l}function S7(e,t,r){return r[t]!=null?r[t]:e.props[t]}function $G(e,t){return vL(e.children,function(r){return ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:S7(r,"appear",e),enter:S7(r,"enter",e),exit:S7(r,"exit",e)})})}function UG(e,t,r){var s=vL(e.children),o=qG(t,s);return Object.keys(o).forEach(function(a){var i=o[a];if(ae.isValidElement(i)){var l=a in t,T=a in s,u=t[a],Q=ae.isValidElement(u)&&!u.props.in;T&&(!l||Q)?o[a]=ae.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:S7(i,"exit",e),enter:S7(i,"enter",e)}):!T&&l&&!Q?o[a]=ae.cloneElement(i,{in:!1}):T&&l&&ae.isValidElement(u)&&(o[a]=ae.cloneElement(i,{onExited:r.bind(null,i),in:u.props.in,exit:S7(i,"exit",e),enter:S7(i,"enter",e)}))}}),o}var GG={},ZG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},XG={component:"div",childFactory:function(t){return t}},gL=function(e){BS(t,e);function t(s,o){var a;a=e.call(this,s,o)||this;var i=a.handleExited.bind(zG(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var i=a.children,l=a.handleExited,T=a.firstRender;return{children:T?$G(o,l):UG(o,i,l),firstRender:!1}},r.handleExited=function(o,a){var i=vL(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var T=$p({},l.children);return delete T[o.key],{children:T}}))},r.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=NS(o,["component","childFactory"]),T=this.state.contextValue,u=ZG(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?_e.createElement(mm.Provider,{value:T},u):_e.createElement(mm.Provider,{value:T},_e.createElement(a,l,u))},t}(_e.Component);gL.propTypes=GG.NODE_ENV!=="production"?{component:S.any,children:S.node,appear:S.bool,enter:S.bool,exit:S.bool,childFactory:S.func}:{},gL.defaultProps=XG;const $S={};function US(e,t){const r=ae.useRef($S);return r.current===$S&&(r.current=e(t)),r}const WG=[];function YG(e){ae.useEffect(e,WG)}class LL{constructor(){oe(this,"currentId",null);oe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});oe(this,"disposeEffect",()=>this.clear)}static create(){return new LL}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function GS(){const e=US(LL.create).current;return YG(e.disposeEffect),e}function KG(e){const{prototype:t={}}=e;return!!t.isReactComponent}function JG(e,t,r,s,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!KG(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${s} \`${i}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xL=V0(S.elementType,JG),ZS=e=>e.scrollTop;function ym(e,t){const{timeout:r,easing:s,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof s=="object"?s[t.mode]:s),delay:o.transitionDelay}}var eZ={};function tZ(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function XS(e,t,r,s){const o=e[t];if(o==null||!Number.isInteger(o)){const a=tZ(o);return new RangeError(`Invalid ${s} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function WS(e,t,r,s){return e[t]===void 0?null:XS(e,t,r,s)}function bL(){return null}WS.isRequired=XS,bL.isRequired=bL;const YS=eZ.NODE_ENV==="production"?bL:WS;function nZ(e){return Yt("MuiPaper",e)}Zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var KS={};const rZ=e=>{const{square:t,elevation:r,variant:s,classes:o}=e,a={root:["root",s,!t&&"rounded",s==="elevation"&&`elevation${r}`]};return t1(a,nZ,o)},iZ=tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})($t(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vm=ae.forwardRef(function(t,r){var p;const s=s1({props:t,name:"MuiPaper"}),o=C9(),{className:a,component:i="div",elevation:l=1,square:T=!1,variant:u="elevation",...Q}=s,f={...s,component:i,elevation:l,square:T,variant:u},h=rZ(f);return KS.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
207
207
|
`)),Ve.jsx(iZ,{as:i,ownerState:f,className:vt(h.root,a),ref:r,...Q,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(p=o.vars.overlays)==null?void 0:p[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${B2("#fff",fL(l))}, ${B2("#fff",fL(l))})`}},...Q.style}})});KS.NODE_ENV!=="production"&&(vm.propTypes={children:S.node,classes:S.object,className:S.string,component:S.elementType,elevation:V0(YS,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:S.bool,style:S.object,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),variant:S.oneOfType([S.oneOf(["elevation","outlined"]),S.string])});function aZ(e){return typeof e=="string"}function JS(e,t,r){return e===void 0||aZ(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function e_(e,t,r){return typeof e=="function"?e(t,r):e}function eT(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!t.includes(s)).forEach(s=>{r[s]=e[s]}),r}function t_(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function n_(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:s,externalForwardedProps:o,className:a}=e;if(!t){const p=vt(r==null?void 0:r.className,a,o==null?void 0:o.className,s==null?void 0:s.className),v={...r==null?void 0:r.style,...o==null?void 0:o.style,...s==null?void 0:s.style},g={...r,...o,...s};return p.length>0&&(g.className=p),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const i=eT({...o,...s}),l=t_(s),T=t_(o),u=t(i),Q=vt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,s==null?void 0:s.className),f={...u==null?void 0:u.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...s==null?void 0:s.style},h={...u,...r,...T,...l};return Q.length>0&&(h.className=Q),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function _1(e,t){const{className:r,elementType:s,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...T}=t,{component:u,slots:Q={[e]:void 0},slotProps:f={[e]:void 0},...h}=a,p=Q[e]||s,v=e_(f[e],o),{props:{component:g,...H},internalRef:L}=n_({className:r,...T,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:v}),M=A3(L,v==null?void 0:v.ref,t.ref),A=e==="root"?g||u:g,C=JS(p,{...e==="root"&&!u&&!Q[e]&&i,...e!=="root"&&!Q[e]&&i,...H,...A&&!l&&{as:A},...A&&l&&{component:A},ref:M},o);return[p,C]}const y6=S.oneOfType([S.func,S.object]);var oZ={};function gm(e){try{return e.matches(":focus-visible")}catch{oZ.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
208
|
-
`))}return!1}class Lm{constructor(){
|
|
208
|
+
`))}return!1}class Lm{constructor(){oe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Lm}static use(){const t=US(Lm.create).current,[r,s]=ae.useState(!1);return t.shouldMount=r,t.setShouldMount=s,ae.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=sZ(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function lZ(){return Lm.use()}function sZ(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});return r.resolve=e,r.reject=t,r}var uZ={};function r_(e){const{className:t,classes:r,pulsate:s=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:T,timeout:u}=e,[Q,f]=ae.useState(!1),h=vt(t,r.ripple,r.rippleVisible,s&&r.ripplePulsate),p={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},v=vt(r.child,Q&&r.childLeaving,s&&r.childPulsate);return!l&&!Q&&f(!0),ae.useEffect(()=>{if(!l&&T!=null){const g=setTimeout(T,u);return()=>{clearTimeout(g)}}},[T,l,u]),Ve.jsx("span",{className:h,style:p,children:Ve.jsx("span",{className:v})})}uZ.NODE_ENV!=="production"&&(r_.propTypes={classes:S.object.isRequired,className:S.string,in:S.bool,onExited:S.func,pulsate:S.bool,rippleSize:S.number,rippleX:S.number,rippleY:S.number,timeout:S.number.isRequired});const bn=Zt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var cZ={};const HL=550,TZ=80,QZ=Fc`
|
|
209
209
|
0% {
|
|
210
210
|
transform: scale(0);
|
|
211
211
|
opacity: 0.1;
|
|
@@ -438,12 +438,12 @@ Error generating stack: `+x.message+`
|
|
|
438
438
|
*
|
|
439
439
|
* This source code is licensed under the MIT license found in the
|
|
440
440
|
* LICENSE file in the root directory of this source tree.
|
|
441
|
-
*/return e.NODE_ENV!=="production"&&function(){function t(n,c){for(n=n.memoizedState;n!==null&&0<c;)n=n.next,c--;return n}function r(n,c,m,b){if(m>=c.length)return b;var w=c[m],D=z2(n)?n.slice():Vt({},n);return D[w]=r(n[w],c,m+1,b),D}function s(n,c,m){if(c.length!==m.length)console.warn("copyWithRename() expects paths of the same length");else{for(var b=0;b<m.length-1;b++)if(c[b]!==m[b]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(n,c,m,0)}}function o(n,c,m,b){var w=c[b],D=z2(n)?n.slice():Vt({},n);return b+1===c.length?(D[m[b]]=D[w],z2(D)?D.splice(w,1):delete D[w]):D[w]=o(n[w],c,m,b+1),D}function a(n,c,m){var b=c[m],w=z2(n)?n.slice():Vt({},n);return m+1===c.length?(z2(w)?w.splice(b,1):delete w[b],w):(w[b]=a(n[b],c,m+1),w)}function i(){return!1}function l(){return null}function T(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Q(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function h(n){var c=[];return n.forEach(function(m){c.push(m)}),c.sort().join(", ")}function p(n,c,m,b){return new bb(n,c,m,b)}function v(n,c){n.context===r7&&(_l(n.current,2,c,n,null,null),ca())}function g(n,c){if(Wn!==null){var m=c.staleFamilies;c=c.updatedFamilies,r0(),Ui(n.current,c,m),ca()}}function H(n){Wn=n}function L(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function M(n){var c=n,m=n;if(n.alternate)for(;c.return;)c=c.return;else{n=c;do c=n,(c.flags&4098)!==0&&(m=c.return),n=c.return;while(n)}return c.tag===3?m:null}function A(n){if(n.tag===13){var c=n.memoizedState;if(c===null&&(n=n.alternate,n!==null&&(c=n.memoizedState)),c!==null)return c.dehydrated}return null}function C(n){if(M(n)!==n)throw Error("Unable to find node on an unmounted component.")}function E(n){var c=n.alternate;if(!c){if(c=M(n),c===null)throw Error("Unable to find node on an unmounted component.");return c!==n?null:n}for(var m=n,b=c;;){var w=m.return;if(w===null)break;var D=w.alternate;if(D===null){if(b=w.return,b!==null){m=b;continue}break}if(w.child===D.child){for(D=w.child;D;){if(D===m)return C(w),n;if(D===b)return C(w),c;D=D.sibling}throw Error("Unable to find node on an unmounted component.")}if(m.return!==b.return)m=w,b=D;else{for(var I=!1,G=w.child;G;){if(G===m){I=!0,m=w,b=D;break}if(G===b){I=!0,b=w,m=D;break}G=G.sibling}if(!I){for(G=D.child;G;){if(G===m){I=!0,m=D,b=w;break}if(G===b){I=!0,b=D,m=w;break}G=G.sibling}if(!I)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(m.alternate!==b)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(m.tag!==3)throw Error("Unable to find node on an unmounted component.");return m.stateNode.current===m?n:c}function _(n){var c=n.tag;if(c===5||c===26||c===27||c===6)return n;for(n=n.child;n!==null;){if(c=_(n),c!==null)return c;n=n.sibling}return null}function V(n){return n===null||typeof n!="object"?null:(n=Dl&&n[Dl]||n["@@iterator"],typeof n=="function"?n:null)}function k(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===P1?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case h0:return"Fragment";case wl:return"Profiler";case ma:return"StrictMode";case m0:return"Suspense";case Mu:return"SuspenseList";case _u:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case Nt:return"Portal";case m4:return(n.displayName||"Context")+".Provider";case Vl:return(n._context.displayName||"Context")+".Consumer";case p0:var c=n.render;return n=n.displayName,n||(n=c.displayName||c.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Su:return c=n.displayName||null,c!==null?c:k(n.type)||"Memo";case j4:c=n._payload,n=n._init;try{return k(n(c))}catch{}}return null}function B(n){return typeof n.tag=="number"?R(n):typeof n.name=="string"?n.name:null}function R(n){var c=n.type;switch(n.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(c._context.displayName||"Context")+".Consumer";case 10:return(c.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=c.render,n=n.displayName||n.name||"",c.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(c);case 8:return c===ma?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;break;case 29:if(c=n._debugInfo,c!=null){for(var m=c.length-1;0<=m;m--)if(typeof c[m].name=="string")return c[m].name}if(n.return!==null)return R(n.return)}return null}function F(n){return{current:n}}function q(n,c){0>In?console.error("Unexpected pop."):(c!==Xo[In]&&console.error("Unexpected Fiber popped."),n.current=Rl[In],Rl[In]=null,Xo[In]=null,In--)}function $(n,c,m){In++,Rl[In]=n.current,Xo[In]=m,n.current=c}function Z(n){return n===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),n}function J(n,c){$(Fn,c,n),$(ya,n,n),$(Qr,null,n);var m=c.nodeType;switch(m){case 9:case 11:m=m===9?"#document":"#fragment",c=(c=c.documentElement)&&(c=c.namespaceURI)?d4(c):Aa;break;default:if(m=c.tagName,c=c.namespaceURI)c=d4(c),c=lr(c,m);else switch(m){case"svg":c=hc;break;case"math":c=Kv;break;default:c=Aa}}m=m.toLowerCase(),m=Cf(null,m),m={context:c,ancestorInfo:m},q(Qr,n),$(Qr,m,n)}function W(n){q(Qr,n),q(ya,n),q(Fn,n)}function ne(){return Z(Qr.current)}function K(n){n.memoizedState!==null&&$(Au,n,n);var c=Z(Qr.current),m=n.type,b=lr(c.context,m);m=Cf(c.ancestorInfo,m),b={context:b,ancestorInfo:m},c!==b&&($(ya,n,n),$(Qr,b,n))}function Y(n){ya.current===n&&(q(Qr,n),q(ya,n)),Au.current===n&&(q(Au,n),Tp._currentValue=T9)}function j(n){return typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object"}function z(n){try{return te(n),!1}catch{return!0}}function te(n){return""+n}function U(n,c){if(z(n))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(n)),te(n)}function fe(n,c){if(z(n))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(n)),te(n)}function he(n){if(z(n))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",j(n)),te(n)}function ye(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled)return!0;if(!c.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{va=c.inject(n),f3=c}catch(m){console.error("React instrumentation encountered an error: %s.",m)}return!!c.checkDCE}function se(n){if(typeof hn=="function"&&yh(n),f3&&typeof f3.setStrictMode=="function")try{f3.setStrictMode(va,n)}catch(c){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",c))}}function de(n){ot=n}function He(){ot!==null&&typeof ot.markCommitStopped=="function"&&ot.markCommitStopped()}function be(n){ot!==null&&typeof ot.markComponentRenderStarted=="function"&&ot.markComponentRenderStarted(n)}function Se(){ot!==null&&typeof ot.markComponentRenderStopped=="function"&&ot.markComponentRenderStopped()}function ze(n){ot!==null&&typeof ot.markRenderStarted=="function"&&ot.markRenderStarted(n)}function ue(){ot!==null&&typeof ot.markRenderStopped=="function"&&ot.markRenderStopped()}function Pe(n,c){ot!==null&&typeof ot.markStateUpdateScheduled=="function"&&ot.markStateUpdateScheduled(n,c)}function Ze(n){return n>>>=0,n===0?32:31-(fr(n)/Rb|0)|0}function dt(n){if(n&1)return"SyncHydrationLane";if(n&2)return"Sync";if(n&4)return"InputContinuousHydration";if(n&8)return"InputContinuous";if(n&16)return"DefaultHydration";if(n&32)return"Default";if(n&128)return"TransitionHydration";if(n&4194048)return"Transition";if(n&62914560)return"Retry";if(n&67108864)return"SelectiveHydration";if(n&134217728)return"IdleHydration";if(n&268435456)return"Idle";if(n&536870912)return"Offscreen";if(n&1073741824)return"Deferred"}function at(n){var c=n&42;if(c!==0)return c;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),n}}function pt(n,c,m){var b=n.pendingLanes;if(b===0)return 0;var w=0,D=n.suspendedLanes,I=n.pingedLanes;n=n.warmLanes;var G=b&134217727;return G!==0?(b=G&~D,b!==0?w=at(b):(I&=G,I!==0?w=at(I):m||(m=G&~n,m!==0&&(w=at(m))))):(G=b&~D,G!==0?w=at(G):I!==0?w=at(I):m||(m=b&~n,m!==0&&(w=at(m)))),w===0?0:c!==0&&c!==w&&(c&D)===0&&(D=w&-w,m=c&-c,D>=m||D===32&&(m&4194048)!==0)?c:w}function jt(n,c){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&c)===0}function d1(n,c){switch(n){case 1:case 2:case 4:case 8:case 64:return c+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 c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function lt(){var n=Ou;return Ou<<=1,(Ou&4194048)===0&&(Ou=256),n}function ct(){var n=dr;return dr<<=1,(dr&62914560)===0&&(dr=4194304),n}function Y1(n){for(var c=[],m=0;31>m;m++)c.push(n);return c}function T1(n,c){n.pendingLanes|=c,c!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ue(n,c,m,b,w,D){var I=n.pendingLanes;n.pendingLanes=m,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=m,n.entangledLanes&=m,n.errorRecoveryDisabledLanes&=m,n.shellSuspendCounter=0;var G=n.entanglements,ie=n.expirationTimes,oe=n.hiddenUpdates;for(m=I&~m;0<m;){var we=31-J2(m),Ne=1<<we;G[we]=0,ie[we]=-1;var Oe=oe[we];if(Oe!==null)for(oe[we]=null,we=0;we<Oe.length;we++){var Be=Oe[we];Be!==null&&(Be.lane&=-536870913)}m&=~Ne}b!==0&&pe(n,b,0),D!==0&&w===0&&n.tag!==0&&(n.suspendedLanes|=D&~(I&~c))}function pe(n,c,m){n.pendingLanes|=c,n.suspendedLanes&=~c;var b=31-J2(c);n.entangledLanes|=c,n.entanglements[b]=n.entanglements[b]|1073741824|m&4194090}function De(n,c){var m=n.entangledLanes|=c;for(n=n.entanglements;m;){var b=31-J2(m),w=1<<b;w&c|n[b]&c&&(n[b]|=c),m&=~w}}function We(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ke(n,c,m){if(c6)for(n=n.pendingUpdatersLaneMap;0<m;){var b=31-J2(m),w=1<<b;n[b].add(c),m&=~w}}function Je(n,c){if(c6)for(var m=n.pendingUpdatersLaneMap,b=n.memoizedUpdaters;0<c;){var w=31-J2(c);n=1<<w,w=m[w],0<w.size&&(w.forEach(function(D){var I=D.alternate;I!==null&&b.has(I)||b.add(D)}),w.clear()),c&=~n}}function Tt(n){return n&=-n,I4<n?qn<n?(n&134217727)!==0?hr:Cu:qn:I4}function i1(){var n=L1.p;return n!==0?n:(n=window.event,n===void 0?hr:d0(n.type))}function Ct(n,c){var m=L1.p;try{return L1.p=n,c()}finally{L1.p=m}}function Q1(n){delete n[b3],delete n[y4],delete n[wu],delete n[Yo],delete n[Nl]}function h1(n){var c=n[b3];if(c)return c;for(var m=n.parentNode;m;){if(c=m[v0]||m[b3]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(n=Qu(n);n!==null;){if(m=n[b3])return m;n=Qu(n)}return c}n=m,m=n.parentNode}return null}function rt(n){if(n=n[b3]||n[v0]){var c=n.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return n}return null}function xt(n){var c=n.tag;if(c===5||c===26||c===27||c===6)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ee(n){var c=n[vh];return c||(c=n[vh]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function ge(n){n[Bl]=!0}function Xe(n,c){nt(n,c),nt(n+"Capture",c)}function nt(n,c){pn[n]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),pn[n]=c;var m=n.toLowerCase();for(Vu[m]=n,n==="onDoubleClick"&&(Vu.ondblclick=n),n=0;n<c.length;n++)ga.add(c[n])}function et(n,c){Du[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||console.error(n==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mt(n){return zn.call(Pl,n)?!0:zn.call(Ru,n)?!1:gh.test(n)?Pl[n]=!0:(Ru[n]=!0,console.error("Invalid attribute name: `%s`",n),!1)}function At(n,c,m){if(mt(c)){if(!n.hasAttribute(c)){switch(typeof m){case"symbol":case"object":return m;case"function":return m;case"boolean":if(m===!1)return m}return m===void 0?void 0:null}return n=n.getAttribute(c),n===""&&m===!0?!0:(U(m,c),n===""+m?m:n)}}function Ut(n,c,m){if(mt(c))if(m===null)n.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":n.removeAttribute(c);return;case"boolean":var b=c.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){n.removeAttribute(c);return}}U(m,c),n.setAttribute(c,""+m)}}function Ht(n,c,m){if(m===null)n.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(c);return}U(m,c),n.setAttribute(c,""+m)}}function _2(n,c,m,b){if(b===null)n.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(m);return}U(b,m),n.setAttributeNS(c,m,""+b)}}function Cn(){}function Lf(){if(Ko===0){Lh=console.log,dv=console.info,xh=console.warn,Jo=console.error,hv=console.group,pv=console.groupCollapsed,mv=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Cn,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Ko++}function wn(){if(Ko--,Ko===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vt({},n,{value:Lh}),info:Vt({},n,{value:dv}),warn:Vt({},n,{value:xh}),error:Vt({},n,{value:Jo}),group:Vt({},n,{value:hv}),groupCollapsed:Vt({},n,{value:pv}),groupEnd:Vt({},n,{value:mv})})}0>Ko&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function F1(n){if(e7===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);e7=c&&c[1]||"",jl=-1<m.stack.indexOf(`
|
|
441
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(n,c){for(n=n.memoizedState;n!==null&&0<c;)n=n.next,c--;return n}function r(n,c,m,b){if(m>=c.length)return b;var w=c[m],D=z2(n)?n.slice():Vt({},n);return D[w]=r(n[w],c,m+1,b),D}function s(n,c,m){if(c.length!==m.length)console.warn("copyWithRename() expects paths of the same length");else{for(var b=0;b<m.length-1;b++)if(c[b]!==m[b]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return o(n,c,m,0)}}function o(n,c,m,b){var w=c[b],D=z2(n)?n.slice():Vt({},n);return b+1===c.length?(D[m[b]]=D[w],z2(D)?D.splice(w,1):delete D[w]):D[w]=o(n[w],c,m,b+1),D}function a(n,c,m){var b=c[m],w=z2(n)?n.slice():Vt({},n);return m+1===c.length?(z2(w)?w.splice(b,1):delete w[b],w):(w[b]=a(n[b],c,m+1),w)}function i(){return!1}function l(){return null}function T(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Q(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function h(n){var c=[];return n.forEach(function(m){c.push(m)}),c.sort().join(", ")}function p(n,c,m,b){return new bb(n,c,m,b)}function v(n,c){n.context===r7&&(_l(n.current,2,c,n,null,null),ca())}function g(n,c){if(Wn!==null){var m=c.staleFamilies;c=c.updatedFamilies,r0(),Ui(n.current,c,m),ca()}}function H(n){Wn=n}function L(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function M(n){var c=n,m=n;if(n.alternate)for(;c.return;)c=c.return;else{n=c;do c=n,(c.flags&4098)!==0&&(m=c.return),n=c.return;while(n)}return c.tag===3?m:null}function A(n){if(n.tag===13){var c=n.memoizedState;if(c===null&&(n=n.alternate,n!==null&&(c=n.memoizedState)),c!==null)return c.dehydrated}return null}function C(n){if(M(n)!==n)throw Error("Unable to find node on an unmounted component.")}function E(n){var c=n.alternate;if(!c){if(c=M(n),c===null)throw Error("Unable to find node on an unmounted component.");return c!==n?null:n}for(var m=n,b=c;;){var w=m.return;if(w===null)break;var D=w.alternate;if(D===null){if(b=w.return,b!==null){m=b;continue}break}if(w.child===D.child){for(D=w.child;D;){if(D===m)return C(w),n;if(D===b)return C(w),c;D=D.sibling}throw Error("Unable to find node on an unmounted component.")}if(m.return!==b.return)m=w,b=D;else{for(var I=!1,G=w.child;G;){if(G===m){I=!0,m=w,b=D;break}if(G===b){I=!0,b=w,m=D;break}G=G.sibling}if(!I){for(G=D.child;G;){if(G===m){I=!0,m=D,b=w;break}if(G===b){I=!0,b=D,m=w;break}G=G.sibling}if(!I)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(m.alternate!==b)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(m.tag!==3)throw Error("Unable to find node on an unmounted component.");return m.stateNode.current===m?n:c}function _(n){var c=n.tag;if(c===5||c===26||c===27||c===6)return n;for(n=n.child;n!==null;){if(c=_(n),c!==null)return c;n=n.sibling}return null}function V(n){return n===null||typeof n!="object"?null:(n=Dl&&n[Dl]||n["@@iterator"],typeof n=="function"?n:null)}function k(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===P1?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case h0:return"Fragment";case wl:return"Profiler";case ma:return"StrictMode";case m0:return"Suspense";case Mu:return"SuspenseList";case _u:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case Nt:return"Portal";case m4:return(n.displayName||"Context")+".Provider";case Vl:return(n._context.displayName||"Context")+".Consumer";case p0:var c=n.render;return n=n.displayName,n||(n=c.displayName||c.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Su:return c=n.displayName||null,c!==null?c:k(n.type)||"Memo";case j4:c=n._payload,n=n._init;try{return k(n(c))}catch{}}return null}function B(n){return typeof n.tag=="number"?R(n):typeof n.name=="string"?n.name:null}function R(n){var c=n.type;switch(n.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(c._context.displayName||"Context")+".Consumer";case 10:return(c.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=c.render,n=n.displayName||n.name||"",c.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(c);case 8:return c===ma?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;break;case 29:if(c=n._debugInfo,c!=null){for(var m=c.length-1;0<=m;m--)if(typeof c[m].name=="string")return c[m].name}if(n.return!==null)return R(n.return)}return null}function F(n){return{current:n}}function q(n,c){0>In?console.error("Unexpected pop."):(c!==Xo[In]&&console.error("Unexpected Fiber popped."),n.current=Rl[In],Rl[In]=null,Xo[In]=null,In--)}function $(n,c,m){In++,Rl[In]=n.current,Xo[In]=m,n.current=c}function Z(n){return n===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),n}function J(n,c){$(Fn,c,n),$(ya,n,n),$(Qr,null,n);var m=c.nodeType;switch(m){case 9:case 11:m=m===9?"#document":"#fragment",c=(c=c.documentElement)&&(c=c.namespaceURI)?d4(c):Aa;break;default:if(m=c.tagName,c=c.namespaceURI)c=d4(c),c=lr(c,m);else switch(m){case"svg":c=hc;break;case"math":c=Kv;break;default:c=Aa}}m=m.toLowerCase(),m=Cf(null,m),m={context:c,ancestorInfo:m},q(Qr,n),$(Qr,m,n)}function W(n){q(Qr,n),q(ya,n),q(Fn,n)}function ne(){return Z(Qr.current)}function K(n){n.memoizedState!==null&&$(Au,n,n);var c=Z(Qr.current),m=n.type,b=lr(c.context,m);m=Cf(c.ancestorInfo,m),b={context:b,ancestorInfo:m},c!==b&&($(ya,n,n),$(Qr,b,n))}function Y(n){ya.current===n&&(q(Qr,n),q(ya,n)),Au.current===n&&(q(Au,n),Tp._currentValue=T9)}function j(n){return typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object"}function z(n){try{return te(n),!1}catch{return!0}}function te(n){return""+n}function U(n,c){if(z(n))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(n)),te(n)}function fe(n,c){if(z(n))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",c,j(n)),te(n)}function he(n){if(z(n))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",j(n)),te(n)}function ye(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled)return!0;if(!c.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{va=c.inject(n),f3=c}catch(m){console.error("React instrumentation encountered an error: %s.",m)}return!!c.checkDCE}function se(n){if(typeof hn=="function"&&yh(n),f3&&typeof f3.setStrictMode=="function")try{f3.setStrictMode(va,n)}catch(c){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",c))}}function de(n){ot=n}function He(){ot!==null&&typeof ot.markCommitStopped=="function"&&ot.markCommitStopped()}function be(n){ot!==null&&typeof ot.markComponentRenderStarted=="function"&&ot.markComponentRenderStarted(n)}function Se(){ot!==null&&typeof ot.markComponentRenderStopped=="function"&&ot.markComponentRenderStopped()}function ze(n){ot!==null&&typeof ot.markRenderStarted=="function"&&ot.markRenderStarted(n)}function ue(){ot!==null&&typeof ot.markRenderStopped=="function"&&ot.markRenderStopped()}function Pe(n,c){ot!==null&&typeof ot.markStateUpdateScheduled=="function"&&ot.markStateUpdateScheduled(n,c)}function Ze(n){return n>>>=0,n===0?32:31-(fr(n)/Rb|0)|0}function dt(n){if(n&1)return"SyncHydrationLane";if(n&2)return"Sync";if(n&4)return"InputContinuousHydration";if(n&8)return"InputContinuous";if(n&16)return"DefaultHydration";if(n&32)return"Default";if(n&128)return"TransitionHydration";if(n&4194048)return"Transition";if(n&62914560)return"Retry";if(n&67108864)return"SelectiveHydration";if(n&134217728)return"IdleHydration";if(n&268435456)return"Idle";if(n&536870912)return"Offscreen";if(n&1073741824)return"Deferred"}function at(n){var c=n&42;if(c!==0)return c;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),n}}function pt(n,c,m){var b=n.pendingLanes;if(b===0)return 0;var w=0,D=n.suspendedLanes,I=n.pingedLanes;n=n.warmLanes;var G=b&134217727;return G!==0?(b=G&~D,b!==0?w=at(b):(I&=G,I!==0?w=at(I):m||(m=G&~n,m!==0&&(w=at(m))))):(G=b&~D,G!==0?w=at(G):I!==0?w=at(I):m||(m=b&~n,m!==0&&(w=at(m)))),w===0?0:c!==0&&c!==w&&(c&D)===0&&(D=w&-w,m=c&-c,D>=m||D===32&&(m&4194048)!==0)?c:w}function jt(n,c){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&c)===0}function d1(n,c){switch(n){case 1:case 2:case 4:case 8:case 64:return c+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 c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function lt(){var n=Ou;return Ou<<=1,(Ou&4194048)===0&&(Ou=256),n}function ct(){var n=dr;return dr<<=1,(dr&62914560)===0&&(dr=4194304),n}function Y1(n){for(var c=[],m=0;31>m;m++)c.push(n);return c}function T1(n,c){n.pendingLanes|=c,c!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ue(n,c,m,b,w,D){var I=n.pendingLanes;n.pendingLanes=m,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=m,n.entangledLanes&=m,n.errorRecoveryDisabledLanes&=m,n.shellSuspendCounter=0;var G=n.entanglements,ie=n.expirationTimes,le=n.hiddenUpdates;for(m=I&~m;0<m;){var we=31-J2(m),Ne=1<<we;G[we]=0,ie[we]=-1;var Oe=le[we];if(Oe!==null)for(le[we]=null,we=0;we<Oe.length;we++){var Be=Oe[we];Be!==null&&(Be.lane&=-536870913)}m&=~Ne}b!==0&&pe(n,b,0),D!==0&&w===0&&n.tag!==0&&(n.suspendedLanes|=D&~(I&~c))}function pe(n,c,m){n.pendingLanes|=c,n.suspendedLanes&=~c;var b=31-J2(c);n.entangledLanes|=c,n.entanglements[b]=n.entanglements[b]|1073741824|m&4194090}function De(n,c){var m=n.entangledLanes|=c;for(n=n.entanglements;m;){var b=31-J2(m),w=1<<b;w&c|n[b]&c&&(n[b]|=c),m&=~w}}function We(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ke(n,c,m){if(c6)for(n=n.pendingUpdatersLaneMap;0<m;){var b=31-J2(m),w=1<<b;n[b].add(c),m&=~w}}function Je(n,c){if(c6)for(var m=n.pendingUpdatersLaneMap,b=n.memoizedUpdaters;0<c;){var w=31-J2(c);n=1<<w,w=m[w],0<w.size&&(w.forEach(function(D){var I=D.alternate;I!==null&&b.has(I)||b.add(D)}),w.clear()),c&=~n}}function Tt(n){return n&=-n,I4<n?qn<n?(n&134217727)!==0?hr:Cu:qn:I4}function i1(){var n=L1.p;return n!==0?n:(n=window.event,n===void 0?hr:d0(n.type))}function Ct(n,c){var m=L1.p;try{return L1.p=n,c()}finally{L1.p=m}}function Q1(n){delete n[b3],delete n[y4],delete n[wu],delete n[Yo],delete n[Nl]}function h1(n){var c=n[b3];if(c)return c;for(var m=n.parentNode;m;){if(c=m[v0]||m[b3]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(n=Qu(n);n!==null;){if(m=n[b3])return m;n=Qu(n)}return c}n=m,m=n.parentNode}return null}function rt(n){if(n=n[b3]||n[v0]){var c=n.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return n}return null}function xt(n){var c=n.tag;if(c===5||c===26||c===27||c===6)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ee(n){var c=n[vh];return c||(c=n[vh]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function ge(n){n[Bl]=!0}function Xe(n,c){nt(n,c),nt(n+"Capture",c)}function nt(n,c){pn[n]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),pn[n]=c;var m=n.toLowerCase();for(Vu[m]=n,n==="onDoubleClick"&&(Vu.ondblclick=n),n=0;n<c.length;n++)ga.add(c[n])}function et(n,c){Du[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||console.error(n==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mt(n){return zn.call(Pl,n)?!0:zn.call(Ru,n)?!1:gh.test(n)?Pl[n]=!0:(Ru[n]=!0,console.error("Invalid attribute name: `%s`",n),!1)}function At(n,c,m){if(mt(c)){if(!n.hasAttribute(c)){switch(typeof m){case"symbol":case"object":return m;case"function":return m;case"boolean":if(m===!1)return m}return m===void 0?void 0:null}return n=n.getAttribute(c),n===""&&m===!0?!0:(U(m,c),n===""+m?m:n)}}function Ut(n,c,m){if(mt(c))if(m===null)n.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":n.removeAttribute(c);return;case"boolean":var b=c.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){n.removeAttribute(c);return}}U(m,c),n.setAttribute(c,""+m)}}function Ht(n,c,m){if(m===null)n.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(c);return}U(m,c),n.setAttribute(c,""+m)}}function _2(n,c,m,b){if(b===null)n.removeAttribute(m);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(m);return}U(b,m),n.setAttributeNS(c,m,""+b)}}function Cn(){}function Lf(){if(Ko===0){Lh=console.log,dv=console.info,xh=console.warn,Jo=console.error,hv=console.group,pv=console.groupCollapsed,mv=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Cn,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Ko++}function wn(){if(Ko--,Ko===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vt({},n,{value:Lh}),info:Vt({},n,{value:dv}),warn:Vt({},n,{value:xh}),error:Vt({},n,{value:Jo}),group:Vt({},n,{value:hv}),groupCollapsed:Vt({},n,{value:pv}),groupEnd:Vt({},n,{value:mv})})}0>Ko&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function F1(n){if(e7===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);e7=c&&c[1]||"",jl=-1<m.stack.indexOf(`
|
|
442
442
|
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
443
|
-
`+e7+n+jl}function y3(n,c){if(!n||Il)return"";var m=bh.get(n);if(m!==void 0)return m;Il=!0,m=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=Ce.H,Ce.H=null,Lf();try{var w={DetermineComponentFrameRoot:function(){try{if(c){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(Qt){var Be=Qt}Reflect.construct(n,[],Oe)}else{try{Oe.call()}catch(Qt){Be=Qt}n.call(Oe.prototype)}}else{try{throw Error()}catch(Qt){Be=Qt}(Oe=n())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}catch(Qt){if(Qt&&Be&&typeof Qt.stack=="string")return[Qt.stack,Be.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=w.DetermineComponentFrameRoot(),G=I[0],ie=I[1];if(G&&ie){var
|
|
443
|
+
`+e7+n+jl}function y3(n,c){if(!n||Il)return"";var m=bh.get(n);if(m!==void 0)return m;Il=!0,m=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=Ce.H,Ce.H=null,Lf();try{var w={DetermineComponentFrameRoot:function(){try{if(c){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(Qt){var Be=Qt}Reflect.construct(n,[],Oe)}else{try{Oe.call()}catch(Qt){Be=Qt}n.call(Oe.prototype)}}else{try{throw Error()}catch(Qt){Be=Qt}(Oe=n())&&typeof Oe.catch=="function"&&Oe.catch(function(){})}}catch(Qt){if(Qt&&Be&&typeof Qt.stack=="string")return[Qt.stack,Be.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=w.DetermineComponentFrameRoot(),G=I[0],ie=I[1];if(G&&ie){var le=G.split(`
|
|
444
444
|
`),we=ie.split(`
|
|
445
|
-
`);for(I=D=0;D<
|
|
446
|
-
`+
|
|
445
|
+
`);for(I=D=0;D<le.length&&!le[D].includes("DetermineComponentFrameRoot");)D++;for(;I<we.length&&!we[I].includes("DetermineComponentFrameRoot");)I++;if(D===le.length||I===we.length)for(D=le.length-1,I=we.length-1;1<=D&&0<=I&&le[D]!==we[I];)I--;for(;1<=D&&0<=I;D--,I--)if(le[D]!==we[I]){if(D!==1||I!==1)do if(D--,I--,0>I||le[D]!==we[I]){var Ne=`
|
|
446
|
+
`+le[D].replace(" at new "," at ");return n.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",n.displayName)),typeof n=="function"&&bh.set(n,Ne),Ne}while(1<=D&&0<=I);break}}}finally{Il=!1,Ce.H=b,wn(),Error.prepareStackTrace=m}return le=(le=n?n.displayName||n.name:"")?F1(le):"",typeof n=="function"&&bh.set(n,le),le}function ki(n){var c=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,n=n.stack,Error.prepareStackTrace=c,n.startsWith(`Error: react-stack-top-frame
|
|
447
447
|
`)&&(n=n.slice(29)),c=n.indexOf(`
|
|
448
448
|
`),c!==-1&&(n=n.slice(c+1)),c=n.indexOf("react-stack-bottom-frame"),c!==-1&&(c=n.lastIndexOf(`
|
|
449
449
|
`,c)),c!==-1)n=n.slice(0,c);else return"";return n}function xf(n){switch(n.tag){case 26:case 27:case 5:return F1(n.type);case 16:return F1("Lazy");case 13:return F1("Suspense");case 19:return F1("SuspenseList");case 0:case 15:return y3(n.type,!1);case 11:return y3(n.type.render,!1);case 1:return y3(n.type,!0);case 31:return F1("Activity");default:return""}}function py(n){try{var c="";do{c+=xf(n);var m=n._debugInfo;if(m)for(var b=m.length-1;0<=b;b--){var w=m[b];if(typeof w.name=="string"){var D=c,I=w.env,G=F1(w.name+(I?" ["+I+"]":""));c=D+G}}n=n.return}while(n);return c}catch(ie){return`
|
|
@@ -468,8 +468,8 @@ Check the render method of \``+n+"`.":""}function j5(n,c,m,b){if(n=n.options,c){
|
|
|
468
468
|
`,b+=jr(m)+D+": "+I+`
|
|
469
469
|
`):b+=Xa(m)+D+": "+G+`
|
|
470
470
|
`}for(var ie in w)w.hasOwnProperty(ie)&&(n=Ka(w[ie],120-2*m-ie.length-2),b+=jr(m)+ie+": "+n+`
|
|
471
|
-
`);return b}function _f(n,c,m,b){var w="",D=new Map;for(
|
|
472
|
-
`+K4(
|
|
471
|
+
`);return b}function _f(n,c,m,b){var w="",D=new Map;for(le in m)m.hasOwnProperty(le)&&D.set(le.toLowerCase(),le);if(D.size===1&&D.has("children"))w+=Sf(n,c,D3(b));else{for(var I in c)if(c.hasOwnProperty(I)&&I!=="children"){var G=120-2*(b+1)-I.length-1,ie=D.get(I.toLowerCase());if(ie!==void 0){D.delete(I.toLowerCase());var le=c[I];ie=m[ie];var we=I5(le,G);G=I5(ie,G),typeof le=="object"&&le!==null&&typeof ie=="object"&&ie!==null&&Ya(le)==="Object"&&Ya(ie)==="Object"&&(2<Object.keys(le).length||2<Object.keys(ie).length||-1<we.indexOf("...")||-1<G.indexOf("..."))?w+=D3(b+1)+I+`={{
|
|
472
|
+
`+K4(le,ie,b+2)+D3(b+1)+`}}
|
|
473
473
|
`:(w+=Xa(b+1)+I+"="+we+`
|
|
474
474
|
`,w+=jr(b+1)+I+"="+G+`
|
|
475
475
|
`)}else w+=D3(b+1)+I+"="+I5(c[I],G)+`
|
|
@@ -480,17 +480,17 @@ Check the render method of \``+n+"`.":""}function j5(n,c,m,b){if(n=n.options,c){
|
|
|
480
480
|
`}return n=m.children,c=c.children,typeof n=="string"||typeof n=="number"||typeof n=="bigint"?(D="",(typeof c=="string"||typeof c=="number"||typeof c=="bigint")&&(D=""+c),w+=as(D,""+n,b+1)):(typeof c=="string"||typeof c=="number"||typeof c=="bigint")&&(w=n==null?w+as(""+c,null,b+1):w+as(""+c,void 0,b+1)),w}function Af(n,c){var m=C4(n);if(m===null){for(m="",n=n.child;n;)m+=Af(n,c),n=n.sibling;return m}return D3(c)+"<"+m+`>
|
|
481
481
|
`}function V8(n,c){var m=is(n,c);if(m!==n&&(n.children.length!==1||n.children[0]!==m))return D3(c)+`...
|
|
482
482
|
`+V8(m,c+1);m="";var b=n.fiber._debugInfo;if(b)for(var w=0;w<b.length;w++){var D=b[w].name;typeof D=="string"&&(m+=D3(c)+"<"+D+`>
|
|
483
|
-
`,c++)}if(b="",w=n.fiber.pendingProps,n.fiber.tag===6)b=as(w,n.serverProps,c),c++;else if(D=C4(n.fiber),D!==null)if(n.serverProps===void 0){b=c;var I=120-2*b-D.length-2,G="";for(
|
|
484
|
-
`,c++}else n.serverProps===null?(b=Sf(D,w,Xa(c)),c++):typeof n.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(b=_f(D,w,n.serverProps,c),c++);var
|
|
485
|
-
`),w=n.serverTail,n.serverProps===null&&c--,n=0;n<w.length;n++)D=w[n],
|
|
486
|
-
`):
|
|
483
|
+
`,c++)}if(b="",w=n.fiber.pendingProps,n.fiber.tag===6)b=as(w,n.serverProps,c),c++;else if(D=C4(n.fiber),D!==null)if(n.serverProps===void 0){b=c;var I=120-2*b-D.length-2,G="";for(le in w)if(w.hasOwnProperty(le)&&le!=="children"){var ie=I5(w[le],15);if(I-=le.length+ie.length+2,0>I){G+=" ...";break}G+=" "+le+"="+ie}b=D3(b)+"<"+D+G+`>
|
|
484
|
+
`,c++}else n.serverProps===null?(b=Sf(D,w,Xa(c)),c++):typeof n.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(b=_f(D,w,n.serverProps,c),c++);var le="";for(w=n.fiber.child,D=0;w&&D<n.children.length;)I=n.children[D],I.fiber===w?(le+=V8(I,c),D++):le+=Af(w,c),w=w.sibling;for(w&&0<n.children.length&&(le+=D3(c)+`...
|
|
485
|
+
`),w=n.serverTail,n.serverProps===null&&c--,n=0;n<w.length;n++)D=w[n],le=typeof D=="string"?le+(jr(c)+Wa(D,120-2*c)+`
|
|
486
|
+
`):le+Sf(D.type,D.props,jr(c));return m+b+le}function Ir(n){try{return`
|
|
487
487
|
|
|
488
488
|
`+V8(n,0)}catch{return""}}function Of(n,c,m){for(var b=c,w=null,D=0;b;)b===n&&(D=0),w={fiber:b,children:w!==null?[w]:[],serverProps:b===c?m:b===n?null:void 0,serverTail:[],distanceFromLeaf:D},D++,b=b.return;return w!==null?Ir(w).replaceAll(/^[+-]/gm,">"):""}function Cf(n,c){var m=Vt({},n||Bu),b={tag:c};return zl.indexOf(c)!==-1&&(m.aTagInScope=null,m.buttonTagInScope=null,m.nobrTagInScope=null),Ah.indexOf(c)!==-1&&(m.pTagInButtonScope=null),_h.indexOf(c)!==-1&&c!=="address"&&c!=="div"&&c!=="p"&&(m.listItemTagAutoclosing=null,m.dlItemTagAutoclosing=null),m.current=b,c==="form"&&(m.formTag=b),c==="a"&&(m.aTagInScope=b),c==="button"&&(m.buttonTagInScope=b),c==="nobr"&&(m.nobrTagInScope=b),c==="p"&&(m.pTagInButtonScope=b),c==="li"&&(m.listItemTagAutoclosing=b),(c==="dd"||c==="dt")&&(m.dlItemTagAutoclosing=b),c==="#document"||c==="html"?m.containerTagInScope=null:m.containerTagInScope||(m.containerTagInScope=b),n!==null||c!=="#document"&&c!=="html"&&c!=="body"?m.implicitRootScope===!0&&(m.implicitRootScope=!1):m.implicitRootScope=!0,m}function Pi(n,c,m){switch(c){case"select":return n==="hr"||n==="option"||n==="optgroup"||n==="script"||n==="template"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":if(m)break;return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":if(!m)return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return c!=="h1"&&c!=="h2"&&c!=="h3"&&c!=="h4"&&c!=="h5"&&c!=="h6";case"rp":case"rt":return Lv.indexOf(c)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return c==null;case"head":return m||c===null;case"html":return m&&c==="#document"||c===null;case"body":return m&&(c==="#document"||c==="html")||c===null}return!0}function pb(n,c){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return c.pTagInButtonScope;case"form":return c.formTag||c.pTagInButtonScope;case"li":return c.listItemTagAutoclosing;case"dd":case"dt":return c.dlItemTagAutoclosing;case"button":return c.buttonTagInScope;case"a":return c.aTagInScope;case"nobr":return c.nobrTagInScope}return null}function wf(n,c){for(;n;){switch(n.tag){case 5:case 26:case 27:if(n.type===c)return n}n=n.return}return null}function os(n,c){c=c||Bu;var m=c.current;if(c=(m=Pi(n,m&&m.tag,c.implicitRootScope)?null:m)?null:pb(n,c),c=m||c,!c)return!0;var b=c.tag;if(c=String(!!m)+"|"+n+"|"+b,mn[c])return!1;mn[c]=!0;var w=(c=d3)?wf(c.return,b):null,D=c!==null&&w!==null?Of(w,c,null):"",I="<"+n+">";return m?(m="",b==="table"&&n==="tr"&&(m+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
489
489
|
This will cause a hydration error.%s`,I,b,m,D)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
490
490
|
This will cause a hydration error.%s`,I,b,D),c&&(n=c.return,w===null||n===null||w===n&&n._debugOwner===c._debugOwner||ht(w,function(){console.error(`<%s> cannot contain a nested %s.
|
|
491
491
|
See this log for the ancestor stack trace.`,b,I)})),!1}function Ja(n,c,m){if(m||Pi("#text",c,!1))return!0;if(m="#text|"+c,mn[m])return!1;mn[m]=!0;var b=(m=d3)?wf(m,c):null;return m=m!==null&&b!==null?Of(b,m,m.tag!==6?{children:null}:null):"",/\S/.test(n)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
492
492
|
This will cause a hydration error.%s`,c,m):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
493
|
-
This will cause a hydration error.%s`,c,m),!1}function D8(n,c){if(c){var m=n.firstChild;if(m&&m===n.lastChild&&m.nodeType===3){m.nodeValue=c;return}}n.textContent=c}function mb(n){return n.replace(kb,function(c,m){return m.toUpperCase()})}function R8(n,c,m){var b=c.indexOf("--")===0;b||(-1<c.indexOf("-")?Gn.hasOwnProperty(c)&&Gn[c]||(Gn[c]=!0,console.error("Unsupported style property %s. Did you mean %s?",c,mb(c.replace(g0,"ms-")))):ql.test(c)?Gn.hasOwnProperty(c)&&Gn[c]||(Gn[c]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",c,c.charAt(0).toUpperCase()+c.slice(1))):!Oh.test(m)||Ch.hasOwnProperty(m)&&Ch[m]||(Ch[m]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,c,m.replace(Oh,""))),typeof m=="number"&&(isNaN(m)?wh||(wh=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",c)):isFinite(m)||$l||($l=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",c)))),m==null||typeof m=="boolean"||m===""?b?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="":b?n.setProperty(c,m):typeof m!="number"||m===0||Vh.has(c)?c==="float"?n.cssFloat=m:(fe(m,c),n[c]=(""+m).trim()):n[c]=m+"px"}function ls(n,c,m){if(c!=null&&typeof c!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(c&&Object.freeze(c),n=n.style,m!=null){if(c){var b={};if(m){for(var w in m)if(m.hasOwnProperty(w)&&!c.hasOwnProperty(w))for(var D=Un[w]||[w],I=0;I<D.length;I++)b[D[I]]=w}for(var G in c)if(c.hasOwnProperty(G)&&(!m||m[G]!==c[G]))for(w=Un[G]||[G],D=0;D<w.length;D++)b[w[D]]=G;G={};for(var ie in c)for(w=Un[ie]||[ie],D=0;D<w.length;D++)G[w[D]]=ie;ie={};for(var oe in b)if(w=b[oe],(D=G[oe])&&w!==D&&(I=w+","+D,!ie[I])){ie[I]=!0,I=console;var we=c[w];I.error.call(I,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",we==null||typeof we=="boolean"||we===""?"Removing":"Updating",w,D)}}for(var Ne in m)!m.hasOwnProperty(Ne)||c!=null&&c.hasOwnProperty(Ne)||(Ne.indexOf("--")===0?n.setProperty(Ne,""):Ne==="float"?n.cssFloat="":n[Ne]="");for(var Oe in c)oe=c[Oe],c.hasOwnProperty(Oe)&&m[Oe]!==oe&&R8(n,Oe,oe)}else for(b in c)c.hasOwnProperty(b)&&R8(n,b,c[b])}function ji(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}function Ii(n){return ju.get(n)||n}function eo(n,c){if(zn.call(L0,c)&&L0[c])return!0;if(xv.test(c)){if(n="aria-"+c.slice(4).toLowerCase(),n=n7.hasOwnProperty(n)?n:null,n==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),L0[c]=!0;if(c!==n)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,n),L0[c]=!0}if(Iu.test(c)){if(n=c.toLowerCase(),n=n7.hasOwnProperty(n)?n:null,n==null)return L0[c]=!0,!1;c!==n&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,n),L0[c]=!0)}return!0}function vy(n,c){var m=[],b;for(b in c)eo(n,b)||m.push(b);c=m.map(function(w){return"`"+w+"`"}).join(", "),m.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,n):1<m.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,n)}function Vf(n,c,m,b){if(zn.call(e3,c)&&e3[c])return!0;var w=c.toLowerCase();if(w==="onfocusin"||w==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),e3[c]=!0;if(typeof m=="function"&&(n==="form"&&c==="action"||n==="input"&&c==="formAction"||n==="button"&&c==="formAction"))return!0;if(b!=null){if(n=b.possibleRegistrationNames,b.registrationNameDependencies.hasOwnProperty(c))return!0;if(b=n.hasOwnProperty(w)?n[w]:null,b!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",c,b),e3[c]=!0;if(d.test(c))return console.error("Unknown event handler property `%s`. It will be ignored.",c),e3[c]=!0}else if(d.test(c))return y.test(c)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),e3[c]=!0;if(x.test(c)||O.test(c))return!0;if(w==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),e3[c]=!0;if(w==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),e3[c]=!0;if(w==="is"&&m!==null&&m!==void 0&&typeof m!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),e3[c]=!0;if(typeof m=="number"&&isNaN(m))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),e3[c]=!0;if(Ul.hasOwnProperty(w)){if(w=Ul[w],w!==c)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",c,w),e3[c]=!0}else if(c!==w)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,w),e3[c]=!0;switch(c){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof m){case"boolean":switch(c){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return w=c.toLowerCase().slice(0,5),w==="data-"||w==="aria-"?!0:(m?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',m,c,c,m,c):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,c,c,m,c,c,c),e3[c]=!0)}case"function":case"symbol":return e3[c]=!0,!1;case"string":if(m==="false"||m==="true"){switch(c){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,c,m==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,m),e3[c]=!0}}return!0}function gy(n,c,m){var b=[],w;for(w in c)Vf(n,w,c[w],m)||b.push(w);c=b.map(function(D){return"`"+D+"`"}).join(", "),b.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,n):1<b.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,n)}function F5(n){return N.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function U6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}function ss(n){var c=rt(n);if(c&&(n=c.stateNode)){var m=n[y4]||null;e:switch(n=c.stateNode,c.type){case"input":if(Hf(n,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=n;m.parentNode;)m=m.parentNode;for(U(c,"name"),m=m.querySelectorAll('input[name="'+X2(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var b=m[c];if(b!==n&&b.form===n.form){var w=b[y4]||null;if(!w)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Hf(b,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(c=0;c<m.length;c++)b=m[c],b.form===n.form&&bf(b)}break e;case"textarea":Mf(n,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&j5(n,!!m.multiple,c,!1)}}}function to(n,c,m){if(ce)return n(c,m);ce=!0;try{var b=n(c);return b}finally{if(ce=!1,(X!==null||re!==null)&&(ca(),X&&(c=X,n=re,re=X=null,ss(c),n)))for(c=0;c<n.length;c++)ss(n[c])}}function J4(n,c){var m=n.stateNode;if(m===null)return null;var b=m[y4]||null;if(b===null)return null;m=b[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(n=n.type,b=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!b;break e;default:n=!1}if(n)return null;if(m&&typeof m!="function")throw Error("Expected `"+c+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}function us(){if(St)return St;var n,c=Re,m=c.length,b,w="value"in Ae?Ae.value:Ae.textContent,D=w.length;for(n=0;n<m&&c[n]===w[n];n++);var I=m-n;for(b=1;b<=I&&c[m-b]===w[D-b];b++);return St=w.slice(n,1<b?1-b:void 0)}function Fi(n){var c=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&c===13&&(n=13)):n=c,n===10&&(n=13),32<=n||n===13?n:0}function k8(){return!0}function N8(){return!1}function u3(n){function c(m,b,w,D,I){this._reactName=m,this._targetInst=w,this.type=b,this.nativeEvent=D,this.target=I,this.currentTarget=null;for(var G in n)n.hasOwnProperty(G)&&(m=n[G],this[G]=m?m(D):D[G]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?k8:N8,this.isPropagationStopped=N8,this}return Vt(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=k8)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=k8)},persist:function(){},isPersistent:k8}),c}function Ly(n){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(n):(n=iie[n])?!!c[n]:!1}function v3(){return Ly}function Fr(n,c){switch(n){case"keyup":return pie.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==eB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B8(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}function P8(n,c){switch(n){case"compositionend":return B8(c);case"keypress":return c.which!==nB?null:(iB=!0,rB);case"textInput":return n=c.data,n===rB&&iB?null:n;default:return null}}function yb(n,c){if(Fu)return n==="compositionend"||!Bb&&Fr(n,c)?(n=us(),St=Re=Ae=null,Fu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return tB&&c.locale!=="ko"?null:c.data;default:return null}}function cs(n){var c=n&&n.nodeName&&n.nodeName.toLowerCase();return c==="input"?!!yie[n.type]:c==="textarea"}function Df(n){if(!Ee)return!1;n="on"+n;var c=n in document;return c||(c=document.createElement("div"),c.setAttribute(n,"return;"),c=typeof c[n]=="function"),c}function no(n,c,m,b){X?re?re.push(b):re=[b]:X=b,c=x3(c,"onChange"),0<c.length&&(m=new x1("onChange","change",null,m,b),n.push({event:m,listeners:c}))}function Ts(n){Wd(n,0)}function j8(n){var c=xt(n);if(bf(c))return n}function xy(n,c){if(n==="change")return c}function by(){Rh&&(Rh.detachEvent("onpropertychange",Hy),kh=Rh=null)}function Hy(n){if(n.propertyName==="value"&&j8(kh)){var c=[];no(c,kh,n,U6(n)),to(Ts,c)}}function Rf(n,c,m){n==="focusin"?(by(),Rh=c,kh=m,Rh.attachEvent("onpropertychange",Hy)):n==="focusout"&&by()}function vb(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return j8(kh)}function gb(n,c){if(n==="click")return j8(c)}function Lb(n,c){if(n==="input"||n==="change")return j8(c)}function xb(n,c){return n===c&&(n!==0||1/n===1/c)||n!==n&&c!==c}function I8(n,c){if(F4(n,c))return!0;if(typeof n!="object"||n===null||typeof c!="object"||c===null)return!1;var m=Object.keys(n),b=Object.keys(c);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var w=m[b];if(!zn.call(c,w)||!F4(n[w],c[w]))return!1}return!0}function kf(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ey(n,c){var m=kf(n);n=0;for(var b;m;){if(m.nodeType===3){if(b=n+m.textContent.length,n<=c&&b>=c)return{node:m,offset:c-n};n=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=kf(m)}}function My(n,c){return n&&c?n===c?!0:n&&n.nodeType===3?!1:c&&c.nodeType===3?My(n,c.parentNode):"contains"in n?n.contains(c):n.compareDocumentPosition?!!(n.compareDocumentPosition(c)&16):!1:!1}function Sy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var c=C8(n.document);c instanceof n.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)n=c.contentWindow;else break;c=C8(n.document)}return c}function Nf(n){var c=n&&n.nodeName&&n.nodeName.toLowerCase();return c&&(c==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||c==="textarea"||n.contentEditable==="true")}function Qs(n,c,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;jb||zu==null||zu!==C8(b)||(b=zu,"selectionStart"in b&&Nf(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Nh&&I8(Nh,b)||(Nh=b,b=x3(Pb,"onSelect"),0<b.length&&(c=new x1("onSelect","select",null,c,m),n.push({event:c,listeners:b}),c.target=zu)))}function zi(n,c){var m={};return m[n.toLowerCase()]=c.toLowerCase(),m["Webkit"+n]="webkit"+c,m["Moz"+n]="moz"+c,m}function qi(n){if(Ib[n])return Ib[n];if(!qu[n])return n;var c=qu[n],m;for(m in c)if(c.hasOwnProperty(m)&&m in oB)return Ib[n]=c[m];return n}function G6(n,c){TB.set(n,c),Xe(c,[n])}function e4(n,c){if(typeof n=="object"&&n!==null){var m=zb.get(n);return m!==void 0?m:(c={value:n,source:c,stack:py(c)},zb.set(n,c),c)}return{value:n,source:c,stack:py(c)}}function fs(){for(var n=$u,c=$b=$u=0;c<n;){var m=Xn[c];Xn[c++]=null;var b=Xn[c];Xn[c++]=null;var w=Xn[c];Xn[c++]=null;var D=Xn[c];if(Xn[c++]=null,b!==null&&w!==null){var I=b.pending;I===null?w.next=w:(w.next=I.next,I.next=w),b.pending=w}D!==0&&_y(m,w,D)}}function ds(n,c,m,b){Xn[$u++]=n,Xn[$u++]=c,Xn[$u++]=m,Xn[$u++]=b,$b|=b,n.lanes|=b,n=n.alternate,n!==null&&(n.lanes|=b)}function Bf(n,c,m,b){return ds(n,c,m,b),hs(n)}function t4(n,c){return ds(n,null,null,c),hs(n)}function _y(n,c,m){n.lanes|=m;var b=n.alternate;b!==null&&(b.lanes|=m);for(var w=!1,D=n.return;D!==null;)D.childLanes|=m,b=D.alternate,b!==null&&(b.childLanes|=m),D.tag===22&&(n=D.stateNode,n===null||n._visibility&qb||(w=!0)),n=D,D=D.return;return n.tag===3?(D=n.stateNode,w&&c!==null&&(w=31-J2(m),n=D.hiddenUpdates,b=n[w],b===null?n[w]=[c]:b.push(c),c.lane=m|536870912),D):null}function hs(n){if(ap>Iie)throw o9=ap=0,op=LH=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");o9>Fie&&(o9=0,op=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),n.alternate===null&&(n.flags&4098)!==0&&Ud(n);for(var c=n,m=c.return;m!==null;)c.alternate===null&&(c.flags&4098)!==0&&Ud(n),c=m,m=c.return;return c.tag===3?c.stateNode:null}function $i(n){if(Wn===null)return n;var c=Wn(n);return c===void 0?n:c.current}function Pf(n){if(Wn===null)return n;var c=Wn(n);return c===void 0?n!=null&&typeof n.render=="function"&&(c=$i(n.render),n.render!==c)?(c={$$typeof:p0,render:c},n.displayName!==void 0&&(c.displayName=n.displayName),c):n:c.current}function Ay(n,c){if(Wn===null)return!1;var m=n.elementType;c=c.type;var b=!1,w=typeof c=="object"&&c!==null?c.$$typeof:null;switch(n.tag){case 1:typeof c=="function"&&(b=!0);break;case 0:(typeof c=="function"||w===j4)&&(b=!0);break;case 11:(w===p0||w===j4)&&(b=!0);break;case 14:case 15:(w===Su||w===j4)&&(b=!0);break;default:return!1}return!!(b&&(n=Wn(m),n!==void 0&&n===Wn(c)))}function ps(n){Wn!==null&&typeof WeakSet=="function"&&(Uu===null&&(Uu=new WeakSet),Uu.add(n))}function Ui(n,c,m){var b=n.alternate,w=n.child,D=n.sibling,I=n.tag,G=n.type,ie=null;switch(I){case 0:case 15:case 1:ie=G;break;case 11:ie=G.render}if(Wn===null)throw Error("Expected resolveFamily to be set during hot reload.");var oe=!1;G=!1,ie!==null&&(ie=Wn(ie),ie!==void 0&&(m.has(ie)?G=!0:c.has(ie)&&(I===1?G=!0:oe=!0))),Uu!==null&&(Uu.has(n)||b!==null&&Uu.has(b))&&(G=!0),G&&(n._debugNeedsRemount=!0),(G||oe)&&(b=t4(n,2),b!==null&&Kt(b,n,2)),w===null||G||Ui(w,c,m),D!==null&&Ui(D,c,m)}function bb(n,c,m,b){this.tag=n,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,fB||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function ms(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Dn(n,c){var m=n.alternate;switch(m===null?(m=p(n.tag,c,n.key,n.mode),m.elementType=n.elementType,m.type=n.type,m.stateNode=n.stateNode,m._debugOwner=n._debugOwner,m._debugStack=n._debugStack,m._debugTask=n._debugTask,m._debugHookTypes=n._debugHookTypes,m.alternate=n,n.alternate=m):(m.pendingProps=c,m.type=n.type,m.flags=0,m.subtreeFlags=0,m.deletions=null,m.actualDuration=-0,m.actualStartTime=-1.1),m.flags=n.flags&65011712,m.childLanes=n.childLanes,m.lanes=n.lanes,m.child=n.child,m.memoizedProps=n.memoizedProps,m.memoizedState=n.memoizedState,m.updateQueue=n.updateQueue,c=n.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext,_debugThenableState:c._debugThenableState},m.sibling=n.sibling,m.index=n.index,m.ref=n.ref,m.refCleanup=n.refCleanup,m.selfBaseDuration=n.selfBaseDuration,m.treeBaseDuration=n.treeBaseDuration,m._debugInfo=n._debugInfo,m._debugNeedsRemount=n._debugNeedsRemount,m.tag){case 0:case 15:m.type=$i(n.type);break;case 1:m.type=$i(n.type);break;case 11:m.type=Pf(n.type)}return m}function jf(n,c){n.flags&=65011714;var m=n.alternate;return m===null?(n.childLanes=0,n.lanes=c,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0):(n.childLanes=m.childLanes,n.lanes=m.lanes,n.child=m.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=m.memoizedProps,n.memoizedState=m.memoizedState,n.updateQueue=m.updateQueue,n.type=m.type,c=m.dependencies,n.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext,_debugThenableState:c._debugThenableState},n.selfBaseDuration=m.selfBaseDuration,n.treeBaseDuration=m.treeBaseDuration),n}function ys(n,c,m,b,w,D){var I=0,G=n;if(typeof n=="function")ms(n)&&(I=1),G=$i(G);else if(typeof n=="string")I=ne(),I=pu(n,m,I)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case _u:return c=p(31,m,c,w),c.elementType=_u,c.lanes=D,c;case h0:return e6(m.children,w,D,c);case ma:I=8,w|=v4,w|=yr;break;case wl:return n=m,b=w,typeof n.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id),c=p(12,n,c,b|P3),c.elementType=wl,c.lanes=D,c.stateNode={effectDuration:0,passiveEffectDuration:0},c;case m0:return c=p(13,m,c,w),c.elementType=m0,c.lanes=D,c;case Mu:return c=p(19,m,c,w),c.elementType=Mu,c.lanes=D,c;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case cv:case m4:I=10;break e;case Vl:I=9;break e;case p0:I=11,G=Pf(G);break e;case Su:I=14;break e;case j4:I=16,G=null;break e}G="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null?m="null":z2(n)?m="array":n!==void 0&&n.$$typeof===Tr?(m="<"+(k(n.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):m=typeof n,(I=b?B(b):null)&&(G+=`
|
|
493
|
+
This will cause a hydration error.%s`,c,m),!1}function D8(n,c){if(c){var m=n.firstChild;if(m&&m===n.lastChild&&m.nodeType===3){m.nodeValue=c;return}}n.textContent=c}function mb(n){return n.replace(kb,function(c,m){return m.toUpperCase()})}function R8(n,c,m){var b=c.indexOf("--")===0;b||(-1<c.indexOf("-")?Gn.hasOwnProperty(c)&&Gn[c]||(Gn[c]=!0,console.error("Unsupported style property %s. Did you mean %s?",c,mb(c.replace(g0,"ms-")))):ql.test(c)?Gn.hasOwnProperty(c)&&Gn[c]||(Gn[c]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",c,c.charAt(0).toUpperCase()+c.slice(1))):!Oh.test(m)||Ch.hasOwnProperty(m)&&Ch[m]||(Ch[m]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,c,m.replace(Oh,""))),typeof m=="number"&&(isNaN(m)?wh||(wh=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",c)):isFinite(m)||$l||($l=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",c)))),m==null||typeof m=="boolean"||m===""?b?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="":b?n.setProperty(c,m):typeof m!="number"||m===0||Vh.has(c)?c==="float"?n.cssFloat=m:(fe(m,c),n[c]=(""+m).trim()):n[c]=m+"px"}function ls(n,c,m){if(c!=null&&typeof c!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(c&&Object.freeze(c),n=n.style,m!=null){if(c){var b={};if(m){for(var w in m)if(m.hasOwnProperty(w)&&!c.hasOwnProperty(w))for(var D=Un[w]||[w],I=0;I<D.length;I++)b[D[I]]=w}for(var G in c)if(c.hasOwnProperty(G)&&(!m||m[G]!==c[G]))for(w=Un[G]||[G],D=0;D<w.length;D++)b[w[D]]=G;G={};for(var ie in c)for(w=Un[ie]||[ie],D=0;D<w.length;D++)G[w[D]]=ie;ie={};for(var le in b)if(w=b[le],(D=G[le])&&w!==D&&(I=w+","+D,!ie[I])){ie[I]=!0,I=console;var we=c[w];I.error.call(I,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",we==null||typeof we=="boolean"||we===""?"Removing":"Updating",w,D)}}for(var Ne in m)!m.hasOwnProperty(Ne)||c!=null&&c.hasOwnProperty(Ne)||(Ne.indexOf("--")===0?n.setProperty(Ne,""):Ne==="float"?n.cssFloat="":n[Ne]="");for(var Oe in c)le=c[Oe],c.hasOwnProperty(Oe)&&m[Oe]!==le&&R8(n,Oe,le)}else for(b in c)c.hasOwnProperty(b)&&R8(n,b,c[b])}function ji(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}function Ii(n){return ju.get(n)||n}function eo(n,c){if(zn.call(L0,c)&&L0[c])return!0;if(xv.test(c)){if(n="aria-"+c.slice(4).toLowerCase(),n=n7.hasOwnProperty(n)?n:null,n==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),L0[c]=!0;if(c!==n)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,n),L0[c]=!0}if(Iu.test(c)){if(n=c.toLowerCase(),n=n7.hasOwnProperty(n)?n:null,n==null)return L0[c]=!0,!1;c!==n&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,n),L0[c]=!0)}return!0}function vy(n,c){var m=[],b;for(b in c)eo(n,b)||m.push(b);c=m.map(function(w){return"`"+w+"`"}).join(", "),m.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,n):1<m.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,n)}function Vf(n,c,m,b){if(zn.call(e3,c)&&e3[c])return!0;var w=c.toLowerCase();if(w==="onfocusin"||w==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),e3[c]=!0;if(typeof m=="function"&&(n==="form"&&c==="action"||n==="input"&&c==="formAction"||n==="button"&&c==="formAction"))return!0;if(b!=null){if(n=b.possibleRegistrationNames,b.registrationNameDependencies.hasOwnProperty(c))return!0;if(b=n.hasOwnProperty(w)?n[w]:null,b!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",c,b),e3[c]=!0;if(d.test(c))return console.error("Unknown event handler property `%s`. It will be ignored.",c),e3[c]=!0}else if(d.test(c))return y.test(c)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),e3[c]=!0;if(x.test(c)||O.test(c))return!0;if(w==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),e3[c]=!0;if(w==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),e3[c]=!0;if(w==="is"&&m!==null&&m!==void 0&&typeof m!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),e3[c]=!0;if(typeof m=="number"&&isNaN(m))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),e3[c]=!0;if(Ul.hasOwnProperty(w)){if(w=Ul[w],w!==c)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",c,w),e3[c]=!0}else if(c!==w)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,w),e3[c]=!0;switch(c){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof m){case"boolean":switch(c){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return w=c.toLowerCase().slice(0,5),w==="data-"||w==="aria-"?!0:(m?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',m,c,c,m,c):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,c,c,m,c,c,c),e3[c]=!0)}case"function":case"symbol":return e3[c]=!0,!1;case"string":if(m==="false"||m==="true"){switch(c){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,c,m==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,m),e3[c]=!0}}return!0}function gy(n,c,m){var b=[],w;for(w in c)Vf(n,w,c[w],m)||b.push(w);c=b.map(function(D){return"`"+D+"`"}).join(", "),b.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,n):1<b.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,n)}function F5(n){return N.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function U6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}function ss(n){var c=rt(n);if(c&&(n=c.stateNode)){var m=n[y4]||null;e:switch(n=c.stateNode,c.type){case"input":if(Hf(n,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=n;m.parentNode;)m=m.parentNode;for(U(c,"name"),m=m.querySelectorAll('input[name="'+X2(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var b=m[c];if(b!==n&&b.form===n.form){var w=b[y4]||null;if(!w)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Hf(b,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(c=0;c<m.length;c++)b=m[c],b.form===n.form&&bf(b)}break e;case"textarea":Mf(n,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&j5(n,!!m.multiple,c,!1)}}}function to(n,c,m){if(ce)return n(c,m);ce=!0;try{var b=n(c);return b}finally{if(ce=!1,(X!==null||re!==null)&&(ca(),X&&(c=X,n=re,re=X=null,ss(c),n)))for(c=0;c<n.length;c++)ss(n[c])}}function J4(n,c){var m=n.stateNode;if(m===null)return null;var b=m[y4]||null;if(b===null)return null;m=b[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(n=n.type,b=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!b;break e;default:n=!1}if(n)return null;if(m&&typeof m!="function")throw Error("Expected `"+c+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}function us(){if(St)return St;var n,c=Re,m=c.length,b,w="value"in Ae?Ae.value:Ae.textContent,D=w.length;for(n=0;n<m&&c[n]===w[n];n++);var I=m-n;for(b=1;b<=I&&c[m-b]===w[D-b];b++);return St=w.slice(n,1<b?1-b:void 0)}function Fi(n){var c=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&c===13&&(n=13)):n=c,n===10&&(n=13),32<=n||n===13?n:0}function k8(){return!0}function N8(){return!1}function u3(n){function c(m,b,w,D,I){this._reactName=m,this._targetInst=w,this.type=b,this.nativeEvent=D,this.target=I,this.currentTarget=null;for(var G in n)n.hasOwnProperty(G)&&(m=n[G],this[G]=m?m(D):D[G]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?k8:N8,this.isPropagationStopped=N8,this}return Vt(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=k8)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=k8)},persist:function(){},isPersistent:k8}),c}function Ly(n){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(n):(n=iie[n])?!!c[n]:!1}function v3(){return Ly}function Fr(n,c){switch(n){case"keyup":return pie.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==eB;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B8(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}function P8(n,c){switch(n){case"compositionend":return B8(c);case"keypress":return c.which!==nB?null:(iB=!0,rB);case"textInput":return n=c.data,n===rB&&iB?null:n;default:return null}}function yb(n,c){if(Fu)return n==="compositionend"||!Bb&&Fr(n,c)?(n=us(),St=Re=Ae=null,Fu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return tB&&c.locale!=="ko"?null:c.data;default:return null}}function cs(n){var c=n&&n.nodeName&&n.nodeName.toLowerCase();return c==="input"?!!yie[n.type]:c==="textarea"}function Df(n){if(!Ee)return!1;n="on"+n;var c=n in document;return c||(c=document.createElement("div"),c.setAttribute(n,"return;"),c=typeof c[n]=="function"),c}function no(n,c,m,b){X?re?re.push(b):re=[b]:X=b,c=x3(c,"onChange"),0<c.length&&(m=new x1("onChange","change",null,m,b),n.push({event:m,listeners:c}))}function Ts(n){Wd(n,0)}function j8(n){var c=xt(n);if(bf(c))return n}function xy(n,c){if(n==="change")return c}function by(){Rh&&(Rh.detachEvent("onpropertychange",Hy),kh=Rh=null)}function Hy(n){if(n.propertyName==="value"&&j8(kh)){var c=[];no(c,kh,n,U6(n)),to(Ts,c)}}function Rf(n,c,m){n==="focusin"?(by(),Rh=c,kh=m,Rh.attachEvent("onpropertychange",Hy)):n==="focusout"&&by()}function vb(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return j8(kh)}function gb(n,c){if(n==="click")return j8(c)}function Lb(n,c){if(n==="input"||n==="change")return j8(c)}function xb(n,c){return n===c&&(n!==0||1/n===1/c)||n!==n&&c!==c}function I8(n,c){if(F4(n,c))return!0;if(typeof n!="object"||n===null||typeof c!="object"||c===null)return!1;var m=Object.keys(n),b=Object.keys(c);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var w=m[b];if(!zn.call(c,w)||!F4(n[w],c[w]))return!1}return!0}function kf(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ey(n,c){var m=kf(n);n=0;for(var b;m;){if(m.nodeType===3){if(b=n+m.textContent.length,n<=c&&b>=c)return{node:m,offset:c-n};n=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=kf(m)}}function My(n,c){return n&&c?n===c?!0:n&&n.nodeType===3?!1:c&&c.nodeType===3?My(n,c.parentNode):"contains"in n?n.contains(c):n.compareDocumentPosition?!!(n.compareDocumentPosition(c)&16):!1:!1}function Sy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var c=C8(n.document);c instanceof n.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)n=c.contentWindow;else break;c=C8(n.document)}return c}function Nf(n){var c=n&&n.nodeName&&n.nodeName.toLowerCase();return c&&(c==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||c==="textarea"||n.contentEditable==="true")}function Qs(n,c,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;jb||zu==null||zu!==C8(b)||(b=zu,"selectionStart"in b&&Nf(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Nh&&I8(Nh,b)||(Nh=b,b=x3(Pb,"onSelect"),0<b.length&&(c=new x1("onSelect","select",null,c,m),n.push({event:c,listeners:b}),c.target=zu)))}function zi(n,c){var m={};return m[n.toLowerCase()]=c.toLowerCase(),m["Webkit"+n]="webkit"+c,m["Moz"+n]="moz"+c,m}function qi(n){if(Ib[n])return Ib[n];if(!qu[n])return n;var c=qu[n],m;for(m in c)if(c.hasOwnProperty(m)&&m in oB)return Ib[n]=c[m];return n}function G6(n,c){TB.set(n,c),Xe(c,[n])}function e4(n,c){if(typeof n=="object"&&n!==null){var m=zb.get(n);return m!==void 0?m:(c={value:n,source:c,stack:py(c)},zb.set(n,c),c)}return{value:n,source:c,stack:py(c)}}function fs(){for(var n=$u,c=$b=$u=0;c<n;){var m=Xn[c];Xn[c++]=null;var b=Xn[c];Xn[c++]=null;var w=Xn[c];Xn[c++]=null;var D=Xn[c];if(Xn[c++]=null,b!==null&&w!==null){var I=b.pending;I===null?w.next=w:(w.next=I.next,I.next=w),b.pending=w}D!==0&&_y(m,w,D)}}function ds(n,c,m,b){Xn[$u++]=n,Xn[$u++]=c,Xn[$u++]=m,Xn[$u++]=b,$b|=b,n.lanes|=b,n=n.alternate,n!==null&&(n.lanes|=b)}function Bf(n,c,m,b){return ds(n,c,m,b),hs(n)}function t4(n,c){return ds(n,null,null,c),hs(n)}function _y(n,c,m){n.lanes|=m;var b=n.alternate;b!==null&&(b.lanes|=m);for(var w=!1,D=n.return;D!==null;)D.childLanes|=m,b=D.alternate,b!==null&&(b.childLanes|=m),D.tag===22&&(n=D.stateNode,n===null||n._visibility&qb||(w=!0)),n=D,D=D.return;return n.tag===3?(D=n.stateNode,w&&c!==null&&(w=31-J2(m),n=D.hiddenUpdates,b=n[w],b===null?n[w]=[c]:b.push(c),c.lane=m|536870912),D):null}function hs(n){if(ap>Iie)throw o9=ap=0,op=LH=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");o9>Fie&&(o9=0,op=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),n.alternate===null&&(n.flags&4098)!==0&&Ud(n);for(var c=n,m=c.return;m!==null;)c.alternate===null&&(c.flags&4098)!==0&&Ud(n),c=m,m=c.return;return c.tag===3?c.stateNode:null}function $i(n){if(Wn===null)return n;var c=Wn(n);return c===void 0?n:c.current}function Pf(n){if(Wn===null)return n;var c=Wn(n);return c===void 0?n!=null&&typeof n.render=="function"&&(c=$i(n.render),n.render!==c)?(c={$$typeof:p0,render:c},n.displayName!==void 0&&(c.displayName=n.displayName),c):n:c.current}function Ay(n,c){if(Wn===null)return!1;var m=n.elementType;c=c.type;var b=!1,w=typeof c=="object"&&c!==null?c.$$typeof:null;switch(n.tag){case 1:typeof c=="function"&&(b=!0);break;case 0:(typeof c=="function"||w===j4)&&(b=!0);break;case 11:(w===p0||w===j4)&&(b=!0);break;case 14:case 15:(w===Su||w===j4)&&(b=!0);break;default:return!1}return!!(b&&(n=Wn(m),n!==void 0&&n===Wn(c)))}function ps(n){Wn!==null&&typeof WeakSet=="function"&&(Uu===null&&(Uu=new WeakSet),Uu.add(n))}function Ui(n,c,m){var b=n.alternate,w=n.child,D=n.sibling,I=n.tag,G=n.type,ie=null;switch(I){case 0:case 15:case 1:ie=G;break;case 11:ie=G.render}if(Wn===null)throw Error("Expected resolveFamily to be set during hot reload.");var le=!1;G=!1,ie!==null&&(ie=Wn(ie),ie!==void 0&&(m.has(ie)?G=!0:c.has(ie)&&(I===1?G=!0:le=!0))),Uu!==null&&(Uu.has(n)||b!==null&&Uu.has(b))&&(G=!0),G&&(n._debugNeedsRemount=!0),(G||le)&&(b=t4(n,2),b!==null&&Kt(b,n,2)),w===null||G||Ui(w,c,m),D!==null&&Ui(D,c,m)}function bb(n,c,m,b){this.tag=n,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,fB||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function ms(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Dn(n,c){var m=n.alternate;switch(m===null?(m=p(n.tag,c,n.key,n.mode),m.elementType=n.elementType,m.type=n.type,m.stateNode=n.stateNode,m._debugOwner=n._debugOwner,m._debugStack=n._debugStack,m._debugTask=n._debugTask,m._debugHookTypes=n._debugHookTypes,m.alternate=n,n.alternate=m):(m.pendingProps=c,m.type=n.type,m.flags=0,m.subtreeFlags=0,m.deletions=null,m.actualDuration=-0,m.actualStartTime=-1.1),m.flags=n.flags&65011712,m.childLanes=n.childLanes,m.lanes=n.lanes,m.child=n.child,m.memoizedProps=n.memoizedProps,m.memoizedState=n.memoizedState,m.updateQueue=n.updateQueue,c=n.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext,_debugThenableState:c._debugThenableState},m.sibling=n.sibling,m.index=n.index,m.ref=n.ref,m.refCleanup=n.refCleanup,m.selfBaseDuration=n.selfBaseDuration,m.treeBaseDuration=n.treeBaseDuration,m._debugInfo=n._debugInfo,m._debugNeedsRemount=n._debugNeedsRemount,m.tag){case 0:case 15:m.type=$i(n.type);break;case 1:m.type=$i(n.type);break;case 11:m.type=Pf(n.type)}return m}function jf(n,c){n.flags&=65011714;var m=n.alternate;return m===null?(n.childLanes=0,n.lanes=c,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0):(n.childLanes=m.childLanes,n.lanes=m.lanes,n.child=m.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=m.memoizedProps,n.memoizedState=m.memoizedState,n.updateQueue=m.updateQueue,n.type=m.type,c=m.dependencies,n.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext,_debugThenableState:c._debugThenableState},n.selfBaseDuration=m.selfBaseDuration,n.treeBaseDuration=m.treeBaseDuration),n}function ys(n,c,m,b,w,D){var I=0,G=n;if(typeof n=="function")ms(n)&&(I=1),G=$i(G);else if(typeof n=="string")I=ne(),I=pu(n,m,I)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case _u:return c=p(31,m,c,w),c.elementType=_u,c.lanes=D,c;case h0:return e6(m.children,w,D,c);case ma:I=8,w|=v4,w|=yr;break;case wl:return n=m,b=w,typeof n.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id),c=p(12,n,c,b|P3),c.elementType=wl,c.lanes=D,c.stateNode={effectDuration:0,passiveEffectDuration:0},c;case m0:return c=p(13,m,c,w),c.elementType=m0,c.lanes=D,c;case Mu:return c=p(19,m,c,w),c.elementType=Mu,c.lanes=D,c;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case cv:case m4:I=10;break e;case Vl:I=9;break e;case p0:I=11,G=Pf(G);break e;case Su:I=14;break e;case j4:I=16,G=null;break e}G="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null?m="null":z2(n)?m="array":n!==void 0&&n.$$typeof===Tr?(m="<"+(k(n.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):m=typeof n,(I=b?B(b):null)&&(G+=`
|
|
494
494
|
|
|
495
495
|
Check the render method of \``+I+"`."),I=29,m=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(m+"."+G)),G=null}return c=p(I,m,c,w),c.elementType=n,c.type=G,c.lanes=D,c._debugOwner=b,c}function F8(n,c,m){return c=ys(n.type,n.key,n.props,n._owner,c,m),c._debugOwner=n._owner,c._debugStack=n._debugStack,c._debugTask=n._debugTask,c}function e6(n,c,m,b){return n=p(7,n,b,c),n.lanes=m,n}function If(n,c,m){return n=p(6,n,null,c),n.lanes=m,n}function Ff(n,c,m){return c=p(4,n.children!==null?n.children:[],n.key,c),c.lanes=m,c.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},c}function Gi(n,c){Z6(),Gu[Zu++]=Ev,Gu[Zu++]=Hv,Hv=n,Ev=c}function zf(n,c,m){Z6(),Yn[Kn++]=La,Yn[Kn++]=xa,Yn[Kn++]=Zl,Zl=n;var b=La;n=xa;var w=32-J2(b)-1;b&=~(1<<w),m+=1;var D=32-J2(c)+w;if(30<D){var I=w-w%5;D=(b&(1<<I)-1).toString(32),b>>=I,w-=I,La=1<<32-J2(c)+w|m<<w|b,xa=D+n}else La=1<<D|m<<w|b,xa=n}function vs(n){Z6(),n.return!==null&&(Gi(n,1),zf(n,1,0))}function Zi(n){for(;n===Hv;)Hv=Gu[--Zu],Gu[Zu]=null,Ev=Gu[--Zu],Gu[Zu]=null;for(;n===Zl;)Zl=Yn[--Kn],Yn[Kn]=null,xa=Yn[--Kn],Yn[Kn]=null,La=Yn[--Kn],Yn[Kn]=null}function Z6(){v1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Xi(n,c){if(n.return===null){if(Jn===null)Jn={fiber:n,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:c};else{if(Jn.fiber!==n)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Jn.distanceFromLeaf>c&&(Jn.distanceFromLeaf=c)}return Jn}var m=Xi(n.return,c+1).children;return 0<m.length&&m[m.length-1].fiber===n?(m=m[m.length-1],m.distanceFromLeaf>c&&(m.distanceFromLeaf=c),m):(c={fiber:n,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:c},m.push(c),c)}function ro(n,c){ba||(n=Xi(n,0),n.serverProps=null,c!==null&&(c=Tu(c),n.serverTail.push(c)))}function zr(n){var c="",m=Jn;throw m!==null&&(Jn=null,c=Ir(m)),ao(e4(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
496
496
|
|
|
@@ -514,7 +514,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
514
514
|
|
|
515
515
|
%s%s`,"https://react.dev/link/hydration-mismatch",c)})}}function Ls(){Xu=Mv=null,Wu=!1}function qr(n,c,m){$(Gb,c._currentValue,n),c._currentValue=m,$(Zb,c._currentRenderer,n),c._currentRenderer!==void 0&&c._currentRenderer!==null&&c._currentRenderer!==mB&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),c._currentRenderer=mB}function z5(n,c){n._currentValue=Gb.current;var m=Zb.current;q(Zb,c),n._currentRenderer=m,q(Gb,c)}function Uf(n,c,m){for(;n!==null;){var b=n.alternate;if((n.childLanes&c)!==c?(n.childLanes|=c,b!==null&&(b.childLanes|=c)):b!==null&&(b.childLanes&c)!==c&&(b.childLanes|=c),n===m)break;n=n.return}n!==m&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function R3(n,c,m,b){var w=n.child;for(w!==null&&(w.return=n);w!==null;){var D=w.dependencies;if(D!==null){var I=w.child;D=D.firstContext;e:for(;D!==null;){var G=D;D=w;for(var ie=0;ie<c.length;ie++)if(G.context===c[ie]){D.lanes|=m,G=D.alternate,G!==null&&(G.lanes|=m),Uf(D.return,m,n),b||(I=null);break e}D=G.next}}else if(w.tag===18){if(I=w.return,I===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");I.lanes|=m,D=I.alternate,D!==null&&(D.lanes|=m),Uf(I,m,n),I=null}else I=w.child;if(I!==null)I.return=w;else for(I=w;I!==null;){if(I===n){I=null;break}if(w=I.sibling,w!==null){w.return=I.return,I=w;break}I=I.return}w=I}}function q5(n,c,m,b){n=null;for(var w=c,D=!1;w!==null;){if(!D){if((w.flags&524288)!==0)D=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var I=w.alternate;if(I===null)throw Error("Should have a current fiber. This is a bug in React.");if(I=I.memoizedProps,I!==null){var G=w.type;F4(w.pendingProps.value,I.value)||(n!==null?n.push(G):n=[G])}}else if(w===Au.current){if(I=w.alternate,I===null)throw Error("Should have a current fiber. This is a bug in React.");I.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(n!==null?n.push(Tp):n=[Tp])}w=w.return}n!==null&&R3(c,n,m,b),c.flags|=262144}function z8(n){for(n=n.firstContext;n!==null;){if(!F4(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function $r(n){Mv=n,Xu=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function K1(n){return Wu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),xs(Mv,n)}function q8(n,c){return Mv===null&&$r(n),xs(n,c)}function xs(n,c){var m=c._currentValue;if(c={context:c,memoizedValue:m,next:null},Xu===null){if(n===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Xu=c,n.dependencies={lanes:0,firstContext:c,_debugThenableState:null},n.flags|=524288}else Xu=Xu.next=c;return m}function Gf(){return{controller:new Mie,data:new Map,refCount:0}}function t6(n){n.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),n.refCount++}function Yi(n){n.refCount--,0>n.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),n.refCount===0&&Sie(_ie,function(){n.controller.abort()})}function w4(){var n=Wl;return Wl=0,n}function oo(n){var c=Wl;return Wl=n,c}function lo(n){var c=Wl;return Wl+=n,c}function $5(n){T6=Yu(),0>n.actualStartTime&&(n.actualStartTime=T6)}function Ur(n){if(0<=T6){var c=Yu()-T6;n.actualDuration+=c,n.selfBaseDuration=c,T6=-1}}function bs(n){if(0<=T6){var c=Yu()-T6;n.actualDuration+=c,T6=-1}}function X6(){if(0<=T6){var n=Yu()-T6;T6=-1,Wl+=n}}function g3(){T6=Yu()}function $8(n){for(var c=n.child;c;)n.actualDuration+=c.actualDuration,c=c.sibling}function Cy(n,c){if(Bh===null){var m=Bh=[];Xb=0,Yl=lu(),Ku={status:"pending",value:void 0,then:function(b){m.push(b)}}}return Xb++,c.then(Zf,Zf),c}function Zf(){if(--Xb===0&&Bh!==null){Ku!==null&&(Ku.status="fulfilled");var n=Bh;Bh=null,Yl=0,Ku=null;for(var c=0;c<n.length;c++)(0,n[c])()}}function Hb(n,c){var m=[],b={status:"pending",value:null,reason:null,then:function(w){m.push(w)}};return n.then(function(){b.status="fulfilled",b.value=c;for(var w=0;w<m.length;w++)(0,m[w])(c)},function(w){for(b.status="rejected",b.reason=w,w=0;w<m.length;w++)(0,m[w])(void 0)}),b}function Xf(){var n=Kl.current;return n!==null?n:n2.pooledCache}function Hs(n,c){c===null?$(Kl,Kl.current,n):$(Kl,c.pool,n)}function Wf(){var n=Xf();return n===null?null:{parent:h3._currentValue,pool:n}}function Yf(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Es(n){return n=n.status,n==="fulfilled"||n==="rejected"}function n4(){}function Kf(n,c,m){Ce.actQueue!==null&&(Ce.didUsePromise=!0);var b=n.thenables;switch(m=b[m],m===void 0?b.push(c):m!==c&&(n.didWarnAboutUncachedPromise||(n.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),c.then(n4,n4),c=m),c.status){case"fulfilled":return c.value;case"rejected":throw n=c.reason,D4(n),n;default:if(typeof c.status=="string")c.then(n4,n4);else{if(n=n2,n!==null&&100<n.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");n=c,n.status="pending",n.then(function(w){if(c.status==="pending"){var D=c;D.status="fulfilled",D.value=w}},function(w){if(c.status==="pending"){var D=c;D.status="rejected",D.reason=w}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw n=c.reason,D4(n),n}throw Uh=c,wv=!0,$h}}function V4(){if(Uh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var n=Uh;return Uh=null,wv=!1,n}function D4(n){if(n===$h||n===Cv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Gr(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function U8(n,c){n=n.updateQueue,c.updateQueue===n&&(c.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function W6(n){return{lane:n,tag:xB,payload:null,callback:null,next:null}}function Y6(n,c,m){var b=n.updateQueue;if(b===null)return null;if(b=b.shared,Kb===b&&!EB){var w=R(n);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
516
516
|
|
|
517
|
-
Please update the following component: %s`,w),EB=!0}return(A1&$4)!==yn?(w=b.pending,w===null?c.next=c:(c.next=w.next,w.next=c),b.pending=c,c=hs(n),_y(n,null,m),c):(ds(n,b,c,m),hs(n))}function Ki(n,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var b=c.lanes;b&=n.pendingLanes,m|=b,c.lanes=m,De(n,m)}}function U5(n,c){var m=n.updateQueue,b=n.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var w=null,D=null;if(m=m.firstBaseUpdate,m!==null){do{var I={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};D===null?w=D=I:D=D.next=I,m=m.next}while(m!==null);D===null?w=D=c:D=D.next=c}else w=D=c;m={baseState:b.baseState,firstBaseUpdate:w,lastBaseUpdate:D,shared:b.shared,callbacks:b.callbacks},n.updateQueue=m;return}n=m.lastBaseUpdate,n===null?m.firstBaseUpdate=c:n.next=c,m.lastBaseUpdate=c}function so(){if(Jb){var n=Ku;if(n!==null)throw n}}function Zr(n,c,m,b){Jb=!1;var w=n.updateQueue;i7=!1,Kb=w.shared;var D=w.firstBaseUpdate,I=w.lastBaseUpdate,G=w.shared.pending;if(G!==null){w.shared.pending=null;var ie=G,
|
|
517
|
+
Please update the following component: %s`,w),EB=!0}return(A1&$4)!==yn?(w=b.pending,w===null?c.next=c:(c.next=w.next,w.next=c),b.pending=c,c=hs(n),_y(n,null,m),c):(ds(n,b,c,m),hs(n))}function Ki(n,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var b=c.lanes;b&=n.pendingLanes,m|=b,c.lanes=m,De(n,m)}}function U5(n,c){var m=n.updateQueue,b=n.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var w=null,D=null;if(m=m.firstBaseUpdate,m!==null){do{var I={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};D===null?w=D=I:D=D.next=I,m=m.next}while(m!==null);D===null?w=D=c:D=D.next=c}else w=D=c;m={baseState:b.baseState,firstBaseUpdate:w,lastBaseUpdate:D,shared:b.shared,callbacks:b.callbacks},n.updateQueue=m;return}n=m.lastBaseUpdate,n===null?m.firstBaseUpdate=c:n.next=c,m.lastBaseUpdate=c}function so(){if(Jb){var n=Ku;if(n!==null)throw n}}function Zr(n,c,m,b){Jb=!1;var w=n.updateQueue;i7=!1,Kb=w.shared;var D=w.firstBaseUpdate,I=w.lastBaseUpdate,G=w.shared.pending;if(G!==null){w.shared.pending=null;var ie=G,le=ie.next;ie.next=null,I===null?D=le:I.next=le,I=ie;var we=n.alternate;we!==null&&(we=we.updateQueue,G=we.lastBaseUpdate,G!==I&&(G===null?we.firstBaseUpdate=le:G.next=le,we.lastBaseUpdate=ie))}if(D!==null){var Ne=w.baseState;I=0,we=le=ie=null,G=D;do{var Oe=G.lane&-536870913,Be=Oe!==G.lane;if(Be?(a1&Oe)===Oe:(b&Oe)===Oe){Oe!==0&&Oe===Yl&&(Jb=!0),we!==null&&(we=we.next={lane:0,tag:G.tag,payload:G.payload,callback:null,next:null});e:{Oe=n;var Qt=G,Ot=c,r2=m;switch(Qt.tag){case bB:if(Qt=Qt.payload,typeof Qt=="function"){Wu=!0;var l1=Qt.call(r2,Ne,Ot);if(Oe.mode&v4){se(!0);try{Qt.call(r2,Ne,Ot)}finally{se(!1)}}Wu=!1,Ne=l1;break e}Ne=Qt;break e;case Yb:Oe.flags=Oe.flags&-65537|128;case xB:if(l1=Qt.payload,typeof l1=="function"){if(Wu=!0,Qt=l1.call(r2,Ne,Ot),Oe.mode&v4){se(!0);try{l1.call(r2,Ne,Ot)}finally{se(!1)}}Wu=!1}else Qt=l1;if(Qt==null)break e;Ne=Vt({},Ne,Qt);break e;case HB:i7=!0}}Oe=G.callback,Oe!==null&&(n.flags|=64,Be&&(n.flags|=8192),Be=w.callbacks,Be===null?w.callbacks=[Oe]:Be.push(Oe))}else Be={lane:Oe,tag:G.tag,payload:G.payload,callback:G.callback,next:null},we===null?(le=we=Be,ie=Ne):we=we.next=Be,I|=Oe;if(G=G.next,G===null){if(G=w.shared.pending,G===null)break;Be=G,G=Be.next,Be.next=null,w.lastBaseUpdate=Be,w.shared.pending=null}}while(!0);we===null&&(ie=Ne),w.baseState=ie,w.firstBaseUpdate=le,w.lastBaseUpdate=we,D===null&&(w.shared.lanes=0),s7|=I,n.lanes=I,n.memoizedState=Ne}Kb=null}function Ji(n,c){if(typeof n!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+n);n.call(c)}function Eb(n,c){var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Ji(m[n],c)}function r4(n,c){var m=n.callbacks;if(m!==null)for(n.callbacks=null,n=0;n<m.length;n++)Ji(m[n],c)}function Ms(n,c){var m=E0;$(Vv,m,n),$(Ju,c,n),E0=m|c.baseLanes}function K6(n){$(Vv,E0,n),$(Ju,Ju.current,n)}function Ss(n){E0=Vv.current,q(Ju,n),q(Vv,n)}function It(){var n=ke;n5===null?n5=[n]:n5.push(n)}function Ge(){var n=ke;if(n5!==null&&(Ea++,n5[Ea]!==n)){var c=R(Dt);if(!MB.has(c)&&(MB.add(c),n5!==null)){for(var m="",b=0;b<=Ea;b++){var w=n5[b],D=b===Ea?n:w;for(w=b+1+". "+w;30>w.length;)w+=" ";w+=D+`
|
|
518
518
|
`,m+=w}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
519
519
|
|
|
520
520
|
Previous render Next render
|
|
@@ -527,14 +527,14 @@ Please update the following component: %s`,w),EB=!0}return(A1&$4)!==yn?(w=b.pend
|
|
|
527
527
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Wr(n,c){if(Zh)return!1;if(c===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ke),!1;n.length!==c.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
528
528
|
|
|
529
529
|
Previous: %s
|
|
530
|
-
Incoming: %s`,ke,"["+c.join(", ")+"]","["+n.join(", ")+"]");for(var m=0;m<c.length&&m<n.length;m++)if(!F4(n[m],c[m]))return!1;return!0}function co(n,c,m,b,w,D){a7=D,Dt=c,n5=n!==null?n._debugHookTypes:null,Ea=-1,Zh=n!==null&&n.type!==c.type,(Object.prototype.toString.call(m)==="[object AsyncFunction]"||Object.prototype.toString.call(m)==="[object AsyncGeneratorFunction]")&&(D=R(Dt),eH.has(D)||(eH.add(D),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",D===null?"An unknown Component":"<"+D+">"))),c.memoizedState=null,c.updateQueue=null,c.lanes=0,Ce.H=n!==null&&n.memoizedState!==null?nH:n5!==null?AB:tH,e9=D=(c.mode&v4)!==l2;var I=rH(m,b,w);if(e9=!1,tc&&(I=i4(c,m,b,w)),D){se(!0);try{I=i4(c,m,b,w)}finally{se(!1)}}return G8(n,c),I}function G8(n,c){c._debugHookTypes=n5,c.dependencies===null?Ha!==null&&(c.dependencies={lanes:0,firstContext:null,_debugThenableState:Ha}):c.dependencies._debugThenableState=Ha,Ce.H=kv;var m=U1!==null&&U1.next!==null;if(a7=0,n5=ke=n3=U1=Dt=null,Ea=-1,n!==null&&(n.flags&65011712)!==(c.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dv=!1,Gh=0,Ha=null,m)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");n===null||H3||(n=n.dependencies,n!==null&&z8(n)&&(H3=!0)),wv?(wv=!1,n=!0):n=!1,n&&(c=R(c)||"Unknown",SB.has(c)||eH.has(c)||(SB.add(c),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function i4(n,c,m,b){Dt=n;var w=0;do{if(tc&&(Ha=null),Gh=0,tc=!1,w>=Oie)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(w+=1,Zh=!1,n3=U1=null,n.updateQueue!=null){var D=n.updateQueue;D.lastEffect=null,D.events=null,D.stores=null,D.memoCache!=null&&(D.memoCache.index=0)}Ea=-1,Ce.H=OB,D=rH(c,m,b)}while(tc);return D}function n6(){var n=Ce.H,c=n.useState()[0];return c=typeof c.then=="function"?ea(c):c,n=n.useState()[0],(U1!==null?U1.memoizedState:null)!==n&&(Dt.flags|=1024),c}function G5(){var n=Rv!==0;return Rv=0,n}function J6(n,c,m){c.updateQueue=n.updateQueue,c.flags=(c.mode&yr)!==l2?c.flags&-402655237:c.flags&-2053,n.lanes&=~m}function en(n){if(Dv){for(n=n.memoizedState;n!==null;){var c=n.queue;c!==null&&(c.pending=null),n=n.next}Dv=!1}a7=0,n5=n3=U1=Dt=null,Ea=-1,ke=null,tc=!1,Gh=Rv=0,Ha=null}function A2(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return n3===null?Dt.memoizedState=n3=n:n3=n3.next=n,n3}function H1(){if(U1===null){var n=Dt.alternate;n=n!==null?n.memoizedState:null}else n=U1.next;var c=n3===null?Dt.memoizedState:n3.next;if(c!==null)n3=c,U1=n;else{if(n===null)throw Dt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");U1=n,n={memoizedState:U1.memoizedState,baseState:U1.baseState,baseQueue:U1.baseQueue,queue:U1.queue,next:null},n3===null?Dt.memoizedState=n3=n:n3=n3.next=n}return n3}function Z8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ea(n){var c=Gh;return Gh+=1,Ha===null&&(Ha=Yf()),n=Kf(Ha,n,c),c=Dt,(n3===null?c.memoizedState:n3.next)===null&&(c=c.alternate,Ce.H=c!==null&&c.memoizedState!==null?nH:tH),n}function p2(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ea(n);if(n.$$typeof===m4)return K1(n)}throw Error("An unsupported type was passed to use(): "+String(n))}function R1(n){var c=null,m=Dt.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var b=Dt.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(c={data:b.data.map(function(w){return w.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=Z8(),Dt.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0||Zh)for(m=c.data[c.index]=Array(n),b=0;b<n;b++)m[b]=Tv;else m.length!==n&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",m.length,n);return c.index++,m}function Ft(n,c){return typeof c=="function"?c(n):c}function Z5(n,c,m){var b=A2();if(m!==void 0){var w=m(c);if(e9){se(!0);try{m(c)}finally{se(!1)}}}else w=c;return b.memoizedState=b.baseState=w,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:w},b.queue=n,n=n.dispatch=il.bind(null,Dt,n),[b.memoizedState,n]}function k3(n){var c=H1();return X8(c,U1,n)}function X8(n,c,m){var b=n.queue;if(b===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");b.lastRenderedReducer=m;var w=n.baseQueue,D=b.pending;if(D!==null){if(w!==null){var I=w.next;w.next=D.next,D.next=I}c.baseQueue!==w&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),c.baseQueue=w=D,b.pending=null}if(D=n.baseState,w===null)n.memoizedState=D;else{c=w.next;var G=I=null,ie=null,oe=c,we=!1;do{var Ne=oe.lane&-536870913;if(Ne!==oe.lane?(a1&Ne)===Ne:(a7&Ne)===Ne){var Oe=oe.revertLane;if(Oe===0)ie!==null&&(ie=ie.next={lane:0,revertLane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),Ne===Yl&&(we=!0);else if((a7&Oe)===Oe){oe=oe.next,Oe===Yl&&(we=!0);continue}else Ne={lane:0,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},ie===null?(G=ie=Ne,I=D):ie=ie.next=Ne,Dt.lanes|=Oe,s7|=Oe;Ne=oe.action,e9&&m(D,Ne),D=oe.hasEagerState?oe.eagerState:m(D,Ne)}else Oe={lane:Ne,revertLane:oe.revertLane,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},ie===null?(G=ie=Oe,I=D):ie=ie.next=Oe,Dt.lanes|=Ne,s7|=Ne;oe=oe.next}while(oe!==null&&oe!==c);if(ie===null?I=D:ie.next=G,!F4(D,n.memoizedState)&&(H3=!0,we&&(m=Ku,m!==null)))throw m;n.memoizedState=D,n.baseState=I,n.baseQueue=ie,b.lastRenderedState=D}return w===null&&(b.lanes=0),[n.memoizedState,b.dispatch]}function tn(n){var c=H1(),m=c.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=n;var b=m.dispatch,w=m.pending,D=c.memoizedState;if(w!==null){m.pending=null;var I=w=w.next;do D=n(D,I.action),I=I.next;while(I!==w);F4(D,c.memoizedState)||(H3=!0),c.memoizedState=D,c.baseQueue===null&&(c.baseState=D),m.lastRenderedState=D}return[D,b]}function _s(n,c,m){var b=Dt,w=A2();if(v1){if(m===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var D=m();ec||D===m()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ec=!0)}else{if(D=c(),ec||(m=c(),F4(D,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)),n2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(a1&124)!==0||To(b,c,D)}return w.memoizedState=D,m={value:D,getSnapshot:c},w.queue=m,J8(Jf.bind(null,b,m,n),[n]),b.flags|=2048,Nn(t5|p3,mo(),Qo.bind(null,b,m,D,c),null),D}function W8(n,c,m){var b=Dt,w=H1(),D=v1;if(D){if(m===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");m=m()}else if(m=c(),!ec){var I=c();F4(m,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)}(I=!F4((U1||w).memoizedState,m))&&(w.memoizedState=m,H3=!0),w=w.queue;var G=Jf.bind(null,b,w,n);if(a4(2048,p3,G,[n]),w.getSnapshot!==c||I||n3!==null&&n3.memoizedState.tag&t5){if(b.flags|=2048,Nn(t5|p3,mo(),Qo.bind(null,b,w,m,c),null),n2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");D||(a7&124)!==0||To(b,c,m)}return m}function To(n,c,m){n.flags|=16384,n={getSnapshot:c,value:m},c=Dt.updateQueue,c===null?(c=Z8(),Dt.updateQueue=c,c.stores=[n]):(m=c.stores,m===null?c.stores=[n]:m.push(n))}function Qo(n,c,m,b){c.value=m,c.getSnapshot=b,fo(c)&&As(n)}function Jf(n,c,m){return m(function(){fo(c)&&As(n)})}function fo(n){var c=n.getSnapshot;n=n.value;try{var m=c();return!F4(n,m)}catch{return!0}}function As(n){var c=t4(n,2);c!==null&&Kt(c,n,2)}function X5(n){var c=A2();if(typeof n=="function"){var m=n;if(n=m(),e9){se(!0);try{m()}finally{se(!1)}}}return c.memoizedState=c.baseState=n,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:n},c}function nn(n){n=X5(n);var c=n.queue,m=bo.bind(null,Dt,c);return c.dispatch=m,[n.memoizedState,m]}function Rn(n){var c=A2();c.memoizedState=c.baseState=n;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=ks.bind(null,Dt,!0,m),m.dispatch=c,[n,c]}function kn(n,c){var m=H1();return Os(m,U1,n,c)}function Os(n,c,m,b){return n.baseState=m,X8(n,U1,typeof b=="function"?b:Ft)}function Cs(n,c){var m=H1();return U1!==null?Os(m,U1,n,c):(m.baseState=n,[n,m.queue.dispatch])}function Y8(n,c,m,b,w){if(J5(n))throw Error("Cannot update form state while rendering.");if(n=c.action,n!==null){var D={payload:w,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){D.listeners.push(I)}};Ce.T!==null?m(!0):D.isTransition=!1,b(D),m=c.pending,m===null?(D.next=c.pending=D,K8(c,D)):(D.next=m.next,c.pending=m.next=D)}}function K8(n,c){var m=c.action,b=c.payload,w=n.state;if(c.isTransition){var D=Ce.T,I={};Ce.T=I,Ce.T._updatedFibers=new Set;try{var G=m(w,b),ie=Ce.S;ie!==null&&ie(I,G),Yr(n,c,G)}catch(oe){ho(n,c,oe)}finally{Ce.T=D,D===null&&I._updatedFibers&&(n=I._updatedFibers.size,I._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{I=m(w,b),Yr(n,c,I)}catch(oe){ho(n,c,oe)}}function Yr(n,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?(m.then(function(b){c3(n,c,b)},function(b){return ho(n,c,b)}),c.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):c3(n,c,m)}function c3(n,c,m){c.status="fulfilled",c.value=m,ed(c),n.state=m,c=n.pending,c!==null&&(m=c.next,m===c?n.pending=null:(m=m.next,c.next=m,K8(n,m)))}function ho(n,c,m){var b=n.pending;if(n.pending=null,b!==null){b=b.next;do c.status="rejected",c.reason=m,ed(c),c=c.next;while(c!==b)}n.action=null}function ed(n){n=n.listeners;for(var c=0;c<n.length;c++)(0,n[c])()}function wy(n,c){return c}function po(n,c){if(v1){var m=n2.formState;if(m!==null){e:{var b=Dt;if(v1){if(V2){t:{for(var w=V2,D=x0;w.nodeType!==8;){if(!D){w=null;break t}if(w=h4(w.nextSibling),w===null){w=null;break t}}D=w.data,w=D===AH||D===_P?w:null}if(w){V2=h4(w.nextSibling),b=w.data===AH;break e}}zr(b)}b=!1}b&&(c=m[0])}}return m=A2(),m.memoizedState=m.baseState=c,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wy,lastRenderedState:c},m.queue=b,m=bo.bind(null,Dt,b),b.dispatch=m,b=X5(!1),D=ks.bind(null,Dt,!1,b.queue),b=A2(),w={state:c,dispatch:null,action:n,pending:null},b.queue=w,m=Y8.bind(null,Dt,w,D,m),w.dispatch=m,b.memoizedState=n,[c,m,!1]}function ws(n){var c=H1();return O2(c,U1,n)}function O2(n,c,m){if(c=X8(n,c,wy)[0],n=k3(Ft)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var b=ea(c)}catch(I){throw I===$h?Cv:I}else b=c;c=H1();var w=c.queue,D=w.dispatch;return m!==c.memoizedState&&(Dt.flags|=2048,Nn(t5|p3,mo(),td.bind(null,w,m),null)),[b,D,n]}function td(n,c){n.action=c}function Kr(n){var c=H1(),m=U1;if(m!==null)return O2(c,m,n);H1(),c=c.memoizedState,m=H1();var b=m.queue.dispatch;return m.memoizedState=n,[c,b,!1]}function Nn(n,c,m,b){return n={tag:n,create:m,deps:b,inst:c,next:null},c=Dt.updateQueue,c===null&&(c=Z8(),Dt.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=n.next=n:(b=m.next,m.next=n,n.next=b,c.lastEffect=n),n}function mo(){return{destroy:void 0,resource:void 0}}function Jr(n){var c=A2();return n={current:n},c.memoizedState=n}function r6(n,c,m,b){var w=A2();b=b===void 0?null:b,Dt.flags|=n,w.memoizedState=Nn(t5|c,mo(),m,b)}function a4(n,c,m,b){var w=H1();b=b===void 0?null:b;var D=w.memoizedState.inst;U1!==null&&b!==null&&Wr(b,U1.memoizedState.deps)?w.memoizedState=Nn(c,D,m,b):(Dt.flags|=n,w.memoizedState=Nn(t5|c,D,m,b))}function J8(n,c){(Dt.mode&yr)!==l2&&(Dt.mode&QB)===l2?r6(276826112,p3,n,c):r6(8390656,p3,n,c)}function nd(n,c){var m=4194308;return(Dt.mode&yr)!==l2&&(m|=134217728),r6(m,j3,n,c)}function rd(n,c){if(typeof c=="function"){n=n();var m=c(n);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return c.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(c).join(", ")+"}"),n=n(),c.current=n,function(){c.current=null}}function W5(n,c,m){typeof c!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null"),m=m!=null?m.concat([n]):null;var b=4194308;(Dt.mode&yr)!==l2&&(b|=134217728),r6(b,j3,rd.bind(null,c,n),m)}function yo(n,c,m){typeof c!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null"),m=m!=null?m.concat([n]):null,a4(4,j3,rd.bind(null,c,n),m)}function vo(n,c){return A2().memoizedState=[n,c===void 0?null:c],n}function el(n,c){var m=H1();c=c===void 0?null:c;var b=m.memoizedState;return c!==null&&Wr(c,b[1])?b[0]:(m.memoizedState=[n,c],n)}function ta(n,c){var m=A2();c=c===void 0?null:c;var b=n();if(e9){se(!0);try{n()}finally{se(!1)}}return m.memoizedState=[b,c],b}function tl(n,c){var m=H1();c=c===void 0?null:c;var b=m.memoizedState;if(c!==null&&Wr(c,b[1]))return b[0];if(b=n(),e9){se(!0);try{n()}finally{se(!1)}}return m.memoizedState=[b,c],b}function go(n,c){var m=A2();return Lo(m,n,c)}function Vs(n,c){var m=H1();return ad(m,U1.memoizedState,n,c)}function id(n,c){var m=H1();return U1===null?Lo(m,n,c):ad(m,U1.memoizedState,n,c)}function Lo(n,c,m){return m===void 0||(a7&1073741824)!==0?n.memoizedState=c:(n.memoizedState=m,n=kd(),Dt.lanes|=n,s7|=n,m)}function ad(n,c,m,b){return F4(m,c)?m:Ju.current!==null?(n=Lo(n,m,b),F4(n,c)||(H3=!0),n):(a7&42)===0?(H3=!0,n.memoizedState=m):(n=kd(),Dt.lanes|=n,s7|=n,c)}function xo(n,c,m,b,w){var D=L1.p;L1.p=D!==0&&D<qn?D:qn;var I=Ce.T,G={};Ce.T=G,ks(n,!1,c,m),G._updatedFibers=new Set;try{var ie=w(),oe=Ce.S;if(oe!==null&&oe(G,ie),ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var we=Hb(ie,b);Ho(n,c,we,k4(n))}else Ho(n,c,b,k4(n))}catch(Ne){Ho(n,c,{then:function(){},status:"rejected",reason:Ne},k4(n))}finally{L1.p=D,Ce.T=I,I===null&&G._updatedFibers&&(n=G._updatedFibers.size,G._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ds(n,c,m,b){if(n.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var w=od(n).queue;xo(n,w,c,T9,m===null?f:function(){return Y5(n),m(b)})}function od(n){var c=n.memoizedState;if(c!==null)return c;c={memoizedState:T9,baseState:T9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:T9},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:m},next:null},n.memoizedState=c,n=n.alternate,n!==null&&(n.memoizedState=c),c}function Y5(n){Ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var c=od(n).next.queue;Ho(n,c,{},k4(n))}function nl(){var n=X5(!1);return n=xo.bind(null,Dt,n.queue,!0,!1),A2().memoizedState=n,[!1,n]}function Rs(){var n=k3(Ft)[0],c=H1().memoizedState;return[typeof n=="boolean"?n:ea(n),c]}function K5(){var n=tn(Ft)[0],c=H1().memoizedState;return[typeof n=="boolean"?n:ea(n),c]}function o4(){return K1(Tp)}function na(){var n=A2(),c=n2.identifierPrefix;if(v1){var m=xa,b=La;m=(b&~(1<<32-J2(b)-1)).toString(32)+m,c="«"+c+"R"+m,m=Rv++,0<m&&(c+="H"+m.toString(32)),c+="»"}else m=Aie++,c="«"+c+"r"+m.toString(32)+"»";return n.memoizedState=c}function rl(){return A2().memoizedState=ld.bind(null,Dt)}function ld(n,c){for(var m=n.return;m!==null;){switch(m.tag){case 24:case 3:var b=k4(m);n=W6(b);var w=Y6(m,n,b);w!==null&&(Kt(w,m,b),Ki(w,m,b)),m=Gf(),c!=null&&w!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:m};return}m=m.return}}function il(n,c,m){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=k4(n);var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};J5(n)?al(c,w):(w=Bf(n,c,w,b),w!==null&&(Kt(w,n,b),sd(w,c,b))),Pe(n,b)}function bo(n,c,m){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=k4(n),Ho(n,c,m,b),Pe(n,b)}function Ho(n,c,m,b){var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(J5(n))al(c,w);else{var D=n.alternate;if(n.lanes===0&&(D===null||D.lanes===0)&&(D=c.lastRenderedReducer,D!==null)){var I=Ce.H;Ce.H=gr;try{var G=c.lastRenderedState,ie=D(G,m);if(w.hasEagerState=!0,w.eagerState=ie,F4(ie,G))return ds(n,c,w,0),n2===null&&fs(),!1}catch{}finally{Ce.H=I}}if(m=Bf(n,c,w,b),m!==null)return Kt(m,n,b),sd(m,c,b),!0}return!1}function ks(n,c,m,b){if(Ce.T===null&&Yl===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),b={lane:2,revertLane:lu(),action:b,hasEagerState:!1,eagerState:null,next:null},J5(n)){if(c)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else c=Bf(n,m,b,2),c!==null&&Kt(c,n,2);Pe(n,2)}function J5(n){var c=n.alternate;return n===Dt||c!==null&&c===Dt}function al(n,c){tc=Dv=!0;var m=n.pending;m===null?c.next=c:(c.next=m.next,m.next=c),n.pending=c}function sd(n,c,m){if((m&4194048)!==0){var b=c.lanes;b&=n.pendingLanes,m|=b,c.lanes=m,De(n,m)}}function j2(n){var c=Wt;return n!=null&&(Wt=c===null?n:c.concat(n)),c}function Eo(n,c,m){for(var b=Object.keys(n.props),w=0;w<b.length;w++){var D=b[w];if(D!=="children"&&D!=="key"){c===null&&(c=F8(n,m.mode,0),c._debugInfo=Wt,c.return=m),ht(c,function(I){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I)},D);break}}}function rn(n){var c=Xh;return Xh+=1,nc===null&&(nc=Yf()),Kf(nc,n,c)}function kt(n,c){c=c.props.ref,n.ref=c!==void 0?c:null}function g1(n,c){throw c.$$typeof===wb?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
530
|
+
Incoming: %s`,ke,"["+c.join(", ")+"]","["+n.join(", ")+"]");for(var m=0;m<c.length&&m<n.length;m++)if(!F4(n[m],c[m]))return!1;return!0}function co(n,c,m,b,w,D){a7=D,Dt=c,n5=n!==null?n._debugHookTypes:null,Ea=-1,Zh=n!==null&&n.type!==c.type,(Object.prototype.toString.call(m)==="[object AsyncFunction]"||Object.prototype.toString.call(m)==="[object AsyncGeneratorFunction]")&&(D=R(Dt),eH.has(D)||(eH.add(D),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",D===null?"An unknown Component":"<"+D+">"))),c.memoizedState=null,c.updateQueue=null,c.lanes=0,Ce.H=n!==null&&n.memoizedState!==null?nH:n5!==null?AB:tH,e9=D=(c.mode&v4)!==l2;var I=rH(m,b,w);if(e9=!1,tc&&(I=i4(c,m,b,w)),D){se(!0);try{I=i4(c,m,b,w)}finally{se(!1)}}return G8(n,c),I}function G8(n,c){c._debugHookTypes=n5,c.dependencies===null?Ha!==null&&(c.dependencies={lanes:0,firstContext:null,_debugThenableState:Ha}):c.dependencies._debugThenableState=Ha,Ce.H=kv;var m=U1!==null&&U1.next!==null;if(a7=0,n5=ke=n3=U1=Dt=null,Ea=-1,n!==null&&(n.flags&65011712)!==(c.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dv=!1,Gh=0,Ha=null,m)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");n===null||H3||(n=n.dependencies,n!==null&&z8(n)&&(H3=!0)),wv?(wv=!1,n=!0):n=!1,n&&(c=R(c)||"Unknown",SB.has(c)||eH.has(c)||(SB.add(c),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function i4(n,c,m,b){Dt=n;var w=0;do{if(tc&&(Ha=null),Gh=0,tc=!1,w>=Oie)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(w+=1,Zh=!1,n3=U1=null,n.updateQueue!=null){var D=n.updateQueue;D.lastEffect=null,D.events=null,D.stores=null,D.memoCache!=null&&(D.memoCache.index=0)}Ea=-1,Ce.H=OB,D=rH(c,m,b)}while(tc);return D}function n6(){var n=Ce.H,c=n.useState()[0];return c=typeof c.then=="function"?ea(c):c,n=n.useState()[0],(U1!==null?U1.memoizedState:null)!==n&&(Dt.flags|=1024),c}function G5(){var n=Rv!==0;return Rv=0,n}function J6(n,c,m){c.updateQueue=n.updateQueue,c.flags=(c.mode&yr)!==l2?c.flags&-402655237:c.flags&-2053,n.lanes&=~m}function en(n){if(Dv){for(n=n.memoizedState;n!==null;){var c=n.queue;c!==null&&(c.pending=null),n=n.next}Dv=!1}a7=0,n5=n3=U1=Dt=null,Ea=-1,ke=null,tc=!1,Gh=Rv=0,Ha=null}function A2(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return n3===null?Dt.memoizedState=n3=n:n3=n3.next=n,n3}function H1(){if(U1===null){var n=Dt.alternate;n=n!==null?n.memoizedState:null}else n=U1.next;var c=n3===null?Dt.memoizedState:n3.next;if(c!==null)n3=c,U1=n;else{if(n===null)throw Dt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");U1=n,n={memoizedState:U1.memoizedState,baseState:U1.baseState,baseQueue:U1.baseQueue,queue:U1.queue,next:null},n3===null?Dt.memoizedState=n3=n:n3=n3.next=n}return n3}function Z8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ea(n){var c=Gh;return Gh+=1,Ha===null&&(Ha=Yf()),n=Kf(Ha,n,c),c=Dt,(n3===null?c.memoizedState:n3.next)===null&&(c=c.alternate,Ce.H=c!==null&&c.memoizedState!==null?nH:tH),n}function p2(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ea(n);if(n.$$typeof===m4)return K1(n)}throw Error("An unsupported type was passed to use(): "+String(n))}function R1(n){var c=null,m=Dt.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var b=Dt.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(c={data:b.data.map(function(w){return w.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=Z8(),Dt.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0||Zh)for(m=c.data[c.index]=Array(n),b=0;b<n;b++)m[b]=Tv;else m.length!==n&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",m.length,n);return c.index++,m}function Ft(n,c){return typeof c=="function"?c(n):c}function Z5(n,c,m){var b=A2();if(m!==void 0){var w=m(c);if(e9){se(!0);try{m(c)}finally{se(!1)}}}else w=c;return b.memoizedState=b.baseState=w,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:w},b.queue=n,n=n.dispatch=il.bind(null,Dt,n),[b.memoizedState,n]}function k3(n){var c=H1();return X8(c,U1,n)}function X8(n,c,m){var b=n.queue;if(b===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");b.lastRenderedReducer=m;var w=n.baseQueue,D=b.pending;if(D!==null){if(w!==null){var I=w.next;w.next=D.next,D.next=I}c.baseQueue!==w&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),c.baseQueue=w=D,b.pending=null}if(D=n.baseState,w===null)n.memoizedState=D;else{c=w.next;var G=I=null,ie=null,le=c,we=!1;do{var Ne=le.lane&-536870913;if(Ne!==le.lane?(a1&Ne)===Ne:(a7&Ne)===Ne){var Oe=le.revertLane;if(Oe===0)ie!==null&&(ie=ie.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),Ne===Yl&&(we=!0);else if((a7&Oe)===Oe){le=le.next,Oe===Yl&&(we=!0);continue}else Ne={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ie===null?(G=ie=Ne,I=D):ie=ie.next=Ne,Dt.lanes|=Oe,s7|=Oe;Ne=le.action,e9&&m(D,Ne),D=le.hasEagerState?le.eagerState:m(D,Ne)}else Oe={lane:Ne,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},ie===null?(G=ie=Oe,I=D):ie=ie.next=Oe,Dt.lanes|=Ne,s7|=Ne;le=le.next}while(le!==null&&le!==c);if(ie===null?I=D:ie.next=G,!F4(D,n.memoizedState)&&(H3=!0,we&&(m=Ku,m!==null)))throw m;n.memoizedState=D,n.baseState=I,n.baseQueue=ie,b.lastRenderedState=D}return w===null&&(b.lanes=0),[n.memoizedState,b.dispatch]}function tn(n){var c=H1(),m=c.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=n;var b=m.dispatch,w=m.pending,D=c.memoizedState;if(w!==null){m.pending=null;var I=w=w.next;do D=n(D,I.action),I=I.next;while(I!==w);F4(D,c.memoizedState)||(H3=!0),c.memoizedState=D,c.baseQueue===null&&(c.baseState=D),m.lastRenderedState=D}return[D,b]}function _s(n,c,m){var b=Dt,w=A2();if(v1){if(m===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var D=m();ec||D===m()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ec=!0)}else{if(D=c(),ec||(m=c(),F4(D,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)),n2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(a1&124)!==0||To(b,c,D)}return w.memoizedState=D,m={value:D,getSnapshot:c},w.queue=m,J8(Jf.bind(null,b,m,n),[n]),b.flags|=2048,Nn(t5|p3,mo(),Qo.bind(null,b,m,D,c),null),D}function W8(n,c,m){var b=Dt,w=H1(),D=v1;if(D){if(m===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");m=m()}else if(m=c(),!ec){var I=c();F4(m,I)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ec=!0)}(I=!F4((U1||w).memoizedState,m))&&(w.memoizedState=m,H3=!0),w=w.queue;var G=Jf.bind(null,b,w,n);if(a4(2048,p3,G,[n]),w.getSnapshot!==c||I||n3!==null&&n3.memoizedState.tag&t5){if(b.flags|=2048,Nn(t5|p3,mo(),Qo.bind(null,b,w,m,c),null),n2===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");D||(a7&124)!==0||To(b,c,m)}return m}function To(n,c,m){n.flags|=16384,n={getSnapshot:c,value:m},c=Dt.updateQueue,c===null?(c=Z8(),Dt.updateQueue=c,c.stores=[n]):(m=c.stores,m===null?c.stores=[n]:m.push(n))}function Qo(n,c,m,b){c.value=m,c.getSnapshot=b,fo(c)&&As(n)}function Jf(n,c,m){return m(function(){fo(c)&&As(n)})}function fo(n){var c=n.getSnapshot;n=n.value;try{var m=c();return!F4(n,m)}catch{return!0}}function As(n){var c=t4(n,2);c!==null&&Kt(c,n,2)}function X5(n){var c=A2();if(typeof n=="function"){var m=n;if(n=m(),e9){se(!0);try{m()}finally{se(!1)}}}return c.memoizedState=c.baseState=n,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:n},c}function nn(n){n=X5(n);var c=n.queue,m=bo.bind(null,Dt,c);return c.dispatch=m,[n.memoizedState,m]}function Rn(n){var c=A2();c.memoizedState=c.baseState=n;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=ks.bind(null,Dt,!0,m),m.dispatch=c,[n,c]}function kn(n,c){var m=H1();return Os(m,U1,n,c)}function Os(n,c,m,b){return n.baseState=m,X8(n,U1,typeof b=="function"?b:Ft)}function Cs(n,c){var m=H1();return U1!==null?Os(m,U1,n,c):(m.baseState=n,[n,m.queue.dispatch])}function Y8(n,c,m,b,w){if(J5(n))throw Error("Cannot update form state while rendering.");if(n=c.action,n!==null){var D={payload:w,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){D.listeners.push(I)}};Ce.T!==null?m(!0):D.isTransition=!1,b(D),m=c.pending,m===null?(D.next=c.pending=D,K8(c,D)):(D.next=m.next,c.pending=m.next=D)}}function K8(n,c){var m=c.action,b=c.payload,w=n.state;if(c.isTransition){var D=Ce.T,I={};Ce.T=I,Ce.T._updatedFibers=new Set;try{var G=m(w,b),ie=Ce.S;ie!==null&&ie(I,G),Yr(n,c,G)}catch(le){ho(n,c,le)}finally{Ce.T=D,D===null&&I._updatedFibers&&(n=I._updatedFibers.size,I._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{I=m(w,b),Yr(n,c,I)}catch(le){ho(n,c,le)}}function Yr(n,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?(m.then(function(b){c3(n,c,b)},function(b){return ho(n,c,b)}),c.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):c3(n,c,m)}function c3(n,c,m){c.status="fulfilled",c.value=m,ed(c),n.state=m,c=n.pending,c!==null&&(m=c.next,m===c?n.pending=null:(m=m.next,c.next=m,K8(n,m)))}function ho(n,c,m){var b=n.pending;if(n.pending=null,b!==null){b=b.next;do c.status="rejected",c.reason=m,ed(c),c=c.next;while(c!==b)}n.action=null}function ed(n){n=n.listeners;for(var c=0;c<n.length;c++)(0,n[c])()}function wy(n,c){return c}function po(n,c){if(v1){var m=n2.formState;if(m!==null){e:{var b=Dt;if(v1){if(V2){t:{for(var w=V2,D=x0;w.nodeType!==8;){if(!D){w=null;break t}if(w=h4(w.nextSibling),w===null){w=null;break t}}D=w.data,w=D===AH||D===_P?w:null}if(w){V2=h4(w.nextSibling),b=w.data===AH;break e}}zr(b)}b=!1}b&&(c=m[0])}}return m=A2(),m.memoizedState=m.baseState=c,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wy,lastRenderedState:c},m.queue=b,m=bo.bind(null,Dt,b),b.dispatch=m,b=X5(!1),D=ks.bind(null,Dt,!1,b.queue),b=A2(),w={state:c,dispatch:null,action:n,pending:null},b.queue=w,m=Y8.bind(null,Dt,w,D,m),w.dispatch=m,b.memoizedState=n,[c,m,!1]}function ws(n){var c=H1();return O2(c,U1,n)}function O2(n,c,m){if(c=X8(n,c,wy)[0],n=k3(Ft)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var b=ea(c)}catch(I){throw I===$h?Cv:I}else b=c;c=H1();var w=c.queue,D=w.dispatch;return m!==c.memoizedState&&(Dt.flags|=2048,Nn(t5|p3,mo(),td.bind(null,w,m),null)),[b,D,n]}function td(n,c){n.action=c}function Kr(n){var c=H1(),m=U1;if(m!==null)return O2(c,m,n);H1(),c=c.memoizedState,m=H1();var b=m.queue.dispatch;return m.memoizedState=n,[c,b,!1]}function Nn(n,c,m,b){return n={tag:n,create:m,deps:b,inst:c,next:null},c=Dt.updateQueue,c===null&&(c=Z8(),Dt.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=n.next=n:(b=m.next,m.next=n,n.next=b,c.lastEffect=n),n}function mo(){return{destroy:void 0,resource:void 0}}function Jr(n){var c=A2();return n={current:n},c.memoizedState=n}function r6(n,c,m,b){var w=A2();b=b===void 0?null:b,Dt.flags|=n,w.memoizedState=Nn(t5|c,mo(),m,b)}function a4(n,c,m,b){var w=H1();b=b===void 0?null:b;var D=w.memoizedState.inst;U1!==null&&b!==null&&Wr(b,U1.memoizedState.deps)?w.memoizedState=Nn(c,D,m,b):(Dt.flags|=n,w.memoizedState=Nn(t5|c,D,m,b))}function J8(n,c){(Dt.mode&yr)!==l2&&(Dt.mode&QB)===l2?r6(276826112,p3,n,c):r6(8390656,p3,n,c)}function nd(n,c){var m=4194308;return(Dt.mode&yr)!==l2&&(m|=134217728),r6(m,j3,n,c)}function rd(n,c){if(typeof c=="function"){n=n();var m=c(n);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return c.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(c).join(", ")+"}"),n=n(),c.current=n,function(){c.current=null}}function W5(n,c,m){typeof c!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null"),m=m!=null?m.concat([n]):null;var b=4194308;(Dt.mode&yr)!==l2&&(b|=134217728),r6(b,j3,rd.bind(null,c,n),m)}function yo(n,c,m){typeof c!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",c!==null?typeof c:"null"),m=m!=null?m.concat([n]):null,a4(4,j3,rd.bind(null,c,n),m)}function vo(n,c){return A2().memoizedState=[n,c===void 0?null:c],n}function el(n,c){var m=H1();c=c===void 0?null:c;var b=m.memoizedState;return c!==null&&Wr(c,b[1])?b[0]:(m.memoizedState=[n,c],n)}function ta(n,c){var m=A2();c=c===void 0?null:c;var b=n();if(e9){se(!0);try{n()}finally{se(!1)}}return m.memoizedState=[b,c],b}function tl(n,c){var m=H1();c=c===void 0?null:c;var b=m.memoizedState;if(c!==null&&Wr(c,b[1]))return b[0];if(b=n(),e9){se(!0);try{n()}finally{se(!1)}}return m.memoizedState=[b,c],b}function go(n,c){var m=A2();return Lo(m,n,c)}function Vs(n,c){var m=H1();return ad(m,U1.memoizedState,n,c)}function id(n,c){var m=H1();return U1===null?Lo(m,n,c):ad(m,U1.memoizedState,n,c)}function Lo(n,c,m){return m===void 0||(a7&1073741824)!==0?n.memoizedState=c:(n.memoizedState=m,n=kd(),Dt.lanes|=n,s7|=n,m)}function ad(n,c,m,b){return F4(m,c)?m:Ju.current!==null?(n=Lo(n,m,b),F4(n,c)||(H3=!0),n):(a7&42)===0?(H3=!0,n.memoizedState=m):(n=kd(),Dt.lanes|=n,s7|=n,c)}function xo(n,c,m,b,w){var D=L1.p;L1.p=D!==0&&D<qn?D:qn;var I=Ce.T,G={};Ce.T=G,ks(n,!1,c,m),G._updatedFibers=new Set;try{var ie=w(),le=Ce.S;if(le!==null&&le(G,ie),ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var we=Hb(ie,b);Ho(n,c,we,k4(n))}else Ho(n,c,b,k4(n))}catch(Ne){Ho(n,c,{then:function(){},status:"rejected",reason:Ne},k4(n))}finally{L1.p=D,Ce.T=I,I===null&&G._updatedFibers&&(n=G._updatedFibers.size,G._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ds(n,c,m,b){if(n.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var w=od(n).queue;xo(n,w,c,T9,m===null?f:function(){return Y5(n),m(b)})}function od(n){var c=n.memoizedState;if(c!==null)return c;c={memoizedState:T9,baseState:T9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:T9},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:m},next:null},n.memoizedState=c,n=n.alternate,n!==null&&(n.memoizedState=c),c}function Y5(n){Ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var c=od(n).next.queue;Ho(n,c,{},k4(n))}function nl(){var n=X5(!1);return n=xo.bind(null,Dt,n.queue,!0,!1),A2().memoizedState=n,[!1,n]}function Rs(){var n=k3(Ft)[0],c=H1().memoizedState;return[typeof n=="boolean"?n:ea(n),c]}function K5(){var n=tn(Ft)[0],c=H1().memoizedState;return[typeof n=="boolean"?n:ea(n),c]}function o4(){return K1(Tp)}function na(){var n=A2(),c=n2.identifierPrefix;if(v1){var m=xa,b=La;m=(b&~(1<<32-J2(b)-1)).toString(32)+m,c="«"+c+"R"+m,m=Rv++,0<m&&(c+="H"+m.toString(32)),c+="»"}else m=Aie++,c="«"+c+"r"+m.toString(32)+"»";return n.memoizedState=c}function rl(){return A2().memoizedState=ld.bind(null,Dt)}function ld(n,c){for(var m=n.return;m!==null;){switch(m.tag){case 24:case 3:var b=k4(m);n=W6(b);var w=Y6(m,n,b);w!==null&&(Kt(w,m,b),Ki(w,m,b)),m=Gf(),c!=null&&w!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:m};return}m=m.return}}function il(n,c,m){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=k4(n);var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};J5(n)?al(c,w):(w=Bf(n,c,w,b),w!==null&&(Kt(w,n,b),sd(w,c,b))),Pe(n,b)}function bo(n,c,m){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=k4(n),Ho(n,c,m,b),Pe(n,b)}function Ho(n,c,m,b){var w={lane:b,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(J5(n))al(c,w);else{var D=n.alternate;if(n.lanes===0&&(D===null||D.lanes===0)&&(D=c.lastRenderedReducer,D!==null)){var I=Ce.H;Ce.H=gr;try{var G=c.lastRenderedState,ie=D(G,m);if(w.hasEagerState=!0,w.eagerState=ie,F4(ie,G))return ds(n,c,w,0),n2===null&&fs(),!1}catch{}finally{Ce.H=I}}if(m=Bf(n,c,w,b),m!==null)return Kt(m,n,b),sd(m,c,b),!0}return!1}function ks(n,c,m,b){if(Ce.T===null&&Yl===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),b={lane:2,revertLane:lu(),action:b,hasEagerState:!1,eagerState:null,next:null},J5(n)){if(c)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else c=Bf(n,m,b,2),c!==null&&Kt(c,n,2);Pe(n,2)}function J5(n){var c=n.alternate;return n===Dt||c!==null&&c===Dt}function al(n,c){tc=Dv=!0;var m=n.pending;m===null?c.next=c:(c.next=m.next,m.next=c),n.pending=c}function sd(n,c,m){if((m&4194048)!==0){var b=c.lanes;b&=n.pendingLanes,m|=b,c.lanes=m,De(n,m)}}function j2(n){var c=Wt;return n!=null&&(Wt=c===null?n:c.concat(n)),c}function Eo(n,c,m){for(var b=Object.keys(n.props),w=0;w<b.length;w++){var D=b[w];if(D!=="children"&&D!=="key"){c===null&&(c=F8(n,m.mode,0),c._debugInfo=Wt,c.return=m),ht(c,function(I){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I)},D);break}}}function rn(n){var c=Xh;return Xh+=1,nc===null&&(nc=Yf()),Kf(nc,n,c)}function kt(n,c){c=c.props.ref,n.ref=c!==void 0?c:null}function g1(n,c){throw c.$$typeof===wb?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
531
531
|
- Multiple copies of the "react" package is used.
|
|
532
532
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
533
533
|
- A compiler tries to "inline" JSX instead of using the runtime.`):(n=Object.prototype.toString.call(c),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead."))}function Q2(n,c){var m=R(n)||"Component";$B[m]||($B[m]=!0,c=c.displayName||c.name||"Component",n.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
534
534
|
root.render(%s)`,c,c,c):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
535
535
|
<%s>{%s}</%s>`,c,c,m,c,m))}function ra(n,c){var m=R(n)||"Component";UB[m]||(UB[m]=!0,c=String(c),n.tag===3?console.error(`Symbols are not valid as a React child.
|
|
536
536
|
root.render(%s)`,c):console.error(`Symbols are not valid as a React child.
|
|
537
|
-
<%s>%s</%s>`,m,c,m))}function ia(n){function c(Te,Qe){if(n){var me=Te.deletions;me===null?(Te.deletions=[Qe],Te.flags|=16):me.push(Qe)}}function m(Te,Qe){if(!n)return null;for(;Qe!==null;)c(Te,Qe),Qe=Qe.sibling;return null}function b(Te){for(var Qe=new Map;Te!==null;)Te.key!==null?Qe.set(Te.key,Te):Qe.set(Te.index,Te),Te=Te.sibling;return Qe}function w(Te,Qe){return Te=Dn(Te,Qe),Te.index=0,Te.sibling=null,Te}function D(Te,Qe,me){return Te.index=me,n?(me=Te.alternate,me!==null?(me=me.index,me<Qe?(Te.flags|=67108866,Qe):me):(Te.flags|=67108866,Qe)):(Te.flags|=1048576,Qe)}function I(Te){return n&&Te.alternate===null&&(Te.flags|=67108866),Te}function G(Te,Qe,me,je){return Qe===null||Qe.tag!==6?(Qe=If(me,Te.mode,je),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function ie(Te,Qe,me,je){var it=me.type;return it===h0?(Qe=we(Te,Qe,me.props.children,je,me.key),Eo(me,Qe,Te),Qe):Qe!==null&&(Qe.elementType===it||Ay(Qe,me)||typeof it=="object"&&it!==null&&it.$$typeof===j4&&o7(it)===Qe.type)?(Qe=w(Qe,me.props),kt(Qe,me),Qe.return=Te,Qe._debugOwner=me._owner,Qe._debugInfo=Wt,Qe):(Qe=F8(me,Te.mode,je),kt(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function oe(Te,Qe,me,je){return Qe===null||Qe.tag!==4||Qe.stateNode.containerInfo!==me.containerInfo||Qe.stateNode.implementation!==me.implementation?(Qe=Ff(me,Te.mode,je),Qe.return=Te,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me.children||[]),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function we(Te,Qe,me,je,it){return Qe===null||Qe.tag!==7?(Qe=e6(me,Te.mode,je,it),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function Ne(Te,Qe,me){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return Qe=If(""+Qe,Te.mode,me),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe;if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case Tr:return me=F8(Qe,Te.mode,me),kt(me,Qe),me.return=Te,Te=j2(Qe._debugInfo),me._debugInfo=Wt,Wt=Te,me;case Nt:return Qe=Ff(Qe,Te.mode,me),Qe.return=Te,Qe._debugInfo=Wt,Qe;case j4:var je=j2(Qe._debugInfo);return Qe=o7(Qe),Te=Ne(Te,Qe,me),Wt=je,Te}if(z2(Qe)||V(Qe))return me=e6(Qe,Te.mode,me,null),me.return=Te,me._debugOwner=Te,me._debugTask=Te._debugTask,Te=j2(Qe._debugInfo),me._debugInfo=Wt,Wt=Te,me;if(typeof Qe.then=="function")return je=j2(Qe._debugInfo),Te=Ne(Te,rn(Qe),me),Wt=je,Te;if(Qe.$$typeof===m4)return Ne(Te,q8(Te,Qe),me);g1(Te,Qe)}return typeof Qe=="function"&&Q2(Te,Qe),typeof Qe=="symbol"&&ra(Te,Qe),null}function Oe(Te,Qe,me,je){var it=Qe!==null?Qe.key:null;if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return it!==null?null:G(Te,Qe,""+me,je);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case Tr:return me.key===it?(it=j2(me._debugInfo),Te=ie(Te,Qe,me,je),Wt=it,Te):null;case Nt:return me.key===it?oe(Te,Qe,me,je):null;case j4:return it=j2(me._debugInfo),me=o7(me),Te=Oe(Te,Qe,me,je),Wt=it,Te}if(z2(me)||V(me))return it!==null?null:(it=j2(me._debugInfo),Te=we(Te,Qe,me,je,null),Wt=it,Te);if(typeof me.then=="function")return it=j2(me._debugInfo),Te=Oe(Te,Qe,rn(me),je),Wt=it,Te;if(me.$$typeof===m4)return Oe(Te,Qe,q8(Te,me),je);g1(Te,me)}return typeof me=="function"&&Q2(Te,me),typeof me=="symbol"&&ra(Te,me),null}function Be(Te,Qe,me,je,it){if(typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint")return Te=Te.get(me)||null,G(Qe,Te,""+je,it);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case Tr:return me=Te.get(je.key===null?me:je.key)||null,Te=j2(je._debugInfo),Qe=ie(Qe,me,je,it),Wt=Te,Qe;case Nt:return Te=Te.get(je.key===null?me:je.key)||null,oe(Qe,Te,je,it);case j4:var Bt=j2(je._debugInfo);return je=o7(je),Qe=Be(Te,Qe,me,je,it),Wt=Bt,Qe}if(z2(je)||V(je))return me=Te.get(me)||null,Te=j2(je._debugInfo),Qe=we(Qe,me,je,it,null),Wt=Te,Qe;if(typeof je.then=="function")return Bt=j2(je._debugInfo),Qe=Be(Te,Qe,me,rn(je),it),Wt=Bt,Qe;if(je.$$typeof===m4)return Be(Te,Qe,me,q8(Qe,je),it);g1(Qe,je)}return typeof je=="function"&&Q2(Qe,je),typeof je=="symbol"&&ra(Qe,je),null}function Qt(Te,Qe,me,je){if(typeof me!="object"||me===null)return je;switch(me.$$typeof){case Tr:case Nt:T(Te,Qe,me);var it=me.key;if(typeof it!="string")break;if(je===null){je=new Set,je.add(it);break}if(!je.has(it)){je.add(it);break}ht(Qe,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",it)});break;case j4:me=o7(me),Qt(Te,Qe,me,je)}return je}function Ot(Te,Qe,me,je){for(var it=null,Bt=null,ft=null,Pt=Qe,qt=Qe=0,s2=null;Pt!==null&&qt<me.length;qt++){Pt.index>qt?(s2=Pt,Pt=null):s2=Pt.sibling;var $2=Oe(Te,Pt,me[qt],je);if($2===null){Pt===null&&(Pt=s2);break}it=Qt(Te,$2,me[qt],it),n&&Pt&&$2.alternate===null&&c(Te,Pt),Qe=D($2,Qe,qt),ft===null?Bt=$2:ft.sibling=$2,ft=$2,Pt=s2}if(qt===me.length)return m(Te,Pt),v1&&Gi(Te,qt),Bt;if(Pt===null){for(;qt<me.length;qt++)Pt=Ne(Te,me[qt],je),Pt!==null&&(it=Qt(Te,Pt,me[qt],it),Qe=D(Pt,Qe,qt),ft===null?Bt=Pt:ft.sibling=Pt,ft=Pt);return v1&&Gi(Te,qt),Bt}for(Pt=b(Pt);qt<me.length;qt++)s2=Be(Pt,Te,qt,me[qt],je),s2!==null&&(it=Qt(Te,s2,me[qt],it),n&&s2.alternate!==null&&Pt.delete(s2.key===null?qt:s2.key),Qe=D(s2,Qe,qt),ft===null?Bt=s2:ft.sibling=s2,ft=s2);return n&&Pt.forEach(function(Ca){return c(Te,Ca)}),v1&&Gi(Te,qt),Bt}function r2(Te,Qe,me,je){if(me==null)throw Error("An iterable object provided no iterator.");for(var it=null,Bt=null,ft=Qe,Pt=Qe=0,qt=null,s2=null,$2=me.next();ft!==null&&!$2.done;Pt++,$2=me.next()){ft.index>Pt?(qt=ft,ft=null):qt=ft.sibling;var Ca=Oe(Te,ft,$2.value,je);if(Ca===null){ft===null&&(ft=qt);break}s2=Qt(Te,Ca,$2.value,s2),n&&ft&&Ca.alternate===null&&c(Te,ft),Qe=D(Ca,Qe,Pt),Bt===null?it=Ca:Bt.sibling=Ca,Bt=Ca,ft=qt}if($2.done)return m(Te,ft),v1&&Gi(Te,Pt),it;if(ft===null){for(;!$2.done;Pt++,$2=me.next())ft=Ne(Te,$2.value,je),ft!==null&&(s2=Qt(Te,ft,$2.value,s2),Qe=D(ft,Qe,Pt),Bt===null?it=ft:Bt.sibling=ft,Bt=ft);return v1&&Gi(Te,Pt),it}for(ft=b(ft);!$2.done;Pt++,$2=me.next())qt=Be(ft,Te,Pt,$2.value,je),qt!==null&&(s2=Qt(Te,qt,$2.value,s2),n&&qt.alternate!==null&&ft.delete(qt.key===null?Pt:qt.key),Qe=D(qt,Qe,Pt),Bt===null?it=qt:Bt.sibling=qt,Bt=qt);return n&&ft.forEach(function(nae){return c(Te,nae)}),v1&&Gi(Te,Pt),it}function l1(Te,Qe,me,je){if(typeof me=="object"&&me!==null&&me.type===h0&&me.key===null&&(Eo(me,null,Te),me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case Tr:var it=j2(me._debugInfo);e:{for(var Bt=me.key;Qe!==null;){if(Qe.key===Bt){if(Bt=me.type,Bt===h0){if(Qe.tag===7){m(Te,Qe.sibling),je=w(Qe,me.props.children),je.return=Te,je._debugOwner=me._owner,je._debugInfo=Wt,Eo(me,je,Te),Te=je;break e}}else if(Qe.elementType===Bt||Ay(Qe,me)||typeof Bt=="object"&&Bt!==null&&Bt.$$typeof===j4&&o7(Bt)===Qe.type){m(Te,Qe.sibling),je=w(Qe,me.props),kt(je,me),je.return=Te,je._debugOwner=me._owner,je._debugInfo=Wt,Te=je;break e}m(Te,Qe);break}else c(Te,Qe);Qe=Qe.sibling}me.type===h0?(je=e6(me.props.children,Te.mode,je,me.key),je.return=Te,je._debugOwner=Te,je._debugTask=Te._debugTask,je._debugInfo=Wt,Eo(me,je,Te),Te=je):(je=F8(me,Te.mode,je),kt(je,me),je.return=Te,je._debugInfo=Wt,Te=je)}return Te=I(Te),Wt=it,Te;case Nt:e:{for(it=me,me=it.key;Qe!==null;){if(Qe.key===me)if(Qe.tag===4&&Qe.stateNode.containerInfo===it.containerInfo&&Qe.stateNode.implementation===it.implementation){m(Te,Qe.sibling),je=w(Qe,it.children||[]),je.return=Te,Te=je;break e}else{m(Te,Qe);break}else c(Te,Qe);Qe=Qe.sibling}je=Ff(it,Te.mode,je),je.return=Te,Te=je}return I(Te);case j4:return it=j2(me._debugInfo),me=o7(me),Te=l1(Te,Qe,me,je),Wt=it,Te}if(z2(me))return it=j2(me._debugInfo),Te=Ot(Te,Qe,me,je),Wt=it,Te;if(V(me)){if(it=j2(me._debugInfo),Bt=V(me),typeof Bt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ft=Bt.call(me);return ft===me?(Te.tag!==0||Object.prototype.toString.call(Te.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ft)!=="[object Generator]")&&(zB||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),zB=!0):me.entries!==Bt||aH||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),aH=!0),Te=r2(Te,Qe,ft,je),Wt=it,Te}if(typeof me.then=="function")return it=j2(me._debugInfo),Te=l1(Te,Qe,rn(me),je),Wt=it,Te;if(me.$$typeof===m4)return l1(Te,Qe,q8(Te,me),je);g1(Te,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(it=""+me,Qe!==null&&Qe.tag===6?(m(Te,Qe.sibling),je=w(Qe,it),je.return=Te,Te=je):(m(Te,Qe),je=If(it,Te.mode,je),je.return=Te,je._debugOwner=Te,je._debugTask=Te._debugTask,je._debugInfo=Wt,Te=je),I(Te)):(typeof me=="function"&&Q2(Te,me),typeof me=="symbol"&&ra(Te,me),m(Te,Qe))}return function(Te,Qe,me,je){var it=Wt;Wt=null;try{Xh=0;var Bt=l1(Te,Qe,me,je);return nc=null,Bt}catch(s2){if(s2===$h||s2===Cv)throw s2;var ft=p(29,s2,null,Te.mode);ft.lanes=je,ft.return=Te;var Pt=ft._debugInfo=Wt;if(ft._debugOwner=Te._debugOwner,ft._debugTask=Te._debugTask,Pt!=null){for(var qt=Pt.length-1;0<=qt;qt--)if(typeof Pt[qt].stack=="string"){ft._debugOwner=Pt[qt],ft._debugTask=Pt[qt].debugTask;break}}return ft}finally{Wt=it}}}function l4(n){var c=n.alternate;$(m3,m3.current&ic,n),$(r5,n,n),H0===null&&(c===null||Ju.current!==null||c.memoizedState!==null)&&(H0=n)}function ol(n){if(n.tag===22){if($(m3,m3.current,n),$(r5,n,n),H0===null){var c=n.alternate;c!==null&&c.memoizedState!==null&&(H0=n)}}else i6(n)}function i6(n){$(m3,m3.current,n),$(r5,r5.current,n)}function s4(n){q(r5,n),H0===n&&(H0=null),q(m3,n)}function Ns(n){for(var c=n;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data===_a||Q0(m)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break;for(;c.sibling===null;){if(c.return===null||c.return===n)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function f2(n){if(n!==null&&typeof n!="function"){var c=String(n);iP.has(c)||(iP.add(c),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n))}}function ll(n,c,m,b){var w=n.memoizedState,D=m(b,w);if(n.mode&v4){se(!0);try{D=m(b,w)}finally{se(!1)}}D===void 0&&(c=k(c)||"Component",eP.has(c)||(eP.add(c),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",c))),w=D==null?w:Vt({},w,D),n.memoizedState=w,n.lanes===0&&(n.updateQueue.baseState=w)}function Bs(n,c,m,b,w,D,I){var G=n.stateNode;if(typeof G.shouldComponentUpdate=="function"){if(m=G.shouldComponentUpdate(b,D,I),n.mode&v4){se(!0);try{m=G.shouldComponentUpdate(b,D,I)}finally{se(!1)}}return m===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",k(c)||"Component"),m}return c.prototype&&c.prototype.isPureReactComponent?!I8(m,b)||!I8(w,D):!0}function ud(n,c,m,b){var w=c.state;typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,b),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,b),c.state!==w&&(n=R(n)||"Component",XB.has(n)||(XB.add(n),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",n)),oH.enqueueReplaceState(c,c.state,null))}function e0(n,c){var m=c;if("ref"in c){m={};for(var b in c)b!=="ref"&&(m[b]=c[b])}if(n=n.defaultProps){m===c&&(m=Vt({},m));for(var w in n)m[w]===void 0&&(m[w]=n[w])}return m}function Vy(n){lH(n),console.warn(`%s
|
|
537
|
+
<%s>%s</%s>`,m,c,m))}function ia(n){function c(Te,Qe){if(n){var me=Te.deletions;me===null?(Te.deletions=[Qe],Te.flags|=16):me.push(Qe)}}function m(Te,Qe){if(!n)return null;for(;Qe!==null;)c(Te,Qe),Qe=Qe.sibling;return null}function b(Te){for(var Qe=new Map;Te!==null;)Te.key!==null?Qe.set(Te.key,Te):Qe.set(Te.index,Te),Te=Te.sibling;return Qe}function w(Te,Qe){return Te=Dn(Te,Qe),Te.index=0,Te.sibling=null,Te}function D(Te,Qe,me){return Te.index=me,n?(me=Te.alternate,me!==null?(me=me.index,me<Qe?(Te.flags|=67108866,Qe):me):(Te.flags|=67108866,Qe)):(Te.flags|=1048576,Qe)}function I(Te){return n&&Te.alternate===null&&(Te.flags|=67108866),Te}function G(Te,Qe,me,je){return Qe===null||Qe.tag!==6?(Qe=If(me,Te.mode,je),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function ie(Te,Qe,me,je){var it=me.type;return it===h0?(Qe=we(Te,Qe,me.props.children,je,me.key),Eo(me,Qe,Te),Qe):Qe!==null&&(Qe.elementType===it||Ay(Qe,me)||typeof it=="object"&&it!==null&&it.$$typeof===j4&&o7(it)===Qe.type)?(Qe=w(Qe,me.props),kt(Qe,me),Qe.return=Te,Qe._debugOwner=me._owner,Qe._debugInfo=Wt,Qe):(Qe=F8(me,Te.mode,je),kt(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function le(Te,Qe,me,je){return Qe===null||Qe.tag!==4||Qe.stateNode.containerInfo!==me.containerInfo||Qe.stateNode.implementation!==me.implementation?(Qe=Ff(me,Te.mode,je),Qe.return=Te,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me.children||[]),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function we(Te,Qe,me,je,it){return Qe===null||Qe.tag!==7?(Qe=e6(me,Te.mode,je,it),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe):(Qe=w(Qe,me),Qe.return=Te,Qe._debugInfo=Wt,Qe)}function Ne(Te,Qe,me){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return Qe=If(""+Qe,Te.mode,me),Qe.return=Te,Qe._debugOwner=Te,Qe._debugTask=Te._debugTask,Qe._debugInfo=Wt,Qe;if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case Tr:return me=F8(Qe,Te.mode,me),kt(me,Qe),me.return=Te,Te=j2(Qe._debugInfo),me._debugInfo=Wt,Wt=Te,me;case Nt:return Qe=Ff(Qe,Te.mode,me),Qe.return=Te,Qe._debugInfo=Wt,Qe;case j4:var je=j2(Qe._debugInfo);return Qe=o7(Qe),Te=Ne(Te,Qe,me),Wt=je,Te}if(z2(Qe)||V(Qe))return me=e6(Qe,Te.mode,me,null),me.return=Te,me._debugOwner=Te,me._debugTask=Te._debugTask,Te=j2(Qe._debugInfo),me._debugInfo=Wt,Wt=Te,me;if(typeof Qe.then=="function")return je=j2(Qe._debugInfo),Te=Ne(Te,rn(Qe),me),Wt=je,Te;if(Qe.$$typeof===m4)return Ne(Te,q8(Te,Qe),me);g1(Te,Qe)}return typeof Qe=="function"&&Q2(Te,Qe),typeof Qe=="symbol"&&ra(Te,Qe),null}function Oe(Te,Qe,me,je){var it=Qe!==null?Qe.key:null;if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return it!==null?null:G(Te,Qe,""+me,je);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case Tr:return me.key===it?(it=j2(me._debugInfo),Te=ie(Te,Qe,me,je),Wt=it,Te):null;case Nt:return me.key===it?le(Te,Qe,me,je):null;case j4:return it=j2(me._debugInfo),me=o7(me),Te=Oe(Te,Qe,me,je),Wt=it,Te}if(z2(me)||V(me))return it!==null?null:(it=j2(me._debugInfo),Te=we(Te,Qe,me,je,null),Wt=it,Te);if(typeof me.then=="function")return it=j2(me._debugInfo),Te=Oe(Te,Qe,rn(me),je),Wt=it,Te;if(me.$$typeof===m4)return Oe(Te,Qe,q8(Te,me),je);g1(Te,me)}return typeof me=="function"&&Q2(Te,me),typeof me=="symbol"&&ra(Te,me),null}function Be(Te,Qe,me,je,it){if(typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint")return Te=Te.get(me)||null,G(Qe,Te,""+je,it);if(typeof je=="object"&&je!==null){switch(je.$$typeof){case Tr:return me=Te.get(je.key===null?me:je.key)||null,Te=j2(je._debugInfo),Qe=ie(Qe,me,je,it),Wt=Te,Qe;case Nt:return Te=Te.get(je.key===null?me:je.key)||null,le(Qe,Te,je,it);case j4:var Bt=j2(je._debugInfo);return je=o7(je),Qe=Be(Te,Qe,me,je,it),Wt=Bt,Qe}if(z2(je)||V(je))return me=Te.get(me)||null,Te=j2(je._debugInfo),Qe=we(Qe,me,je,it,null),Wt=Te,Qe;if(typeof je.then=="function")return Bt=j2(je._debugInfo),Qe=Be(Te,Qe,me,rn(je),it),Wt=Bt,Qe;if(je.$$typeof===m4)return Be(Te,Qe,me,q8(Qe,je),it);g1(Qe,je)}return typeof je=="function"&&Q2(Qe,je),typeof je=="symbol"&&ra(Qe,je),null}function Qt(Te,Qe,me,je){if(typeof me!="object"||me===null)return je;switch(me.$$typeof){case Tr:case Nt:T(Te,Qe,me);var it=me.key;if(typeof it!="string")break;if(je===null){je=new Set,je.add(it);break}if(!je.has(it)){je.add(it);break}ht(Qe,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",it)});break;case j4:me=o7(me),Qt(Te,Qe,me,je)}return je}function Ot(Te,Qe,me,je){for(var it=null,Bt=null,ft=null,Pt=Qe,qt=Qe=0,s2=null;Pt!==null&&qt<me.length;qt++){Pt.index>qt?(s2=Pt,Pt=null):s2=Pt.sibling;var $2=Oe(Te,Pt,me[qt],je);if($2===null){Pt===null&&(Pt=s2);break}it=Qt(Te,$2,me[qt],it),n&&Pt&&$2.alternate===null&&c(Te,Pt),Qe=D($2,Qe,qt),ft===null?Bt=$2:ft.sibling=$2,ft=$2,Pt=s2}if(qt===me.length)return m(Te,Pt),v1&&Gi(Te,qt),Bt;if(Pt===null){for(;qt<me.length;qt++)Pt=Ne(Te,me[qt],je),Pt!==null&&(it=Qt(Te,Pt,me[qt],it),Qe=D(Pt,Qe,qt),ft===null?Bt=Pt:ft.sibling=Pt,ft=Pt);return v1&&Gi(Te,qt),Bt}for(Pt=b(Pt);qt<me.length;qt++)s2=Be(Pt,Te,qt,me[qt],je),s2!==null&&(it=Qt(Te,s2,me[qt],it),n&&s2.alternate!==null&&Pt.delete(s2.key===null?qt:s2.key),Qe=D(s2,Qe,qt),ft===null?Bt=s2:ft.sibling=s2,ft=s2);return n&&Pt.forEach(function(Ca){return c(Te,Ca)}),v1&&Gi(Te,qt),Bt}function r2(Te,Qe,me,je){if(me==null)throw Error("An iterable object provided no iterator.");for(var it=null,Bt=null,ft=Qe,Pt=Qe=0,qt=null,s2=null,$2=me.next();ft!==null&&!$2.done;Pt++,$2=me.next()){ft.index>Pt?(qt=ft,ft=null):qt=ft.sibling;var Ca=Oe(Te,ft,$2.value,je);if(Ca===null){ft===null&&(ft=qt);break}s2=Qt(Te,Ca,$2.value,s2),n&&ft&&Ca.alternate===null&&c(Te,ft),Qe=D(Ca,Qe,Pt),Bt===null?it=Ca:Bt.sibling=Ca,Bt=Ca,ft=qt}if($2.done)return m(Te,ft),v1&&Gi(Te,Pt),it;if(ft===null){for(;!$2.done;Pt++,$2=me.next())ft=Ne(Te,$2.value,je),ft!==null&&(s2=Qt(Te,ft,$2.value,s2),Qe=D(ft,Qe,Pt),Bt===null?it=ft:Bt.sibling=ft,Bt=ft);return v1&&Gi(Te,Pt),it}for(ft=b(ft);!$2.done;Pt++,$2=me.next())qt=Be(ft,Te,Pt,$2.value,je),qt!==null&&(s2=Qt(Te,qt,$2.value,s2),n&&qt.alternate!==null&&ft.delete(qt.key===null?Pt:qt.key),Qe=D(qt,Qe,Pt),Bt===null?it=qt:Bt.sibling=qt,Bt=qt);return n&&ft.forEach(function(nae){return c(Te,nae)}),v1&&Gi(Te,Pt),it}function l1(Te,Qe,me,je){if(typeof me=="object"&&me!==null&&me.type===h0&&me.key===null&&(Eo(me,null,Te),me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case Tr:var it=j2(me._debugInfo);e:{for(var Bt=me.key;Qe!==null;){if(Qe.key===Bt){if(Bt=me.type,Bt===h0){if(Qe.tag===7){m(Te,Qe.sibling),je=w(Qe,me.props.children),je.return=Te,je._debugOwner=me._owner,je._debugInfo=Wt,Eo(me,je,Te),Te=je;break e}}else if(Qe.elementType===Bt||Ay(Qe,me)||typeof Bt=="object"&&Bt!==null&&Bt.$$typeof===j4&&o7(Bt)===Qe.type){m(Te,Qe.sibling),je=w(Qe,me.props),kt(je,me),je.return=Te,je._debugOwner=me._owner,je._debugInfo=Wt,Te=je;break e}m(Te,Qe);break}else c(Te,Qe);Qe=Qe.sibling}me.type===h0?(je=e6(me.props.children,Te.mode,je,me.key),je.return=Te,je._debugOwner=Te,je._debugTask=Te._debugTask,je._debugInfo=Wt,Eo(me,je,Te),Te=je):(je=F8(me,Te.mode,je),kt(je,me),je.return=Te,je._debugInfo=Wt,Te=je)}return Te=I(Te),Wt=it,Te;case Nt:e:{for(it=me,me=it.key;Qe!==null;){if(Qe.key===me)if(Qe.tag===4&&Qe.stateNode.containerInfo===it.containerInfo&&Qe.stateNode.implementation===it.implementation){m(Te,Qe.sibling),je=w(Qe,it.children||[]),je.return=Te,Te=je;break e}else{m(Te,Qe);break}else c(Te,Qe);Qe=Qe.sibling}je=Ff(it,Te.mode,je),je.return=Te,Te=je}return I(Te);case j4:return it=j2(me._debugInfo),me=o7(me),Te=l1(Te,Qe,me,je),Wt=it,Te}if(z2(me))return it=j2(me._debugInfo),Te=Ot(Te,Qe,me,je),Wt=it,Te;if(V(me)){if(it=j2(me._debugInfo),Bt=V(me),typeof Bt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ft=Bt.call(me);return ft===me?(Te.tag!==0||Object.prototype.toString.call(Te.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ft)!=="[object Generator]")&&(zB||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),zB=!0):me.entries!==Bt||aH||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),aH=!0),Te=r2(Te,Qe,ft,je),Wt=it,Te}if(typeof me.then=="function")return it=j2(me._debugInfo),Te=l1(Te,Qe,rn(me),je),Wt=it,Te;if(me.$$typeof===m4)return l1(Te,Qe,q8(Te,me),je);g1(Te,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(it=""+me,Qe!==null&&Qe.tag===6?(m(Te,Qe.sibling),je=w(Qe,it),je.return=Te,Te=je):(m(Te,Qe),je=If(it,Te.mode,je),je.return=Te,je._debugOwner=Te,je._debugTask=Te._debugTask,je._debugInfo=Wt,Te=je),I(Te)):(typeof me=="function"&&Q2(Te,me),typeof me=="symbol"&&ra(Te,me),m(Te,Qe))}return function(Te,Qe,me,je){var it=Wt;Wt=null;try{Xh=0;var Bt=l1(Te,Qe,me,je);return nc=null,Bt}catch(s2){if(s2===$h||s2===Cv)throw s2;var ft=p(29,s2,null,Te.mode);ft.lanes=je,ft.return=Te;var Pt=ft._debugInfo=Wt;if(ft._debugOwner=Te._debugOwner,ft._debugTask=Te._debugTask,Pt!=null){for(var qt=Pt.length-1;0<=qt;qt--)if(typeof Pt[qt].stack=="string"){ft._debugOwner=Pt[qt],ft._debugTask=Pt[qt].debugTask;break}}return ft}finally{Wt=it}}}function l4(n){var c=n.alternate;$(m3,m3.current&ic,n),$(r5,n,n),H0===null&&(c===null||Ju.current!==null||c.memoizedState!==null)&&(H0=n)}function ol(n){if(n.tag===22){if($(m3,m3.current,n),$(r5,n,n),H0===null){var c=n.alternate;c!==null&&c.memoizedState!==null&&(H0=n)}}else i6(n)}function i6(n){$(m3,m3.current,n),$(r5,r5.current,n)}function s4(n){q(r5,n),H0===n&&(H0=null),q(m3,n)}function Ns(n){for(var c=n;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data===_a||Q0(m)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break;for(;c.sibling===null;){if(c.return===null||c.return===n)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function f2(n){if(n!==null&&typeof n!="function"){var c=String(n);iP.has(c)||(iP.add(c),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n))}}function ll(n,c,m,b){var w=n.memoizedState,D=m(b,w);if(n.mode&v4){se(!0);try{D=m(b,w)}finally{se(!1)}}D===void 0&&(c=k(c)||"Component",eP.has(c)||(eP.add(c),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",c))),w=D==null?w:Vt({},w,D),n.memoizedState=w,n.lanes===0&&(n.updateQueue.baseState=w)}function Bs(n,c,m,b,w,D,I){var G=n.stateNode;if(typeof G.shouldComponentUpdate=="function"){if(m=G.shouldComponentUpdate(b,D,I),n.mode&v4){se(!0);try{m=G.shouldComponentUpdate(b,D,I)}finally{se(!1)}}return m===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",k(c)||"Component"),m}return c.prototype&&c.prototype.isPureReactComponent?!I8(m,b)||!I8(w,D):!0}function ud(n,c,m,b){var w=c.state;typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,b),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,b),c.state!==w&&(n=R(n)||"Component",XB.has(n)||(XB.add(n),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",n)),oH.enqueueReplaceState(c,c.state,null))}function e0(n,c){var m=c;if("ref"in c){m={};for(var b in c)b!=="ref"&&(m[b]=c[b])}if(n=n.defaultProps){m===c&&(m=Vt({},m));for(var w in n)m[w]===void 0&&(m[w]=n[w])}return m}function Vy(n){lH(n),console.warn(`%s
|
|
538
538
|
|
|
539
539
|
%s
|
|
540
540
|
`,ac?"An error occurred in the <"+ac+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
@@ -548,16 +548,16 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
548
548
|
%s
|
|
549
549
|
|
|
550
550
|
%s
|
|
551
|
-
`,n,c,m)}function js(n){lH(n)}function Mo(n,c){try{ac=c.source?R(c.source):null,sH=null;var m=c.value;if(Ce.actQueue!==null)Ce.thrownErrors.push(m);else{var b=n.onUncaughtError;b(m,{componentStack:c.stack})}}catch(w){setTimeout(function(){throw w})}}function N3(n,c,m){try{ac=m.source?R(m.source):null,sH=R(c);var b=n.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function m2(n,c,m){return m=W6(m),m.tag=Yb,m.payload={element:null},m.callback=function(){ht(c.source,Mo,n,c)},m}function sl(n){return n=W6(n),n.tag=Yb,n}function aa(n,c,m,b){var w=m.type.getDerivedStateFromError;if(typeof w=="function"){var D=b.value;n.payload=function(){return w(D)},n.callback=function(){ps(m),ht(b.source,N3,c,m,b)}}var I=m.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(n.callback=function(){ps(m),ht(b.source,N3,c,m,b),typeof w!="function"&&(c7===null?c7=new Set([this]):c7.add(this)),Cie(this,b),typeof w=="function"||(m.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",R(m)||"Unknown")})}function Is(n,c,m,b,w){if(m.flags|=32768,c6&&Qa(n,w),b!==null&&typeof b=="object"&&typeof b.then=="function"){if(c=m.alternate,c!==null&&q5(c,m,w,!0),v1&&(ba=!0),m=r5.current,m!==null){switch(m.tag){case 13:return H0===null?tu():m.alternate===null&&D2===Sa&&(D2=QH),m.flags&=-257,m.flags|=65536,m.lanes=w,b===Wb?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([b]):c.add(b),$d(n,b,w)),!1;case 22:return m.flags|=65536,b===Wb?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([b]):m.add(b)),$d(n,b,w)),!1}throw Error("Unexpected Suspense handler tag ("+m.tag+"). This is a bug in React.")}return $d(n,b,w),tu(),!1}if(v1)return ba=!0,c=r5.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=w,b!==Ub&&ao(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:b}),m))):(b!==Ub&&ao(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:b}),m)),n=n.current.alternate,n.flags|=65536,w&=-w,n.lanes|=w,b=e4(b,m),w=m2(n.stateNode,b,w),U5(n,w),D2!==t9&&(D2=uc)),!1;var D=e4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:b}),m);if(rp===null?rp=[D]:rp.push(D),D2!==t9&&(D2=uc),c===null)return!0;b=e4(b,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,n=w&-w,m.lanes|=n,n=m2(m.stateNode,b,n),U5(m,n),!1;case 1:if(c=m.type,D=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(c7===null||!c7.has(D))))return m.flags|=65536,w&=-w,m.lanes|=w,w=sl(w),aa(w,n,m,b),U5(m,w),!1}m=m.return}while(m!==null);return!1}function I2(n,c,m,b){c.child=n===null?GB(c,null,m,b):rc(c,n.child,m,b)}function Bn(n,c,m,b,w){m=m.render;var D=c.ref;if("ref"in b){var I={};for(var G in b)G!=="ref"&&(I[G]=b[G])}else I=b;return $r(c),be(c),b=co(n,c,m,I,D,w),G=G5(),Se(),n!==null&&!H3?(J6(n,c,w),Pn(n,c,w)):(v1&&G&&vs(c),c.flags|=1,I2(n,c,b,w),c.child)}function ul(n,c,m,b,w){if(n===null){var D=m.type;return typeof D=="function"&&!ms(D)&&D.defaultProps===void 0&&m.compare===null?(m=$i(D),c.tag=15,c.type=m,Tl(c,D),Fs(n,c,m,b,w)):(n=ys(m.type,null,b,c,c.mode,w),n.ref=c.ref,n.return=c,c.child=n)}if(D=n.child,!vd(n,w)){var I=D.memoizedProps;if(m=m.compare,m=m!==null?m:I8,m(I,b)&&n.ref===c.ref)return Pn(n,c,w)}return c.flags|=1,n=Dn(D,b),n.ref=c.ref,n.return=c,c.child=n}function Fs(n,c,m,b,w){if(n!==null){var D=n.memoizedProps;if(I8(D,b)&&n.ref===c.ref&&c.type===n.type)if(H3=!1,c.pendingProps=b=D,vd(n,w))(n.flags&131072)!==0&&(H3=!0);else return c.lanes=n.lanes,Pn(n,c,w)}return qs(n,c,m,b,w)}function zs(n,c,m){var b=c.pendingProps,w=b.children,D=n!==null?n.memoizedState:null;if(b.mode==="hidden"){if((c.flags&128)!==0){if(b=D!==null?D.baseLanes|m:m,n!==null){for(w=c.child=n.child,D=0;w!==null;)D=D|w.lanes|w.childLanes,w=w.sibling;c.childLanes=D&~b}else c.childLanes=0,c.child=null;return cd(n,c,b,m)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},n!==null&&Hs(c,D!==null?D.cachePool:null),D!==null?Ms(c,D):K6(c),ol(c);else return c.lanes=c.childLanes=536870912,cd(n,c,D!==null?D.baseLanes|m:m,m)}else D!==null?(Hs(c,D.cachePool),Ms(c,D),i6(c),c.memoizedState=null):(n!==null&&Hs(c,null),K6(c),i6(c));return I2(n,c,w,m),c.child}function cd(n,c,m,b){var w=Xf();return w=w===null?null:{parent:h3._currentValue,pool:w},c.memoizedState={baseLanes:m,cachePool:w},n!==null&&Hs(c,null),K6(c),ol(c),n!==null&&q5(n,c,b,!0),null}function cl(n,c){var m=c.ref;if(m===null)n!==null&&n.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(n===null||n.ref!==m)&&(c.flags|=4194816)}}function qs(n,c,m,b,w){if(m.prototype&&typeof m.prototype.render=="function"){var D=k(m)||"Unknown";oP[D]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",D,D),oP[D]=!0)}return c.mode&v4&&vr.recordLegacyContextWarning(c,null),n===null&&(Tl(c,c.type),m.contextTypes&&(D=k(m)||"Unknown",sP[D]||(sP[D]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",D)))),$r(c),be(c),m=co(n,c,m,b,void 0,w),b=G5(),Se(),n!==null&&!H3?(J6(n,c,w),Pn(n,c,w)):(v1&&b&&vs(c),c.flags|=1,I2(n,c,m,w),c.child)}function Td(n,c,m,b,w,D){return $r(c),be(c),Ea=-1,Zh=n!==null&&n.type!==c.type,c.updateQueue=null,m=i4(c,b,m,w),G8(n,c),b=G5(),Se(),n!==null&&!H3?(J6(n,c,D),Pn(n,c,D)):(v1&&b&&vs(c),c.flags|=1,I2(n,c,m,D),c.child)}function Qd(n,c,m,b,w){switch(l(c)){case!1:var D=c.stateNode,I=new c.type(c.memoizedProps,D.context).state;D.updater.enqueueSetState(D,I,null);break;case!0:c.flags|=128,c.flags|=65536,D=Error("Simulated error coming from DevTools");var G=w&-w;if(c.lanes|=G,I=n2,I===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");G=sl(G),aa(G,I,c,e4(D,c)),U5(c,G)}if($r(c),c.stateNode===null){if(I=r7,D=m.contextType,"contextType"in m&&D!==null&&(D===void 0||D.$$typeof!==m4)&&!rP.has(m)&&(rP.add(m),G=D===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof D!="object"?" However, it is set to a "+typeof D+".":D.$$typeof===Vl?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(D).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",k(m)||"Component",G)),typeof D=="object"&&D!==null&&(I=K1(D)),D=new m(b,I),c.mode&v4){se(!0);try{D=new m(b,I)}finally{se(!1)}}if(I=c.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=oH,c.stateNode=D,D._reactInternals=c,D._reactInternalInstance=ZB,typeof m.getDerivedStateFromProps=="function"&&I===null&&(I=k(m)||"Component",WB.has(I)||(WB.add(I),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",I,D.state===null?"null":"undefined",I))),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"){var ie=G=I=null;if(typeof D.componentWillMount=="function"&&D.componentWillMount.__suppressDeprecationWarning!==!0?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"&&D.componentWillReceiveProps.__suppressDeprecationWarning!==!0?G="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(G="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"&&D.componentWillUpdate.__suppressDeprecationWarning!==!0?ie="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(ie="UNSAFE_componentWillUpdate"),I!==null||G!==null||ie!==null){D=k(m)||"Component";var
|
|
551
|
+
`,n,c,m)}function js(n){lH(n)}function Mo(n,c){try{ac=c.source?R(c.source):null,sH=null;var m=c.value;if(Ce.actQueue!==null)Ce.thrownErrors.push(m);else{var b=n.onUncaughtError;b(m,{componentStack:c.stack})}}catch(w){setTimeout(function(){throw w})}}function N3(n,c,m){try{ac=m.source?R(m.source):null,sH=R(c);var b=n.onCaughtError;b(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function m2(n,c,m){return m=W6(m),m.tag=Yb,m.payload={element:null},m.callback=function(){ht(c.source,Mo,n,c)},m}function sl(n){return n=W6(n),n.tag=Yb,n}function aa(n,c,m,b){var w=m.type.getDerivedStateFromError;if(typeof w=="function"){var D=b.value;n.payload=function(){return w(D)},n.callback=function(){ps(m),ht(b.source,N3,c,m,b)}}var I=m.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(n.callback=function(){ps(m),ht(b.source,N3,c,m,b),typeof w!="function"&&(c7===null?c7=new Set([this]):c7.add(this)),Cie(this,b),typeof w=="function"||(m.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",R(m)||"Unknown")})}function Is(n,c,m,b,w){if(m.flags|=32768,c6&&Qa(n,w),b!==null&&typeof b=="object"&&typeof b.then=="function"){if(c=m.alternate,c!==null&&q5(c,m,w,!0),v1&&(ba=!0),m=r5.current,m!==null){switch(m.tag){case 13:return H0===null?tu():m.alternate===null&&D2===Sa&&(D2=QH),m.flags&=-257,m.flags|=65536,m.lanes=w,b===Wb?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([b]):c.add(b),$d(n,b,w)),!1;case 22:return m.flags|=65536,b===Wb?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([b])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([b]):m.add(b)),$d(n,b,w)),!1}throw Error("Unexpected Suspense handler tag ("+m.tag+"). This is a bug in React.")}return $d(n,b,w),tu(),!1}if(v1)return ba=!0,c=r5.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=w,b!==Ub&&ao(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:b}),m))):(b!==Ub&&ao(e4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:b}),m)),n=n.current.alternate,n.flags|=65536,w&=-w,n.lanes|=w,b=e4(b,m),w=m2(n.stateNode,b,w),U5(n,w),D2!==t9&&(D2=uc)),!1;var D=e4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:b}),m);if(rp===null?rp=[D]:rp.push(D),D2!==t9&&(D2=uc),c===null)return!0;b=e4(b,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,n=w&-w,m.lanes|=n,n=m2(m.stateNode,b,n),U5(m,n),!1;case 1:if(c=m.type,D=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(c7===null||!c7.has(D))))return m.flags|=65536,w&=-w,m.lanes|=w,w=sl(w),aa(w,n,m,b),U5(m,w),!1}m=m.return}while(m!==null);return!1}function I2(n,c,m,b){c.child=n===null?GB(c,null,m,b):rc(c,n.child,m,b)}function Bn(n,c,m,b,w){m=m.render;var D=c.ref;if("ref"in b){var I={};for(var G in b)G!=="ref"&&(I[G]=b[G])}else I=b;return $r(c),be(c),b=co(n,c,m,I,D,w),G=G5(),Se(),n!==null&&!H3?(J6(n,c,w),Pn(n,c,w)):(v1&&G&&vs(c),c.flags|=1,I2(n,c,b,w),c.child)}function ul(n,c,m,b,w){if(n===null){var D=m.type;return typeof D=="function"&&!ms(D)&&D.defaultProps===void 0&&m.compare===null?(m=$i(D),c.tag=15,c.type=m,Tl(c,D),Fs(n,c,m,b,w)):(n=ys(m.type,null,b,c,c.mode,w),n.ref=c.ref,n.return=c,c.child=n)}if(D=n.child,!vd(n,w)){var I=D.memoizedProps;if(m=m.compare,m=m!==null?m:I8,m(I,b)&&n.ref===c.ref)return Pn(n,c,w)}return c.flags|=1,n=Dn(D,b),n.ref=c.ref,n.return=c,c.child=n}function Fs(n,c,m,b,w){if(n!==null){var D=n.memoizedProps;if(I8(D,b)&&n.ref===c.ref&&c.type===n.type)if(H3=!1,c.pendingProps=b=D,vd(n,w))(n.flags&131072)!==0&&(H3=!0);else return c.lanes=n.lanes,Pn(n,c,w)}return qs(n,c,m,b,w)}function zs(n,c,m){var b=c.pendingProps,w=b.children,D=n!==null?n.memoizedState:null;if(b.mode==="hidden"){if((c.flags&128)!==0){if(b=D!==null?D.baseLanes|m:m,n!==null){for(w=c.child=n.child,D=0;w!==null;)D=D|w.lanes|w.childLanes,w=w.sibling;c.childLanes=D&~b}else c.childLanes=0,c.child=null;return cd(n,c,b,m)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},n!==null&&Hs(c,D!==null?D.cachePool:null),D!==null?Ms(c,D):K6(c),ol(c);else return c.lanes=c.childLanes=536870912,cd(n,c,D!==null?D.baseLanes|m:m,m)}else D!==null?(Hs(c,D.cachePool),Ms(c,D),i6(c),c.memoizedState=null):(n!==null&&Hs(c,null),K6(c),i6(c));return I2(n,c,w,m),c.child}function cd(n,c,m,b){var w=Xf();return w=w===null?null:{parent:h3._currentValue,pool:w},c.memoizedState={baseLanes:m,cachePool:w},n!==null&&Hs(c,null),K6(c),ol(c),n!==null&&q5(n,c,b,!0),null}function cl(n,c){var m=c.ref;if(m===null)n!==null&&n.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(n===null||n.ref!==m)&&(c.flags|=4194816)}}function qs(n,c,m,b,w){if(m.prototype&&typeof m.prototype.render=="function"){var D=k(m)||"Unknown";oP[D]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",D,D),oP[D]=!0)}return c.mode&v4&&vr.recordLegacyContextWarning(c,null),n===null&&(Tl(c,c.type),m.contextTypes&&(D=k(m)||"Unknown",sP[D]||(sP[D]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",D)))),$r(c),be(c),m=co(n,c,m,b,void 0,w),b=G5(),Se(),n!==null&&!H3?(J6(n,c,w),Pn(n,c,w)):(v1&&b&&vs(c),c.flags|=1,I2(n,c,m,w),c.child)}function Td(n,c,m,b,w,D){return $r(c),be(c),Ea=-1,Zh=n!==null&&n.type!==c.type,c.updateQueue=null,m=i4(c,b,m,w),G8(n,c),b=G5(),Se(),n!==null&&!H3?(J6(n,c,D),Pn(n,c,D)):(v1&&b&&vs(c),c.flags|=1,I2(n,c,m,D),c.child)}function Qd(n,c,m,b,w){switch(l(c)){case!1:var D=c.stateNode,I=new c.type(c.memoizedProps,D.context).state;D.updater.enqueueSetState(D,I,null);break;case!0:c.flags|=128,c.flags|=65536,D=Error("Simulated error coming from DevTools");var G=w&-w;if(c.lanes|=G,I=n2,I===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");G=sl(G),aa(G,I,c,e4(D,c)),U5(c,G)}if($r(c),c.stateNode===null){if(I=r7,D=m.contextType,"contextType"in m&&D!==null&&(D===void 0||D.$$typeof!==m4)&&!rP.has(m)&&(rP.add(m),G=D===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof D!="object"?" However, it is set to a "+typeof D+".":D.$$typeof===Vl?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(D).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",k(m)||"Component",G)),typeof D=="object"&&D!==null&&(I=K1(D)),D=new m(b,I),c.mode&v4){se(!0);try{D=new m(b,I)}finally{se(!1)}}if(I=c.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=oH,c.stateNode=D,D._reactInternals=c,D._reactInternalInstance=ZB,typeof m.getDerivedStateFromProps=="function"&&I===null&&(I=k(m)||"Component",WB.has(I)||(WB.add(I),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",I,D.state===null?"null":"undefined",I))),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"){var ie=G=I=null;if(typeof D.componentWillMount=="function"&&D.componentWillMount.__suppressDeprecationWarning!==!0?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"&&D.componentWillReceiveProps.__suppressDeprecationWarning!==!0?G="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(G="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"&&D.componentWillUpdate.__suppressDeprecationWarning!==!0?ie="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(ie="UNSAFE_componentWillUpdate"),I!==null||G!==null||ie!==null){D=k(m)||"Component";var le=typeof m.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";KB.has(D)||(KB.add(D),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
552
552
|
|
|
553
553
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
554
554
|
|
|
555
555
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
556
|
-
https://react.dev/link/unsafe-component-lifecycles`,D,
|
|
556
|
+
https://react.dev/link/unsafe-component-lifecycles`,D,le,I!==null?`
|
|
557
557
|
`+I:"",G!==null?`
|
|
558
558
|
`+G:"",ie!==null?`
|
|
559
|
-
`+ie:""))}}D=c.stateNode,I=k(m)||"Component",D.render||(m.prototype&&typeof m.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",I):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",I)),!D.getInitialState||D.getInitialState.isReactClassApproved||D.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",I),D.getDefaultProps&&!D.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",I),D.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",I),m.childContextTypes&&!nP.has(m)&&(nP.add(m),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",I)),m.contextTypes&&!tP.has(m)&&(tP.add(m),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",I)),typeof D.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",I),m.prototype&&m.prototype.isPureReactComponent&&typeof D.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",k(m)||"A pure component"),typeof D.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",I),typeof D.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",I),typeof D.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",I),typeof D.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",I),G=D.props!==b,D.props!==void 0&&G&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",I),D.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",I,I),typeof D.getSnapshotBeforeUpdate!="function"||typeof D.componentDidUpdate=="function"||YB.has(m)||(YB.add(m),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(m))),typeof D.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof D.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof m.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",I),(G=D.state)&&(typeof G!="object"||z2(G))&&console.error("%s.state: must be set to an object or null",I),typeof D.getChildContext=="function"&&typeof m.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",I),D=c.stateNode,D.props=b,D.state=c.memoizedState,D.refs={},Gr(c),I=m.contextType,D.context=typeof I=="object"&&I!==null?K1(I):r7,D.state===b&&(I=k(m)||"Component",JB.has(I)||(JB.add(I),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",I))),c.mode&v4&&vr.recordLegacyContextWarning(c,D),vr.recordUnsafeLifecycleWarnings(c,D),D.state=c.memoizedState,I=m.getDerivedStateFromProps,typeof I=="function"&&(ll(c,m,I,b),D.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(I=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),I!==D.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",R(c)||"Component"),oH.enqueueReplaceState(D,D.state,null)),Zr(c,b,D,w),so(),D.state=c.memoizedState),typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&yr)!==l2&&(c.flags|=134217728),D=!0}else if(n===null){D=c.stateNode;var we=c.memoizedProps;G=e0(m,we),D.props=G;var Ne=D.context;ie=m.contextType,I=r7,typeof ie=="object"&&ie!==null&&(I=K1(ie)),
|
|
560
|
-
%s.childContextTypes = ...`,c.displayName||c.name||"Component"),typeof c.getDerivedStateFromProps=="function"&&(n=k(c)||"Unknown",uP[n]||(console.error("%s: Function components do not support getDerivedStateFromProps.",n),uP[n]=!0)),typeof c.contextType=="object"&&c.contextType!==null&&(c=k(c)||"Unknown",lP[c]||(console.error("%s: Function components do not support contextType.",c),lP[c]=!0))}function $s(n){return{baseLanes:n,cachePool:Wf()}}function dd(n,c,m){return n=n!==null?n.childLanes&~m:0,c&&(n|=gn),n}function hd(n,c,m){var b,w=c.pendingProps;i(c)&&(c.flags|=128);var D=!1,I=(c.flags&128)!==0;if((b=I)||(b=n!==null&&n.memoizedState===null?!1:(m3.current&Wh)!==0),b&&(D=!0,c.flags&=-129),b=(c.flags&32)!==0,c.flags&=-33,n===null){if(v1){if(D?l4(c):i6(c),v1){var G=V2,ie;if(!(ie=!G)){e:{var oe=G;for(ie=x0;oe.nodeType!==8;){if(!ie){ie=null;break e}if(oe=h4(oe.nextSibling),oe===null){ie=null;break e}}ie=oe}ie!==null?(Z6(),c.memoizedState={dehydrated:ie,treeContext:Zl!==null?{id:La,overflow:xa}:null,retryLane:536870912,hydrationErrors:null},oe=p(18,null,null,l2),oe.stateNode=ie,oe.return=c,c.child=oe,z4=c,V2=null,ie=!0):ie=!1,ie=!ie}ie&&(ro(c,G),zr(c))}if(G=c.memoizedState,G!==null&&(G=G.dehydrated,G!==null))return Q0(G)?c.lanes=32:c.lanes=536870912,null;s4(c)}return G=w.children,w=w.fallback,D?(i6(c),D=c.mode,G=Ql({mode:"hidden",children:G},D),w=e6(w,D,m,null),G.return=c,w.return=c,G.sibling=w,c.child=G,D=c.child,D.memoizedState=$s(m),D.childLanes=dd(n,b,m),c.memoizedState=cH,w):(l4(c),Us(c,G))}var we=n.memoizedState;if(we!==null&&(G=we.dehydrated,G!==null)){if(I)c.flags&256?(l4(c),c.flags&=-257,c=fl(n,c,m)):c.memoizedState!==null?(i6(c),c.child=n.child,c.flags|=128,c=null):(i6(c),D=w.fallback,G=c.mode,w=Ql({mode:"visible",children:w.children},G),D=e6(D,G,m,null),D.flags|=2,w.return=c,D.return=c,w.sibling=D,c.child=w,rc(c,n.child,null,m),w=c.child,w.memoizedState=$s(m),w.childLanes=dd(n,b,m),c.memoizedState=cH,c=D);else if(l4(c),v1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Q0(G)){if(b=G.nextSibling&&G.nextSibling.dataset,b){ie=b.dgst;var Ne=b.msg;oe=b.stck;var Oe=b.cstck}G=Ne,b=ie,w=oe,ie=D=Oe,D=Error(G||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=w||"",D.digest=b,b=ie===void 0?null:ie,w={value:D,source:null,stack:b},typeof b=="string"&&zb.set(D,w),ao(w),c=fl(n,c,m)}else if(H3||q5(n,c,m,!1),b=(m&n.childLanes)!==0,H3||b){if(b=n2,b!==null&&(w=m&-m,w=(w&42)!==0?1:We(w),w=(w&(b.suspendedLanes|m))!==0?0:w,w!==0&&w!==we.retryLane))throw we.retryLane=w,t4(n,w),Kt(b,n,w),aP;G.data===_a||tu(),c=fl(n,c,m)}else G.data===_a?(c.flags|=192,c.child=n.child,c=null):(n=we.treeContext,V2=h4(G.nextSibling),z4=c,v1=!0,Xl=null,ba=!1,Jn=null,x0=!1,n!==null&&(Z6(),Yn[Kn++]=La,Yn[Kn++]=xa,Yn[Kn++]=Zl,La=n.id,xa=n.overflow,Zl=c),c=Us(c,w.children),c.flags|=4096);return c}return D?(i6(c),D=w.fallback,G=c.mode,ie=n.child,oe=ie.sibling,w=Dn(ie,{mode:"hidden",children:w.children}),w.subtreeFlags=ie.subtreeFlags&65011712,oe!==null?D=Dn(oe,D):(D=e6(D,G,m,null),D.flags|=2),D.return=c,w.return=c,w.sibling=D,c.child=w,w=D,D=c.child,G=n.child.memoizedState,G===null?G=$s(m):(ie=G.cachePool,ie!==null?(oe=h3._currentValue,ie=ie.parent!==oe?{parent:oe,pool:oe}:ie):ie=Wf(),G={baseLanes:G.baseLanes|m,cachePool:ie}),D.memoizedState=G,D.childLanes=dd(n,b,m),c.memoizedState=cH,w):(l4(c),m=n.child,n=m.sibling,m=Dn(m,{mode:"visible",children:w.children}),m.return=c,m.sibling=null,n!==null&&(b=c.deletions,b===null?(c.deletions=[n],c.flags|=16):b.push(n)),c.child=m,c.memoizedState=null,m)}function Us(n,c){return c=Ql({mode:"visible",children:c},n.mode),c.return=n,n.child=c}function Ql(n,c){return n=p(22,n,null,c),n.lanes=0,n.stateNode={_visibility:qb,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function fl(n,c,m){return rc(c,n.child,null,m),n=Us(c,c.pendingProps.children),n.flags|=2,c.memoizedState=null,n}function pd(n,c,m){n.lanes|=c;var b=n.alternate;b!==null&&(b.lanes|=c),Uf(n.return,c,m)}function md(n,c){var m=z2(n);return n=!m&&typeof V(n)=="function",m||n?(m=m?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,c,m),!1):!0}function Gs(n,c,m,b,w){var D=n.memoizedState;D===null?n.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:w}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=b,D.tail=m,D.tailMode=w)}function yd(n,c,m){var b=c.pendingProps,w=b.revealOrder,D=b.tail;if(b=b.children,w!==void 0&&w!=="forwards"&&w!=="backwards"&&w!=="together"&&!cP[w])if(cP[w]=!0,typeof w=="string")switch(w.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',w,w.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',w,w.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w);D===void 0||uH[D]||(D!=="collapsed"&&D!=="hidden"?(uH[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',D)):w!=="forwards"&&w!=="backwards"&&(uH[D]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',D)));e:if((w==="forwards"||w==="backwards")&&b!==void 0&&b!==null&&b!==!1)if(z2(b)){for(var I=0;I<b.length;I++)if(!md(b[I],I))break e}else if(I=V(b),typeof I=="function"){if(I=I.call(b))for(var G=I.next(),ie=0;!G.done;G=I.next()){if(!md(G.value,ie))break e;ie++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',w);if(I2(n,c,b,m),b=m3.current,(b&Wh)!==0)b=b&ic|Wh,c.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=c.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&pd(n,m,c);else if(n.tag===19)pd(n,m,c);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===c)break e;for(;n.sibling===null;){if(n.return===null||n.return===c)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}b&=ic}switch($(m3,b,c),w){case"forwards":for(m=c.child,w=null;m!==null;)n=m.alternate,n!==null&&Ns(n)===null&&(w=m),m=m.sibling;m=w,m===null?(w=c.child,c.child=null):(w=m.sibling,m.sibling=null),Gs(c,!1,w,m,D);break;case"backwards":for(m=null,w=c.child,c.child=null;w!==null;){if(n=w.alternate,n!==null&&Ns(n)===null){c.child=w;break}n=w.sibling,w.sibling=m,m=w,w=n}Gs(c,!0,m,null,D);break;case"together":Gs(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Pn(n,c,m){if(n!==null&&(c.dependencies=n.dependencies),T6=-1,s7|=c.lanes,(m&c.childLanes)===0)if(n!==null){if(q5(n,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(n!==null&&c.child!==n.child)throw Error("Resuming work not yet implemented.");if(c.child!==null){for(n=c.child,m=Dn(n,n.pendingProps),c.child=m,m.return=c;n.sibling!==null;)n=n.sibling,m=m.sibling=Dn(n,n.pendingProps),m.return=c;m.sibling=null}return c.child}function vd(n,c){return(n.lanes&c)!==0?!0:(n=n.dependencies,!!(n!==null&&z8(n)))}function Dy(n,c,m){switch(c.tag){case 3:J(c,c.stateNode.containerInfo),qr(c,h3,n.memoizedState.cache),io();break;case 27:case 5:K(c);break;case 4:J(c,c.stateNode.containerInfo);break;case 10:qr(c,c.type,c.memoizedProps.value);break;case 12:(m&c.childLanes)!==0&&(c.flags|=4),c.flags|=2048;var b=c.stateNode;b.effectDuration=-0,b.passiveEffectDuration=-0;break;case 13:if(b=c.memoizedState,b!==null)return b.dehydrated!==null?(l4(c),c.flags|=128,null):(m&c.child.childLanes)!==0?hd(n,c,m):(l4(c),n=Pn(n,c,m),n!==null?n.sibling:null);l4(c);break;case 19:var w=(n.flags&128)!==0;if(b=(m&c.childLanes)!==0,b||(q5(n,c,m,!1),b=(m&c.childLanes)!==0),w){if(b)return yd(n,c,m);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),$(m3,m3.current,c),b)break;return null;case 22:case 23:return c.lanes=0,zs(n,c,m);case 24:qr(c,h3,n.memoizedState.cache)}return Pn(n,c,m)}function t0(n,c,m){if(c._debugNeedsRemount&&n!==null){m=ys(c.type,c.key,c.pendingProps,c._debugOwner||null,c.mode,c.lanes),m._debugStack=c._debugStack,m._debugTask=c._debugTask;var b=c.return;if(b===null)throw Error("Cannot swap the root fiber.");if(n.alternate=null,c.alternate=null,m.index=c.index,m.sibling=c.sibling,m.return=c.return,m.ref=c.ref,m._debugInfo=c._debugInfo,c===b.child)b.child=m;else{var w=b.child;if(w===null)throw Error("Expected parent to have a child.");for(;w.sibling!==c;)if(w=w.sibling,w===null)throw Error("Expected to find the previous sibling.");w.sibling=m}return c=b.deletions,c===null?(b.deletions=[n],b.flags|=16):c.push(n),m.flags|=2,m}if(n!==null)if(n.memoizedProps!==c.pendingProps||c.type!==n.type)H3=!0;else{if(!vd(n,m)&&(c.flags&128)===0)return H3=!1,Dy(n,c,m);H3=(n.flags&131072)!==0}else H3=!1,(b=v1)&&(Z6(),b=(c.flags&1048576)!==0),b&&(b=c.index,Z6(),zf(c,Ev,b));switch(c.lanes=0,c.tag){case 16:e:if(b=c.pendingProps,n=o7(c.elementType),c.type=n,typeof n=="function")ms(n)?(b=e0(n,b),c.tag=1,c.type=n=$i(n),c=Qd(null,c,n,b,m)):(c.tag=0,Tl(c,n),c.type=n=$i(n),c=qs(null,c,n,b,m));else{if(n!=null){if(w=n.$$typeof,w===p0){c.tag=11,c.type=n=Pf(n),c=Bn(null,c,n,b,m);break e}else if(w===Su){c.tag=14,c=ul(null,c,n,b,m);break e}}throw c="",n!==null&&typeof n=="object"&&n.$$typeof===j4&&(c=" Did you wrap a component in React.lazy() more than once?"),n=k(n)||n,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+c)}return c;case 0:return qs(n,c,c.type,c.pendingProps,m);case 1:return b=c.type,w=e0(b,c.pendingProps),Qd(n,c,b,w,m);case 3:e:{if(J(c,c.stateNode.containerInfo),n===null)throw Error("Should have a current fiber. This is a bug in React.");b=c.pendingProps;var D=c.memoizedState;w=D.element,U8(n,c),Zr(c,b,null,m);var I=c.memoizedState;if(b=I.cache,qr(c,h3,b),b!==D.cache&&R3(c,[h3],m,!0),so(),b=I.element,D.isDehydrated)if(D={element:b,isDehydrated:!1,cache:I.cache},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){c=fd(n,c,b,m);break e}else if(b!==w){w=e4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),c),ao(w),c=fd(n,c,b,m);break e}else{switch(n=c.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(V2=h4(n.firstChild),z4=c,v1=!0,Xl=null,ba=!1,Jn=null,x0=!0,n=GB(c,null,b,m),c.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(io(),b===w){c=Pn(n,c,m);break e}I2(n,c,b,m)}c=c.child}return c;case 26:return cl(n,c),n===null?(n=Ml(c.type,null,c.pendingProps,null))?c.memoizedState=n:v1||(n=c.type,m=c.pendingProps,b=Z(Fn.current),b=m1(b).createElement(n),b[b3]=c,b[y4]=m,K2(b,n,m),ge(b),c.stateNode=b):c.memoizedState=Ml(c.type,n.memoizedProps,c.pendingProps,n.memoizedState),null;case 27:return K(c),n===null&&v1&&(b=Z(Fn.current),w=ne(),b=c.stateNode=p4(c.type,c.pendingProps,b,w,!1),ba||(w=e1(b,c.type,c.pendingProps,w),w!==null&&(Xi(c,0).serverProps=w)),z4=c,x0=!0,w=V2,F2(c.type)?(VH=w,V2=h4(b.firstChild)):V2=w),I2(n,c,c.pendingProps.children,m),cl(n,c),n===null&&(c.flags|=4194304),c.child;case 5:return n===null&&v1&&(D=ne(),b=os(c.type,D.ancestorInfo),w=V2,(I=!w)||(I=T3(w,c.type,c.pendingProps,x0),I!==null?(c.stateNode=I,ba||(D=e1(I,c.type,c.pendingProps,D),D!==null&&(Xi(c,0).serverProps=D)),z4=c,V2=h4(I.firstChild),x0=!1,D=!0):D=!1,I=!D),I&&(b&&ro(c,w),zr(c))),K(c),w=c.type,D=c.pendingProps,I=n!==null?n.memoizedProps:null,b=D.children,s0(w,D)?b=null:I!==null&&s0(w,I)&&(c.flags|=32),c.memoizedState!==null&&(w=co(n,c,n6,null,null,m),Tp._currentValue=w),cl(n,c),I2(n,c,b,m),c.child;case 6:return n===null&&v1&&(n=c.pendingProps,m=ne(),b=m.ancestorInfo.current,n=b!=null?Ja(n,b.tag,m.ancestorInfo.implicitRootScope):!0,m=V2,(b=!m)||(b=T0(m,c.pendingProps,x0),b!==null?(c.stateNode=b,z4=c,V2=null,b=!0):b=!1,b=!b),b&&(n&&ro(c,m),zr(c))),null;case 13:return hd(n,c,m);case 4:return J(c,c.stateNode.containerInfo),b=c.pendingProps,n===null?c.child=rc(c,null,b,m):I2(n,c,b,m),c.child;case 11:return Bn(n,c,c.type,c.pendingProps,m);case 7:return I2(n,c,c.pendingProps,m),c.child;case 8:return I2(n,c,c.pendingProps.children,m),c.child;case 12:return c.flags|=4,c.flags|=2048,b=c.stateNode,b.effectDuration=-0,b.passiveEffectDuration=-0,I2(n,c,c.pendingProps.children,m),c.child;case 10:return b=c.type,w=c.pendingProps,D=w.value,"value"in w||TP||(TP=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),qr(c,b,D),I2(n,c,w.children,m),c.child;case 9:return w=c.type._context,b=c.pendingProps.children,typeof b!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),$r(c),w=K1(w),be(c),b=rH(b,w,void 0),Se(),c.flags|=1,I2(n,c,b,m),c.child;case 14:return ul(n,c,c.type,c.pendingProps,m);case 15:return Fs(n,c,c.type,c.pendingProps,m);case 19:return yd(n,c,m);case 31:return b=c.pendingProps,m=c.mode,b={mode:b.mode,children:b.children},n===null?(n=Ql(b,m),n.ref=c.ref,c.child=n,n.return=c,c=n):(n=Dn(n.child,b),n.ref=c.ref,c.child=n,n.return=c,c=n),c;case 22:return zs(n,c,m);case 24:return $r(c),b=K1(h3),n===null?(w=Xf(),w===null&&(w=n2,D=Gf(),w.pooledCache=D,t6(D),D!==null&&(w.pooledCacheLanes|=m),w=D),c.memoizedState={parent:b,cache:w},Gr(c),qr(c,h3,w)):((n.lanes&m)!==0&&(U8(n,c),Zr(c,null,null,m),so()),w=n.memoizedState,D=c.memoizedState,w.parent!==b?(w={parent:b,cache:b},c.memoizedState=w,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=w),qr(c,h3,b)):(b=D.cache,qr(c,h3,b),b!==w.cache&&R3(c,[h3],m,!0))),I2(n,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function a6(n){n.flags|=4}function gd(n,c){if(c.type!=="stylesheet"||(c.state.loading&i5)!==c9)n.flags&=-16777217;else if(n.flags|=16777216,!sh(c)){if(c=r5.current,c!==null&&((a1&4194048)===a1?H0!==null:(a1&62914560)!==a1&&(a1&536870912)===0||c!==H0))throw Uh=Wb,LB;n.flags|=8192}}function oa(n,c){c!==null&&(n.flags|=4),n.flags&16384&&(c=n.tag!==22?ct():536870912,n.lanes|=c,i9|=c)}function er(n,c){if(!v1)switch(n.tailMode){case"hidden":c=n.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?n.tail=null:m.sibling=null;break;case"collapsed":m=n.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?c||n.tail===null?n.tail=null:n.tail.sibling=null:b.sibling=null}}function J1(n){var c=n.alternate!==null&&n.alternate.child===n.child,m=0,b=0;if(c)if((n.mode&P3)!==l2){for(var w=n.selfBaseDuration,D=n.child;D!==null;)m|=D.lanes|D.childLanes,b|=D.subtreeFlags&65011712,b|=D.flags&65011712,w+=D.treeBaseDuration,D=D.sibling;n.treeBaseDuration=w}else for(w=n.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags&65011712,b|=w.flags&65011712,w.return=n,w=w.sibling;else if((n.mode&P3)!==l2){w=n.actualDuration,D=n.selfBaseDuration;for(var I=n.child;I!==null;)m|=I.lanes|I.childLanes,b|=I.subtreeFlags,b|=I.flags,w+=I.actualDuration,D+=I.treeBaseDuration,I=I.sibling;n.actualDuration=w,n.treeBaseDuration=D}else for(w=n.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags,b|=w.flags,w.return=n,w=w.sibling;return n.subtreeFlags|=b,n.childLanes=m,c}function Ry(n,c,m){var b=c.pendingProps;switch(Zi(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return J1(c),null;case 1:return J1(c),null;case 3:return m=c.stateNode,b=null,n!==null&&(b=n.memoizedState.cache),c.memoizedState.cache!==b&&(c.flags|=2048),z5(h3,c),W(c),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(n===null||n.child===null)&&(Wi(c)?(Oy(),a6(c)):n===null||n.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,$f())),J1(c),null;case 26:return m=c.memoizedState,n===null?(a6(c),m!==null?(J1(c),gd(c,m)):(J1(c),c.flags&=-16777217)):m?m!==n.memoizedState?(a6(c),J1(c),gd(c,m)):(J1(c),c.flags&=-16777217):(n.memoizedProps!==b&&a6(c),J1(c),c.flags&=-16777217),null;case 27:Y(c),m=Z(Fn.current);var w=c.type;if(n!==null&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(!b){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return J1(c),null}n=ne(),Wi(c)?qf(c):(n=p4(w,b,m,n,!0),c.stateNode=n,a6(c))}return J1(c),null;case 5:if(Y(c),m=c.type,n!==null&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(!b){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return J1(c),null}if(w=ne(),Wi(c))qf(c);else{switch(n=Z(Fn.current),os(m,w.ancestorInfo),w=w.context,n=m1(n),w){case hc:n=n.createElementNS(mr,m);break;case Kv:n=n.createElementNS(Pu,m);break;default:switch(m){case"svg":n=n.createElementNS(mr,m);break;case"math":n=n.createElementNS(Pu,m);break;case"script":n=n.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof b.is=="string"?n.createElement("select",{is:b.is}):n.createElement("select"),b.multiple?n.multiple=!0:b.size&&(n.size=b.size);break;default:n=typeof b.is=="string"?n.createElement(m,{is:b.is}):n.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||zn.call(OP,m)||(OP[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}n[b3]=c,n[y4]=b;e:for(w=c.child;w!==null;){if(w.tag===5||w.tag===6)n.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===c)break e;for(;w.sibling===null;){if(w.return===null||w.return===c)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}c.stateNode=n;e:switch(K2(n,m,b),m){case"button":case"input":case"select":case"textarea":n=!!b.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&a6(c)}}return J1(c),c.flags&=-16777217,null;case 6:if(n&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(typeof b!="string"&&c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(n=Z(Fn.current),m=ne(),Wi(c)){n=c.stateNode,m=c.memoizedProps,w=!ba,b=null;var D=z4;if(D!==null)switch(D.tag){case 3:w&&(w=ih(n,m,b),w!==null&&(Xi(c,0).serverProps=w));break;case 27:case 5:b=D.memoizedProps,w&&(w=ih(n,m,b),w!==null&&(Xi(c,0).serverProps=w))}n[b3]=c,n=!!(n.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||da(n.nodeValue,m)),n||zr(c)}else w=m.ancestorInfo.current,w!=null&&Ja(b,w.tag,m.ancestorInfo.implicitRootScope),n=m1(n).createTextNode(b),n[b3]=c,c.stateNode=n}return J1(c),null;case 13:if(b=c.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(w=Wi(c),b!==null&&b.dehydrated!==null){if(n===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=c.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w[b3]=c,J1(c),(c.mode&P3)!==l2&&b!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration))}else Oy(),io(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4,J1(c),(c.mode&P3)!==l2&&b!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration));w=!1}else w=$f(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=w),w=!0;if(!w)return c.flags&256?(s4(c),c):(s4(c),null)}return s4(c),(c.flags&128)!==0?(c.lanes=m,(c.mode&P3)!==l2&&$8(c),c):(m=b!==null,n=n!==null&&n.memoizedState!==null,m&&(b=c.child,w=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(w=b.alternate.memoizedState.cachePool.pool),D=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(D=b.memoizedState.cachePool.pool),D!==w&&(b.flags|=2048)),m!==n&&m&&(c.child.flags|=8192),oa(c,c.updateQueue),J1(c),(c.mode&P3)!==l2&&m&&(n=c.child,n!==null&&(c.treeBaseDuration-=n.treeBaseDuration)),null);case 4:return W(c),n===null&&bl(c.stateNode.containerInfo),J1(c),null;case 10:return z5(c.type,c),J1(c),null;case 19:if(q(m3,c),w=c.memoizedState,w===null)return J1(c),null;if(b=(c.flags&128)!==0,D=w.rendering,D===null)if(b)er(w,!1);else{if(D2!==Sa||n!==null&&(n.flags&128)!==0)for(n=c.child;n!==null;){if(D=Ns(n),D!==null){for(c.flags|=128,er(w,!1),n=D.updateQueue,c.updateQueue=n,oa(c,n),c.subtreeFlags=0,n=m,m=c.child;m!==null;)jf(m,n),m=m.sibling;return $(m3,m3.current&ic|Wh,c),c.child}n=n.sibling}w.tail!==null&&Q3()>jv&&(c.flags|=128,b=!0,er(w,!1),c.lanes=4194304)}else{if(!b)if(n=Ns(D),n!==null){if(c.flags|=128,b=!0,n=n.updateQueue,c.updateQueue=n,oa(c,n),er(w,!0),w.tail===null&&w.tailMode==="hidden"&&!D.alternate&&!v1)return J1(c),null}else 2*Q3()-w.renderingStartTime>jv&&m!==536870912&&(c.flags|=128,b=!0,er(w,!1),c.lanes=4194304);w.isBackwards?(D.sibling=c.child,c.child=D):(n=w.last,n!==null?n.sibling=D:c.child=D,w.last=D)}return w.tail!==null?(n=w.tail,w.rendering=n,w.tail=n.sibling,w.renderingStartTime=Q3(),n.sibling=null,m=m3.current,m=b?m&ic|Wh:m&ic,$(m3,m,c),n):(J1(c),null);case 22:case 23:return s4(c),Ss(c),b=c.memoizedState!==null,n!==null?n.memoizedState!==null!==b&&(c.flags|=8192):b&&(c.flags|=8192),b?(m&536870912)!==0&&(c.flags&128)===0&&(J1(c),c.subtreeFlags&6&&(c.flags|=8192)):J1(c),m=c.updateQueue,m!==null&&oa(c,m.retryQueue),m=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(m=n.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==m&&(c.flags|=2048),n!==null&&q(Kl,c),null;case 24:return m=null,n!==null&&(m=n.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),z5(h3,c),J1(c),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ky(n,c){switch(Zi(c),c.tag){case 1:return n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 3:return z5(h3,c),W(c),n=c.flags,(n&65536)!==0&&(n&128)===0?(c.flags=n&-65537|128,c):null;case 26:case 27:case 5:return Y(c),null;case 13:if(s4(c),n=c.memoizedState,n!==null&&n.dehydrated!==null){if(c.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");io()}return n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 19:return q(m3,c),null;case 4:return W(c),null;case 10:return z5(c.type,c),null;case 22:case 23:return s4(c),Ss(c),n!==null&&q(Kl,c),n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 24:return z5(h3,c),null;case 25:return null;default:return null}}function Ld(n,c){switch(Zi(c),c.tag){case 3:z5(h3,c),W(c);break;case 26:case 27:case 5:Y(c);break;case 4:W(c);break;case 13:s4(c);break;case 19:q(m3,c);break;case 10:z5(c.type,c);break;case 22:case 23:s4(c),Ss(c),n!==null&&q(Kl,c);break;case 24:z5(h3,c)}}function an(n){return(n.mode&P3)!==l2}function xd(n,c){an(n)?(g3(),So(c,n),X6()):So(c,n)}function dl(n,c,m){an(n)?(g3(),la(m,n,c),X6()):la(m,n,c)}function So(n,c){try{var m=c.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&n)===n&&((n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectMountStarted=="function"&&ot.markComponentPassiveEffectMountStarted(c):(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectMountStarted=="function"&&ot.markComponentLayoutEffectMountStarted(c),b=void 0,(n&q4)!==e5&&(fc=!0),b=ht(c,wie,m),(n&q4)!==e5&&(fc=!1),(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectMountStopped=="function"&&ot.markComponentPassiveEffectMountStopped():(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectMountStopped=="function"&&ot.markComponentLayoutEffectMountStopped(),b!==void 0&&typeof b!="function")){var D=void 0;D=(m.tag&j3)!==0?"useLayoutEffect":(m.tag&q4)!==0?"useInsertionEffect":"useEffect";var I=void 0;I=b===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof b.then=="function"?`
|
|
559
|
+
`+ie:""))}}D=c.stateNode,I=k(m)||"Component",D.render||(m.prototype&&typeof m.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",I):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",I)),!D.getInitialState||D.getInitialState.isReactClassApproved||D.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",I),D.getDefaultProps&&!D.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",I),D.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",I),m.childContextTypes&&!nP.has(m)&&(nP.add(m),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",I)),m.contextTypes&&!tP.has(m)&&(tP.add(m),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",I)),typeof D.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",I),m.prototype&&m.prototype.isPureReactComponent&&typeof D.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",k(m)||"A pure component"),typeof D.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",I),typeof D.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",I),typeof D.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",I),typeof D.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",I),G=D.props!==b,D.props!==void 0&&G&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",I),D.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",I,I),typeof D.getSnapshotBeforeUpdate!="function"||typeof D.componentDidUpdate=="function"||YB.has(m)||(YB.add(m),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(m))),typeof D.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof D.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",I),typeof m.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",I),(G=D.state)&&(typeof G!="object"||z2(G))&&console.error("%s.state: must be set to an object or null",I),typeof D.getChildContext=="function"&&typeof m.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",I),D=c.stateNode,D.props=b,D.state=c.memoizedState,D.refs={},Gr(c),I=m.contextType,D.context=typeof I=="object"&&I!==null?K1(I):r7,D.state===b&&(I=k(m)||"Component",JB.has(I)||(JB.add(I),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",I))),c.mode&v4&&vr.recordLegacyContextWarning(c,D),vr.recordUnsafeLifecycleWarnings(c,D),D.state=c.memoizedState,I=m.getDerivedStateFromProps,typeof I=="function"&&(ll(c,m,I,b),D.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(I=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),I!==D.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",R(c)||"Component"),oH.enqueueReplaceState(D,D.state,null)),Zr(c,b,D,w),so(),D.state=c.memoizedState),typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&yr)!==l2&&(c.flags|=134217728),D=!0}else if(n===null){D=c.stateNode;var we=c.memoizedProps;G=e0(m,we),D.props=G;var Ne=D.context;ie=m.contextType,I=r7,typeof ie=="object"&&ie!==null&&(I=K1(ie)),le=m.getDerivedStateFromProps,ie=typeof le=="function"||typeof D.getSnapshotBeforeUpdate=="function",we=c.pendingProps!==we,ie||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(we||Ne!==I)&&ud(c,D,b,I),i7=!1;var Oe=c.memoizedState;D.state=Oe,Zr(c,b,D,w),so(),Ne=c.memoizedState,we||Oe!==Ne||i7?(typeof le=="function"&&(ll(c,m,le,b),Ne=c.memoizedState),(G=i7||Bs(c,m,G,b,Oe,Ne,I))?(ie||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&yr)!==l2&&(c.flags|=134217728)):(typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&yr)!==l2&&(c.flags|=134217728),c.memoizedProps=b,c.memoizedState=Ne),D.props=b,D.state=Ne,D.context=I,D=G):(typeof D.componentDidMount=="function"&&(c.flags|=4194308),(c.mode&yr)!==l2&&(c.flags|=134217728),D=!1)}else{D=c.stateNode,U8(n,c),I=c.memoizedProps,ie=e0(m,I),D.props=ie,le=c.pendingProps,Oe=D.context,Ne=m.contextType,G=r7,typeof Ne=="object"&&Ne!==null&&(G=K1(Ne)),we=m.getDerivedStateFromProps,(Ne=typeof we=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(I!==le||Oe!==G)&&ud(c,D,b,G),i7=!1,Oe=c.memoizedState,D.state=Oe,Zr(c,b,D,w),so();var Be=c.memoizedState;I!==le||Oe!==Be||i7||n!==null&&n.dependencies!==null&&z8(n.dependencies)?(typeof we=="function"&&(ll(c,m,we,b),Be=c.memoizedState),(ie=i7||Bs(c,m,ie,b,Oe,Be,G)||n!==null&&n.dependencies!==null&&z8(n.dependencies))?(Ne||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(b,Be,G),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(b,Be,G)),typeof D.componentDidUpdate=="function"&&(c.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof D.componentDidUpdate!="function"||I===n.memoizedProps&&Oe===n.memoizedState||(c.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Oe===n.memoizedState||(c.flags|=1024),c.memoizedProps=b,c.memoizedState=Be),D.props=b,D.state=Be,D.context=G,D=ie):(typeof D.componentDidUpdate!="function"||I===n.memoizedProps&&Oe===n.memoizedState||(c.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Oe===n.memoizedState||(c.flags|=1024),D=!1)}if(G=D,cl(n,c),I=(c.flags&128)!==0,G||I){if(G=c.stateNode,Pr(c),I&&typeof m.getDerivedStateFromError!="function")m=null,T6=-1;else{if(be(c),m=VB(G),c.mode&v4){se(!0);try{VB(G)}finally{se(!1)}}Se()}c.flags|=1,n!==null&&I?(c.child=rc(c,n.child,null,w),c.child=rc(c,null,m,w)):I2(n,c,m,w),c.memoizedState=G.state,n=c.child}else n=Pn(n,c,w);return w=c.stateNode,D&&w.props!==b&&(oc||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",R(c)||"a component"),oc=!0),n}function fd(n,c,m,b){return io(),c.flags|=256,I2(n,c,m,b),c.child}function Tl(n,c){c&&c.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
560
|
+
%s.childContextTypes = ...`,c.displayName||c.name||"Component"),typeof c.getDerivedStateFromProps=="function"&&(n=k(c)||"Unknown",uP[n]||(console.error("%s: Function components do not support getDerivedStateFromProps.",n),uP[n]=!0)),typeof c.contextType=="object"&&c.contextType!==null&&(c=k(c)||"Unknown",lP[c]||(console.error("%s: Function components do not support contextType.",c),lP[c]=!0))}function $s(n){return{baseLanes:n,cachePool:Wf()}}function dd(n,c,m){return n=n!==null?n.childLanes&~m:0,c&&(n|=gn),n}function hd(n,c,m){var b,w=c.pendingProps;i(c)&&(c.flags|=128);var D=!1,I=(c.flags&128)!==0;if((b=I)||(b=n!==null&&n.memoizedState===null?!1:(m3.current&Wh)!==0),b&&(D=!0,c.flags&=-129),b=(c.flags&32)!==0,c.flags&=-33,n===null){if(v1){if(D?l4(c):i6(c),v1){var G=V2,ie;if(!(ie=!G)){e:{var le=G;for(ie=x0;le.nodeType!==8;){if(!ie){ie=null;break e}if(le=h4(le.nextSibling),le===null){ie=null;break e}}ie=le}ie!==null?(Z6(),c.memoizedState={dehydrated:ie,treeContext:Zl!==null?{id:La,overflow:xa}:null,retryLane:536870912,hydrationErrors:null},le=p(18,null,null,l2),le.stateNode=ie,le.return=c,c.child=le,z4=c,V2=null,ie=!0):ie=!1,ie=!ie}ie&&(ro(c,G),zr(c))}if(G=c.memoizedState,G!==null&&(G=G.dehydrated,G!==null))return Q0(G)?c.lanes=32:c.lanes=536870912,null;s4(c)}return G=w.children,w=w.fallback,D?(i6(c),D=c.mode,G=Ql({mode:"hidden",children:G},D),w=e6(w,D,m,null),G.return=c,w.return=c,G.sibling=w,c.child=G,D=c.child,D.memoizedState=$s(m),D.childLanes=dd(n,b,m),c.memoizedState=cH,w):(l4(c),Us(c,G))}var we=n.memoizedState;if(we!==null&&(G=we.dehydrated,G!==null)){if(I)c.flags&256?(l4(c),c.flags&=-257,c=fl(n,c,m)):c.memoizedState!==null?(i6(c),c.child=n.child,c.flags|=128,c=null):(i6(c),D=w.fallback,G=c.mode,w=Ql({mode:"visible",children:w.children},G),D=e6(D,G,m,null),D.flags|=2,w.return=c,D.return=c,w.sibling=D,c.child=w,rc(c,n.child,null,m),w=c.child,w.memoizedState=$s(m),w.childLanes=dd(n,b,m),c.memoizedState=cH,c=D);else if(l4(c),v1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Q0(G)){if(b=G.nextSibling&&G.nextSibling.dataset,b){ie=b.dgst;var Ne=b.msg;le=b.stck;var Oe=b.cstck}G=Ne,b=ie,w=le,ie=D=Oe,D=Error(G||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),D.stack=w||"",D.digest=b,b=ie===void 0?null:ie,w={value:D,source:null,stack:b},typeof b=="string"&&zb.set(D,w),ao(w),c=fl(n,c,m)}else if(H3||q5(n,c,m,!1),b=(m&n.childLanes)!==0,H3||b){if(b=n2,b!==null&&(w=m&-m,w=(w&42)!==0?1:We(w),w=(w&(b.suspendedLanes|m))!==0?0:w,w!==0&&w!==we.retryLane))throw we.retryLane=w,t4(n,w),Kt(b,n,w),aP;G.data===_a||tu(),c=fl(n,c,m)}else G.data===_a?(c.flags|=192,c.child=n.child,c=null):(n=we.treeContext,V2=h4(G.nextSibling),z4=c,v1=!0,Xl=null,ba=!1,Jn=null,x0=!1,n!==null&&(Z6(),Yn[Kn++]=La,Yn[Kn++]=xa,Yn[Kn++]=Zl,La=n.id,xa=n.overflow,Zl=c),c=Us(c,w.children),c.flags|=4096);return c}return D?(i6(c),D=w.fallback,G=c.mode,ie=n.child,le=ie.sibling,w=Dn(ie,{mode:"hidden",children:w.children}),w.subtreeFlags=ie.subtreeFlags&65011712,le!==null?D=Dn(le,D):(D=e6(D,G,m,null),D.flags|=2),D.return=c,w.return=c,w.sibling=D,c.child=w,w=D,D=c.child,G=n.child.memoizedState,G===null?G=$s(m):(ie=G.cachePool,ie!==null?(le=h3._currentValue,ie=ie.parent!==le?{parent:le,pool:le}:ie):ie=Wf(),G={baseLanes:G.baseLanes|m,cachePool:ie}),D.memoizedState=G,D.childLanes=dd(n,b,m),c.memoizedState=cH,w):(l4(c),m=n.child,n=m.sibling,m=Dn(m,{mode:"visible",children:w.children}),m.return=c,m.sibling=null,n!==null&&(b=c.deletions,b===null?(c.deletions=[n],c.flags|=16):b.push(n)),c.child=m,c.memoizedState=null,m)}function Us(n,c){return c=Ql({mode:"visible",children:c},n.mode),c.return=n,n.child=c}function Ql(n,c){return n=p(22,n,null,c),n.lanes=0,n.stateNode={_visibility:qb,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function fl(n,c,m){return rc(c,n.child,null,m),n=Us(c,c.pendingProps.children),n.flags|=2,c.memoizedState=null,n}function pd(n,c,m){n.lanes|=c;var b=n.alternate;b!==null&&(b.lanes|=c),Uf(n.return,c,m)}function md(n,c){var m=z2(n);return n=!m&&typeof V(n)=="function",m||n?(m=m?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,c,m),!1):!0}function Gs(n,c,m,b,w){var D=n.memoizedState;D===null?n.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:w}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=b,D.tail=m,D.tailMode=w)}function yd(n,c,m){var b=c.pendingProps,w=b.revealOrder,D=b.tail;if(b=b.children,w!==void 0&&w!=="forwards"&&w!=="backwards"&&w!=="together"&&!cP[w])if(cP[w]=!0,typeof w=="string")switch(w.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',w,w.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',w,w.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',w);D===void 0||uH[D]||(D!=="collapsed"&&D!=="hidden"?(uH[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',D)):w!=="forwards"&&w!=="backwards"&&(uH[D]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',D)));e:if((w==="forwards"||w==="backwards")&&b!==void 0&&b!==null&&b!==!1)if(z2(b)){for(var I=0;I<b.length;I++)if(!md(b[I],I))break e}else if(I=V(b),typeof I=="function"){if(I=I.call(b))for(var G=I.next(),ie=0;!G.done;G=I.next()){if(!md(G.value,ie))break e;ie++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',w);if(I2(n,c,b,m),b=m3.current,(b&Wh)!==0)b=b&ic|Wh,c.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=c.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&pd(n,m,c);else if(n.tag===19)pd(n,m,c);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===c)break e;for(;n.sibling===null;){if(n.return===null||n.return===c)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}b&=ic}switch($(m3,b,c),w){case"forwards":for(m=c.child,w=null;m!==null;)n=m.alternate,n!==null&&Ns(n)===null&&(w=m),m=m.sibling;m=w,m===null?(w=c.child,c.child=null):(w=m.sibling,m.sibling=null),Gs(c,!1,w,m,D);break;case"backwards":for(m=null,w=c.child,c.child=null;w!==null;){if(n=w.alternate,n!==null&&Ns(n)===null){c.child=w;break}n=w.sibling,w.sibling=m,m=w,w=n}Gs(c,!0,m,null,D);break;case"together":Gs(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Pn(n,c,m){if(n!==null&&(c.dependencies=n.dependencies),T6=-1,s7|=c.lanes,(m&c.childLanes)===0)if(n!==null){if(q5(n,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(n!==null&&c.child!==n.child)throw Error("Resuming work not yet implemented.");if(c.child!==null){for(n=c.child,m=Dn(n,n.pendingProps),c.child=m,m.return=c;n.sibling!==null;)n=n.sibling,m=m.sibling=Dn(n,n.pendingProps),m.return=c;m.sibling=null}return c.child}function vd(n,c){return(n.lanes&c)!==0?!0:(n=n.dependencies,!!(n!==null&&z8(n)))}function Dy(n,c,m){switch(c.tag){case 3:J(c,c.stateNode.containerInfo),qr(c,h3,n.memoizedState.cache),io();break;case 27:case 5:K(c);break;case 4:J(c,c.stateNode.containerInfo);break;case 10:qr(c,c.type,c.memoizedProps.value);break;case 12:(m&c.childLanes)!==0&&(c.flags|=4),c.flags|=2048;var b=c.stateNode;b.effectDuration=-0,b.passiveEffectDuration=-0;break;case 13:if(b=c.memoizedState,b!==null)return b.dehydrated!==null?(l4(c),c.flags|=128,null):(m&c.child.childLanes)!==0?hd(n,c,m):(l4(c),n=Pn(n,c,m),n!==null?n.sibling:null);l4(c);break;case 19:var w=(n.flags&128)!==0;if(b=(m&c.childLanes)!==0,b||(q5(n,c,m,!1),b=(m&c.childLanes)!==0),w){if(b)return yd(n,c,m);c.flags|=128}if(w=c.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),$(m3,m3.current,c),b)break;return null;case 22:case 23:return c.lanes=0,zs(n,c,m);case 24:qr(c,h3,n.memoizedState.cache)}return Pn(n,c,m)}function t0(n,c,m){if(c._debugNeedsRemount&&n!==null){m=ys(c.type,c.key,c.pendingProps,c._debugOwner||null,c.mode,c.lanes),m._debugStack=c._debugStack,m._debugTask=c._debugTask;var b=c.return;if(b===null)throw Error("Cannot swap the root fiber.");if(n.alternate=null,c.alternate=null,m.index=c.index,m.sibling=c.sibling,m.return=c.return,m.ref=c.ref,m._debugInfo=c._debugInfo,c===b.child)b.child=m;else{var w=b.child;if(w===null)throw Error("Expected parent to have a child.");for(;w.sibling!==c;)if(w=w.sibling,w===null)throw Error("Expected to find the previous sibling.");w.sibling=m}return c=b.deletions,c===null?(b.deletions=[n],b.flags|=16):c.push(n),m.flags|=2,m}if(n!==null)if(n.memoizedProps!==c.pendingProps||c.type!==n.type)H3=!0;else{if(!vd(n,m)&&(c.flags&128)===0)return H3=!1,Dy(n,c,m);H3=(n.flags&131072)!==0}else H3=!1,(b=v1)&&(Z6(),b=(c.flags&1048576)!==0),b&&(b=c.index,Z6(),zf(c,Ev,b));switch(c.lanes=0,c.tag){case 16:e:if(b=c.pendingProps,n=o7(c.elementType),c.type=n,typeof n=="function")ms(n)?(b=e0(n,b),c.tag=1,c.type=n=$i(n),c=Qd(null,c,n,b,m)):(c.tag=0,Tl(c,n),c.type=n=$i(n),c=qs(null,c,n,b,m));else{if(n!=null){if(w=n.$$typeof,w===p0){c.tag=11,c.type=n=Pf(n),c=Bn(null,c,n,b,m);break e}else if(w===Su){c.tag=14,c=ul(null,c,n,b,m);break e}}throw c="",n!==null&&typeof n=="object"&&n.$$typeof===j4&&(c=" Did you wrap a component in React.lazy() more than once?"),n=k(n)||n,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+c)}return c;case 0:return qs(n,c,c.type,c.pendingProps,m);case 1:return b=c.type,w=e0(b,c.pendingProps),Qd(n,c,b,w,m);case 3:e:{if(J(c,c.stateNode.containerInfo),n===null)throw Error("Should have a current fiber. This is a bug in React.");b=c.pendingProps;var D=c.memoizedState;w=D.element,U8(n,c),Zr(c,b,null,m);var I=c.memoizedState;if(b=I.cache,qr(c,h3,b),b!==D.cache&&R3(c,[h3],m,!0),so(),b=I.element,D.isDehydrated)if(D={element:b,isDehydrated:!1,cache:I.cache},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){c=fd(n,c,b,m);break e}else if(b!==w){w=e4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),c),ao(w),c=fd(n,c,b,m);break e}else{switch(n=c.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(V2=h4(n.firstChild),z4=c,v1=!0,Xl=null,ba=!1,Jn=null,x0=!0,n=GB(c,null,b,m),c.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(io(),b===w){c=Pn(n,c,m);break e}I2(n,c,b,m)}c=c.child}return c;case 26:return cl(n,c),n===null?(n=Ml(c.type,null,c.pendingProps,null))?c.memoizedState=n:v1||(n=c.type,m=c.pendingProps,b=Z(Fn.current),b=m1(b).createElement(n),b[b3]=c,b[y4]=m,K2(b,n,m),ge(b),c.stateNode=b):c.memoizedState=Ml(c.type,n.memoizedProps,c.pendingProps,n.memoizedState),null;case 27:return K(c),n===null&&v1&&(b=Z(Fn.current),w=ne(),b=c.stateNode=p4(c.type,c.pendingProps,b,w,!1),ba||(w=e1(b,c.type,c.pendingProps,w),w!==null&&(Xi(c,0).serverProps=w)),z4=c,x0=!0,w=V2,F2(c.type)?(VH=w,V2=h4(b.firstChild)):V2=w),I2(n,c,c.pendingProps.children,m),cl(n,c),n===null&&(c.flags|=4194304),c.child;case 5:return n===null&&v1&&(D=ne(),b=os(c.type,D.ancestorInfo),w=V2,(I=!w)||(I=T3(w,c.type,c.pendingProps,x0),I!==null?(c.stateNode=I,ba||(D=e1(I,c.type,c.pendingProps,D),D!==null&&(Xi(c,0).serverProps=D)),z4=c,V2=h4(I.firstChild),x0=!1,D=!0):D=!1,I=!D),I&&(b&&ro(c,w),zr(c))),K(c),w=c.type,D=c.pendingProps,I=n!==null?n.memoizedProps:null,b=D.children,s0(w,D)?b=null:I!==null&&s0(w,I)&&(c.flags|=32),c.memoizedState!==null&&(w=co(n,c,n6,null,null,m),Tp._currentValue=w),cl(n,c),I2(n,c,b,m),c.child;case 6:return n===null&&v1&&(n=c.pendingProps,m=ne(),b=m.ancestorInfo.current,n=b!=null?Ja(n,b.tag,m.ancestorInfo.implicitRootScope):!0,m=V2,(b=!m)||(b=T0(m,c.pendingProps,x0),b!==null?(c.stateNode=b,z4=c,V2=null,b=!0):b=!1,b=!b),b&&(n&&ro(c,m),zr(c))),null;case 13:return hd(n,c,m);case 4:return J(c,c.stateNode.containerInfo),b=c.pendingProps,n===null?c.child=rc(c,null,b,m):I2(n,c,b,m),c.child;case 11:return Bn(n,c,c.type,c.pendingProps,m);case 7:return I2(n,c,c.pendingProps,m),c.child;case 8:return I2(n,c,c.pendingProps.children,m),c.child;case 12:return c.flags|=4,c.flags|=2048,b=c.stateNode,b.effectDuration=-0,b.passiveEffectDuration=-0,I2(n,c,c.pendingProps.children,m),c.child;case 10:return b=c.type,w=c.pendingProps,D=w.value,"value"in w||TP||(TP=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),qr(c,b,D),I2(n,c,w.children,m),c.child;case 9:return w=c.type._context,b=c.pendingProps.children,typeof b!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),$r(c),w=K1(w),be(c),b=rH(b,w,void 0),Se(),c.flags|=1,I2(n,c,b,m),c.child;case 14:return ul(n,c,c.type,c.pendingProps,m);case 15:return Fs(n,c,c.type,c.pendingProps,m);case 19:return yd(n,c,m);case 31:return b=c.pendingProps,m=c.mode,b={mode:b.mode,children:b.children},n===null?(n=Ql(b,m),n.ref=c.ref,c.child=n,n.return=c,c=n):(n=Dn(n.child,b),n.ref=c.ref,c.child=n,n.return=c,c=n),c;case 22:return zs(n,c,m);case 24:return $r(c),b=K1(h3),n===null?(w=Xf(),w===null&&(w=n2,D=Gf(),w.pooledCache=D,t6(D),D!==null&&(w.pooledCacheLanes|=m),w=D),c.memoizedState={parent:b,cache:w},Gr(c),qr(c,h3,w)):((n.lanes&m)!==0&&(U8(n,c),Zr(c,null,null,m),so()),w=n.memoizedState,D=c.memoizedState,w.parent!==b?(w={parent:b,cache:b},c.memoizedState=w,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=w),qr(c,h3,b)):(b=D.cache,qr(c,h3,b),b!==w.cache&&R3(c,[h3],m,!0))),I2(n,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function a6(n){n.flags|=4}function gd(n,c){if(c.type!=="stylesheet"||(c.state.loading&i5)!==c9)n.flags&=-16777217;else if(n.flags|=16777216,!sh(c)){if(c=r5.current,c!==null&&((a1&4194048)===a1?H0!==null:(a1&62914560)!==a1&&(a1&536870912)===0||c!==H0))throw Uh=Wb,LB;n.flags|=8192}}function oa(n,c){c!==null&&(n.flags|=4),n.flags&16384&&(c=n.tag!==22?ct():536870912,n.lanes|=c,i9|=c)}function er(n,c){if(!v1)switch(n.tailMode){case"hidden":c=n.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?n.tail=null:m.sibling=null;break;case"collapsed":m=n.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?c||n.tail===null?n.tail=null:n.tail.sibling=null:b.sibling=null}}function J1(n){var c=n.alternate!==null&&n.alternate.child===n.child,m=0,b=0;if(c)if((n.mode&P3)!==l2){for(var w=n.selfBaseDuration,D=n.child;D!==null;)m|=D.lanes|D.childLanes,b|=D.subtreeFlags&65011712,b|=D.flags&65011712,w+=D.treeBaseDuration,D=D.sibling;n.treeBaseDuration=w}else for(w=n.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags&65011712,b|=w.flags&65011712,w.return=n,w=w.sibling;else if((n.mode&P3)!==l2){w=n.actualDuration,D=n.selfBaseDuration;for(var I=n.child;I!==null;)m|=I.lanes|I.childLanes,b|=I.subtreeFlags,b|=I.flags,w+=I.actualDuration,D+=I.treeBaseDuration,I=I.sibling;n.actualDuration=w,n.treeBaseDuration=D}else for(w=n.child;w!==null;)m|=w.lanes|w.childLanes,b|=w.subtreeFlags,b|=w.flags,w.return=n,w=w.sibling;return n.subtreeFlags|=b,n.childLanes=m,c}function Ry(n,c,m){var b=c.pendingProps;switch(Zi(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return J1(c),null;case 1:return J1(c),null;case 3:return m=c.stateNode,b=null,n!==null&&(b=n.memoizedState.cache),c.memoizedState.cache!==b&&(c.flags|=2048),z5(h3,c),W(c),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(n===null||n.child===null)&&(Wi(c)?(Oy(),a6(c)):n===null||n.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,$f())),J1(c),null;case 26:return m=c.memoizedState,n===null?(a6(c),m!==null?(J1(c),gd(c,m)):(J1(c),c.flags&=-16777217)):m?m!==n.memoizedState?(a6(c),J1(c),gd(c,m)):(J1(c),c.flags&=-16777217):(n.memoizedProps!==b&&a6(c),J1(c),c.flags&=-16777217),null;case 27:Y(c),m=Z(Fn.current);var w=c.type;if(n!==null&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(!b){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return J1(c),null}n=ne(),Wi(c)?qf(c):(n=p4(w,b,m,n,!0),c.stateNode=n,a6(c))}return J1(c),null;case 5:if(Y(c),m=c.type,n!==null&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(!b){if(c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return J1(c),null}if(w=ne(),Wi(c))qf(c);else{switch(n=Z(Fn.current),os(m,w.ancestorInfo),w=w.context,n=m1(n),w){case hc:n=n.createElementNS(mr,m);break;case Kv:n=n.createElementNS(Pu,m);break;default:switch(m){case"svg":n=n.createElementNS(mr,m);break;case"math":n=n.createElementNS(Pu,m);break;case"script":n=n.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof b.is=="string"?n.createElement("select",{is:b.is}):n.createElement("select"),b.multiple?n.multiple=!0:b.size&&(n.size=b.size);break;default:n=typeof b.is=="string"?n.createElement(m,{is:b.is}):n.createElement(m),m.indexOf("-")===-1&&(m!==m.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",m),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||zn.call(OP,m)||(OP[m]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",m)))}}n[b3]=c,n[y4]=b;e:for(w=c.child;w!==null;){if(w.tag===5||w.tag===6)n.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===c)break e;for(;w.sibling===null;){if(w.return===null||w.return===c)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}c.stateNode=n;e:switch(K2(n,m,b),m){case"button":case"input":case"select":case"textarea":n=!!b.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&a6(c)}}return J1(c),c.flags&=-16777217,null;case 6:if(n&&c.stateNode!=null)n.memoizedProps!==b&&a6(c);else{if(typeof b!="string"&&c.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(n=Z(Fn.current),m=ne(),Wi(c)){n=c.stateNode,m=c.memoizedProps,w=!ba,b=null;var D=z4;if(D!==null)switch(D.tag){case 3:w&&(w=ih(n,m,b),w!==null&&(Xi(c,0).serverProps=w));break;case 27:case 5:b=D.memoizedProps,w&&(w=ih(n,m,b),w!==null&&(Xi(c,0).serverProps=w))}n[b3]=c,n=!!(n.nodeValue===m||b!==null&&b.suppressHydrationWarning===!0||da(n.nodeValue,m)),n||zr(c)}else w=m.ancestorInfo.current,w!=null&&Ja(b,w.tag,m.ancestorInfo.implicitRootScope),n=m1(n).createTextNode(b),n[b3]=c,c.stateNode=n}return J1(c),null;case 13:if(b=c.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(w=Wi(c),b!==null&&b.dehydrated!==null){if(n===null){if(!w)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=c.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");w[b3]=c,J1(c),(c.mode&P3)!==l2&&b!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration))}else Oy(),io(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4,J1(c),(c.mode&P3)!==l2&&b!==null&&(w=c.child,w!==null&&(c.treeBaseDuration-=w.treeBaseDuration));w=!1}else w=$f(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=w),w=!0;if(!w)return c.flags&256?(s4(c),c):(s4(c),null)}return s4(c),(c.flags&128)!==0?(c.lanes=m,(c.mode&P3)!==l2&&$8(c),c):(m=b!==null,n=n!==null&&n.memoizedState!==null,m&&(b=c.child,w=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(w=b.alternate.memoizedState.cachePool.pool),D=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(D=b.memoizedState.cachePool.pool),D!==w&&(b.flags|=2048)),m!==n&&m&&(c.child.flags|=8192),oa(c,c.updateQueue),J1(c),(c.mode&P3)!==l2&&m&&(n=c.child,n!==null&&(c.treeBaseDuration-=n.treeBaseDuration)),null);case 4:return W(c),n===null&&bl(c.stateNode.containerInfo),J1(c),null;case 10:return z5(c.type,c),J1(c),null;case 19:if(q(m3,c),w=c.memoizedState,w===null)return J1(c),null;if(b=(c.flags&128)!==0,D=w.rendering,D===null)if(b)er(w,!1);else{if(D2!==Sa||n!==null&&(n.flags&128)!==0)for(n=c.child;n!==null;){if(D=Ns(n),D!==null){for(c.flags|=128,er(w,!1),n=D.updateQueue,c.updateQueue=n,oa(c,n),c.subtreeFlags=0,n=m,m=c.child;m!==null;)jf(m,n),m=m.sibling;return $(m3,m3.current&ic|Wh,c),c.child}n=n.sibling}w.tail!==null&&Q3()>jv&&(c.flags|=128,b=!0,er(w,!1),c.lanes=4194304)}else{if(!b)if(n=Ns(D),n!==null){if(c.flags|=128,b=!0,n=n.updateQueue,c.updateQueue=n,oa(c,n),er(w,!0),w.tail===null&&w.tailMode==="hidden"&&!D.alternate&&!v1)return J1(c),null}else 2*Q3()-w.renderingStartTime>jv&&m!==536870912&&(c.flags|=128,b=!0,er(w,!1),c.lanes=4194304);w.isBackwards?(D.sibling=c.child,c.child=D):(n=w.last,n!==null?n.sibling=D:c.child=D,w.last=D)}return w.tail!==null?(n=w.tail,w.rendering=n,w.tail=n.sibling,w.renderingStartTime=Q3(),n.sibling=null,m=m3.current,m=b?m&ic|Wh:m&ic,$(m3,m,c),n):(J1(c),null);case 22:case 23:return s4(c),Ss(c),b=c.memoizedState!==null,n!==null?n.memoizedState!==null!==b&&(c.flags|=8192):b&&(c.flags|=8192),b?(m&536870912)!==0&&(c.flags&128)===0&&(J1(c),c.subtreeFlags&6&&(c.flags|=8192)):J1(c),m=c.updateQueue,m!==null&&oa(c,m.retryQueue),m=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(m=n.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==m&&(c.flags|=2048),n!==null&&q(Kl,c),null;case 24:return m=null,n!==null&&(m=n.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),z5(h3,c),J1(c),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+c.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ky(n,c){switch(Zi(c),c.tag){case 1:return n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 3:return z5(h3,c),W(c),n=c.flags,(n&65536)!==0&&(n&128)===0?(c.flags=n&-65537|128,c):null;case 26:case 27:case 5:return Y(c),null;case 13:if(s4(c),n=c.memoizedState,n!==null&&n.dehydrated!==null){if(c.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");io()}return n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 19:return q(m3,c),null;case 4:return W(c),null;case 10:return z5(c.type,c),null;case 22:case 23:return s4(c),Ss(c),n!==null&&q(Kl,c),n=c.flags,n&65536?(c.flags=n&-65537|128,(c.mode&P3)!==l2&&$8(c),c):null;case 24:return z5(h3,c),null;case 25:return null;default:return null}}function Ld(n,c){switch(Zi(c),c.tag){case 3:z5(h3,c),W(c);break;case 26:case 27:case 5:Y(c);break;case 4:W(c);break;case 13:s4(c);break;case 19:q(m3,c);break;case 10:z5(c.type,c);break;case 22:case 23:s4(c),Ss(c),n!==null&&q(Kl,c);break;case 24:z5(h3,c)}}function an(n){return(n.mode&P3)!==l2}function xd(n,c){an(n)?(g3(),So(c,n),X6()):So(c,n)}function dl(n,c,m){an(n)?(g3(),la(m,n,c),X6()):la(m,n,c)}function So(n,c){try{var m=c.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&n)===n&&((n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectMountStarted=="function"&&ot.markComponentPassiveEffectMountStarted(c):(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectMountStarted=="function"&&ot.markComponentLayoutEffectMountStarted(c),b=void 0,(n&q4)!==e5&&(fc=!0),b=ht(c,wie,m),(n&q4)!==e5&&(fc=!1),(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectMountStopped=="function"&&ot.markComponentPassiveEffectMountStopped():(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectMountStopped=="function"&&ot.markComponentLayoutEffectMountStopped(),b!==void 0&&typeof b!="function")){var D=void 0;D=(m.tag&j3)!==0?"useLayoutEffect":(m.tag&q4)!==0?"useInsertionEffect":"useEffect";var I=void 0;I=b===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof b.then=="function"?`
|
|
561
561
|
|
|
562
562
|
It looks like you wrote `+D+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
563
563
|
|
|
@@ -570,7 +570,7 @@ It looks like you wrote `+D+`(async () => ...) or returned a Promise. Instead, w
|
|
|
570
570
|
fetchData();
|
|
571
571
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
572
572
|
|
|
573
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+b,ht(c,function(G,ie){console.error("%s must not return anything besides a function, which is used for clean-up.%s",G,ie)},D,I)}m=m.next}while(m!==w)}}catch(G){k1(c,c.return,G)}}function la(n,c,m){try{var b=c.updateQueue,w=b!==null?b.lastEffect:null;if(w!==null){var D=w.next;b=D;do{if((b.tag&n)===n){var I=b.inst,G=I.destroy;G!==void 0&&(I.destroy=void 0,(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectUnmountStarted=="function"&&ot.markComponentPassiveEffectUnmountStarted(c):(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectUnmountStarted=="function"&&ot.markComponentLayoutEffectUnmountStarted(c),(n&q4)!==e5&&(fc=!0),w=c,ht(w,Vie,w,m,G),(n&q4)!==e5&&(fc=!1),(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectUnmountStopped=="function"&&ot.markComponentPassiveEffectUnmountStopped():(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectUnmountStopped=="function"&&ot.markComponentLayoutEffectUnmountStopped())}b=b.next}while(b!==D)}}catch(ie){k1(c,c.return,ie)}}function Zs(n,c){an(n)?(g3(),So(c,n),X6()):So(c,n)}function Xs(n,c,m){an(n)?(g3(),la(m,n,c),X6()):la(m,n,c)}function bd(n){var c=n.updateQueue;if(c!==null){var m=n.stateNode;n.type.defaultProps||"ref"in n.memoizedProps||oc||(m.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(n)||"instance"),m.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(n)||"instance"));try{ht(n,r4,c,m)}catch(b){k1(n,n.return,b)}}}function Mb(n,c,m){return n.getSnapshotBeforeUpdate(c,m)}function Hd(n,c){var m=c.memoizedProps,b=c.memoizedState;c=n.stateNode,n.type.defaultProps||"ref"in n.memoizedProps||oc||(c.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(n)||"instance"),c.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(n)||"instance"));try{var w=e0(n.type,m,n.elementType===n.type),D=ht(n,Mb,c,w,b);m=QP,D!==void 0||m.has(n.type)||(m.add(n.type),ht(n,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",R(n))})),c.__reactInternalSnapshotBeforeUpdate=D}catch(I){k1(n,n.return,I)}}function Ed(n,c,m){m.props=e0(n.type,n.memoizedProps),m.state=n.memoizedState,an(n)?(g3(),ht(n,PB,n,c,m),X6()):ht(n,PB,n,c,m)}function Ny(n){var c=n.ref;if(c!==null){switch(n.tag){case 26:case 27:case 5:var m=n.stateNode;break;case 30:m=n.stateNode;break;default:m=n.stateNode}if(typeof c=="function")if(an(n))try{g3(),n.refCleanup=c(m)}finally{X6()}else n.refCleanup=c(m);else typeof c=="string"?console.error("String refs are no longer supported."):c.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",R(n)),c.current=m}}function sa(n,c){try{ht(n,Ny,n)}catch(m){k1(n,c,m)}}function on(n,c){var m=n.ref,b=n.refCleanup;if(m!==null)if(typeof b=="function")try{if(an(n))try{g3(),ht(n,b)}finally{X6(n)}else ht(n,b)}catch(w){k1(n,c,w)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof m=="function")try{if(an(n))try{g3(),ht(n,m,null)}finally{X6(n)}else ht(n,m,null)}catch(w){k1(n,c,w)}else m.current=null}function Md(n,c,m,b){var w=n.memoizedProps,D=w.id,I=w.onCommit;w=w.onRender,c=c===null?"mount":"update",_v&&(c="nested-update"),typeof w=="function"&&w(D,c,n.actualDuration,n.treeBaseDuration,n.actualStartTime,m),typeof I=="function"&&I(n.memoizedProps.id,c,b,m)}function Sb(n,c,m,b){var w=n.memoizedProps;n=w.id,w=w.onPostCommit,c=c===null?"mount":"update",_v&&(c="nested-update"),typeof w=="function"&&w(n,c,b,m)}function By(n){var c=n.type,m=n.memoizedProps,b=n.stateNode;try{ht(n,v2,b,c,m,n)}catch(w){k1(n,n.return,w)}}function Ws(n,c,m){try{ht(n,u0,n.stateNode,n.type,m,c,n)}catch(b){k1(n,n.return,b)}}function _o(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&F2(n.type)||n.tag===4}function hl(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||_o(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&F2(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ao(n,c,m){var b=n.tag;if(b===5||b===6)n=n.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(n,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(n),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=o0));else if(b!==4&&(b===27&&F2(n.type)&&(m=n.stateNode,c=null),n=n.child,n!==null))for(Ao(n,c,m),n=n.sibling;n!==null;)Ao(n,c,m),n=n.sibling}function pl(n,c,m){var b=n.tag;if(b===5||b===6)n=n.stateNode,c?m.insertBefore(n,c):m.appendChild(n);else if(b!==4&&(b===27&&F2(n.type)&&(m=n.stateNode),n=n.child,n!==null))for(pl(n,c,m),n=n.sibling;n!==null;)pl(n,c,m),n=n.sibling}function Py(n){for(var c,m=n.return;m!==null;){if(_o(m)){c=m;break}m=m.return}if(c==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(c.tag){case 27:c=c.stateNode,m=hl(n),pl(n,m,c);break;case 5:m=c.stateNode,c.flags&32&&(c0(m),c.flags&=-33),c=hl(n),pl(n,c,m);break;case 3:case 4:c=c.stateNode.containerInfo,m=hl(n),Ao(n,m,c);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ml(n){var c=n.stateNode,m=n.memoizedProps;try{ht(n,ev,n.type,m,c,n)}catch(b){k1(n,n.return,b)}}function jy(n,c){if(n=n.containerInfo,OH=ng,n=Sy(n),Nf(n)){if("selectionStart"in n)var m={start:n.selectionStart,end:n.selectionEnd};else e:{m=(m=n.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var w=b.anchorOffset,D=b.focusNode;b=b.focusOffset;try{m.nodeType,D.nodeType}catch{m=null;break e}var I=0,G=-1,ie=-1,oe=0,we=0,Ne=n,Oe=null;t:for(;;){for(var Be;Ne!==m||w!==0&&Ne.nodeType!==3||(G=I+w),Ne!==D||b!==0&&Ne.nodeType!==3||(ie=I+b),Ne.nodeType===3&&(I+=Ne.nodeValue.length),(Be=Ne.firstChild)!==null;)Oe=Ne,Ne=Be;for(;;){if(Ne===n)break t;if(Oe===m&&++oe===w&&(G=I),Oe===D&&++we===b&&(ie=I),(Be=Ne.nextSibling)!==null)break;Ne=Oe,Oe=Ne.parentNode}Ne=Be}m=G===-1||ie===-1?null:{start:G,end:ie}}else m=null}m=m||{start:0,end:0}}else m=null;for(CH={focusedElem:n,selectionRange:m},ng=!1,E3=c;E3!==null;)if(c=E3,n=c.child,(c.subtreeFlags&1024)!==0&&n!==null)n.return=c,E3=n;else for(;E3!==null;){switch(n=c=E3,m=n.alternate,w=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:(w&1024)!==0&&m!==null&&Hd(n,m);break;case 3:if((w&1024)!==0){if(n=n.stateNode.containerInfo,m=n.nodeType,m===9)jn(n);else if(m===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":jn(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=c.sibling,n!==null){n.return=c.return,E3=n;break}E3=c.return}}function Sd(n,c,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:C2(n,m),b&4&&xd(m,j3|t5);break;case 1:if(C2(n,m),b&4)if(n=m.stateNode,c===null)m.type.defaultProps||"ref"in m.memoizedProps||oc||(n.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),n.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),an(m)?(g3(),ht(m,iH,m,n),X6()):ht(m,iH,m,n);else{var w=e0(m.type,c.memoizedProps);c=c.memoizedState,m.type.defaultProps||"ref"in m.memoizedProps||oc||(n.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),n.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),an(m)?(g3(),ht(m,kB,m,n,w,c,n.__reactInternalSnapshotBeforeUpdate),X6()):ht(m,kB,m,n,w,c,n.__reactInternalSnapshotBeforeUpdate)}b&64&&bd(m),b&512&&sa(m,m.return);break;case 3:if(c=w4(),C2(n,m),b&64&&(b=m.updateQueue,b!==null)){if(w=null,m.child!==null)switch(m.child.tag){case 27:case 5:w=m.child.stateNode;break;case 1:w=m.child.stateNode}try{ht(m,r4,b,w)}catch(I){k1(m,m.return,I)}}n.effectDuration+=oo(c);break;case 27:c===null&&b&4&&ml(m);case 26:case 5:C2(n,m),c===null&&b&4&&By(m),b&512&&sa(m,m.return);break;case 12:if(b&4){b=w4(),C2(n,m),n=m.stateNode,n.effectDuration+=lo(b);try{ht(m,Md,m,c,Sv,n.effectDuration)}catch(I){k1(m,m.return,I)}}else C2(n,m);break;case 13:C2(n,m),b&4&&yl(n,m),b&64&&(n=m.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(m=i0.bind(null,m),Io(n,m))));break;case 22:if(b=m.memoizedState!==null||Ma,!b){c=c!==null&&c.memoizedState!==null||q2,w=Ma;var D=q2;Ma=b,(q2=c)&&!D?L3(n,m,(m.subtreeFlags&8772)!==0):C2(n,m),Ma=w,q2=D}break;case 30:break;default:C2(n,m)}}function Iy(n){var c=n.alternate;c!==null&&(n.alternate=null,Iy(c)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(c=n.stateNode,c!==null&&Q1(c)),n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function u4(n,c,m){for(m=m.child;m!==null;)Oo(n,c,m),m=m.sibling}function Oo(n,c,m){if(f3&&typeof f3.onCommitFiberUnmount=="function")try{f3.onCommitFiberUnmount(va,m)}catch(D){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",D))}switch(m.tag){case 26:q2||on(m,c),u4(n,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:q2||on(m,c);var b=r3,w=Q6;F2(m.type)&&(r3=m.stateNode,Q6=!1),u4(n,c,m),ht(m,zo,m.stateNode),r3=b,Q6=w;break;case 5:q2||on(m,c);case 6:if(b=r3,w=Q6,r3=null,u4(n,c,m),r3=b,Q6=w,r3!==null)if(Q6)try{ht(m,El,r3,m.stateNode)}catch(D){k1(m,c,D)}else try{ht(m,jo,r3,m.stateNode)}catch(D){k1(m,c,D)}break;case 18:r3!==null&&(Q6?(n=r3,B3(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,m.stateNode),Zo(n)):B3(r3,m.stateNode));break;case 4:b=r3,w=Q6,r3=m.stateNode.containerInfo,Q6=!0,u4(n,c,m),r3=b,Q6=w;break;case 0:case 11:case 14:case 15:q2||la(q4,m,c),q2||dl(m,c,j3),u4(n,c,m);break;case 1:q2||(on(m,c),b=m.stateNode,typeof b.componentWillUnmount=="function"&&Ed(m,c,b)),u4(n,c,m);break;case 21:u4(n,c,m);break;case 22:q2=(b=q2)||m.memoizedState!==null,u4(n,c,m),q2=b;break;default:u4(n,c,m)}}function yl(n,c){if(c.memoizedState===null&&(n=c.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ht(c,Jy,n)}catch(m){k1(c,c.return,m)}}function vl(n){switch(n.tag){case 13:case 19:var c=n.stateNode;return c===null&&(c=n.stateNode=new fP),c;case 22:return n=n.stateNode,c=n._retryCache,c===null&&(c=n._retryCache=new fP),c;default:throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}}function Co(n,c){var m=vl(n);c.forEach(function(b){var w=Gy.bind(null,n,b);if(!m.has(b)){if(m.add(b),c6)if(lc!==null&&sc!==null)Qa(sc,lc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");b.then(w,w)}})}function c4(n,c){var m=c.deletions;if(m!==null)for(var b=0;b<m.length;b++){var w=n,D=c,I=m[b],G=D;e:for(;G!==null;){switch(G.tag){case 27:if(F2(G.type)){r3=G.stateNode,Q6=!1;break e}break;case 5:r3=G.stateNode,Q6=!1;break e;case 3:case 4:r3=G.stateNode.containerInfo,Q6=!0;break e}G=G.return}if(r3===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Oo(w,D,I),r3=null,Q6=!1,w=I,D=w.alternate,D!==null&&(D.return=null),w.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)_d(c,n),c=c.sibling}function _d(n,c){var m=n.alternate,b=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:c4(c,n),W2(n),b&4&&(la(q4|t5,n,n.return),So(q4|t5,n),dl(n,n.return,j3|t5));break;case 1:c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),b&64&&Ma&&(n=n.updateQueue,n!==null&&(b=n.callbacks,b!==null&&(m=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var w=Lr;if(c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),b&4)if(c=m!==null?m.memoizedState:null,b=n.memoizedState,m===null)if(b===null)if(n.stateNode===null){e:{b=n.type,m=n.memoizedProps,c=w.ownerDocument||w;t:switch(b){case"title":w=c.getElementsByTagName("title")[0],(!w||w[Bl]||w[b3]||w.namespaceURI===mr||w.hasAttribute("itemprop"))&&(w=c.createElement(b),c.head.insertBefore(w,c.querySelector("head > title"))),K2(w,b,m),w[b3]=n,ge(w),b=w;break e;case"link":var D=lh("link","href",c).get(b+(m.href||""));if(D){for(var I=0;I<D.length;I++)if(w=D[I],w.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&w.getAttribute("rel")===(m.rel==null?null:m.rel)&&w.getAttribute("title")===(m.title==null?null:m.title)&&w.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){D.splice(I,1);break t}}w=c.createElement(b),K2(w,b,m),c.head.appendChild(w);break;case"meta":if(D=lh("meta","content",c).get(b+(m.content||""))){for(I=0;I<D.length;I++)if(w=D[I],U(m.content,"content"),w.getAttribute("content")===(m.content==null?null:""+m.content)&&w.getAttribute("name")===(m.name==null?null:m.name)&&w.getAttribute("property")===(m.property==null?null:m.property)&&w.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&w.getAttribute("charset")===(m.charSet==null?null:m.charSet)){D.splice(I,1);break t}}w=c.createElement(b),K2(w,b,m),c.head.appendChild(w);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}w[b3]=n,ge(w),b=w}n.stateNode=b}else pa(w,n.type,n.stateNode);else n.stateNode=nv(w,b,n.memoizedProps);else c!==b?(c===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):c.count--,b===null?pa(w,n.type,n.stateNode):nv(w,b,n.memoizedProps)):b===null&&n.stateNode!==null&&Ws(n,n.memoizedProps,m.memoizedProps);break;case 27:c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),m!==null&&b&4&&Ws(n,n.memoizedProps,m.memoizedProps);break;case 5:if(c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),n.flags&32){c=n.stateNode;try{ht(n,c0,c)}catch(we){k1(n,n.return,we)}}b&4&&n.stateNode!=null&&(c=n.memoizedProps,Ws(n,c,m!==null?m.memoizedProps:c)),b&1024&&(TH=!0,n.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(c4(c,n),W2(n),b&4){if(n.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");b=n.memoizedProps,m=m!==null?m.memoizedProps:b,c=n.stateNode;try{ht(n,th,c,m,b)}catch(we){k1(n,n.return,we)}}break;case 3:if(w=w4(),Jv=null,D=Lr,Lr=fu(c.containerInfo),c4(c,n),Lr=D,W2(n),b&4&&m!==null&&m.memoizedState.isDehydrated)try{ht(n,P4,c.containerInfo)}catch(we){k1(n,n.return,we)}TH&&(TH=!1,Ad(n)),c.effectDuration+=oo(w);break;case 4:b=Lr,Lr=fu(n.stateNode.containerInfo),c4(c,n),W2(n),Lr=b;break;case 12:b=w4(),c4(c,n),W2(n),n.stateNode.effectDuration+=lo(b);break;case 13:c4(c,n),W2(n),n.child.flags&8192&&n.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(mH=Q3()),b&4&&(b=n.updateQueue,b!==null&&(n.updateQueue=null,Co(n,b)));break;case 22:w=n.memoizedState!==null;var G=m!==null&&m.memoizedState!==null,ie=Ma,oe=q2;if(Ma=ie||w,q2=oe||G,c4(c,n),q2=oe,Ma=ie,W2(n),b&8192)e:for(c=n.stateNode,c._visibility=w?c._visibility&-2:c._visibility|qb,w&&(m===null||G||Ma||q2||T4(n)),m=null,c=n;;){if(c.tag===5||c.tag===26){if(m===null){G=m=c;try{D=G.stateNode,w?ht(G,nh,D):ht(G,uu,G.stateNode,G.memoizedProps)}catch(we){k1(G,G.return,we)}}}else if(c.tag===6){if(m===null){G=c;try{I=G.stateNode,w?ht(G,rh,I):ht(G,cu,I,G.memoizedProps)}catch(we){k1(G,G.return,we)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===n)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}b&4&&(b=n.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,Co(n,m))));break;case 19:c4(c,n),W2(n),b&4&&(b=n.updateQueue,b!==null&&(n.updateQueue=null,Co(n,b)));break;case 30:break;case 21:break;default:c4(c,n),W2(n)}}function W2(n){var c=n.flags;if(c&2){try{ht(n,Py,n)}catch(m){k1(n,n.return,m)}n.flags&=-3}c&4096&&(n.flags&=-4097)}function Ad(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var c=n;Ad(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),n=n.sibling}}function C2(n,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Sd(n,c.alternate,c),c=c.sibling}function ln(n){switch(n.tag){case 0:case 11:case 14:case 15:dl(n,n.return,j3),T4(n);break;case 1:on(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&Ed(n,n.return,c),T4(n);break;case 27:ht(n,zo,n.stateNode);case 26:case 5:on(n,n.return),T4(n);break;case 22:n.memoizedState===null&&T4(n);break;case 30:T4(n);break;default:T4(n)}}function T4(n){for(n=n.child;n!==null;)ln(n),n=n.sibling}function Od(n,c,m,b){var w=m.flags;switch(m.tag){case 0:case 11:case 15:L3(n,m,b),xd(m,j3);break;case 1:if(L3(n,m,b),c=m.stateNode,typeof c.componentDidMount=="function"&&ht(m,iH,m,c),c=m.updateQueue,c!==null){n=m.stateNode;try{ht(m,Eb,c,n)}catch(D){k1(m,m.return,D)}}b&&w&64&&bd(m),sa(m,m.return);break;case 27:ml(m);case 26:case 5:L3(n,m,b),b&&c===null&&w&4&&By(m),sa(m,m.return);break;case 12:if(b&&w&4){w=w4(),L3(n,m,b),b=m.stateNode,b.effectDuration+=lo(w);try{ht(m,Md,m,c,Sv,b.effectDuration)}catch(D){k1(m,m.return,D)}}else L3(n,m,b);break;case 13:L3(n,m,b),b&&w&4&&yl(n,m);break;case 22:m.memoizedState===null&&L3(n,m,b),sa(m,m.return);break;case 30:break;default:L3(n,m,b)}}function L3(n,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;)Od(n,c.alternate,c,m),c=c.sibling}function sn(n,c){var m=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(m=n.memoizedState.cachePool.pool),n=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(n=c.memoizedState.cachePool.pool),n!==m&&(n!=null&&t6(n),m!=null&&Yi(m))}function b2(n,c){n=null,c.alternate!==null&&(n=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==n&&(t6(c),n!=null&&Yi(n))}function R4(n,c,m,b){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)Ys(n,c,m,b),c=c.sibling}function Ys(n,c,m,b){var w=c.flags;switch(c.tag){case 0:case 11:case 15:R4(n,c,m,b),w&2048&&Zs(c,p3|t5);break;case 1:R4(n,c,m,b);break;case 3:var D=w4();R4(n,c,m,b),w&2048&&(m=null,c.alternate!==null&&(m=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==m&&(t6(c),m!=null&&Yi(m))),n.passiveEffectDuration+=oo(D);break;case 12:if(w&2048){w=w4(),R4(n,c,m,b),n=c.stateNode,n.passiveEffectDuration+=lo(w);try{ht(c,Sb,c,c.alternate,Sv,n.passiveEffectDuration)}catch(G){k1(c,c.return,G)}}else R4(n,c,m,b);break;case 13:R4(n,c,m,b);break;case 23:break;case 22:D=c.stateNode;var I=c.alternate;c.memoizedState!==null?D._visibility&Gl?R4(n,c,m,b):wo(n,c):D._visibility&Gl?R4(n,c,m,b):(D._visibility|=Gl,n0(n,c,m,b,(c.subtreeFlags&10256)!==0)),w&2048&&sn(I,c);break;case 24:R4(n,c,m,b),w&2048&&b2(c.alternate,c);break;default:R4(n,c,m,b)}}function n0(n,c,m,b,w){for(w=w&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;)Cd(n,c,m,b,w),c=c.sibling}function Cd(n,c,m,b,w){var D=c.flags;switch(c.tag){case 0:case 11:case 15:n0(n,c,m,b,w),Zs(c,p3);break;case 23:break;case 22:var I=c.stateNode;c.memoizedState!==null?I._visibility&Gl?n0(n,c,m,b,w):wo(n,c):(I._visibility|=Gl,n0(n,c,m,b,w)),w&&D&2048&&sn(c.alternate,c);break;case 24:n0(n,c,m,b,w),w&&D&2048&&b2(c.alternate,c);break;default:n0(n,c,m,b,w)}}function wo(n,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=n,b=c,w=b.flags;switch(b.tag){case 22:wo(m,b),w&2048&&sn(b.alternate,b);break;case 24:wo(m,b),w&2048&&b2(b.alternate,b);break;default:wo(m,b)}c=c.sibling}}function o6(n){if(n.subtreeFlags&Yh)for(n=n.child;n!==null;)gl(n),n=n.sibling}function gl(n){switch(n.tag){case 26:o6(n),n.flags&Yh&&n.memoizedState!==null&&iv(Lr,n.memoizedState,n.memoizedProps);break;case 5:o6(n);break;case 3:case 4:var c=Lr;Lr=fu(n.stateNode.containerInfo),o6(n),Lr=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=Yh,Yh=16777216,o6(n),Yh=c):o6(n));break;default:o6(n)}}function wd(n){var c=n.alternate;if(c!==null&&(n=c.child,n!==null)){c.child=null;do c=n.sibling,n.sibling=null,n=c;while(n!==null)}}function Vo(n){var c=n.deletions;if((n.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var b=c[m];E3=b,Ks(b,n)}wd(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Vd(n),n=n.sibling}function Vd(n){switch(n.tag){case 0:case 11:case 15:Vo(n),n.flags&2048&&Xs(n,n.return,p3|t5);break;case 3:var c=w4();Vo(n),n.stateNode.passiveEffectDuration+=oo(c);break;case 12:c=w4(),Vo(n),n.stateNode.passiveEffectDuration+=lo(c);break;case 22:c=n.stateNode,n.memoizedState!==null&&c._visibility&Gl&&(n.return===null||n.return.tag!==13)?(c._visibility&=-3,ua(n)):Vo(n);break;default:Vo(n)}}function ua(n){var c=n.deletions;if((n.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var b=c[m];E3=b,Ks(b,n)}wd(n)}for(n=n.child;n!==null;)Dd(n),n=n.sibling}function Dd(n){switch(n.tag){case 0:case 11:case 15:Xs(n,n.return,p3),ua(n);break;case 22:var c=n.stateNode;c._visibility&Gl&&(c._visibility&=-3,ua(n));break;default:ua(n)}}function Ks(n,c){for(;E3!==null;){var m=E3,b=m;switch(b.tag){case 0:case 11:case 15:Xs(b,c,p3);break;case 23:case 22:b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(b=b.memoizedState.cachePool.pool,b!=null&&t6(b));break;case 24:Yi(b.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,E3=b;else e:for(m=n;E3!==null;){b=E3;var w=b.sibling,D=b.return;if(Iy(b),b===m){E3=null;break e}if(w!==null){w.return=D,E3=w;break e}E3=D}}}function Fy(){Rie.forEach(function(n){return n()})}function Rd(){var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return n||Ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),n}function k4(n){if((A1&$4)!==yn&&a1!==0)return a1&-a1;var c=Ce.T;return c!==null?(c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(n),n=Yl,n!==0?n:lu()):i1()}function kd(){gn===0&&(gn=(a1&536870912)===0||v1?lt():536870912);var n=r5.current;return n!==null&&(n.flags|=32),gn}function Kt(n,c,m){if(fc&&console.error("useInsertionEffect must not schedule updates."),xH&&(Iv=!0),(n===n2&&(j1===n9||j1===r9)||n.cancelPendingCommit!==null)&&(nr(n,0),tr(n,a1,gn,!1)),T1(n,m),(A1&$4)!==0&&n===n2){if($n)switch(c.tag){case 0:case 11:case 15:n=n1&&R(n1)||"Unknown",bP.has(n)||(bP.add(n),c=R(c)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",c,n,n));break;case 1:xP||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xP=!0)}}else c6&&Ke(n,c,m),Gd(c),n===n2&&((A1&$4)===yn&&(u7|=m),D2===t9&&tr(n,a1,gn,!1)),l6(n)}function Y2(n,c,m){if((A1&($4|xr))!==yn)throw Error("Should not already be working.");var b=!m&&(c&124)===0&&(c&n.expiredLanes)===0||jt(n,c),w=b?jd(n,c):Ll(n,c,!0),D=b;do{if(w===Sa){Tc&&!b&&tr(n,c,0,!1);break}else{if(m=n.current.alternate,D&&!zy(m)){w=Ll(n,c,!1),D=!1;continue}if(w===uc){if(D=c,n.errorRecoveryDisabledLanes&D)var I=0;else I=n.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){c=I;e:{w=n;var G=I;I=rp;var ie=w.current.memoizedState.isDehydrated;if(ie&&(nr(w,G).flags|=256),G=Ll(w,G,!1),G!==uc){if(hH&&!ie){w.errorRecoveryDisabledLanes|=D,u7|=D,w=t9;break e}w=U4,U4=I,w!==null&&(U4===null?U4=w:U4.push.apply(U4,w))}w=G}if(D=!1,w!==uc)continue}}if(w===Jh){nr(n,0),tr(n,c,0,!0);break}e:{switch(b=n,w){case Sa:case Jh:throw Error("Root did not complete. This is a bug in React.");case t9:if((c&4194048)!==c)break;case Bv:tr(b,c,gn,!l7);break e;case uc:U4=null;break;case QH:case dP:break;default:throw Error("Unknown root exit status.")}if(Ce.actQueue!==null)un(b,m,c,U4,ip,Pv,gn,u7,i9);else{if((c&62914560)===c&&(D=mH+pP-Q3(),10<D)){if(tr(b,c,gn,!l7),pt(b,0,!0)!==0)break e;b.timeoutHandle=CP(Nd.bind(null,b,m,U4,ip,Pv,c,gn,u7,i9,l7,w,Pie,yB,0),D);break e}Nd(b,m,U4,ip,Pv,c,gn,u7,i9,l7,w,Nie,yB,0)}}}break}while(!0);l6(n)}function Nd(n,c,m,b,w,D,I,G,ie,oe,we,Ne,Oe,Be){if(n.timeoutHandle=u9,Ne=c.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(cp={stylesheets:null,count:0,unsuspend:rv},gl(c),Ne=av(),Ne!==null)){n.cancelPendingCommit=Ne(un.bind(null,n,c,D,m,b,w,I,G,ie,we,Bie,Oe,Be)),tr(n,D,I,!oe);return}un(n,c,D,m,b,w,I,G,ie)}function zy(n){for(var c=n;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var w=m[b],D=w.getSnapshot;w=w.value;try{if(!F4(D(),w))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===n)break;for(;c.sibling===null;){if(c.return===null||c.return===n)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function tr(n,c,m,b){c&=~pH,c&=~u7,n.suspendedLanes|=c,n.pingedLanes&=~c,b&&(n.warmLanes|=c),b=n.expirationTimes;for(var w=c;0<w;){var D=31-J2(w),I=1<<D;b[D]=-1,w&=~I}m!==0&&pe(n,m,c)}function ca(){return(A1&($4|xr))===yn?(a0(0),!1):!0}function Js(){if(n1!==null){if(j1===f6)var n=n1.return;else n=n1,Ls(),en(n),nc=null,Xh=0,n=n1;for(;n!==null;)Ld(n.alternate,n),n=n.return;n1=null}}function nr(n,c){var m=n.timeoutHandle;m!==u9&&(n.timeoutHandle=u9,Kie(m)),m=n.cancelPendingCommit,m!==null&&(n.cancelPendingCommit=null,m()),Js(),n2=n,n1=m=Dn(n.current,null),a1=c,j1=f6,vn=null,l7=!1,Tc=jt(n,c),hH=!1,D2=Sa,i9=gn=pH=u7=s7=0,U4=rp=null,Pv=!1,(c&8)!==0&&(c|=c&32);var b=n.entangledLanes;if(b!==0)for(n=n.entanglements,b&=c;0<b;){var w=31-J2(b),D=1<<w;c|=n[w],b&=~D}return E0=c,fs(),c=pB(),1e3<c-hB&&(Ce.recentlyCreatedOwnerStacks=0,hB=c),vr.discardPendingWarnings(),m}function eu(n,c){Dt=null,Ce.H=kv,Ce.getCurrentStack=null,$n=!1,d3=null,c===$h||c===Cv?(c=V4(),j1=tp):c===LB?(c=V4(),j1=hP):j1=c===aP?dH:c!==null&&typeof c=="object"&&typeof c.then=="function"?cc:ep,vn=c;var m=n1;if(m===null)D2=Jh,Mo(n,e4(c,n.current));else switch(m.mode&P3&&Ur(m),Se(),j1){case ep:ot!==null&&typeof ot.markComponentErrored=="function"&&ot.markComponentErrored(m,c,a1);break;case n9:case r9:case tp:case cc:case np:ot!==null&&typeof ot.markComponentSuspended=="function"&&ot.markComponentSuspended(m,c,a1)}}function Bd(){var n=Ce.H;return Ce.H=kv,n===null?kv:n}function Pd(){var n=Ce.A;return Ce.A=Die,n}function tu(){D2=t9,l7||(a1&4194048)!==a1&&r5.current!==null||(Tc=!0),(s7&134217727)===0&&(u7&134217727)===0||n2===null||tr(n2,a1,gn,!1)}function Ll(n,c,m){var b=A1;A1|=$4;var w=Bd(),D=Pd();if(n2!==n||a1!==c){if(c6){var I=n.memoizedUpdaters;0<I.size&&(Qa(n,a1),I.clear()),Je(n,c)}ip=null,nr(n,c)}ze(c),c=!1,I=D2;e:do try{if(j1!==f6&&n1!==null){var G=n1,ie=vn;switch(j1){case dH:Js(),I=Bv;break e;case tp:case n9:case r9:case cc:r5.current===null&&(c=!0);var oe=j1;if(j1=f6,vn=null,Ta(n,G,ie,oe),m&&Tc){I=Sa;break e}break;default:oe=j1,j1=f6,vn=null,Ta(n,G,ie,oe)}}nu(),I=D2;break}catch(we){eu(n,we)}while(!0);return c&&n.shellSuspendCounter++,Ls(),A1=b,Ce.H=w,Ce.A=D,ue(),n1===null&&(n2=null,a1=0,fs()),I}function nu(){for(;n1!==null;)ru(n1)}function jd(n,c){var m=A1;A1|=$4;var b=Bd(),w=Pd();if(n2!==n||a1!==c){if(c6){var D=n.memoizedUpdaters;0<D.size&&(Qa(n,a1),D.clear()),Je(n,c)}ip=null,jv=Q3()+mP,nr(n,c)}else Tc=jt(n,c);ze(c);e:do try{if(j1!==f6&&n1!==null)t:switch(c=n1,D=vn,j1){case ep:j1=f6,vn=null,Ta(n,c,D,ep);break;case n9:case r9:if(Es(D)){j1=f6,vn=null,xl(c);break}c=function(){j1!==n9&&j1!==r9||n2!==n||(j1=np),l6(n)},D.then(c,c);break e;case tp:j1=np;break e;case hP:j1=fH;break e;case np:Es(D)?(j1=f6,vn=null,xl(c)):(j1=f6,vn=null,Ta(n,c,D,np));break;case fH:var I=null;switch(n1.tag){case 26:I=n1.memoizedState;case 5:case 27:var G=n1;if(!I||sh(I)){j1=f6,vn=null;var ie=G.sibling;if(ie!==null)n1=ie;else{var oe=G.return;oe!==null?(n1=oe,Do(oe)):n1=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}j1=f6,vn=null,Ta(n,c,D,fH);break;case cc:j1=f6,vn=null,Ta(n,c,D,cc);break;case dH:Js(),D2=Bv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ce.actQueue!==null?nu():qy();break}catch(we){eu(n,we)}while(!0);return Ls(),Ce.H=b,Ce.A=w,A1=m,n1!==null?(ot!==null&&typeof ot.markRenderYielded=="function"&&ot.markRenderYielded(),Sa):(ue(),n2=null,a1=0,fs(),D2)}function qy(){for(;n1!==null&&!Vb();)ru(n1)}function ru(n){var c=n.alternate;(n.mode&P3)!==l2?($5(n),c=ht(n,t0,c,n,E0),Ur(n)):c=ht(n,t0,c,n,E0),n.memoizedProps=n.pendingProps,c===null?Do(n):n1=c}function xl(n){var c=ht(n,Id,n);n.memoizedProps=n.pendingProps,c===null?Do(n):n1=c}function Id(n){var c=n.alternate,m=(n.mode&P3)!==l2;switch(m&&$5(n),n.tag){case 15:case 0:c=Td(c,n,n.pendingProps,n.type,void 0,a1);break;case 11:c=Td(c,n,n.pendingProps,n.type.render,n.ref,a1);break;case 5:en(n);default:Ld(c,n),n=n1=jf(n,E0),c=t0(c,n,E0)}return m&&Ur(n),c}function Ta(n,c,m,b){Ls(),en(c),nc=null,Xh=0;var w=c.return;try{if(Is(n,w,c,m,a1)){D2=Jh,Mo(n,e4(m,n.current)),n1=null;return}}catch(D){if(w!==null)throw n1=w,D;D2=Jh,Mo(n,e4(m,n.current)),n1=null;return}c.flags&32768?(v1||b===ep?n=!0:Tc||(a1&536870912)!==0?n=!1:(l7=n=!0,(b===n9||b===r9||b===tp||b===cc)&&(b=r5.current,b!==null&&b.tag===13&&(b.flags|=16384))),Fd(c,n)):Do(c)}function Do(n){var c=n;do{if((c.flags&32768)!==0){Fd(c,l7);return}var m=c.alternate;if(n=c.return,$5(c),m=ht(c,Ry,m,c,E0),(c.mode&P3)!==l2&&bs(c),m!==null){n1=m;return}if(c=c.sibling,c!==null){n1=c;return}n1=c=n}while(c!==null);D2===Sa&&(D2=dP)}function Fd(n,c){do{var m=ky(n.alternate,n);if(m!==null){m.flags&=32767,n1=m;return}if((n.mode&P3)!==l2){bs(n),m=n.actualDuration;for(var b=n.child;b!==null;)m+=b.actualDuration,b=b.sibling;n.actualDuration=m}if(m=n.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(n=n.sibling,n!==null)){n1=n;return}n1=n=m}while(n!==null);D2=Bv,n1=null}function un(n,c,m,b,w,D,I,G,ie){n.cancelPendingCommit=null;do r0();while(I3!==a9);if(vr.flushLegacyContextWarning(),vr.flushPendingUnsafeLifecycleWarnings(),(A1&($4|xr))!==yn)throw Error("Should not already be working.");if(ot!==null&&typeof ot.markCommitStarted=="function"&&ot.markCommitStarted(m),c===null)He();else{if(m===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),c===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(D=c.lanes|c.childLanes,D|=$b,Ue(n,m,D,I,G,ie),n===n2&&(n1=n2=null,a1=0),Qc=c,T7=n,Q7=m,vH=D,gH=w,LP=b,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Zy(Wo,function(){return Ro(),null})):(n.callbackNode=null,n.callbackPriority=0),Sv=Yu(),b=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||b){b=Ce.T,Ce.T=null,w=L1.p,L1.p=I4,I=A1,A1|=xr;try{jy(n,c,m)}finally{A1=I,L1.p=w,Ce.T=b}}I3=yP,iu(),$y(),zd()}}function iu(){if(I3===yP){I3=a9;var n=T7,c=Qc,m=Q7,b=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||b){b=Ce.T,Ce.T=null;var w=L1.p;L1.p=I4;var D=A1;A1|=xr;try{lc=m,sc=n,_d(c,n),sc=lc=null,m=CH;var I=Sy(n.containerInfo),G=m.focusedElem,ie=m.selectionRange;if(I!==G&&G&&G.ownerDocument&&My(G.ownerDocument.documentElement,G)){if(ie!==null&&Nf(G)){var oe=ie.start,we=ie.end;if(we===void 0&&(we=oe),"selectionStart"in G)G.selectionStart=oe,G.selectionEnd=Math.min(we,G.value.length);else{var Ne=G.ownerDocument||document,Oe=Ne&&Ne.defaultView||window;if(Oe.getSelection){var Be=Oe.getSelection(),Qt=G.textContent.length,Ot=Math.min(ie.start,Qt),r2=ie.end===void 0?Ot:Math.min(ie.end,Qt);!Be.extend&&Ot>r2&&(I=r2,r2=Ot,Ot=I);var l1=Ey(G,Ot),Te=Ey(G,r2);if(l1&&Te&&(Be.rangeCount!==1||Be.anchorNode!==l1.node||Be.anchorOffset!==l1.offset||Be.focusNode!==Te.node||Be.focusOffset!==Te.offset)){var Qe=Ne.createRange();Qe.setStart(l1.node,l1.offset),Be.removeAllRanges(),Ot>r2?(Be.addRange(Qe),Be.extend(Te.node,Te.offset)):(Qe.setEnd(Te.node,Te.offset),Be.addRange(Qe))}}}}for(Ne=[],Be=G;Be=Be.parentNode;)Be.nodeType===1&&Ne.push({element:Be,left:Be.scrollLeft,top:Be.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<Ne.length;G++){var me=Ne[G];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}ng=!!OH,CH=OH=null}finally{A1=D,L1.p=w,Ce.T=b}}n.current=c,I3=vP}}function $y(){if(I3===vP){I3=a9;var n=T7,c=Qc,m=Q7,b=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||b){b=Ce.T,Ce.T=null;var w=L1.p;L1.p=I4;var D=A1;A1|=xr;try{ot!==null&&typeof ot.markLayoutEffectsStarted=="function"&&ot.markLayoutEffectsStarted(m),lc=m,sc=n,Sd(n,c.alternate,c),sc=lc=null,ot!==null&&typeof ot.markLayoutEffectsStopped=="function"&&ot.markLayoutEffectsStopped()}finally{A1=D,L1.p=w,Ce.T=b}}I3=gP}}function zd(){if(I3===jie||I3===gP){I3=a9,Db();var n=T7,c=Qc,m=Q7,b=LP,w=(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;w?I3=yH:(I3=a9,Qc=T7=null,qd(n,n.pendingLanes),o9=0,op=null);var D=n.pendingLanes;if(D===0&&(c7=null),w||cn(n),w=Tt(m),c=c.stateNode,f3&&typeof f3.onCommitFiberRoot=="function")try{var I=(c.current.flags&128)===128;switch(w){case I4:var G=kl;break;case qn:G=hh;break;case hr:G=Wo;break;case Cu:G=mh;break;default:G=Wo}f3.onCommitFiberRoot(va,c,G,I)}catch(Ne){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(c6&&n.memoizedUpdaters.clear(),Fy(),b!==null){I=Ce.T,G=L1.p,L1.p=I4,Ce.T=null;try{var ie=n.onRecoverableError;for(c=0;c<b.length;c++){var oe=b[c],we=rr(oe.stack);ht(oe.source,ie,oe.value,we)}}finally{Ce.T=I,L1.p=G}}(Q7&3)!==0&&r0(),l6(n),D=n.pendingLanes,(m&4194090)!==0&&(D&42)!==0?(Av=!0,n===LH?ap++:(ap=0,LH=n)):ap=0,a0(0),He()}}function rr(n){return n={componentStack:n},Object.defineProperty(n,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),n}function qd(n,c){(n.pooledCacheLanes&=c)===0&&(c=n.pooledCache,c!=null&&(n.pooledCache=null,Yi(c)))}function r0(n){return iu(),$y(),zd(),Ro()}function Ro(){if(I3!==yH)return!1;var n=T7,c=vH;vH=0;var m=Tt(Q7),b=hr>m?hr:m;m=Ce.T;var w=L1.p;try{L1.p=b,Ce.T=null,b=gH,gH=null;var D=T7,I=Q7;if(I3=a9,Qc=T7=null,Q7=0,(A1&($4|xr))!==yn)throw Error("Cannot flush passive effects while already rendering.");xH=!0,Iv=!1,ot!==null&&typeof ot.markPassiveEffectsStarted=="function"&&ot.markPassiveEffectsStarted(I);var G=A1;if(A1|=xr,Vd(D.current),Ys(D,D.current,I,b),ot!==null&&typeof ot.markPassiveEffectsStopped=="function"&&ot.markPassiveEffectsStopped(),cn(D),A1=G,a0(0,!1),Iv?D===op?o9++:(o9=0,op=D):o9=0,Iv=xH=!1,f3&&typeof f3.onPostCommitFiberRoot=="function")try{f3.onPostCommitFiberRoot(va,D)}catch(oe){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",oe))}var ie=D.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{L1.p=w,Ce.T=m,qd(n,c)}}function o2(n,c,m){c=e4(m,c),c=m2(n.stateNode,c,2),n=Y6(n,c,2),n!==null&&(T1(n,2),l6(n))}function k1(n,c,m){if(fc=!1,n.tag===3)o2(n,n,m);else{for(;c!==null;){if(c.tag===3){o2(c,n,m);return}if(c.tag===1){var b=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(c7===null||!c7.has(b))){n=e4(m,n),m=sl(2),b=Y6(c,m,2),b!==null&&(aa(m,b,c,n),T1(b,2),l6(b));return}}c=c.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
573
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+b,ht(c,function(G,ie){console.error("%s must not return anything besides a function, which is used for clean-up.%s",G,ie)},D,I)}m=m.next}while(m!==w)}}catch(G){k1(c,c.return,G)}}function la(n,c,m){try{var b=c.updateQueue,w=b!==null?b.lastEffect:null;if(w!==null){var D=w.next;b=D;do{if((b.tag&n)===n){var I=b.inst,G=I.destroy;G!==void 0&&(I.destroy=void 0,(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectUnmountStarted=="function"&&ot.markComponentPassiveEffectUnmountStarted(c):(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectUnmountStarted=="function"&&ot.markComponentLayoutEffectUnmountStarted(c),(n&q4)!==e5&&(fc=!0),w=c,ht(w,Vie,w,m,G),(n&q4)!==e5&&(fc=!1),(n&p3)!==e5?ot!==null&&typeof ot.markComponentPassiveEffectUnmountStopped=="function"&&ot.markComponentPassiveEffectUnmountStopped():(n&j3)!==e5&&ot!==null&&typeof ot.markComponentLayoutEffectUnmountStopped=="function"&&ot.markComponentLayoutEffectUnmountStopped())}b=b.next}while(b!==D)}}catch(ie){k1(c,c.return,ie)}}function Zs(n,c){an(n)?(g3(),So(c,n),X6()):So(c,n)}function Xs(n,c,m){an(n)?(g3(),la(m,n,c),X6()):la(m,n,c)}function bd(n){var c=n.updateQueue;if(c!==null){var m=n.stateNode;n.type.defaultProps||"ref"in n.memoizedProps||oc||(m.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(n)||"instance"),m.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(n)||"instance"));try{ht(n,r4,c,m)}catch(b){k1(n,n.return,b)}}}function Mb(n,c,m){return n.getSnapshotBeforeUpdate(c,m)}function Hd(n,c){var m=c.memoizedProps,b=c.memoizedState;c=n.stateNode,n.type.defaultProps||"ref"in n.memoizedProps||oc||(c.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(n)||"instance"),c.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(n)||"instance"));try{var w=e0(n.type,m,n.elementType===n.type),D=ht(n,Mb,c,w,b);m=QP,D!==void 0||m.has(n.type)||(m.add(n.type),ht(n,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",R(n))})),c.__reactInternalSnapshotBeforeUpdate=D}catch(I){k1(n,n.return,I)}}function Ed(n,c,m){m.props=e0(n.type,n.memoizedProps),m.state=n.memoizedState,an(n)?(g3(),ht(n,PB,n,c,m),X6()):ht(n,PB,n,c,m)}function Ny(n){var c=n.ref;if(c!==null){switch(n.tag){case 26:case 27:case 5:var m=n.stateNode;break;case 30:m=n.stateNode;break;default:m=n.stateNode}if(typeof c=="function")if(an(n))try{g3(),n.refCleanup=c(m)}finally{X6()}else n.refCleanup=c(m);else typeof c=="string"?console.error("String refs are no longer supported."):c.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",R(n)),c.current=m}}function sa(n,c){try{ht(n,Ny,n)}catch(m){k1(n,c,m)}}function on(n,c){var m=n.ref,b=n.refCleanup;if(m!==null)if(typeof b=="function")try{if(an(n))try{g3(),ht(n,b)}finally{X6(n)}else ht(n,b)}catch(w){k1(n,c,w)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof m=="function")try{if(an(n))try{g3(),ht(n,m,null)}finally{X6(n)}else ht(n,m,null)}catch(w){k1(n,c,w)}else m.current=null}function Md(n,c,m,b){var w=n.memoizedProps,D=w.id,I=w.onCommit;w=w.onRender,c=c===null?"mount":"update",_v&&(c="nested-update"),typeof w=="function"&&w(D,c,n.actualDuration,n.treeBaseDuration,n.actualStartTime,m),typeof I=="function"&&I(n.memoizedProps.id,c,b,m)}function Sb(n,c,m,b){var w=n.memoizedProps;n=w.id,w=w.onPostCommit,c=c===null?"mount":"update",_v&&(c="nested-update"),typeof w=="function"&&w(n,c,b,m)}function By(n){var c=n.type,m=n.memoizedProps,b=n.stateNode;try{ht(n,v2,b,c,m,n)}catch(w){k1(n,n.return,w)}}function Ws(n,c,m){try{ht(n,u0,n.stateNode,n.type,m,c,n)}catch(b){k1(n,n.return,b)}}function _o(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&F2(n.type)||n.tag===4}function hl(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||_o(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&F2(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ao(n,c,m){var b=n.tag;if(b===5||b===6)n=n.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(n,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(n),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=o0));else if(b!==4&&(b===27&&F2(n.type)&&(m=n.stateNode,c=null),n=n.child,n!==null))for(Ao(n,c,m),n=n.sibling;n!==null;)Ao(n,c,m),n=n.sibling}function pl(n,c,m){var b=n.tag;if(b===5||b===6)n=n.stateNode,c?m.insertBefore(n,c):m.appendChild(n);else if(b!==4&&(b===27&&F2(n.type)&&(m=n.stateNode),n=n.child,n!==null))for(pl(n,c,m),n=n.sibling;n!==null;)pl(n,c,m),n=n.sibling}function Py(n){for(var c,m=n.return;m!==null;){if(_o(m)){c=m;break}m=m.return}if(c==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(c.tag){case 27:c=c.stateNode,m=hl(n),pl(n,m,c);break;case 5:m=c.stateNode,c.flags&32&&(c0(m),c.flags&=-33),c=hl(n),pl(n,c,m);break;case 3:case 4:c=c.stateNode.containerInfo,m=hl(n),Ao(n,m,c);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function ml(n){var c=n.stateNode,m=n.memoizedProps;try{ht(n,ev,n.type,m,c,n)}catch(b){k1(n,n.return,b)}}function jy(n,c){if(n=n.containerInfo,OH=ng,n=Sy(n),Nf(n)){if("selectionStart"in n)var m={start:n.selectionStart,end:n.selectionEnd};else e:{m=(m=n.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var w=b.anchorOffset,D=b.focusNode;b=b.focusOffset;try{m.nodeType,D.nodeType}catch{m=null;break e}var I=0,G=-1,ie=-1,le=0,we=0,Ne=n,Oe=null;t:for(;;){for(var Be;Ne!==m||w!==0&&Ne.nodeType!==3||(G=I+w),Ne!==D||b!==0&&Ne.nodeType!==3||(ie=I+b),Ne.nodeType===3&&(I+=Ne.nodeValue.length),(Be=Ne.firstChild)!==null;)Oe=Ne,Ne=Be;for(;;){if(Ne===n)break t;if(Oe===m&&++le===w&&(G=I),Oe===D&&++we===b&&(ie=I),(Be=Ne.nextSibling)!==null)break;Ne=Oe,Oe=Ne.parentNode}Ne=Be}m=G===-1||ie===-1?null:{start:G,end:ie}}else m=null}m=m||{start:0,end:0}}else m=null;for(CH={focusedElem:n,selectionRange:m},ng=!1,E3=c;E3!==null;)if(c=E3,n=c.child,(c.subtreeFlags&1024)!==0&&n!==null)n.return=c,E3=n;else for(;E3!==null;){switch(n=c=E3,m=n.alternate,w=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:(w&1024)!==0&&m!==null&&Hd(n,m);break;case 3:if((w&1024)!==0){if(n=n.stateNode.containerInfo,m=n.nodeType,m===9)jn(n);else if(m===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":jn(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((w&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=c.sibling,n!==null){n.return=c.return,E3=n;break}E3=c.return}}function Sd(n,c,m){var b=m.flags;switch(m.tag){case 0:case 11:case 15:C2(n,m),b&4&&xd(m,j3|t5);break;case 1:if(C2(n,m),b&4)if(n=m.stateNode,c===null)m.type.defaultProps||"ref"in m.memoizedProps||oc||(n.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),n.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),an(m)?(g3(),ht(m,iH,m,n),X6()):ht(m,iH,m,n);else{var w=e0(m.type,c.memoizedProps);c=c.memoizedState,m.type.defaultProps||"ref"in m.memoizedProps||oc||(n.props!==m.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",R(m)||"instance"),n.state!==m.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",R(m)||"instance")),an(m)?(g3(),ht(m,kB,m,n,w,c,n.__reactInternalSnapshotBeforeUpdate),X6()):ht(m,kB,m,n,w,c,n.__reactInternalSnapshotBeforeUpdate)}b&64&&bd(m),b&512&&sa(m,m.return);break;case 3:if(c=w4(),C2(n,m),b&64&&(b=m.updateQueue,b!==null)){if(w=null,m.child!==null)switch(m.child.tag){case 27:case 5:w=m.child.stateNode;break;case 1:w=m.child.stateNode}try{ht(m,r4,b,w)}catch(I){k1(m,m.return,I)}}n.effectDuration+=oo(c);break;case 27:c===null&&b&4&&ml(m);case 26:case 5:C2(n,m),c===null&&b&4&&By(m),b&512&&sa(m,m.return);break;case 12:if(b&4){b=w4(),C2(n,m),n=m.stateNode,n.effectDuration+=lo(b);try{ht(m,Md,m,c,Sv,n.effectDuration)}catch(I){k1(m,m.return,I)}}else C2(n,m);break;case 13:C2(n,m),b&4&&yl(n,m),b&64&&(n=m.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(m=i0.bind(null,m),Io(n,m))));break;case 22:if(b=m.memoizedState!==null||Ma,!b){c=c!==null&&c.memoizedState!==null||q2,w=Ma;var D=q2;Ma=b,(q2=c)&&!D?L3(n,m,(m.subtreeFlags&8772)!==0):C2(n,m),Ma=w,q2=D}break;case 30:break;default:C2(n,m)}}function Iy(n){var c=n.alternate;c!==null&&(n.alternate=null,Iy(c)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(c=n.stateNode,c!==null&&Q1(c)),n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function u4(n,c,m){for(m=m.child;m!==null;)Oo(n,c,m),m=m.sibling}function Oo(n,c,m){if(f3&&typeof f3.onCommitFiberUnmount=="function")try{f3.onCommitFiberUnmount(va,m)}catch(D){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",D))}switch(m.tag){case 26:q2||on(m,c),u4(n,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:q2||on(m,c);var b=r3,w=Q6;F2(m.type)&&(r3=m.stateNode,Q6=!1),u4(n,c,m),ht(m,zo,m.stateNode),r3=b,Q6=w;break;case 5:q2||on(m,c);case 6:if(b=r3,w=Q6,r3=null,u4(n,c,m),r3=b,Q6=w,r3!==null)if(Q6)try{ht(m,El,r3,m.stateNode)}catch(D){k1(m,c,D)}else try{ht(m,jo,r3,m.stateNode)}catch(D){k1(m,c,D)}break;case 18:r3!==null&&(Q6?(n=r3,B3(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,m.stateNode),Zo(n)):B3(r3,m.stateNode));break;case 4:b=r3,w=Q6,r3=m.stateNode.containerInfo,Q6=!0,u4(n,c,m),r3=b,Q6=w;break;case 0:case 11:case 14:case 15:q2||la(q4,m,c),q2||dl(m,c,j3),u4(n,c,m);break;case 1:q2||(on(m,c),b=m.stateNode,typeof b.componentWillUnmount=="function"&&Ed(m,c,b)),u4(n,c,m);break;case 21:u4(n,c,m);break;case 22:q2=(b=q2)||m.memoizedState!==null,u4(n,c,m),q2=b;break;default:u4(n,c,m)}}function yl(n,c){if(c.memoizedState===null&&(n=c.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ht(c,Jy,n)}catch(m){k1(c,c.return,m)}}function vl(n){switch(n.tag){case 13:case 19:var c=n.stateNode;return c===null&&(c=n.stateNode=new fP),c;case 22:return n=n.stateNode,c=n._retryCache,c===null&&(c=n._retryCache=new fP),c;default:throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}}function Co(n,c){var m=vl(n);c.forEach(function(b){var w=Gy.bind(null,n,b);if(!m.has(b)){if(m.add(b),c6)if(lc!==null&&sc!==null)Qa(sc,lc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");b.then(w,w)}})}function c4(n,c){var m=c.deletions;if(m!==null)for(var b=0;b<m.length;b++){var w=n,D=c,I=m[b],G=D;e:for(;G!==null;){switch(G.tag){case 27:if(F2(G.type)){r3=G.stateNode,Q6=!1;break e}break;case 5:r3=G.stateNode,Q6=!1;break e;case 3:case 4:r3=G.stateNode.containerInfo,Q6=!0;break e}G=G.return}if(r3===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Oo(w,D,I),r3=null,Q6=!1,w=I,D=w.alternate,D!==null&&(D.return=null),w.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)_d(c,n),c=c.sibling}function _d(n,c){var m=n.alternate,b=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:c4(c,n),W2(n),b&4&&(la(q4|t5,n,n.return),So(q4|t5,n),dl(n,n.return,j3|t5));break;case 1:c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),b&64&&Ma&&(n=n.updateQueue,n!==null&&(b=n.callbacks,b!==null&&(m=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=m===null?b:m.concat(b))));break;case 26:var w=Lr;if(c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),b&4)if(c=m!==null?m.memoizedState:null,b=n.memoizedState,m===null)if(b===null)if(n.stateNode===null){e:{b=n.type,m=n.memoizedProps,c=w.ownerDocument||w;t:switch(b){case"title":w=c.getElementsByTagName("title")[0],(!w||w[Bl]||w[b3]||w.namespaceURI===mr||w.hasAttribute("itemprop"))&&(w=c.createElement(b),c.head.insertBefore(w,c.querySelector("head > title"))),K2(w,b,m),w[b3]=n,ge(w),b=w;break e;case"link":var D=lh("link","href",c).get(b+(m.href||""));if(D){for(var I=0;I<D.length;I++)if(w=D[I],w.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&w.getAttribute("rel")===(m.rel==null?null:m.rel)&&w.getAttribute("title")===(m.title==null?null:m.title)&&w.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){D.splice(I,1);break t}}w=c.createElement(b),K2(w,b,m),c.head.appendChild(w);break;case"meta":if(D=lh("meta","content",c).get(b+(m.content||""))){for(I=0;I<D.length;I++)if(w=D[I],U(m.content,"content"),w.getAttribute("content")===(m.content==null?null:""+m.content)&&w.getAttribute("name")===(m.name==null?null:m.name)&&w.getAttribute("property")===(m.property==null?null:m.property)&&w.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&w.getAttribute("charset")===(m.charSet==null?null:m.charSet)){D.splice(I,1);break t}}w=c.createElement(b),K2(w,b,m),c.head.appendChild(w);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}w[b3]=n,ge(w),b=w}n.stateNode=b}else pa(w,n.type,n.stateNode);else n.stateNode=nv(w,b,n.memoizedProps);else c!==b?(c===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):c.count--,b===null?pa(w,n.type,n.stateNode):nv(w,b,n.memoizedProps)):b===null&&n.stateNode!==null&&Ws(n,n.memoizedProps,m.memoizedProps);break;case 27:c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),m!==null&&b&4&&Ws(n,n.memoizedProps,m.memoizedProps);break;case 5:if(c4(c,n),W2(n),b&512&&(q2||m===null||on(m,m.return)),n.flags&32){c=n.stateNode;try{ht(n,c0,c)}catch(we){k1(n,n.return,we)}}b&4&&n.stateNode!=null&&(c=n.memoizedProps,Ws(n,c,m!==null?m.memoizedProps:c)),b&1024&&(TH=!0,n.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(c4(c,n),W2(n),b&4){if(n.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");b=n.memoizedProps,m=m!==null?m.memoizedProps:b,c=n.stateNode;try{ht(n,th,c,m,b)}catch(we){k1(n,n.return,we)}}break;case 3:if(w=w4(),Jv=null,D=Lr,Lr=fu(c.containerInfo),c4(c,n),Lr=D,W2(n),b&4&&m!==null&&m.memoizedState.isDehydrated)try{ht(n,P4,c.containerInfo)}catch(we){k1(n,n.return,we)}TH&&(TH=!1,Ad(n)),c.effectDuration+=oo(w);break;case 4:b=Lr,Lr=fu(n.stateNode.containerInfo),c4(c,n),W2(n),Lr=b;break;case 12:b=w4(),c4(c,n),W2(n),n.stateNode.effectDuration+=lo(b);break;case 13:c4(c,n),W2(n),n.child.flags&8192&&n.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(mH=Q3()),b&4&&(b=n.updateQueue,b!==null&&(n.updateQueue=null,Co(n,b)));break;case 22:w=n.memoizedState!==null;var G=m!==null&&m.memoizedState!==null,ie=Ma,le=q2;if(Ma=ie||w,q2=le||G,c4(c,n),q2=le,Ma=ie,W2(n),b&8192)e:for(c=n.stateNode,c._visibility=w?c._visibility&-2:c._visibility|qb,w&&(m===null||G||Ma||q2||T4(n)),m=null,c=n;;){if(c.tag===5||c.tag===26){if(m===null){G=m=c;try{D=G.stateNode,w?ht(G,nh,D):ht(G,uu,G.stateNode,G.memoizedProps)}catch(we){k1(G,G.return,we)}}}else if(c.tag===6){if(m===null){G=c;try{I=G.stateNode,w?ht(G,rh,I):ht(G,cu,I,G.memoizedProps)}catch(we){k1(G,G.return,we)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===n)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}b&4&&(b=n.updateQueue,b!==null&&(m=b.retryQueue,m!==null&&(b.retryQueue=null,Co(n,m))));break;case 19:c4(c,n),W2(n),b&4&&(b=n.updateQueue,b!==null&&(n.updateQueue=null,Co(n,b)));break;case 30:break;case 21:break;default:c4(c,n),W2(n)}}function W2(n){var c=n.flags;if(c&2){try{ht(n,Py,n)}catch(m){k1(n,n.return,m)}n.flags&=-3}c&4096&&(n.flags&=-4097)}function Ad(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var c=n;Ad(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),n=n.sibling}}function C2(n,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Sd(n,c.alternate,c),c=c.sibling}function ln(n){switch(n.tag){case 0:case 11:case 14:case 15:dl(n,n.return,j3),T4(n);break;case 1:on(n,n.return);var c=n.stateNode;typeof c.componentWillUnmount=="function"&&Ed(n,n.return,c),T4(n);break;case 27:ht(n,zo,n.stateNode);case 26:case 5:on(n,n.return),T4(n);break;case 22:n.memoizedState===null&&T4(n);break;case 30:T4(n);break;default:T4(n)}}function T4(n){for(n=n.child;n!==null;)ln(n),n=n.sibling}function Od(n,c,m,b){var w=m.flags;switch(m.tag){case 0:case 11:case 15:L3(n,m,b),xd(m,j3);break;case 1:if(L3(n,m,b),c=m.stateNode,typeof c.componentDidMount=="function"&&ht(m,iH,m,c),c=m.updateQueue,c!==null){n=m.stateNode;try{ht(m,Eb,c,n)}catch(D){k1(m,m.return,D)}}b&&w&64&&bd(m),sa(m,m.return);break;case 27:ml(m);case 26:case 5:L3(n,m,b),b&&c===null&&w&4&&By(m),sa(m,m.return);break;case 12:if(b&&w&4){w=w4(),L3(n,m,b),b=m.stateNode,b.effectDuration+=lo(w);try{ht(m,Md,m,c,Sv,b.effectDuration)}catch(D){k1(m,m.return,D)}}else L3(n,m,b);break;case 13:L3(n,m,b),b&&w&4&&yl(n,m);break;case 22:m.memoizedState===null&&L3(n,m,b),sa(m,m.return);break;case 30:break;default:L3(n,m,b)}}function L3(n,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;)Od(n,c.alternate,c,m),c=c.sibling}function sn(n,c){var m=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(m=n.memoizedState.cachePool.pool),n=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(n=c.memoizedState.cachePool.pool),n!==m&&(n!=null&&t6(n),m!=null&&Yi(m))}function b2(n,c){n=null,c.alternate!==null&&(n=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==n&&(t6(c),n!=null&&Yi(n))}function R4(n,c,m,b){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)Ys(n,c,m,b),c=c.sibling}function Ys(n,c,m,b){var w=c.flags;switch(c.tag){case 0:case 11:case 15:R4(n,c,m,b),w&2048&&Zs(c,p3|t5);break;case 1:R4(n,c,m,b);break;case 3:var D=w4();R4(n,c,m,b),w&2048&&(m=null,c.alternate!==null&&(m=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==m&&(t6(c),m!=null&&Yi(m))),n.passiveEffectDuration+=oo(D);break;case 12:if(w&2048){w=w4(),R4(n,c,m,b),n=c.stateNode,n.passiveEffectDuration+=lo(w);try{ht(c,Sb,c,c.alternate,Sv,n.passiveEffectDuration)}catch(G){k1(c,c.return,G)}}else R4(n,c,m,b);break;case 13:R4(n,c,m,b);break;case 23:break;case 22:D=c.stateNode;var I=c.alternate;c.memoizedState!==null?D._visibility&Gl?R4(n,c,m,b):wo(n,c):D._visibility&Gl?R4(n,c,m,b):(D._visibility|=Gl,n0(n,c,m,b,(c.subtreeFlags&10256)!==0)),w&2048&&sn(I,c);break;case 24:R4(n,c,m,b),w&2048&&b2(c.alternate,c);break;default:R4(n,c,m,b)}}function n0(n,c,m,b,w){for(w=w&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;)Cd(n,c,m,b,w),c=c.sibling}function Cd(n,c,m,b,w){var D=c.flags;switch(c.tag){case 0:case 11:case 15:n0(n,c,m,b,w),Zs(c,p3);break;case 23:break;case 22:var I=c.stateNode;c.memoizedState!==null?I._visibility&Gl?n0(n,c,m,b,w):wo(n,c):(I._visibility|=Gl,n0(n,c,m,b,w)),w&&D&2048&&sn(c.alternate,c);break;case 24:n0(n,c,m,b,w),w&&D&2048&&b2(c.alternate,c);break;default:n0(n,c,m,b,w)}}function wo(n,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=n,b=c,w=b.flags;switch(b.tag){case 22:wo(m,b),w&2048&&sn(b.alternate,b);break;case 24:wo(m,b),w&2048&&b2(b.alternate,b);break;default:wo(m,b)}c=c.sibling}}function o6(n){if(n.subtreeFlags&Yh)for(n=n.child;n!==null;)gl(n),n=n.sibling}function gl(n){switch(n.tag){case 26:o6(n),n.flags&Yh&&n.memoizedState!==null&&iv(Lr,n.memoizedState,n.memoizedProps);break;case 5:o6(n);break;case 3:case 4:var c=Lr;Lr=fu(n.stateNode.containerInfo),o6(n),Lr=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=Yh,Yh=16777216,o6(n),Yh=c):o6(n));break;default:o6(n)}}function wd(n){var c=n.alternate;if(c!==null&&(n=c.child,n!==null)){c.child=null;do c=n.sibling,n.sibling=null,n=c;while(n!==null)}}function Vo(n){var c=n.deletions;if((n.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var b=c[m];E3=b,Ks(b,n)}wd(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Vd(n),n=n.sibling}function Vd(n){switch(n.tag){case 0:case 11:case 15:Vo(n),n.flags&2048&&Xs(n,n.return,p3|t5);break;case 3:var c=w4();Vo(n),n.stateNode.passiveEffectDuration+=oo(c);break;case 12:c=w4(),Vo(n),n.stateNode.passiveEffectDuration+=lo(c);break;case 22:c=n.stateNode,n.memoizedState!==null&&c._visibility&Gl&&(n.return===null||n.return.tag!==13)?(c._visibility&=-3,ua(n)):Vo(n);break;default:Vo(n)}}function ua(n){var c=n.deletions;if((n.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var b=c[m];E3=b,Ks(b,n)}wd(n)}for(n=n.child;n!==null;)Dd(n),n=n.sibling}function Dd(n){switch(n.tag){case 0:case 11:case 15:Xs(n,n.return,p3),ua(n);break;case 22:var c=n.stateNode;c._visibility&Gl&&(c._visibility&=-3,ua(n));break;default:ua(n)}}function Ks(n,c){for(;E3!==null;){var m=E3,b=m;switch(b.tag){case 0:case 11:case 15:Xs(b,c,p3);break;case 23:case 22:b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(b=b.memoizedState.cachePool.pool,b!=null&&t6(b));break;case 24:Yi(b.memoizedState.cache)}if(b=m.child,b!==null)b.return=m,E3=b;else e:for(m=n;E3!==null;){b=E3;var w=b.sibling,D=b.return;if(Iy(b),b===m){E3=null;break e}if(w!==null){w.return=D,E3=w;break e}E3=D}}}function Fy(){Rie.forEach(function(n){return n()})}function Rd(){var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return n||Ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),n}function k4(n){if((A1&$4)!==yn&&a1!==0)return a1&-a1;var c=Ce.T;return c!==null?(c._updatedFibers||(c._updatedFibers=new Set),c._updatedFibers.add(n),n=Yl,n!==0?n:lu()):i1()}function kd(){gn===0&&(gn=(a1&536870912)===0||v1?lt():536870912);var n=r5.current;return n!==null&&(n.flags|=32),gn}function Kt(n,c,m){if(fc&&console.error("useInsertionEffect must not schedule updates."),xH&&(Iv=!0),(n===n2&&(j1===n9||j1===r9)||n.cancelPendingCommit!==null)&&(nr(n,0),tr(n,a1,gn,!1)),T1(n,m),(A1&$4)!==0&&n===n2){if($n)switch(c.tag){case 0:case 11:case 15:n=n1&&R(n1)||"Unknown",bP.has(n)||(bP.add(n),c=R(c)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",c,n,n));break;case 1:xP||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xP=!0)}}else c6&&Ke(n,c,m),Gd(c),n===n2&&((A1&$4)===yn&&(u7|=m),D2===t9&&tr(n,a1,gn,!1)),l6(n)}function Y2(n,c,m){if((A1&($4|xr))!==yn)throw Error("Should not already be working.");var b=!m&&(c&124)===0&&(c&n.expiredLanes)===0||jt(n,c),w=b?jd(n,c):Ll(n,c,!0),D=b;do{if(w===Sa){Tc&&!b&&tr(n,c,0,!1);break}else{if(m=n.current.alternate,D&&!zy(m)){w=Ll(n,c,!1),D=!1;continue}if(w===uc){if(D=c,n.errorRecoveryDisabledLanes&D)var I=0;else I=n.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){c=I;e:{w=n;var G=I;I=rp;var ie=w.current.memoizedState.isDehydrated;if(ie&&(nr(w,G).flags|=256),G=Ll(w,G,!1),G!==uc){if(hH&&!ie){w.errorRecoveryDisabledLanes|=D,u7|=D,w=t9;break e}w=U4,U4=I,w!==null&&(U4===null?U4=w:U4.push.apply(U4,w))}w=G}if(D=!1,w!==uc)continue}}if(w===Jh){nr(n,0),tr(n,c,0,!0);break}e:{switch(b=n,w){case Sa:case Jh:throw Error("Root did not complete. This is a bug in React.");case t9:if((c&4194048)!==c)break;case Bv:tr(b,c,gn,!l7);break e;case uc:U4=null;break;case QH:case dP:break;default:throw Error("Unknown root exit status.")}if(Ce.actQueue!==null)un(b,m,c,U4,ip,Pv,gn,u7,i9);else{if((c&62914560)===c&&(D=mH+pP-Q3(),10<D)){if(tr(b,c,gn,!l7),pt(b,0,!0)!==0)break e;b.timeoutHandle=CP(Nd.bind(null,b,m,U4,ip,Pv,c,gn,u7,i9,l7,w,Pie,yB,0),D);break e}Nd(b,m,U4,ip,Pv,c,gn,u7,i9,l7,w,Nie,yB,0)}}}break}while(!0);l6(n)}function Nd(n,c,m,b,w,D,I,G,ie,le,we,Ne,Oe,Be){if(n.timeoutHandle=u9,Ne=c.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(cp={stylesheets:null,count:0,unsuspend:rv},gl(c),Ne=av(),Ne!==null)){n.cancelPendingCommit=Ne(un.bind(null,n,c,D,m,b,w,I,G,ie,we,Bie,Oe,Be)),tr(n,D,I,!le);return}un(n,c,D,m,b,w,I,G,ie)}function zy(n){for(var c=n;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var b=0;b<m.length;b++){var w=m[b],D=w.getSnapshot;w=w.value;try{if(!F4(D(),w))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===n)break;for(;c.sibling===null;){if(c.return===null||c.return===n)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function tr(n,c,m,b){c&=~pH,c&=~u7,n.suspendedLanes|=c,n.pingedLanes&=~c,b&&(n.warmLanes|=c),b=n.expirationTimes;for(var w=c;0<w;){var D=31-J2(w),I=1<<D;b[D]=-1,w&=~I}m!==0&&pe(n,m,c)}function ca(){return(A1&($4|xr))===yn?(a0(0),!1):!0}function Js(){if(n1!==null){if(j1===f6)var n=n1.return;else n=n1,Ls(),en(n),nc=null,Xh=0,n=n1;for(;n!==null;)Ld(n.alternate,n),n=n.return;n1=null}}function nr(n,c){var m=n.timeoutHandle;m!==u9&&(n.timeoutHandle=u9,Kie(m)),m=n.cancelPendingCommit,m!==null&&(n.cancelPendingCommit=null,m()),Js(),n2=n,n1=m=Dn(n.current,null),a1=c,j1=f6,vn=null,l7=!1,Tc=jt(n,c),hH=!1,D2=Sa,i9=gn=pH=u7=s7=0,U4=rp=null,Pv=!1,(c&8)!==0&&(c|=c&32);var b=n.entangledLanes;if(b!==0)for(n=n.entanglements,b&=c;0<b;){var w=31-J2(b),D=1<<w;c|=n[w],b&=~D}return E0=c,fs(),c=pB(),1e3<c-hB&&(Ce.recentlyCreatedOwnerStacks=0,hB=c),vr.discardPendingWarnings(),m}function eu(n,c){Dt=null,Ce.H=kv,Ce.getCurrentStack=null,$n=!1,d3=null,c===$h||c===Cv?(c=V4(),j1=tp):c===LB?(c=V4(),j1=hP):j1=c===aP?dH:c!==null&&typeof c=="object"&&typeof c.then=="function"?cc:ep,vn=c;var m=n1;if(m===null)D2=Jh,Mo(n,e4(c,n.current));else switch(m.mode&P3&&Ur(m),Se(),j1){case ep:ot!==null&&typeof ot.markComponentErrored=="function"&&ot.markComponentErrored(m,c,a1);break;case n9:case r9:case tp:case cc:case np:ot!==null&&typeof ot.markComponentSuspended=="function"&&ot.markComponentSuspended(m,c,a1)}}function Bd(){var n=Ce.H;return Ce.H=kv,n===null?kv:n}function Pd(){var n=Ce.A;return Ce.A=Die,n}function tu(){D2=t9,l7||(a1&4194048)!==a1&&r5.current!==null||(Tc=!0),(s7&134217727)===0&&(u7&134217727)===0||n2===null||tr(n2,a1,gn,!1)}function Ll(n,c,m){var b=A1;A1|=$4;var w=Bd(),D=Pd();if(n2!==n||a1!==c){if(c6){var I=n.memoizedUpdaters;0<I.size&&(Qa(n,a1),I.clear()),Je(n,c)}ip=null,nr(n,c)}ze(c),c=!1,I=D2;e:do try{if(j1!==f6&&n1!==null){var G=n1,ie=vn;switch(j1){case dH:Js(),I=Bv;break e;case tp:case n9:case r9:case cc:r5.current===null&&(c=!0);var le=j1;if(j1=f6,vn=null,Ta(n,G,ie,le),m&&Tc){I=Sa;break e}break;default:le=j1,j1=f6,vn=null,Ta(n,G,ie,le)}}nu(),I=D2;break}catch(we){eu(n,we)}while(!0);return c&&n.shellSuspendCounter++,Ls(),A1=b,Ce.H=w,Ce.A=D,ue(),n1===null&&(n2=null,a1=0,fs()),I}function nu(){for(;n1!==null;)ru(n1)}function jd(n,c){var m=A1;A1|=$4;var b=Bd(),w=Pd();if(n2!==n||a1!==c){if(c6){var D=n.memoizedUpdaters;0<D.size&&(Qa(n,a1),D.clear()),Je(n,c)}ip=null,jv=Q3()+mP,nr(n,c)}else Tc=jt(n,c);ze(c);e:do try{if(j1!==f6&&n1!==null)t:switch(c=n1,D=vn,j1){case ep:j1=f6,vn=null,Ta(n,c,D,ep);break;case n9:case r9:if(Es(D)){j1=f6,vn=null,xl(c);break}c=function(){j1!==n9&&j1!==r9||n2!==n||(j1=np),l6(n)},D.then(c,c);break e;case tp:j1=np;break e;case hP:j1=fH;break e;case np:Es(D)?(j1=f6,vn=null,xl(c)):(j1=f6,vn=null,Ta(n,c,D,np));break;case fH:var I=null;switch(n1.tag){case 26:I=n1.memoizedState;case 5:case 27:var G=n1;if(!I||sh(I)){j1=f6,vn=null;var ie=G.sibling;if(ie!==null)n1=ie;else{var le=G.return;le!==null?(n1=le,Do(le)):n1=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}j1=f6,vn=null,Ta(n,c,D,fH);break;case cc:j1=f6,vn=null,Ta(n,c,D,cc);break;case dH:Js(),D2=Bv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ce.actQueue!==null?nu():qy();break}catch(we){eu(n,we)}while(!0);return Ls(),Ce.H=b,Ce.A=w,A1=m,n1!==null?(ot!==null&&typeof ot.markRenderYielded=="function"&&ot.markRenderYielded(),Sa):(ue(),n2=null,a1=0,fs(),D2)}function qy(){for(;n1!==null&&!Vb();)ru(n1)}function ru(n){var c=n.alternate;(n.mode&P3)!==l2?($5(n),c=ht(n,t0,c,n,E0),Ur(n)):c=ht(n,t0,c,n,E0),n.memoizedProps=n.pendingProps,c===null?Do(n):n1=c}function xl(n){var c=ht(n,Id,n);n.memoizedProps=n.pendingProps,c===null?Do(n):n1=c}function Id(n){var c=n.alternate,m=(n.mode&P3)!==l2;switch(m&&$5(n),n.tag){case 15:case 0:c=Td(c,n,n.pendingProps,n.type,void 0,a1);break;case 11:c=Td(c,n,n.pendingProps,n.type.render,n.ref,a1);break;case 5:en(n);default:Ld(c,n),n=n1=jf(n,E0),c=t0(c,n,E0)}return m&&Ur(n),c}function Ta(n,c,m,b){Ls(),en(c),nc=null,Xh=0;var w=c.return;try{if(Is(n,w,c,m,a1)){D2=Jh,Mo(n,e4(m,n.current)),n1=null;return}}catch(D){if(w!==null)throw n1=w,D;D2=Jh,Mo(n,e4(m,n.current)),n1=null;return}c.flags&32768?(v1||b===ep?n=!0:Tc||(a1&536870912)!==0?n=!1:(l7=n=!0,(b===n9||b===r9||b===tp||b===cc)&&(b=r5.current,b!==null&&b.tag===13&&(b.flags|=16384))),Fd(c,n)):Do(c)}function Do(n){var c=n;do{if((c.flags&32768)!==0){Fd(c,l7);return}var m=c.alternate;if(n=c.return,$5(c),m=ht(c,Ry,m,c,E0),(c.mode&P3)!==l2&&bs(c),m!==null){n1=m;return}if(c=c.sibling,c!==null){n1=c;return}n1=c=n}while(c!==null);D2===Sa&&(D2=dP)}function Fd(n,c){do{var m=ky(n.alternate,n);if(m!==null){m.flags&=32767,n1=m;return}if((n.mode&P3)!==l2){bs(n),m=n.actualDuration;for(var b=n.child;b!==null;)m+=b.actualDuration,b=b.sibling;n.actualDuration=m}if(m=n.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(n=n.sibling,n!==null)){n1=n;return}n1=n=m}while(n!==null);D2=Bv,n1=null}function un(n,c,m,b,w,D,I,G,ie){n.cancelPendingCommit=null;do r0();while(I3!==a9);if(vr.flushLegacyContextWarning(),vr.flushPendingUnsafeLifecycleWarnings(),(A1&($4|xr))!==yn)throw Error("Should not already be working.");if(ot!==null&&typeof ot.markCommitStarted=="function"&&ot.markCommitStarted(m),c===null)He();else{if(m===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),c===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(D=c.lanes|c.childLanes,D|=$b,Ue(n,m,D,I,G,ie),n===n2&&(n1=n2=null,a1=0),Qc=c,T7=n,Q7=m,vH=D,gH=w,LP=b,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Zy(Wo,function(){return Ro(),null})):(n.callbackNode=null,n.callbackPriority=0),Sv=Yu(),b=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||b){b=Ce.T,Ce.T=null,w=L1.p,L1.p=I4,I=A1,A1|=xr;try{jy(n,c,m)}finally{A1=I,L1.p=w,Ce.T=b}}I3=yP,iu(),$y(),zd()}}function iu(){if(I3===yP){I3=a9;var n=T7,c=Qc,m=Q7,b=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||b){b=Ce.T,Ce.T=null;var w=L1.p;L1.p=I4;var D=A1;A1|=xr;try{lc=m,sc=n,_d(c,n),sc=lc=null,m=CH;var I=Sy(n.containerInfo),G=m.focusedElem,ie=m.selectionRange;if(I!==G&&G&&G.ownerDocument&&My(G.ownerDocument.documentElement,G)){if(ie!==null&&Nf(G)){var le=ie.start,we=ie.end;if(we===void 0&&(we=le),"selectionStart"in G)G.selectionStart=le,G.selectionEnd=Math.min(we,G.value.length);else{var Ne=G.ownerDocument||document,Oe=Ne&&Ne.defaultView||window;if(Oe.getSelection){var Be=Oe.getSelection(),Qt=G.textContent.length,Ot=Math.min(ie.start,Qt),r2=ie.end===void 0?Ot:Math.min(ie.end,Qt);!Be.extend&&Ot>r2&&(I=r2,r2=Ot,Ot=I);var l1=Ey(G,Ot),Te=Ey(G,r2);if(l1&&Te&&(Be.rangeCount!==1||Be.anchorNode!==l1.node||Be.anchorOffset!==l1.offset||Be.focusNode!==Te.node||Be.focusOffset!==Te.offset)){var Qe=Ne.createRange();Qe.setStart(l1.node,l1.offset),Be.removeAllRanges(),Ot>r2?(Be.addRange(Qe),Be.extend(Te.node,Te.offset)):(Qe.setEnd(Te.node,Te.offset),Be.addRange(Qe))}}}}for(Ne=[],Be=G;Be=Be.parentNode;)Be.nodeType===1&&Ne.push({element:Be,left:Be.scrollLeft,top:Be.scrollTop});for(typeof G.focus=="function"&&G.focus(),G=0;G<Ne.length;G++){var me=Ne[G];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}ng=!!OH,CH=OH=null}finally{A1=D,L1.p=w,Ce.T=b}}n.current=c,I3=vP}}function $y(){if(I3===vP){I3=a9;var n=T7,c=Qc,m=Q7,b=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||b){b=Ce.T,Ce.T=null;var w=L1.p;L1.p=I4;var D=A1;A1|=xr;try{ot!==null&&typeof ot.markLayoutEffectsStarted=="function"&&ot.markLayoutEffectsStarted(m),lc=m,sc=n,Sd(n,c.alternate,c),sc=lc=null,ot!==null&&typeof ot.markLayoutEffectsStopped=="function"&&ot.markLayoutEffectsStopped()}finally{A1=D,L1.p=w,Ce.T=b}}I3=gP}}function zd(){if(I3===jie||I3===gP){I3=a9,Db();var n=T7,c=Qc,m=Q7,b=LP,w=(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;w?I3=yH:(I3=a9,Qc=T7=null,qd(n,n.pendingLanes),o9=0,op=null);var D=n.pendingLanes;if(D===0&&(c7=null),w||cn(n),w=Tt(m),c=c.stateNode,f3&&typeof f3.onCommitFiberRoot=="function")try{var I=(c.current.flags&128)===128;switch(w){case I4:var G=kl;break;case qn:G=hh;break;case hr:G=Wo;break;case Cu:G=mh;break;default:G=Wo}f3.onCommitFiberRoot(va,c,G,I)}catch(Ne){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",Ne))}if(c6&&n.memoizedUpdaters.clear(),Fy(),b!==null){I=Ce.T,G=L1.p,L1.p=I4,Ce.T=null;try{var ie=n.onRecoverableError;for(c=0;c<b.length;c++){var le=b[c],we=rr(le.stack);ht(le.source,ie,le.value,we)}}finally{Ce.T=I,L1.p=G}}(Q7&3)!==0&&r0(),l6(n),D=n.pendingLanes,(m&4194090)!==0&&(D&42)!==0?(Av=!0,n===LH?ap++:(ap=0,LH=n)):ap=0,a0(0),He()}}function rr(n){return n={componentStack:n},Object.defineProperty(n,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),n}function qd(n,c){(n.pooledCacheLanes&=c)===0&&(c=n.pooledCache,c!=null&&(n.pooledCache=null,Yi(c)))}function r0(n){return iu(),$y(),zd(),Ro()}function Ro(){if(I3!==yH)return!1;var n=T7,c=vH;vH=0;var m=Tt(Q7),b=hr>m?hr:m;m=Ce.T;var w=L1.p;try{L1.p=b,Ce.T=null,b=gH,gH=null;var D=T7,I=Q7;if(I3=a9,Qc=T7=null,Q7=0,(A1&($4|xr))!==yn)throw Error("Cannot flush passive effects while already rendering.");xH=!0,Iv=!1,ot!==null&&typeof ot.markPassiveEffectsStarted=="function"&&ot.markPassiveEffectsStarted(I);var G=A1;if(A1|=xr,Vd(D.current),Ys(D,D.current,I,b),ot!==null&&typeof ot.markPassiveEffectsStopped=="function"&&ot.markPassiveEffectsStopped(),cn(D),A1=G,a0(0,!1),Iv?D===op?o9++:(o9=0,op=D):o9=0,Iv=xH=!1,f3&&typeof f3.onPostCommitFiberRoot=="function")try{f3.onPostCommitFiberRoot(va,D)}catch(le){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",le))}var ie=D.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{L1.p=w,Ce.T=m,qd(n,c)}}function o2(n,c,m){c=e4(m,c),c=m2(n.stateNode,c,2),n=Y6(n,c,2),n!==null&&(T1(n,2),l6(n))}function k1(n,c,m){if(fc=!1,n.tag===3)o2(n,n,m);else{for(;c!==null;){if(c.tag===3){o2(c,n,m);return}if(c.tag===1){var b=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(c7===null||!c7.has(b))){n=e4(m,n),m=sl(2),b=Y6(c,m,2),b!==null&&(aa(m,b,c,n),T1(b,2),l6(b));return}}c=c.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
574
574
|
|
|
575
575
|
Error message:
|
|
576
576
|
|
|
@@ -592,14 +592,14 @@ act(() => {
|
|
|
592
592
|
});
|
|
593
593
|
/* assert on the output */
|
|
594
594
|
|
|
595
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,R(n))})}function l6(n){n!==dc&&n.next===null&&(dc===null?zv=dc=n:dc=dc.next=n),qv=!0,Ce.actQueue!==null?HH||(HH=!0,Wy()):bH||(bH=!0,Wy())}function a0(n,c){if(!EH&&qv){EH=!0;do for(var m=!1,b=zv;b!==null;){if(n!==0){var w=b.pendingLanes;if(w===0)var D=0;else{var I=b.suspendedLanes,G=b.pingedLanes;D=(1<<31-J2(42|n)+1)-1,D&=w&~(I&~G),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(m=!0,Zd(b,D))}else D=a1,D=pt(b,b===n2?D:0,b.cancelPendingCommit!==null||b.timeoutHandle!==u9),(D&3)===0||jt(b,D)||(m=!0,Zd(b,D));b=b.next}while(m);EH=!1}}function Xy(){Tn()}function Tn(){qv=HH=bH=!1;var n=0;l9!==0&&(eh()&&(n=l9),l9=0);for(var c=Q3(),m=null,b=zv;b!==null;){var w=b.next,D=y2(b,c);D===0?(b.next=null,m===null?zv=w:m.next=w,w===null&&(dc=m)):(m=b,(n!==0||(D&3)!==0)&&(qv=!0)),b=w}a0(n)}function y2(n,c){for(var m=n.suspendedLanes,b=n.pingedLanes,w=n.expirationTimes,D=n.pendingLanes&-62914561;0<D;){var I=31-J2(D),G=1<<I,ie=w[I];ie===-1?((G&m)===0||(G&b)!==0)&&(w[I]=d1(G,c)):ie<=c&&(n.expiredLanes|=G),D&=~G}if(c=n2,m=a1,m=pt(n,n===c?m:0,n.cancelPendingCommit!==null||n.timeoutHandle!==u9),b=n.callbackNode,m===0||n===c&&(j1===n9||j1===r9)||n.cancelPendingCommit!==null)return b!==null&&w2(b),n.callbackNode=null,n.callbackPriority=0;if((m&3)===0||jt(n,m)){if(c=m&-m,c!==n.callbackPriority||Ce.actQueue!==null&&b!==MH)w2(b);else return c;switch(Tt(m)){case I4:case qn:m=hh;break;case hr:m=Wo;break;case Cu:m=mh;break;default:m=Wo}return b=ou.bind(null,n),Ce.actQueue!==null?(Ce.actQueue.push(b),m=MH):m=dh(m,b),n.callbackPriority=c,n.callbackNode=m,c}return b!==null&&w2(b),n.callbackPriority=2,n.callbackNode=null,2}function ou(n,c){if(Av=_v=!1,I3!==a9&&I3!==yH)return n.callbackNode=null,n.callbackPriority=0,null;var m=n.callbackNode;if(r0()&&n.callbackNode!==m)return null;var b=a1;return b=pt(n,n===n2?b:0,n.cancelPendingCommit!==null||n.timeoutHandle!==u9),b===0?null:(Y2(n,b,c),y2(n,Q3()),n.callbackNode!=null&&n.callbackNode===m?ou.bind(null,n):null)}function Zd(n,c){if(r0())return null;_v=Av,Av=!1,Y2(n,c,!0)}function w2(n){n!==MH&&n!==null&&Qv(n)}function Wy(){Ce.actQueue!==null&&Ce.actQueue.push(function(){return Tn(),null}),Jie(function(){(A1&($4|xr))!==yn?dh(kl,Xy):Tn()})}function lu(){return l9===0&&(l9=lt()),l9}function Xd(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:(U(n,"action"),F5(""+n))}function e2(n,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,n.id&&m.setAttribute("form",n.id),c.parentNode.insertBefore(m,c),n=new FormData(n),m.parentNode.removeChild(m),n}function Q4(n,c,m,b,w){if(c==="submit"&&m&&m.stateNode===w){var D=Xd((w[y4]||null).action),I=b.submitter;I&&(c=(c=I[y4]||null)?Xd(c.formAction):I.getAttribute("formAction"),c!==null&&(D=c,I=null));var G=new x1("action","action",null,b,w);n.push({event:G,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(l9!==0){var ie=I?e2(w,I):new FormData(w),oe={pending:!0,data:ie,method:w.method,action:D};Object.freeze(oe),Ds(m,oe,null,ie)}}else typeof D=="function"&&(G.preventDefault(),ie=I?e2(w,I):new FormData(w),oe={pending:!0,data:ie,method:w.method,action:D},Object.freeze(oe),Ds(m,oe,D,ie))},currentTarget:w}]})}}function s6(n,c,m){n.currentTarget=m;try{c(n)}catch(b){lH(b)}n.currentTarget=null}function Wd(n,c){c=(c&4)!==0;for(var m=0;m<n.length;m++){var b=n[m];e:{var w=void 0,D=b.event;if(b=b.listeners,c)for(var I=b.length-1;0<=I;I--){var G=b[I],ie=G.instance,oe=G.currentTarget;if(G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?ht(ie,s6,D,G,oe):s6(D,G,oe),w=ie}else for(I=0;I<b.length;I++){if(G=b[I],ie=G.instance,oe=G.currentTarget,G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?ht(ie,s6,D,G,oe):s6(D,G,oe),w=ie}}}}function Jt(n,c){SH.has(n)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var m=c[wu];m===void 0&&(m=c[wu]=new Set);var b=n+"__bubble";m.has(b)||(f4(c,n,2,!1),m.add(b))}function Yd(n,c,m){SH.has(n)&&!c&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var b=0;c&&(b|=4),f4(m,n,b,c)}function bl(n){if(!n[$v]){n[$v]=!0,ga.forEach(function(m){m!=="selectionchange"&&(SH.has(m)||Yd(m,!1,n),Yd(m,!0,n))});var c=n.nodeType===9?n:n.ownerDocument;c===null||c[$v]||(c[$v]=!0,Yd("selectionchange",!1,c))}}function f4(n,c,m,b){switch(d0(c)){case I4:var w=gu;break;case qn:w=Uo;break;default:w=Al}m=w.bind(null,c,m,n),w=void 0,!Fe||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),b?w!==void 0?n.addEventListener(c,m,{capture:!0,passive:w}):n.addEventListener(c,m,!0):w!==void 0?n.addEventListener(c,m,{passive:w}):n.addEventListener(c,m,!1)}function N4(n,c,m,b,w){var D=b;if((c&1)===0&&(c&2)===0&&b!==null)e:for(;;){if(b===null)return;var I=b.tag;if(I===3||I===4){var G=b.stateNode.containerInfo;if(G===w)break;if(I===4)for(I=b.return;I!==null;){var ie=I.tag;if((ie===3||ie===4)&&I.stateNode.containerInfo===w)return;I=I.return}for(;G!==null;){if(I=h1(G),I===null)return;if(ie=I.tag,ie===5||ie===6||ie===26||ie===27){b=D=I;continue e}G=G.parentNode}}b=b.return}to(function(){var oe=D,we=U6(m),Ne=[];e:{var Oe=TB.get(n);if(Oe!==void 0){var Be=x1,Qt=n;switch(n){case"keypress":if(Fi(m)===0)break e;case"keydown":case"keyup":Be=oie;break;case"focusin":Qt="focus",Be=Zn;break;case"focusout":Qt="blur",Be=Zn;break;case"beforeblur":case"afterblur":Be=Zn;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Be=yt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Be=t3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Be=uie;break;case lB:case sB:case uB:Be=Y0e;break;case cB:Be=Tie;break;case"scroll":case"scrollend":Be=ve;break;case"wheel":Be=fie;break;case"copy":case"cut":case"paste":Be=J0e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Be=JN;break;case"toggle":case"beforetoggle":Be=hie}var Ot=(c&4)!==0,r2=!Ot&&(n==="scroll"||n==="scrollend"),l1=Ot?Oe!==null?Oe+"Capture":null:Oe;Ot=[];for(var Te=oe,Qe;Te!==null;){var me=Te;if(Qe=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||Qe===null||l1===null||(me=J4(Te,l1),me!=null&&Ot.push(Bo(Te,me,Qe))),r2)break;Te=Te.return}0<Ot.length&&(Oe=new Be(Oe,Qt,null,m,we),Ne.push({event:Oe,listeners:Ot}))}}if((c&7)===0){e:{if(Oe=n==="mouseover"||n==="pointerover",Be=n==="mouseout"||n==="pointerout",Oe&&m!==P&&(Qt=m.relatedTarget||m.fromElement)&&(h1(Qt)||Qt[v0]))break e;if((Be||Oe)&&(Oe=we.window===we?we:(Oe=we.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Be?(Qt=m.relatedTarget||m.toElement,Be=oe,Qt=Qt?h1(Qt):null,Qt!==null&&(r2=M(Qt),Ot=Qt.tag,Qt!==r2||Ot!==5&&Ot!==27&&Ot!==6)&&(Qt=null)):(Be=null,Qt=oe),Be!==Qt)){if(Ot=yt,me="onMouseLeave",l1="onMouseEnter",Te="mouse",(n==="pointerout"||n==="pointerover")&&(Ot=JN,me="onPointerLeave",l1="onPointerEnter",Te="pointer"),r2=Be==null?Oe:xt(Be),Qe=Qt==null?Oe:xt(Qt),Oe=new Ot(me,Te+"leave",Be,m,we),Oe.target=r2,Oe.relatedTarget=Qe,me=null,h1(we)===oe&&(Ot=new Ot(l1,Te+"enter",Qt,m,we),Ot.target=Qe,Ot.relatedTarget=r2,me=Ot),r2=me,Be&&Qt)t:{for(Ot=Be,l1=Qt,Te=0,Qe=Ot;Qe;Qe=fa(Qe))Te++;for(Qe=0,me=l1;me;me=fa(me))Qe++;for(;0<Te-Qe;)Ot=fa(Ot),Te--;for(;0<Qe-Te;)l1=fa(l1),Qe--;for(;Te--;){if(Ot===l1||l1!==null&&Ot===l1.alternate)break t;Ot=fa(Ot),l1=fa(l1)}Ot=null}else Ot=null;Be!==null&&ir(Ne,Oe,Be,Ot,!1),Qt!==null&&r2!==null&&ir(Ne,r2,Qt,Ot,!0)}}e:{if(Oe=oe?xt(oe):window,Be=Oe.nodeName&&Oe.nodeName.toLowerCase(),Be==="select"||Be==="input"&&Oe.type==="file")var je=xy;else if(cs(Oe))if(aB)je=Lb;else{je=vb;var it=Rf}else Be=Oe.nodeName,!Be||Be.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?oe&&ji(oe.elementType)&&(je=xy):je=gb;if(je&&(je=je(n,oe))){no(Ne,je,m,we);break e}it&&it(n,Oe,oe),n==="focusout"&&oe&&Oe.type==="number"&&oe.memoizedProps.value!=null&&ns(Oe,"number",Oe.value)}switch(it=oe?xt(oe):window,n){case"focusin":(cs(it)||it.contentEditable==="true")&&(zu=it,Pb=oe,Nh=null);break;case"focusout":Nh=Pb=zu=null;break;case"mousedown":jb=!0;break;case"contextmenu":case"mouseup":case"dragend":jb=!1,Qs(Ne,m,we);break;case"selectionchange":if(vie)break;case"keydown":case"keyup":Qs(Ne,m,we)}var Bt;if(Bb)e:{switch(n){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Fu?Fr(n,m)&&(ft="onCompositionEnd"):n==="keydown"&&m.keyCode===eB&&(ft="onCompositionStart");ft&&(tB&&m.locale!=="ko"&&(Fu||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Fu&&(Bt=us()):(Ae=we,Re="value"in Ae?Ae.value:Ae.textContent,Fu=!0)),it=x3(oe,ft),0<it.length&&(ft=new KN(ft,n,null,m,we),Ne.push({event:ft,listeners:it}),Bt?ft.data=Bt:(Bt=B8(m),Bt!==null&&(ft.data=Bt)))),(Bt=mie?P8(n,m):yb(n,m))&&(ft=x3(oe,"onBeforeInput"),0<ft.length&&(it=new tie("onBeforeInput","beforeinput",null,m,we),Ne.push({event:it,listeners:ft}),it.data=Bt)),Q4(Ne,n,oe,m,we)}Wd(Ne,c)})}function Bo(n,c,m){return{instance:n,listener:c,currentTarget:m}}function x3(n,c){for(var m=c+"Capture",b=[];n!==null;){var w=n,D=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||D===null||(w=J4(n,m),w!=null&&b.unshift(Bo(n,w,D)),w=J4(n,c),w!=null&&b.push(Bo(n,w,D))),n.tag===3)return b;n=n.return}return[]}function fa(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ir(n,c,m,b,w){for(var D=c._reactName,I=[];m!==null&&m!==b;){var G=m,ie=G.alternate,oe=G.stateNode;if(G=G.tag,ie!==null&&ie===b)break;G!==5&&G!==26&&G!==27||oe===null||(ie=oe,w?(oe=J4(m,D),oe!=null&&I.unshift(Bo(m,oe,ie))):w||(oe=J4(m,D),oe!=null&&I.push(Bo(m,oe,ie)))),m=m.return}I.length!==0&&n.push({event:c,listeners:I})}function ar(n,c){vy(n,c),n!=="input"&&n!=="textarea"&&n!=="select"||c==null||c.value!==null||bv||(bv=!0,n==="select"&&c.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n));var m={registrationNameDependencies:pn,possibleRegistrationNames:Vu};ji(n)||typeof c.is=="string"||gy(n,c,m),c.contentEditable&&!c.suppressContentEditableWarning&&c.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function t2(n,c,m,b){c!==m&&(m=or(m),or(c)!==m&&(b[n]=c))}function Kd(n,c,m){c.forEach(function(b){m[Po(b)]=b==="style"?su(n):n.getAttribute(b)})}function u6(n,c){c===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof c)}function Qn(n,c){return n=n.namespaceURI===Pu||n.namespaceURI===mr?n.ownerDocument.createElementNS(n.namespaceURI,n.tagName):n.ownerDocument.createElement(n.tagName),n.innerHTML=c,n.innerHTML}function or(n){return z(n)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",j(n)),te(n)),(typeof n=="string"?n:""+n).replace(qie,`
|
|
596
|
-
`).replace($ie,"")}function da(n,c){return c=or(c),or(n)===c}function o0(){}function p1(n,c,m,b,w,D){switch(m){case"children":typeof b=="string"?(Ja(b,c,!1),c==="body"||c==="textarea"&&b===""||D8(n,b)):(typeof b=="number"||typeof b=="bigint")&&(Ja(""+b,c,!1),c!=="body"&&D8(n,""+b));break;case"className":Ht(n,"class",b);break;case"tabIndex":Ht(n,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Ht(n,m,b);break;case"style":ls(n,b,D);break;case"data":if(c!=="object"){Ht(n,"data",b);break}case"src":case"href":if(b===""&&(c!=="a"||m!=="href")){console.error(m==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',m,m),n.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){n.removeAttribute(m);break}U(b,m),b=F5(""+b),n.setAttribute(m,b);break;case"action":case"formAction":if(b!=null&&(c==="form"?m==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof b=="function"&&(w.encType==null&&w.method==null||Zv||(Zv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),w.target==null||Gv||(Gv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):c==="input"||c==="button"?m==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):c!=="input"||w.type==="submit"||w.type==="image"||Uv?c!=="button"||w.type==null||w.type==="submit"||Uv?typeof b=="function"&&(w.name==null||MP||(MP=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),w.formEncType==null&&w.formMethod==null||Zv||(Zv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),w.formTarget==null||Gv||(Gv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Uv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Uv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(m==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof b=="function"){n.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(m==="formAction"?(c!=="input"&&p1(n,c,"name",w.name,w,null),p1(n,c,"formEncType",w.formEncType,w,null),p1(n,c,"formMethod",w.formMethod,w,null),p1(n,c,"formTarget",w.formTarget,w,null)):(p1(n,c,"encType",w.encType,w,null),p1(n,c,"method",w.method,w,null),p1(n,c,"target",w.target,w,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){n.removeAttribute(m);break}U(b,m),b=F5(""+b),n.setAttribute(m,b);break;case"onClick":b!=null&&(typeof b!="function"&&u6(m,b),n.onclick=o0);break;case"onScroll":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scroll",n));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scrollend",n));break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=b.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=m}}break;case"multiple":n.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":n.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){n.removeAttribute("xlink:href");break}U(b,m),m=F5(""+b),n.setAttributeNS(s9,"xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?(U(b,m),n.setAttribute(m,""+b)):n.removeAttribute(m);break;case"inert":b!==""||Xv[m]||(Xv[m]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",m));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":b&&typeof b!="function"&&typeof b!="symbol"?n.setAttribute(m,""):n.removeAttribute(m);break;case"capture":case"download":b===!0?n.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?(U(b,m),n.setAttribute(m,b)):n.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?(U(b,m),n.setAttribute(m,b)):n.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?n.removeAttribute(m):(U(b,m),n.setAttribute(m,b));break;case"popover":Jt("beforetoggle",n),Jt("toggle",n),Ut(n,"popover",b);break;case"xlinkActuate":_2(n,s9,"xlink:actuate",b);break;case"xlinkArcrole":_2(n,s9,"xlink:arcrole",b);break;case"xlinkRole":_2(n,s9,"xlink:role",b);break;case"xlinkShow":_2(n,s9,"xlink:show",b);break;case"xlinkTitle":_2(n,s9,"xlink:title",b);break;case"xlinkType":_2(n,s9,"xlink:type",b);break;case"xmlBase":_2(n,_H,"xml:base",b);break;case"xmlLang":_2(n,_H,"xml:lang",b);break;case"xmlSpace":_2(n,_H,"xml:space",b);break;case"is":D!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ut(n,"is",b);break;case"innerText":case"textContent":break;case"popoverTarget":SP||b==null||typeof b!="object"||(SP=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",b));default:!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N"?(m=Ii(m),Ut(n,m,b)):pn.hasOwnProperty(m)&&b!=null&&typeof b!="function"&&u6(m,b)}}function l0(n,c,m,b,w,D){switch(m){case"style":ls(n,b,D);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=b.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=m}}break;case"children":typeof b=="string"?D8(n,b):(typeof b=="number"||typeof b=="bigint")&&D8(n,""+b);break;case"onScroll":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scroll",n));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scrollend",n));break;case"onClick":b!=null&&(typeof b!="function"&&u6(m,b),n.onclick=o0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(pn.hasOwnProperty(m))b!=null&&typeof b!="function"&&u6(m,b);else e:{if(m[0]==="o"&&m[1]==="n"&&(w=m.endsWith("Capture"),c=m.slice(2,w?m.length-7:void 0),D=n[y4]||null,D=D!=null?D[m]:null,typeof D=="function"&&n.removeEventListener(c,D,w),typeof b=="function")){typeof D!="function"&&D!==null&&(m in n?n[m]=null:n.hasAttribute(m)&&n.removeAttribute(m)),n.addEventListener(c,b,w);break e}m in n?n[m]=b:b===!0?n.setAttribute(m,""):Ut(n,m,b)}}}function K2(n,c,m){switch(ar(c,m),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Jt("error",n),Jt("load",n);var b=!1,w=!1,D;for(D in m)if(m.hasOwnProperty(D)){var I=m[D];if(I!=null)switch(D){case"src":b=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:p1(n,c,D,I,m,null)}}w&&p1(n,c,"srcSet",m.srcSet,m,null),b&&p1(n,c,"src",m.src,m,null);return;case"input":et("input",m),Jt("invalid",n);var G=D=I=w=null,ie=null,oe=null;for(b in m)if(m.hasOwnProperty(b)){var we=m[b];if(we!=null)switch(b){case"name":w=we;break;case"type":I=we;break;case"checked":ie=we;break;case"defaultChecked":oe=we;break;case"value":D=we;break;case"defaultValue":G=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p1(n,c,b,we,m,null)}}Ni(n,m),Ef(n,D,G,ie,oe,I,w,!1),x2(n);return;case"select":et("select",m),Jt("invalid",n),b=I=D=null;for(w in m)if(m.hasOwnProperty(w)&&(G=m[w],G!=null))switch(w){case"value":D=G;break;case"defaultValue":I=G;break;case"multiple":b=G;default:p1(n,c,w,G,m,null)}Vn(n,m),c=D,m=I,n.multiple=!!b,c!=null?j5(n,!!b,c,!1):m!=null&&j5(n,!!b,m,!0);return;case"textarea":et("textarea",m),Jt("invalid",n),D=w=b=null;for(I in m)if(m.hasOwnProperty(I)&&(G=m[I],G!=null))switch(I){case"value":b=G;break;case"defaultValue":w=G;break;case"children":D=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p1(n,c,I,G,m,null)}rs(n,m),Bi(n,b,w,D),x2(n);return;case"option":yy(n,m);for(ie in m)if(m.hasOwnProperty(ie)&&(b=m[ie],b!=null))switch(ie){case"selected":n.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:p1(n,c,ie,b,m,null)}return;case"dialog":Jt("beforetoggle",n),Jt("toggle",n),Jt("cancel",n),Jt("close",n);break;case"iframe":case"object":Jt("load",n);break;case"video":case"audio":for(b=0;b<lp.length;b++)Jt(lp[b],n);break;case"image":Jt("error",n),Jt("load",n);break;case"details":Jt("toggle",n);break;case"embed":case"source":case"link":Jt("error",n),Jt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(oe in m)if(m.hasOwnProperty(oe)&&(b=m[oe],b!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:p1(n,c,oe,b,m,null)}return;default:if(ji(c)){for(we in m)m.hasOwnProperty(we)&&(b=m[we],b!==void 0&&l0(n,c,we,b,m,void 0));return}}for(G in m)m.hasOwnProperty(G)&&(b=m[G],b!=null&&p1(n,c,G,b,m,null))}function Yy(n,c,m,b){switch(ar(c,b),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,D=null,I=null,G=null,ie=null,oe=null,we=null;for(Be in m){var Ne=m[Be];if(m.hasOwnProperty(Be)&&Ne!=null)switch(Be){case"checked":break;case"value":break;case"defaultValue":ie=Ne;default:b.hasOwnProperty(Be)||p1(n,c,Be,null,b,Ne)}}for(var Oe in b){var Be=b[Oe];if(Ne=m[Oe],b.hasOwnProperty(Oe)&&(Be!=null||Ne!=null))switch(Oe){case"type":D=Be;break;case"name":w=Be;break;case"checked":oe=Be;break;case"defaultChecked":we=Be;break;case"value":I=Be;break;case"defaultValue":G=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Be!==Ne&&p1(n,c,Oe,Be,b,Ne)}}c=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,b=b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null,c||!b||EP||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),EP=!0),!c||b||HP||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HP=!0),Hf(n,I,G,ie,oe,we,D,w);return;case"select":Be=I=G=Oe=null;for(D in m)if(ie=m[D],m.hasOwnProperty(D)&&ie!=null)switch(D){case"value":break;case"multiple":Be=ie;default:b.hasOwnProperty(D)||p1(n,c,D,null,b,ie)}for(w in b)if(D=b[w],ie=m[w],b.hasOwnProperty(w)&&(D!=null||ie!=null))switch(w){case"value":Oe=D;break;case"defaultValue":G=D;break;case"multiple":I=D;default:D!==ie&&p1(n,c,w,D,b,ie)}b=G,c=I,m=Be,Oe!=null?j5(n,!!c,Oe,!1):!!m!=!!c&&(b!=null?j5(n,!!c,b,!0):j5(n,!!c,c?[]:"",!1));return;case"textarea":Be=Oe=null;for(G in m)if(w=m[G],m.hasOwnProperty(G)&&w!=null&&!b.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:p1(n,c,G,null,b,w)}for(I in b)if(w=b[I],D=m[I],b.hasOwnProperty(I)&&(w!=null||D!=null))switch(I){case"value":Oe=w;break;case"defaultValue":Be=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w!==D&&p1(n,c,I,w,b,D)}Mf(n,Oe,Be);return;case"option":for(var Qt in m)if(Oe=m[Qt],m.hasOwnProperty(Qt)&&Oe!=null&&!b.hasOwnProperty(Qt))switch(Qt){case"selected":n.selected=!1;break;default:p1(n,c,Qt,null,b,Oe)}for(ie in b)if(Oe=b[ie],Be=m[ie],b.hasOwnProperty(ie)&&Oe!==Be&&(Oe!=null||Be!=null))switch(ie){case"selected":n.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:p1(n,c,ie,Oe,b,Be)}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 Ot in m)Oe=m[Ot],m.hasOwnProperty(Ot)&&Oe!=null&&!b.hasOwnProperty(Ot)&&p1(n,c,Ot,null,b,Oe);for(oe in b)if(Oe=b[oe],Be=m[oe],b.hasOwnProperty(oe)&&Oe!==Be&&(Oe!=null||Be!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p1(n,c,oe,Oe,b,Be)}return;default:if(ji(c)){for(var r2 in m)Oe=m[r2],m.hasOwnProperty(r2)&&Oe!==void 0&&!b.hasOwnProperty(r2)&&l0(n,c,r2,void 0,b,Oe);for(we in b)Oe=b[we],Be=m[we],!b.hasOwnProperty(we)||Oe===Be||Oe===void 0&&Be===void 0||l0(n,c,we,Oe,b,Be);return}}for(var l1 in m)Oe=m[l1],m.hasOwnProperty(l1)&&Oe!=null&&!b.hasOwnProperty(l1)&&p1(n,c,l1,null,b,Oe);for(Ne in b)Oe=b[Ne],Be=m[Ne],!b.hasOwnProperty(Ne)||Oe===Be||Oe==null&&Be==null||p1(n,c,Ne,Oe,b,Be)}function Po(n){switch(n){case"class":return"className";case"for":return"htmlFor";default:return n}}function su(n){var c={};n=n.style;for(var m=0;m<n.length;m++){var b=n[m];c[b]=n.getPropertyValue(b)}return c}function Hl(n,c,m){if(c!=null&&typeof c!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var b,w=b="",D;for(D in c)if(c.hasOwnProperty(D)){var I=c[D];I!=null&&typeof I!="boolean"&&I!==""&&(D.indexOf("--")===0?(fe(I,D),b+=w+D+":"+(""+I).trim()):typeof I!="number"||I===0||Vh.has(D)?(fe(I,D),b+=w+D.replace(pr,"-$1").toLowerCase().replace(t7,"-ms-")+":"+(""+I).trim()):b+=w+D.replace(pr,"-$1").toLowerCase().replace(t7,"-ms-")+":"+I+"px",w=";")}b=b||null,c=n.getAttribute("style"),c!==b&&(b=or(b),or(c)!==b&&(m.style=su(n)))}}function B4(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(U(b,c),n===""+b)return}t2(c,n,b,D)}function Ky(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null){switch(typeof b){case"function":case"symbol":return}if(!b)return}else switch(typeof b){case"function":case"symbol":break;default:if(b)return}t2(c,n,b,D)}function Jd(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":return}else if(b!=null)switch(typeof b){case"function":case"symbol":break;default:if(U(b,m),n===""+b)return}t2(c,n,b,D)}function E1(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(b))return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!isNaN(b)&&(U(b,c),n===""+b))return}t2(c,n,b,D)}function N1(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(U(b,c),m=F5(""+b),n===m)return}t2(c,n,b,D)}function e1(n,c,m,b){for(var w={},D=new Set,I=n.attributes,G=0;G<I.length;G++)switch(I[G].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:D.add(I[G].name)}if(ji(c)){for(var ie in m)if(m.hasOwnProperty(ie)){var oe=m[ie];if(oe!=null){if(pn.hasOwnProperty(ie))typeof oe!="function"&&u6(ie,oe);else if(m.suppressHydrationWarning!==!0)switch(ie){case"children":typeof oe!="string"&&typeof oe!="number"||t2("children",n.textContent,oe,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=n.innerHTML,oe=oe?oe.__html:void 0,oe!=null&&(oe=Qn(n,oe),t2(ie,I,oe,w));continue;case"style":D.delete(ie),Hl(n,oe,w);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":D.delete(ie.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",ie);continue;case"className":D.delete("class"),I=At(n,"class",oe),t2("className",I,oe,w);continue;default:b.context===Aa&&c!=="svg"&&c!=="math"?D.delete(ie.toLowerCase()):D.delete(ie),I=At(n,ie,oe),t2(ie,I,oe,w)}}}}else for(oe in m)if(m.hasOwnProperty(oe)&&(ie=m[oe],ie!=null)){if(pn.hasOwnProperty(oe))typeof ie!="function"&&u6(oe,ie);else if(m.suppressHydrationWarning!==!0)switch(oe){case"children":typeof ie!="string"&&typeof ie!="number"||t2("children",n.textContent,ie,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=n.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=Qn(n,ie),I!==ie&&(w[oe]={__html:I}));continue;case"className":B4(n,oe,"class",ie,D,w);continue;case"tabIndex":B4(n,oe,"tabindex",ie,D,w);continue;case"style":D.delete(oe),Hl(n,ie,w);continue;case"multiple":D.delete(oe),t2(oe,n.multiple,ie,w);continue;case"muted":D.delete(oe),t2(oe,n.muted,ie,w);continue;case"autoFocus":D.delete("autofocus"),t2(oe,n.autofocus,ie,w);continue;case"data":if(c!=="object"){D.delete(oe),I=n.getAttribute("data"),t2(oe,I,ie,w);continue}case"src":case"href":if(!(ie!==""||c==="a"&&oe==="href"||c==="object"&&oe==="data")){console.error(oe==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',oe,oe);continue}N1(n,oe,oe,ie,D,w);continue;case"action":case"formAction":if(I=n.getAttribute(oe),typeof ie=="function"){D.delete(oe.toLowerCase()),oe==="formAction"?(D.delete("name"),D.delete("formenctype"),D.delete("formmethod"),D.delete("formtarget")):(D.delete("enctype"),D.delete("method"),D.delete("target"));continue}else if(I===Uie){D.delete(oe.toLowerCase()),t2(oe,"function",ie,w);continue}N1(n,oe,oe.toLowerCase(),ie,D,w);continue;case"xlinkHref":N1(n,oe,"xlink:href",ie,D,w);continue;case"contentEditable":Jd(n,oe,"contenteditable",ie,D,w);continue;case"spellCheck":Jd(n,oe,"spellcheck",ie,D,w);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Jd(n,oe,oe,ie,D,w);continue;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":Ky(n,oe,oe.toLowerCase(),ie,D,w);continue;case"capture":case"download":e:{G=n;var we=I=oe,Ne=w;if(D.delete(we),G=G.getAttribute(we),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":break e;default:if(ie===!1)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":break;case"boolean":if(ie===!0&&G==="")break e;break;default:if(U(ie,I),G===""+ie)break e}t2(I,G,ie,Ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(G=n,we=I=oe,Ne=w,D.delete(we),G=G.getAttribute(we),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(ie)||1>ie)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(ie)||1>ie)&&(U(ie,I),G===""+ie))break e}t2(I,G,ie,Ne)}continue;case"rowSpan":E1(n,oe,"rowspan",ie,D,w);continue;case"start":E1(n,oe,oe,ie,D,w);continue;case"xHeight":B4(n,oe,"x-height",ie,D,w);continue;case"xlinkActuate":B4(n,oe,"xlink:actuate",ie,D,w);continue;case"xlinkArcrole":B4(n,oe,"xlink:arcrole",ie,D,w);continue;case"xlinkRole":B4(n,oe,"xlink:role",ie,D,w);continue;case"xlinkShow":B4(n,oe,"xlink:show",ie,D,w);continue;case"xlinkTitle":B4(n,oe,"xlink:title",ie,D,w);continue;case"xlinkType":B4(n,oe,"xlink:type",ie,D,w);continue;case"xmlBase":B4(n,oe,"xml:base",ie,D,w);continue;case"xmlLang":B4(n,oe,"xml:lang",ie,D,w);continue;case"xmlSpace":B4(n,oe,"xml:space",ie,D,w);continue;case"inert":ie!==""||Xv[oe]||(Xv[oe]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",oe)),Ky(n,oe,oe,ie,D,w);continue;default:if(!(2<oe.length)||oe[0]!=="o"&&oe[0]!=="O"||oe[1]!=="n"&&oe[1]!=="N"){G=Ii(oe),I=!1,b.context===Aa&&c!=="svg"&&c!=="math"?D.delete(G.toLowerCase()):(we=oe.toLowerCase(),we=Ul.hasOwnProperty(we)&&Ul[we]||null,we!==null&&we!==oe&&(I=!0,D.delete(we)),D.delete(G));e:if(we=n,Ne=G,G=ie,mt(Ne))if(we.hasAttribute(Ne))we=we.getAttribute(Ne),U(G,Ne),G=we===""+G?G:we;else{switch(typeof G){case"function":case"symbol":break e;case"boolean":if(we=Ne.toLowerCase().slice(0,5),we!=="data-"&&we!=="aria-")break e}G=G===void 0?void 0:null}else G=void 0;I||t2(oe,G,ie,w)}}}return 0<D.size&&m.suppressHydrationWarning!==!0&&Kd(n,D,w),Object.keys(w).length===0?null:w}function u1(n,c){switch(n.length){case 0:return"";case 1:return n[0];case 2:return n[0]+" "+c+" "+n[1];default:return n.slice(0,-1).join(", ")+", "+c+" "+n[n.length-1]}}function m1(n){return n.nodeType===9?n:n.ownerDocument}function d4(n){switch(n){case mr:return hc;case Pu:return Kv;default:return Aa}}function lr(n,c){if(n===Aa)switch(c){case"svg":return hc;case"math":return Kv;default:return Aa}return n===hc&&c==="foreignObject"?Aa:n}function s0(n,c){return n==="textarea"||n==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}function eh(){var n=window.event;return n&&n.type==="popstate"?n===wH?!1:(wH=n,!0):(wH=null,!1)}function sr(n){setTimeout(function(){throw n})}function v2(n,c,m){switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src?n.src=m.src:m.srcSet&&(n.srcset=m.srcSet)}}function u0(n,c,m,b){Yy(n,c,m,b),n[y4]=b}function c0(n){D8(n,"")}function th(n,c,m){n.nodeValue=m}function F2(n){return n==="head"}function jo(n,c){n.removeChild(c)}function El(n,c){(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).removeChild(c)}function B3(n,c){var m=c,b=0,w=0;do{var D=m.nextSibling;if(n.removeChild(m),D&&D.nodeType===8)if(m=D.data,m===Yv){if(0<b&&8>b){m=b;var I=n.ownerDocument;if(m&Zie&&zo(I.documentElement),m&Xie&&zo(I.body),m&Wie)for(m=I.head,zo(m),I=m.firstChild;I;){var G=I.nextSibling,ie=I.nodeName;I[Bl]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&I.rel.toLowerCase()==="stylesheet"||m.removeChild(I),I=G}}if(w===0){n.removeChild(D),Zo(c);return}w--}else m===Wv||m===_a||m===sp?w++:b=m.charCodeAt(0)-48;else b=0;m=D}while(m);Zo(c)}function nh(n){n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function rh(n){n.nodeValue=""}function uu(n,c){c=c[Yie],c=c!=null&&c.hasOwnProperty("display")?c.display:null,n.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}function cu(n,c){n.nodeValue=c}function jn(n){var c=n.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":jn(m),Q1(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}n.removeChild(m)}}function T3(n,c,m,b){for(;n.nodeType===1;){var w=m;if(n.nodeName.toLowerCase()!==c.toLowerCase()){if(!b&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(b){if(!n[Bl])switch(c){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(D=n.getAttribute("rel"),D==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(D!==w.rel||n.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||n.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||n.getAttribute("title")!==(w.title==null?null:w.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(D=n.getAttribute("src"),(D!==(w.src==null?null:w.src)||n.getAttribute("type")!==(w.type==null?null:w.type)||n.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&D&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(c==="input"&&n.type==="hidden"){U(w.name,"name");var D=w.name==null?null:""+w.name;if(w.type==="hidden"&&n.getAttribute("name")===D)return n}else return n;if(n=h4(n.nextSibling),n===null)break}return null}function T0(n,c,m){if(c==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!m||(n=h4(n.nextSibling),n===null))return null;return n}function Q0(n){return n.data===sp||n.data===_a&&n.ownerDocument.readyState===AP}function Io(n,c){var m=n.ownerDocument;if(n.data!==_a||m.readyState===AP)c();else{var b=function(){c(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),n._reactRetry=b}}function h4(n){for(;n!=null;n=n.nextSibling){var c=n.nodeType;if(c===1||c===3)break;if(c===8){if(c=n.data,c===Wv||c===sp||c===_a||c===AH||c===_P)break;if(c===Yv)return null}}return n}function Tu(n){if(n.nodeType===1){for(var c=n.nodeName.toLowerCase(),m={},b=n.attributes,w=0;w<b.length;w++){var D=b[w];m[Po(D.name)]=D.name.toLowerCase()==="style"?su(n):D.value}return{type:c,props:m}}return n.nodeType===8?{type:"Suspense",props:{}}:n.nodeValue}function ih(n,c,m){return m===null||m[Gie]!==!0?(n.nodeValue===c?n=null:(c=or(c),n=or(n.nodeValue)===c?null:n.nodeValue),n):null}function Fo(n){n=n.nextSibling;for(var c=0;n;){if(n.nodeType===8){var m=n.data;if(m===Yv){if(c===0)return h4(n.nextSibling);c--}else m!==Wv&&m!==sp&&m!==_a||c++}n=n.nextSibling}return null}function Qu(n){n=n.previousSibling;for(var c=0;n;){if(n.nodeType===8){var m=n.data;if(m===Wv||m===sp||m===_a){if(c===0)return n;c--}else m===Yv&&c++}n=n.previousSibling}return null}function P4(n){Zo(n)}function Jy(n){Zo(n)}function p4(n,c,m,b,w){switch(w&&os(n,b.ancestorInfo),c=m1(m),n){case"html":if(n=c.documentElement,!n)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"head":if(n=c.head,!n)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"body":if(n=c.body,!n)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return n;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function ev(n,c,m,b){if(!m[v0]&&rt(m)){var w=m.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",w,w,w)}switch(n){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(w=m.attributes;w.length;)m.removeAttributeNode(w[0]);K2(m,n,c),m[b3]=b,m[y4]=c}function zo(n){for(var c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Q1(n)}function fu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}function ur(n,c,m){var b=pc;if(b&&typeof c=="string"&&c){var w=X2(c);w='link[rel="'+n+'"][href="'+w+'"]',typeof m=="string"&&(w+='[crossorigin="'+m+'"]'),RP.has(w)||(RP.add(w),n={rel:n,crossOrigin:m,href:c},b.querySelector(w)===null&&(c=b.createElement("link"),K2(c,"link",n),ge(c),b.head.appendChild(c)))}}function Ml(n,c,m,b){var w=(w=Fn.current)?fu(w):null;if(!w)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(n){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(m=fn(m.href),c=ee(w).hoistableStyles,b=c.get(m),b||(b={type:"style",instance:null,count:0,state:null},c.set(m,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){n=fn(m.href);var D=ee(w).hoistableStyles,I=D.get(n);if(!I&&(w=w.ownerDocument||w,I={type:"stylesheet",instance:null,count:0,state:{loading:c9,preload:null}},D.set(n,I),(D=w.querySelector($o(n)))&&!D._p&&(I.instance=D,I.state.loading=up|i5),!a5.has(n))){var G={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy};a5.set(n,G),D||tv(w,n,G,I.state)}if(c&&b===null)throw m=`
|
|
595
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,R(n))})}function l6(n){n!==dc&&n.next===null&&(dc===null?zv=dc=n:dc=dc.next=n),qv=!0,Ce.actQueue!==null?HH||(HH=!0,Wy()):bH||(bH=!0,Wy())}function a0(n,c){if(!EH&&qv){EH=!0;do for(var m=!1,b=zv;b!==null;){if(n!==0){var w=b.pendingLanes;if(w===0)var D=0;else{var I=b.suspendedLanes,G=b.pingedLanes;D=(1<<31-J2(42|n)+1)-1,D&=w&~(I&~G),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(m=!0,Zd(b,D))}else D=a1,D=pt(b,b===n2?D:0,b.cancelPendingCommit!==null||b.timeoutHandle!==u9),(D&3)===0||jt(b,D)||(m=!0,Zd(b,D));b=b.next}while(m);EH=!1}}function Xy(){Tn()}function Tn(){qv=HH=bH=!1;var n=0;l9!==0&&(eh()&&(n=l9),l9=0);for(var c=Q3(),m=null,b=zv;b!==null;){var w=b.next,D=y2(b,c);D===0?(b.next=null,m===null?zv=w:m.next=w,w===null&&(dc=m)):(m=b,(n!==0||(D&3)!==0)&&(qv=!0)),b=w}a0(n)}function y2(n,c){for(var m=n.suspendedLanes,b=n.pingedLanes,w=n.expirationTimes,D=n.pendingLanes&-62914561;0<D;){var I=31-J2(D),G=1<<I,ie=w[I];ie===-1?((G&m)===0||(G&b)!==0)&&(w[I]=d1(G,c)):ie<=c&&(n.expiredLanes|=G),D&=~G}if(c=n2,m=a1,m=pt(n,n===c?m:0,n.cancelPendingCommit!==null||n.timeoutHandle!==u9),b=n.callbackNode,m===0||n===c&&(j1===n9||j1===r9)||n.cancelPendingCommit!==null)return b!==null&&w2(b),n.callbackNode=null,n.callbackPriority=0;if((m&3)===0||jt(n,m)){if(c=m&-m,c!==n.callbackPriority||Ce.actQueue!==null&&b!==MH)w2(b);else return c;switch(Tt(m)){case I4:case qn:m=hh;break;case hr:m=Wo;break;case Cu:m=mh;break;default:m=Wo}return b=ou.bind(null,n),Ce.actQueue!==null?(Ce.actQueue.push(b),m=MH):m=dh(m,b),n.callbackPriority=c,n.callbackNode=m,c}return b!==null&&w2(b),n.callbackPriority=2,n.callbackNode=null,2}function ou(n,c){if(Av=_v=!1,I3!==a9&&I3!==yH)return n.callbackNode=null,n.callbackPriority=0,null;var m=n.callbackNode;if(r0()&&n.callbackNode!==m)return null;var b=a1;return b=pt(n,n===n2?b:0,n.cancelPendingCommit!==null||n.timeoutHandle!==u9),b===0?null:(Y2(n,b,c),y2(n,Q3()),n.callbackNode!=null&&n.callbackNode===m?ou.bind(null,n):null)}function Zd(n,c){if(r0())return null;_v=Av,Av=!1,Y2(n,c,!0)}function w2(n){n!==MH&&n!==null&&Qv(n)}function Wy(){Ce.actQueue!==null&&Ce.actQueue.push(function(){return Tn(),null}),Jie(function(){(A1&($4|xr))!==yn?dh(kl,Xy):Tn()})}function lu(){return l9===0&&(l9=lt()),l9}function Xd(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:(U(n,"action"),F5(""+n))}function e2(n,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,n.id&&m.setAttribute("form",n.id),c.parentNode.insertBefore(m,c),n=new FormData(n),m.parentNode.removeChild(m),n}function Q4(n,c,m,b,w){if(c==="submit"&&m&&m.stateNode===w){var D=Xd((w[y4]||null).action),I=b.submitter;I&&(c=(c=I[y4]||null)?Xd(c.formAction):I.getAttribute("formAction"),c!==null&&(D=c,I=null));var G=new x1("action","action",null,b,w);n.push({event:G,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(l9!==0){var ie=I?e2(w,I):new FormData(w),le={pending:!0,data:ie,method:w.method,action:D};Object.freeze(le),Ds(m,le,null,ie)}}else typeof D=="function"&&(G.preventDefault(),ie=I?e2(w,I):new FormData(w),le={pending:!0,data:ie,method:w.method,action:D},Object.freeze(le),Ds(m,le,D,ie))},currentTarget:w}]})}}function s6(n,c,m){n.currentTarget=m;try{c(n)}catch(b){lH(b)}n.currentTarget=null}function Wd(n,c){c=(c&4)!==0;for(var m=0;m<n.length;m++){var b=n[m];e:{var w=void 0,D=b.event;if(b=b.listeners,c)for(var I=b.length-1;0<=I;I--){var G=b[I],ie=G.instance,le=G.currentTarget;if(G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?ht(ie,s6,D,G,le):s6(D,G,le),w=ie}else for(I=0;I<b.length;I++){if(G=b[I],ie=G.instance,le=G.currentTarget,G=G.listener,ie!==w&&D.isPropagationStopped())break e;ie!==null?ht(ie,s6,D,G,le):s6(D,G,le),w=ie}}}}function Jt(n,c){SH.has(n)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var m=c[wu];m===void 0&&(m=c[wu]=new Set);var b=n+"__bubble";m.has(b)||(f4(c,n,2,!1),m.add(b))}function Yd(n,c,m){SH.has(n)&&!c&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var b=0;c&&(b|=4),f4(m,n,b,c)}function bl(n){if(!n[$v]){n[$v]=!0,ga.forEach(function(m){m!=="selectionchange"&&(SH.has(m)||Yd(m,!1,n),Yd(m,!0,n))});var c=n.nodeType===9?n:n.ownerDocument;c===null||c[$v]||(c[$v]=!0,Yd("selectionchange",!1,c))}}function f4(n,c,m,b){switch(d0(c)){case I4:var w=gu;break;case qn:w=Uo;break;default:w=Al}m=w.bind(null,c,m,n),w=void 0,!Fe||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(w=!0),b?w!==void 0?n.addEventListener(c,m,{capture:!0,passive:w}):n.addEventListener(c,m,!0):w!==void 0?n.addEventListener(c,m,{passive:w}):n.addEventListener(c,m,!1)}function N4(n,c,m,b,w){var D=b;if((c&1)===0&&(c&2)===0&&b!==null)e:for(;;){if(b===null)return;var I=b.tag;if(I===3||I===4){var G=b.stateNode.containerInfo;if(G===w)break;if(I===4)for(I=b.return;I!==null;){var ie=I.tag;if((ie===3||ie===4)&&I.stateNode.containerInfo===w)return;I=I.return}for(;G!==null;){if(I=h1(G),I===null)return;if(ie=I.tag,ie===5||ie===6||ie===26||ie===27){b=D=I;continue e}G=G.parentNode}}b=b.return}to(function(){var le=D,we=U6(m),Ne=[];e:{var Oe=TB.get(n);if(Oe!==void 0){var Be=x1,Qt=n;switch(n){case"keypress":if(Fi(m)===0)break e;case"keydown":case"keyup":Be=oie;break;case"focusin":Qt="focus",Be=Zn;break;case"focusout":Qt="blur",Be=Zn;break;case"beforeblur":case"afterblur":Be=Zn;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Be=yt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Be=t3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Be=uie;break;case lB:case sB:case uB:Be=Y0e;break;case cB:Be=Tie;break;case"scroll":case"scrollend":Be=ve;break;case"wheel":Be=fie;break;case"copy":case"cut":case"paste":Be=J0e;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Be=JN;break;case"toggle":case"beforetoggle":Be=hie}var Ot=(c&4)!==0,r2=!Ot&&(n==="scroll"||n==="scrollend"),l1=Ot?Oe!==null?Oe+"Capture":null:Oe;Ot=[];for(var Te=le,Qe;Te!==null;){var me=Te;if(Qe=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||Qe===null||l1===null||(me=J4(Te,l1),me!=null&&Ot.push(Bo(Te,me,Qe))),r2)break;Te=Te.return}0<Ot.length&&(Oe=new Be(Oe,Qt,null,m,we),Ne.push({event:Oe,listeners:Ot}))}}if((c&7)===0){e:{if(Oe=n==="mouseover"||n==="pointerover",Be=n==="mouseout"||n==="pointerout",Oe&&m!==P&&(Qt=m.relatedTarget||m.fromElement)&&(h1(Qt)||Qt[v0]))break e;if((Be||Oe)&&(Oe=we.window===we?we:(Oe=we.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Be?(Qt=m.relatedTarget||m.toElement,Be=le,Qt=Qt?h1(Qt):null,Qt!==null&&(r2=M(Qt),Ot=Qt.tag,Qt!==r2||Ot!==5&&Ot!==27&&Ot!==6)&&(Qt=null)):(Be=null,Qt=le),Be!==Qt)){if(Ot=yt,me="onMouseLeave",l1="onMouseEnter",Te="mouse",(n==="pointerout"||n==="pointerover")&&(Ot=JN,me="onPointerLeave",l1="onPointerEnter",Te="pointer"),r2=Be==null?Oe:xt(Be),Qe=Qt==null?Oe:xt(Qt),Oe=new Ot(me,Te+"leave",Be,m,we),Oe.target=r2,Oe.relatedTarget=Qe,me=null,h1(we)===le&&(Ot=new Ot(l1,Te+"enter",Qt,m,we),Ot.target=Qe,Ot.relatedTarget=r2,me=Ot),r2=me,Be&&Qt)t:{for(Ot=Be,l1=Qt,Te=0,Qe=Ot;Qe;Qe=fa(Qe))Te++;for(Qe=0,me=l1;me;me=fa(me))Qe++;for(;0<Te-Qe;)Ot=fa(Ot),Te--;for(;0<Qe-Te;)l1=fa(l1),Qe--;for(;Te--;){if(Ot===l1||l1!==null&&Ot===l1.alternate)break t;Ot=fa(Ot),l1=fa(l1)}Ot=null}else Ot=null;Be!==null&&ir(Ne,Oe,Be,Ot,!1),Qt!==null&&r2!==null&&ir(Ne,r2,Qt,Ot,!0)}}e:{if(Oe=le?xt(le):window,Be=Oe.nodeName&&Oe.nodeName.toLowerCase(),Be==="select"||Be==="input"&&Oe.type==="file")var je=xy;else if(cs(Oe))if(aB)je=Lb;else{je=vb;var it=Rf}else Be=Oe.nodeName,!Be||Be.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?le&&ji(le.elementType)&&(je=xy):je=gb;if(je&&(je=je(n,le))){no(Ne,je,m,we);break e}it&&it(n,Oe,le),n==="focusout"&&le&&Oe.type==="number"&&le.memoizedProps.value!=null&&ns(Oe,"number",Oe.value)}switch(it=le?xt(le):window,n){case"focusin":(cs(it)||it.contentEditable==="true")&&(zu=it,Pb=le,Nh=null);break;case"focusout":Nh=Pb=zu=null;break;case"mousedown":jb=!0;break;case"contextmenu":case"mouseup":case"dragend":jb=!1,Qs(Ne,m,we);break;case"selectionchange":if(vie)break;case"keydown":case"keyup":Qs(Ne,m,we)}var Bt;if(Bb)e:{switch(n){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Fu?Fr(n,m)&&(ft="onCompositionEnd"):n==="keydown"&&m.keyCode===eB&&(ft="onCompositionStart");ft&&(tB&&m.locale!=="ko"&&(Fu||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Fu&&(Bt=us()):(Ae=we,Re="value"in Ae?Ae.value:Ae.textContent,Fu=!0)),it=x3(le,ft),0<it.length&&(ft=new KN(ft,n,null,m,we),Ne.push({event:ft,listeners:it}),Bt?ft.data=Bt:(Bt=B8(m),Bt!==null&&(ft.data=Bt)))),(Bt=mie?P8(n,m):yb(n,m))&&(ft=x3(le,"onBeforeInput"),0<ft.length&&(it=new tie("onBeforeInput","beforeinput",null,m,we),Ne.push({event:it,listeners:ft}),it.data=Bt)),Q4(Ne,n,le,m,we)}Wd(Ne,c)})}function Bo(n,c,m){return{instance:n,listener:c,currentTarget:m}}function x3(n,c){for(var m=c+"Capture",b=[];n!==null;){var w=n,D=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||D===null||(w=J4(n,m),w!=null&&b.unshift(Bo(n,w,D)),w=J4(n,c),w!=null&&b.push(Bo(n,w,D))),n.tag===3)return b;n=n.return}return[]}function fa(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ir(n,c,m,b,w){for(var D=c._reactName,I=[];m!==null&&m!==b;){var G=m,ie=G.alternate,le=G.stateNode;if(G=G.tag,ie!==null&&ie===b)break;G!==5&&G!==26&&G!==27||le===null||(ie=le,w?(le=J4(m,D),le!=null&&I.unshift(Bo(m,le,ie))):w||(le=J4(m,D),le!=null&&I.push(Bo(m,le,ie)))),m=m.return}I.length!==0&&n.push({event:c,listeners:I})}function ar(n,c){vy(n,c),n!=="input"&&n!=="textarea"&&n!=="select"||c==null||c.value!==null||bv||(bv=!0,n==="select"&&c.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n));var m={registrationNameDependencies:pn,possibleRegistrationNames:Vu};ji(n)||typeof c.is=="string"||gy(n,c,m),c.contentEditable&&!c.suppressContentEditableWarning&&c.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function t2(n,c,m,b){c!==m&&(m=or(m),or(c)!==m&&(b[n]=c))}function Kd(n,c,m){c.forEach(function(b){m[Po(b)]=b==="style"?su(n):n.getAttribute(b)})}function u6(n,c){c===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof c)}function Qn(n,c){return n=n.namespaceURI===Pu||n.namespaceURI===mr?n.ownerDocument.createElementNS(n.namespaceURI,n.tagName):n.ownerDocument.createElement(n.tagName),n.innerHTML=c,n.innerHTML}function or(n){return z(n)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",j(n)),te(n)),(typeof n=="string"?n:""+n).replace(qie,`
|
|
596
|
+
`).replace($ie,"")}function da(n,c){return c=or(c),or(n)===c}function o0(){}function p1(n,c,m,b,w,D){switch(m){case"children":typeof b=="string"?(Ja(b,c,!1),c==="body"||c==="textarea"&&b===""||D8(n,b)):(typeof b=="number"||typeof b=="bigint")&&(Ja(""+b,c,!1),c!=="body"&&D8(n,""+b));break;case"className":Ht(n,"class",b);break;case"tabIndex":Ht(n,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Ht(n,m,b);break;case"style":ls(n,b,D);break;case"data":if(c!=="object"){Ht(n,"data",b);break}case"src":case"href":if(b===""&&(c!=="a"||m!=="href")){console.error(m==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',m,m),n.removeAttribute(m);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){n.removeAttribute(m);break}U(b,m),b=F5(""+b),n.setAttribute(m,b);break;case"action":case"formAction":if(b!=null&&(c==="form"?m==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof b=="function"&&(w.encType==null&&w.method==null||Zv||(Zv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),w.target==null||Gv||(Gv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):c==="input"||c==="button"?m==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):c!=="input"||w.type==="submit"||w.type==="image"||Uv?c!=="button"||w.type==null||w.type==="submit"||Uv?typeof b=="function"&&(w.name==null||MP||(MP=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),w.formEncType==null&&w.formMethod==null||Zv||(Zv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),w.formTarget==null||Gv||(Gv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Uv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Uv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(m==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof b=="function"){n.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(m==="formAction"?(c!=="input"&&p1(n,c,"name",w.name,w,null),p1(n,c,"formEncType",w.formEncType,w,null),p1(n,c,"formMethod",w.formMethod,w,null),p1(n,c,"formTarget",w.formTarget,w,null)):(p1(n,c,"encType",w.encType,w,null),p1(n,c,"method",w.method,w,null),p1(n,c,"target",w.target,w,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){n.removeAttribute(m);break}U(b,m),b=F5(""+b),n.setAttribute(m,b);break;case"onClick":b!=null&&(typeof b!="function"&&u6(m,b),n.onclick=o0);break;case"onScroll":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scroll",n));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scrollend",n));break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=b.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=m}}break;case"multiple":n.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":n.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){n.removeAttribute("xlink:href");break}U(b,m),m=F5(""+b),n.setAttributeNS(s9,"xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?(U(b,m),n.setAttribute(m,""+b)):n.removeAttribute(m);break;case"inert":b!==""||Xv[m]||(Xv[m]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",m));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":b&&typeof b!="function"&&typeof b!="symbol"?n.setAttribute(m,""):n.removeAttribute(m);break;case"capture":case"download":b===!0?n.setAttribute(m,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?(U(b,m),n.setAttribute(m,b)):n.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?(U(b,m),n.setAttribute(m,b)):n.removeAttribute(m);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?n.removeAttribute(m):(U(b,m),n.setAttribute(m,b));break;case"popover":Jt("beforetoggle",n),Jt("toggle",n),Ut(n,"popover",b);break;case"xlinkActuate":_2(n,s9,"xlink:actuate",b);break;case"xlinkArcrole":_2(n,s9,"xlink:arcrole",b);break;case"xlinkRole":_2(n,s9,"xlink:role",b);break;case"xlinkShow":_2(n,s9,"xlink:show",b);break;case"xlinkTitle":_2(n,s9,"xlink:title",b);break;case"xlinkType":_2(n,s9,"xlink:type",b);break;case"xmlBase":_2(n,_H,"xml:base",b);break;case"xmlLang":_2(n,_H,"xml:lang",b);break;case"xmlSpace":_2(n,_H,"xml:space",b);break;case"is":D!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ut(n,"is",b);break;case"innerText":case"textContent":break;case"popoverTarget":SP||b==null||typeof b!="object"||(SP=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",b));default:!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N"?(m=Ii(m),Ut(n,m,b)):pn.hasOwnProperty(m)&&b!=null&&typeof b!="function"&&u6(m,b)}}function l0(n,c,m,b,w,D){switch(m){case"style":ls(n,b,D);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(m=b.__html,m!=null){if(w.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=m}}break;case"children":typeof b=="string"?D8(n,b):(typeof b=="number"||typeof b=="bigint")&&D8(n,""+b);break;case"onScroll":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scroll",n));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&u6(m,b),Jt("scrollend",n));break;case"onClick":b!=null&&(typeof b!="function"&&u6(m,b),n.onclick=o0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(pn.hasOwnProperty(m))b!=null&&typeof b!="function"&&u6(m,b);else e:{if(m[0]==="o"&&m[1]==="n"&&(w=m.endsWith("Capture"),c=m.slice(2,w?m.length-7:void 0),D=n[y4]||null,D=D!=null?D[m]:null,typeof D=="function"&&n.removeEventListener(c,D,w),typeof b=="function")){typeof D!="function"&&D!==null&&(m in n?n[m]=null:n.hasAttribute(m)&&n.removeAttribute(m)),n.addEventListener(c,b,w);break e}m in n?n[m]=b:b===!0?n.setAttribute(m,""):Ut(n,m,b)}}}function K2(n,c,m){switch(ar(c,m),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Jt("error",n),Jt("load",n);var b=!1,w=!1,D;for(D in m)if(m.hasOwnProperty(D)){var I=m[D];if(I!=null)switch(D){case"src":b=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:p1(n,c,D,I,m,null)}}w&&p1(n,c,"srcSet",m.srcSet,m,null),b&&p1(n,c,"src",m.src,m,null);return;case"input":et("input",m),Jt("invalid",n);var G=D=I=w=null,ie=null,le=null;for(b in m)if(m.hasOwnProperty(b)){var we=m[b];if(we!=null)switch(b){case"name":w=we;break;case"type":I=we;break;case"checked":ie=we;break;case"defaultChecked":le=we;break;case"value":D=we;break;case"defaultValue":G=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p1(n,c,b,we,m,null)}}Ni(n,m),Ef(n,D,G,ie,le,I,w,!1),x2(n);return;case"select":et("select",m),Jt("invalid",n),b=I=D=null;for(w in m)if(m.hasOwnProperty(w)&&(G=m[w],G!=null))switch(w){case"value":D=G;break;case"defaultValue":I=G;break;case"multiple":b=G;default:p1(n,c,w,G,m,null)}Vn(n,m),c=D,m=I,n.multiple=!!b,c!=null?j5(n,!!b,c,!1):m!=null&&j5(n,!!b,m,!0);return;case"textarea":et("textarea",m),Jt("invalid",n),D=w=b=null;for(I in m)if(m.hasOwnProperty(I)&&(G=m[I],G!=null))switch(I){case"value":b=G;break;case"defaultValue":w=G;break;case"children":D=G;break;case"dangerouslySetInnerHTML":if(G!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p1(n,c,I,G,m,null)}rs(n,m),Bi(n,b,w,D),x2(n);return;case"option":yy(n,m);for(ie in m)if(m.hasOwnProperty(ie)&&(b=m[ie],b!=null))switch(ie){case"selected":n.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:p1(n,c,ie,b,m,null)}return;case"dialog":Jt("beforetoggle",n),Jt("toggle",n),Jt("cancel",n),Jt("close",n);break;case"iframe":case"object":Jt("load",n);break;case"video":case"audio":for(b=0;b<lp.length;b++)Jt(lp[b],n);break;case"image":Jt("error",n),Jt("load",n);break;case"details":Jt("toggle",n);break;case"embed":case"source":case"link":Jt("error",n),Jt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in m)if(m.hasOwnProperty(le)&&(b=m[le],b!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:p1(n,c,le,b,m,null)}return;default:if(ji(c)){for(we in m)m.hasOwnProperty(we)&&(b=m[we],b!==void 0&&l0(n,c,we,b,m,void 0));return}}for(G in m)m.hasOwnProperty(G)&&(b=m[G],b!=null&&p1(n,c,G,b,m,null))}function Yy(n,c,m,b){switch(ar(c,b),c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,D=null,I=null,G=null,ie=null,le=null,we=null;for(Be in m){var Ne=m[Be];if(m.hasOwnProperty(Be)&&Ne!=null)switch(Be){case"checked":break;case"value":break;case"defaultValue":ie=Ne;default:b.hasOwnProperty(Be)||p1(n,c,Be,null,b,Ne)}}for(var Oe in b){var Be=b[Oe];if(Ne=m[Oe],b.hasOwnProperty(Oe)&&(Be!=null||Ne!=null))switch(Oe){case"type":D=Be;break;case"name":w=Be;break;case"checked":le=Be;break;case"defaultChecked":we=Be;break;case"value":I=Be;break;case"defaultValue":G=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Be!==Ne&&p1(n,c,Oe,Be,b,Ne)}}c=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,b=b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null,c||!b||EP||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),EP=!0),!c||b||HP||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),HP=!0),Hf(n,I,G,ie,le,we,D,w);return;case"select":Be=I=G=Oe=null;for(D in m)if(ie=m[D],m.hasOwnProperty(D)&&ie!=null)switch(D){case"value":break;case"multiple":Be=ie;default:b.hasOwnProperty(D)||p1(n,c,D,null,b,ie)}for(w in b)if(D=b[w],ie=m[w],b.hasOwnProperty(w)&&(D!=null||ie!=null))switch(w){case"value":Oe=D;break;case"defaultValue":G=D;break;case"multiple":I=D;default:D!==ie&&p1(n,c,w,D,b,ie)}b=G,c=I,m=Be,Oe!=null?j5(n,!!c,Oe,!1):!!m!=!!c&&(b!=null?j5(n,!!c,b,!0):j5(n,!!c,c?[]:"",!1));return;case"textarea":Be=Oe=null;for(G in m)if(w=m[G],m.hasOwnProperty(G)&&w!=null&&!b.hasOwnProperty(G))switch(G){case"value":break;case"children":break;default:p1(n,c,G,null,b,w)}for(I in b)if(w=b[I],D=m[I],b.hasOwnProperty(I)&&(w!=null||D!=null))switch(I){case"value":Oe=w;break;case"defaultValue":Be=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w!==D&&p1(n,c,I,w,b,D)}Mf(n,Oe,Be);return;case"option":for(var Qt in m)if(Oe=m[Qt],m.hasOwnProperty(Qt)&&Oe!=null&&!b.hasOwnProperty(Qt))switch(Qt){case"selected":n.selected=!1;break;default:p1(n,c,Qt,null,b,Oe)}for(ie in b)if(Oe=b[ie],Be=m[ie],b.hasOwnProperty(ie)&&Oe!==Be&&(Oe!=null||Be!=null))switch(ie){case"selected":n.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:p1(n,c,ie,Oe,b,Be)}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 Ot in m)Oe=m[Ot],m.hasOwnProperty(Ot)&&Oe!=null&&!b.hasOwnProperty(Ot)&&p1(n,c,Ot,null,b,Oe);for(le in b)if(Oe=b[le],Be=m[le],b.hasOwnProperty(le)&&Oe!==Be&&(Oe!=null||Be!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(c+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p1(n,c,le,Oe,b,Be)}return;default:if(ji(c)){for(var r2 in m)Oe=m[r2],m.hasOwnProperty(r2)&&Oe!==void 0&&!b.hasOwnProperty(r2)&&l0(n,c,r2,void 0,b,Oe);for(we in b)Oe=b[we],Be=m[we],!b.hasOwnProperty(we)||Oe===Be||Oe===void 0&&Be===void 0||l0(n,c,we,Oe,b,Be);return}}for(var l1 in m)Oe=m[l1],m.hasOwnProperty(l1)&&Oe!=null&&!b.hasOwnProperty(l1)&&p1(n,c,l1,null,b,Oe);for(Ne in b)Oe=b[Ne],Be=m[Ne],!b.hasOwnProperty(Ne)||Oe===Be||Oe==null&&Be==null||p1(n,c,Ne,Oe,b,Be)}function Po(n){switch(n){case"class":return"className";case"for":return"htmlFor";default:return n}}function su(n){var c={};n=n.style;for(var m=0;m<n.length;m++){var b=n[m];c[b]=n.getPropertyValue(b)}return c}function Hl(n,c,m){if(c!=null&&typeof c!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var b,w=b="",D;for(D in c)if(c.hasOwnProperty(D)){var I=c[D];I!=null&&typeof I!="boolean"&&I!==""&&(D.indexOf("--")===0?(fe(I,D),b+=w+D+":"+(""+I).trim()):typeof I!="number"||I===0||Vh.has(D)?(fe(I,D),b+=w+D.replace(pr,"-$1").toLowerCase().replace(t7,"-ms-")+":"+(""+I).trim()):b+=w+D.replace(pr,"-$1").toLowerCase().replace(t7,"-ms-")+":"+I+"px",w=";")}b=b||null,c=n.getAttribute("style"),c!==b&&(b=or(b),or(c)!==b&&(m.style=su(n)))}}function B4(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(U(b,c),n===""+b)return}t2(c,n,b,D)}function Ky(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null){switch(typeof b){case"function":case"symbol":return}if(!b)return}else switch(typeof b){case"function":case"symbol":break;default:if(b)return}t2(c,n,b,D)}function Jd(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":return}else if(b!=null)switch(typeof b){case"function":case"symbol":break;default:if(U(b,m),n===""+b)return}t2(c,n,b,D)}function E1(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(b))return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!isNaN(b)&&(U(b,c),n===""+b))return}t2(c,n,b,D)}function N1(n,c,m,b,w,D){if(w.delete(m),n=n.getAttribute(m),n===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(U(b,c),m=F5(""+b),n===m)return}t2(c,n,b,D)}function e1(n,c,m,b){for(var w={},D=new Set,I=n.attributes,G=0;G<I.length;G++)switch(I[G].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:D.add(I[G].name)}if(ji(c)){for(var ie in m)if(m.hasOwnProperty(ie)){var le=m[ie];if(le!=null){if(pn.hasOwnProperty(ie))typeof le!="function"&&u6(ie,le);else if(m.suppressHydrationWarning!==!0)switch(ie){case"children":typeof le!="string"&&typeof le!="number"||t2("children",n.textContent,le,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=n.innerHTML,le=le?le.__html:void 0,le!=null&&(le=Qn(n,le),t2(ie,I,le,w));continue;case"style":D.delete(ie),Hl(n,le,w);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":D.delete(ie.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",ie);continue;case"className":D.delete("class"),I=At(n,"class",le),t2("className",I,le,w);continue;default:b.context===Aa&&c!=="svg"&&c!=="math"?D.delete(ie.toLowerCase()):D.delete(ie),I=At(n,ie,le),t2(ie,I,le,w)}}}}else for(le in m)if(m.hasOwnProperty(le)&&(ie=m[le],ie!=null)){if(pn.hasOwnProperty(le))typeof ie!="function"&&u6(le,ie);else if(m.suppressHydrationWarning!==!0)switch(le){case"children":typeof ie!="string"&&typeof ie!="number"||t2("children",n.textContent,ie,w);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":I=n.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=Qn(n,ie),I!==ie&&(w[le]={__html:I}));continue;case"className":B4(n,le,"class",ie,D,w);continue;case"tabIndex":B4(n,le,"tabindex",ie,D,w);continue;case"style":D.delete(le),Hl(n,ie,w);continue;case"multiple":D.delete(le),t2(le,n.multiple,ie,w);continue;case"muted":D.delete(le),t2(le,n.muted,ie,w);continue;case"autoFocus":D.delete("autofocus"),t2(le,n.autofocus,ie,w);continue;case"data":if(c!=="object"){D.delete(le),I=n.getAttribute("data"),t2(le,I,ie,w);continue}case"src":case"href":if(!(ie!==""||c==="a"&&le==="href"||c==="object"&&le==="data")){console.error(le==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',le,le);continue}N1(n,le,le,ie,D,w);continue;case"action":case"formAction":if(I=n.getAttribute(le),typeof ie=="function"){D.delete(le.toLowerCase()),le==="formAction"?(D.delete("name"),D.delete("formenctype"),D.delete("formmethod"),D.delete("formtarget")):(D.delete("enctype"),D.delete("method"),D.delete("target"));continue}else if(I===Uie){D.delete(le.toLowerCase()),t2(le,"function",ie,w);continue}N1(n,le,le.toLowerCase(),ie,D,w);continue;case"xlinkHref":N1(n,le,"xlink:href",ie,D,w);continue;case"contentEditable":Jd(n,le,"contenteditable",ie,D,w);continue;case"spellCheck":Jd(n,le,"spellcheck",ie,D,w);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Jd(n,le,le,ie,D,w);continue;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":Ky(n,le,le.toLowerCase(),ie,D,w);continue;case"capture":case"download":e:{G=n;var we=I=le,Ne=w;if(D.delete(we),G=G.getAttribute(we),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":break e;default:if(ie===!1)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":break;case"boolean":if(ie===!0&&G==="")break e;break;default:if(U(ie,I),G===""+ie)break e}t2(I,G,ie,Ne)}continue;case"cols":case"rows":case"size":case"span":e:{if(G=n,we=I=le,Ne=w,D.delete(we),G=G.getAttribute(we),G===null)switch(typeof ie){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(ie)||1>ie)break e}else if(ie!=null)switch(typeof ie){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(ie)||1>ie)&&(U(ie,I),G===""+ie))break e}t2(I,G,ie,Ne)}continue;case"rowSpan":E1(n,le,"rowspan",ie,D,w);continue;case"start":E1(n,le,le,ie,D,w);continue;case"xHeight":B4(n,le,"x-height",ie,D,w);continue;case"xlinkActuate":B4(n,le,"xlink:actuate",ie,D,w);continue;case"xlinkArcrole":B4(n,le,"xlink:arcrole",ie,D,w);continue;case"xlinkRole":B4(n,le,"xlink:role",ie,D,w);continue;case"xlinkShow":B4(n,le,"xlink:show",ie,D,w);continue;case"xlinkTitle":B4(n,le,"xlink:title",ie,D,w);continue;case"xlinkType":B4(n,le,"xlink:type",ie,D,w);continue;case"xmlBase":B4(n,le,"xml:base",ie,D,w);continue;case"xmlLang":B4(n,le,"xml:lang",ie,D,w);continue;case"xmlSpace":B4(n,le,"xml:space",ie,D,w);continue;case"inert":ie!==""||Xv[le]||(Xv[le]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",le)),Ky(n,le,le,ie,D,w);continue;default:if(!(2<le.length)||le[0]!=="o"&&le[0]!=="O"||le[1]!=="n"&&le[1]!=="N"){G=Ii(le),I=!1,b.context===Aa&&c!=="svg"&&c!=="math"?D.delete(G.toLowerCase()):(we=le.toLowerCase(),we=Ul.hasOwnProperty(we)&&Ul[we]||null,we!==null&&we!==le&&(I=!0,D.delete(we)),D.delete(G));e:if(we=n,Ne=G,G=ie,mt(Ne))if(we.hasAttribute(Ne))we=we.getAttribute(Ne),U(G,Ne),G=we===""+G?G:we;else{switch(typeof G){case"function":case"symbol":break e;case"boolean":if(we=Ne.toLowerCase().slice(0,5),we!=="data-"&&we!=="aria-")break e}G=G===void 0?void 0:null}else G=void 0;I||t2(le,G,ie,w)}}}return 0<D.size&&m.suppressHydrationWarning!==!0&&Kd(n,D,w),Object.keys(w).length===0?null:w}function u1(n,c){switch(n.length){case 0:return"";case 1:return n[0];case 2:return n[0]+" "+c+" "+n[1];default:return n.slice(0,-1).join(", ")+", "+c+" "+n[n.length-1]}}function m1(n){return n.nodeType===9?n:n.ownerDocument}function d4(n){switch(n){case mr:return hc;case Pu:return Kv;default:return Aa}}function lr(n,c){if(n===Aa)switch(c){case"svg":return hc;case"math":return Kv;default:return Aa}return n===hc&&c==="foreignObject"?Aa:n}function s0(n,c){return n==="textarea"||n==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}function eh(){var n=window.event;return n&&n.type==="popstate"?n===wH?!1:(wH=n,!0):(wH=null,!1)}function sr(n){setTimeout(function(){throw n})}function v2(n,c,m){switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src?n.src=m.src:m.srcSet&&(n.srcset=m.srcSet)}}function u0(n,c,m,b){Yy(n,c,m,b),n[y4]=b}function c0(n){D8(n,"")}function th(n,c,m){n.nodeValue=m}function F2(n){return n==="head"}function jo(n,c){n.removeChild(c)}function El(n,c){(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).removeChild(c)}function B3(n,c){var m=c,b=0,w=0;do{var D=m.nextSibling;if(n.removeChild(m),D&&D.nodeType===8)if(m=D.data,m===Yv){if(0<b&&8>b){m=b;var I=n.ownerDocument;if(m&Zie&&zo(I.documentElement),m&Xie&&zo(I.body),m&Wie)for(m=I.head,zo(m),I=m.firstChild;I;){var G=I.nextSibling,ie=I.nodeName;I[Bl]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&I.rel.toLowerCase()==="stylesheet"||m.removeChild(I),I=G}}if(w===0){n.removeChild(D),Zo(c);return}w--}else m===Wv||m===_a||m===sp?w++:b=m.charCodeAt(0)-48;else b=0;m=D}while(m);Zo(c)}function nh(n){n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function rh(n){n.nodeValue=""}function uu(n,c){c=c[Yie],c=c!=null&&c.hasOwnProperty("display")?c.display:null,n.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}function cu(n,c){n.nodeValue=c}function jn(n){var c=n.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":jn(m),Q1(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}n.removeChild(m)}}function T3(n,c,m,b){for(;n.nodeType===1;){var w=m;if(n.nodeName.toLowerCase()!==c.toLowerCase()){if(!b&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(b){if(!n[Bl])switch(c){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(D=n.getAttribute("rel"),D==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(D!==w.rel||n.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||n.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||n.getAttribute("title")!==(w.title==null?null:w.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(D=n.getAttribute("src"),(D!==(w.src==null?null:w.src)||n.getAttribute("type")!==(w.type==null?null:w.type)||n.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&D&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(c==="input"&&n.type==="hidden"){U(w.name,"name");var D=w.name==null?null:""+w.name;if(w.type==="hidden"&&n.getAttribute("name")===D)return n}else return n;if(n=h4(n.nextSibling),n===null)break}return null}function T0(n,c,m){if(c==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!m||(n=h4(n.nextSibling),n===null))return null;return n}function Q0(n){return n.data===sp||n.data===_a&&n.ownerDocument.readyState===AP}function Io(n,c){var m=n.ownerDocument;if(n.data!==_a||m.readyState===AP)c();else{var b=function(){c(),m.removeEventListener("DOMContentLoaded",b)};m.addEventListener("DOMContentLoaded",b),n._reactRetry=b}}function h4(n){for(;n!=null;n=n.nextSibling){var c=n.nodeType;if(c===1||c===3)break;if(c===8){if(c=n.data,c===Wv||c===sp||c===_a||c===AH||c===_P)break;if(c===Yv)return null}}return n}function Tu(n){if(n.nodeType===1){for(var c=n.nodeName.toLowerCase(),m={},b=n.attributes,w=0;w<b.length;w++){var D=b[w];m[Po(D.name)]=D.name.toLowerCase()==="style"?su(n):D.value}return{type:c,props:m}}return n.nodeType===8?{type:"Suspense",props:{}}:n.nodeValue}function ih(n,c,m){return m===null||m[Gie]!==!0?(n.nodeValue===c?n=null:(c=or(c),n=or(n.nodeValue)===c?null:n.nodeValue),n):null}function Fo(n){n=n.nextSibling;for(var c=0;n;){if(n.nodeType===8){var m=n.data;if(m===Yv){if(c===0)return h4(n.nextSibling);c--}else m!==Wv&&m!==sp&&m!==_a||c++}n=n.nextSibling}return null}function Qu(n){n=n.previousSibling;for(var c=0;n;){if(n.nodeType===8){var m=n.data;if(m===Wv||m===sp||m===_a){if(c===0)return n;c--}else m===Yv&&c++}n=n.previousSibling}return null}function P4(n){Zo(n)}function Jy(n){Zo(n)}function p4(n,c,m,b,w){switch(w&&os(n,b.ancestorInfo),c=m1(m),n){case"html":if(n=c.documentElement,!n)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"head":if(n=c.head,!n)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"body":if(n=c.body,!n)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return n;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function ev(n,c,m,b){if(!m[v0]&&rt(m)){var w=m.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",w,w,w)}switch(n){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(w=m.attributes;w.length;)m.removeAttributeNode(w[0]);K2(m,n,c),m[b3]=b,m[y4]=c}function zo(n){for(var c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Q1(n)}function fu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}function ur(n,c,m){var b=pc;if(b&&typeof c=="string"&&c){var w=X2(c);w='link[rel="'+n+'"][href="'+w+'"]',typeof m=="string"&&(w+='[crossorigin="'+m+'"]'),RP.has(w)||(RP.add(w),n={rel:n,crossOrigin:m,href:c},b.querySelector(w)===null&&(c=b.createElement("link"),K2(c,"link",n),ge(c),b.head.appendChild(c)))}}function Ml(n,c,m,b){var w=(w=Fn.current)?fu(w):null;if(!w)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(n){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(m=fn(m.href),c=ee(w).hoistableStyles,b=c.get(m),b||(b={type:"style",instance:null,count:0,state:null},c.set(m,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){n=fn(m.href);var D=ee(w).hoistableStyles,I=D.get(n);if(!I&&(w=w.ownerDocument||w,I={type:"stylesheet",instance:null,count:0,state:{loading:c9,preload:null}},D.set(n,I),(D=w.querySelector($o(n)))&&!D._p&&(I.instance=D,I.state.loading=up|i5),!a5.has(n))){var G={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy};a5.set(n,G),D||tv(w,n,G,I.state)}if(c&&b===null)throw m=`
|
|
597
597
|
|
|
598
598
|
- `+qo(c)+`
|
|
599
599
|
+ `+qo(m),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return I}if(c&&b!==null)throw m=`
|
|
600
600
|
|
|
601
601
|
- `+qo(c)+`
|
|
602
|
-
+ `+qo(m),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(m=f0(m),c=ee(w).hoistableScripts,b=c.get(m),b||(b={type:"script",instance:null,count:0,state:null},c.set(m,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+n+'". this is a bug in React.')}}function qo(n){var c=0,m="<link";return typeof n.rel=="string"?(c++,m+=' rel="'+n.rel+'"'):zn.call(n,"rel")&&(c++,m+=' rel="'+(n.rel===null?"null":"invalid type "+typeof n.rel)+'"'),typeof n.href=="string"?(c++,m+=' href="'+n.href+'"'):zn.call(n,"href")&&(c++,m+=' href="'+(n.href===null?"null":"invalid type "+typeof n.href)+'"'),typeof n.precedence=="string"?(c++,m+=' precedence="'+n.precedence+'"'):zn.call(n,"precedence")&&(c++,m+=" precedence={"+(n.precedence===null?"null":"invalid type "+typeof n.precedence)+"}"),Object.getOwnPropertyNames(n).length>c&&(m+=" ..."),m+" />"}function fn(n){return'href="'+X2(n)+'"'}function $o(n){return'link[rel="stylesheet"]['+n+"]"}function ah(n){return Vt({},n,{"data-precedence":n.precedence,precedence:null})}function tv(n,c,m,b){n.querySelector('link[rel="preload"][as="style"]['+c+"]")?b.loading=up:(c=n.createElement("link"),b.preload=c,c.addEventListener("load",function(){return b.loading|=up}),c.addEventListener("error",function(){return b.loading|=VP}),K2(c,"link",m),ge(c),n.head.appendChild(c))}function f0(n){return'[src="'+X2(n)+'"]'}function ha(n){return"script[async]"+n}function nv(n,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var b=n.querySelector('style[data-href~="'+X2(m.href)+'"]');if(b)return c.instance=b,ge(b),b;var w=Vt({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(n.ownerDocument||n).createElement("style"),ge(b),K2(b,"style",w),du(b,m.precedence,n),c.instance=b;case"stylesheet":w=fn(m.href);var D=n.querySelector($o(w));if(D)return c.state.loading|=i5,c.instance=D,ge(D),D;b=ah(m),(w=a5.get(w))&&oh(b,w),D=(n.ownerDocument||n).createElement("link"),ge(D);var I=D;return I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),K2(D,"link",b),c.state.loading|=i5,du(D,m.precedence,n),c.instance=D;case"script":return D=f0(m.src),(w=n.querySelector(ha(D)))?(c.instance=w,ge(w),w):(b=m,(w=a5.get(D))&&(b=Vt({},m),hu(b,w)),n=n.ownerDocument||n,w=n.createElement("script"),ge(w),K2(w,"link",b),n.head.appendChild(w),c.instance=w);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+c.type+'". this is a bug in React.')}else c.type==="stylesheet"&&(c.state.loading&i5)===c9&&(b=c.instance,c.state.loading|=i5,du(b,m.precedence,n));return c.instance}function du(n,c,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=b.length?b[b.length-1]:null,D=w,I=0;I<b.length;I++){var G=b[I];if(G.dataset.precedence===c)D=G;else if(D!==w)break}D?D.parentNode.insertBefore(n,D.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(n,c.firstChild))}function oh(n,c){n.crossOrigin==null&&(n.crossOrigin=c.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=c.referrerPolicy),n.title==null&&(n.title=c.title)}function hu(n,c){n.crossOrigin==null&&(n.crossOrigin=c.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=c.referrerPolicy),n.integrity==null&&(n.integrity=c.integrity)}function lh(n,c,m){if(Jv===null){var b=new Map,w=Jv=new Map;w.set(m,b)}else w=Jv,b=w.get(m),b||(b=new Map,w.set(m,b));if(b.has(n))return b;for(b.set(n,null),m=m.getElementsByTagName(n),w=0;w<m.length;w++){var D=m[w];if(!(D[Bl]||D[b3]||n==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!==mr){var I=D.getAttribute(c)||"";I=n+I;var G=b.get(I);G?G.push(D):b.set(I,[D])}}return b}function pa(n,c,m){n=n.ownerDocument||n,n.head.insertBefore(m,c==="title"?n.querySelector("head > title"):null)}function pu(n,c,m){var b=!m.ancestorInfo.containerTagInScope;if(m.context===hc||c.itemProp!=null)return!b||c.itemProp==null||n!=="meta"&&n!=="title"&&n!=="style"&&n!=="link"&&n!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",n,n),!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href===""){b&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError){if(c.rel==="stylesheet"&&typeof c.precedence=="string"){n=c.href;var w=c.onError,D=c.disabled;m=[],c.onLoad&&m.push("`onLoad`"),w&&m.push("`onError`"),D!=null&&m.push("`disabled`"),w=u1(m,"and"),w+=m.length===1?" prop":" props",D=m.length===1?"an "+w:"the "+w,m.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',n,D,w)}b&&(typeof c.rel!="string"||typeof c.href!="string"||c.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(c.onError||c.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(c.rel){case"stylesheet":return n=c.precedence,c=c.disabled,typeof n!="string"&&b&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof n=="string"&&c==null;default:return!0}case"script":if(n=c.async&&typeof c.async!="function"&&typeof c.async!="symbol",!n||c.onLoad||c.onError||!c.src||typeof c.src!="string"){b&&(n?c.onLoad||c.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":b&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",n)}return!1}function sh(n){return!(n.type==="stylesheet"&&(n.state.loading&DP)===c9)}function rv(){}function iv(n,c,m){if(cp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var b=cp;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&i5)===c9){if(c.instance===null){var w=fn(m.href),D=n.querySelector($o(w));if(D){n=D._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(b.count++,b=Sl.bind(b),n.then(b,b)),c.state.loading|=i5,c.instance=D,ge(D);return}D=n.ownerDocument||n,m=ah(m),(w=a5.get(w))&&oh(m,w),D=D.createElement("link"),ge(D);var I=D;I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),K2(D,"link",m),c.instance=D}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(c,n),(n=c.state.preload)&&(c.state.loading&DP)===c9&&(b.count++,c=Sl.bind(b),n.addEventListener("load",c),n.addEventListener("error",c))}}function av(){if(cp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var n=cp;return n.stylesheets&&n.count===0&&mu(n,n.stylesheets),0<n.count?function(c){var m=setTimeout(function(){if(n.stylesheets&&mu(n,n.stylesheets),n.unsuspend){var b=n.unsuspend;n.unsuspend=null,b()}},6e4);return n.unsuspend=c,function(){n.unsuspend=null,clearTimeout(m)}}:null}function Sl(){if(this.count--,this.count===0){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}function mu(n,c){n.stylesheets=null,n.unsuspend!==null&&(n.count++,eg=new Map,c.forEach(yu,n),eg=null,Sl.call(n))}function yu(n,c){if(!(c.state.loading&i5)){var m=eg.get(n);if(m)var b=m.get(DH);else{m=new Map,eg.set(n,m);for(var w=n.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<w.length;D++){var I=w[D];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(m.set(I.dataset.precedence,I),b=I)}b&&m.set(DH,b)}w=c.instance,I=w.getAttribute("data-precedence"),D=m.get(I)||b,D===b&&m.set(DH,w),m.set(I,w),this.count++,b=Sl.bind(this),w.addEventListener("load",b),w.addEventListener("error",b),D?D.parentNode.insertBefore(w,D.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(w,n.firstChild)),c.state.loading|=i5}}function ov(n,c,m,b,w,D,I,G){for(this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=u9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Y1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y1(0),this.hiddenUpdates=Y1(null),this.identifierPrefix=b,this.onUncaughtError=w,this.onCaughtError=D,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,n=this.pendingUpdatersLaneMap=[],c=0;31>c;c++)n.push(new Set);this._debugRootType=m?"hydrateRoot()":"createRoot()"}function uh(n,c,m,b,w,D,I,G,ie,oe,we,Ne){return n=new ov(n,c,m,I,G,ie,oe,Ne),c=bie,D===!0&&(c|=v4|yr),c6&&(c|=P3),D=p(3,null,null,c),n.current=D,D.stateNode=n,c=Gf(),t6(c),n.pooledCache=c,t6(c),D.memoizedState={element:b,isDehydrated:m,cache:c},Gr(D),n}function B1(n){return n?(n=r7,n):r7}function _l(n,c,m,b,w,D){if(f3&&typeof f3.onScheduleFiberRoot=="function")try{f3.onScheduleFiberRoot(va,b,m)}catch(I){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",I))}ot!==null&&typeof ot.markRenderScheduled=="function"&&ot.markRenderScheduled(c),w=B1(w),b.context===null?b.context=w:b.pendingContext=w,$n&&d3!==null&&!PP&&(PP=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
602
|
+
+ `+qo(m),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+m);return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(m=f0(m),c=ee(w).hoistableScripts,b=c.get(m),b||(b={type:"script",instance:null,count:0,state:null},c.set(m,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+n+'". this is a bug in React.')}}function qo(n){var c=0,m="<link";return typeof n.rel=="string"?(c++,m+=' rel="'+n.rel+'"'):zn.call(n,"rel")&&(c++,m+=' rel="'+(n.rel===null?"null":"invalid type "+typeof n.rel)+'"'),typeof n.href=="string"?(c++,m+=' href="'+n.href+'"'):zn.call(n,"href")&&(c++,m+=' href="'+(n.href===null?"null":"invalid type "+typeof n.href)+'"'),typeof n.precedence=="string"?(c++,m+=' precedence="'+n.precedence+'"'):zn.call(n,"precedence")&&(c++,m+=" precedence={"+(n.precedence===null?"null":"invalid type "+typeof n.precedence)+"}"),Object.getOwnPropertyNames(n).length>c&&(m+=" ..."),m+" />"}function fn(n){return'href="'+X2(n)+'"'}function $o(n){return'link[rel="stylesheet"]['+n+"]"}function ah(n){return Vt({},n,{"data-precedence":n.precedence,precedence:null})}function tv(n,c,m,b){n.querySelector('link[rel="preload"][as="style"]['+c+"]")?b.loading=up:(c=n.createElement("link"),b.preload=c,c.addEventListener("load",function(){return b.loading|=up}),c.addEventListener("error",function(){return b.loading|=VP}),K2(c,"link",m),ge(c),n.head.appendChild(c))}function f0(n){return'[src="'+X2(n)+'"]'}function ha(n){return"script[async]"+n}function nv(n,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var b=n.querySelector('style[data-href~="'+X2(m.href)+'"]');if(b)return c.instance=b,ge(b),b;var w=Vt({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return b=(n.ownerDocument||n).createElement("style"),ge(b),K2(b,"style",w),du(b,m.precedence,n),c.instance=b;case"stylesheet":w=fn(m.href);var D=n.querySelector($o(w));if(D)return c.state.loading|=i5,c.instance=D,ge(D),D;b=ah(m),(w=a5.get(w))&&oh(b,w),D=(n.ownerDocument||n).createElement("link"),ge(D);var I=D;return I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),K2(D,"link",b),c.state.loading|=i5,du(D,m.precedence,n),c.instance=D;case"script":return D=f0(m.src),(w=n.querySelector(ha(D)))?(c.instance=w,ge(w),w):(b=m,(w=a5.get(D))&&(b=Vt({},m),hu(b,w)),n=n.ownerDocument||n,w=n.createElement("script"),ge(w),K2(w,"link",b),n.head.appendChild(w),c.instance=w);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+c.type+'". this is a bug in React.')}else c.type==="stylesheet"&&(c.state.loading&i5)===c9&&(b=c.instance,c.state.loading|=i5,du(b,m.precedence,n));return c.instance}function du(n,c,m){for(var b=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=b.length?b[b.length-1]:null,D=w,I=0;I<b.length;I++){var G=b[I];if(G.dataset.precedence===c)D=G;else if(D!==w)break}D?D.parentNode.insertBefore(n,D.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(n,c.firstChild))}function oh(n,c){n.crossOrigin==null&&(n.crossOrigin=c.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=c.referrerPolicy),n.title==null&&(n.title=c.title)}function hu(n,c){n.crossOrigin==null&&(n.crossOrigin=c.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=c.referrerPolicy),n.integrity==null&&(n.integrity=c.integrity)}function lh(n,c,m){if(Jv===null){var b=new Map,w=Jv=new Map;w.set(m,b)}else w=Jv,b=w.get(m),b||(b=new Map,w.set(m,b));if(b.has(n))return b;for(b.set(n,null),m=m.getElementsByTagName(n),w=0;w<m.length;w++){var D=m[w];if(!(D[Bl]||D[b3]||n==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!==mr){var I=D.getAttribute(c)||"";I=n+I;var G=b.get(I);G?G.push(D):b.set(I,[D])}}return b}function pa(n,c,m){n=n.ownerDocument||n,n.head.insertBefore(m,c==="title"?n.querySelector("head > title"):null)}function pu(n,c,m){var b=!m.ancestorInfo.containerTagInScope;if(m.context===hc||c.itemProp!=null)return!b||c.itemProp==null||n!=="meta"&&n!=="title"&&n!=="style"&&n!=="link"&&n!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",n,n),!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href===""){b&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError){if(c.rel==="stylesheet"&&typeof c.precedence=="string"){n=c.href;var w=c.onError,D=c.disabled;m=[],c.onLoad&&m.push("`onLoad`"),w&&m.push("`onError`"),D!=null&&m.push("`disabled`"),w=u1(m,"and"),w+=m.length===1?" prop":" props",D=m.length===1?"an "+w:"the "+w,m.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',n,D,w)}b&&(typeof c.rel!="string"||typeof c.href!="string"||c.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(c.onError||c.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(c.rel){case"stylesheet":return n=c.precedence,c=c.disabled,typeof n!="string"&&b&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof n=="string"&&c==null;default:return!0}case"script":if(n=c.async&&typeof c.async!="function"&&typeof c.async!="symbol",!n||c.onLoad||c.onError||!c.src||typeof c.src!="string"){b&&(n?c.onLoad||c.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":b&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",n)}return!1}function sh(n){return!(n.type==="stylesheet"&&(n.state.loading&DP)===c9)}function rv(){}function iv(n,c,m){if(cp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var b=cp;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&i5)===c9){if(c.instance===null){var w=fn(m.href),D=n.querySelector($o(w));if(D){n=D._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(b.count++,b=Sl.bind(b),n.then(b,b)),c.state.loading|=i5,c.instance=D,ge(D);return}D=n.ownerDocument||n,m=ah(m),(w=a5.get(w))&&oh(m,w),D=D.createElement("link"),ge(D);var I=D;I._p=new Promise(function(G,ie){I.onload=G,I.onerror=ie}),K2(D,"link",m),c.instance=D}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(c,n),(n=c.state.preload)&&(c.state.loading&DP)===c9&&(b.count++,c=Sl.bind(b),n.addEventListener("load",c),n.addEventListener("error",c))}}function av(){if(cp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var n=cp;return n.stylesheets&&n.count===0&&mu(n,n.stylesheets),0<n.count?function(c){var m=setTimeout(function(){if(n.stylesheets&&mu(n,n.stylesheets),n.unsuspend){var b=n.unsuspend;n.unsuspend=null,b()}},6e4);return n.unsuspend=c,function(){n.unsuspend=null,clearTimeout(m)}}:null}function Sl(){if(this.count--,this.count===0){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}function mu(n,c){n.stylesheets=null,n.unsuspend!==null&&(n.count++,eg=new Map,c.forEach(yu,n),eg=null,Sl.call(n))}function yu(n,c){if(!(c.state.loading&i5)){var m=eg.get(n);if(m)var b=m.get(DH);else{m=new Map,eg.set(n,m);for(var w=n.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<w.length;D++){var I=w[D];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(m.set(I.dataset.precedence,I),b=I)}b&&m.set(DH,b)}w=c.instance,I=w.getAttribute("data-precedence"),D=m.get(I)||b,D===b&&m.set(DH,w),m.set(I,w),this.count++,b=Sl.bind(this),w.addEventListener("load",b),w.addEventListener("error",b),D?D.parentNode.insertBefore(w,D.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(w,n.firstChild)),c.state.loading|=i5}}function ov(n,c,m,b,w,D,I,G){for(this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=u9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Y1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Y1(0),this.hiddenUpdates=Y1(null),this.identifierPrefix=b,this.onUncaughtError=w,this.onCaughtError=D,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,n=this.pendingUpdatersLaneMap=[],c=0;31>c;c++)n.push(new Set);this._debugRootType=m?"hydrateRoot()":"createRoot()"}function uh(n,c,m,b,w,D,I,G,ie,le,we,Ne){return n=new ov(n,c,m,I,G,ie,le,Ne),c=bie,D===!0&&(c|=v4|yr),c6&&(c|=P3),D=p(3,null,null,c),n.current=D,D.stateNode=n,c=Gf(),t6(c),n.pooledCache=c,t6(c),D.memoizedState={element:b,isDehydrated:m,cache:c},Gr(D),n}function B1(n){return n?(n=r7,n):r7}function _l(n,c,m,b,w,D){if(f3&&typeof f3.onScheduleFiberRoot=="function")try{f3.onScheduleFiberRoot(va,b,m)}catch(I){H2||(H2=!0,console.error("React instrumentation encountered an error: %s",I))}ot!==null&&typeof ot.markRenderScheduled=="function"&&ot.markRenderScheduled(c),w=B1(w),b.context===null?b.context=w:b.pendingContext=w,$n&&d3!==null&&!PP&&(PP=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
603
603
|
|
|
604
604
|
Check the render method of %s.`,R(d3)||"Unknown")),b=W6(c),b.payload={element:m},D=D===void 0?null:D,D!==null&&(typeof D!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",D),b.callback=D),m=Y6(n,b,c),m!==null&&(Kt(m,n,c),Ki(m,n,c))}function lv(n,c){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var m=n.retryLane;n.retryLane=m!==0&&m<c?m:c}}function vu(n,c){lv(n,c),(n=n.alternate)&&lv(n,c)}function sv(n){if(n.tag===13){var c=t4(n,67108864);c!==null&&Kt(c,n,67108864),vu(n,67108864)}}function _b(){return d3}function Ab(){for(var n=new Map,c=1,m=0;31>m;m++){var b=dt(c);n.set(c,b),c*=2}return n}function gu(n,c,m,b){var w=Ce.T;Ce.T=null;var D=L1.p;try{L1.p=I4,Al(n,c,m,b)}finally{L1.p=D,Ce.T=w}}function Uo(n,c,m,b){var w=Ce.T;Ce.T=null;var D=L1.p;try{L1.p=qn,Al(n,c,m,b)}finally{L1.p=D,Ce.T=w}}function Al(n,c,m,b){if(ng){var w=Go(b);if(w===null)N4(n,c,b,rg,m),dn(n,b);else if(Ob(w,n,c,m,b))b.stopPropagation();else if(dn(n,b),c&4&&-1<tae.indexOf(n)){for(;w!==null;){var D=rt(w);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var I=at(D.pendingLanes);if(I!==0){var G=D;for(G.pendingLanes|=2,G.entangledLanes|=2;I;){var ie=1<<31-J2(I);G.entanglements[1]|=ie,I&=~ie}l6(D),(A1&($4|xr))===yn&&(jv=Q3()+mP,a0(0))}}break;case 13:G=t4(D,2),G!==null&&Kt(G,D,2),ca(),vu(D,2)}if(D=Go(b),D===null&&N4(n,c,b,rg,m),D===w)break;w=D}w!==null&&b.stopPropagation()}else N4(n,c,b,null,m)}}function Go(n){return n=U6(n),Ol(n)}function Ol(n){if(rg=null,n=h1(n),n!==null){var c=M(n);if(c===null)n=null;else{var m=c.tag;if(m===13){if(n=A(c),n!==null)return n;n=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;n=null}else c!==n&&(n=null)}}return rg=n,null}function d0(n){switch(n){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 I4;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 qn;case"message":switch(fv()){case kl:return I4;case hh:return qn;case Wo:case ph:return hr;case mh:return Cu;default:return hr}default:return hr}}function dn(n,c){switch(n){case"focusin":case"focusout":f7=null;break;case"dragenter":case"dragleave":d7=null;break;case"mouseover":case"mouseout":h7=null;break;case"pointerover":case"pointerout":Qp.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":fp.delete(c.pointerId)}}function cr(n,c,m,b,w,D){return n===null||n.nativeEvent!==D?(n={blockedOn:c,domEventName:m,eventSystemFlags:b,nativeEvent:D,targetContainers:[w]},c!==null&&(c=rt(c),c!==null&&sv(c)),n):(n.eventSystemFlags|=b,c=n.targetContainers,w!==null&&c.indexOf(w)===-1&&c.push(w),n)}function Ob(n,c,m,b,w){switch(c){case"focusin":return f7=cr(f7,n,c,m,b,w),!0;case"dragenter":return d7=cr(d7,n,c,m,b,w),!0;case"mouseover":return h7=cr(h7,n,c,m,b,w),!0;case"pointerover":var D=w.pointerId;return Qp.set(D,cr(Qp.get(D)||null,n,c,m,b,w)),!0;case"gotpointercapture":return D=w.pointerId,fp.set(D,cr(fp.get(D)||null,n,c,m,b,w)),!0}return!1}function ch(n){var c=h1(n.target);if(c!==null){var m=M(c);if(m!==null){if(c=m.tag,c===13){if(c=A(m),c!==null){n.blockedOn=c,Ct(n.priority,function(){if(m.tag===13){var b=k4(m);b=We(b);var w=t4(m,b);w!==null&&Kt(w,m,b),vu(m,b)}});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){n.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Cl(n){if(n.blockedOn!==null)return!1;for(var c=n.targetContainers;0<c.length;){var m=Go(n.nativeEvent);if(m===null){m=n.nativeEvent;var b=new m.constructor(m.type,m),w=b;P!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),P=w,m.target.dispatchEvent(b),P===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),P=null}else return c=rt(m),c!==null&&sv(c),n.blockedOn=m,!1;c.shift()}return!0}function Th(n,c,m){Cl(n)&&m.delete(c)}function uv(){RH=!1,f7!==null&&Cl(f7)&&(f7=null),d7!==null&&Cl(d7)&&(d7=null),h7!==null&&Cl(h7)&&(h7=null),Qp.forEach(Th),fp.forEach(Th)}function Lu(n,c){n.blockedOn===c&&(n.blockedOn=null,RH||(RH=!0,g2.unstable_scheduleCallback(g2.unstable_NormalPriority,uv)))}function xu(n){ig!==n&&(ig=n,g2.unstable_scheduleCallback(g2.unstable_NormalPriority,function(){ig===n&&(ig=null);for(var c=0;c<n.length;c+=3){var m=n[c],b=n[c+1],w=n[c+2];if(typeof b!="function"){if(Ol(b||m)===null)continue;break}var D=rt(m);D!==null&&(n.splice(c,3),c-=3,m={pending:!0,data:w,method:m.method,action:b},Object.freeze(m),Ds(D,m,b,w))}}))}function Zo(n){function c(ie){return Lu(ie,n)}f7!==null&&Lu(f7,n),d7!==null&&Lu(d7,n),h7!==null&&Lu(h7,n),Qp.forEach(c),fp.forEach(c);for(var m=0;m<p7.length;m++){var b=p7[m];b.blockedOn===n&&(b.blockedOn=null)}for(;0<p7.length&&(m=p7[0],m.blockedOn===null);)ch(m),m.blockedOn===null&&p7.shift();if(m=(n.ownerDocument||n).$$reactFormReplay,m!=null)for(b=0;b<m.length;b+=3){var w=m[b],D=m[b+1],I=w[y4]||null;if(typeof D=="function")I||xu(m);else if(I){var G=null;if(D&&D.hasAttribute("formAction")){if(w=D,I=D[y4]||null)G=I.formAction;else if(Ol(w)!==null)continue}else G=I.action;typeof G=="function"?m[b+1]=G:(m.splice(b,3),b-=3),xu(m)}}}function bu(n){this._internalRoot=n}function Hu(n){this._internalRoot=n}function Eu(n){n[v0]&&(n._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g2=zN(),Qh=wa(),Cb=mL(),Vt=Object.assign,wb=Symbol.for("react.element"),Tr=Symbol.for("react.transitional.element"),Nt=Symbol.for("react.portal"),h0=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),wl=Symbol.for("react.profiler"),cv=Symbol.for("react.provider"),Vl=Symbol.for("react.consumer"),m4=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),Mu=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),j4=Symbol.for("react.lazy"),_u=Symbol.for("react.activity"),Tv=Symbol.for("react.memo_cache_sentinel"),Dl=Symbol.iterator,P1=Symbol.for("react.client.reference"),z2=Array.isArray,Ce=Qh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L1=Cb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fh=Object.freeze({pending:!1,data:null,method:null,action:null}),Rl=[],Xo=[],In=-1,Qr=F(null),ya=F(null),Fn=F(null),Au=F(null),zn=Object.prototype.hasOwnProperty,dh=g2.unstable_scheduleCallback,Qv=g2.unstable_cancelCallback,Vb=g2.unstable_shouldYield,Db=g2.unstable_requestPaint,Q3=g2.unstable_now,fv=g2.unstable_getCurrentPriorityLevel,kl=g2.unstable_ImmediatePriority,hh=g2.unstable_UserBlockingPriority,Wo=g2.unstable_NormalPriority,ph=g2.unstable_LowPriority,mh=g2.unstable_IdlePriority,hn=g2.log,yh=g2.unstable_setDisableYieldValue,va=null,f3=null,ot=null,H2=!1,c6=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",J2=Math.clz32?Math.clz32:Ze,fr=Math.log,Rb=Math.LN2,Ou=256,dr=4194304,I4=2,qn=8,hr=32,Cu=268435456,y0=Math.random().toString(36).slice(2),b3="__reactFiber$"+y0,y4="__reactProps$"+y0,v0="__reactContainer$"+y0,wu="__reactEvents$"+y0,Yo="__reactListeners$"+y0,Nl="__reactHandles$"+y0,vh="__reactResources$"+y0,Bl="__reactMarker$"+y0,ga=new Set,pn={},Vu={},Du={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gh=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]*$"),Ru={},Pl={},Ko=0,Lh,dv,xh,Jo,hv,pv,mv;Cn.__reactDisabledLog=!0;var e7,jl,Il=!1,bh=new(typeof WeakMap=="function"?WeakMap:Map),d3=null,$n=!1,yv=/[\n"\\]/g,Hh=!1,Eh=!1,Mh=!1,ku=!1,Sh=!1,Fl=!1,vv=["value","defaultValue"],gv=!1,Nu=/["'&<>\n\t]|^\s|\s$/,_h="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),zl="applet caption html table td th marquee object template foreignObject desc title".split(" "),Ah=zl.concat(["button"]),Lv="dd dt li option optgroup p rp rt".split(" "),Bu={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mn={},Un={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},pr=/([A-Z])/g,t7=/^ms-/,ql=/^(?:webkit|moz|o)[A-Z]/,g0=/^-ms-/,kb=/-(.)/g,Oh=/;\s*$/,Gn={},Ch={},wh=!1,$l=!1,Vh=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(" ")),Pu="http://www.w3.org/1998/Math/MathML",mr="http://www.w3.org/2000/svg",ju=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"]]),Ul={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},n7={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},L0={},Iu=RegExp("^(aria)-[: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]*$"),xv=RegExp("^(aria)[A-Z][: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]*$"),bv=!1,e3={},d=/^on./,y=/^on[^A-Z]/,x=RegExp("^(aria)-[: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]*$"),O=RegExp("^(aria)[A-Z][: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]*$"),N=/^[\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,P=null,X=null,re=null,ce=!1,Ee=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fe=!1;if(Ee)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Fe=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch{Fe=!1}var Ae=null,Re=null,St=null,Lt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},x1=u3(Lt),Le=Vt({},Lt,{view:0,detail:0}),ve=u3(Le),Me,qe,ut,zt=Vt({},Le,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:v3,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ut&&(ut&&n.type==="mousemove"?(Me=n.screenX-ut.screenX,qe=n.screenY-ut.screenY):qe=Me=0,ut=n),Me)},movementY:function(n){return"movementY"in n?n.movementY:qe}}),yt=u3(zt),_t=Vt({},zt,{dataTransfer:0}),t3=u3(_t),y1=Vt({},Le,{relatedTarget:0}),Zn=u3(y1),Nb=Vt({},Lt,{animationName:0,elapsedTime:0,pseudoElement:0}),Y0e=u3(Nb),K0e=Vt({},Lt,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),J0e=u3(K0e),eie=Vt({},Lt,{data:0}),KN=u3(eie),tie=KN,nie={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rie={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"},iie={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},aie=Vt({},Le,{key:function(n){if(n.key){var c=nie[n.key]||n.key;if(c!=="Unidentified")return c}return n.type==="keypress"?(n=Fi(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?rie[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:v3,charCode:function(n){return n.type==="keypress"?Fi(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Fi(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),oie=u3(aie),lie=Vt({},zt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JN=u3(lie),sie=Vt({},Le,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:v3}),uie=u3(sie),cie=Vt({},Lt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tie=u3(cie),Qie=Vt({},zt,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),fie=u3(Qie),die=Vt({},Lt,{newState:0,oldState:0}),hie=u3(die),pie=[9,13,27,32],eB=229,Bb=Ee&&"CompositionEvent"in window,Dh=null;Ee&&"documentMode"in document&&(Dh=document.documentMode);var mie=Ee&&"TextEvent"in window&&!Dh,tB=Ee&&(!Bb||Dh&&8<Dh&&11>=Dh),nB=32,rB=String.fromCharCode(nB),iB=!1,Fu=!1,yie={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},Rh=null,kh=null,aB=!1;Ee&&(aB=Df("input")&&(!document.documentMode||9<document.documentMode));var F4=typeof Object.is=="function"?Object.is:xb,vie=Ee&&"documentMode"in document&&11>=document.documentMode,zu=null,Pb=null,Nh=null,jb=!1,qu={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},Ib={},oB={};Ee&&(oB=document.createElement("div").style,"AnimationEvent"in window||(delete qu.animationend.animation,delete qu.animationiteration.animation,delete qu.animationstart.animation),"TransitionEvent"in window||delete qu.transitionend.transition);var lB=qi("animationend"),sB=qi("animationiteration"),uB=qi("animationstart"),gie=qi("transitionrun"),Lie=qi("transitionstart"),xie=qi("transitioncancel"),cB=qi("transitionend"),TB=new Map,Fb="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(" ");Fb.push("scrollEnd");var zb=new WeakMap,qb=1,Gl=2,Xn=[],$u=0,$b=0,r7={};Object.freeze(r7);var Wn=null,Uu=null,l2=0,bie=1,P3=2,v4=8,yr=16,QB=64,fB=!1;try{var dB=Object.preventExtensions({})}catch{fB=!0}var Gu=[],Zu=0,Hv=null,Ev=0,Yn=[],Kn=0,Zl=null,La=1,xa="",z4=null,V2=null,v1=!1,ba=!1,Jn=null,Xl=null,x0=!1,Ub=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),hB=0;if(typeof performance=="object"&&typeof performance.now=="function")var Hie=performance,pB=function(){return Hie.now()};else{var Eie=Date;pB=function(){return Eie.now()}}var Gb=F(null),Zb=F(null),mB={},Mv=null,Xu=null,Wu=!1,Mie=typeof AbortController<"u"?AbortController:function(){var n=[],c=this.signal={aborted:!1,addEventListener:function(m,b){n.push(b)}};this.abort=function(){c.aborted=!0,n.forEach(function(m){return m()})}},Sie=g2.unstable_scheduleCallback,_ie=g2.unstable_NormalPriority,h3={$$typeof:m4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Yu=g2.unstable_now,yB=-0,Sv=-0,T6=-1.1,Wl=-0,_v=!1,Av=!1,Bh=null,Xb=0,Yl=0,Ku=null,vB=Ce.S;Ce.S=function(n,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&Cy(n,c),vB!==null&&vB(n,c)};var Kl=F(null),vr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ph=[],jh=[],Ih=[],Fh=[],zh=[],qh=[],Jl=new Set;vr.recordUnsafeLifecycleWarnings=function(n,c){Jl.has(n.type)||(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0&&Ph.push(n),n.mode&v4&&typeof c.UNSAFE_componentWillMount=="function"&&jh.push(n),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ih.push(n),n.mode&v4&&typeof c.UNSAFE_componentWillReceiveProps=="function"&&Fh.push(n),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0&&zh.push(n),n.mode&v4&&typeof c.UNSAFE_componentWillUpdate=="function"&&qh.push(n))},vr.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;0<Ph.length&&(Ph.forEach(function(G){n.add(R(G)||"Component"),Jl.add(G.type)}),Ph=[]);var c=new Set;0<jh.length&&(jh.forEach(function(G){c.add(R(G)||"Component"),Jl.add(G.type)}),jh=[]);var m=new Set;0<Ih.length&&(Ih.forEach(function(G){m.add(R(G)||"Component"),Jl.add(G.type)}),Ih=[]);var b=new Set;0<Fh.length&&(Fh.forEach(function(G){b.add(R(G)||"Component"),Jl.add(G.type)}),Fh=[]);var w=new Set;0<zh.length&&(zh.forEach(function(G){w.add(R(G)||"Component"),Jl.add(G.type)}),zh=[]);var D=new Set;if(0<qh.length&&(qh.forEach(function(G){D.add(R(G)||"Component"),Jl.add(G.type)}),qh=[]),0<c.size){var I=h(c);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
605
605
|
|
|
@@ -640,16 +640,16 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,b)})}
|
|
|
640
640
|
|
|
641
641
|
Check the render method of \``+w+"`."),D||b&&(D=`
|
|
642
642
|
|
|
643
|
-
Check the top-level render call using <`+b+">.");var I="";m!=null&&n!==m&&(b=null,typeof m.tag=="number"?b=R(m):typeof m.name=="string"&&(b=m.name),b&&(I=" It was passed a child from "+b+".")),ht(c,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',D,I)})}}};var rc=ia(!0),GB=ia(!1),r5=F(null),H0=null,ic=1,Wh=2,m3=F(0),ZB={},XB=new Set,WB=new Set,YB=new Set,KB=new Set,JB=new Set,eP=new Set,tP=new Set,nP=new Set,rP=new Set,iP=new Set;Object.freeze(ZB);var oH={enqueueSetState:function(n,c,m){n=n._reactInternals;var b=k4(n),w=W6(b);w.payload=c,m!=null&&(f2(m),w.callback=m),c=Y6(n,w,b),c!==null&&(Kt(c,n,b),Ki(c,n,b)),Pe(n,b)},enqueueReplaceState:function(n,c,m){n=n._reactInternals;var b=k4(n),w=W6(b);w.tag=bB,w.payload=c,m!=null&&(f2(m),w.callback=m),c=Y6(n,w,b),c!==null&&(Kt(c,n,b),Ki(c,n,b)),Pe(n,b)},enqueueForceUpdate:function(n,c){n=n._reactInternals;var m=k4(n),b=W6(m);b.tag=HB,c!=null&&(f2(c),b.callback=c),c=Y6(n,b,m),c!==null&&(Kt(c,n,m),Ki(c,n,m)),ot!==null&&typeof ot.markForceUpdateScheduled=="function"&&ot.markForceUpdateScheduled(n,m)}},lH=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ac=null,sH=null,aP=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),H3=!1,oP={},lP={},sP={},uP={},oc=!1,cP={},uH={},cH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},TP=!1,QP=null;QP=new Set;var Ma=!1,q2=!1,TH=!1,fP=typeof WeakSet=="function"?WeakSet:Set,E3=null,lc=null,sc=null,r3=null,Q6=!1,Lr=null,Yh=8192,Die={getCacheForType:function(n){var c=K1(h3),m=c.data.get(n);return m===void 0&&(m=n(),c.data.set(n,m)),m},getOwner:function(){return d3}};if(typeof Symbol=="function"&&Symbol.for){var Kh=Symbol.for;Kh("selector.component"),Kh("selector.has_pseudo_class"),Kh("selector.role"),Kh("selector.test_id"),Kh("selector.text")}var Rie=[],kie=typeof WeakMap=="function"?WeakMap:Map,yn=0,$4=2,xr=4,Sa=0,Jh=1,uc=2,QH=3,t9=4,Bv=6,dP=5,A1=yn,n2=null,n1=null,a1=0,f6=0,ep=1,n9=2,tp=3,hP=4,fH=5,cc=6,np=7,dH=8,r9=9,j1=f6,vn=null,l7=!1,Tc=!1,hH=!1,E0=0,D2=Sa,s7=0,u7=0,pH=0,gn=0,i9=0,rp=null,U4=null,Pv=!1,mH=0,pP=300,jv=1/0,mP=500,ip=null,c7=null,Nie=0,Bie=1,Pie=2,a9=0,yP=1,vP=2,gP=3,jie=4,yH=5,I3=0,T7=null,Qc=null,Q7=0,vH=0,gH=null,LP=null,Iie=50,ap=0,LH=null,xH=!1,Iv=!1,Fie=50,o9=0,op=null,fc=!1,Fv=null,xP=!1,bP=new Set,zie={},zv=null,dc=null,bH=!1,HH=!1,qv=!1,EH=!1,l9=0,MH={};(function(){for(var n=0;n<Fb.length;n++){var c=Fb[n],m=c.toLowerCase();c=c[0].toUpperCase()+c.slice(1),G6(m,"on"+c)}G6(lB,"onAnimationEnd"),G6(sB,"onAnimationIteration"),G6(uB,"onAnimationStart"),G6("dblclick","onDoubleClick"),G6("focusin","onFocus"),G6("focusout","onBlur"),G6(gie,"onTransitionRun"),G6(Lie,"onTransitionStart"),G6(xie,"onTransitionCancel"),G6(cB,"onTransitionEnd")})(),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),Xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lp="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(" "),SH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lp)),$v="_reactListening"+Math.random().toString(36).slice(2),HP=!1,EP=!1,Uv=!1,MP=!1,Gv=!1,Zv=!1,SP=!1,Xv={},qie=/\r\n?/g,$ie=/\u0000|\uFFFD/g,s9="http://www.w3.org/1999/xlink",_H="http://www.w3.org/XML/1998/namespace",Uie="javascript:throw new Error('React form unexpectedly submitted.')",Gie="suppressHydrationWarning",Wv="$",Yv="/$",_a="$?",sp="$!",Zie=1,Xie=2,Wie=4,AH="F!",_P="F",AP="complete",Yie="style",Aa=0,hc=1,Kv=2,OH=null,CH=null,OP={dialog:!0,webview:!0},wH=null,CP=typeof setTimeout=="function"?setTimeout:void 0,Kie=typeof clearTimeout=="function"?clearTimeout:void 0,u9=-1,wP=typeof Promise=="function"?Promise:void 0,Jie=typeof queueMicrotask=="function"?queueMicrotask:typeof wP<"u"?function(n){return wP.resolve(null).then(n).catch(sr)}:CP,VH=null,c9=0,up=1,VP=2,DP=3,i5=4,a5=new Map,RP=new Set,Oa=L1.d;L1.d={f:function(){var n=Oa.f(),c=ca();return n||c},r:function(n){var c=rt(n);c!==null&&c.tag===5&&c.type==="form"?Y5(c):Oa.r(n)},D:function(n){Oa.D(n),ur("dns-prefetch",n,null)},C:function(n,c){Oa.C(n,c),ur("preconnect",n,c)},L:function(n,c,m){Oa.L(n,c,m);var b=pc;if(b&&n&&c){var w='link[rel="preload"][as="'+X2(c)+'"]';c==="image"&&m&&m.imageSrcSet?(w+='[imagesrcset="'+X2(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(w+='[imagesizes="'+X2(m.imageSizes)+'"]')):w+='[href="'+X2(n)+'"]';var D=w;switch(c){case"style":D=fn(n);break;case"script":D=f0(n)}a5.has(D)||(n=Vt({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:n,as:c},m),a5.set(D,n),b.querySelector(w)!==null||c==="style"&&b.querySelector($o(D))||c==="script"&&b.querySelector(ha(D))||(c=b.createElement("link"),K2(c,"link",n),ge(c),b.head.appendChild(c)))}},m:function(n,c){Oa.m(n,c);var m=pc;if(m&&n){var b=c&&typeof c.as=="string"?c.as:"script",w='link[rel="modulepreload"][as="'+X2(b)+'"][href="'+X2(n)+'"]',D=w;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=f0(n)}if(!a5.has(D)&&(n=Vt({rel:"modulepreload",href:n},c),a5.set(D,n),m.querySelector(w)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ha(D)))return}b=m.createElement("link"),K2(b,"link",n),ge(b),m.head.appendChild(b)}}},X:function(n,c){Oa.X(n,c);var m=pc;if(m&&n){var b=ee(m).hoistableScripts,w=f0(n),D=b.get(w);D||(D=m.querySelector(ha(w)),D||(n=Vt({src:n,async:!0},c),(c=a5.get(w))&&hu(n,c),D=m.createElement("script"),ge(D),K2(D,"link",n),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(w,D))}},S:function(n,c,m){Oa.S(n,c,m);var b=pc;if(b&&n){var w=ee(b).hoistableStyles,D=fn(n);c=c||"default";var I=w.get(D);if(!I){var G={loading:c9,preload:null};if(I=b.querySelector($o(D)))G.loading=up|i5;else{n=Vt({rel:"stylesheet",href:n,"data-precedence":c},m),(m=a5.get(D))&&oh(n,m);var ie=I=b.createElement("link");ge(ie),K2(ie,"link",n),ie._p=new Promise(function(oe,we){ie.onload=oe,ie.onerror=we}),ie.addEventListener("load",function(){G.loading|=up}),ie.addEventListener("error",function(){G.loading|=VP}),G.loading|=i5,du(I,c,b)}I={type:"stylesheet",instance:I,count:1,state:G},w.set(D,I)}}},M:function(n,c){Oa.M(n,c);var m=pc;if(m&&n){var b=ee(m).hoistableScripts,w=f0(n),D=b.get(w);D||(D=m.querySelector(ha(w)),D||(n=Vt({src:n,async:!0,type:"module"},c),(c=a5.get(w))&&hu(n,c),D=m.createElement("script"),ge(D),K2(D,"link",n),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(w,D))}}};var pc=typeof document>"u"?null:document,Jv=null,cp=null,DH=null,eg=null,T9=fh,Tp={$$typeof:m4,Provider:null,Consumer:null,_currentValue:T9,_currentValue2:T9,_threadCount:0},kP="%c%s%c ",NP="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",BP="",tg=" ",eae=Function.prototype.bind,PP=!1,jP=null,IP=null,FP=null,zP=null,qP=null,$P=null,UP=null,GP=null,ZP=null;jP=function(n,c,m,b){c=t(n,c),c!==null&&(m=r(c.memoizedState,m,0,b),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},IP=function(n,c,m){c=t(n,c),c!==null&&(m=a(c.memoizedState,m,0),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},FP=function(n,c,m,b){c=t(n,c),c!==null&&(m=s(c.memoizedState,m,b),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},zP=function(n,c,m){n.pendingProps=r(n.memoizedProps,c,0,m),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},qP=function(n,c){n.pendingProps=a(n.memoizedProps,c,0),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},$P=function(n,c,m){n.pendingProps=s(n.memoizedProps,c,m),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},UP=function(n){var c=t4(n,2);c!==null&&Kt(c,n,2)},GP=function(n){l=n},ZP=function(n){i=n};var ng=!0,rg=null,RH=!1,f7=null,d7=null,h7=null,Qp=new Map,fp=new Map,p7=[],tae="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(" "),ig=null;if(Hu.prototype.render=bu.prototype.render=function(n){var c=this._internalRoot;if(c===null)throw Error("Cannot update an unmounted root.");var m=arguments;typeof m[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(m[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof m[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),m=n;var b=c.current,w=k4(b);_l(b,w,m,c,null,null)},Hu.prototype.unmount=bu.prototype.unmount=function(){var n=arguments;if(typeof n[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),n=this._internalRoot,n!==null){this._internalRoot=null;var c=n.containerInfo;(A1&($4|xr))!==yn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),_l(n.current,2,null,n,null,null),ca(),c[v0]=null}},Hu.prototype.unstable_scheduleHydration=function(n){if(n){var c=i1();n={blockedOn:null,target:n,priority:c};for(var m=0;m<p7.length&&c!==0&&c<p7[m].priority;m++);p7.splice(m,0,n),m===0&&ch(n)}},function(){var n=Qh.version;if(n!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
643
|
+
Check the top-level render call using <`+b+">.");var I="";m!=null&&n!==m&&(b=null,typeof m.tag=="number"?b=R(m):typeof m.name=="string"&&(b=m.name),b&&(I=" It was passed a child from "+b+".")),ht(c,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',D,I)})}}};var rc=ia(!0),GB=ia(!1),r5=F(null),H0=null,ic=1,Wh=2,m3=F(0),ZB={},XB=new Set,WB=new Set,YB=new Set,KB=new Set,JB=new Set,eP=new Set,tP=new Set,nP=new Set,rP=new Set,iP=new Set;Object.freeze(ZB);var oH={enqueueSetState:function(n,c,m){n=n._reactInternals;var b=k4(n),w=W6(b);w.payload=c,m!=null&&(f2(m),w.callback=m),c=Y6(n,w,b),c!==null&&(Kt(c,n,b),Ki(c,n,b)),Pe(n,b)},enqueueReplaceState:function(n,c,m){n=n._reactInternals;var b=k4(n),w=W6(b);w.tag=bB,w.payload=c,m!=null&&(f2(m),w.callback=m),c=Y6(n,w,b),c!==null&&(Kt(c,n,b),Ki(c,n,b)),Pe(n,b)},enqueueForceUpdate:function(n,c){n=n._reactInternals;var m=k4(n),b=W6(m);b.tag=HB,c!=null&&(f2(c),b.callback=c),c=Y6(n,b,m),c!==null&&(Kt(c,n,m),Ki(c,n,m)),ot!==null&&typeof ot.markForceUpdateScheduled=="function"&&ot.markForceUpdateScheduled(n,m)}},lH=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ac=null,sH=null,aP=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),H3=!1,oP={},lP={},sP={},uP={},oc=!1,cP={},uH={},cH={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},TP=!1,QP=null;QP=new Set;var Ma=!1,q2=!1,TH=!1,fP=typeof WeakSet=="function"?WeakSet:Set,E3=null,lc=null,sc=null,r3=null,Q6=!1,Lr=null,Yh=8192,Die={getCacheForType:function(n){var c=K1(h3),m=c.data.get(n);return m===void 0&&(m=n(),c.data.set(n,m)),m},getOwner:function(){return d3}};if(typeof Symbol=="function"&&Symbol.for){var Kh=Symbol.for;Kh("selector.component"),Kh("selector.has_pseudo_class"),Kh("selector.role"),Kh("selector.test_id"),Kh("selector.text")}var Rie=[],kie=typeof WeakMap=="function"?WeakMap:Map,yn=0,$4=2,xr=4,Sa=0,Jh=1,uc=2,QH=3,t9=4,Bv=6,dP=5,A1=yn,n2=null,n1=null,a1=0,f6=0,ep=1,n9=2,tp=3,hP=4,fH=5,cc=6,np=7,dH=8,r9=9,j1=f6,vn=null,l7=!1,Tc=!1,hH=!1,E0=0,D2=Sa,s7=0,u7=0,pH=0,gn=0,i9=0,rp=null,U4=null,Pv=!1,mH=0,pP=300,jv=1/0,mP=500,ip=null,c7=null,Nie=0,Bie=1,Pie=2,a9=0,yP=1,vP=2,gP=3,jie=4,yH=5,I3=0,T7=null,Qc=null,Q7=0,vH=0,gH=null,LP=null,Iie=50,ap=0,LH=null,xH=!1,Iv=!1,Fie=50,o9=0,op=null,fc=!1,Fv=null,xP=!1,bP=new Set,zie={},zv=null,dc=null,bH=!1,HH=!1,qv=!1,EH=!1,l9=0,MH={};(function(){for(var n=0;n<Fb.length;n++){var c=Fb[n],m=c.toLowerCase();c=c[0].toUpperCase()+c.slice(1),G6(m,"on"+c)}G6(lB,"onAnimationEnd"),G6(sB,"onAnimationIteration"),G6(uB,"onAnimationStart"),G6("dblclick","onDoubleClick"),G6("focusin","onFocus"),G6("focusout","onBlur"),G6(gie,"onTransitionRun"),G6(Lie,"onTransitionStart"),G6(xie,"onTransitionCancel"),G6(cB,"onTransitionEnd")})(),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),Xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lp="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(" "),SH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lp)),$v="_reactListening"+Math.random().toString(36).slice(2),HP=!1,EP=!1,Uv=!1,MP=!1,Gv=!1,Zv=!1,SP=!1,Xv={},qie=/\r\n?/g,$ie=/\u0000|\uFFFD/g,s9="http://www.w3.org/1999/xlink",_H="http://www.w3.org/XML/1998/namespace",Uie="javascript:throw new Error('React form unexpectedly submitted.')",Gie="suppressHydrationWarning",Wv="$",Yv="/$",_a="$?",sp="$!",Zie=1,Xie=2,Wie=4,AH="F!",_P="F",AP="complete",Yie="style",Aa=0,hc=1,Kv=2,OH=null,CH=null,OP={dialog:!0,webview:!0},wH=null,CP=typeof setTimeout=="function"?setTimeout:void 0,Kie=typeof clearTimeout=="function"?clearTimeout:void 0,u9=-1,wP=typeof Promise=="function"?Promise:void 0,Jie=typeof queueMicrotask=="function"?queueMicrotask:typeof wP<"u"?function(n){return wP.resolve(null).then(n).catch(sr)}:CP,VH=null,c9=0,up=1,VP=2,DP=3,i5=4,a5=new Map,RP=new Set,Oa=L1.d;L1.d={f:function(){var n=Oa.f(),c=ca();return n||c},r:function(n){var c=rt(n);c!==null&&c.tag===5&&c.type==="form"?Y5(c):Oa.r(n)},D:function(n){Oa.D(n),ur("dns-prefetch",n,null)},C:function(n,c){Oa.C(n,c),ur("preconnect",n,c)},L:function(n,c,m){Oa.L(n,c,m);var b=pc;if(b&&n&&c){var w='link[rel="preload"][as="'+X2(c)+'"]';c==="image"&&m&&m.imageSrcSet?(w+='[imagesrcset="'+X2(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(w+='[imagesizes="'+X2(m.imageSizes)+'"]')):w+='[href="'+X2(n)+'"]';var D=w;switch(c){case"style":D=fn(n);break;case"script":D=f0(n)}a5.has(D)||(n=Vt({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:n,as:c},m),a5.set(D,n),b.querySelector(w)!==null||c==="style"&&b.querySelector($o(D))||c==="script"&&b.querySelector(ha(D))||(c=b.createElement("link"),K2(c,"link",n),ge(c),b.head.appendChild(c)))}},m:function(n,c){Oa.m(n,c);var m=pc;if(m&&n){var b=c&&typeof c.as=="string"?c.as:"script",w='link[rel="modulepreload"][as="'+X2(b)+'"][href="'+X2(n)+'"]',D=w;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=f0(n)}if(!a5.has(D)&&(n=Vt({rel:"modulepreload",href:n},c),a5.set(D,n),m.querySelector(w)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(ha(D)))return}b=m.createElement("link"),K2(b,"link",n),ge(b),m.head.appendChild(b)}}},X:function(n,c){Oa.X(n,c);var m=pc;if(m&&n){var b=ee(m).hoistableScripts,w=f0(n),D=b.get(w);D||(D=m.querySelector(ha(w)),D||(n=Vt({src:n,async:!0},c),(c=a5.get(w))&&hu(n,c),D=m.createElement("script"),ge(D),K2(D,"link",n),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(w,D))}},S:function(n,c,m){Oa.S(n,c,m);var b=pc;if(b&&n){var w=ee(b).hoistableStyles,D=fn(n);c=c||"default";var I=w.get(D);if(!I){var G={loading:c9,preload:null};if(I=b.querySelector($o(D)))G.loading=up|i5;else{n=Vt({rel:"stylesheet",href:n,"data-precedence":c},m),(m=a5.get(D))&&oh(n,m);var ie=I=b.createElement("link");ge(ie),K2(ie,"link",n),ie._p=new Promise(function(le,we){ie.onload=le,ie.onerror=we}),ie.addEventListener("load",function(){G.loading|=up}),ie.addEventListener("error",function(){G.loading|=VP}),G.loading|=i5,du(I,c,b)}I={type:"stylesheet",instance:I,count:1,state:G},w.set(D,I)}}},M:function(n,c){Oa.M(n,c);var m=pc;if(m&&n){var b=ee(m).hoistableScripts,w=f0(n),D=b.get(w);D||(D=m.querySelector(ha(w)),D||(n=Vt({src:n,async:!0,type:"module"},c),(c=a5.get(w))&&hu(n,c),D=m.createElement("script"),ge(D),K2(D,"link",n),m.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(w,D))}}};var pc=typeof document>"u"?null:document,Jv=null,cp=null,DH=null,eg=null,T9=fh,Tp={$$typeof:m4,Provider:null,Consumer:null,_currentValue:T9,_currentValue2:T9,_threadCount:0},kP="%c%s%c ",NP="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",BP="",tg=" ",eae=Function.prototype.bind,PP=!1,jP=null,IP=null,FP=null,zP=null,qP=null,$P=null,UP=null,GP=null,ZP=null;jP=function(n,c,m,b){c=t(n,c),c!==null&&(m=r(c.memoizedState,m,0,b),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},IP=function(n,c,m){c=t(n,c),c!==null&&(m=a(c.memoizedState,m,0),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},FP=function(n,c,m,b){c=t(n,c),c!==null&&(m=s(c.memoizedState,m,b),c.memoizedState=m,c.baseState=m,n.memoizedProps=Vt({},n.memoizedProps),m=t4(n,2),m!==null&&Kt(m,n,2))},zP=function(n,c,m){n.pendingProps=r(n.memoizedProps,c,0,m),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},qP=function(n,c){n.pendingProps=a(n.memoizedProps,c,0),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},$P=function(n,c,m){n.pendingProps=s(n.memoizedProps,c,m),n.alternate&&(n.alternate.pendingProps=n.pendingProps),c=t4(n,2),c!==null&&Kt(c,n,2)},UP=function(n){var c=t4(n,2);c!==null&&Kt(c,n,2)},GP=function(n){l=n},ZP=function(n){i=n};var ng=!0,rg=null,RH=!1,f7=null,d7=null,h7=null,Qp=new Map,fp=new Map,p7=[],tae="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(" "),ig=null;if(Hu.prototype.render=bu.prototype.render=function(n){var c=this._internalRoot;if(c===null)throw Error("Cannot update an unmounted root.");var m=arguments;typeof m[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(m[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof m[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),m=n;var b=c.current,w=k4(b);_l(b,w,m,c,null,null)},Hu.prototype.unmount=bu.prototype.unmount=function(){var n=arguments;if(typeof n[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),n=this._internalRoot,n!==null){this._internalRoot=null;var c=n.containerInfo;(A1&($4|xr))!==yn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),_l(n.current,2,null,n,null,null),ca(),c[v0]=null}},Hu.prototype.unstable_scheduleHydration=function(n){if(n){var c=i1();n={blockedOn:null,target:n,priority:c};for(var m=0;m<p7.length&&c!==0&&c<p7[m].priority;m++);p7.splice(m,0,n),m===0&&ch(n)}},function(){var n=Qh.version;if(n!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
644
644
|
- react: `+(n+`
|
|
645
645
|
- react-dom: 19.1.0
|
|
646
646
|
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),L1.findDOMNode=function(n){var c=n._reactInternals;if(c===void 0)throw typeof n.render=="function"?Error("Unable to find node on an unmounted component."):(n=Object.keys(n).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+n));return n=E(c),n=n!==null?_(n):null,n=n===null?null:n.stateNode,n},!function(){var n={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Ce,reconcilerVersion:"19.1.0"};return n.overrideHookState=jP,n.overrideHookStateDeletePath=IP,n.overrideHookStateRenamePath=FP,n.overrideProps=zP,n.overridePropsDeletePath=qP,n.overridePropsRenamePath=$P,n.scheduleUpdate=UP,n.setErrorHandler=GP,n.setSuspenseHandler=ZP,n.scheduleRefresh=g,n.scheduleRoot=v,n.setRefreshHandler=H,n.getCurrentFiber=_b,n.getLaneLabelMap=Ab,n.injectProfilingHooks=de,ye(n)}()&&Ee&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var XP=window.location.protocol;/^(https?|file):$/.test(XP)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(XP==="file:"?`
|
|
647
647
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}vf.createRoot=function(n,c){if(!L(n))throw Error("Target container is not a DOM element.");Eu(n);var m=!1,b="",w=Vy,D=Ps,I=js,G=null;return c!=null&&(c.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof c=="object"&&c!==null&&c.$$typeof===Tr&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
648
648
|
|
|
649
649
|
let root = createRoot(domContainer);
|
|
650
|
-
root.render(<App />);`),c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(b=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(G=c.unstable_transitionCallbacks)),c=uh(n,1,!1,null,null,m,b,w,D,I,G,null),n[v0]=c.current,bl(n),new bu(c)},vf.hydrateRoot=function(n,c,m){if(!L(n))throw Error("Target container is not a DOM element.");Eu(n),c===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var b=!1,w="",D=Vy,I=Ps,G=js,ie=null,oe=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(w=m.identifierPrefix),m.onUncaughtError!==void 0&&(D=m.onUncaughtError),m.onCaughtError!==void 0&&(I=m.onCaughtError),m.onRecoverableError!==void 0&&(G=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(ie=m.unstable_transitionCallbacks),m.formState!==void 0&&(oe=m.formState)),c=uh(n,1,!0,c,m??null,b,w,D,I,G,ie,oe),c.context=B1(null),m=c.current,b=k4(m),b=We(b),w=W6(b),w.callback=null,Y6(m,w,b),m=b,c.current.lanes=m,T1(c,m),l6(c),n[v0]=c.current,bl(n),new Hu(c)},vf.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),vf}var UN;function Xre(){if(UN)return dy.exports;UN=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}}return e.NODE_ENV==="production"?(t(),dy.exports=Gre()):dy.exports=Zre(),dy.exports}var Wre=Xre();class Yre{constructor(t,r,s){le(this,"context");le(this,"focusStack");le(this,"plot");le(this,"reactRoot");le(this,"onChangeEmitter");le(this,"onChange");le(this,"currentInstruction","");le(this,"handleMouseEnter",t=>{t.currentTarget.setAttribute(xe.TITLE,this.currentInstruction)});le(this,"handleMouseLeave",t=>{t.currentTarget.removeAttribute(xe.TITLE)});this.context=t,this.focusStack=new ag,this.focusStack.push(this.context.scope),this.plot=r,this.reactRoot=Wre.createRoot(s,{identifierPrefix:this.context.id}),this.reactRoot.render(qre),this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event,this.plot.addEventListener("click",()=>{const o=this.plot.closest(xe.FIGURE),a=this.plot.closest(xe.ARTICLE);o&&o.removeAttribute(xe.TITLE),a&&a.removeAttribute(xe.TITLE)}),this.removeInstruction()}dispose(){var t;this.addInstruction(),this.onChangeEmitter.dispose(),(t=this.reactRoot)==null||t.unmount(),this.reactRoot=null}addInstruction(){const t=this.context.getInstruction(!0);this.currentInstruction=t,this.plot.setAttribute(xe.ARIA_LABEL,t),this.plot.setAttribute(xe.ROLE,xe.IMAGE),this.plot.tabIndex=0;const r=this.plot.closest(xe.FIGURE),s=this.plot.closest(xe.ARTICLE);r&&(r.setAttribute(xe.TITLE,t),r.addEventListener("mouseenter",this.handleMouseEnter),r.addEventListener("mouseleave",this.handleMouseLeave)),s&&(s.setAttribute(xe.TITLE,t),s.addEventListener("mouseenter",this.handleMouseEnter),s.addEventListener("mouseleave",this.handleMouseLeave))}removeInstruction(){this.plot.removeAttribute(xe.ARIA_LABEL),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=-1;const t=this.plot.closest(xe.FIGURE),r=this.plot.closest(xe.ARTICLE);t&&(t.removeAttribute(xe.TITLE),t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave)),r&&(r.removeAttribute(xe.TITLE),r.removeEventListener("mouseenter",this.handleMouseEnter),r.removeEventListener("mouseleave",this.handleMouseLeave))}toggleFocus(t){this.focusStack.removeLast(t)||this.focusStack.push(t),this.context.toggleScope(t),this.updateFocus(this.focusStack.peek())}updateFocus(t){(t==="TRACE"||t==="SUBPLOT")&&this.plot.focus(),this.onChangeEmitter.fire({value:t})}}const ts=class ts{constructor(){}static get ctrl(){return ts.IS_MAC?"command":"ctrl"}static get alt(){return ts.IS_MAC?"option":"alt"}static get enter(){return ts.IS_MAC?"return":"enter"}};le(ts,"IS_MAC",(()=>{var r;return(((r=navigator.userAgentData)==null?void 0:r.platform)??navigator.platform).toLowerCase().includes("mac")})());let Rt=ts;const db=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${Rt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${Rt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${Rt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${Rt.ctrl} + ,`},{description:"Open Chat",key:"?"}],GN=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${Rt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${Rt.ctrl} + ,`}];class Kre{constructor(t,r){le(this,"context");le(this,"display");le(this,"scopedMenuItems");this.context=t,this.display=r,this.scopedMenuItems={[b1.TRACE]:db,[b1.TRACE_LABEL]:db,[b1.BRAILLE]:db,[b1.SUBPLOT]:GN,[b1.FIGURE_LABEL]:GN}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(b1.HELP)}}class Jre{constructor(){le(this,"highlightedElements");this.highlightedElements=new Set}dispose(){this.unhighlight()}update(t){if(t.empty)return;this.unhighlight();const r=t.type==="subplot"?t.trace:t;if(r.empty||r.highlight.empty)return;const s=r.highlight,o=Array.isArray(s.elements)?s.elements:[s.elements];this.highlight(o)}highlight(t){for(const r of t){const s=u2.createHighlightElement(r,xe.MAIDR_HIGHLIGHT_COLOR);s.id=`${xe.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,this.highlightedElements.add(s)}}unhighlight(){this.highlightedElements.forEach(t=>t.remove()),this.highlightedElements.clear()}}class e0e{constructor(t,r){le(this,"context");le(this,"autoplay");this.context=t,this.autoplay=r}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class t0e{constructor(t,r){le(this,"context");le(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class n0e{constructor(t,r){le(this,"context");le(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class r0e{constructor(t,r){le(this,"context");le(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class i0e{constructor(t){le(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class a0e{constructor(t){le(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class o0e{constructor(t){le(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class l0e{constructor(t){le(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class _8{constructor(t,r){le(this,"context");le(this,"textViewModel");this.context=t,this.textViewModel=r}}class s0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`X label is ${t.xAxis}`;this.textViewModel.update(r)}}}class u0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`Y label is ${t.yAxis}`;this.textViewModel.update(r)}}}class c0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`Fill is ${t.fill}`;this.textViewModel.update(r)}}}class T0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(!t.empty){if(t.type==="figure"){const r=`Figure title is ${t.title}`;this.textViewModel.update(r)}else if(t.type==="trace"){const r=`Subplot title is ${t.title}`;this.textViewModel.update(r)}}}}class Q0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const r=`Subtitle is ${t.subtitle}`;this.textViewModel.update(r)}}}class f0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const r=`Caption is ${t.caption}`;this.textViewModel.update(r)}}}class d0e extends _8{constructor(r,s,o,a,i){super(r,i);le(this,"audio");le(this,"brailleViewModel");le(this,"highlight");this.audio=s,this.highlight=o,this.brailleViewModel=a}execute(){const r=this.context.state;switch(r.type){case"figure":case"subplot":this.textViewModel.update(r);break;case"trace":this.textViewModel.update(r),this.audio.update(r),this.brailleViewModel.update(r),this.highlight.update(r);break}}}class h0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class p0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class m0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class y0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class v0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class g0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class L0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class x0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class b0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class H0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class E0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class M0e{constructor(t){le(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class S0e{constructor(t,r){le(this,"context");le(this,"brailleViewModel");this.context=t,this.brailleViewModel=r}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class _0e{constructor(t){le(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class A0e{constructor(t){le(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class O0e{constructor(t,r){le(this,"context");le(this,"reviewViewModel");this.context=t,this.reviewViewModel=r}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class C0e{constructor(t){le(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class w0e{constructor(t){le(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class V0e{constructor(t){le(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class ZN{constructor(t,r){le(this,"context");le(this,"scope");this.context=t,this.scope=r}execute(){this.context.toggleScope(this.scope)}}class D0e{constructor(t){le(this,"context");le(this,"audioService");le(this,"autoplayService");le(this,"highlightService");le(this,"brailleViewModel");le(this,"chatViewModel");le(this,"helpViewModel");le(this,"reviewViewModel");le(this,"settingsViewModel");le(this,"textViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highlightService=t.highlightService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel}create(t){switch(t){case"MOVE_UP":return new h0e(this.context);case"MOVE_DOWN":return new p0e(this.context);case"MOVE_LEFT":return new m0e(this.context);case"MOVE_RIGHT":return new y0e(this.context);case"MOVE_TO_TOP_EXTREME":return new v0e(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new g0e(this.context);case"MOVE_TO_LEFT_EXTREME":return new L0e(this.context);case"MOVE_TO_RIGHT_EXTREME":return new x0e(this.context);case"MOVE_TO_TRACE_CONTEXT":return new b0e(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new H0e(this.context);case"MOVE_TO_NEXT_TRACE":return new E0e(this.context);case"MOVE_TO_PREV_TRACE":return new M0e(this.context);case"TOGGLE_AUDIO":return new A0e(this.audioService);case"TOGGLE_BRAILLE":return new S0e(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new _0e(this.textViewModel);case"TOGGLE_REVIEW":return new O0e(this.context,this.reviewViewModel);case"TOGGLE_HELP":return new C0e(this.helpViewModel);case"TOGGLE_CHAT":return new w0e(this.chatViewModel);case"TOGGLE_SETTINGS":return new V0e(this.settingsViewModel);case"DESCRIBE_X":return new s0e(this.context,this.textViewModel);case"DESCRIBE_Y":return new u0e(this.context,this.textViewModel);case"DESCRIBE_FILL":return new c0e(this.context,this.textViewModel);case"DESCRIBE_POINT":return new d0e(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel);case"DESCRIBE_TITLE":return new T0e(this.context,this.textViewModel);case"DESCRIBE_SUBTITLE":return new Q0e(this.context,this.textViewModel);case"DESCRIBE_CAPTION":return new f0e(this.context,this.textViewModel);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new ZN(this.context,b1.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":case"DEACTIVATE_TRACE_LABEL_SCOPE":return new ZN(this.context,b1.TRACE_LABEL);case"AUTOPLAY_UPWARD":return new e0e(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new t0e(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new n0e(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new r0e(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new i0e(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new a0e(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new o0e(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new l0e(this.autoplayService);default:throw new Error(`Invalid command name: ${t}`)}}}const R0e={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${Rt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${Rt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${Rt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${Rt.ctrl}+shift+left`,STOP_AUTOPLAY:`${Rt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`,DESCRIBE_POINT:"space"},k0e={TOGGLE_CHAT:"esc"},N0e={DEACTIVATE_FIGURE_LABEL_SCOPE:"*",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${Rt.ctrl}+/`},B0e={TOGGLE_HELP:"esc"},P0e={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${Rt.enter}`,TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`},j0e={DEACTIVATE_TRACE_LABEL_SCOPE:"*",DESCRIBE_X:"x",DESCRIBE_Y:"y",DESCRIBE_FILL:"f",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${Rt.ctrl}+/`},I0e={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
650
|
+
root.render(<App />);`),c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(b=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(G=c.unstable_transitionCallbacks)),c=uh(n,1,!1,null,null,m,b,w,D,I,G,null),n[v0]=c.current,bl(n),new bu(c)},vf.hydrateRoot=function(n,c,m){if(!L(n))throw Error("Target container is not a DOM element.");Eu(n),c===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var b=!1,w="",D=Vy,I=Ps,G=js,ie=null,le=null;return m!=null&&(m.unstable_strictMode===!0&&(b=!0),m.identifierPrefix!==void 0&&(w=m.identifierPrefix),m.onUncaughtError!==void 0&&(D=m.onUncaughtError),m.onCaughtError!==void 0&&(I=m.onCaughtError),m.onRecoverableError!==void 0&&(G=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(ie=m.unstable_transitionCallbacks),m.formState!==void 0&&(le=m.formState)),c=uh(n,1,!0,c,m??null,b,w,D,I,G,ie,le),c.context=B1(null),m=c.current,b=k4(m),b=We(b),w=W6(b),w.callback=null,Y6(m,w,b),m=b,c.current.lanes=m,T1(c,m),l6(c),n[v0]=c.current,bl(n),new Hu(c)},vf.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),vf}var UN;function Xre(){if(UN)return dy.exports;UN=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}}return e.NODE_ENV==="production"?(t(),dy.exports=Gre()):dy.exports=Zre(),dy.exports}var Wre=Xre();class Yre{constructor(t,r,s){oe(this,"context");oe(this,"focusStack");oe(this,"plot");oe(this,"reactRoot");oe(this,"onChangeEmitter");oe(this,"onChange");oe(this,"currentInstruction","");oe(this,"handleMouseEnter",t=>{t.currentTarget.setAttribute(xe.TITLE,this.currentInstruction)});oe(this,"handleMouseLeave",t=>{t.currentTarget.removeAttribute(xe.TITLE)});this.context=t,this.focusStack=new ag,this.focusStack.push(this.context.scope),this.plot=r,this.reactRoot=Wre.createRoot(s,{identifierPrefix:this.context.id}),this.reactRoot.render(qre),this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event,this.plot.addEventListener("click",()=>{const o=this.plot.closest(xe.FIGURE),a=this.plot.closest(xe.ARTICLE);o&&o.removeAttribute(xe.TITLE),a&&a.removeAttribute(xe.TITLE)}),this.removeInstruction()}dispose(){var t;this.addInstruction(),this.onChangeEmitter.dispose(),(t=this.reactRoot)==null||t.unmount(),this.reactRoot=null}addInstruction(){const t=this.context.getInstruction(!0);this.currentInstruction=t,this.plot.setAttribute(xe.ARIA_LABEL,t),this.plot.setAttribute(xe.ROLE,xe.IMAGE),this.plot.tabIndex=0;const r=this.plot.closest(xe.FIGURE),s=this.plot.closest(xe.ARTICLE);r&&(r.setAttribute(xe.TITLE,t),r.addEventListener("mouseenter",this.handleMouseEnter),r.addEventListener("mouseleave",this.handleMouseLeave)),s&&(s.setAttribute(xe.TITLE,t),s.addEventListener("mouseenter",this.handleMouseEnter),s.addEventListener("mouseleave",this.handleMouseLeave))}removeInstruction(){this.plot.removeAttribute(xe.ARIA_LABEL),this.plot.setAttribute(xe.ROLE,xe.APPLICATION),this.plot.tabIndex=-1;const t=this.plot.closest(xe.FIGURE),r=this.plot.closest(xe.ARTICLE);t&&(t.removeAttribute(xe.TITLE),t.removeEventListener("mouseenter",this.handleMouseEnter),t.removeEventListener("mouseleave",this.handleMouseLeave)),r&&(r.removeAttribute(xe.TITLE),r.removeEventListener("mouseenter",this.handleMouseEnter),r.removeEventListener("mouseleave",this.handleMouseLeave))}toggleFocus(t){this.focusStack.removeLast(t)||this.focusStack.push(t),this.context.toggleScope(t),this.updateFocus(this.focusStack.peek())}updateFocus(t){(t==="TRACE"||t==="SUBPLOT")&&this.plot.focus(),this.onChangeEmitter.fire({value:t})}}const ts=class ts{constructor(){}static get ctrl(){return ts.IS_MAC?"command":"ctrl"}static get alt(){return ts.IS_MAC?"option":"alt"}static get enter(){return ts.IS_MAC?"return":"enter"}};oe(ts,"IS_MAC",(()=>{var r;return(((r=navigator.userAgentData)==null?void 0:r.platform)??navigator.platform).toLowerCase().includes("mac")})());let Rt=ts;const db=[{description:"Navigate Data Points",key:"arrow keys"},{description:"Move to Next Layer",key:"page up"},{description:"Move to Previous Layer",key:"page down"},{description:"Go to Left/Right/Top/Bottom Extreme Point",key:`${Rt.ctrl} + arrow keys`},{description:"Toggle Braille Mode",key:"b"},{description:"Toggle Text Mode",key:"t"},{description:"Toggle Sonification Mode",key:"s"},{description:"Toggle Review Mode",key:"r"},{description:"Autoplay Outward",key:`${Rt.ctrl} + shift + arrow keys`},{description:"Stop Autoplay",key:`${Rt.ctrl}`},{description:"Speed Up Autoplay",key:". (period)"},{description:"Speed Down Autoplay",key:", (comma)"},{description:"Reset Autoplay Speed",key:"/ (slash)"},{description:"Replay Current Point",key:"space"},{description:"Announce Plot Title",key:"l t"},{description:"Announce X Label",key:"l x"},{description:"Announce Y Label",key:"l y"},{description:"Announce Fill (Z) Label",key:"l f"},{description:"Open Settings",key:`${Rt.ctrl} + ,`},{description:"Open Chat",key:"?"}],GN=[{description:"Move around Subplot",key:"arrow keys"},{description:"Activate Current Subplot",key:`${Rt.enter}`},{description:"Announce Plot Title",key:"l t"},{description:"Announce Subtitle",key:"l s"},{description:"Announce Caption",key:"l c"},{description:"Open Settings",key:`${Rt.ctrl} + ,`}];class Kre{constructor(t,r){oe(this,"context");oe(this,"display");oe(this,"scopedMenuItems");this.context=t,this.display=r,this.scopedMenuItems={[b1.TRACE]:db,[b1.TRACE_LABEL]:db,[b1.BRAILLE]:db,[b1.SUBPLOT]:GN,[b1.FIGURE_LABEL]:GN}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(b1.HELP)}}class Jre{constructor(){oe(this,"highlightedElements");this.highlightedElements=new Set}dispose(){this.unhighlight()}update(t){if(t.empty)return;this.unhighlight();const r=t.type==="subplot"?t.trace:t;if(r.empty||r.highlight.empty)return;const s=r.highlight,o=Array.isArray(s.elements)?s.elements:[s.elements];this.highlight(o)}highlight(t){for(const r of t){const s=u2.createHighlightElement(r,xe.MAIDR_HIGHLIGHT_COLOR);s.id=`${xe.MAIDR_HIGHLIGHT}-${Date.now()}-${Math.random()}`,this.highlightedElements.add(s)}}unhighlight(){this.highlightedElements.forEach(t=>t.remove()),this.highlightedElements.clear()}}class e0e{constructor(t,r){oe(this,"context");oe(this,"autoplay");this.context=t,this.autoplay=r}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("UPWARD",t)}}class t0e{constructor(t,r){oe(this,"context");oe(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("DOWNWARD",t)}}class n0e{constructor(t,r){oe(this,"context");oe(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("FORWARD",t)}}class r0e{constructor(t,r){oe(this,"context");oe(this,"autoplay");this.autoplay=r,this.context=t}execute(){const t=this.context.state;t.type==="trace"&&!t.empty&&this.autoplay.start("BACKWARD",t)}}class i0e{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class a0e{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class o0e{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class l0e{constructor(t){oe(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class _8{constructor(t,r){oe(this,"context");oe(this,"textViewModel");this.context=t,this.textViewModel=r}}class s0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`X label is ${t.xAxis}`;this.textViewModel.update(r)}}}class u0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`Y label is ${t.yAxis}`;this.textViewModel.update(r)}}}class c0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="trace"&&!t.empty){const r=`Fill is ${t.fill}`;this.textViewModel.update(r)}}}class T0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(!t.empty){if(t.type==="figure"){const r=`Figure title is ${t.title}`;this.textViewModel.update(r)}else if(t.type==="trace"){const r=`Subplot title is ${t.title}`;this.textViewModel.update(r)}}}}class Q0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const r=`Subtitle is ${t.subtitle}`;this.textViewModel.update(r)}}}class f0e extends _8{constructor(t,r){super(t,r)}execute(){const t=this.context.state;if(t.type==="figure"&&!t.empty){const r=`Caption is ${t.caption}`;this.textViewModel.update(r)}}}class d0e extends _8{constructor(r,s,o,a,i){super(r,i);oe(this,"audio");oe(this,"brailleViewModel");oe(this,"highlight");this.audio=s,this.highlight=o,this.brailleViewModel=a}execute(){const r=this.context.state;switch(r.type){case"figure":case"subplot":this.textViewModel.update(r);break;case"trace":this.textViewModel.update(r),this.audio.update(r),this.brailleViewModel.update(r),this.highlight.update(r);break}}}class h0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class p0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class m0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class y0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class v0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class g0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class L0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class x0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class b0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class H0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class E0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class M0e{constructor(t){oe(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class S0e{constructor(t,r){oe(this,"context");oe(this,"brailleViewModel");this.context=t,this.brailleViewModel=r}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class _0e{constructor(t){oe(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class A0e{constructor(t){oe(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class O0e{constructor(t,r){oe(this,"context");oe(this,"reviewViewModel");this.context=t,this.reviewViewModel=r}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class C0e{constructor(t){oe(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class w0e{constructor(t){oe(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class V0e{constructor(t){oe(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class ZN{constructor(t,r){oe(this,"context");oe(this,"scope");this.context=t,this.scope=r}execute(){this.context.toggleScope(this.scope)}}class D0e{constructor(t){oe(this,"context");oe(this,"audioService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"brailleViewModel");oe(this,"chatViewModel");oe(this,"helpViewModel");oe(this,"reviewViewModel");oe(this,"settingsViewModel");oe(this,"textViewModel");this.context=t.context,this.audioService=t.audioService,this.autoplayService=t.autoplayService,this.highlightService=t.highlightService,this.brailleViewModel=t.brailleViewModel,this.chatViewModel=t.chatViewModel,this.helpViewModel=t.helpViewModel,this.reviewViewModel=t.reviewViewModel,this.settingsViewModel=t.settingsViewModel,this.textViewModel=t.textViewModel}create(t){switch(t){case"MOVE_UP":return new h0e(this.context);case"MOVE_DOWN":return new p0e(this.context);case"MOVE_LEFT":return new m0e(this.context);case"MOVE_RIGHT":return new y0e(this.context);case"MOVE_TO_TOP_EXTREME":return new v0e(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new g0e(this.context);case"MOVE_TO_LEFT_EXTREME":return new L0e(this.context);case"MOVE_TO_RIGHT_EXTREME":return new x0e(this.context);case"MOVE_TO_TRACE_CONTEXT":return new b0e(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new H0e(this.context);case"MOVE_TO_NEXT_TRACE":return new E0e(this.context);case"MOVE_TO_PREV_TRACE":return new M0e(this.context);case"TOGGLE_AUDIO":return new A0e(this.audioService);case"TOGGLE_BRAILLE":return new S0e(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new _0e(this.textViewModel);case"TOGGLE_REVIEW":return new O0e(this.context,this.reviewViewModel);case"TOGGLE_HELP":return new C0e(this.helpViewModel);case"TOGGLE_CHAT":return new w0e(this.chatViewModel);case"TOGGLE_SETTINGS":return new V0e(this.settingsViewModel);case"DESCRIBE_X":return new s0e(this.context,this.textViewModel);case"DESCRIBE_Y":return new u0e(this.context,this.textViewModel);case"DESCRIBE_FILL":return new c0e(this.context,this.textViewModel);case"DESCRIBE_POINT":return new d0e(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel);case"DESCRIBE_TITLE":return new T0e(this.context,this.textViewModel);case"DESCRIBE_SUBTITLE":return new Q0e(this.context,this.textViewModel);case"DESCRIBE_CAPTION":return new f0e(this.context,this.textViewModel);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new ZN(this.context,b1.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":case"DEACTIVATE_TRACE_LABEL_SCOPE":return new ZN(this.context,b1.TRACE_LABEL);case"AUTOPLAY_UPWARD":return new e0e(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new t0e(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new n0e(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new r0e(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new i0e(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new a0e(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new o0e(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new l0e(this.autoplayService);default:throw new Error(`Invalid command name: ${t}`)}}}const R0e={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${Rt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${Rt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${Rt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${Rt.ctrl}+shift+left`,STOP_AUTOPLAY:`${Rt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`,DESCRIBE_POINT:"space"},k0e={TOGGLE_CHAT:"esc"},N0e={DEACTIVATE_FIGURE_LABEL_SCOPE:"*",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${Rt.ctrl}+/`},B0e={TOGGLE_HELP:"esc"},P0e={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_TRACE_CONTEXT:`${Rt.enter}`,TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`},j0e={DEACTIVATE_TRACE_LABEL_SCOPE:"*",DESCRIBE_X:"x",DESCRIBE_Y:"y",DESCRIBE_FILL:"f",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${Rt.ctrl}+/`},I0e={TOGGLE_BRAILLE:"b",TOGGLE_REVIEW:"r",ALLOW_DEFAULT:`up, down, left, right,
|
|
651
651
|
${Rt.ctrl}+up, ${Rt.ctrl}+down,
|
|
652
652
|
${Rt.ctrl}+left, ${Rt.ctrl}+right,
|
|
653
653
|
pageup, pagedown, home, end,
|
|
654
|
-
tab, ${Rt.ctrl}+a, ${Rt.ctrl}+c`},F0e={TOGGLE_SETTINGS:"esc"},z0e={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${Rt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${Rt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${Rt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${Rt.ctrl}+shift+left`,STOP_AUTOPLAY:`${Rt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`,DESCRIBE_POINT:"space"},q0e={[b1.BRAILLE]:R0e,[b1.CHAT]:k0e,[b1.FIGURE_LABEL]:N0e,[b1.HELP]:B0e,[b1.REVIEW]:I0e,[b1.SETTINGS]:F0e,[b1.SUBPLOT]:P0e,[b1.TRACE]:z0e,[b1.TRACE_LABEL]:j0e};class $0e{constructor(t){le(this,"commandFactory");this.commandFactory=new D0e(t)}register(t){F3.filter=r=>{const s=r.target;return s.tagName.toLowerCase()===xe.INPUT?s.id.startsWith(xe.REVIEW_INPUT):s.tagName.toLowerCase()===xe.TEXT_AREA?s.id.startsWith(xe.BRAILLE_TEXT_AREA):!0};for(const[r,s]of Object.entries(q0e))for(const[o,a]of Object.entries(s))o==="STOP_AUTOPLAY"&&F3("*",b1.TRACE,i=>{(F3.command||F3.ctrl)&&this.commandFactory.create(o).execute(i)}),F3(a,{scope:r},i=>{o!=="ALLOW_DEFAULT"&&(i.preventDefault(),this.commandFactory.create(o).execute(i))});F3.setScope(t)}unregister(){F3.unbind()}}class U0e{constructor(){le(this,"onChangeEmitter");le(this,"onChange");this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class G0e{constructor(t,r,s){le(this,"notification");le(this,"display");le(this,"text");le(this,"enabled");le(this,"onChangeEmitter");le(this,"onChange");this.notification=t,this.display=r,this.text=s,this.enabled=!1,this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const r=this.text.format(t);r&&this.onChangeEmitter.fire({value:r})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(b1.REVIEW);const r=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(r)}}const hb="maidr-settings";class Z0e{constructor(t,r){le(this,"storage");le(this,"display");le(this,"defaultSettings");le(this,"currentSettings");this.storage=t,this.display=r,this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{GPT:{enabled:!1,apiKey:"",name:"GPT",version:"gpt-4o"},CLAUDE:{enabled:!1,apiKey:"",name:"Claude",version:"claude-3-7-sonnet-latest"},GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}};const s=this.storage.load(hb);this.currentSettings=s??this.defaultSettings}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(hb,this.currentSettings)}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(hb),this.currentSettings}toggle(){this.display.toggleFocus(b1.SETTINGS)}}class X0e{save(t,r){try{const s=JSON.stringify(r);localStorage.setItem(t,s)}catch(s){console.error(`Error while saving ${t} to storage`,s)}}load(t){try{const r=localStorage.getItem(t);return r===null?null:JSON.parse(r)}catch(r){return console.error(`Error while loading ${t} from storage`,r),null}}remove(t){try{localStorage.removeItem(t)}catch(r){console.error(`Error while removing ${t} from storage`,r)}}}class W0e{constructor(t){le(this,"notification");le(this,"mode");le(this,"onChangeEmitter");le(this,"onChange");this.notification=t,this.mode="verbose",this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}format(t){return typeof t=="string"?t:!t||t.empty?`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,r,s){const o=s.length===1?`This is a ${s[0]} plot`:`This is a multi-layered plot containing ${s.join(xe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${r}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,r,s){return`Layer ${t} of ${r}: ${s} plot`}formatVerboseTraceText(t){const r=new Array;return r.push(t.main.label,xe.IS),t.range!==void 0?r.push(String(t.range.min),xe.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?r.push(t.main.value.join(xe.COMMA_SPACE)):r.push(String(t.main.value)),r.push(xe.COMMA_SPACE,t.cross.label),t.section!==void 0&&(r.push(xe.COMMA_SPACE),Array.isArray(t.cross.value)&&r.push(String(t.cross.value.length),xe.SPACE),r.push(t.section)),Array.isArray(t.cross.value)?t.cross.value.length>1?r.push(xe.ARE,t.cross.value.join(xe.COMMA_SPACE)):t.cross.value.length>0&&r.push(xe.IS,t.cross.value.join(xe.COMMA_SPACE)):r.push(xe.IS,String(t.cross.value)),t.fill!==void 0&&r.push(xe.COMMA_SPACE,t.fill.label,xe.IS,t.fill.value),r.join(xe.EMPTY)}formatTerseTraceText(t){const r=new Array;return Array.isArray(t.main.value)?r.push(xe.OPEN_BRACKET,t.main.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):r.push(String(t.main.value),xe.COMMA_SPACE),t.section!==void 0&&(Array.isArray(t.cross.value)&&r.push(String(t.cross.value.length),xe.SPACE),r.push(t.section,xe.SPACE)),t.fill!==void 0&&r.push(t.fill.value,xe.COMMA_SPACE),Array.isArray(t.cross.value)?r.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):r.push(String(t.cross.value)),r.join(xe.EMPTY)}update(t){if(this.mode==="off")return;const r=this.format(t);r&&this.onChangeEmitter.fire({value:r})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class XN{constructor(t,r,s){le(this,"figure");le(this,"context");le(this,"displayService");le(this,"notificationService");le(this,"settingsService");le(this,"audioService");le(this,"brailleService");le(this,"textService");le(this,"reviewService");le(this,"autoplayService");le(this,"highlightService");le(this,"helpService");le(this,"chatService");le(this,"textViewModel");le(this,"brailleViewModel");le(this,"reviewViewModel");le(this,"displayViewModel");le(this,"helpViewModel");le(this,"chatViewModel");le(this,"settingsViewModel");le(this,"keybinding");this.figure=new Rj(t),this.context=new lj(this.figure),this.displayService=new Yre(this.context,r,s),this.notificationService=new U0e,this.settingsService=new Z0e(new X0e,this.displayService),this.audioService=new Ij(this.notificationService,this.context.state),this.brailleService=new Kj(this.context,this.notificationService,this.displayService),this.textService=new W0e(this.notificationService),this.reviewService=new G0e(this.notificationService,this.displayService,this.textService),this.autoplayService=new Gj(this.context,this.notificationService),this.highlightService=new Jre,this.helpService=new Kre(this.context,this.displayService),this.chatService=new tI(this.displayService,t),this.textViewModel=new dz(Da,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new PF(Da,this.brailleService),this.reviewViewModel=new iz(Da,this.reviewService),this.displayViewModel=new WF(Da,this.displayService),this.helpViewModel=new ez(Da,this.helpService),this.chatViewModel=new UF(Da,this.chatService,this.audioService),this.settingsViewModel=new lz(Da,this.settingsService),this.notificationService.notify(this.context.getInstruction(!1)),this.keybinding=new $0e({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope)}dispose(){this.keybinding.unregister(),l5.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){l5.instance.register("text",this.textViewModel),l5.instance.register("braille",this.brailleViewModel),l5.instance.register("review",this.reviewViewModel),l5.instance.register("display",this.displayViewModel),l5.instance.register("help",this.helpViewModel),l5.instance.register("chat",this.chatViewModel),l5.instance.register("settings",this.settingsViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.subplots.forEach(t=>t.forEach(r=>{r.addObserver(this.textService),r.addObserver(this.audioService),r.addObserver(this.brailleService),r.addObserver(this.highlightService),r.traces.forEach(s=>s.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(g4.DOM_LOADED,WN):WN();function WN(){const e=document.querySelectorAll(`[${xe.MAIDR_DATA}]`);if(e.forEach(s=>{const o=s.getAttribute(xe.MAIDR_DATA);if(o)try{const a=JSON.parse(o);YN(a,s)}catch(a){console.error("Error parsing maidr attribute:",a)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const r=document.getElementById(t.id);r&&YN(t,r)}function YN(e,t){let r=null,s=null,o=null;const a=()=>{setTimeout(()=>{if(!r)return;const u=document.activeElement;r.contains(u)||(o==null||o.dispose(),o=null)},0)},i=()=>{setTimeout(()=>{if(!(!r||!s)&&!o){const u=JSON.parse(JSON.stringify(e));o=new XN(u,t,s)}},0)},l=document.createElement(xe.FIGURE);l.id=`${xe.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(l,t),l.appendChild(t);const T=document.createElement(xe.ARTICLE);T.id=`${xe.MAIDR_ARTICLE}-${e.id}`,l.parentNode.replaceChild(T,l),T.appendChild(l),s=document.createElement(xe.DIV),s.id=`${xe.REACT_CONTAINER}-${e.id}`,l.appendChild(s),r=l,t.addEventListener(g4.FOCUS_IN,i),t.addEventListener(g4.CLICK,i),r.addEventListener(g4.FOCUS_OUT,a),(()=>{const u=JSON.parse(JSON.stringify(e));new XN(u,t,s).dispose()})()}});
|
|
654
|
+
tab, ${Rt.ctrl}+a, ${Rt.ctrl}+c`},F0e={TOGGLE_SETTINGS:"esc"},z0e={ACTIVATE_TRACE_LABEL_SCOPE:"l",AUTOPLAY_UPWARD:`${Rt.ctrl}+shift+up`,AUTOPLAY_DOWNWARD:`${Rt.ctrl}+shift+down`,AUTOPLAY_FORWARD:`${Rt.ctrl}+shift+right`,AUTOPLAY_BACKWARD:`${Rt.ctrl}+shift+left`,STOP_AUTOPLAY:`${Rt.ctrl}, up, down, left, right`,SPEED_UP_AUTOPLAY:".",SPEED_DOWN_AUTOPLAY:",",RESET_AUTOPLAY_SPEED:"/",MOVE_UP:"up",MOVE_DOWN:"down",MOVE_RIGHT:"right",MOVE_LEFT:"left",MOVE_TO_TOP_EXTREME:`${Rt.ctrl}+up`,MOVE_TO_BOTTOM_EXTREME:`${Rt.ctrl}+down`,MOVE_TO_LEFT_EXTREME:`${Rt.ctrl}+left`,MOVE_TO_RIGHT_EXTREME:`${Rt.ctrl}+right`,MOVE_TO_SUBPLOT_CONTEXT:"esc",MOVE_TO_NEXT_TRACE:"pageup",MOVE_TO_PREV_TRACE:"pagedown",TOGGLE_BRAILLE:"b",TOGGLE_TEXT:"t",TOGGLE_AUDIO:"s",TOGGLE_REVIEW:"r",TOGGLE_HELP:`${Rt.ctrl}+/`,TOGGLE_CHAT:"shift+/",TOGGLE_SETTINGS:`${Rt.ctrl}+,`,DESCRIBE_POINT:"space"},q0e={[b1.BRAILLE]:R0e,[b1.CHAT]:k0e,[b1.FIGURE_LABEL]:N0e,[b1.HELP]:B0e,[b1.REVIEW]:I0e,[b1.SETTINGS]:F0e,[b1.SUBPLOT]:P0e,[b1.TRACE]:z0e,[b1.TRACE_LABEL]:j0e};class $0e{constructor(t){oe(this,"commandFactory");this.commandFactory=new D0e(t)}register(t){F3.filter=r=>{const s=r.target;return s.tagName.toLowerCase()===xe.INPUT?s.id.startsWith(xe.REVIEW_INPUT):s.tagName.toLowerCase()===xe.TEXT_AREA?s.id.startsWith(xe.BRAILLE_TEXT_AREA):!0};for(const[r,s]of Object.entries(q0e))for(const[o,a]of Object.entries(s))o==="STOP_AUTOPLAY"&&F3("*",b1.TRACE,i=>{(F3.command||F3.ctrl)&&this.commandFactory.create(o).execute(i)}),F3(a,{scope:r},i=>{o!=="ALLOW_DEFAULT"&&(i.preventDefault(),this.commandFactory.create(o).execute(i))});F3.setScope(t)}unregister(){F3.unbind()}}class U0e{constructor(){oe(this,"onChangeEmitter");oe(this,"onChange");this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class G0e{constructor(t,r,s){oe(this,"notification");oe(this,"display");oe(this,"text");oe(this,"enabled");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.display=r,this.text=s,this.enabled=!1,this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}update(t){if(!this.enabled||t.empty)return;const r=this.text.format(t);r&&this.onChangeEmitter.fire({value:r})}toggle(t){if(t.empty){this.notification.notify("No info for review");return}this.enabled=!this.enabled,this.update(t),this.display.toggleFocus(b1.REVIEW);const r=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(r)}}const hb="maidr-settings";class Z0e{constructor(t,r,s){oe(this,"storage");oe(this,"display");oe(this,"audio");oe(this,"defaultSettings");oe(this,"currentSettings");this.storage=t,this.display=r,this.audio=s,this.defaultSettings={general:{volume:50,highlightColor:"#03c809",brailleDisplaySize:32,minFrequency:200,maxFrequency:1e3,autoplayDuration:4e3,ariaMode:"assertive"},llm:{expertiseLevel:"basic",customInstruction:"",models:{GPT:{enabled:!1,apiKey:"",name:"GPT",version:"gpt-4o"},CLAUDE:{enabled:!1,apiKey:"",name:"Claude",version:"claude-3-7-sonnet-latest"},GEMINI:{enabled:!1,apiKey:"",name:"Gemini",version:"gemini-2.0-flash"}}}};const o=this.storage.load(hb);this.currentSettings=o??this.defaultSettings,this.updateVolume(this.currentSettings.general.volume)}updateVolume(t){this.audio.setVolume(t)}loadSettings(){return this.currentSettings}saveSettings(t){this.currentSettings=t,this.storage.save(hb,this.currentSettings),this.updateVolume(t.general.volume)}resetSettings(){return this.currentSettings=this.defaultSettings,this.storage.remove(hb),this.updateVolume(this.defaultSettings.general.volume),this.currentSettings}toggle(){this.display.toggleFocus(b1.SETTINGS)}}class X0e{save(t,r){try{const s=JSON.stringify(r);localStorage.setItem(t,s)}catch(s){console.error(`Error while saving ${t} to storage`,s)}}load(t){try{const r=localStorage.getItem(t);return r===null?null:JSON.parse(r)}catch(r){return console.error(`Error while loading ${t} from storage`,r),null}}remove(t){try{localStorage.removeItem(t)}catch(r){console.error(`Error while removing ${t} from storage`,r)}}}class W0e{constructor(t){oe(this,"notification");oe(this,"mode");oe(this,"onChangeEmitter");oe(this,"onChange");this.notification=t,this.mode="verbose",this.onChangeEmitter=new Q9,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}format(t){return typeof t=="string"?t:!t||t.empty?`No ${t.type==="trace"?"plot":t.type} info to display`:t.type==="figure"?this.formatFigureText(t.index,t.size,t.traceTypes):t.type==="subplot"?this.formatSubplotText(t.index,t.size,t.trace.traceType):this.mode==="verbose"?this.formatVerboseTraceText(t.text):this.formatTerseTraceText(t.text)}formatFigureText(t,r,s){const o=s.length===1?`This is a ${s[0]} plot`:`This is a multi-layered plot containing ${s.join(xe.COMMA_SPACE)} plots`;return`Subplot ${t} of ${r}: ${o}. Press 'ENTER' to select this subplot.`}formatSubplotText(t,r,s){return`Layer ${t} of ${r}: ${s} plot`}formatVerboseTraceText(t){const r=new Array;return r.push(t.main.label,xe.IS),t.range!==void 0?r.push(String(t.range.min),xe.THROUGH,String(t.range.max)):Array.isArray(t.main.value)?r.push(t.main.value.join(xe.COMMA_SPACE)):r.push(String(t.main.value)),r.push(xe.COMMA_SPACE,t.cross.label),t.section!==void 0&&(r.push(xe.COMMA_SPACE),Array.isArray(t.cross.value)&&r.push(String(t.cross.value.length),xe.SPACE),r.push(t.section)),Array.isArray(t.cross.value)?t.cross.value.length>1?r.push(xe.ARE,t.cross.value.join(xe.COMMA_SPACE)):t.cross.value.length>0&&r.push(xe.IS,t.cross.value.join(xe.COMMA_SPACE)):r.push(xe.IS,String(t.cross.value)),t.fill!==void 0&&r.push(xe.COMMA_SPACE,t.fill.label,xe.IS,t.fill.value),r.join(xe.EMPTY)}formatTerseTraceText(t){const r=new Array;return Array.isArray(t.main.value)?r.push(xe.OPEN_BRACKET,t.main.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):r.push(String(t.main.value),xe.COMMA_SPACE),t.section!==void 0&&(Array.isArray(t.cross.value)&&r.push(String(t.cross.value.length),xe.SPACE),r.push(t.section,xe.SPACE)),t.fill!==void 0&&r.push(t.fill.value,xe.COMMA_SPACE),Array.isArray(t.cross.value)?r.push(xe.OPEN_BRACKET,t.cross.value.join(xe.COMMA_SPACE),xe.CLOSE_BRACKET):r.push(String(t.cross.value)),r.join(xe.EMPTY)}update(t){if(this.mode==="off")return;const r=this.format(t);r&&this.onChangeEmitter.fire({value:r})}toggle(){switch(this.mode){case"off":this.mode="verbose";break;case"terse":this.mode="off";break;case"verbose":this.mode="terse";break}const t=`Text mode is ${this.mode}`;return this.notification.notify(t),this.mode!=="off"}}class XN{constructor(t,r,s){oe(this,"figure");oe(this,"context");oe(this,"displayService");oe(this,"notificationService");oe(this,"settingsService");oe(this,"audioService");oe(this,"brailleService");oe(this,"textService");oe(this,"reviewService");oe(this,"autoplayService");oe(this,"highlightService");oe(this,"helpService");oe(this,"chatService");oe(this,"textViewModel");oe(this,"brailleViewModel");oe(this,"reviewViewModel");oe(this,"displayViewModel");oe(this,"helpViewModel");oe(this,"chatViewModel");oe(this,"settingsViewModel");oe(this,"keybinding");this.figure=new Rj(t),this.context=new lj(this.figure),this.displayService=new Yre(this.context,r,s),this.notificationService=new U0e,this.audioService=new Ij(this.notificationService,this.context.state),this.settingsService=new Z0e(new X0e,this.displayService,this.audioService),this.brailleService=new Kj(this.context,this.notificationService,this.displayService),this.textService=new W0e(this.notificationService),this.reviewService=new G0e(this.notificationService,this.displayService,this.textService),this.autoplayService=new Gj(this.context,this.notificationService),this.highlightService=new Jre,this.helpService=new Kre(this.context,this.displayService),this.chatService=new tI(this.displayService,t),this.textViewModel=new dz(Da,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new PF(Da,this.brailleService),this.reviewViewModel=new iz(Da,this.reviewService),this.displayViewModel=new WF(Da,this.displayService),this.helpViewModel=new ez(Da,this.helpService),this.chatViewModel=new UF(Da,this.chatService,this.audioService),this.settingsViewModel=new lz(Da,this.settingsService),this.notificationService.notify(this.context.getInstruction(!1)),this.keybinding=new $0e({context:this.context,audioService:this.audioService,autoplayService:this.autoplayService,highlightService:this.highlightService,brailleViewModel:this.brailleViewModel,chatViewModel:this.chatViewModel,helpViewModel:this.helpViewModel,reviewViewModel:this.reviewViewModel,settingsViewModel:this.settingsViewModel,textViewModel:this.textViewModel}),this.registerViewModels(),this.registerObservers(),this.keybinding.register(this.context.scope)}dispose(){this.keybinding.unregister(),l5.instance.dispose(),this.settingsViewModel.dispose(),this.chatViewModel.dispose(),this.helpViewModel.dispose(),this.displayViewModel.dispose(),this.reviewViewModel.dispose(),this.brailleViewModel.dispose(),this.textViewModel.dispose(),this.highlightService.dispose(),this.autoplayService.dispose(),this.textService.dispose(),this.reviewService.dispose(),this.brailleService.dispose(),this.audioService.dispose(),this.notificationService.dispose(),this.displayService.dispose(),this.context.dispose(),this.figure.dispose()}registerViewModels(){l5.instance.register("text",this.textViewModel),l5.instance.register("braille",this.brailleViewModel),l5.instance.register("review",this.reviewViewModel),l5.instance.register("display",this.displayViewModel),l5.instance.register("help",this.helpViewModel),l5.instance.register("chat",this.chatViewModel),l5.instance.register("settings",this.settingsViewModel)}registerObservers(){this.figure.addObserver(this.textService),this.figure.subplots.forEach(t=>t.forEach(r=>{r.addObserver(this.textService),r.addObserver(this.audioService),r.addObserver(this.brailleService),r.addObserver(this.highlightService),r.traces.forEach(s=>s.forEach(o=>{o.addObserver(this.audioService),o.addObserver(this.brailleService),o.addObserver(this.textService),o.addObserver(this.reviewService),o.addObserver(this.highlightService)}))}))}}document.readyState==="loading"?document.addEventListener(g4.DOM_LOADED,WN):WN();function WN(){const e=document.querySelectorAll(`[${xe.MAIDR_DATA}]`);if(e.forEach(s=>{const o=s.getAttribute(xe.MAIDR_DATA);if(o)try{const a=JSON.parse(o);YN(a,s)}catch(a){console.error("Error parsing maidr attribute:",a)}}),e.length!==0)return;const t=window.maidr;if(!t)return;const r=document.getElementById(t.id);r&&YN(t,r)}function YN(e,t){let r=null,s=null,o=null;const a=()=>{setTimeout(()=>{if(!r)return;const u=document.activeElement;r.contains(u)||(o==null||o.dispose(),o=null)},0)},i=()=>{setTimeout(()=>{if(!(!r||!s)&&!o){const u=JSON.parse(JSON.stringify(e));o=new XN(u,t,s)}},0)},l=document.createElement(xe.FIGURE);l.id=`${xe.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(l,t),l.appendChild(t);const T=document.createElement(xe.ARTICLE);T.id=`${xe.MAIDR_ARTICLE}-${e.id}`,l.parentNode.replaceChild(T,l),T.appendChild(l),s=document.createElement(xe.DIV),s.id=`${xe.REACT_CONTAINER}-${e.id}`,l.appendChild(s),r=l,t.addEventListener(g4.FOCUS_IN,i),t.addEventListener(g4.CLICK,i),r.addEventListener(g4.FOCUS_OUT,a),(()=>{const u=JSON.parse(JSON.stringify(e));new XN(u,t,s).dispose()})()}});
|
|
655
655
|
//# sourceMappingURL=maidr.js.map
|